diff --git a/assets/index-BqzbLpmc.css b/assets/index-BqzbLpmc.css new file mode 100644 index 0000000..05469f1 --- /dev/null +++ b/assets/index-BqzbLpmc.css @@ -0,0 +1 @@ +body{background:var(--seq-colors-background-primary)}*,*:before,*:after{box-sizing:border-box}.seq-root *,.seq-root *:before,.seq-root *:after{box-sizing:border-box}:root{--seq-blur-blur: blur(12.5px);--seq-blur-none: none;--seq-border-widths-none: 0;--seq-border-widths-thin: .075rem;--seq-border-widths-thick: .125rem;--seq-fonts-inherit: inherit;--seq-fonts-body: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, "Helvetica Neue", Arial;--seq-fonts-mono: "iAWriter Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--seq-font-sizes-inherit: inherit;--seq-font-sizes-xsmall: .625rem;--seq-font-sizes-small: .75rem;--seq-font-sizes-normal: .875rem;--seq-font-sizes-medium: 1rem;--seq-font-sizes-large: 1.25rem;--seq-font-sizes-xlarge: 1.875rem;--seq-font-weights-inherit: inherit;--seq-font-weights-normal: 400;--seq-font-weights-medium: 500;--seq-font-weights-semibold: 600;--seq-font-weights-bold: 700;--seq-letter-spacings-inherit: inherit;--seq-letter-spacings-none: 0;--seq-letter-spacings-normal: .01em;--seq-letter-spacings-wide: .03em;--seq-line-heights-4: 1rem;--seq-line-heights-5: 1.25rem;--seq-line-heights-6: 1.5rem;--seq-line-heights-7: 1.75rem;--seq-line-heights-9: 2.25rem;--seq-line-heights-inherit: inherit;--seq-opacity-0: 0;--seq-opacity-50: .5;--seq-opacity-80: .8;--seq-opacity-100: 1;--seq-radii-none: 0;--seq-radii-xs: .25rem;--seq-radii-sm: .5rem;--seq-radii-md: .75rem;--seq-radii-lg: 1rem;--seq-radii-circle: 9999px;--seq-space-0: 0;--seq-space-1: .25rem;--seq-space-2: .5rem;--seq-space-3: .75rem;--seq-space-4: 1rem;--seq-space-5: 1.25rem;--seq-space-6: 1.5rem;--seq-space-7: 1.75rem;--seq-space-8: 2rem;--seq-space-9: 2.25rem;--seq-space-10: 2.5rem;--seq-space-12: 3rem;--seq-space-14: 3.5rem;--seq-space-16: 4rem;--seq-space-0_25: .0625rem;--seq-space-0_5: .125rem;--seq-space-1_5: .375rem}:root{--seq-colors-black: #000000;--seq-colors-white: #ffffff;--seq-colors-inherit: inherit;--seq-colors-transparent: transparent;--seq-colors-positive: #1FC266;--seq-colors-negative: #C2501F;--seq-colors-info: #0076CC;--seq-colors-warning: #F4B03E;--seq-colors-gradient-backdrop: linear-gradient( 243.18deg, rgba(86, 52, 189, .85) 0%, rgba(49, 41, 223, .85) 63.54%, rgba(7, 98, 149, .85) 100% );--seq-colors-gradient-primary: linear-gradient(89.69deg, #4411E1 .27%, #7537F9 99.73%);--seq-colors-gradient-secondary: linear-gradient(32.51deg, #951990 -15.23%, #3A35B1 48.55%, #20A8B0 100%);--seq-colors-arbitrum-dark: #212D44;--seq-colors-arbitrum-light: #93D4FF;--seq-colors-avalance-dark: #810C0C;--seq-colors-avalance-light: #FF8080;--seq-colors-bsc-dark: #584508;--seq-colors-bsc-light: #FCCF43;--seq-colors-ethereum-dark: #132362;--seq-colors-ethereum-light: #AABBFF;--seq-colors-gnosis-dark: #084246;--seq-colors-gnosis-light: #8CF6FD;--seq-colors-polygon-dark: #350881;--seq-colors-polygon-light: #C7A6FF;--seq-colors-text100: rgba(255, 255, 255, 1);--seq-colors-text80: rgba(255, 255, 255, .8);--seq-colors-text50: rgba(255, 255, 255, .5);--seq-colors-text-inverse100: rgba(0, 0, 0, 1);--seq-colors-background-primary: rgba(0, 0, 0, 1);--seq-colors-background-secondary: rgba(255, 255, 255, .1);--seq-colors-background-contrast: rgba(0, 0, 0, .5);--seq-colors-background-muted: rgba(255, 255, 255, .05);--seq-colors-background-control: rgba(255, 255, 255, .25);--seq-colors-background-inverse: rgba(255, 255, 255, 1);--seq-colors-background-backdrop: rgba(34, 34, 34, .9);--seq-colors-background-overlay: rgba(0, 0, 0, .7);--seq-colors-background-raised: rgba(54, 54, 54, .7);--seq-colors-button-glass: rgba(255, 255, 255, .15);--seq-colors-button-emphasis: rgba(0, 0, 0, .5);--seq-colors-button-inverse: rgba(255, 255, 255, .8);--seq-colors-border-normal: rgba(255, 255, 255, .25);--seq-colors-border-focus: rgba(255, 255, 255, .5)}.fyvr10{width:var(--seq-space-0)}.fyvr14{width:var(--seq-space-1)}.fyvr18{width:var(--seq-space-2)}.fyvr1c{width:var(--seq-space-3)}.fyvr1g{width:var(--seq-space-4)}.fyvr1k{width:var(--seq-space-5)}.fyvr1o{width:var(--seq-space-6)}.fyvr1s{width:var(--seq-space-7)}.fyvr1w{width:var(--seq-space-8)}.fyvr110{width:var(--seq-space-9)}.fyvr114{width:var(--seq-space-10)}.fyvr118{width:var(--seq-space-12)}.fyvr11c{width:var(--seq-space-14)}.fyvr11g{width:var(--seq-space-16)}.fyvr11k{width:var(--seq-space-0_25)}.fyvr11o{width:var(--seq-space-0_5)}.fyvr11s{width:var(--seq-space-1_5)}.fyvr11w{width:0}.fyvr120{width:1px}.fyvr124{width:auto}.fyvr128{width:100%}.fyvr12c{width:50%}.fyvr12g{width:33.33333%}.fyvr12k{width:66.66667%}.fyvr12o{width:25%}.fyvr12s{width:75%}.fyvr12w{width:-moz-fit-content;width:fit-content}.fyvr130{width:-moz-max-content;width:max-content}.fyvr134{width:-moz-min-content;width:min-content}.fyvr138{width:100vw}.fyvr13c{width:100vh}.fyvr13g{height:var(--seq-space-0)}.fyvr13k{height:var(--seq-space-1)}.fyvr13o{height:var(--seq-space-2)}.fyvr13s{height:var(--seq-space-3)}.fyvr13w{height:var(--seq-space-4)}.fyvr140{height:var(--seq-space-5)}.fyvr144{height:var(--seq-space-6)}.fyvr148{height:var(--seq-space-7)}.fyvr14c{height:var(--seq-space-8)}.fyvr14g{height:var(--seq-space-9)}.fyvr14k{height:var(--seq-space-10)}.fyvr14o{height:var(--seq-space-12)}.fyvr14s{height:var(--seq-space-14)}.fyvr14w{height:var(--seq-space-16)}.fyvr150{height:var(--seq-space-0_25)}.fyvr154{height:var(--seq-space-0_5)}.fyvr158{height:var(--seq-space-1_5)}.fyvr15c{height:0}.fyvr15g{height:1px}.fyvr15k{height:auto}.fyvr15o{height:100%}.fyvr15s{height:50%}.fyvr15w{height:33.33333%}.fyvr160{height:66.66667%}.fyvr164{height:25%}.fyvr168{height:75%}.fyvr16c{height:-moz-fit-content;height:fit-content}.fyvr16g{height:-moz-max-content;height:max-content}.fyvr16k{height:-moz-min-content;height:min-content}.fyvr16o{height:100vw}.fyvr16s{height:100vh}.fyvr16w{max-width:var(--seq-space-0)}.fyvr170{max-width:var(--seq-space-1)}.fyvr174{max-width:var(--seq-space-2)}.fyvr178{max-width:var(--seq-space-3)}.fyvr17c{max-width:var(--seq-space-4)}.fyvr17g{max-width:var(--seq-space-5)}.fyvr17k{max-width:var(--seq-space-6)}.fyvr17o{max-width:var(--seq-space-7)}.fyvr17s{max-width:var(--seq-space-8)}.fyvr17w{max-width:var(--seq-space-9)}.fyvr180{max-width:var(--seq-space-10)}.fyvr184{max-width:var(--seq-space-12)}.fyvr188{max-width:var(--seq-space-14)}.fyvr18c{max-width:var(--seq-space-16)}.fyvr18g{max-width:var(--seq-space-0_25)}.fyvr18k{max-width:var(--seq-space-0_5)}.fyvr18o{max-width:var(--seq-space-1_5)}.fyvr18s{max-width:0}.fyvr18w{max-width:1px}.fyvr190{max-width:auto}.fyvr194{max-width:100%}.fyvr198{max-width:50%}.fyvr19c{max-width:33.33333%}.fyvr19g{max-width:66.66667%}.fyvr19k{max-width:25%}.fyvr19o{max-width:75%}.fyvr19s{max-width:-moz-fit-content;max-width:fit-content}.fyvr19w{max-width:-moz-max-content;max-width:max-content}.fyvr1a0{max-width:-moz-min-content;max-width:min-content}.fyvr1a4{max-width:100vw}.fyvr1a8{max-width:100vh}.fyvr1ac{max-height:var(--seq-space-0)}.fyvr1ag{max-height:var(--seq-space-1)}.fyvr1ak{max-height:var(--seq-space-2)}.fyvr1ao{max-height:var(--seq-space-3)}.fyvr1as{max-height:var(--seq-space-4)}.fyvr1aw{max-height:var(--seq-space-5)}.fyvr1b0{max-height:var(--seq-space-6)}.fyvr1b4{max-height:var(--seq-space-7)}.fyvr1b8{max-height:var(--seq-space-8)}.fyvr1bc{max-height:var(--seq-space-9)}.fyvr1bg{max-height:var(--seq-space-10)}.fyvr1bk{max-height:var(--seq-space-12)}.fyvr1bo{max-height:var(--seq-space-14)}.fyvr1bs{max-height:var(--seq-space-16)}.fyvr1bw{max-height:var(--seq-space-0_25)}.fyvr1c0{max-height:var(--seq-space-0_5)}.fyvr1c4{max-height:var(--seq-space-1_5)}.fyvr1c8{max-height:0}.fyvr1cc{max-height:1px}.fyvr1cg{max-height:auto}.fyvr1ck{max-height:100%}.fyvr1co{max-height:50%}.fyvr1cs{max-height:33.33333%}.fyvr1cw{max-height:66.66667%}.fyvr1d0{max-height:25%}.fyvr1d4{max-height:75%}.fyvr1d8{max-height:-moz-fit-content;max-height:fit-content}.fyvr1dc{max-height:-moz-max-content;max-height:max-content}.fyvr1dg{max-height:-moz-min-content;max-height:min-content}.fyvr1dk{max-height:100vw}.fyvr1do{max-height:100vh}.fyvr1ds{min-width:var(--seq-space-0)}.fyvr1dw{min-width:var(--seq-space-1)}.fyvr1e0{min-width:var(--seq-space-2)}.fyvr1e4{min-width:var(--seq-space-3)}.fyvr1e8{min-width:var(--seq-space-4)}.fyvr1ec{min-width:var(--seq-space-5)}.fyvr1eg{min-width:var(--seq-space-6)}.fyvr1ek{min-width:var(--seq-space-7)}.fyvr1eo{min-width:var(--seq-space-8)}.fyvr1es{min-width:var(--seq-space-9)}.fyvr1ew{min-width:var(--seq-space-10)}.fyvr1f0{min-width:var(--seq-space-12)}.fyvr1f4{min-width:var(--seq-space-14)}.fyvr1f8{min-width:var(--seq-space-16)}.fyvr1fc{min-width:var(--seq-space-0_25)}.fyvr1fg{min-width:var(--seq-space-0_5)}.fyvr1fk{min-width:var(--seq-space-1_5)}.fyvr1fo{min-width:0}.fyvr1fs{min-width:1px}.fyvr1fw{min-width:auto}.fyvr1g0{min-width:100%}.fyvr1g4{min-width:50%}.fyvr1g8{min-width:33.33333%}.fyvr1gc{min-width:66.66667%}.fyvr1gg{min-width:25%}.fyvr1gk{min-width:75%}.fyvr1go{min-width:-moz-fit-content;min-width:fit-content}.fyvr1gs{min-width:-moz-max-content;min-width:max-content}.fyvr1gw{min-width:-moz-min-content;min-width:min-content}.fyvr1h0{min-width:100vw}.fyvr1h4{min-width:100vh}.fyvr1h8{min-height:var(--seq-space-0)}.fyvr1hc{min-height:var(--seq-space-1)}.fyvr1hg{min-height:var(--seq-space-2)}.fyvr1hk{min-height:var(--seq-space-3)}.fyvr1ho{min-height:var(--seq-space-4)}.fyvr1hs{min-height:var(--seq-space-5)}.fyvr1hw{min-height:var(--seq-space-6)}.fyvr1i0{min-height:var(--seq-space-7)}.fyvr1i4{min-height:var(--seq-space-8)}.fyvr1i8{min-height:var(--seq-space-9)}.fyvr1ic{min-height:var(--seq-space-10)}.fyvr1ig{min-height:var(--seq-space-12)}.fyvr1ik{min-height:var(--seq-space-14)}.fyvr1io{min-height:var(--seq-space-16)}.fyvr1is{min-height:var(--seq-space-0_25)}.fyvr1iw{min-height:var(--seq-space-0_5)}.fyvr1j0{min-height:var(--seq-space-1_5)}.fyvr1j4{min-height:0}.fyvr1j8{min-height:1px}.fyvr1jc{min-height:auto}.fyvr1jg{min-height:100%}.fyvr1jk{min-height:50%}.fyvr1jo{min-height:33.33333%}.fyvr1js{min-height:66.66667%}.fyvr1jw{min-height:25%}.fyvr1k0{min-height:75%}.fyvr1k4{min-height:-moz-fit-content;min-height:fit-content}.fyvr1k8{min-height:-moz-max-content;min-height:max-content}.fyvr1kc{min-height:-moz-min-content;min-height:min-content}.fyvr1kg{min-height:100vw}.fyvr1kk{min-height:100vh}.fyvr1ko{top:var(--seq-space-0)}.fyvr1ks{top:var(--seq-space-1)}.fyvr1kw{top:var(--seq-space-2)}.fyvr1l0{top:var(--seq-space-3)}.fyvr1l4{top:var(--seq-space-4)}.fyvr1l8{top:var(--seq-space-5)}.fyvr1lc{top:var(--seq-space-6)}.fyvr1lg{top:var(--seq-space-7)}.fyvr1lk{top:var(--seq-space-8)}.fyvr1lo{top:var(--seq-space-9)}.fyvr1ls{top:var(--seq-space-10)}.fyvr1lw{top:var(--seq-space-12)}.fyvr1m0{top:var(--seq-space-14)}.fyvr1m4{top:var(--seq-space-16)}.fyvr1m8{top:var(--seq-space-0_25)}.fyvr1mc{top:var(--seq-space-0_5)}.fyvr1mg{top:var(--seq-space-1_5)}.fyvr1mk{top:auto}.fyvr1mo{bottom:var(--seq-space-0)}.fyvr1ms{bottom:var(--seq-space-1)}.fyvr1mw{bottom:var(--seq-space-2)}.fyvr1n0{bottom:var(--seq-space-3)}.fyvr1n4{bottom:var(--seq-space-4)}.fyvr1n8{bottom:var(--seq-space-5)}.fyvr1nc{bottom:var(--seq-space-6)}.fyvr1ng{bottom:var(--seq-space-7)}.fyvr1nk{bottom:var(--seq-space-8)}.fyvr1no{bottom:var(--seq-space-9)}.fyvr1ns{bottom:var(--seq-space-10)}.fyvr1nw{bottom:var(--seq-space-12)}.fyvr1o0{bottom:var(--seq-space-14)}.fyvr1o4{bottom:var(--seq-space-16)}.fyvr1o8{bottom:var(--seq-space-0_25)}.fyvr1oc{bottom:var(--seq-space-0_5)}.fyvr1og{bottom:var(--seq-space-1_5)}.fyvr1ok{bottom:auto}.fyvr1oo{left:var(--seq-space-0)}.fyvr1os{left:var(--seq-space-1)}.fyvr1ow{left:var(--seq-space-2)}.fyvr1p0{left:var(--seq-space-3)}.fyvr1p4{left:var(--seq-space-4)}.fyvr1p8{left:var(--seq-space-5)}.fyvr1pc{left:var(--seq-space-6)}.fyvr1pg{left:var(--seq-space-7)}.fyvr1pk{left:var(--seq-space-8)}.fyvr1po{left:var(--seq-space-9)}.fyvr1ps{left:var(--seq-space-10)}.fyvr1pw{left:var(--seq-space-12)}.fyvr1q0{left:var(--seq-space-14)}.fyvr1q4{left:var(--seq-space-16)}.fyvr1q8{left:var(--seq-space-0_25)}.fyvr1qc{left:var(--seq-space-0_5)}.fyvr1qg{left:var(--seq-space-1_5)}.fyvr1qk{left:auto}.fyvr1qo{right:var(--seq-space-0)}.fyvr1qs{right:var(--seq-space-1)}.fyvr1qw{right:var(--seq-space-2)}.fyvr1r0{right:var(--seq-space-3)}.fyvr1r4{right:var(--seq-space-4)}.fyvr1r8{right:var(--seq-space-5)}.fyvr1rc{right:var(--seq-space-6)}.fyvr1rg{right:var(--seq-space-7)}.fyvr1rk{right:var(--seq-space-8)}.fyvr1ro{right:var(--seq-space-9)}.fyvr1rs{right:var(--seq-space-10)}.fyvr1rw{right:var(--seq-space-12)}.fyvr1s0{right:var(--seq-space-14)}.fyvr1s4{right:var(--seq-space-16)}.fyvr1s8{right:var(--seq-space-0_25)}.fyvr1sc{right:var(--seq-space-0_5)}.fyvr1sg{right:var(--seq-space-1_5)}.fyvr1sk{right:auto}.fyvr1so{padding-top:var(--seq-space-0)}.fyvr1ss{padding-top:var(--seq-space-1)}.fyvr1sw{padding-top:var(--seq-space-2)}.fyvr1t0{padding-top:var(--seq-space-3)}.fyvr1t4{padding-top:var(--seq-space-4)}.fyvr1t8{padding-top:var(--seq-space-5)}.fyvr1tc{padding-top:var(--seq-space-6)}.fyvr1tg{padding-top:var(--seq-space-7)}.fyvr1tk{padding-top:var(--seq-space-8)}.fyvr1to{padding-top:var(--seq-space-9)}.fyvr1ts{padding-top:var(--seq-space-10)}.fyvr1tw{padding-top:var(--seq-space-12)}.fyvr1u0{padding-top:var(--seq-space-14)}.fyvr1u4{padding-top:var(--seq-space-16)}.fyvr1u8{padding-top:var(--seq-space-0_25)}.fyvr1uc{padding-top:var(--seq-space-0_5)}.fyvr1ug{padding-top:var(--seq-space-1_5)}.fyvr1uk{padding-bottom:var(--seq-space-0)}.fyvr1uo{padding-bottom:var(--seq-space-1)}.fyvr1us{padding-bottom:var(--seq-space-2)}.fyvr1uw{padding-bottom:var(--seq-space-3)}.fyvr1v0{padding-bottom:var(--seq-space-4)}.fyvr1v4{padding-bottom:var(--seq-space-5)}.fyvr1v8{padding-bottom:var(--seq-space-6)}.fyvr1vc{padding-bottom:var(--seq-space-7)}.fyvr1vg{padding-bottom:var(--seq-space-8)}.fyvr1vk{padding-bottom:var(--seq-space-9)}.fyvr1vo{padding-bottom:var(--seq-space-10)}.fyvr1vs{padding-bottom:var(--seq-space-12)}.fyvr1vw{padding-bottom:var(--seq-space-14)}.fyvr1w0{padding-bottom:var(--seq-space-16)}.fyvr1w4{padding-bottom:var(--seq-space-0_25)}.fyvr1w8{padding-bottom:var(--seq-space-0_5)}.fyvr1wc{padding-bottom:var(--seq-space-1_5)}.fyvr1wg{padding-left:var(--seq-space-0)}.fyvr1wk{padding-left:var(--seq-space-1)}.fyvr1wo{padding-left:var(--seq-space-2)}.fyvr1ws{padding-left:var(--seq-space-3)}.fyvr1ww{padding-left:var(--seq-space-4)}.fyvr1x0{padding-left:var(--seq-space-5)}.fyvr1x4{padding-left:var(--seq-space-6)}.fyvr1x8{padding-left:var(--seq-space-7)}.fyvr1xc{padding-left:var(--seq-space-8)}.fyvr1xg{padding-left:var(--seq-space-9)}.fyvr1xk{padding-left:var(--seq-space-10)}.fyvr1xo{padding-left:var(--seq-space-12)}.fyvr1xs{padding-left:var(--seq-space-14)}.fyvr1xw{padding-left:var(--seq-space-16)}.fyvr1y0{padding-left:var(--seq-space-0_25)}.fyvr1y4{padding-left:var(--seq-space-0_5)}.fyvr1y8{padding-left:var(--seq-space-1_5)}.fyvr1yc{padding-right:var(--seq-space-0)}.fyvr1yg{padding-right:var(--seq-space-1)}.fyvr1yk{padding-right:var(--seq-space-2)}.fyvr1yo{padding-right:var(--seq-space-3)}.fyvr1ys{padding-right:var(--seq-space-4)}.fyvr1yw{padding-right:var(--seq-space-5)}.fyvr1z0{padding-right:var(--seq-space-6)}.fyvr1z4{padding-right:var(--seq-space-7)}.fyvr1z8{padding-right:var(--seq-space-8)}.fyvr1zc{padding-right:var(--seq-space-9)}.fyvr1zg{padding-right:var(--seq-space-10)}.fyvr1zk{padding-right:var(--seq-space-12)}.fyvr1zo{padding-right:var(--seq-space-14)}.fyvr1zs{padding-right:var(--seq-space-16)}.fyvr1zw{padding-right:var(--seq-space-0_25)}.fyvr1100{padding-right:var(--seq-space-0_5)}.fyvr1104{padding-right:var(--seq-space-1_5)}.fyvr1108{margin-top:var(--seq-space-0)}.fyvr110c{margin-top:var(--seq-space-1)}.fyvr110g{margin-top:var(--seq-space-2)}.fyvr110k{margin-top:var(--seq-space-3)}.fyvr110o{margin-top:var(--seq-space-4)}.fyvr110s{margin-top:var(--seq-space-5)}.fyvr110w{margin-top:var(--seq-space-6)}.fyvr1110{margin-top:var(--seq-space-7)}.fyvr1114{margin-top:var(--seq-space-8)}.fyvr1118{margin-top:var(--seq-space-9)}.fyvr111c{margin-top:var(--seq-space-10)}.fyvr111g{margin-top:var(--seq-space-12)}.fyvr111k{margin-top:var(--seq-space-14)}.fyvr111o{margin-top:var(--seq-space-16)}.fyvr111s{margin-top:var(--seq-space-0_25)}.fyvr111w{margin-top:var(--seq-space-0_5)}.fyvr1120{margin-top:var(--seq-space-1_5)}.fyvr1124{margin-top:auto}.fyvr1128{margin-bottom:var(--seq-space-0)}.fyvr112c{margin-bottom:var(--seq-space-1)}.fyvr112g{margin-bottom:var(--seq-space-2)}.fyvr112k{margin-bottom:var(--seq-space-3)}.fyvr112o{margin-bottom:var(--seq-space-4)}.fyvr112s{margin-bottom:var(--seq-space-5)}.fyvr112w{margin-bottom:var(--seq-space-6)}.fyvr1130{margin-bottom:var(--seq-space-7)}.fyvr1134{margin-bottom:var(--seq-space-8)}.fyvr1138{margin-bottom:var(--seq-space-9)}.fyvr113c{margin-bottom:var(--seq-space-10)}.fyvr113g{margin-bottom:var(--seq-space-12)}.fyvr113k{margin-bottom:var(--seq-space-14)}.fyvr113o{margin-bottom:var(--seq-space-16)}.fyvr113s{margin-bottom:var(--seq-space-0_25)}.fyvr113w{margin-bottom:var(--seq-space-0_5)}.fyvr1140{margin-bottom:var(--seq-space-1_5)}.fyvr1144{margin-bottom:auto}.fyvr1148{margin-left:var(--seq-space-0)}.fyvr114c{margin-left:var(--seq-space-1)}.fyvr114g{margin-left:var(--seq-space-2)}.fyvr114k{margin-left:var(--seq-space-3)}.fyvr114o{margin-left:var(--seq-space-4)}.fyvr114s{margin-left:var(--seq-space-5)}.fyvr114w{margin-left:var(--seq-space-6)}.fyvr1150{margin-left:var(--seq-space-7)}.fyvr1154{margin-left:var(--seq-space-8)}.fyvr1158{margin-left:var(--seq-space-9)}.fyvr115c{margin-left:var(--seq-space-10)}.fyvr115g{margin-left:var(--seq-space-12)}.fyvr115k{margin-left:var(--seq-space-14)}.fyvr115o{margin-left:var(--seq-space-16)}.fyvr115s{margin-left:var(--seq-space-0_25)}.fyvr115w{margin-left:var(--seq-space-0_5)}.fyvr1160{margin-left:var(--seq-space-1_5)}.fyvr1164{margin-left:auto}.fyvr1168{margin-right:var(--seq-space-0)}.fyvr116c{margin-right:var(--seq-space-1)}.fyvr116g{margin-right:var(--seq-space-2)}.fyvr116k{margin-right:var(--seq-space-3)}.fyvr116o{margin-right:var(--seq-space-4)}.fyvr116s{margin-right:var(--seq-space-5)}.fyvr116w{margin-right:var(--seq-space-6)}.fyvr1170{margin-right:var(--seq-space-7)}.fyvr1174{margin-right:var(--seq-space-8)}.fyvr1178{margin-right:var(--seq-space-9)}.fyvr117c{margin-right:var(--seq-space-10)}.fyvr117g{margin-right:var(--seq-space-12)}.fyvr117k{margin-right:var(--seq-space-14)}.fyvr117o{margin-right:var(--seq-space-16)}.fyvr117s{margin-right:var(--seq-space-0_25)}.fyvr117w{margin-right:var(--seq-space-0_5)}.fyvr1180{margin-right:var(--seq-space-1_5)}.fyvr1184{margin-right:auto}.fyvr1188{gap:var(--seq-space-0)}.fyvr118c{gap:var(--seq-space-1)}.fyvr118g{gap:var(--seq-space-2)}.fyvr118k{gap:var(--seq-space-3)}.fyvr118o{gap:var(--seq-space-4)}.fyvr118s{gap:var(--seq-space-5)}.fyvr118w{gap:var(--seq-space-6)}.fyvr1190{gap:var(--seq-space-7)}.fyvr1194{gap:var(--seq-space-8)}.fyvr1198{gap:var(--seq-space-9)}.fyvr119c{gap:var(--seq-space-10)}.fyvr119g{gap:var(--seq-space-12)}.fyvr119k{gap:var(--seq-space-14)}.fyvr119o{gap:var(--seq-space-16)}.fyvr119s{gap:var(--seq-space-0_25)}.fyvr119w{gap:var(--seq-space-0_5)}.fyvr11a0{gap:var(--seq-space-1_5)}.fyvr11a4{border-bottom-width:var(--seq-border-widths-none)}.fyvr11a8{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11ac{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11ag{border-left-width:var(--seq-border-widths-none)}.fyvr11ak{border-left-width:var(--seq-border-widths-thin)}.fyvr11ao{border-left-width:var(--seq-border-widths-thick)}.fyvr11as{border-right-width:var(--seq-border-widths-none)}.fyvr11aw{border-right-width:var(--seq-border-widths-thin)}.fyvr11b0{border-right-width:var(--seq-border-widths-thick)}.fyvr11b4{border-top-width:var(--seq-border-widths-none)}.fyvr11b8{border-top-width:var(--seq-border-widths-thin)}.fyvr11bc{border-top-width:var(--seq-border-widths-thick)}.fyvr11bg{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11bk{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11bo{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11bs{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11bw{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11c0{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11c4{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11c8{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11cc{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11cg{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11ck{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11co{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11cs{border-top-left-radius:var(--seq-radii-none)}.fyvr11cw{border-top-left-radius:var(--seq-radii-xs)}.fyvr11d0{border-top-left-radius:var(--seq-radii-sm)}.fyvr11d4{border-top-left-radius:var(--seq-radii-md)}.fyvr11d8{border-top-left-radius:var(--seq-radii-lg)}.fyvr11dc{border-top-left-radius:var(--seq-radii-circle)}.fyvr11dg{border-top-right-radius:var(--seq-radii-none)}.fyvr11dk{border-top-right-radius:var(--seq-radii-xs)}.fyvr11do{border-top-right-radius:var(--seq-radii-sm)}.fyvr11ds{border-top-right-radius:var(--seq-radii-md)}.fyvr11dw{border-top-right-radius:var(--seq-radii-lg)}.fyvr11e0{border-top-right-radius:var(--seq-radii-circle)}.fyvr11e4{font-size:var(--seq-font-sizes-inherit)}.fyvr11e8{font-size:var(--seq-font-sizes-xsmall)}.fyvr11ec{font-size:var(--seq-font-sizes-small)}.fyvr11eg{font-size:var(--seq-font-sizes-normal)}.fyvr11ek{font-size:var(--seq-font-sizes-medium)}.fyvr11eo{font-size:var(--seq-font-sizes-large)}.fyvr11es{font-size:var(--seq-font-sizes-xlarge)}.fyvr11ew{font-weight:var(--seq-font-weights-inherit)}.fyvr11f0{font-weight:var(--seq-font-weights-normal)}.fyvr11f4{font-weight:var(--seq-font-weights-medium)}.fyvr11f8{font-weight:var(--seq-font-weights-semibold)}.fyvr11fc{font-weight:var(--seq-font-weights-bold)}.fyvr11fg{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11fk{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11fo{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11fs{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11fw{line-height:var(--seq-line-heights-4)}.fyvr11g0{line-height:var(--seq-line-heights-5)}.fyvr11g4{line-height:var(--seq-line-heights-6)}.fyvr11g8{line-height:var(--seq-line-heights-7)}.fyvr11gc{line-height:var(--seq-line-heights-9)}.fyvr11gg{line-height:var(--seq-line-heights-inherit)}.fyvr11gk{text-align:center}.fyvr11go{text-align:left}.fyvr11gs{text-align:right}.fyvr11gw{display:block}.fyvr11h0{display:flex}.fyvr11h4{display:grid}.fyvr11h8{display:inline-block}.fyvr11hc{display:inline-flex}.fyvr11hg{display:none}.fyvr11hk{display:contents}.fyvr11ho{position:absolute}.fyvr11hs{position:fixed}.fyvr11hw{position:relative}.fyvr11i0{position:sticky}.fyvr11i4{flex-direction:column}.fyvr11i8{flex-direction:column-reverse}.fyvr11ic{flex-direction:row}.fyvr11ig{flex-direction:row-reverse}.fyvr11ik{flex-shrink:0}.fyvr11io{flex-shrink:1}.fyvr11is{flex-grow:0}.fyvr11iw{flex-grow:1}.fyvr11j0{flex-wrap:nowrap}.fyvr11j4{flex-wrap:wrap}.fyvr11j8{flex-wrap:wrap-reverse}.fyvr11jc{justify-content:flex-start}.fyvr11jg{justify-content:center}.fyvr11jk{justify-content:flex-end}.fyvr11jo{justify-content:stretch}.fyvr11js{justify-content:space-around}.fyvr11jw{justify-content:space-between}.fyvr11k0{justify-content:space-evenly}.fyvr11k4{justify-self:flex-start}.fyvr11k8{justify-self:center}.fyvr11kc{justify-self:flex-end}.fyvr11kg{justify-self:stretch}.fyvr11kk{align-items:flex-start}.fyvr11ko{align-items:center}.fyvr11ks{align-items:flex-end}.fyvr11kw{align-items:stretch}.fyvr11l0{align-items:baseline}.fyvr11l4{align-self:flex-start}.fyvr11l8{align-self:center}.fyvr11lc{align-self:flex-end}.fyvr11lg{align-self:stretch}.fyvr11lk{align-self:baseline}.fyvr11lo{overflow-x:auto}.fyvr11ls{overflow-x:hidden}.fyvr11lw{overflow-x:scroll}.fyvr11m0{overflow-x:visible}.fyvr11m4{overflow-y:auto}.fyvr11m8{overflow-y:hidden}.fyvr11mc{overflow-y:scroll}.fyvr11mg{overflow-y:visible}.fyvr11mk{visibility:hidden}.fyvr11mo{visibility:visible}.fyvr11ms{-webkit-backdrop-filter:var(--seq-blur-blur);backdrop-filter:var(--seq-blur-blur)}.fyvr11mt{-webkit-backdrop-filter:var(--seq-blur-none);backdrop-filter:var(--seq-blur-none)}.fyvr11mu{font-family:var(--seq-fonts-inherit)}.fyvr11mv{font-family:var(--seq-fonts-body)}.fyvr11mw{font-family:var(--seq-fonts-mono)}.fyvr11mx{text-overflow:ellipsis}.fyvr11my{text-overflow:clip}.fyvr11mz{text-transform:capitalize}.fyvr11n0{text-transform:lowercase}.fyvr11n1{text-transform:uppercase}.fyvr11n2{-webkit-text-decoration:none;text-decoration:none}.fyvr11n3{-webkit-text-decoration:underline;text-decoration:underline}.fyvr11n4{-webkit-user-select:none;-moz-user-select:none;user-select:none}.fyvr11n5{-webkit-user-select:text;-moz-user-select:text;user-select:text}.fyvr11n6{-webkit-user-select:all;-moz-user-select:all;user-select:all}.fyvr11n7{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.fyvr11n8{white-space:normal}.fyvr11n9{white-space:nowrap}.fyvr11na{white-space:normal;white-space:initial}.fyvr11nb{white-space:inherit}.fyvr11nc{word-break:break-word}.fyvr11nd{word-wrap:normal}.fyvr11ne{word-wrap:break-word}.fyvr11nf{word-wrap:initial}.fyvr11ng{word-wrap:inherit}.fyvr11nh{z-index:0}.fyvr11ni{z-index:1}.fyvr11nj{z-index:10}.fyvr11nk{z-index:20}.fyvr11nl{z-index:30}.fyvr11nm{z-index:40}.fyvr11nn{z-index:50}.fyvr11no{z-index:-1}.fyvr11np{z-index:auto}.fyvr11nq{aspect-ratio:1 / 1}.fyvr11nr{aspect-ratio:16 / 9}.fyvr11ns{aspect-ratio:4 / 3}.fyvr11nt{aspect-ratio:3 / 1}.fyvr11nu{aspect-ratio:auto}.fyvr11nv,.fyvr11nw:active{background:var(--seq-colors-black)}.fyvr11nx:disabled,.fyvr11nx[data-disabled]{background:var(--seq-colors-black)}.fyvr11ny:focus{background:var(--seq-colors-black)}.fyvr11nz:hover:not([disabled]){background:var(--seq-colors-black)}.fyvr11o0[data-state=checked]{background:var(--seq-colors-black)}.fyvr11o1,.fyvr11o2:active{background:var(--seq-colors-white)}.fyvr11o3:disabled,.fyvr11o3[data-disabled]{background:var(--seq-colors-white)}.fyvr11o4:focus{background:var(--seq-colors-white)}.fyvr11o5:hover:not([disabled]){background:var(--seq-colors-white)}.fyvr11o6[data-state=checked]{background:var(--seq-colors-white)}.fyvr11o7,.fyvr11o8:active{background:var(--seq-colors-inherit)}.fyvr11o9:disabled,.fyvr11o9[data-disabled]{background:var(--seq-colors-inherit)}.fyvr11oa:focus{background:var(--seq-colors-inherit)}.fyvr11ob:hover:not([disabled]){background:var(--seq-colors-inherit)}.fyvr11oc[data-state=checked]{background:var(--seq-colors-inherit)}.fyvr11od,.fyvr11oe:active{background:var(--seq-colors-transparent)}.fyvr11of:disabled,.fyvr11of[data-disabled]{background:var(--seq-colors-transparent)}.fyvr11og:focus{background:var(--seq-colors-transparent)}.fyvr11oh:hover:not([disabled]){background:var(--seq-colors-transparent)}.fyvr11oi[data-state=checked]{background:var(--seq-colors-transparent)}.fyvr11oj,.fyvr11ok:active{background:var(--seq-colors-positive)}.fyvr11ol:disabled,.fyvr11ol[data-disabled]{background:var(--seq-colors-positive)}.fyvr11om:focus{background:var(--seq-colors-positive)}.fyvr11on:hover:not([disabled]){background:var(--seq-colors-positive)}.fyvr11oo[data-state=checked]{background:var(--seq-colors-positive)}.fyvr11op,.fyvr11oq:active{background:var(--seq-colors-negative)}.fyvr11or:disabled,.fyvr11or[data-disabled]{background:var(--seq-colors-negative)}.fyvr11os:focus{background:var(--seq-colors-negative)}.fyvr11ot:hover:not([disabled]){background:var(--seq-colors-negative)}.fyvr11ou[data-state=checked]{background:var(--seq-colors-negative)}.fyvr11ov,.fyvr11ow:active{background:var(--seq-colors-info)}.fyvr11ox:disabled,.fyvr11ox[data-disabled]{background:var(--seq-colors-info)}.fyvr11oy:focus{background:var(--seq-colors-info)}.fyvr11oz:hover:not([disabled]){background:var(--seq-colors-info)}.fyvr11p0[data-state=checked]{background:var(--seq-colors-info)}.fyvr11p1,.fyvr11p2:active{background:var(--seq-colors-warning)}.fyvr11p3:disabled,.fyvr11p3[data-disabled]{background:var(--seq-colors-warning)}.fyvr11p4:focus{background:var(--seq-colors-warning)}.fyvr11p5:hover:not([disabled]){background:var(--seq-colors-warning)}.fyvr11p6[data-state=checked]{background:var(--seq-colors-warning)}.fyvr11p7,.fyvr11p8:active{background:var(--seq-colors-gradient-backdrop)}.fyvr11p9:disabled,.fyvr11p9[data-disabled]{background:var(--seq-colors-gradient-backdrop)}.fyvr11pa:focus{background:var(--seq-colors-gradient-backdrop)}.fyvr11pb:hover:not([disabled]){background:var(--seq-colors-gradient-backdrop)}.fyvr11pc[data-state=checked]{background:var(--seq-colors-gradient-backdrop)}.fyvr11pd,.fyvr11pe:active{background:var(--seq-colors-gradient-primary)}.fyvr11pf:disabled,.fyvr11pf[data-disabled]{background:var(--seq-colors-gradient-primary)}.fyvr11pg:focus{background:var(--seq-colors-gradient-primary)}.fyvr11ph:hover:not([disabled]){background:var(--seq-colors-gradient-primary)}.fyvr11pi[data-state=checked]{background:var(--seq-colors-gradient-primary)}.fyvr11pj,.fyvr11pk:active{background:var(--seq-colors-gradient-secondary)}.fyvr11pl:disabled,.fyvr11pl[data-disabled]{background:var(--seq-colors-gradient-secondary)}.fyvr11pm:focus{background:var(--seq-colors-gradient-secondary)}.fyvr11pn:hover:not([disabled]){background:var(--seq-colors-gradient-secondary)}.fyvr11po[data-state=checked]{background:var(--seq-colors-gradient-secondary)}.fyvr11pp,.fyvr11pq:active{background:var(--seq-colors-arbitrum-dark)}.fyvr11pr:disabled,.fyvr11pr[data-disabled]{background:var(--seq-colors-arbitrum-dark)}.fyvr11ps:focus{background:var(--seq-colors-arbitrum-dark)}.fyvr11pt:hover:not([disabled]){background:var(--seq-colors-arbitrum-dark)}.fyvr11pu[data-state=checked]{background:var(--seq-colors-arbitrum-dark)}.fyvr11pv,.fyvr11pw:active{background:var(--seq-colors-arbitrum-light)}.fyvr11px:disabled,.fyvr11px[data-disabled]{background:var(--seq-colors-arbitrum-light)}.fyvr11py:focus{background:var(--seq-colors-arbitrum-light)}.fyvr11pz:hover:not([disabled]){background:var(--seq-colors-arbitrum-light)}.fyvr11q0[data-state=checked]{background:var(--seq-colors-arbitrum-light)}.fyvr11q1,.fyvr11q2:active{background:var(--seq-colors-avalance-dark)}.fyvr11q3:disabled,.fyvr11q3[data-disabled]{background:var(--seq-colors-avalance-dark)}.fyvr11q4:focus{background:var(--seq-colors-avalance-dark)}.fyvr11q5:hover:not([disabled]){background:var(--seq-colors-avalance-dark)}.fyvr11q6[data-state=checked]{background:var(--seq-colors-avalance-dark)}.fyvr11q7,.fyvr11q8:active{background:var(--seq-colors-avalance-light)}.fyvr11q9:disabled,.fyvr11q9[data-disabled]{background:var(--seq-colors-avalance-light)}.fyvr11qa:focus{background:var(--seq-colors-avalance-light)}.fyvr11qb:hover:not([disabled]){background:var(--seq-colors-avalance-light)}.fyvr11qc[data-state=checked]{background:var(--seq-colors-avalance-light)}.fyvr11qd,.fyvr11qe:active{background:var(--seq-colors-bsc-dark)}.fyvr11qf:disabled,.fyvr11qf[data-disabled]{background:var(--seq-colors-bsc-dark)}.fyvr11qg:focus{background:var(--seq-colors-bsc-dark)}.fyvr11qh:hover:not([disabled]){background:var(--seq-colors-bsc-dark)}.fyvr11qi[data-state=checked]{background:var(--seq-colors-bsc-dark)}.fyvr11qj,.fyvr11qk:active{background:var(--seq-colors-bsc-light)}.fyvr11ql:disabled,.fyvr11ql[data-disabled]{background:var(--seq-colors-bsc-light)}.fyvr11qm:focus{background:var(--seq-colors-bsc-light)}.fyvr11qn:hover:not([disabled]){background:var(--seq-colors-bsc-light)}.fyvr11qo[data-state=checked]{background:var(--seq-colors-bsc-light)}.fyvr11qp,.fyvr11qq:active{background:var(--seq-colors-ethereum-dark)}.fyvr11qr:disabled,.fyvr11qr[data-disabled]{background:var(--seq-colors-ethereum-dark)}.fyvr11qs:focus{background:var(--seq-colors-ethereum-dark)}.fyvr11qt:hover:not([disabled]){background:var(--seq-colors-ethereum-dark)}.fyvr11qu[data-state=checked]{background:var(--seq-colors-ethereum-dark)}.fyvr11qv,.fyvr11qw:active{background:var(--seq-colors-ethereum-light)}.fyvr11qx:disabled,.fyvr11qx[data-disabled]{background:var(--seq-colors-ethereum-light)}.fyvr11qy:focus{background:var(--seq-colors-ethereum-light)}.fyvr11qz:hover:not([disabled]){background:var(--seq-colors-ethereum-light)}.fyvr11r0[data-state=checked]{background:var(--seq-colors-ethereum-light)}.fyvr11r1,.fyvr11r2:active{background:var(--seq-colors-gnosis-dark)}.fyvr11r3:disabled,.fyvr11r3[data-disabled]{background:var(--seq-colors-gnosis-dark)}.fyvr11r4:focus{background:var(--seq-colors-gnosis-dark)}.fyvr11r5:hover:not([disabled]){background:var(--seq-colors-gnosis-dark)}.fyvr11r6[data-state=checked]{background:var(--seq-colors-gnosis-dark)}.fyvr11r7,.fyvr11r8:active{background:var(--seq-colors-gnosis-light)}.fyvr11r9:disabled,.fyvr11r9[data-disabled]{background:var(--seq-colors-gnosis-light)}.fyvr11ra:focus{background:var(--seq-colors-gnosis-light)}.fyvr11rb:hover:not([disabled]){background:var(--seq-colors-gnosis-light)}.fyvr11rc[data-state=checked]{background:var(--seq-colors-gnosis-light)}.fyvr11rd,.fyvr11re:active{background:var(--seq-colors-polygon-dark)}.fyvr11rf:disabled,.fyvr11rf[data-disabled]{background:var(--seq-colors-polygon-dark)}.fyvr11rg:focus{background:var(--seq-colors-polygon-dark)}.fyvr11rh:hover:not([disabled]){background:var(--seq-colors-polygon-dark)}.fyvr11ri[data-state=checked]{background:var(--seq-colors-polygon-dark)}.fyvr11rj,.fyvr11rk:active{background:var(--seq-colors-polygon-light)}.fyvr11rl:disabled,.fyvr11rl[data-disabled]{background:var(--seq-colors-polygon-light)}.fyvr11rm:focus{background:var(--seq-colors-polygon-light)}.fyvr11rn:hover:not([disabled]){background:var(--seq-colors-polygon-light)}.fyvr11ro[data-state=checked]{background:var(--seq-colors-polygon-light)}.fyvr11rp,.fyvr11rq:active{background:var(--seq-colors-text100)}.fyvr11rr:disabled,.fyvr11rr[data-disabled]{background:var(--seq-colors-text100)}.fyvr11rs:focus{background:var(--seq-colors-text100)}.fyvr11rt:hover:not([disabled]){background:var(--seq-colors-text100)}.fyvr11ru[data-state=checked]{background:var(--seq-colors-text100)}.fyvr11rv,.fyvr11rw:active{background:var(--seq-colors-text80)}.fyvr11rx:disabled,.fyvr11rx[data-disabled]{background:var(--seq-colors-text80)}.fyvr11ry:focus{background:var(--seq-colors-text80)}.fyvr11rz:hover:not([disabled]){background:var(--seq-colors-text80)}.fyvr11s0[data-state=checked]{background:var(--seq-colors-text80)}.fyvr11s1,.fyvr11s2:active{background:var(--seq-colors-text50)}.fyvr11s3:disabled,.fyvr11s3[data-disabled]{background:var(--seq-colors-text50)}.fyvr11s4:focus{background:var(--seq-colors-text50)}.fyvr11s5:hover:not([disabled]){background:var(--seq-colors-text50)}.fyvr11s6[data-state=checked]{background:var(--seq-colors-text50)}.fyvr11s7,.fyvr11s8:active{background:var(--seq-colors-text-inverse100)}.fyvr11s9:disabled,.fyvr11s9[data-disabled]{background:var(--seq-colors-text-inverse100)}.fyvr11sa:focus{background:var(--seq-colors-text-inverse100)}.fyvr11sb:hover:not([disabled]){background:var(--seq-colors-text-inverse100)}.fyvr11sc[data-state=checked]{background:var(--seq-colors-text-inverse100)}.fyvr11sd,.fyvr11se:active{background:var(--seq-colors-background-primary)}.fyvr11sf:disabled,.fyvr11sf[data-disabled]{background:var(--seq-colors-background-primary)}.fyvr11sg:focus{background:var(--seq-colors-background-primary)}.fyvr11sh:hover:not([disabled]){background:var(--seq-colors-background-primary)}.fyvr11si[data-state=checked]{background:var(--seq-colors-background-primary)}.fyvr11sj,.fyvr11sk:active{background:var(--seq-colors-background-secondary)}.fyvr11sl:disabled,.fyvr11sl[data-disabled]{background:var(--seq-colors-background-secondary)}.fyvr11sm:focus{background:var(--seq-colors-background-secondary)}.fyvr11sn:hover:not([disabled]){background:var(--seq-colors-background-secondary)}.fyvr11so[data-state=checked]{background:var(--seq-colors-background-secondary)}.fyvr11sp,.fyvr11sq:active{background:var(--seq-colors-background-contrast)}.fyvr11sr:disabled,.fyvr11sr[data-disabled]{background:var(--seq-colors-background-contrast)}.fyvr11ss:focus{background:var(--seq-colors-background-contrast)}.fyvr11st:hover:not([disabled]){background:var(--seq-colors-background-contrast)}.fyvr11su[data-state=checked]{background:var(--seq-colors-background-contrast)}.fyvr11sv,.fyvr11sw:active{background:var(--seq-colors-background-muted)}.fyvr11sx:disabled,.fyvr11sx[data-disabled]{background:var(--seq-colors-background-muted)}.fyvr11sy:focus{background:var(--seq-colors-background-muted)}.fyvr11sz:hover:not([disabled]){background:var(--seq-colors-background-muted)}.fyvr11t0[data-state=checked]{background:var(--seq-colors-background-muted)}.fyvr11t1,.fyvr11t2:active{background:var(--seq-colors-background-control)}.fyvr11t3:disabled,.fyvr11t3[data-disabled]{background:var(--seq-colors-background-control)}.fyvr11t4:focus{background:var(--seq-colors-background-control)}.fyvr11t5:hover:not([disabled]){background:var(--seq-colors-background-control)}.fyvr11t6[data-state=checked]{background:var(--seq-colors-background-control)}.fyvr11t7,.fyvr11t8:active{background:var(--seq-colors-background-inverse)}.fyvr11t9:disabled,.fyvr11t9[data-disabled]{background:var(--seq-colors-background-inverse)}.fyvr11ta:focus{background:var(--seq-colors-background-inverse)}.fyvr11tb:hover:not([disabled]){background:var(--seq-colors-background-inverse)}.fyvr11tc[data-state=checked]{background:var(--seq-colors-background-inverse)}.fyvr11td,.fyvr11te:active{background:var(--seq-colors-background-backdrop)}.fyvr11tf:disabled,.fyvr11tf[data-disabled]{background:var(--seq-colors-background-backdrop)}.fyvr11tg:focus{background:var(--seq-colors-background-backdrop)}.fyvr11th:hover:not([disabled]){background:var(--seq-colors-background-backdrop)}.fyvr11ti[data-state=checked]{background:var(--seq-colors-background-backdrop)}.fyvr11tj,.fyvr11tk:active{background:var(--seq-colors-background-overlay)}.fyvr11tl:disabled,.fyvr11tl[data-disabled]{background:var(--seq-colors-background-overlay)}.fyvr11tm:focus{background:var(--seq-colors-background-overlay)}.fyvr11tn:hover:not([disabled]){background:var(--seq-colors-background-overlay)}.fyvr11to[data-state=checked]{background:var(--seq-colors-background-overlay)}.fyvr11tp,.fyvr11tq:active{background:var(--seq-colors-background-raised)}.fyvr11tr:disabled,.fyvr11tr[data-disabled]{background:var(--seq-colors-background-raised)}.fyvr11ts:focus{background:var(--seq-colors-background-raised)}.fyvr11tt:hover:not([disabled]){background:var(--seq-colors-background-raised)}.fyvr11tu[data-state=checked]{background:var(--seq-colors-background-raised)}.fyvr11tv,.fyvr11tw:active{background:var(--seq-colors-button-glass)}.fyvr11tx:disabled,.fyvr11tx[data-disabled]{background:var(--seq-colors-button-glass)}.fyvr11ty:focus{background:var(--seq-colors-button-glass)}.fyvr11tz:hover:not([disabled]){background:var(--seq-colors-button-glass)}.fyvr11u0[data-state=checked]{background:var(--seq-colors-button-glass)}.fyvr11u1,.fyvr11u2:active{background:var(--seq-colors-button-emphasis)}.fyvr11u3:disabled,.fyvr11u3[data-disabled]{background:var(--seq-colors-button-emphasis)}.fyvr11u4:focus{background:var(--seq-colors-button-emphasis)}.fyvr11u5:hover:not([disabled]){background:var(--seq-colors-button-emphasis)}.fyvr11u6[data-state=checked]{background:var(--seq-colors-button-emphasis)}.fyvr11u7,.fyvr11u8:active{background:var(--seq-colors-button-inverse)}.fyvr11u9:disabled,.fyvr11u9[data-disabled]{background:var(--seq-colors-button-inverse)}.fyvr11ua:focus{background:var(--seq-colors-button-inverse)}.fyvr11ub:hover:not([disabled]){background:var(--seq-colors-button-inverse)}.fyvr11uc[data-state=checked]{background:var(--seq-colors-button-inverse)}.fyvr11ud,.fyvr11ue:active{background:var(--seq-colors-border-normal)}.fyvr11uf:disabled,.fyvr11uf[data-disabled]{background:var(--seq-colors-border-normal)}.fyvr11ug:focus{background:var(--seq-colors-border-normal)}.fyvr11uh:hover:not([disabled]){background:var(--seq-colors-border-normal)}.fyvr11ui[data-state=checked]{background:var(--seq-colors-border-normal)}.fyvr11uj,.fyvr11uk:active{background:var(--seq-colors-border-focus)}.fyvr11ul:disabled,.fyvr11ul[data-disabled]{background:var(--seq-colors-border-focus)}.fyvr11um:focus{background:var(--seq-colors-border-focus)}.fyvr11un:hover:not([disabled]){background:var(--seq-colors-border-focus)}.fyvr11uo[data-state=checked]{background:var(--seq-colors-border-focus)}.fyvr11up,.fyvr11uq:active{border-bottom-color:var(--seq-colors-black)}.fyvr11ur:disabled,.fyvr11ur[data-disabled]{border-bottom-color:var(--seq-colors-black)}.fyvr11us:focus{border-bottom-color:var(--seq-colors-black)}.fyvr11ut:hover:not([disabled]){border-bottom-color:var(--seq-colors-black)}.fyvr11uu[data-state=checked]{border-bottom-color:var(--seq-colors-black)}.fyvr11uv,.fyvr11uw:active{border-bottom-color:var(--seq-colors-white)}.fyvr11ux:disabled,.fyvr11ux[data-disabled]{border-bottom-color:var(--seq-colors-white)}.fyvr11uy:focus{border-bottom-color:var(--seq-colors-white)}.fyvr11uz:hover:not([disabled]){border-bottom-color:var(--seq-colors-white)}.fyvr11v0[data-state=checked]{border-bottom-color:var(--seq-colors-white)}.fyvr11v1,.fyvr11v2:active{border-bottom-color:var(--seq-colors-inherit)}.fyvr11v3:disabled,.fyvr11v3[data-disabled]{border-bottom-color:var(--seq-colors-inherit)}.fyvr11v4:focus{border-bottom-color:var(--seq-colors-inherit)}.fyvr11v5:hover:not([disabled]){border-bottom-color:var(--seq-colors-inherit)}.fyvr11v6[data-state=checked]{border-bottom-color:var(--seq-colors-inherit)}.fyvr11v7,.fyvr11v8:active{border-bottom-color:var(--seq-colors-transparent)}.fyvr11v9:disabled,.fyvr11v9[data-disabled]{border-bottom-color:var(--seq-colors-transparent)}.fyvr11va:focus{border-bottom-color:var(--seq-colors-transparent)}.fyvr11vb:hover:not([disabled]){border-bottom-color:var(--seq-colors-transparent)}.fyvr11vc[data-state=checked]{border-bottom-color:var(--seq-colors-transparent)}.fyvr11vd,.fyvr11ve:active{border-bottom-color:var(--seq-colors-positive)}.fyvr11vf:disabled,.fyvr11vf[data-disabled]{border-bottom-color:var(--seq-colors-positive)}.fyvr11vg:focus{border-bottom-color:var(--seq-colors-positive)}.fyvr11vh:hover:not([disabled]){border-bottom-color:var(--seq-colors-positive)}.fyvr11vi[data-state=checked]{border-bottom-color:var(--seq-colors-positive)}.fyvr11vj,.fyvr11vk:active{border-bottom-color:var(--seq-colors-negative)}.fyvr11vl:disabled,.fyvr11vl[data-disabled]{border-bottom-color:var(--seq-colors-negative)}.fyvr11vm:focus{border-bottom-color:var(--seq-colors-negative)}.fyvr11vn:hover:not([disabled]){border-bottom-color:var(--seq-colors-negative)}.fyvr11vo[data-state=checked]{border-bottom-color:var(--seq-colors-negative)}.fyvr11vp,.fyvr11vq:active{border-bottom-color:var(--seq-colors-info)}.fyvr11vr:disabled,.fyvr11vr[data-disabled]{border-bottom-color:var(--seq-colors-info)}.fyvr11vs:focus{border-bottom-color:var(--seq-colors-info)}.fyvr11vt:hover:not([disabled]){border-bottom-color:var(--seq-colors-info)}.fyvr11vu[data-state=checked]{border-bottom-color:var(--seq-colors-info)}.fyvr11vv,.fyvr11vw:active{border-bottom-color:var(--seq-colors-warning)}.fyvr11vx:disabled,.fyvr11vx[data-disabled]{border-bottom-color:var(--seq-colors-warning)}.fyvr11vy:focus{border-bottom-color:var(--seq-colors-warning)}.fyvr11vz:hover:not([disabled]){border-bottom-color:var(--seq-colors-warning)}.fyvr11w0[data-state=checked]{border-bottom-color:var(--seq-colors-warning)}.fyvr11w1,.fyvr11w2:active{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w3:disabled,.fyvr11w3[data-disabled]{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w4:focus{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w5:hover:not([disabled]){border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w6[data-state=checked]{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w7,.fyvr11w8:active{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11w9:disabled,.fyvr11w9[data-disabled]{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11wa:focus{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11wb:hover:not([disabled]){border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11wc[data-state=checked]{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11wd,.fyvr11we:active{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wf:disabled,.fyvr11wf[data-disabled]{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wg:focus{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wh:hover:not([disabled]){border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wi[data-state=checked]{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wj,.fyvr11wk:active{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wl:disabled,.fyvr11wl[data-disabled]{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wm:focus{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wn:hover:not([disabled]){border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wo[data-state=checked]{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wp,.fyvr11wq:active{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11wr:disabled,.fyvr11wr[data-disabled]{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11ws:focus{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11wt:hover:not([disabled]){border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11wu[data-state=checked]{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11wv,.fyvr11ww:active{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11wx:disabled,.fyvr11wx[data-disabled]{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11wy:focus{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11wz:hover:not([disabled]){border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11x0[data-state=checked]{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11x1,.fyvr11x2:active{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x3:disabled,.fyvr11x3[data-disabled]{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x4:focus{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x5:hover:not([disabled]){border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x6[data-state=checked]{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x7,.fyvr11x8:active{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11x9:disabled,.fyvr11x9[data-disabled]{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11xa:focus{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11xb:hover:not([disabled]){border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11xc[data-state=checked]{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11xd,.fyvr11xe:active{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xf:disabled,.fyvr11xf[data-disabled]{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xg:focus{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xh:hover:not([disabled]){border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xi[data-state=checked]{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xj,.fyvr11xk:active{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xl:disabled,.fyvr11xl[data-disabled]{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xm:focus{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xn:hover:not([disabled]){border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xo[data-state=checked]{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xp,.fyvr11xq:active{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xr:disabled,.fyvr11xr[data-disabled]{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xs:focus{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xt:hover:not([disabled]){border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xu[data-state=checked]{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xv,.fyvr11xw:active{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11xx:disabled,.fyvr11xx[data-disabled]{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11xy:focus{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11xz:hover:not([disabled]){border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11y0[data-state=checked]{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11y1,.fyvr11y2:active{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y3:disabled,.fyvr11y3[data-disabled]{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y4:focus{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y5:hover:not([disabled]){border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y6[data-state=checked]{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y7,.fyvr11y8:active{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11y9:disabled,.fyvr11y9[data-disabled]{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11ya:focus{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11yb:hover:not([disabled]){border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11yc[data-state=checked]{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11yd,.fyvr11ye:active{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yf:disabled,.fyvr11yf[data-disabled]{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yg:focus{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yh:hover:not([disabled]){border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yi[data-state=checked]{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yj,.fyvr11yk:active{border-bottom-color:var(--seq-colors-text100)}.fyvr11yl:disabled,.fyvr11yl[data-disabled]{border-bottom-color:var(--seq-colors-text100)}.fyvr11ym:focus{border-bottom-color:var(--seq-colors-text100)}.fyvr11yn:hover:not([disabled]){border-bottom-color:var(--seq-colors-text100)}.fyvr11yo[data-state=checked]{border-bottom-color:var(--seq-colors-text100)}.fyvr11yp,.fyvr11yq:active{border-bottom-color:var(--seq-colors-text80)}.fyvr11yr:disabled,.fyvr11yr[data-disabled]{border-bottom-color:var(--seq-colors-text80)}.fyvr11ys:focus{border-bottom-color:var(--seq-colors-text80)}.fyvr11yt:hover:not([disabled]){border-bottom-color:var(--seq-colors-text80)}.fyvr11yu[data-state=checked]{border-bottom-color:var(--seq-colors-text80)}.fyvr11yv,.fyvr11yw:active{border-bottom-color:var(--seq-colors-text50)}.fyvr11yx:disabled,.fyvr11yx[data-disabled]{border-bottom-color:var(--seq-colors-text50)}.fyvr11yy:focus{border-bottom-color:var(--seq-colors-text50)}.fyvr11yz:hover:not([disabled]){border-bottom-color:var(--seq-colors-text50)}.fyvr11z0[data-state=checked]{border-bottom-color:var(--seq-colors-text50)}.fyvr11z1,.fyvr11z2:active{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z3:disabled,.fyvr11z3[data-disabled]{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z4:focus{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z5:hover:not([disabled]){border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z6[data-state=checked]{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z7,.fyvr11z8:active{border-bottom-color:var(--seq-colors-background-primary)}.fyvr11z9:disabled,.fyvr11z9[data-disabled]{border-bottom-color:var(--seq-colors-background-primary)}.fyvr11za:focus{border-bottom-color:var(--seq-colors-background-primary)}.fyvr11zb:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-primary)}.fyvr11zc[data-state=checked]{border-bottom-color:var(--seq-colors-background-primary)}.fyvr11zd,.fyvr11ze:active{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zf:disabled,.fyvr11zf[data-disabled]{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zg:focus{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zh:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zi[data-state=checked]{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zj,.fyvr11zk:active{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zl:disabled,.fyvr11zl[data-disabled]{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zm:focus{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zn:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zo[data-state=checked]{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zp,.fyvr11zq:active{border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zr:disabled,.fyvr11zr[data-disabled]{border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zs:focus{border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zt:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zu[data-state=checked]{border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zv,.fyvr11zw:active{border-bottom-color:var(--seq-colors-background-control)}.fyvr11zx:disabled,.fyvr11zx[data-disabled]{border-bottom-color:var(--seq-colors-background-control)}.fyvr11zy:focus{border-bottom-color:var(--seq-colors-background-control)}.fyvr11zz:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-control)}.fyvr1200[data-state=checked]{border-bottom-color:var(--seq-colors-background-control)}.fyvr1201,.fyvr1202:active{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1203:disabled,.fyvr1203[data-disabled]{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1204:focus{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1205:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1206[data-state=checked]{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1207,.fyvr1208:active{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr1209:disabled,.fyvr1209[data-disabled]{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr120a:focus{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr120b:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr120c[data-state=checked]{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr120d,.fyvr120e:active{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120f:disabled,.fyvr120f[data-disabled]{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120g:focus{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120h:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120i[data-state=checked]{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120j,.fyvr120k:active{border-bottom-color:var(--seq-colors-background-raised)}.fyvr120l:disabled,.fyvr120l[data-disabled]{border-bottom-color:var(--seq-colors-background-raised)}.fyvr120m:focus{border-bottom-color:var(--seq-colors-background-raised)}.fyvr120n:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-raised)}.fyvr120o[data-state=checked]{border-bottom-color:var(--seq-colors-background-raised)}.fyvr120p,.fyvr120q:active{border-bottom-color:var(--seq-colors-button-glass)}.fyvr120r:disabled,.fyvr120r[data-disabled]{border-bottom-color:var(--seq-colors-button-glass)}.fyvr120s:focus{border-bottom-color:var(--seq-colors-button-glass)}.fyvr120t:hover:not([disabled]){border-bottom-color:var(--seq-colors-button-glass)}.fyvr120u[data-state=checked]{border-bottom-color:var(--seq-colors-button-glass)}.fyvr120v,.fyvr120w:active{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr120x:disabled,.fyvr120x[data-disabled]{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr120y:focus{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr120z:hover:not([disabled]){border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr1210[data-state=checked]{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr1211,.fyvr1212:active{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1213:disabled,.fyvr1213[data-disabled]{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1214:focus{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1215:hover:not([disabled]){border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1216[data-state=checked]{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1217,.fyvr1218:active{border-bottom-color:var(--seq-colors-border-normal)}.fyvr1219:disabled,.fyvr1219[data-disabled]{border-bottom-color:var(--seq-colors-border-normal)}.fyvr121a:focus{border-bottom-color:var(--seq-colors-border-normal)}.fyvr121b:hover:not([disabled]){border-bottom-color:var(--seq-colors-border-normal)}.fyvr121c[data-state=checked]{border-bottom-color:var(--seq-colors-border-normal)}.fyvr121d,.fyvr121e:active{border-bottom-color:var(--seq-colors-border-focus)}.fyvr121f:disabled,.fyvr121f[data-disabled]{border-bottom-color:var(--seq-colors-border-focus)}.fyvr121g:focus{border-bottom-color:var(--seq-colors-border-focus)}.fyvr121h:hover:not([disabled]){border-bottom-color:var(--seq-colors-border-focus)}.fyvr121i[data-state=checked]{border-bottom-color:var(--seq-colors-border-focus)}.fyvr121j,.fyvr121k:active{border-bottom-style:solid}.fyvr121l:disabled,.fyvr121l[data-disabled]{border-bottom-style:solid}.fyvr121m:focus{border-bottom-style:solid}.fyvr121n:hover:not([disabled]){border-bottom-style:solid}.fyvr121o[data-state=checked]{border-bottom-style:solid}.fyvr121p,.fyvr121q:active{border-bottom-style:dashed}.fyvr121r:disabled,.fyvr121r[data-disabled]{border-bottom-style:dashed}.fyvr121s:focus{border-bottom-style:dashed}.fyvr121t:hover:not([disabled]){border-bottom-style:dashed}.fyvr121u[data-state=checked]{border-bottom-style:dashed}.fyvr121v,.fyvr121w:active{border-bottom-style:dotted}.fyvr121x:disabled,.fyvr121x[data-disabled]{border-bottom-style:dotted}.fyvr121y:focus{border-bottom-style:dotted}.fyvr121z:hover:not([disabled]){border-bottom-style:dotted}.fyvr1220[data-state=checked]{border-bottom-style:dotted}.fyvr1221,.fyvr1222:active{border-left-color:var(--seq-colors-black)}.fyvr1223:disabled,.fyvr1223[data-disabled]{border-left-color:var(--seq-colors-black)}.fyvr1224:focus{border-left-color:var(--seq-colors-black)}.fyvr1225:hover:not([disabled]){border-left-color:var(--seq-colors-black)}.fyvr1226[data-state=checked]{border-left-color:var(--seq-colors-black)}.fyvr1227,.fyvr1228:active{border-left-color:var(--seq-colors-white)}.fyvr1229:disabled,.fyvr1229[data-disabled]{border-left-color:var(--seq-colors-white)}.fyvr122a:focus{border-left-color:var(--seq-colors-white)}.fyvr122b:hover:not([disabled]){border-left-color:var(--seq-colors-white)}.fyvr122c[data-state=checked]{border-left-color:var(--seq-colors-white)}.fyvr122d,.fyvr122e:active{border-left-color:var(--seq-colors-inherit)}.fyvr122f:disabled,.fyvr122f[data-disabled]{border-left-color:var(--seq-colors-inherit)}.fyvr122g:focus{border-left-color:var(--seq-colors-inherit)}.fyvr122h:hover:not([disabled]){border-left-color:var(--seq-colors-inherit)}.fyvr122i[data-state=checked]{border-left-color:var(--seq-colors-inherit)}.fyvr122j,.fyvr122k:active{border-left-color:var(--seq-colors-transparent)}.fyvr122l:disabled,.fyvr122l[data-disabled]{border-left-color:var(--seq-colors-transparent)}.fyvr122m:focus{border-left-color:var(--seq-colors-transparent)}.fyvr122n:hover:not([disabled]){border-left-color:var(--seq-colors-transparent)}.fyvr122o[data-state=checked]{border-left-color:var(--seq-colors-transparent)}.fyvr122p,.fyvr122q:active{border-left-color:var(--seq-colors-positive)}.fyvr122r:disabled,.fyvr122r[data-disabled]{border-left-color:var(--seq-colors-positive)}.fyvr122s:focus{border-left-color:var(--seq-colors-positive)}.fyvr122t:hover:not([disabled]){border-left-color:var(--seq-colors-positive)}.fyvr122u[data-state=checked]{border-left-color:var(--seq-colors-positive)}.fyvr122v,.fyvr122w:active{border-left-color:var(--seq-colors-negative)}.fyvr122x:disabled,.fyvr122x[data-disabled]{border-left-color:var(--seq-colors-negative)}.fyvr122y:focus{border-left-color:var(--seq-colors-negative)}.fyvr122z:hover:not([disabled]){border-left-color:var(--seq-colors-negative)}.fyvr1230[data-state=checked]{border-left-color:var(--seq-colors-negative)}.fyvr1231,.fyvr1232:active{border-left-color:var(--seq-colors-info)}.fyvr1233:disabled,.fyvr1233[data-disabled]{border-left-color:var(--seq-colors-info)}.fyvr1234:focus{border-left-color:var(--seq-colors-info)}.fyvr1235:hover:not([disabled]){border-left-color:var(--seq-colors-info)}.fyvr1236[data-state=checked]{border-left-color:var(--seq-colors-info)}.fyvr1237,.fyvr1238:active{border-left-color:var(--seq-colors-warning)}.fyvr1239:disabled,.fyvr1239[data-disabled]{border-left-color:var(--seq-colors-warning)}.fyvr123a:focus{border-left-color:var(--seq-colors-warning)}.fyvr123b:hover:not([disabled]){border-left-color:var(--seq-colors-warning)}.fyvr123c[data-state=checked]{border-left-color:var(--seq-colors-warning)}.fyvr123d,.fyvr123e:active{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123f:disabled,.fyvr123f[data-disabled]{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123g:focus{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123h:hover:not([disabled]){border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123i[data-state=checked]{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123j,.fyvr123k:active{border-left-color:var(--seq-colors-gradient-primary)}.fyvr123l:disabled,.fyvr123l[data-disabled]{border-left-color:var(--seq-colors-gradient-primary)}.fyvr123m:focus{border-left-color:var(--seq-colors-gradient-primary)}.fyvr123n:hover:not([disabled]){border-left-color:var(--seq-colors-gradient-primary)}.fyvr123o[data-state=checked]{border-left-color:var(--seq-colors-gradient-primary)}.fyvr123p,.fyvr123q:active{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123r:disabled,.fyvr123r[data-disabled]{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123s:focus{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123t:hover:not([disabled]){border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123u[data-state=checked]{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123v,.fyvr123w:active{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr123x:disabled,.fyvr123x[data-disabled]{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr123y:focus{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr123z:hover:not([disabled]){border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr1240[data-state=checked]{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr1241,.fyvr1242:active{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1243:disabled,.fyvr1243[data-disabled]{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1244:focus{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1245:hover:not([disabled]){border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1246[data-state=checked]{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1247,.fyvr1248:active{border-left-color:var(--seq-colors-avalance-dark)}.fyvr1249:disabled,.fyvr1249[data-disabled]{border-left-color:var(--seq-colors-avalance-dark)}.fyvr124a:focus{border-left-color:var(--seq-colors-avalance-dark)}.fyvr124b:hover:not([disabled]){border-left-color:var(--seq-colors-avalance-dark)}.fyvr124c[data-state=checked]{border-left-color:var(--seq-colors-avalance-dark)}.fyvr124d,.fyvr124e:active{border-left-color:var(--seq-colors-avalance-light)}.fyvr124f:disabled,.fyvr124f[data-disabled]{border-left-color:var(--seq-colors-avalance-light)}.fyvr124g:focus{border-left-color:var(--seq-colors-avalance-light)}.fyvr124h:hover:not([disabled]){border-left-color:var(--seq-colors-avalance-light)}.fyvr124i[data-state=checked]{border-left-color:var(--seq-colors-avalance-light)}.fyvr124j,.fyvr124k:active{border-left-color:var(--seq-colors-bsc-dark)}.fyvr124l:disabled,.fyvr124l[data-disabled]{border-left-color:var(--seq-colors-bsc-dark)}.fyvr124m:focus{border-left-color:var(--seq-colors-bsc-dark)}.fyvr124n:hover:not([disabled]){border-left-color:var(--seq-colors-bsc-dark)}.fyvr124o[data-state=checked]{border-left-color:var(--seq-colors-bsc-dark)}.fyvr124p,.fyvr124q:active{border-left-color:var(--seq-colors-bsc-light)}.fyvr124r:disabled,.fyvr124r[data-disabled]{border-left-color:var(--seq-colors-bsc-light)}.fyvr124s:focus{border-left-color:var(--seq-colors-bsc-light)}.fyvr124t:hover:not([disabled]){border-left-color:var(--seq-colors-bsc-light)}.fyvr124u[data-state=checked]{border-left-color:var(--seq-colors-bsc-light)}.fyvr124v,.fyvr124w:active{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr124x:disabled,.fyvr124x[data-disabled]{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr124y:focus{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr124z:hover:not([disabled]){border-left-color:var(--seq-colors-ethereum-dark)}.fyvr1250[data-state=checked]{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr1251,.fyvr1252:active{border-left-color:var(--seq-colors-ethereum-light)}.fyvr1253:disabled,.fyvr1253[data-disabled]{border-left-color:var(--seq-colors-ethereum-light)}.fyvr1254:focus{border-left-color:var(--seq-colors-ethereum-light)}.fyvr1255:hover:not([disabled]){border-left-color:var(--seq-colors-ethereum-light)}.fyvr1256[data-state=checked]{border-left-color:var(--seq-colors-ethereum-light)}.fyvr1257,.fyvr1258:active{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr1259:disabled,.fyvr1259[data-disabled]{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr125a:focus{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr125b:hover:not([disabled]){border-left-color:var(--seq-colors-gnosis-dark)}.fyvr125c[data-state=checked]{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr125d,.fyvr125e:active{border-left-color:var(--seq-colors-gnosis-light)}.fyvr125f:disabled,.fyvr125f[data-disabled]{border-left-color:var(--seq-colors-gnosis-light)}.fyvr125g:focus{border-left-color:var(--seq-colors-gnosis-light)}.fyvr125h:hover:not([disabled]){border-left-color:var(--seq-colors-gnosis-light)}.fyvr125i[data-state=checked]{border-left-color:var(--seq-colors-gnosis-light)}.fyvr125j,.fyvr125k:active{border-left-color:var(--seq-colors-polygon-dark)}.fyvr125l:disabled,.fyvr125l[data-disabled]{border-left-color:var(--seq-colors-polygon-dark)}.fyvr125m:focus{border-left-color:var(--seq-colors-polygon-dark)}.fyvr125n:hover:not([disabled]){border-left-color:var(--seq-colors-polygon-dark)}.fyvr125o[data-state=checked]{border-left-color:var(--seq-colors-polygon-dark)}.fyvr125p,.fyvr125q:active{border-left-color:var(--seq-colors-polygon-light)}.fyvr125r:disabled,.fyvr125r[data-disabled]{border-left-color:var(--seq-colors-polygon-light)}.fyvr125s:focus{border-left-color:var(--seq-colors-polygon-light)}.fyvr125t:hover:not([disabled]){border-left-color:var(--seq-colors-polygon-light)}.fyvr125u[data-state=checked]{border-left-color:var(--seq-colors-polygon-light)}.fyvr125v,.fyvr125w:active{border-left-color:var(--seq-colors-text100)}.fyvr125x:disabled,.fyvr125x[data-disabled]{border-left-color:var(--seq-colors-text100)}.fyvr125y:focus{border-left-color:var(--seq-colors-text100)}.fyvr125z:hover:not([disabled]){border-left-color:var(--seq-colors-text100)}.fyvr1260[data-state=checked]{border-left-color:var(--seq-colors-text100)}.fyvr1261,.fyvr1262:active{border-left-color:var(--seq-colors-text80)}.fyvr1263:disabled,.fyvr1263[data-disabled]{border-left-color:var(--seq-colors-text80)}.fyvr1264:focus{border-left-color:var(--seq-colors-text80)}.fyvr1265:hover:not([disabled]){border-left-color:var(--seq-colors-text80)}.fyvr1266[data-state=checked]{border-left-color:var(--seq-colors-text80)}.fyvr1267,.fyvr1268:active{border-left-color:var(--seq-colors-text50)}.fyvr1269:disabled,.fyvr1269[data-disabled]{border-left-color:var(--seq-colors-text50)}.fyvr126a:focus{border-left-color:var(--seq-colors-text50)}.fyvr126b:hover:not([disabled]){border-left-color:var(--seq-colors-text50)}.fyvr126c[data-state=checked]{border-left-color:var(--seq-colors-text50)}.fyvr126d,.fyvr126e:active{border-left-color:var(--seq-colors-text-inverse100)}.fyvr126f:disabled,.fyvr126f[data-disabled]{border-left-color:var(--seq-colors-text-inverse100)}.fyvr126g:focus{border-left-color:var(--seq-colors-text-inverse100)}.fyvr126h:hover:not([disabled]){border-left-color:var(--seq-colors-text-inverse100)}.fyvr126i[data-state=checked]{border-left-color:var(--seq-colors-text-inverse100)}.fyvr126j,.fyvr126k:active{border-left-color:var(--seq-colors-background-primary)}.fyvr126l:disabled,.fyvr126l[data-disabled]{border-left-color:var(--seq-colors-background-primary)}.fyvr126m:focus{border-left-color:var(--seq-colors-background-primary)}.fyvr126n:hover:not([disabled]){border-left-color:var(--seq-colors-background-primary)}.fyvr126o[data-state=checked]{border-left-color:var(--seq-colors-background-primary)}.fyvr126p,.fyvr126q:active{border-left-color:var(--seq-colors-background-secondary)}.fyvr126r:disabled,.fyvr126r[data-disabled]{border-left-color:var(--seq-colors-background-secondary)}.fyvr126s:focus{border-left-color:var(--seq-colors-background-secondary)}.fyvr126t:hover:not([disabled]){border-left-color:var(--seq-colors-background-secondary)}.fyvr126u[data-state=checked]{border-left-color:var(--seq-colors-background-secondary)}.fyvr126v,.fyvr126w:active{border-left-color:var(--seq-colors-background-contrast)}.fyvr126x:disabled,.fyvr126x[data-disabled]{border-left-color:var(--seq-colors-background-contrast)}.fyvr126y:focus{border-left-color:var(--seq-colors-background-contrast)}.fyvr126z:hover:not([disabled]){border-left-color:var(--seq-colors-background-contrast)}.fyvr1270[data-state=checked]{border-left-color:var(--seq-colors-background-contrast)}.fyvr1271,.fyvr1272:active{border-left-color:var(--seq-colors-background-muted)}.fyvr1273:disabled,.fyvr1273[data-disabled]{border-left-color:var(--seq-colors-background-muted)}.fyvr1274:focus{border-left-color:var(--seq-colors-background-muted)}.fyvr1275:hover:not([disabled]){border-left-color:var(--seq-colors-background-muted)}.fyvr1276[data-state=checked]{border-left-color:var(--seq-colors-background-muted)}.fyvr1277,.fyvr1278:active{border-left-color:var(--seq-colors-background-control)}.fyvr1279:disabled,.fyvr1279[data-disabled]{border-left-color:var(--seq-colors-background-control)}.fyvr127a:focus{border-left-color:var(--seq-colors-background-control)}.fyvr127b:hover:not([disabled]){border-left-color:var(--seq-colors-background-control)}.fyvr127c[data-state=checked]{border-left-color:var(--seq-colors-background-control)}.fyvr127d,.fyvr127e:active{border-left-color:var(--seq-colors-background-inverse)}.fyvr127f:disabled,.fyvr127f[data-disabled]{border-left-color:var(--seq-colors-background-inverse)}.fyvr127g:focus{border-left-color:var(--seq-colors-background-inverse)}.fyvr127h:hover:not([disabled]){border-left-color:var(--seq-colors-background-inverse)}.fyvr127i[data-state=checked]{border-left-color:var(--seq-colors-background-inverse)}.fyvr127j,.fyvr127k:active{border-left-color:var(--seq-colors-background-backdrop)}.fyvr127l:disabled,.fyvr127l[data-disabled]{border-left-color:var(--seq-colors-background-backdrop)}.fyvr127m:focus{border-left-color:var(--seq-colors-background-backdrop)}.fyvr127n:hover:not([disabled]){border-left-color:var(--seq-colors-background-backdrop)}.fyvr127o[data-state=checked]{border-left-color:var(--seq-colors-background-backdrop)}.fyvr127p,.fyvr127q:active{border-left-color:var(--seq-colors-background-overlay)}.fyvr127r:disabled,.fyvr127r[data-disabled]{border-left-color:var(--seq-colors-background-overlay)}.fyvr127s:focus{border-left-color:var(--seq-colors-background-overlay)}.fyvr127t:hover:not([disabled]){border-left-color:var(--seq-colors-background-overlay)}.fyvr127u[data-state=checked]{border-left-color:var(--seq-colors-background-overlay)}.fyvr127v,.fyvr127w:active{border-left-color:var(--seq-colors-background-raised)}.fyvr127x:disabled,.fyvr127x[data-disabled]{border-left-color:var(--seq-colors-background-raised)}.fyvr127y:focus{border-left-color:var(--seq-colors-background-raised)}.fyvr127z:hover:not([disabled]){border-left-color:var(--seq-colors-background-raised)}.fyvr1280[data-state=checked]{border-left-color:var(--seq-colors-background-raised)}.fyvr1281,.fyvr1282:active{border-left-color:var(--seq-colors-button-glass)}.fyvr1283:disabled,.fyvr1283[data-disabled]{border-left-color:var(--seq-colors-button-glass)}.fyvr1284:focus{border-left-color:var(--seq-colors-button-glass)}.fyvr1285:hover:not([disabled]){border-left-color:var(--seq-colors-button-glass)}.fyvr1286[data-state=checked]{border-left-color:var(--seq-colors-button-glass)}.fyvr1287,.fyvr1288:active{border-left-color:var(--seq-colors-button-emphasis)}.fyvr1289:disabled,.fyvr1289[data-disabled]{border-left-color:var(--seq-colors-button-emphasis)}.fyvr128a:focus{border-left-color:var(--seq-colors-button-emphasis)}.fyvr128b:hover:not([disabled]){border-left-color:var(--seq-colors-button-emphasis)}.fyvr128c[data-state=checked]{border-left-color:var(--seq-colors-button-emphasis)}.fyvr128d,.fyvr128e:active{border-left-color:var(--seq-colors-button-inverse)}.fyvr128f:disabled,.fyvr128f[data-disabled]{border-left-color:var(--seq-colors-button-inverse)}.fyvr128g:focus{border-left-color:var(--seq-colors-button-inverse)}.fyvr128h:hover:not([disabled]){border-left-color:var(--seq-colors-button-inverse)}.fyvr128i[data-state=checked]{border-left-color:var(--seq-colors-button-inverse)}.fyvr128j,.fyvr128k:active{border-left-color:var(--seq-colors-border-normal)}.fyvr128l:disabled,.fyvr128l[data-disabled]{border-left-color:var(--seq-colors-border-normal)}.fyvr128m:focus{border-left-color:var(--seq-colors-border-normal)}.fyvr128n:hover:not([disabled]){border-left-color:var(--seq-colors-border-normal)}.fyvr128o[data-state=checked]{border-left-color:var(--seq-colors-border-normal)}.fyvr128p,.fyvr128q:active{border-left-color:var(--seq-colors-border-focus)}.fyvr128r:disabled,.fyvr128r[data-disabled]{border-left-color:var(--seq-colors-border-focus)}.fyvr128s:focus{border-left-color:var(--seq-colors-border-focus)}.fyvr128t:hover:not([disabled]){border-left-color:var(--seq-colors-border-focus)}.fyvr128u[data-state=checked]{border-left-color:var(--seq-colors-border-focus)}.fyvr128v,.fyvr128w:active{border-left-style:solid}.fyvr128x:disabled,.fyvr128x[data-disabled]{border-left-style:solid}.fyvr128y:focus{border-left-style:solid}.fyvr128z:hover:not([disabled]){border-left-style:solid}.fyvr1290[data-state=checked]{border-left-style:solid}.fyvr1291,.fyvr1292:active{border-left-style:dashed}.fyvr1293:disabled,.fyvr1293[data-disabled]{border-left-style:dashed}.fyvr1294:focus{border-left-style:dashed}.fyvr1295:hover:not([disabled]){border-left-style:dashed}.fyvr1296[data-state=checked]{border-left-style:dashed}.fyvr1297,.fyvr1298:active{border-left-style:dotted}.fyvr1299:disabled,.fyvr1299[data-disabled]{border-left-style:dotted}.fyvr129a:focus{border-left-style:dotted}.fyvr129b:hover:not([disabled]){border-left-style:dotted}.fyvr129c[data-state=checked]{border-left-style:dotted}.fyvr129d,.fyvr129e:active{border-right-color:var(--seq-colors-black)}.fyvr129f:disabled,.fyvr129f[data-disabled]{border-right-color:var(--seq-colors-black)}.fyvr129g:focus{border-right-color:var(--seq-colors-black)}.fyvr129h:hover:not([disabled]){border-right-color:var(--seq-colors-black)}.fyvr129i[data-state=checked]{border-right-color:var(--seq-colors-black)}.fyvr129j,.fyvr129k:active{border-right-color:var(--seq-colors-white)}.fyvr129l:disabled,.fyvr129l[data-disabled]{border-right-color:var(--seq-colors-white)}.fyvr129m:focus{border-right-color:var(--seq-colors-white)}.fyvr129n:hover:not([disabled]){border-right-color:var(--seq-colors-white)}.fyvr129o[data-state=checked]{border-right-color:var(--seq-colors-white)}.fyvr129p,.fyvr129q:active{border-right-color:var(--seq-colors-inherit)}.fyvr129r:disabled,.fyvr129r[data-disabled]{border-right-color:var(--seq-colors-inherit)}.fyvr129s:focus{border-right-color:var(--seq-colors-inherit)}.fyvr129t:hover:not([disabled]){border-right-color:var(--seq-colors-inherit)}.fyvr129u[data-state=checked]{border-right-color:var(--seq-colors-inherit)}.fyvr129v,.fyvr129w:active{border-right-color:var(--seq-colors-transparent)}.fyvr129x:disabled,.fyvr129x[data-disabled]{border-right-color:var(--seq-colors-transparent)}.fyvr129y:focus{border-right-color:var(--seq-colors-transparent)}.fyvr129z:hover:not([disabled]){border-right-color:var(--seq-colors-transparent)}.fyvr12a0[data-state=checked]{border-right-color:var(--seq-colors-transparent)}.fyvr12a1,.fyvr12a2:active{border-right-color:var(--seq-colors-positive)}.fyvr12a3:disabled,.fyvr12a3[data-disabled]{border-right-color:var(--seq-colors-positive)}.fyvr12a4:focus{border-right-color:var(--seq-colors-positive)}.fyvr12a5:hover:not([disabled]){border-right-color:var(--seq-colors-positive)}.fyvr12a6[data-state=checked]{border-right-color:var(--seq-colors-positive)}.fyvr12a7,.fyvr12a8:active{border-right-color:var(--seq-colors-negative)}.fyvr12a9:disabled,.fyvr12a9[data-disabled]{border-right-color:var(--seq-colors-negative)}.fyvr12aa:focus{border-right-color:var(--seq-colors-negative)}.fyvr12ab:hover:not([disabled]){border-right-color:var(--seq-colors-negative)}.fyvr12ac[data-state=checked]{border-right-color:var(--seq-colors-negative)}.fyvr12ad,.fyvr12ae:active{border-right-color:var(--seq-colors-info)}.fyvr12af:disabled,.fyvr12af[data-disabled]{border-right-color:var(--seq-colors-info)}.fyvr12ag:focus{border-right-color:var(--seq-colors-info)}.fyvr12ah:hover:not([disabled]){border-right-color:var(--seq-colors-info)}.fyvr12ai[data-state=checked]{border-right-color:var(--seq-colors-info)}.fyvr12aj,.fyvr12ak:active{border-right-color:var(--seq-colors-warning)}.fyvr12al:disabled,.fyvr12al[data-disabled]{border-right-color:var(--seq-colors-warning)}.fyvr12am:focus{border-right-color:var(--seq-colors-warning)}.fyvr12an:hover:not([disabled]){border-right-color:var(--seq-colors-warning)}.fyvr12ao[data-state=checked]{border-right-color:var(--seq-colors-warning)}.fyvr12ap,.fyvr12aq:active{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12ar:disabled,.fyvr12ar[data-disabled]{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12as:focus{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12at:hover:not([disabled]){border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12au[data-state=checked]{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12av,.fyvr12aw:active{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12ax:disabled,.fyvr12ax[data-disabled]{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12ay:focus{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12az:hover:not([disabled]){border-right-color:var(--seq-colors-gradient-primary)}.fyvr12b0[data-state=checked]{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12b1,.fyvr12b2:active{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b3:disabled,.fyvr12b3[data-disabled]{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b4:focus{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b5:hover:not([disabled]){border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b6[data-state=checked]{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b7,.fyvr12b8:active{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12b9:disabled,.fyvr12b9[data-disabled]{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12ba:focus{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12bb:hover:not([disabled]){border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12bc[data-state=checked]{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12bd,.fyvr12be:active{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bf:disabled,.fyvr12bf[data-disabled]{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bg:focus{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bh:hover:not([disabled]){border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bi[data-state=checked]{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bj,.fyvr12bk:active{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bl:disabled,.fyvr12bl[data-disabled]{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bm:focus{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bn:hover:not([disabled]){border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bo[data-state=checked]{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bp,.fyvr12bq:active{border-right-color:var(--seq-colors-avalance-light)}.fyvr12br:disabled,.fyvr12br[data-disabled]{border-right-color:var(--seq-colors-avalance-light)}.fyvr12bs:focus{border-right-color:var(--seq-colors-avalance-light)}.fyvr12bt:hover:not([disabled]){border-right-color:var(--seq-colors-avalance-light)}.fyvr12bu[data-state=checked]{border-right-color:var(--seq-colors-avalance-light)}.fyvr12bv,.fyvr12bw:active{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12bx:disabled,.fyvr12bx[data-disabled]{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12by:focus{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12bz:hover:not([disabled]){border-right-color:var(--seq-colors-bsc-dark)}.fyvr12c0[data-state=checked]{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12c1,.fyvr12c2:active{border-right-color:var(--seq-colors-bsc-light)}.fyvr12c3:disabled,.fyvr12c3[data-disabled]{border-right-color:var(--seq-colors-bsc-light)}.fyvr12c4:focus{border-right-color:var(--seq-colors-bsc-light)}.fyvr12c5:hover:not([disabled]){border-right-color:var(--seq-colors-bsc-light)}.fyvr12c6[data-state=checked]{border-right-color:var(--seq-colors-bsc-light)}.fyvr12c7,.fyvr12c8:active{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12c9:disabled,.fyvr12c9[data-disabled]{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12ca:focus{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12cb:hover:not([disabled]){border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12cc[data-state=checked]{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12cd,.fyvr12ce:active{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12cf:disabled,.fyvr12cf[data-disabled]{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12cg:focus{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12ch:hover:not([disabled]){border-right-color:var(--seq-colors-ethereum-light)}.fyvr12ci[data-state=checked]{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12cj,.fyvr12ck:active{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12cl:disabled,.fyvr12cl[data-disabled]{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12cm:focus{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12cn:hover:not([disabled]){border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12co[data-state=checked]{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12cp,.fyvr12cq:active{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12cr:disabled,.fyvr12cr[data-disabled]{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12cs:focus{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12ct:hover:not([disabled]){border-right-color:var(--seq-colors-gnosis-light)}.fyvr12cu[data-state=checked]{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12cv,.fyvr12cw:active{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12cx:disabled,.fyvr12cx[data-disabled]{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12cy:focus{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12cz:hover:not([disabled]){border-right-color:var(--seq-colors-polygon-dark)}.fyvr12d0[data-state=checked]{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12d1,.fyvr12d2:active{border-right-color:var(--seq-colors-polygon-light)}.fyvr12d3:disabled,.fyvr12d3[data-disabled]{border-right-color:var(--seq-colors-polygon-light)}.fyvr12d4:focus{border-right-color:var(--seq-colors-polygon-light)}.fyvr12d5:hover:not([disabled]){border-right-color:var(--seq-colors-polygon-light)}.fyvr12d6[data-state=checked]{border-right-color:var(--seq-colors-polygon-light)}.fyvr12d7,.fyvr12d8:active{border-right-color:var(--seq-colors-text100)}.fyvr12d9:disabled,.fyvr12d9[data-disabled]{border-right-color:var(--seq-colors-text100)}.fyvr12da:focus{border-right-color:var(--seq-colors-text100)}.fyvr12db:hover:not([disabled]){border-right-color:var(--seq-colors-text100)}.fyvr12dc[data-state=checked]{border-right-color:var(--seq-colors-text100)}.fyvr12dd,.fyvr12de:active{border-right-color:var(--seq-colors-text80)}.fyvr12df:disabled,.fyvr12df[data-disabled]{border-right-color:var(--seq-colors-text80)}.fyvr12dg:focus{border-right-color:var(--seq-colors-text80)}.fyvr12dh:hover:not([disabled]){border-right-color:var(--seq-colors-text80)}.fyvr12di[data-state=checked]{border-right-color:var(--seq-colors-text80)}.fyvr12dj,.fyvr12dk:active{border-right-color:var(--seq-colors-text50)}.fyvr12dl:disabled,.fyvr12dl[data-disabled]{border-right-color:var(--seq-colors-text50)}.fyvr12dm:focus{border-right-color:var(--seq-colors-text50)}.fyvr12dn:hover:not([disabled]){border-right-color:var(--seq-colors-text50)}.fyvr12do[data-state=checked]{border-right-color:var(--seq-colors-text50)}.fyvr12dp,.fyvr12dq:active{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12dr:disabled,.fyvr12dr[data-disabled]{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12ds:focus{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12dt:hover:not([disabled]){border-right-color:var(--seq-colors-text-inverse100)}.fyvr12du[data-state=checked]{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12dv,.fyvr12dw:active{border-right-color:var(--seq-colors-background-primary)}.fyvr12dx:disabled,.fyvr12dx[data-disabled]{border-right-color:var(--seq-colors-background-primary)}.fyvr12dy:focus{border-right-color:var(--seq-colors-background-primary)}.fyvr12dz:hover:not([disabled]){border-right-color:var(--seq-colors-background-primary)}.fyvr12e0[data-state=checked]{border-right-color:var(--seq-colors-background-primary)}.fyvr12e1,.fyvr12e2:active{border-right-color:var(--seq-colors-background-secondary)}.fyvr12e3:disabled,.fyvr12e3[data-disabled]{border-right-color:var(--seq-colors-background-secondary)}.fyvr12e4:focus{border-right-color:var(--seq-colors-background-secondary)}.fyvr12e5:hover:not([disabled]){border-right-color:var(--seq-colors-background-secondary)}.fyvr12e6[data-state=checked]{border-right-color:var(--seq-colors-background-secondary)}.fyvr12e7,.fyvr12e8:active{border-right-color:var(--seq-colors-background-contrast)}.fyvr12e9:disabled,.fyvr12e9[data-disabled]{border-right-color:var(--seq-colors-background-contrast)}.fyvr12ea:focus{border-right-color:var(--seq-colors-background-contrast)}.fyvr12eb:hover:not([disabled]){border-right-color:var(--seq-colors-background-contrast)}.fyvr12ec[data-state=checked]{border-right-color:var(--seq-colors-background-contrast)}.fyvr12ed,.fyvr12ee:active{border-right-color:var(--seq-colors-background-muted)}.fyvr12ef:disabled,.fyvr12ef[data-disabled]{border-right-color:var(--seq-colors-background-muted)}.fyvr12eg:focus{border-right-color:var(--seq-colors-background-muted)}.fyvr12eh:hover:not([disabled]){border-right-color:var(--seq-colors-background-muted)}.fyvr12ei[data-state=checked]{border-right-color:var(--seq-colors-background-muted)}.fyvr12ej,.fyvr12ek:active{border-right-color:var(--seq-colors-background-control)}.fyvr12el:disabled,.fyvr12el[data-disabled]{border-right-color:var(--seq-colors-background-control)}.fyvr12em:focus{border-right-color:var(--seq-colors-background-control)}.fyvr12en:hover:not([disabled]){border-right-color:var(--seq-colors-background-control)}.fyvr12eo[data-state=checked]{border-right-color:var(--seq-colors-background-control)}.fyvr12ep,.fyvr12eq:active{border-right-color:var(--seq-colors-background-inverse)}.fyvr12er:disabled,.fyvr12er[data-disabled]{border-right-color:var(--seq-colors-background-inverse)}.fyvr12es:focus{border-right-color:var(--seq-colors-background-inverse)}.fyvr12et:hover:not([disabled]){border-right-color:var(--seq-colors-background-inverse)}.fyvr12eu[data-state=checked]{border-right-color:var(--seq-colors-background-inverse)}.fyvr12ev,.fyvr12ew:active{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12ex:disabled,.fyvr12ex[data-disabled]{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12ey:focus{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12ez:hover:not([disabled]){border-right-color:var(--seq-colors-background-backdrop)}.fyvr12f0[data-state=checked]{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12f1,.fyvr12f2:active{border-right-color:var(--seq-colors-background-overlay)}.fyvr12f3:disabled,.fyvr12f3[data-disabled]{border-right-color:var(--seq-colors-background-overlay)}.fyvr12f4:focus{border-right-color:var(--seq-colors-background-overlay)}.fyvr12f5:hover:not([disabled]){border-right-color:var(--seq-colors-background-overlay)}.fyvr12f6[data-state=checked]{border-right-color:var(--seq-colors-background-overlay)}.fyvr12f7,.fyvr12f8:active{border-right-color:var(--seq-colors-background-raised)}.fyvr12f9:disabled,.fyvr12f9[data-disabled]{border-right-color:var(--seq-colors-background-raised)}.fyvr12fa:focus{border-right-color:var(--seq-colors-background-raised)}.fyvr12fb:hover:not([disabled]){border-right-color:var(--seq-colors-background-raised)}.fyvr12fc[data-state=checked]{border-right-color:var(--seq-colors-background-raised)}.fyvr12fd,.fyvr12fe:active{border-right-color:var(--seq-colors-button-glass)}.fyvr12ff:disabled,.fyvr12ff[data-disabled]{border-right-color:var(--seq-colors-button-glass)}.fyvr12fg:focus{border-right-color:var(--seq-colors-button-glass)}.fyvr12fh:hover:not([disabled]){border-right-color:var(--seq-colors-button-glass)}.fyvr12fi[data-state=checked]{border-right-color:var(--seq-colors-button-glass)}.fyvr12fj,.fyvr12fk:active{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fl:disabled,.fyvr12fl[data-disabled]{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fm:focus{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fn:hover:not([disabled]){border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fo[data-state=checked]{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fp,.fyvr12fq:active{border-right-color:var(--seq-colors-button-inverse)}.fyvr12fr:disabled,.fyvr12fr[data-disabled]{border-right-color:var(--seq-colors-button-inverse)}.fyvr12fs:focus{border-right-color:var(--seq-colors-button-inverse)}.fyvr12ft:hover:not([disabled]){border-right-color:var(--seq-colors-button-inverse)}.fyvr12fu[data-state=checked]{border-right-color:var(--seq-colors-button-inverse)}.fyvr12fv,.fyvr12fw:active{border-right-color:var(--seq-colors-border-normal)}.fyvr12fx:disabled,.fyvr12fx[data-disabled]{border-right-color:var(--seq-colors-border-normal)}.fyvr12fy:focus{border-right-color:var(--seq-colors-border-normal)}.fyvr12fz:hover:not([disabled]){border-right-color:var(--seq-colors-border-normal)}.fyvr12g0[data-state=checked]{border-right-color:var(--seq-colors-border-normal)}.fyvr12g1,.fyvr12g2:active{border-right-color:var(--seq-colors-border-focus)}.fyvr12g3:disabled,.fyvr12g3[data-disabled]{border-right-color:var(--seq-colors-border-focus)}.fyvr12g4:focus{border-right-color:var(--seq-colors-border-focus)}.fyvr12g5:hover:not([disabled]){border-right-color:var(--seq-colors-border-focus)}.fyvr12g6[data-state=checked]{border-right-color:var(--seq-colors-border-focus)}.fyvr12g7,.fyvr12g8:active{border-right-style:solid}.fyvr12g9:disabled,.fyvr12g9[data-disabled]{border-right-style:solid}.fyvr12ga:focus{border-right-style:solid}.fyvr12gb:hover:not([disabled]){border-right-style:solid}.fyvr12gc[data-state=checked]{border-right-style:solid}.fyvr12gd,.fyvr12ge:active{border-right-style:dashed}.fyvr12gf:disabled,.fyvr12gf[data-disabled]{border-right-style:dashed}.fyvr12gg:focus{border-right-style:dashed}.fyvr12gh:hover:not([disabled]){border-right-style:dashed}.fyvr12gi[data-state=checked]{border-right-style:dashed}.fyvr12gj,.fyvr12gk:active{border-right-style:dotted}.fyvr12gl:disabled,.fyvr12gl[data-disabled]{border-right-style:dotted}.fyvr12gm:focus{border-right-style:dotted}.fyvr12gn:hover:not([disabled]){border-right-style:dotted}.fyvr12go[data-state=checked]{border-right-style:dotted}.fyvr12gp,.fyvr12gq:active{border-top-color:var(--seq-colors-black)}.fyvr12gr:disabled,.fyvr12gr[data-disabled]{border-top-color:var(--seq-colors-black)}.fyvr12gs:focus{border-top-color:var(--seq-colors-black)}.fyvr12gt:hover:not([disabled]){border-top-color:var(--seq-colors-black)}.fyvr12gu[data-state=checked]{border-top-color:var(--seq-colors-black)}.fyvr12gv,.fyvr12gw:active{border-top-color:var(--seq-colors-white)}.fyvr12gx:disabled,.fyvr12gx[data-disabled]{border-top-color:var(--seq-colors-white)}.fyvr12gy:focus{border-top-color:var(--seq-colors-white)}.fyvr12gz:hover:not([disabled]){border-top-color:var(--seq-colors-white)}.fyvr12h0[data-state=checked]{border-top-color:var(--seq-colors-white)}.fyvr12h1,.fyvr12h2:active{border-top-color:var(--seq-colors-inherit)}.fyvr12h3:disabled,.fyvr12h3[data-disabled]{border-top-color:var(--seq-colors-inherit)}.fyvr12h4:focus{border-top-color:var(--seq-colors-inherit)}.fyvr12h5:hover:not([disabled]){border-top-color:var(--seq-colors-inherit)}.fyvr12h6[data-state=checked]{border-top-color:var(--seq-colors-inherit)}.fyvr12h7,.fyvr12h8:active{border-top-color:var(--seq-colors-transparent)}.fyvr12h9:disabled,.fyvr12h9[data-disabled]{border-top-color:var(--seq-colors-transparent)}.fyvr12ha:focus{border-top-color:var(--seq-colors-transparent)}.fyvr12hb:hover:not([disabled]){border-top-color:var(--seq-colors-transparent)}.fyvr12hc[data-state=checked]{border-top-color:var(--seq-colors-transparent)}.fyvr12hd,.fyvr12he:active{border-top-color:var(--seq-colors-positive)}.fyvr12hf:disabled,.fyvr12hf[data-disabled]{border-top-color:var(--seq-colors-positive)}.fyvr12hg:focus{border-top-color:var(--seq-colors-positive)}.fyvr12hh:hover:not([disabled]){border-top-color:var(--seq-colors-positive)}.fyvr12hi[data-state=checked]{border-top-color:var(--seq-colors-positive)}.fyvr12hj,.fyvr12hk:active{border-top-color:var(--seq-colors-negative)}.fyvr12hl:disabled,.fyvr12hl[data-disabled]{border-top-color:var(--seq-colors-negative)}.fyvr12hm:focus{border-top-color:var(--seq-colors-negative)}.fyvr12hn:hover:not([disabled]){border-top-color:var(--seq-colors-negative)}.fyvr12ho[data-state=checked]{border-top-color:var(--seq-colors-negative)}.fyvr12hp,.fyvr12hq:active{border-top-color:var(--seq-colors-info)}.fyvr12hr:disabled,.fyvr12hr[data-disabled]{border-top-color:var(--seq-colors-info)}.fyvr12hs:focus{border-top-color:var(--seq-colors-info)}.fyvr12ht:hover:not([disabled]){border-top-color:var(--seq-colors-info)}.fyvr12hu[data-state=checked]{border-top-color:var(--seq-colors-info)}.fyvr12hv,.fyvr12hw:active{border-top-color:var(--seq-colors-warning)}.fyvr12hx:disabled,.fyvr12hx[data-disabled]{border-top-color:var(--seq-colors-warning)}.fyvr12hy:focus{border-top-color:var(--seq-colors-warning)}.fyvr12hz:hover:not([disabled]){border-top-color:var(--seq-colors-warning)}.fyvr12i0[data-state=checked]{border-top-color:var(--seq-colors-warning)}.fyvr12i1,.fyvr12i2:active{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i3:disabled,.fyvr12i3[data-disabled]{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i4:focus{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i5:hover:not([disabled]){border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i6[data-state=checked]{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i7,.fyvr12i8:active{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12i9:disabled,.fyvr12i9[data-disabled]{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12ia:focus{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12ib:hover:not([disabled]){border-top-color:var(--seq-colors-gradient-primary)}.fyvr12ic[data-state=checked]{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12id,.fyvr12ie:active{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12if:disabled,.fyvr12if[data-disabled]{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12ig:focus{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12ih:hover:not([disabled]){border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12ii[data-state=checked]{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12ij,.fyvr12ik:active{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12il:disabled,.fyvr12il[data-disabled]{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12im:focus{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12in:hover:not([disabled]){border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12io[data-state=checked]{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12ip,.fyvr12iq:active{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12ir:disabled,.fyvr12ir[data-disabled]{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12is:focus{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12it:hover:not([disabled]){border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12iu[data-state=checked]{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12iv,.fyvr12iw:active{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12ix:disabled,.fyvr12ix[data-disabled]{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12iy:focus{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12iz:hover:not([disabled]){border-top-color:var(--seq-colors-avalance-dark)}.fyvr12j0[data-state=checked]{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12j1,.fyvr12j2:active{border-top-color:var(--seq-colors-avalance-light)}.fyvr12j3:disabled,.fyvr12j3[data-disabled]{border-top-color:var(--seq-colors-avalance-light)}.fyvr12j4:focus{border-top-color:var(--seq-colors-avalance-light)}.fyvr12j5:hover:not([disabled]){border-top-color:var(--seq-colors-avalance-light)}.fyvr12j6[data-state=checked]{border-top-color:var(--seq-colors-avalance-light)}.fyvr12j7,.fyvr12j8:active{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12j9:disabled,.fyvr12j9[data-disabled]{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12ja:focus{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12jb:hover:not([disabled]){border-top-color:var(--seq-colors-bsc-dark)}.fyvr12jc[data-state=checked]{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12jd,.fyvr12je:active{border-top-color:var(--seq-colors-bsc-light)}.fyvr12jf:disabled,.fyvr12jf[data-disabled]{border-top-color:var(--seq-colors-bsc-light)}.fyvr12jg:focus{border-top-color:var(--seq-colors-bsc-light)}.fyvr12jh:hover:not([disabled]){border-top-color:var(--seq-colors-bsc-light)}.fyvr12ji[data-state=checked]{border-top-color:var(--seq-colors-bsc-light)}.fyvr12jj,.fyvr12jk:active{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jl:disabled,.fyvr12jl[data-disabled]{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jm:focus{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jn:hover:not([disabled]){border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jo[data-state=checked]{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jp,.fyvr12jq:active{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12jr:disabled,.fyvr12jr[data-disabled]{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12js:focus{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12jt:hover:not([disabled]){border-top-color:var(--seq-colors-ethereum-light)}.fyvr12ju[data-state=checked]{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12jv,.fyvr12jw:active{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12jx:disabled,.fyvr12jx[data-disabled]{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12jy:focus{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12jz:hover:not([disabled]){border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12k0[data-state=checked]{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12k1,.fyvr12k2:active{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k3:disabled,.fyvr12k3[data-disabled]{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k4:focus{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k5:hover:not([disabled]){border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k6[data-state=checked]{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k7,.fyvr12k8:active{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12k9:disabled,.fyvr12k9[data-disabled]{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12ka:focus{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12kb:hover:not([disabled]){border-top-color:var(--seq-colors-polygon-dark)}.fyvr12kc[data-state=checked]{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12kd,.fyvr12ke:active{border-top-color:var(--seq-colors-polygon-light)}.fyvr12kf:disabled,.fyvr12kf[data-disabled]{border-top-color:var(--seq-colors-polygon-light)}.fyvr12kg:focus{border-top-color:var(--seq-colors-polygon-light)}.fyvr12kh:hover:not([disabled]){border-top-color:var(--seq-colors-polygon-light)}.fyvr12ki[data-state=checked]{border-top-color:var(--seq-colors-polygon-light)}.fyvr12kj,.fyvr12kk:active{border-top-color:var(--seq-colors-text100)}.fyvr12kl:disabled,.fyvr12kl[data-disabled]{border-top-color:var(--seq-colors-text100)}.fyvr12km:focus{border-top-color:var(--seq-colors-text100)}.fyvr12kn:hover:not([disabled]){border-top-color:var(--seq-colors-text100)}.fyvr12ko[data-state=checked]{border-top-color:var(--seq-colors-text100)}.fyvr12kp,.fyvr12kq:active{border-top-color:var(--seq-colors-text80)}.fyvr12kr:disabled,.fyvr12kr[data-disabled]{border-top-color:var(--seq-colors-text80)}.fyvr12ks:focus{border-top-color:var(--seq-colors-text80)}.fyvr12kt:hover:not([disabled]){border-top-color:var(--seq-colors-text80)}.fyvr12ku[data-state=checked]{border-top-color:var(--seq-colors-text80)}.fyvr12kv,.fyvr12kw:active{border-top-color:var(--seq-colors-text50)}.fyvr12kx:disabled,.fyvr12kx[data-disabled]{border-top-color:var(--seq-colors-text50)}.fyvr12ky:focus{border-top-color:var(--seq-colors-text50)}.fyvr12kz:hover:not([disabled]){border-top-color:var(--seq-colors-text50)}.fyvr12l0[data-state=checked]{border-top-color:var(--seq-colors-text50)}.fyvr12l1,.fyvr12l2:active{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l3:disabled,.fyvr12l3[data-disabled]{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l4:focus{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l5:hover:not([disabled]){border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l6[data-state=checked]{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l7,.fyvr12l8:active{border-top-color:var(--seq-colors-background-primary)}.fyvr12l9:disabled,.fyvr12l9[data-disabled]{border-top-color:var(--seq-colors-background-primary)}.fyvr12la:focus{border-top-color:var(--seq-colors-background-primary)}.fyvr12lb:hover:not([disabled]){border-top-color:var(--seq-colors-background-primary)}.fyvr12lc[data-state=checked]{border-top-color:var(--seq-colors-background-primary)}.fyvr12ld,.fyvr12le:active{border-top-color:var(--seq-colors-background-secondary)}.fyvr12lf:disabled,.fyvr12lf[data-disabled]{border-top-color:var(--seq-colors-background-secondary)}.fyvr12lg:focus{border-top-color:var(--seq-colors-background-secondary)}.fyvr12lh:hover:not([disabled]){border-top-color:var(--seq-colors-background-secondary)}.fyvr12li[data-state=checked]{border-top-color:var(--seq-colors-background-secondary)}.fyvr12lj,.fyvr12lk:active{border-top-color:var(--seq-colors-background-contrast)}.fyvr12ll:disabled,.fyvr12ll[data-disabled]{border-top-color:var(--seq-colors-background-contrast)}.fyvr12lm:focus{border-top-color:var(--seq-colors-background-contrast)}.fyvr12ln:hover:not([disabled]){border-top-color:var(--seq-colors-background-contrast)}.fyvr12lo[data-state=checked]{border-top-color:var(--seq-colors-background-contrast)}.fyvr12lp,.fyvr12lq:active{border-top-color:var(--seq-colors-background-muted)}.fyvr12lr:disabled,.fyvr12lr[data-disabled]{border-top-color:var(--seq-colors-background-muted)}.fyvr12ls:focus{border-top-color:var(--seq-colors-background-muted)}.fyvr12lt:hover:not([disabled]){border-top-color:var(--seq-colors-background-muted)}.fyvr12lu[data-state=checked]{border-top-color:var(--seq-colors-background-muted)}.fyvr12lv,.fyvr12lw:active{border-top-color:var(--seq-colors-background-control)}.fyvr12lx:disabled,.fyvr12lx[data-disabled]{border-top-color:var(--seq-colors-background-control)}.fyvr12ly:focus{border-top-color:var(--seq-colors-background-control)}.fyvr12lz:hover:not([disabled]){border-top-color:var(--seq-colors-background-control)}.fyvr12m0[data-state=checked]{border-top-color:var(--seq-colors-background-control)}.fyvr12m1,.fyvr12m2:active{border-top-color:var(--seq-colors-background-inverse)}.fyvr12m3:disabled,.fyvr12m3[data-disabled]{border-top-color:var(--seq-colors-background-inverse)}.fyvr12m4:focus{border-top-color:var(--seq-colors-background-inverse)}.fyvr12m5:hover:not([disabled]){border-top-color:var(--seq-colors-background-inverse)}.fyvr12m6[data-state=checked]{border-top-color:var(--seq-colors-background-inverse)}.fyvr12m7,.fyvr12m8:active{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12m9:disabled,.fyvr12m9[data-disabled]{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12ma:focus{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12mb:hover:not([disabled]){border-top-color:var(--seq-colors-background-backdrop)}.fyvr12mc[data-state=checked]{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12md,.fyvr12me:active{border-top-color:var(--seq-colors-background-overlay)}.fyvr12mf:disabled,.fyvr12mf[data-disabled]{border-top-color:var(--seq-colors-background-overlay)}.fyvr12mg:focus{border-top-color:var(--seq-colors-background-overlay)}.fyvr12mh:hover:not([disabled]){border-top-color:var(--seq-colors-background-overlay)}.fyvr12mi[data-state=checked]{border-top-color:var(--seq-colors-background-overlay)}.fyvr12mj,.fyvr12mk:active{border-top-color:var(--seq-colors-background-raised)}.fyvr12ml:disabled,.fyvr12ml[data-disabled]{border-top-color:var(--seq-colors-background-raised)}.fyvr12mm:focus{border-top-color:var(--seq-colors-background-raised)}.fyvr12mn:hover:not([disabled]){border-top-color:var(--seq-colors-background-raised)}.fyvr12mo[data-state=checked]{border-top-color:var(--seq-colors-background-raised)}.fyvr12mp,.fyvr12mq:active{border-top-color:var(--seq-colors-button-glass)}.fyvr12mr:disabled,.fyvr12mr[data-disabled]{border-top-color:var(--seq-colors-button-glass)}.fyvr12ms:focus{border-top-color:var(--seq-colors-button-glass)}.fyvr12mt:hover:not([disabled]){border-top-color:var(--seq-colors-button-glass)}.fyvr12mu[data-state=checked]{border-top-color:var(--seq-colors-button-glass)}.fyvr12mv,.fyvr12mw:active{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12mx:disabled,.fyvr12mx[data-disabled]{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12my:focus{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12mz:hover:not([disabled]){border-top-color:var(--seq-colors-button-emphasis)}.fyvr12n0[data-state=checked]{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12n1,.fyvr12n2:active{border-top-color:var(--seq-colors-button-inverse)}.fyvr12n3:disabled,.fyvr12n3[data-disabled]{border-top-color:var(--seq-colors-button-inverse)}.fyvr12n4:focus{border-top-color:var(--seq-colors-button-inverse)}.fyvr12n5:hover:not([disabled]){border-top-color:var(--seq-colors-button-inverse)}.fyvr12n6[data-state=checked]{border-top-color:var(--seq-colors-button-inverse)}.fyvr12n7,.fyvr12n8:active{border-top-color:var(--seq-colors-border-normal)}.fyvr12n9:disabled,.fyvr12n9[data-disabled]{border-top-color:var(--seq-colors-border-normal)}.fyvr12na:focus{border-top-color:var(--seq-colors-border-normal)}.fyvr12nb:hover:not([disabled]){border-top-color:var(--seq-colors-border-normal)}.fyvr12nc[data-state=checked]{border-top-color:var(--seq-colors-border-normal)}.fyvr12nd,.fyvr12ne:active{border-top-color:var(--seq-colors-border-focus)}.fyvr12nf:disabled,.fyvr12nf[data-disabled]{border-top-color:var(--seq-colors-border-focus)}.fyvr12ng:focus{border-top-color:var(--seq-colors-border-focus)}.fyvr12nh:hover:not([disabled]){border-top-color:var(--seq-colors-border-focus)}.fyvr12ni[data-state=checked]{border-top-color:var(--seq-colors-border-focus)}.fyvr12nj,.fyvr12nk:active{border-top-style:solid}.fyvr12nl:disabled,.fyvr12nl[data-disabled]{border-top-style:solid}.fyvr12nm:focus{border-top-style:solid}.fyvr12nn:hover:not([disabled]){border-top-style:solid}.fyvr12no[data-state=checked]{border-top-style:solid}.fyvr12np,.fyvr12nq:active{border-top-style:dashed}.fyvr12nr:disabled,.fyvr12nr[data-disabled]{border-top-style:dashed}.fyvr12ns:focus{border-top-style:dashed}.fyvr12nt:hover:not([disabled]){border-top-style:dashed}.fyvr12nu[data-state=checked]{border-top-style:dashed}.fyvr12nv,.fyvr12nw:active{border-top-style:dotted}.fyvr12nx:disabled,.fyvr12nx[data-disabled]{border-top-style:dotted}.fyvr12ny:focus{border-top-style:dotted}.fyvr12nz:hover:not([disabled]){border-top-style:dotted}.fyvr12o0[data-state=checked]{border-top-style:dotted}.fyvr12o1,.fyvr12o2:active{border:none}.fyvr12o3:disabled,.fyvr12o3[data-disabled]{border:none}.fyvr12o4:focus{border:none}.fyvr12o5:hover:not([disabled]){border:none}.fyvr12o6[data-state=checked]{border:none}.fyvr12o7,.fyvr12o8:active{color:var(--seq-colors-black)}.fyvr12o9:disabled,.fyvr12o9[data-disabled]{color:var(--seq-colors-black)}.fyvr12oa:focus{color:var(--seq-colors-black)}.fyvr12ob:hover:not([disabled]){color:var(--seq-colors-black)}.fyvr12oc[data-state=checked]{color:var(--seq-colors-black)}.fyvr12od,.fyvr12oe:active{color:var(--seq-colors-white)}.fyvr12of:disabled,.fyvr12of[data-disabled]{color:var(--seq-colors-white)}.fyvr12og:focus{color:var(--seq-colors-white)}.fyvr12oh:hover:not([disabled]){color:var(--seq-colors-white)}.fyvr12oi[data-state=checked]{color:var(--seq-colors-white)}.fyvr12oj,.fyvr12ok:active{color:var(--seq-colors-inherit)}.fyvr12ol:disabled,.fyvr12ol[data-disabled]{color:var(--seq-colors-inherit)}.fyvr12om:focus{color:var(--seq-colors-inherit)}.fyvr12on:hover:not([disabled]){color:var(--seq-colors-inherit)}.fyvr12oo[data-state=checked]{color:var(--seq-colors-inherit)}.fyvr12op,.fyvr12oq:active{color:var(--seq-colors-transparent)}.fyvr12or:disabled,.fyvr12or[data-disabled]{color:var(--seq-colors-transparent)}.fyvr12os:focus{color:var(--seq-colors-transparent)}.fyvr12ot:hover:not([disabled]){color:var(--seq-colors-transparent)}.fyvr12ou[data-state=checked]{color:var(--seq-colors-transparent)}.fyvr12ov,.fyvr12ow:active{color:var(--seq-colors-positive)}.fyvr12ox:disabled,.fyvr12ox[data-disabled]{color:var(--seq-colors-positive)}.fyvr12oy:focus{color:var(--seq-colors-positive)}.fyvr12oz:hover:not([disabled]){color:var(--seq-colors-positive)}.fyvr12p0[data-state=checked]{color:var(--seq-colors-positive)}.fyvr12p1,.fyvr12p2:active{color:var(--seq-colors-negative)}.fyvr12p3:disabled,.fyvr12p3[data-disabled]{color:var(--seq-colors-negative)}.fyvr12p4:focus{color:var(--seq-colors-negative)}.fyvr12p5:hover:not([disabled]){color:var(--seq-colors-negative)}.fyvr12p6[data-state=checked]{color:var(--seq-colors-negative)}.fyvr12p7,.fyvr12p8:active{color:var(--seq-colors-info)}.fyvr12p9:disabled,.fyvr12p9[data-disabled]{color:var(--seq-colors-info)}.fyvr12pa:focus{color:var(--seq-colors-info)}.fyvr12pb:hover:not([disabled]){color:var(--seq-colors-info)}.fyvr12pc[data-state=checked]{color:var(--seq-colors-info)}.fyvr12pd,.fyvr12pe:active{color:var(--seq-colors-warning)}.fyvr12pf:disabled,.fyvr12pf[data-disabled]{color:var(--seq-colors-warning)}.fyvr12pg:focus{color:var(--seq-colors-warning)}.fyvr12ph:hover:not([disabled]){color:var(--seq-colors-warning)}.fyvr12pi[data-state=checked]{color:var(--seq-colors-warning)}.fyvr12pj,.fyvr12pk:active{color:var(--seq-colors-gradient-backdrop)}.fyvr12pl:disabled,.fyvr12pl[data-disabled]{color:var(--seq-colors-gradient-backdrop)}.fyvr12pm:focus{color:var(--seq-colors-gradient-backdrop)}.fyvr12pn:hover:not([disabled]){color:var(--seq-colors-gradient-backdrop)}.fyvr12po[data-state=checked]{color:var(--seq-colors-gradient-backdrop)}.fyvr12pp,.fyvr12pq:active{color:var(--seq-colors-gradient-primary)}.fyvr12pr:disabled,.fyvr12pr[data-disabled]{color:var(--seq-colors-gradient-primary)}.fyvr12ps:focus{color:var(--seq-colors-gradient-primary)}.fyvr12pt:hover:not([disabled]){color:var(--seq-colors-gradient-primary)}.fyvr12pu[data-state=checked]{color:var(--seq-colors-gradient-primary)}.fyvr12pv,.fyvr12pw:active{color:var(--seq-colors-gradient-secondary)}.fyvr12px:disabled,.fyvr12px[data-disabled]{color:var(--seq-colors-gradient-secondary)}.fyvr12py:focus{color:var(--seq-colors-gradient-secondary)}.fyvr12pz:hover:not([disabled]){color:var(--seq-colors-gradient-secondary)}.fyvr12q0[data-state=checked]{color:var(--seq-colors-gradient-secondary)}.fyvr12q1,.fyvr12q2:active{color:var(--seq-colors-arbitrum-dark)}.fyvr12q3:disabled,.fyvr12q3[data-disabled]{color:var(--seq-colors-arbitrum-dark)}.fyvr12q4:focus{color:var(--seq-colors-arbitrum-dark)}.fyvr12q5:hover:not([disabled]){color:var(--seq-colors-arbitrum-dark)}.fyvr12q6[data-state=checked]{color:var(--seq-colors-arbitrum-dark)}.fyvr12q7,.fyvr12q8:active{color:var(--seq-colors-arbitrum-light)}.fyvr12q9:disabled,.fyvr12q9[data-disabled]{color:var(--seq-colors-arbitrum-light)}.fyvr12qa:focus{color:var(--seq-colors-arbitrum-light)}.fyvr12qb:hover:not([disabled]){color:var(--seq-colors-arbitrum-light)}.fyvr12qc[data-state=checked]{color:var(--seq-colors-arbitrum-light)}.fyvr12qd,.fyvr12qe:active{color:var(--seq-colors-avalance-dark)}.fyvr12qf:disabled,.fyvr12qf[data-disabled]{color:var(--seq-colors-avalance-dark)}.fyvr12qg:focus{color:var(--seq-colors-avalance-dark)}.fyvr12qh:hover:not([disabled]){color:var(--seq-colors-avalance-dark)}.fyvr12qi[data-state=checked]{color:var(--seq-colors-avalance-dark)}.fyvr12qj,.fyvr12qk:active{color:var(--seq-colors-avalance-light)}.fyvr12ql:disabled,.fyvr12ql[data-disabled]{color:var(--seq-colors-avalance-light)}.fyvr12qm:focus{color:var(--seq-colors-avalance-light)}.fyvr12qn:hover:not([disabled]){color:var(--seq-colors-avalance-light)}.fyvr12qo[data-state=checked]{color:var(--seq-colors-avalance-light)}.fyvr12qp,.fyvr12qq:active{color:var(--seq-colors-bsc-dark)}.fyvr12qr:disabled,.fyvr12qr[data-disabled]{color:var(--seq-colors-bsc-dark)}.fyvr12qs:focus{color:var(--seq-colors-bsc-dark)}.fyvr12qt:hover:not([disabled]){color:var(--seq-colors-bsc-dark)}.fyvr12qu[data-state=checked]{color:var(--seq-colors-bsc-dark)}.fyvr12qv,.fyvr12qw:active{color:var(--seq-colors-bsc-light)}.fyvr12qx:disabled,.fyvr12qx[data-disabled]{color:var(--seq-colors-bsc-light)}.fyvr12qy:focus{color:var(--seq-colors-bsc-light)}.fyvr12qz:hover:not([disabled]){color:var(--seq-colors-bsc-light)}.fyvr12r0[data-state=checked]{color:var(--seq-colors-bsc-light)}.fyvr12r1,.fyvr12r2:active{color:var(--seq-colors-ethereum-dark)}.fyvr12r3:disabled,.fyvr12r3[data-disabled]{color:var(--seq-colors-ethereum-dark)}.fyvr12r4:focus{color:var(--seq-colors-ethereum-dark)}.fyvr12r5:hover:not([disabled]){color:var(--seq-colors-ethereum-dark)}.fyvr12r6[data-state=checked]{color:var(--seq-colors-ethereum-dark)}.fyvr12r7,.fyvr12r8:active{color:var(--seq-colors-ethereum-light)}.fyvr12r9:disabled,.fyvr12r9[data-disabled]{color:var(--seq-colors-ethereum-light)}.fyvr12ra:focus{color:var(--seq-colors-ethereum-light)}.fyvr12rb:hover:not([disabled]){color:var(--seq-colors-ethereum-light)}.fyvr12rc[data-state=checked]{color:var(--seq-colors-ethereum-light)}.fyvr12rd,.fyvr12re:active{color:var(--seq-colors-gnosis-dark)}.fyvr12rf:disabled,.fyvr12rf[data-disabled]{color:var(--seq-colors-gnosis-dark)}.fyvr12rg:focus{color:var(--seq-colors-gnosis-dark)}.fyvr12rh:hover:not([disabled]){color:var(--seq-colors-gnosis-dark)}.fyvr12ri[data-state=checked]{color:var(--seq-colors-gnosis-dark)}.fyvr12rj,.fyvr12rk:active{color:var(--seq-colors-gnosis-light)}.fyvr12rl:disabled,.fyvr12rl[data-disabled]{color:var(--seq-colors-gnosis-light)}.fyvr12rm:focus{color:var(--seq-colors-gnosis-light)}.fyvr12rn:hover:not([disabled]){color:var(--seq-colors-gnosis-light)}.fyvr12ro[data-state=checked]{color:var(--seq-colors-gnosis-light)}.fyvr12rp,.fyvr12rq:active{color:var(--seq-colors-polygon-dark)}.fyvr12rr:disabled,.fyvr12rr[data-disabled]{color:var(--seq-colors-polygon-dark)}.fyvr12rs:focus{color:var(--seq-colors-polygon-dark)}.fyvr12rt:hover:not([disabled]){color:var(--seq-colors-polygon-dark)}.fyvr12ru[data-state=checked]{color:var(--seq-colors-polygon-dark)}.fyvr12rv,.fyvr12rw:active{color:var(--seq-colors-polygon-light)}.fyvr12rx:disabled,.fyvr12rx[data-disabled]{color:var(--seq-colors-polygon-light)}.fyvr12ry:focus{color:var(--seq-colors-polygon-light)}.fyvr12rz:hover:not([disabled]){color:var(--seq-colors-polygon-light)}.fyvr12s0[data-state=checked]{color:var(--seq-colors-polygon-light)}.fyvr12s1,.fyvr12s2:active{color:var(--seq-colors-text100)}.fyvr12s3:disabled,.fyvr12s3[data-disabled]{color:var(--seq-colors-text100)}.fyvr12s4:focus{color:var(--seq-colors-text100)}.fyvr12s5:hover:not([disabled]){color:var(--seq-colors-text100)}.fyvr12s6[data-state=checked]{color:var(--seq-colors-text100)}.fyvr12s7,.fyvr12s8:active{color:var(--seq-colors-text80)}.fyvr12s9:disabled,.fyvr12s9[data-disabled]{color:var(--seq-colors-text80)}.fyvr12sa:focus{color:var(--seq-colors-text80)}.fyvr12sb:hover:not([disabled]){color:var(--seq-colors-text80)}.fyvr12sc[data-state=checked]{color:var(--seq-colors-text80)}.fyvr12sd,.fyvr12se:active{color:var(--seq-colors-text50)}.fyvr12sf:disabled,.fyvr12sf[data-disabled]{color:var(--seq-colors-text50)}.fyvr12sg:focus{color:var(--seq-colors-text50)}.fyvr12sh:hover:not([disabled]){color:var(--seq-colors-text50)}.fyvr12si[data-state=checked]{color:var(--seq-colors-text50)}.fyvr12sj,.fyvr12sk:active{color:var(--seq-colors-text-inverse100)}.fyvr12sl:disabled,.fyvr12sl[data-disabled]{color:var(--seq-colors-text-inverse100)}.fyvr12sm:focus{color:var(--seq-colors-text-inverse100)}.fyvr12sn:hover:not([disabled]){color:var(--seq-colors-text-inverse100)}.fyvr12so[data-state=checked]{color:var(--seq-colors-text-inverse100)}.fyvr12sp,.fyvr12sq:active{color:var(--seq-colors-background-primary)}.fyvr12sr:disabled,.fyvr12sr[data-disabled]{color:var(--seq-colors-background-primary)}.fyvr12ss:focus{color:var(--seq-colors-background-primary)}.fyvr12st:hover:not([disabled]){color:var(--seq-colors-background-primary)}.fyvr12su[data-state=checked]{color:var(--seq-colors-background-primary)}.fyvr12sv,.fyvr12sw:active{color:var(--seq-colors-background-secondary)}.fyvr12sx:disabled,.fyvr12sx[data-disabled]{color:var(--seq-colors-background-secondary)}.fyvr12sy:focus{color:var(--seq-colors-background-secondary)}.fyvr12sz:hover:not([disabled]){color:var(--seq-colors-background-secondary)}.fyvr12t0[data-state=checked]{color:var(--seq-colors-background-secondary)}.fyvr12t1,.fyvr12t2:active{color:var(--seq-colors-background-contrast)}.fyvr12t3:disabled,.fyvr12t3[data-disabled]{color:var(--seq-colors-background-contrast)}.fyvr12t4:focus{color:var(--seq-colors-background-contrast)}.fyvr12t5:hover:not([disabled]){color:var(--seq-colors-background-contrast)}.fyvr12t6[data-state=checked]{color:var(--seq-colors-background-contrast)}.fyvr12t7,.fyvr12t8:active{color:var(--seq-colors-background-muted)}.fyvr12t9:disabled,.fyvr12t9[data-disabled]{color:var(--seq-colors-background-muted)}.fyvr12ta:focus{color:var(--seq-colors-background-muted)}.fyvr12tb:hover:not([disabled]){color:var(--seq-colors-background-muted)}.fyvr12tc[data-state=checked]{color:var(--seq-colors-background-muted)}.fyvr12td,.fyvr12te:active{color:var(--seq-colors-background-control)}.fyvr12tf:disabled,.fyvr12tf[data-disabled]{color:var(--seq-colors-background-control)}.fyvr12tg:focus{color:var(--seq-colors-background-control)}.fyvr12th:hover:not([disabled]){color:var(--seq-colors-background-control)}.fyvr12ti[data-state=checked]{color:var(--seq-colors-background-control)}.fyvr12tj,.fyvr12tk:active{color:var(--seq-colors-background-inverse)}.fyvr12tl:disabled,.fyvr12tl[data-disabled]{color:var(--seq-colors-background-inverse)}.fyvr12tm:focus{color:var(--seq-colors-background-inverse)}.fyvr12tn:hover:not([disabled]){color:var(--seq-colors-background-inverse)}.fyvr12to[data-state=checked]{color:var(--seq-colors-background-inverse)}.fyvr12tp,.fyvr12tq:active{color:var(--seq-colors-background-backdrop)}.fyvr12tr:disabled,.fyvr12tr[data-disabled]{color:var(--seq-colors-background-backdrop)}.fyvr12ts:focus{color:var(--seq-colors-background-backdrop)}.fyvr12tt:hover:not([disabled]){color:var(--seq-colors-background-backdrop)}.fyvr12tu[data-state=checked]{color:var(--seq-colors-background-backdrop)}.fyvr12tv,.fyvr12tw:active{color:var(--seq-colors-background-overlay)}.fyvr12tx:disabled,.fyvr12tx[data-disabled]{color:var(--seq-colors-background-overlay)}.fyvr12ty:focus{color:var(--seq-colors-background-overlay)}.fyvr12tz:hover:not([disabled]){color:var(--seq-colors-background-overlay)}.fyvr12u0[data-state=checked]{color:var(--seq-colors-background-overlay)}.fyvr12u1,.fyvr12u2:active{color:var(--seq-colors-background-raised)}.fyvr12u3:disabled,.fyvr12u3[data-disabled]{color:var(--seq-colors-background-raised)}.fyvr12u4:focus{color:var(--seq-colors-background-raised)}.fyvr12u5:hover:not([disabled]){color:var(--seq-colors-background-raised)}.fyvr12u6[data-state=checked]{color:var(--seq-colors-background-raised)}.fyvr12u7,.fyvr12u8:active{color:var(--seq-colors-button-glass)}.fyvr12u9:disabled,.fyvr12u9[data-disabled]{color:var(--seq-colors-button-glass)}.fyvr12ua:focus{color:var(--seq-colors-button-glass)}.fyvr12ub:hover:not([disabled]){color:var(--seq-colors-button-glass)}.fyvr12uc[data-state=checked]{color:var(--seq-colors-button-glass)}.fyvr12ud,.fyvr12ue:active{color:var(--seq-colors-button-emphasis)}.fyvr12uf:disabled,.fyvr12uf[data-disabled]{color:var(--seq-colors-button-emphasis)}.fyvr12ug:focus{color:var(--seq-colors-button-emphasis)}.fyvr12uh:hover:not([disabled]){color:var(--seq-colors-button-emphasis)}.fyvr12ui[data-state=checked]{color:var(--seq-colors-button-emphasis)}.fyvr12uj,.fyvr12uk:active{color:var(--seq-colors-button-inverse)}.fyvr12ul:disabled,.fyvr12ul[data-disabled]{color:var(--seq-colors-button-inverse)}.fyvr12um:focus{color:var(--seq-colors-button-inverse)}.fyvr12un:hover:not([disabled]){color:var(--seq-colors-button-inverse)}.fyvr12uo[data-state=checked]{color:var(--seq-colors-button-inverse)}.fyvr12up,.fyvr12uq:active{color:var(--seq-colors-border-normal)}.fyvr12ur:disabled,.fyvr12ur[data-disabled]{color:var(--seq-colors-border-normal)}.fyvr12us:focus{color:var(--seq-colors-border-normal)}.fyvr12ut:hover:not([disabled]){color:var(--seq-colors-border-normal)}.fyvr12uu[data-state=checked]{color:var(--seq-colors-border-normal)}.fyvr12uv,.fyvr12uw:active{color:var(--seq-colors-border-focus)}.fyvr12ux:disabled,.fyvr12ux[data-disabled]{color:var(--seq-colors-border-focus)}.fyvr12uy:focus{color:var(--seq-colors-border-focus)}.fyvr12uz:hover:not([disabled]){color:var(--seq-colors-border-focus)}.fyvr12v0[data-state=checked]{color:var(--seq-colors-border-focus)}.fyvr12v1,.fyvr12v2:active{cursor:default}.fyvr12v3:disabled,.fyvr12v3[data-disabled]{cursor:default}.fyvr12v4:focus{cursor:default}.fyvr12v5:hover:not([disabled]){cursor:default}.fyvr12v6[data-state=checked]{cursor:default}.fyvr12v7,.fyvr12v8:active{cursor:pointer}.fyvr12v9:disabled,.fyvr12v9[data-disabled]{cursor:pointer}.fyvr12va:focus{cursor:pointer}.fyvr12vb:hover:not([disabled]){cursor:pointer}.fyvr12vc[data-state=checked]{cursor:pointer}.fyvr12vd,.fyvr12ve:active{cursor:text}.fyvr12vf:disabled,.fyvr12vf[data-disabled]{cursor:text}.fyvr12vg:focus{cursor:text}.fyvr12vh:hover:not([disabled]){cursor:text}.fyvr12vi[data-state=checked]{cursor:text}.fyvr12vj,.fyvr12vk:active{opacity:var(--seq-opacity-0)}.fyvr12vl:disabled,.fyvr12vl[data-disabled]{opacity:var(--seq-opacity-0)}.fyvr12vm:focus{opacity:var(--seq-opacity-0)}.fyvr12vn:hover:not([disabled]){opacity:var(--seq-opacity-0)}.fyvr12vo[data-state=checked]{opacity:var(--seq-opacity-0)}.fyvr12vp,.fyvr12vq:active{opacity:var(--seq-opacity-50)}.fyvr12vr:disabled,.fyvr12vr[data-disabled]{opacity:var(--seq-opacity-50)}.fyvr12vs:focus{opacity:var(--seq-opacity-50)}.fyvr12vt:hover:not([disabled]){opacity:var(--seq-opacity-50)}.fyvr12vu[data-state=checked]{opacity:var(--seq-opacity-50)}.fyvr12vv,.fyvr12vw:active{opacity:var(--seq-opacity-80)}.fyvr12vx:disabled,.fyvr12vx[data-disabled]{opacity:var(--seq-opacity-80)}.fyvr12vy:focus{opacity:var(--seq-opacity-80)}.fyvr12vz:hover:not([disabled]){opacity:var(--seq-opacity-80)}.fyvr12w0[data-state=checked]{opacity:var(--seq-opacity-80)}.fyvr12w1,.fyvr12w2:active{opacity:var(--seq-opacity-100)}.fyvr12w3:disabled,.fyvr12w3[data-disabled]{opacity:var(--seq-opacity-100)}.fyvr12w4:focus{opacity:var(--seq-opacity-100)}.fyvr12w5:hover:not([disabled]){opacity:var(--seq-opacity-100)}.fyvr12w6[data-state=checked]{opacity:var(--seq-opacity-100)}.fyvr12w7,.fyvr12w8:active{pointer-events:none}.fyvr12w9:disabled,.fyvr12w9[data-disabled]{pointer-events:none}.fyvr12wa:focus{pointer-events:none}.fyvr12wb:hover:not([disabled]){pointer-events:none}.fyvr12wc[data-state=checked]{pointer-events:none}.fyvr12wd,.fyvr12we:active{pointer-events:auto}.fyvr12wf:disabled,.fyvr12wf[data-disabled]{pointer-events:auto}.fyvr12wg:focus{pointer-events:auto}.fyvr12wh:hover:not([disabled]){pointer-events:auto}.fyvr12wi[data-state=checked]{pointer-events:auto}.fyvr12wj,.fyvr12wk:active{outline:none}.fyvr12wl:disabled,.fyvr12wl[data-disabled]{outline:none}.fyvr12wm:focus{outline:none}.fyvr12wn:hover:not([disabled]){outline:none}.fyvr12wo[data-state=checked]{outline:none}.fyvr12wp,.fyvr12wq:active{box-shadow:none}.fyvr12wr:disabled,.fyvr12wr[data-disabled]{box-shadow:none}.fyvr12ws:focus{box-shadow:none}.fyvr12wt:hover:not([disabled]){box-shadow:none}.fyvr12wu[data-state=checked]{box-shadow:none}@media (min-width: 480px){.fyvr11{width:var(--seq-space-0)}.fyvr15{width:var(--seq-space-1)}.fyvr19{width:var(--seq-space-2)}.fyvr1d{width:var(--seq-space-3)}.fyvr1h{width:var(--seq-space-4)}.fyvr1l{width:var(--seq-space-5)}.fyvr1p{width:var(--seq-space-6)}.fyvr1t{width:var(--seq-space-7)}.fyvr1x{width:var(--seq-space-8)}.fyvr111{width:var(--seq-space-9)}.fyvr115{width:var(--seq-space-10)}.fyvr119{width:var(--seq-space-12)}.fyvr11d{width:var(--seq-space-14)}.fyvr11h{width:var(--seq-space-16)}.fyvr11l{width:var(--seq-space-0_25)}.fyvr11p{width:var(--seq-space-0_5)}.fyvr11t{width:var(--seq-space-1_5)}.fyvr11x{width:0}.fyvr121{width:1px}.fyvr125{width:auto}.fyvr129{width:100%}.fyvr12d{width:50%}.fyvr12h{width:33.33333%}.fyvr12l{width:66.66667%}.fyvr12p{width:25%}.fyvr12t{width:75%}.fyvr12x{width:-moz-fit-content;width:fit-content}.fyvr131{width:-moz-max-content;width:max-content}.fyvr135{width:-moz-min-content;width:min-content}.fyvr139{width:100vw}.fyvr13d{width:100vh}.fyvr13h{height:var(--seq-space-0)}.fyvr13l{height:var(--seq-space-1)}.fyvr13p{height:var(--seq-space-2)}.fyvr13t{height:var(--seq-space-3)}.fyvr13x{height:var(--seq-space-4)}.fyvr141{height:var(--seq-space-5)}.fyvr145{height:var(--seq-space-6)}.fyvr149{height:var(--seq-space-7)}.fyvr14d{height:var(--seq-space-8)}.fyvr14h{height:var(--seq-space-9)}.fyvr14l{height:var(--seq-space-10)}.fyvr14p{height:var(--seq-space-12)}.fyvr14t{height:var(--seq-space-14)}.fyvr14x{height:var(--seq-space-16)}.fyvr151{height:var(--seq-space-0_25)}.fyvr155{height:var(--seq-space-0_5)}.fyvr159{height:var(--seq-space-1_5)}.fyvr15d{height:0}.fyvr15h{height:1px}.fyvr15l{height:auto}.fyvr15p{height:100%}.fyvr15t{height:50%}.fyvr15x{height:33.33333%}.fyvr161{height:66.66667%}.fyvr165{height:25%}.fyvr169{height:75%}.fyvr16d{height:-moz-fit-content;height:fit-content}.fyvr16h{height:-moz-max-content;height:max-content}.fyvr16l{height:-moz-min-content;height:min-content}.fyvr16p{height:100vw}.fyvr16t{height:100vh}.fyvr16x{max-width:var(--seq-space-0)}.fyvr171{max-width:var(--seq-space-1)}.fyvr175{max-width:var(--seq-space-2)}.fyvr179{max-width:var(--seq-space-3)}.fyvr17d{max-width:var(--seq-space-4)}.fyvr17h{max-width:var(--seq-space-5)}.fyvr17l{max-width:var(--seq-space-6)}.fyvr17p{max-width:var(--seq-space-7)}.fyvr17t{max-width:var(--seq-space-8)}.fyvr17x{max-width:var(--seq-space-9)}.fyvr181{max-width:var(--seq-space-10)}.fyvr185{max-width:var(--seq-space-12)}.fyvr189{max-width:var(--seq-space-14)}.fyvr18d{max-width:var(--seq-space-16)}.fyvr18h{max-width:var(--seq-space-0_25)}.fyvr18l{max-width:var(--seq-space-0_5)}.fyvr18p{max-width:var(--seq-space-1_5)}.fyvr18t{max-width:0}.fyvr18x{max-width:1px}.fyvr191{max-width:auto}.fyvr195{max-width:100%}.fyvr199{max-width:50%}.fyvr19d{max-width:33.33333%}.fyvr19h{max-width:66.66667%}.fyvr19l{max-width:25%}.fyvr19p{max-width:75%}.fyvr19t{max-width:-moz-fit-content;max-width:fit-content}.fyvr19x{max-width:-moz-max-content;max-width:max-content}.fyvr1a1{max-width:-moz-min-content;max-width:min-content}.fyvr1a5{max-width:100vw}.fyvr1a9{max-width:100vh}.fyvr1ad{max-height:var(--seq-space-0)}.fyvr1ah{max-height:var(--seq-space-1)}.fyvr1al{max-height:var(--seq-space-2)}.fyvr1ap{max-height:var(--seq-space-3)}.fyvr1at{max-height:var(--seq-space-4)}.fyvr1ax{max-height:var(--seq-space-5)}.fyvr1b1{max-height:var(--seq-space-6)}.fyvr1b5{max-height:var(--seq-space-7)}.fyvr1b9{max-height:var(--seq-space-8)}.fyvr1bd{max-height:var(--seq-space-9)}.fyvr1bh{max-height:var(--seq-space-10)}.fyvr1bl{max-height:var(--seq-space-12)}.fyvr1bp{max-height:var(--seq-space-14)}.fyvr1bt{max-height:var(--seq-space-16)}.fyvr1bx{max-height:var(--seq-space-0_25)}.fyvr1c1{max-height:var(--seq-space-0_5)}.fyvr1c5{max-height:var(--seq-space-1_5)}.fyvr1c9{max-height:0}.fyvr1cd{max-height:1px}.fyvr1ch{max-height:auto}.fyvr1cl{max-height:100%}.fyvr1cp{max-height:50%}.fyvr1ct{max-height:33.33333%}.fyvr1cx{max-height:66.66667%}.fyvr1d1{max-height:25%}.fyvr1d5{max-height:75%}.fyvr1d9{max-height:-moz-fit-content;max-height:fit-content}.fyvr1dd{max-height:-moz-max-content;max-height:max-content}.fyvr1dh{max-height:-moz-min-content;max-height:min-content}.fyvr1dl{max-height:100vw}.fyvr1dp{max-height:100vh}.fyvr1dt{min-width:var(--seq-space-0)}.fyvr1dx{min-width:var(--seq-space-1)}.fyvr1e1{min-width:var(--seq-space-2)}.fyvr1e5{min-width:var(--seq-space-3)}.fyvr1e9{min-width:var(--seq-space-4)}.fyvr1ed{min-width:var(--seq-space-5)}.fyvr1eh{min-width:var(--seq-space-6)}.fyvr1el{min-width:var(--seq-space-7)}.fyvr1ep{min-width:var(--seq-space-8)}.fyvr1et{min-width:var(--seq-space-9)}.fyvr1ex{min-width:var(--seq-space-10)}.fyvr1f1{min-width:var(--seq-space-12)}.fyvr1f5{min-width:var(--seq-space-14)}.fyvr1f9{min-width:var(--seq-space-16)}.fyvr1fd{min-width:var(--seq-space-0_25)}.fyvr1fh{min-width:var(--seq-space-0_5)}.fyvr1fl{min-width:var(--seq-space-1_5)}.fyvr1fp{min-width:0}.fyvr1ft{min-width:1px}.fyvr1fx{min-width:auto}.fyvr1g1{min-width:100%}.fyvr1g5{min-width:50%}.fyvr1g9{min-width:33.33333%}.fyvr1gd{min-width:66.66667%}.fyvr1gh{min-width:25%}.fyvr1gl{min-width:75%}.fyvr1gp{min-width:-moz-fit-content;min-width:fit-content}.fyvr1gt{min-width:-moz-max-content;min-width:max-content}.fyvr1gx{min-width:-moz-min-content;min-width:min-content}.fyvr1h1{min-width:100vw}.fyvr1h5{min-width:100vh}.fyvr1h9{min-height:var(--seq-space-0)}.fyvr1hd{min-height:var(--seq-space-1)}.fyvr1hh{min-height:var(--seq-space-2)}.fyvr1hl{min-height:var(--seq-space-3)}.fyvr1hp{min-height:var(--seq-space-4)}.fyvr1ht{min-height:var(--seq-space-5)}.fyvr1hx{min-height:var(--seq-space-6)}.fyvr1i1{min-height:var(--seq-space-7)}.fyvr1i5{min-height:var(--seq-space-8)}.fyvr1i9{min-height:var(--seq-space-9)}.fyvr1id{min-height:var(--seq-space-10)}.fyvr1ih{min-height:var(--seq-space-12)}.fyvr1il{min-height:var(--seq-space-14)}.fyvr1ip{min-height:var(--seq-space-16)}.fyvr1it{min-height:var(--seq-space-0_25)}.fyvr1ix{min-height:var(--seq-space-0_5)}.fyvr1j1{min-height:var(--seq-space-1_5)}.fyvr1j5{min-height:0}.fyvr1j9{min-height:1px}.fyvr1jd{min-height:auto}.fyvr1jh{min-height:100%}.fyvr1jl{min-height:50%}.fyvr1jp{min-height:33.33333%}.fyvr1jt{min-height:66.66667%}.fyvr1jx{min-height:25%}.fyvr1k1{min-height:75%}.fyvr1k5{min-height:-moz-fit-content;min-height:fit-content}.fyvr1k9{min-height:-moz-max-content;min-height:max-content}.fyvr1kd{min-height:-moz-min-content;min-height:min-content}.fyvr1kh{min-height:100vw}.fyvr1kl{min-height:100vh}.fyvr1kp{top:var(--seq-space-0)}.fyvr1kt{top:var(--seq-space-1)}.fyvr1kx{top:var(--seq-space-2)}.fyvr1l1{top:var(--seq-space-3)}.fyvr1l5{top:var(--seq-space-4)}.fyvr1l9{top:var(--seq-space-5)}.fyvr1ld{top:var(--seq-space-6)}.fyvr1lh{top:var(--seq-space-7)}.fyvr1ll{top:var(--seq-space-8)}.fyvr1lp{top:var(--seq-space-9)}.fyvr1lt{top:var(--seq-space-10)}.fyvr1lx{top:var(--seq-space-12)}.fyvr1m1{top:var(--seq-space-14)}.fyvr1m5{top:var(--seq-space-16)}.fyvr1m9{top:var(--seq-space-0_25)}.fyvr1md{top:var(--seq-space-0_5)}.fyvr1mh{top:var(--seq-space-1_5)}.fyvr1ml{top:auto}.fyvr1mp{bottom:var(--seq-space-0)}.fyvr1mt{bottom:var(--seq-space-1)}.fyvr1mx{bottom:var(--seq-space-2)}.fyvr1n1{bottom:var(--seq-space-3)}.fyvr1n5{bottom:var(--seq-space-4)}.fyvr1n9{bottom:var(--seq-space-5)}.fyvr1nd{bottom:var(--seq-space-6)}.fyvr1nh{bottom:var(--seq-space-7)}.fyvr1nl{bottom:var(--seq-space-8)}.fyvr1np{bottom:var(--seq-space-9)}.fyvr1nt{bottom:var(--seq-space-10)}.fyvr1nx{bottom:var(--seq-space-12)}.fyvr1o1{bottom:var(--seq-space-14)}.fyvr1o5{bottom:var(--seq-space-16)}.fyvr1o9{bottom:var(--seq-space-0_25)}.fyvr1od{bottom:var(--seq-space-0_5)}.fyvr1oh{bottom:var(--seq-space-1_5)}.fyvr1ol{bottom:auto}.fyvr1op{left:var(--seq-space-0)}.fyvr1ot{left:var(--seq-space-1)}.fyvr1ox{left:var(--seq-space-2)}.fyvr1p1{left:var(--seq-space-3)}.fyvr1p5{left:var(--seq-space-4)}.fyvr1p9{left:var(--seq-space-5)}.fyvr1pd{left:var(--seq-space-6)}.fyvr1ph{left:var(--seq-space-7)}.fyvr1pl{left:var(--seq-space-8)}.fyvr1pp{left:var(--seq-space-9)}.fyvr1pt{left:var(--seq-space-10)}.fyvr1px{left:var(--seq-space-12)}.fyvr1q1{left:var(--seq-space-14)}.fyvr1q5{left:var(--seq-space-16)}.fyvr1q9{left:var(--seq-space-0_25)}.fyvr1qd{left:var(--seq-space-0_5)}.fyvr1qh{left:var(--seq-space-1_5)}.fyvr1ql{left:auto}.fyvr1qp{right:var(--seq-space-0)}.fyvr1qt{right:var(--seq-space-1)}.fyvr1qx{right:var(--seq-space-2)}.fyvr1r1{right:var(--seq-space-3)}.fyvr1r5{right:var(--seq-space-4)}.fyvr1r9{right:var(--seq-space-5)}.fyvr1rd{right:var(--seq-space-6)}.fyvr1rh{right:var(--seq-space-7)}.fyvr1rl{right:var(--seq-space-8)}.fyvr1rp{right:var(--seq-space-9)}.fyvr1rt{right:var(--seq-space-10)}.fyvr1rx{right:var(--seq-space-12)}.fyvr1s1{right:var(--seq-space-14)}.fyvr1s5{right:var(--seq-space-16)}.fyvr1s9{right:var(--seq-space-0_25)}.fyvr1sd{right:var(--seq-space-0_5)}.fyvr1sh{right:var(--seq-space-1_5)}.fyvr1sl{right:auto}.fyvr1sp{padding-top:var(--seq-space-0)}.fyvr1st{padding-top:var(--seq-space-1)}.fyvr1sx{padding-top:var(--seq-space-2)}.fyvr1t1{padding-top:var(--seq-space-3)}.fyvr1t5{padding-top:var(--seq-space-4)}.fyvr1t9{padding-top:var(--seq-space-5)}.fyvr1td{padding-top:var(--seq-space-6)}.fyvr1th{padding-top:var(--seq-space-7)}.fyvr1tl{padding-top:var(--seq-space-8)}.fyvr1tp{padding-top:var(--seq-space-9)}.fyvr1tt{padding-top:var(--seq-space-10)}.fyvr1tx{padding-top:var(--seq-space-12)}.fyvr1u1{padding-top:var(--seq-space-14)}.fyvr1u5{padding-top:var(--seq-space-16)}.fyvr1u9{padding-top:var(--seq-space-0_25)}.fyvr1ud{padding-top:var(--seq-space-0_5)}.fyvr1uh{padding-top:var(--seq-space-1_5)}.fyvr1ul{padding-bottom:var(--seq-space-0)}.fyvr1up{padding-bottom:var(--seq-space-1)}.fyvr1ut{padding-bottom:var(--seq-space-2)}.fyvr1ux{padding-bottom:var(--seq-space-3)}.fyvr1v1{padding-bottom:var(--seq-space-4)}.fyvr1v5{padding-bottom:var(--seq-space-5)}.fyvr1v9{padding-bottom:var(--seq-space-6)}.fyvr1vd{padding-bottom:var(--seq-space-7)}.fyvr1vh{padding-bottom:var(--seq-space-8)}.fyvr1vl{padding-bottom:var(--seq-space-9)}.fyvr1vp{padding-bottom:var(--seq-space-10)}.fyvr1vt{padding-bottom:var(--seq-space-12)}.fyvr1vx{padding-bottom:var(--seq-space-14)}.fyvr1w1{padding-bottom:var(--seq-space-16)}.fyvr1w5{padding-bottom:var(--seq-space-0_25)}.fyvr1w9{padding-bottom:var(--seq-space-0_5)}.fyvr1wd{padding-bottom:var(--seq-space-1_5)}.fyvr1wh{padding-left:var(--seq-space-0)}.fyvr1wl{padding-left:var(--seq-space-1)}.fyvr1wp{padding-left:var(--seq-space-2)}.fyvr1wt{padding-left:var(--seq-space-3)}.fyvr1wx{padding-left:var(--seq-space-4)}.fyvr1x1{padding-left:var(--seq-space-5)}.fyvr1x5{padding-left:var(--seq-space-6)}.fyvr1x9{padding-left:var(--seq-space-7)}.fyvr1xd{padding-left:var(--seq-space-8)}.fyvr1xh{padding-left:var(--seq-space-9)}.fyvr1xl{padding-left:var(--seq-space-10)}.fyvr1xp{padding-left:var(--seq-space-12)}.fyvr1xt{padding-left:var(--seq-space-14)}.fyvr1xx{padding-left:var(--seq-space-16)}.fyvr1y1{padding-left:var(--seq-space-0_25)}.fyvr1y5{padding-left:var(--seq-space-0_5)}.fyvr1y9{padding-left:var(--seq-space-1_5)}.fyvr1yd{padding-right:var(--seq-space-0)}.fyvr1yh{padding-right:var(--seq-space-1)}.fyvr1yl{padding-right:var(--seq-space-2)}.fyvr1yp{padding-right:var(--seq-space-3)}.fyvr1yt{padding-right:var(--seq-space-4)}.fyvr1yx{padding-right:var(--seq-space-5)}.fyvr1z1{padding-right:var(--seq-space-6)}.fyvr1z5{padding-right:var(--seq-space-7)}.fyvr1z9{padding-right:var(--seq-space-8)}.fyvr1zd{padding-right:var(--seq-space-9)}.fyvr1zh{padding-right:var(--seq-space-10)}.fyvr1zl{padding-right:var(--seq-space-12)}.fyvr1zp{padding-right:var(--seq-space-14)}.fyvr1zt{padding-right:var(--seq-space-16)}.fyvr1zx{padding-right:var(--seq-space-0_25)}.fyvr1101{padding-right:var(--seq-space-0_5)}.fyvr1105{padding-right:var(--seq-space-1_5)}.fyvr1109{margin-top:var(--seq-space-0)}.fyvr110d{margin-top:var(--seq-space-1)}.fyvr110h{margin-top:var(--seq-space-2)}.fyvr110l{margin-top:var(--seq-space-3)}.fyvr110p{margin-top:var(--seq-space-4)}.fyvr110t{margin-top:var(--seq-space-5)}.fyvr110x{margin-top:var(--seq-space-6)}.fyvr1111{margin-top:var(--seq-space-7)}.fyvr1115{margin-top:var(--seq-space-8)}.fyvr1119{margin-top:var(--seq-space-9)}.fyvr111d{margin-top:var(--seq-space-10)}.fyvr111h{margin-top:var(--seq-space-12)}.fyvr111l{margin-top:var(--seq-space-14)}.fyvr111p{margin-top:var(--seq-space-16)}.fyvr111t{margin-top:var(--seq-space-0_25)}.fyvr111x{margin-top:var(--seq-space-0_5)}.fyvr1121{margin-top:var(--seq-space-1_5)}.fyvr1125{margin-top:auto}.fyvr1129{margin-bottom:var(--seq-space-0)}.fyvr112d{margin-bottom:var(--seq-space-1)}.fyvr112h{margin-bottom:var(--seq-space-2)}.fyvr112l{margin-bottom:var(--seq-space-3)}.fyvr112p{margin-bottom:var(--seq-space-4)}.fyvr112t{margin-bottom:var(--seq-space-5)}.fyvr112x{margin-bottom:var(--seq-space-6)}.fyvr1131{margin-bottom:var(--seq-space-7)}.fyvr1135{margin-bottom:var(--seq-space-8)}.fyvr1139{margin-bottom:var(--seq-space-9)}.fyvr113d{margin-bottom:var(--seq-space-10)}.fyvr113h{margin-bottom:var(--seq-space-12)}.fyvr113l{margin-bottom:var(--seq-space-14)}.fyvr113p{margin-bottom:var(--seq-space-16)}.fyvr113t{margin-bottom:var(--seq-space-0_25)}.fyvr113x{margin-bottom:var(--seq-space-0_5)}.fyvr1141{margin-bottom:var(--seq-space-1_5)}.fyvr1145{margin-bottom:auto}.fyvr1149{margin-left:var(--seq-space-0)}.fyvr114d{margin-left:var(--seq-space-1)}.fyvr114h{margin-left:var(--seq-space-2)}.fyvr114l{margin-left:var(--seq-space-3)}.fyvr114p{margin-left:var(--seq-space-4)}.fyvr114t{margin-left:var(--seq-space-5)}.fyvr114x{margin-left:var(--seq-space-6)}.fyvr1151{margin-left:var(--seq-space-7)}.fyvr1155{margin-left:var(--seq-space-8)}.fyvr1159{margin-left:var(--seq-space-9)}.fyvr115d{margin-left:var(--seq-space-10)}.fyvr115h{margin-left:var(--seq-space-12)}.fyvr115l{margin-left:var(--seq-space-14)}.fyvr115p{margin-left:var(--seq-space-16)}.fyvr115t{margin-left:var(--seq-space-0_25)}.fyvr115x{margin-left:var(--seq-space-0_5)}.fyvr1161{margin-left:var(--seq-space-1_5)}.fyvr1165{margin-left:auto}.fyvr1169{margin-right:var(--seq-space-0)}.fyvr116d{margin-right:var(--seq-space-1)}.fyvr116h{margin-right:var(--seq-space-2)}.fyvr116l{margin-right:var(--seq-space-3)}.fyvr116p{margin-right:var(--seq-space-4)}.fyvr116t{margin-right:var(--seq-space-5)}.fyvr116x{margin-right:var(--seq-space-6)}.fyvr1171{margin-right:var(--seq-space-7)}.fyvr1175{margin-right:var(--seq-space-8)}.fyvr1179{margin-right:var(--seq-space-9)}.fyvr117d{margin-right:var(--seq-space-10)}.fyvr117h{margin-right:var(--seq-space-12)}.fyvr117l{margin-right:var(--seq-space-14)}.fyvr117p{margin-right:var(--seq-space-16)}.fyvr117t{margin-right:var(--seq-space-0_25)}.fyvr117x{margin-right:var(--seq-space-0_5)}.fyvr1181{margin-right:var(--seq-space-1_5)}.fyvr1185{margin-right:auto}.fyvr1189{gap:var(--seq-space-0)}.fyvr118d{gap:var(--seq-space-1)}.fyvr118h{gap:var(--seq-space-2)}.fyvr118l{gap:var(--seq-space-3)}.fyvr118p{gap:var(--seq-space-4)}.fyvr118t{gap:var(--seq-space-5)}.fyvr118x{gap:var(--seq-space-6)}.fyvr1191{gap:var(--seq-space-7)}.fyvr1195{gap:var(--seq-space-8)}.fyvr1199{gap:var(--seq-space-9)}.fyvr119d{gap:var(--seq-space-10)}.fyvr119h{gap:var(--seq-space-12)}.fyvr119l{gap:var(--seq-space-14)}.fyvr119p{gap:var(--seq-space-16)}.fyvr119t{gap:var(--seq-space-0_25)}.fyvr119x{gap:var(--seq-space-0_5)}.fyvr11a1{gap:var(--seq-space-1_5)}.fyvr11a5{border-bottom-width:var(--seq-border-widths-none)}.fyvr11a9{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11ad{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11ah{border-left-width:var(--seq-border-widths-none)}.fyvr11al{border-left-width:var(--seq-border-widths-thin)}.fyvr11ap{border-left-width:var(--seq-border-widths-thick)}.fyvr11at{border-right-width:var(--seq-border-widths-none)}.fyvr11ax{border-right-width:var(--seq-border-widths-thin)}.fyvr11b1{border-right-width:var(--seq-border-widths-thick)}.fyvr11b5{border-top-width:var(--seq-border-widths-none)}.fyvr11b9{border-top-width:var(--seq-border-widths-thin)}.fyvr11bd{border-top-width:var(--seq-border-widths-thick)}.fyvr11bh{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11bl{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11bp{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11bt{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11bx{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11c1{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11c5{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11c9{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11cd{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11ch{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11cl{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11cp{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11ct{border-top-left-radius:var(--seq-radii-none)}.fyvr11cx{border-top-left-radius:var(--seq-radii-xs)}.fyvr11d1{border-top-left-radius:var(--seq-radii-sm)}.fyvr11d5{border-top-left-radius:var(--seq-radii-md)}.fyvr11d9{border-top-left-radius:var(--seq-radii-lg)}.fyvr11dd{border-top-left-radius:var(--seq-radii-circle)}.fyvr11dh{border-top-right-radius:var(--seq-radii-none)}.fyvr11dl{border-top-right-radius:var(--seq-radii-xs)}.fyvr11dp{border-top-right-radius:var(--seq-radii-sm)}.fyvr11dt{border-top-right-radius:var(--seq-radii-md)}.fyvr11dx{border-top-right-radius:var(--seq-radii-lg)}.fyvr11e1{border-top-right-radius:var(--seq-radii-circle)}.fyvr11e5{font-size:var(--seq-font-sizes-inherit)}.fyvr11e9{font-size:var(--seq-font-sizes-xsmall)}.fyvr11ed{font-size:var(--seq-font-sizes-small)}.fyvr11eh{font-size:var(--seq-font-sizes-normal)}.fyvr11el{font-size:var(--seq-font-sizes-medium)}.fyvr11ep{font-size:var(--seq-font-sizes-large)}.fyvr11et{font-size:var(--seq-font-sizes-xlarge)}.fyvr11ex{font-weight:var(--seq-font-weights-inherit)}.fyvr11f1{font-weight:var(--seq-font-weights-normal)}.fyvr11f5{font-weight:var(--seq-font-weights-medium)}.fyvr11f9{font-weight:var(--seq-font-weights-semibold)}.fyvr11fd{font-weight:var(--seq-font-weights-bold)}.fyvr11fh{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11fl{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11fp{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11ft{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11fx{line-height:var(--seq-line-heights-4)}.fyvr11g1{line-height:var(--seq-line-heights-5)}.fyvr11g5{line-height:var(--seq-line-heights-6)}.fyvr11g9{line-height:var(--seq-line-heights-7)}.fyvr11gd{line-height:var(--seq-line-heights-9)}.fyvr11gh{line-height:var(--seq-line-heights-inherit)}.fyvr11gl{text-align:center}.fyvr11gp{text-align:left}.fyvr11gt{text-align:right}.fyvr11gx{display:block}.fyvr11h1{display:flex}.fyvr11h5{display:grid}.fyvr11h9{display:inline-block}.fyvr11hd{display:inline-flex}.fyvr11hh{display:none}.fyvr11hl{display:contents}.fyvr11hp{position:absolute}.fyvr11ht{position:fixed}.fyvr11hx{position:relative}.fyvr11i1{position:sticky}.fyvr11i5{flex-direction:column}.fyvr11i9{flex-direction:column-reverse}.fyvr11id{flex-direction:row}.fyvr11ih{flex-direction:row-reverse}.fyvr11il{flex-shrink:0}.fyvr11ip{flex-shrink:1}.fyvr11it{flex-grow:0}.fyvr11ix{flex-grow:1}.fyvr11j1{flex-wrap:nowrap}.fyvr11j5{flex-wrap:wrap}.fyvr11j9{flex-wrap:wrap-reverse}.fyvr11jd{justify-content:flex-start}.fyvr11jh{justify-content:center}.fyvr11jl{justify-content:flex-end}.fyvr11jp{justify-content:stretch}.fyvr11jt{justify-content:space-around}.fyvr11jx{justify-content:space-between}.fyvr11k1{justify-content:space-evenly}.fyvr11k5{justify-self:flex-start}.fyvr11k9{justify-self:center}.fyvr11kd{justify-self:flex-end}.fyvr11kh{justify-self:stretch}.fyvr11kl{align-items:flex-start}.fyvr11kp{align-items:center}.fyvr11kt{align-items:flex-end}.fyvr11kx{align-items:stretch}.fyvr11l1{align-items:baseline}.fyvr11l5{align-self:flex-start}.fyvr11l9{align-self:center}.fyvr11ld{align-self:flex-end}.fyvr11lh{align-self:stretch}.fyvr11ll{align-self:baseline}.fyvr11lp{overflow-x:auto}.fyvr11lt{overflow-x:hidden}.fyvr11lx{overflow-x:scroll}.fyvr11m1{overflow-x:visible}.fyvr11m5{overflow-y:auto}.fyvr11m9{overflow-y:hidden}.fyvr11md{overflow-y:scroll}.fyvr11mh{overflow-y:visible}.fyvr11ml{visibility:hidden}.fyvr11mp{visibility:visible}}@media (min-width: 769px){.fyvr12{width:var(--seq-space-0)}.fyvr16{width:var(--seq-space-1)}.fyvr1a{width:var(--seq-space-2)}.fyvr1e{width:var(--seq-space-3)}.fyvr1i{width:var(--seq-space-4)}.fyvr1m{width:var(--seq-space-5)}.fyvr1q{width:var(--seq-space-6)}.fyvr1u{width:var(--seq-space-7)}.fyvr1y{width:var(--seq-space-8)}.fyvr112{width:var(--seq-space-9)}.fyvr116{width:var(--seq-space-10)}.fyvr11a{width:var(--seq-space-12)}.fyvr11e{width:var(--seq-space-14)}.fyvr11i{width:var(--seq-space-16)}.fyvr11m{width:var(--seq-space-0_25)}.fyvr11q{width:var(--seq-space-0_5)}.fyvr11u{width:var(--seq-space-1_5)}.fyvr11y{width:0}.fyvr122{width:1px}.fyvr126{width:auto}.fyvr12a{width:100%}.fyvr12e{width:50%}.fyvr12i{width:33.33333%}.fyvr12m{width:66.66667%}.fyvr12q{width:25%}.fyvr12u{width:75%}.fyvr12y{width:-moz-fit-content;width:fit-content}.fyvr132{width:-moz-max-content;width:max-content}.fyvr136{width:-moz-min-content;width:min-content}.fyvr13a{width:100vw}.fyvr13e{width:100vh}.fyvr13i{height:var(--seq-space-0)}.fyvr13m{height:var(--seq-space-1)}.fyvr13q{height:var(--seq-space-2)}.fyvr13u{height:var(--seq-space-3)}.fyvr13y{height:var(--seq-space-4)}.fyvr142{height:var(--seq-space-5)}.fyvr146{height:var(--seq-space-6)}.fyvr14a{height:var(--seq-space-7)}.fyvr14e{height:var(--seq-space-8)}.fyvr14i{height:var(--seq-space-9)}.fyvr14m{height:var(--seq-space-10)}.fyvr14q{height:var(--seq-space-12)}.fyvr14u{height:var(--seq-space-14)}.fyvr14y{height:var(--seq-space-16)}.fyvr152{height:var(--seq-space-0_25)}.fyvr156{height:var(--seq-space-0_5)}.fyvr15a{height:var(--seq-space-1_5)}.fyvr15e{height:0}.fyvr15i{height:1px}.fyvr15m{height:auto}.fyvr15q{height:100%}.fyvr15u{height:50%}.fyvr15y{height:33.33333%}.fyvr162{height:66.66667%}.fyvr166{height:25%}.fyvr16a{height:75%}.fyvr16e{height:-moz-fit-content;height:fit-content}.fyvr16i{height:-moz-max-content;height:max-content}.fyvr16m{height:-moz-min-content;height:min-content}.fyvr16q{height:100vw}.fyvr16u{height:100vh}.fyvr16y{max-width:var(--seq-space-0)}.fyvr172{max-width:var(--seq-space-1)}.fyvr176{max-width:var(--seq-space-2)}.fyvr17a{max-width:var(--seq-space-3)}.fyvr17e{max-width:var(--seq-space-4)}.fyvr17i{max-width:var(--seq-space-5)}.fyvr17m{max-width:var(--seq-space-6)}.fyvr17q{max-width:var(--seq-space-7)}.fyvr17u{max-width:var(--seq-space-8)}.fyvr17y{max-width:var(--seq-space-9)}.fyvr182{max-width:var(--seq-space-10)}.fyvr186{max-width:var(--seq-space-12)}.fyvr18a{max-width:var(--seq-space-14)}.fyvr18e{max-width:var(--seq-space-16)}.fyvr18i{max-width:var(--seq-space-0_25)}.fyvr18m{max-width:var(--seq-space-0_5)}.fyvr18q{max-width:var(--seq-space-1_5)}.fyvr18u{max-width:0}.fyvr18y{max-width:1px}.fyvr192{max-width:auto}.fyvr196{max-width:100%}.fyvr19a{max-width:50%}.fyvr19e{max-width:33.33333%}.fyvr19i{max-width:66.66667%}.fyvr19m{max-width:25%}.fyvr19q{max-width:75%}.fyvr19u{max-width:-moz-fit-content;max-width:fit-content}.fyvr19y{max-width:-moz-max-content;max-width:max-content}.fyvr1a2{max-width:-moz-min-content;max-width:min-content}.fyvr1a6{max-width:100vw}.fyvr1aa{max-width:100vh}.fyvr1ae{max-height:var(--seq-space-0)}.fyvr1ai{max-height:var(--seq-space-1)}.fyvr1am{max-height:var(--seq-space-2)}.fyvr1aq{max-height:var(--seq-space-3)}.fyvr1au{max-height:var(--seq-space-4)}.fyvr1ay{max-height:var(--seq-space-5)}.fyvr1b2{max-height:var(--seq-space-6)}.fyvr1b6{max-height:var(--seq-space-7)}.fyvr1ba{max-height:var(--seq-space-8)}.fyvr1be{max-height:var(--seq-space-9)}.fyvr1bi{max-height:var(--seq-space-10)}.fyvr1bm{max-height:var(--seq-space-12)}.fyvr1bq{max-height:var(--seq-space-14)}.fyvr1bu{max-height:var(--seq-space-16)}.fyvr1by{max-height:var(--seq-space-0_25)}.fyvr1c2{max-height:var(--seq-space-0_5)}.fyvr1c6{max-height:var(--seq-space-1_5)}.fyvr1ca{max-height:0}.fyvr1ce{max-height:1px}.fyvr1ci{max-height:auto}.fyvr1cm{max-height:100%}.fyvr1cq{max-height:50%}.fyvr1cu{max-height:33.33333%}.fyvr1cy{max-height:66.66667%}.fyvr1d2{max-height:25%}.fyvr1d6{max-height:75%}.fyvr1da{max-height:-moz-fit-content;max-height:fit-content}.fyvr1de{max-height:-moz-max-content;max-height:max-content}.fyvr1di{max-height:-moz-min-content;max-height:min-content}.fyvr1dm{max-height:100vw}.fyvr1dq{max-height:100vh}.fyvr1du{min-width:var(--seq-space-0)}.fyvr1dy{min-width:var(--seq-space-1)}.fyvr1e2{min-width:var(--seq-space-2)}.fyvr1e6{min-width:var(--seq-space-3)}.fyvr1ea{min-width:var(--seq-space-4)}.fyvr1ee{min-width:var(--seq-space-5)}.fyvr1ei{min-width:var(--seq-space-6)}.fyvr1em{min-width:var(--seq-space-7)}.fyvr1eq{min-width:var(--seq-space-8)}.fyvr1eu{min-width:var(--seq-space-9)}.fyvr1ey{min-width:var(--seq-space-10)}.fyvr1f2{min-width:var(--seq-space-12)}.fyvr1f6{min-width:var(--seq-space-14)}.fyvr1fa{min-width:var(--seq-space-16)}.fyvr1fe{min-width:var(--seq-space-0_25)}.fyvr1fi{min-width:var(--seq-space-0_5)}.fyvr1fm{min-width:var(--seq-space-1_5)}.fyvr1fq{min-width:0}.fyvr1fu{min-width:1px}.fyvr1fy{min-width:auto}.fyvr1g2{min-width:100%}.fyvr1g6{min-width:50%}.fyvr1ga{min-width:33.33333%}.fyvr1ge{min-width:66.66667%}.fyvr1gi{min-width:25%}.fyvr1gm{min-width:75%}.fyvr1gq{min-width:-moz-fit-content;min-width:fit-content}.fyvr1gu{min-width:-moz-max-content;min-width:max-content}.fyvr1gy{min-width:-moz-min-content;min-width:min-content}.fyvr1h2{min-width:100vw}.fyvr1h6{min-width:100vh}.fyvr1ha{min-height:var(--seq-space-0)}.fyvr1he{min-height:var(--seq-space-1)}.fyvr1hi{min-height:var(--seq-space-2)}.fyvr1hm{min-height:var(--seq-space-3)}.fyvr1hq{min-height:var(--seq-space-4)}.fyvr1hu{min-height:var(--seq-space-5)}.fyvr1hy{min-height:var(--seq-space-6)}.fyvr1i2{min-height:var(--seq-space-7)}.fyvr1i6{min-height:var(--seq-space-8)}.fyvr1ia{min-height:var(--seq-space-9)}.fyvr1ie{min-height:var(--seq-space-10)}.fyvr1ii{min-height:var(--seq-space-12)}.fyvr1im{min-height:var(--seq-space-14)}.fyvr1iq{min-height:var(--seq-space-16)}.fyvr1iu{min-height:var(--seq-space-0_25)}.fyvr1iy{min-height:var(--seq-space-0_5)}.fyvr1j2{min-height:var(--seq-space-1_5)}.fyvr1j6{min-height:0}.fyvr1ja{min-height:1px}.fyvr1je{min-height:auto}.fyvr1ji{min-height:100%}.fyvr1jm{min-height:50%}.fyvr1jq{min-height:33.33333%}.fyvr1ju{min-height:66.66667%}.fyvr1jy{min-height:25%}.fyvr1k2{min-height:75%}.fyvr1k6{min-height:-moz-fit-content;min-height:fit-content}.fyvr1ka{min-height:-moz-max-content;min-height:max-content}.fyvr1ke{min-height:-moz-min-content;min-height:min-content}.fyvr1ki{min-height:100vw}.fyvr1km{min-height:100vh}.fyvr1kq{top:var(--seq-space-0)}.fyvr1ku{top:var(--seq-space-1)}.fyvr1ky{top:var(--seq-space-2)}.fyvr1l2{top:var(--seq-space-3)}.fyvr1l6{top:var(--seq-space-4)}.fyvr1la{top:var(--seq-space-5)}.fyvr1le{top:var(--seq-space-6)}.fyvr1li{top:var(--seq-space-7)}.fyvr1lm{top:var(--seq-space-8)}.fyvr1lq{top:var(--seq-space-9)}.fyvr1lu{top:var(--seq-space-10)}.fyvr1ly{top:var(--seq-space-12)}.fyvr1m2{top:var(--seq-space-14)}.fyvr1m6{top:var(--seq-space-16)}.fyvr1ma{top:var(--seq-space-0_25)}.fyvr1me{top:var(--seq-space-0_5)}.fyvr1mi{top:var(--seq-space-1_5)}.fyvr1mm{top:auto}.fyvr1mq{bottom:var(--seq-space-0)}.fyvr1mu{bottom:var(--seq-space-1)}.fyvr1my{bottom:var(--seq-space-2)}.fyvr1n2{bottom:var(--seq-space-3)}.fyvr1n6{bottom:var(--seq-space-4)}.fyvr1na{bottom:var(--seq-space-5)}.fyvr1ne{bottom:var(--seq-space-6)}.fyvr1ni{bottom:var(--seq-space-7)}.fyvr1nm{bottom:var(--seq-space-8)}.fyvr1nq{bottom:var(--seq-space-9)}.fyvr1nu{bottom:var(--seq-space-10)}.fyvr1ny{bottom:var(--seq-space-12)}.fyvr1o2{bottom:var(--seq-space-14)}.fyvr1o6{bottom:var(--seq-space-16)}.fyvr1oa{bottom:var(--seq-space-0_25)}.fyvr1oe{bottom:var(--seq-space-0_5)}.fyvr1oi{bottom:var(--seq-space-1_5)}.fyvr1om{bottom:auto}.fyvr1oq{left:var(--seq-space-0)}.fyvr1ou{left:var(--seq-space-1)}.fyvr1oy{left:var(--seq-space-2)}.fyvr1p2{left:var(--seq-space-3)}.fyvr1p6{left:var(--seq-space-4)}.fyvr1pa{left:var(--seq-space-5)}.fyvr1pe{left:var(--seq-space-6)}.fyvr1pi{left:var(--seq-space-7)}.fyvr1pm{left:var(--seq-space-8)}.fyvr1pq{left:var(--seq-space-9)}.fyvr1pu{left:var(--seq-space-10)}.fyvr1py{left:var(--seq-space-12)}.fyvr1q2{left:var(--seq-space-14)}.fyvr1q6{left:var(--seq-space-16)}.fyvr1qa{left:var(--seq-space-0_25)}.fyvr1qe{left:var(--seq-space-0_5)}.fyvr1qi{left:var(--seq-space-1_5)}.fyvr1qm{left:auto}.fyvr1qq{right:var(--seq-space-0)}.fyvr1qu{right:var(--seq-space-1)}.fyvr1qy{right:var(--seq-space-2)}.fyvr1r2{right:var(--seq-space-3)}.fyvr1r6{right:var(--seq-space-4)}.fyvr1ra{right:var(--seq-space-5)}.fyvr1re{right:var(--seq-space-6)}.fyvr1ri{right:var(--seq-space-7)}.fyvr1rm{right:var(--seq-space-8)}.fyvr1rq{right:var(--seq-space-9)}.fyvr1ru{right:var(--seq-space-10)}.fyvr1ry{right:var(--seq-space-12)}.fyvr1s2{right:var(--seq-space-14)}.fyvr1s6{right:var(--seq-space-16)}.fyvr1sa{right:var(--seq-space-0_25)}.fyvr1se{right:var(--seq-space-0_5)}.fyvr1si{right:var(--seq-space-1_5)}.fyvr1sm{right:auto}.fyvr1sq{padding-top:var(--seq-space-0)}.fyvr1su{padding-top:var(--seq-space-1)}.fyvr1sy{padding-top:var(--seq-space-2)}.fyvr1t2{padding-top:var(--seq-space-3)}.fyvr1t6{padding-top:var(--seq-space-4)}.fyvr1ta{padding-top:var(--seq-space-5)}.fyvr1te{padding-top:var(--seq-space-6)}.fyvr1ti{padding-top:var(--seq-space-7)}.fyvr1tm{padding-top:var(--seq-space-8)}.fyvr1tq{padding-top:var(--seq-space-9)}.fyvr1tu{padding-top:var(--seq-space-10)}.fyvr1ty{padding-top:var(--seq-space-12)}.fyvr1u2{padding-top:var(--seq-space-14)}.fyvr1u6{padding-top:var(--seq-space-16)}.fyvr1ua{padding-top:var(--seq-space-0_25)}.fyvr1ue{padding-top:var(--seq-space-0_5)}.fyvr1ui{padding-top:var(--seq-space-1_5)}.fyvr1um{padding-bottom:var(--seq-space-0)}.fyvr1uq{padding-bottom:var(--seq-space-1)}.fyvr1uu{padding-bottom:var(--seq-space-2)}.fyvr1uy{padding-bottom:var(--seq-space-3)}.fyvr1v2{padding-bottom:var(--seq-space-4)}.fyvr1v6{padding-bottom:var(--seq-space-5)}.fyvr1va{padding-bottom:var(--seq-space-6)}.fyvr1ve{padding-bottom:var(--seq-space-7)}.fyvr1vi{padding-bottom:var(--seq-space-8)}.fyvr1vm{padding-bottom:var(--seq-space-9)}.fyvr1vq{padding-bottom:var(--seq-space-10)}.fyvr1vu{padding-bottom:var(--seq-space-12)}.fyvr1vy{padding-bottom:var(--seq-space-14)}.fyvr1w2{padding-bottom:var(--seq-space-16)}.fyvr1w6{padding-bottom:var(--seq-space-0_25)}.fyvr1wa{padding-bottom:var(--seq-space-0_5)}.fyvr1we{padding-bottom:var(--seq-space-1_5)}.fyvr1wi{padding-left:var(--seq-space-0)}.fyvr1wm{padding-left:var(--seq-space-1)}.fyvr1wq{padding-left:var(--seq-space-2)}.fyvr1wu{padding-left:var(--seq-space-3)}.fyvr1wy{padding-left:var(--seq-space-4)}.fyvr1x2{padding-left:var(--seq-space-5)}.fyvr1x6{padding-left:var(--seq-space-6)}.fyvr1xa{padding-left:var(--seq-space-7)}.fyvr1xe{padding-left:var(--seq-space-8)}.fyvr1xi{padding-left:var(--seq-space-9)}.fyvr1xm{padding-left:var(--seq-space-10)}.fyvr1xq{padding-left:var(--seq-space-12)}.fyvr1xu{padding-left:var(--seq-space-14)}.fyvr1xy{padding-left:var(--seq-space-16)}.fyvr1y2{padding-left:var(--seq-space-0_25)}.fyvr1y6{padding-left:var(--seq-space-0_5)}.fyvr1ya{padding-left:var(--seq-space-1_5)}.fyvr1ye{padding-right:var(--seq-space-0)}.fyvr1yi{padding-right:var(--seq-space-1)}.fyvr1ym{padding-right:var(--seq-space-2)}.fyvr1yq{padding-right:var(--seq-space-3)}.fyvr1yu{padding-right:var(--seq-space-4)}.fyvr1yy{padding-right:var(--seq-space-5)}.fyvr1z2{padding-right:var(--seq-space-6)}.fyvr1z6{padding-right:var(--seq-space-7)}.fyvr1za{padding-right:var(--seq-space-8)}.fyvr1ze{padding-right:var(--seq-space-9)}.fyvr1zi{padding-right:var(--seq-space-10)}.fyvr1zm{padding-right:var(--seq-space-12)}.fyvr1zq{padding-right:var(--seq-space-14)}.fyvr1zu{padding-right:var(--seq-space-16)}.fyvr1zy{padding-right:var(--seq-space-0_25)}.fyvr1102{padding-right:var(--seq-space-0_5)}.fyvr1106{padding-right:var(--seq-space-1_5)}.fyvr110a{margin-top:var(--seq-space-0)}.fyvr110e{margin-top:var(--seq-space-1)}.fyvr110i{margin-top:var(--seq-space-2)}.fyvr110m{margin-top:var(--seq-space-3)}.fyvr110q{margin-top:var(--seq-space-4)}.fyvr110u{margin-top:var(--seq-space-5)}.fyvr110y{margin-top:var(--seq-space-6)}.fyvr1112{margin-top:var(--seq-space-7)}.fyvr1116{margin-top:var(--seq-space-8)}.fyvr111a{margin-top:var(--seq-space-9)}.fyvr111e{margin-top:var(--seq-space-10)}.fyvr111i{margin-top:var(--seq-space-12)}.fyvr111m{margin-top:var(--seq-space-14)}.fyvr111q{margin-top:var(--seq-space-16)}.fyvr111u{margin-top:var(--seq-space-0_25)}.fyvr111y{margin-top:var(--seq-space-0_5)}.fyvr1122{margin-top:var(--seq-space-1_5)}.fyvr1126{margin-top:auto}.fyvr112a{margin-bottom:var(--seq-space-0)}.fyvr112e{margin-bottom:var(--seq-space-1)}.fyvr112i{margin-bottom:var(--seq-space-2)}.fyvr112m{margin-bottom:var(--seq-space-3)}.fyvr112q{margin-bottom:var(--seq-space-4)}.fyvr112u{margin-bottom:var(--seq-space-5)}.fyvr112y{margin-bottom:var(--seq-space-6)}.fyvr1132{margin-bottom:var(--seq-space-7)}.fyvr1136{margin-bottom:var(--seq-space-8)}.fyvr113a{margin-bottom:var(--seq-space-9)}.fyvr113e{margin-bottom:var(--seq-space-10)}.fyvr113i{margin-bottom:var(--seq-space-12)}.fyvr113m{margin-bottom:var(--seq-space-14)}.fyvr113q{margin-bottom:var(--seq-space-16)}.fyvr113u{margin-bottom:var(--seq-space-0_25)}.fyvr113y{margin-bottom:var(--seq-space-0_5)}.fyvr1142{margin-bottom:var(--seq-space-1_5)}.fyvr1146{margin-bottom:auto}.fyvr114a{margin-left:var(--seq-space-0)}.fyvr114e{margin-left:var(--seq-space-1)}.fyvr114i{margin-left:var(--seq-space-2)}.fyvr114m{margin-left:var(--seq-space-3)}.fyvr114q{margin-left:var(--seq-space-4)}.fyvr114u{margin-left:var(--seq-space-5)}.fyvr114y{margin-left:var(--seq-space-6)}.fyvr1152{margin-left:var(--seq-space-7)}.fyvr1156{margin-left:var(--seq-space-8)}.fyvr115a{margin-left:var(--seq-space-9)}.fyvr115e{margin-left:var(--seq-space-10)}.fyvr115i{margin-left:var(--seq-space-12)}.fyvr115m{margin-left:var(--seq-space-14)}.fyvr115q{margin-left:var(--seq-space-16)}.fyvr115u{margin-left:var(--seq-space-0_25)}.fyvr115y{margin-left:var(--seq-space-0_5)}.fyvr1162{margin-left:var(--seq-space-1_5)}.fyvr1166{margin-left:auto}.fyvr116a{margin-right:var(--seq-space-0)}.fyvr116e{margin-right:var(--seq-space-1)}.fyvr116i{margin-right:var(--seq-space-2)}.fyvr116m{margin-right:var(--seq-space-3)}.fyvr116q{margin-right:var(--seq-space-4)}.fyvr116u{margin-right:var(--seq-space-5)}.fyvr116y{margin-right:var(--seq-space-6)}.fyvr1172{margin-right:var(--seq-space-7)}.fyvr1176{margin-right:var(--seq-space-8)}.fyvr117a{margin-right:var(--seq-space-9)}.fyvr117e{margin-right:var(--seq-space-10)}.fyvr117i{margin-right:var(--seq-space-12)}.fyvr117m{margin-right:var(--seq-space-14)}.fyvr117q{margin-right:var(--seq-space-16)}.fyvr117u{margin-right:var(--seq-space-0_25)}.fyvr117y{margin-right:var(--seq-space-0_5)}.fyvr1182{margin-right:var(--seq-space-1_5)}.fyvr1186{margin-right:auto}.fyvr118a{gap:var(--seq-space-0)}.fyvr118e{gap:var(--seq-space-1)}.fyvr118i{gap:var(--seq-space-2)}.fyvr118m{gap:var(--seq-space-3)}.fyvr118q{gap:var(--seq-space-4)}.fyvr118u{gap:var(--seq-space-5)}.fyvr118y{gap:var(--seq-space-6)}.fyvr1192{gap:var(--seq-space-7)}.fyvr1196{gap:var(--seq-space-8)}.fyvr119a{gap:var(--seq-space-9)}.fyvr119e{gap:var(--seq-space-10)}.fyvr119i{gap:var(--seq-space-12)}.fyvr119m{gap:var(--seq-space-14)}.fyvr119q{gap:var(--seq-space-16)}.fyvr119u{gap:var(--seq-space-0_25)}.fyvr119y{gap:var(--seq-space-0_5)}.fyvr11a2{gap:var(--seq-space-1_5)}.fyvr11a6{border-bottom-width:var(--seq-border-widths-none)}.fyvr11aa{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11ae{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11ai{border-left-width:var(--seq-border-widths-none)}.fyvr11am{border-left-width:var(--seq-border-widths-thin)}.fyvr11aq{border-left-width:var(--seq-border-widths-thick)}.fyvr11au{border-right-width:var(--seq-border-widths-none)}.fyvr11ay{border-right-width:var(--seq-border-widths-thin)}.fyvr11b2{border-right-width:var(--seq-border-widths-thick)}.fyvr11b6{border-top-width:var(--seq-border-widths-none)}.fyvr11ba{border-top-width:var(--seq-border-widths-thin)}.fyvr11be{border-top-width:var(--seq-border-widths-thick)}.fyvr11bi{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11bm{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11bq{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11bu{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11by{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11c2{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11c6{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11ca{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11ce{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11ci{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11cm{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11cq{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11cu{border-top-left-radius:var(--seq-radii-none)}.fyvr11cy{border-top-left-radius:var(--seq-radii-xs)}.fyvr11d2{border-top-left-radius:var(--seq-radii-sm)}.fyvr11d6{border-top-left-radius:var(--seq-radii-md)}.fyvr11da{border-top-left-radius:var(--seq-radii-lg)}.fyvr11de{border-top-left-radius:var(--seq-radii-circle)}.fyvr11di{border-top-right-radius:var(--seq-radii-none)}.fyvr11dm{border-top-right-radius:var(--seq-radii-xs)}.fyvr11dq{border-top-right-radius:var(--seq-radii-sm)}.fyvr11du{border-top-right-radius:var(--seq-radii-md)}.fyvr11dy{border-top-right-radius:var(--seq-radii-lg)}.fyvr11e2{border-top-right-radius:var(--seq-radii-circle)}.fyvr11e6{font-size:var(--seq-font-sizes-inherit)}.fyvr11ea{font-size:var(--seq-font-sizes-xsmall)}.fyvr11ee{font-size:var(--seq-font-sizes-small)}.fyvr11ei{font-size:var(--seq-font-sizes-normal)}.fyvr11em{font-size:var(--seq-font-sizes-medium)}.fyvr11eq{font-size:var(--seq-font-sizes-large)}.fyvr11eu{font-size:var(--seq-font-sizes-xlarge)}.fyvr11ey{font-weight:var(--seq-font-weights-inherit)}.fyvr11f2{font-weight:var(--seq-font-weights-normal)}.fyvr11f6{font-weight:var(--seq-font-weights-medium)}.fyvr11fa{font-weight:var(--seq-font-weights-semibold)}.fyvr11fe{font-weight:var(--seq-font-weights-bold)}.fyvr11fi{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11fm{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11fq{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11fu{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11fy{line-height:var(--seq-line-heights-4)}.fyvr11g2{line-height:var(--seq-line-heights-5)}.fyvr11g6{line-height:var(--seq-line-heights-6)}.fyvr11ga{line-height:var(--seq-line-heights-7)}.fyvr11ge{line-height:var(--seq-line-heights-9)}.fyvr11gi{line-height:var(--seq-line-heights-inherit)}.fyvr11gm{text-align:center}.fyvr11gq{text-align:left}.fyvr11gu{text-align:right}.fyvr11gy{display:block}.fyvr11h2{display:flex}.fyvr11h6{display:grid}.fyvr11ha{display:inline-block}.fyvr11he{display:inline-flex}.fyvr11hi{display:none}.fyvr11hm{display:contents}.fyvr11hq{position:absolute}.fyvr11hu{position:fixed}.fyvr11hy{position:relative}.fyvr11i2{position:sticky}.fyvr11i6{flex-direction:column}.fyvr11ia{flex-direction:column-reverse}.fyvr11ie{flex-direction:row}.fyvr11ii{flex-direction:row-reverse}.fyvr11im{flex-shrink:0}.fyvr11iq{flex-shrink:1}.fyvr11iu{flex-grow:0}.fyvr11iy{flex-grow:1}.fyvr11j2{flex-wrap:nowrap}.fyvr11j6{flex-wrap:wrap}.fyvr11ja{flex-wrap:wrap-reverse}.fyvr11je{justify-content:flex-start}.fyvr11ji{justify-content:center}.fyvr11jm{justify-content:flex-end}.fyvr11jq{justify-content:stretch}.fyvr11ju{justify-content:space-around}.fyvr11jy{justify-content:space-between}.fyvr11k2{justify-content:space-evenly}.fyvr11k6{justify-self:flex-start}.fyvr11ka{justify-self:center}.fyvr11ke{justify-self:flex-end}.fyvr11ki{justify-self:stretch}.fyvr11km{align-items:flex-start}.fyvr11kq{align-items:center}.fyvr11ku{align-items:flex-end}.fyvr11ky{align-items:stretch}.fyvr11l2{align-items:baseline}.fyvr11l6{align-self:flex-start}.fyvr11la{align-self:center}.fyvr11le{align-self:flex-end}.fyvr11li{align-self:stretch}.fyvr11lm{align-self:baseline}.fyvr11lq{overflow-x:auto}.fyvr11lu{overflow-x:hidden}.fyvr11ly{overflow-x:scroll}.fyvr11m2{overflow-x:visible}.fyvr11m6{overflow-y:auto}.fyvr11ma{overflow-y:hidden}.fyvr11me{overflow-y:scroll}.fyvr11mi{overflow-y:visible}.fyvr11mm{visibility:hidden}.fyvr11mq{visibility:visible}}@media (min-width: 1281px){.fyvr13{width:var(--seq-space-0)}.fyvr17{width:var(--seq-space-1)}.fyvr1b{width:var(--seq-space-2)}.fyvr1f{width:var(--seq-space-3)}.fyvr1j{width:var(--seq-space-4)}.fyvr1n{width:var(--seq-space-5)}.fyvr1r{width:var(--seq-space-6)}.fyvr1v{width:var(--seq-space-7)}.fyvr1z{width:var(--seq-space-8)}.fyvr113{width:var(--seq-space-9)}.fyvr117{width:var(--seq-space-10)}.fyvr11b{width:var(--seq-space-12)}.fyvr11f{width:var(--seq-space-14)}.fyvr11j{width:var(--seq-space-16)}.fyvr11n{width:var(--seq-space-0_25)}.fyvr11r{width:var(--seq-space-0_5)}.fyvr11v{width:var(--seq-space-1_5)}.fyvr11z{width:0}.fyvr123{width:1px}.fyvr127{width:auto}.fyvr12b{width:100%}.fyvr12f{width:50%}.fyvr12j{width:33.33333%}.fyvr12n{width:66.66667%}.fyvr12r{width:25%}.fyvr12v{width:75%}.fyvr12z{width:-moz-fit-content;width:fit-content}.fyvr133{width:-moz-max-content;width:max-content}.fyvr137{width:-moz-min-content;width:min-content}.fyvr13b{width:100vw}.fyvr13f{width:100vh}.fyvr13j{height:var(--seq-space-0)}.fyvr13n{height:var(--seq-space-1)}.fyvr13r{height:var(--seq-space-2)}.fyvr13v{height:var(--seq-space-3)}.fyvr13z{height:var(--seq-space-4)}.fyvr143{height:var(--seq-space-5)}.fyvr147{height:var(--seq-space-6)}.fyvr14b{height:var(--seq-space-7)}.fyvr14f{height:var(--seq-space-8)}.fyvr14j{height:var(--seq-space-9)}.fyvr14n{height:var(--seq-space-10)}.fyvr14r{height:var(--seq-space-12)}.fyvr14v{height:var(--seq-space-14)}.fyvr14z{height:var(--seq-space-16)}.fyvr153{height:var(--seq-space-0_25)}.fyvr157{height:var(--seq-space-0_5)}.fyvr15b{height:var(--seq-space-1_5)}.fyvr15f{height:0}.fyvr15j{height:1px}.fyvr15n{height:auto}.fyvr15r{height:100%}.fyvr15v{height:50%}.fyvr15z{height:33.33333%}.fyvr163{height:66.66667%}.fyvr167{height:25%}.fyvr16b{height:75%}.fyvr16f{height:-moz-fit-content;height:fit-content}.fyvr16j{height:-moz-max-content;height:max-content}.fyvr16n{height:-moz-min-content;height:min-content}.fyvr16r{height:100vw}.fyvr16v{height:100vh}.fyvr16z{max-width:var(--seq-space-0)}.fyvr173{max-width:var(--seq-space-1)}.fyvr177{max-width:var(--seq-space-2)}.fyvr17b{max-width:var(--seq-space-3)}.fyvr17f{max-width:var(--seq-space-4)}.fyvr17j{max-width:var(--seq-space-5)}.fyvr17n{max-width:var(--seq-space-6)}.fyvr17r{max-width:var(--seq-space-7)}.fyvr17v{max-width:var(--seq-space-8)}.fyvr17z{max-width:var(--seq-space-9)}.fyvr183{max-width:var(--seq-space-10)}.fyvr187{max-width:var(--seq-space-12)}.fyvr18b{max-width:var(--seq-space-14)}.fyvr18f{max-width:var(--seq-space-16)}.fyvr18j{max-width:var(--seq-space-0_25)}.fyvr18n{max-width:var(--seq-space-0_5)}.fyvr18r{max-width:var(--seq-space-1_5)}.fyvr18v{max-width:0}.fyvr18z{max-width:1px}.fyvr193{max-width:auto}.fyvr197{max-width:100%}.fyvr19b{max-width:50%}.fyvr19f{max-width:33.33333%}.fyvr19j{max-width:66.66667%}.fyvr19n{max-width:25%}.fyvr19r{max-width:75%}.fyvr19v{max-width:-moz-fit-content;max-width:fit-content}.fyvr19z{max-width:-moz-max-content;max-width:max-content}.fyvr1a3{max-width:-moz-min-content;max-width:min-content}.fyvr1a7{max-width:100vw}.fyvr1ab{max-width:100vh}.fyvr1af{max-height:var(--seq-space-0)}.fyvr1aj{max-height:var(--seq-space-1)}.fyvr1an{max-height:var(--seq-space-2)}.fyvr1ar{max-height:var(--seq-space-3)}.fyvr1av{max-height:var(--seq-space-4)}.fyvr1az{max-height:var(--seq-space-5)}.fyvr1b3{max-height:var(--seq-space-6)}.fyvr1b7{max-height:var(--seq-space-7)}.fyvr1bb{max-height:var(--seq-space-8)}.fyvr1bf{max-height:var(--seq-space-9)}.fyvr1bj{max-height:var(--seq-space-10)}.fyvr1bn{max-height:var(--seq-space-12)}.fyvr1br{max-height:var(--seq-space-14)}.fyvr1bv{max-height:var(--seq-space-16)}.fyvr1bz{max-height:var(--seq-space-0_25)}.fyvr1c3{max-height:var(--seq-space-0_5)}.fyvr1c7{max-height:var(--seq-space-1_5)}.fyvr1cb{max-height:0}.fyvr1cf{max-height:1px}.fyvr1cj{max-height:auto}.fyvr1cn{max-height:100%}.fyvr1cr{max-height:50%}.fyvr1cv{max-height:33.33333%}.fyvr1cz{max-height:66.66667%}.fyvr1d3{max-height:25%}.fyvr1d7{max-height:75%}.fyvr1db{max-height:-moz-fit-content;max-height:fit-content}.fyvr1df{max-height:-moz-max-content;max-height:max-content}.fyvr1dj{max-height:-moz-min-content;max-height:min-content}.fyvr1dn{max-height:100vw}.fyvr1dr{max-height:100vh}.fyvr1dv{min-width:var(--seq-space-0)}.fyvr1dz{min-width:var(--seq-space-1)}.fyvr1e3{min-width:var(--seq-space-2)}.fyvr1e7{min-width:var(--seq-space-3)}.fyvr1eb{min-width:var(--seq-space-4)}.fyvr1ef{min-width:var(--seq-space-5)}.fyvr1ej{min-width:var(--seq-space-6)}.fyvr1en{min-width:var(--seq-space-7)}.fyvr1er{min-width:var(--seq-space-8)}.fyvr1ev{min-width:var(--seq-space-9)}.fyvr1ez{min-width:var(--seq-space-10)}.fyvr1f3{min-width:var(--seq-space-12)}.fyvr1f7{min-width:var(--seq-space-14)}.fyvr1fb{min-width:var(--seq-space-16)}.fyvr1ff{min-width:var(--seq-space-0_25)}.fyvr1fj{min-width:var(--seq-space-0_5)}.fyvr1fn{min-width:var(--seq-space-1_5)}.fyvr1fr{min-width:0}.fyvr1fv{min-width:1px}.fyvr1fz{min-width:auto}.fyvr1g3{min-width:100%}.fyvr1g7{min-width:50%}.fyvr1gb{min-width:33.33333%}.fyvr1gf{min-width:66.66667%}.fyvr1gj{min-width:25%}.fyvr1gn{min-width:75%}.fyvr1gr{min-width:-moz-fit-content;min-width:fit-content}.fyvr1gv{min-width:-moz-max-content;min-width:max-content}.fyvr1gz{min-width:-moz-min-content;min-width:min-content}.fyvr1h3{min-width:100vw}.fyvr1h7{min-width:100vh}.fyvr1hb{min-height:var(--seq-space-0)}.fyvr1hf{min-height:var(--seq-space-1)}.fyvr1hj{min-height:var(--seq-space-2)}.fyvr1hn{min-height:var(--seq-space-3)}.fyvr1hr{min-height:var(--seq-space-4)}.fyvr1hv{min-height:var(--seq-space-5)}.fyvr1hz{min-height:var(--seq-space-6)}.fyvr1i3{min-height:var(--seq-space-7)}.fyvr1i7{min-height:var(--seq-space-8)}.fyvr1ib{min-height:var(--seq-space-9)}.fyvr1if{min-height:var(--seq-space-10)}.fyvr1ij{min-height:var(--seq-space-12)}.fyvr1in{min-height:var(--seq-space-14)}.fyvr1ir{min-height:var(--seq-space-16)}.fyvr1iv{min-height:var(--seq-space-0_25)}.fyvr1iz{min-height:var(--seq-space-0_5)}.fyvr1j3{min-height:var(--seq-space-1_5)}.fyvr1j7{min-height:0}.fyvr1jb{min-height:1px}.fyvr1jf{min-height:auto}.fyvr1jj{min-height:100%}.fyvr1jn{min-height:50%}.fyvr1jr{min-height:33.33333%}.fyvr1jv{min-height:66.66667%}.fyvr1jz{min-height:25%}.fyvr1k3{min-height:75%}.fyvr1k7{min-height:-moz-fit-content;min-height:fit-content}.fyvr1kb{min-height:-moz-max-content;min-height:max-content}.fyvr1kf{min-height:-moz-min-content;min-height:min-content}.fyvr1kj{min-height:100vw}.fyvr1kn{min-height:100vh}.fyvr1kr{top:var(--seq-space-0)}.fyvr1kv{top:var(--seq-space-1)}.fyvr1kz{top:var(--seq-space-2)}.fyvr1l3{top:var(--seq-space-3)}.fyvr1l7{top:var(--seq-space-4)}.fyvr1lb{top:var(--seq-space-5)}.fyvr1lf{top:var(--seq-space-6)}.fyvr1lj{top:var(--seq-space-7)}.fyvr1ln{top:var(--seq-space-8)}.fyvr1lr{top:var(--seq-space-9)}.fyvr1lv{top:var(--seq-space-10)}.fyvr1lz{top:var(--seq-space-12)}.fyvr1m3{top:var(--seq-space-14)}.fyvr1m7{top:var(--seq-space-16)}.fyvr1mb{top:var(--seq-space-0_25)}.fyvr1mf{top:var(--seq-space-0_5)}.fyvr1mj{top:var(--seq-space-1_5)}.fyvr1mn{top:auto}.fyvr1mr{bottom:var(--seq-space-0)}.fyvr1mv{bottom:var(--seq-space-1)}.fyvr1mz{bottom:var(--seq-space-2)}.fyvr1n3{bottom:var(--seq-space-3)}.fyvr1n7{bottom:var(--seq-space-4)}.fyvr1nb{bottom:var(--seq-space-5)}.fyvr1nf{bottom:var(--seq-space-6)}.fyvr1nj{bottom:var(--seq-space-7)}.fyvr1nn{bottom:var(--seq-space-8)}.fyvr1nr{bottom:var(--seq-space-9)}.fyvr1nv{bottom:var(--seq-space-10)}.fyvr1nz{bottom:var(--seq-space-12)}.fyvr1o3{bottom:var(--seq-space-14)}.fyvr1o7{bottom:var(--seq-space-16)}.fyvr1ob{bottom:var(--seq-space-0_25)}.fyvr1of{bottom:var(--seq-space-0_5)}.fyvr1oj{bottom:var(--seq-space-1_5)}.fyvr1on{bottom:auto}.fyvr1or{left:var(--seq-space-0)}.fyvr1ov{left:var(--seq-space-1)}.fyvr1oz{left:var(--seq-space-2)}.fyvr1p3{left:var(--seq-space-3)}.fyvr1p7{left:var(--seq-space-4)}.fyvr1pb{left:var(--seq-space-5)}.fyvr1pf{left:var(--seq-space-6)}.fyvr1pj{left:var(--seq-space-7)}.fyvr1pn{left:var(--seq-space-8)}.fyvr1pr{left:var(--seq-space-9)}.fyvr1pv{left:var(--seq-space-10)}.fyvr1pz{left:var(--seq-space-12)}.fyvr1q3{left:var(--seq-space-14)}.fyvr1q7{left:var(--seq-space-16)}.fyvr1qb{left:var(--seq-space-0_25)}.fyvr1qf{left:var(--seq-space-0_5)}.fyvr1qj{left:var(--seq-space-1_5)}.fyvr1qn{left:auto}.fyvr1qr{right:var(--seq-space-0)}.fyvr1qv{right:var(--seq-space-1)}.fyvr1qz{right:var(--seq-space-2)}.fyvr1r3{right:var(--seq-space-3)}.fyvr1r7{right:var(--seq-space-4)}.fyvr1rb{right:var(--seq-space-5)}.fyvr1rf{right:var(--seq-space-6)}.fyvr1rj{right:var(--seq-space-7)}.fyvr1rn{right:var(--seq-space-8)}.fyvr1rr{right:var(--seq-space-9)}.fyvr1rv{right:var(--seq-space-10)}.fyvr1rz{right:var(--seq-space-12)}.fyvr1s3{right:var(--seq-space-14)}.fyvr1s7{right:var(--seq-space-16)}.fyvr1sb{right:var(--seq-space-0_25)}.fyvr1sf{right:var(--seq-space-0_5)}.fyvr1sj{right:var(--seq-space-1_5)}.fyvr1sn{right:auto}.fyvr1sr{padding-top:var(--seq-space-0)}.fyvr1sv{padding-top:var(--seq-space-1)}.fyvr1sz{padding-top:var(--seq-space-2)}.fyvr1t3{padding-top:var(--seq-space-3)}.fyvr1t7{padding-top:var(--seq-space-4)}.fyvr1tb{padding-top:var(--seq-space-5)}.fyvr1tf{padding-top:var(--seq-space-6)}.fyvr1tj{padding-top:var(--seq-space-7)}.fyvr1tn{padding-top:var(--seq-space-8)}.fyvr1tr{padding-top:var(--seq-space-9)}.fyvr1tv{padding-top:var(--seq-space-10)}.fyvr1tz{padding-top:var(--seq-space-12)}.fyvr1u3{padding-top:var(--seq-space-14)}.fyvr1u7{padding-top:var(--seq-space-16)}.fyvr1ub{padding-top:var(--seq-space-0_25)}.fyvr1uf{padding-top:var(--seq-space-0_5)}.fyvr1uj{padding-top:var(--seq-space-1_5)}.fyvr1un{padding-bottom:var(--seq-space-0)}.fyvr1ur{padding-bottom:var(--seq-space-1)}.fyvr1uv{padding-bottom:var(--seq-space-2)}.fyvr1uz{padding-bottom:var(--seq-space-3)}.fyvr1v3{padding-bottom:var(--seq-space-4)}.fyvr1v7{padding-bottom:var(--seq-space-5)}.fyvr1vb{padding-bottom:var(--seq-space-6)}.fyvr1vf{padding-bottom:var(--seq-space-7)}.fyvr1vj{padding-bottom:var(--seq-space-8)}.fyvr1vn{padding-bottom:var(--seq-space-9)}.fyvr1vr{padding-bottom:var(--seq-space-10)}.fyvr1vv{padding-bottom:var(--seq-space-12)}.fyvr1vz{padding-bottom:var(--seq-space-14)}.fyvr1w3{padding-bottom:var(--seq-space-16)}.fyvr1w7{padding-bottom:var(--seq-space-0_25)}.fyvr1wb{padding-bottom:var(--seq-space-0_5)}.fyvr1wf{padding-bottom:var(--seq-space-1_5)}.fyvr1wj{padding-left:var(--seq-space-0)}.fyvr1wn{padding-left:var(--seq-space-1)}.fyvr1wr{padding-left:var(--seq-space-2)}.fyvr1wv{padding-left:var(--seq-space-3)}.fyvr1wz{padding-left:var(--seq-space-4)}.fyvr1x3{padding-left:var(--seq-space-5)}.fyvr1x7{padding-left:var(--seq-space-6)}.fyvr1xb{padding-left:var(--seq-space-7)}.fyvr1xf{padding-left:var(--seq-space-8)}.fyvr1xj{padding-left:var(--seq-space-9)}.fyvr1xn{padding-left:var(--seq-space-10)}.fyvr1xr{padding-left:var(--seq-space-12)}.fyvr1xv{padding-left:var(--seq-space-14)}.fyvr1xz{padding-left:var(--seq-space-16)}.fyvr1y3{padding-left:var(--seq-space-0_25)}.fyvr1y7{padding-left:var(--seq-space-0_5)}.fyvr1yb{padding-left:var(--seq-space-1_5)}.fyvr1yf{padding-right:var(--seq-space-0)}.fyvr1yj{padding-right:var(--seq-space-1)}.fyvr1yn{padding-right:var(--seq-space-2)}.fyvr1yr{padding-right:var(--seq-space-3)}.fyvr1yv{padding-right:var(--seq-space-4)}.fyvr1yz{padding-right:var(--seq-space-5)}.fyvr1z3{padding-right:var(--seq-space-6)}.fyvr1z7{padding-right:var(--seq-space-7)}.fyvr1zb{padding-right:var(--seq-space-8)}.fyvr1zf{padding-right:var(--seq-space-9)}.fyvr1zj{padding-right:var(--seq-space-10)}.fyvr1zn{padding-right:var(--seq-space-12)}.fyvr1zr{padding-right:var(--seq-space-14)}.fyvr1zv{padding-right:var(--seq-space-16)}.fyvr1zz{padding-right:var(--seq-space-0_25)}.fyvr1103{padding-right:var(--seq-space-0_5)}.fyvr1107{padding-right:var(--seq-space-1_5)}.fyvr110b{margin-top:var(--seq-space-0)}.fyvr110f{margin-top:var(--seq-space-1)}.fyvr110j{margin-top:var(--seq-space-2)}.fyvr110n{margin-top:var(--seq-space-3)}.fyvr110r{margin-top:var(--seq-space-4)}.fyvr110v{margin-top:var(--seq-space-5)}.fyvr110z{margin-top:var(--seq-space-6)}.fyvr1113{margin-top:var(--seq-space-7)}.fyvr1117{margin-top:var(--seq-space-8)}.fyvr111b{margin-top:var(--seq-space-9)}.fyvr111f{margin-top:var(--seq-space-10)}.fyvr111j{margin-top:var(--seq-space-12)}.fyvr111n{margin-top:var(--seq-space-14)}.fyvr111r{margin-top:var(--seq-space-16)}.fyvr111v{margin-top:var(--seq-space-0_25)}.fyvr111z{margin-top:var(--seq-space-0_5)}.fyvr1123{margin-top:var(--seq-space-1_5)}.fyvr1127{margin-top:auto}.fyvr112b{margin-bottom:var(--seq-space-0)}.fyvr112f{margin-bottom:var(--seq-space-1)}.fyvr112j{margin-bottom:var(--seq-space-2)}.fyvr112n{margin-bottom:var(--seq-space-3)}.fyvr112r{margin-bottom:var(--seq-space-4)}.fyvr112v{margin-bottom:var(--seq-space-5)}.fyvr112z{margin-bottom:var(--seq-space-6)}.fyvr1133{margin-bottom:var(--seq-space-7)}.fyvr1137{margin-bottom:var(--seq-space-8)}.fyvr113b{margin-bottom:var(--seq-space-9)}.fyvr113f{margin-bottom:var(--seq-space-10)}.fyvr113j{margin-bottom:var(--seq-space-12)}.fyvr113n{margin-bottom:var(--seq-space-14)}.fyvr113r{margin-bottom:var(--seq-space-16)}.fyvr113v{margin-bottom:var(--seq-space-0_25)}.fyvr113z{margin-bottom:var(--seq-space-0_5)}.fyvr1143{margin-bottom:var(--seq-space-1_5)}.fyvr1147{margin-bottom:auto}.fyvr114b{margin-left:var(--seq-space-0)}.fyvr114f{margin-left:var(--seq-space-1)}.fyvr114j{margin-left:var(--seq-space-2)}.fyvr114n{margin-left:var(--seq-space-3)}.fyvr114r{margin-left:var(--seq-space-4)}.fyvr114v{margin-left:var(--seq-space-5)}.fyvr114z{margin-left:var(--seq-space-6)}.fyvr1153{margin-left:var(--seq-space-7)}.fyvr1157{margin-left:var(--seq-space-8)}.fyvr115b{margin-left:var(--seq-space-9)}.fyvr115f{margin-left:var(--seq-space-10)}.fyvr115j{margin-left:var(--seq-space-12)}.fyvr115n{margin-left:var(--seq-space-14)}.fyvr115r{margin-left:var(--seq-space-16)}.fyvr115v{margin-left:var(--seq-space-0_25)}.fyvr115z{margin-left:var(--seq-space-0_5)}.fyvr1163{margin-left:var(--seq-space-1_5)}.fyvr1167{margin-left:auto}.fyvr116b{margin-right:var(--seq-space-0)}.fyvr116f{margin-right:var(--seq-space-1)}.fyvr116j{margin-right:var(--seq-space-2)}.fyvr116n{margin-right:var(--seq-space-3)}.fyvr116r{margin-right:var(--seq-space-4)}.fyvr116v{margin-right:var(--seq-space-5)}.fyvr116z{margin-right:var(--seq-space-6)}.fyvr1173{margin-right:var(--seq-space-7)}.fyvr1177{margin-right:var(--seq-space-8)}.fyvr117b{margin-right:var(--seq-space-9)}.fyvr117f{margin-right:var(--seq-space-10)}.fyvr117j{margin-right:var(--seq-space-12)}.fyvr117n{margin-right:var(--seq-space-14)}.fyvr117r{margin-right:var(--seq-space-16)}.fyvr117v{margin-right:var(--seq-space-0_25)}.fyvr117z{margin-right:var(--seq-space-0_5)}.fyvr1183{margin-right:var(--seq-space-1_5)}.fyvr1187{margin-right:auto}.fyvr118b{gap:var(--seq-space-0)}.fyvr118f{gap:var(--seq-space-1)}.fyvr118j{gap:var(--seq-space-2)}.fyvr118n{gap:var(--seq-space-3)}.fyvr118r{gap:var(--seq-space-4)}.fyvr118v{gap:var(--seq-space-5)}.fyvr118z{gap:var(--seq-space-6)}.fyvr1193{gap:var(--seq-space-7)}.fyvr1197{gap:var(--seq-space-8)}.fyvr119b{gap:var(--seq-space-9)}.fyvr119f{gap:var(--seq-space-10)}.fyvr119j{gap:var(--seq-space-12)}.fyvr119n{gap:var(--seq-space-14)}.fyvr119r{gap:var(--seq-space-16)}.fyvr119v{gap:var(--seq-space-0_25)}.fyvr119z{gap:var(--seq-space-0_5)}.fyvr11a3{gap:var(--seq-space-1_5)}.fyvr11a7{border-bottom-width:var(--seq-border-widths-none)}.fyvr11ab{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11af{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11aj{border-left-width:var(--seq-border-widths-none)}.fyvr11an{border-left-width:var(--seq-border-widths-thin)}.fyvr11ar{border-left-width:var(--seq-border-widths-thick)}.fyvr11av{border-right-width:var(--seq-border-widths-none)}.fyvr11az{border-right-width:var(--seq-border-widths-thin)}.fyvr11b3{border-right-width:var(--seq-border-widths-thick)}.fyvr11b7{border-top-width:var(--seq-border-widths-none)}.fyvr11bb{border-top-width:var(--seq-border-widths-thin)}.fyvr11bf{border-top-width:var(--seq-border-widths-thick)}.fyvr11bj{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11bn{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11br{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11bv{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11bz{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11c3{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11c7{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11cb{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11cf{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11cj{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11cn{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11cr{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11cv{border-top-left-radius:var(--seq-radii-none)}.fyvr11cz{border-top-left-radius:var(--seq-radii-xs)}.fyvr11d3{border-top-left-radius:var(--seq-radii-sm)}.fyvr11d7{border-top-left-radius:var(--seq-radii-md)}.fyvr11db{border-top-left-radius:var(--seq-radii-lg)}.fyvr11df{border-top-left-radius:var(--seq-radii-circle)}.fyvr11dj{border-top-right-radius:var(--seq-radii-none)}.fyvr11dn{border-top-right-radius:var(--seq-radii-xs)}.fyvr11dr{border-top-right-radius:var(--seq-radii-sm)}.fyvr11dv{border-top-right-radius:var(--seq-radii-md)}.fyvr11dz{border-top-right-radius:var(--seq-radii-lg)}.fyvr11e3{border-top-right-radius:var(--seq-radii-circle)}.fyvr11e7{font-size:var(--seq-font-sizes-inherit)}.fyvr11eb{font-size:var(--seq-font-sizes-xsmall)}.fyvr11ef{font-size:var(--seq-font-sizes-small)}.fyvr11ej{font-size:var(--seq-font-sizes-normal)}.fyvr11en{font-size:var(--seq-font-sizes-medium)}.fyvr11er{font-size:var(--seq-font-sizes-large)}.fyvr11ev{font-size:var(--seq-font-sizes-xlarge)}.fyvr11ez{font-weight:var(--seq-font-weights-inherit)}.fyvr11f3{font-weight:var(--seq-font-weights-normal)}.fyvr11f7{font-weight:var(--seq-font-weights-medium)}.fyvr11fb{font-weight:var(--seq-font-weights-semibold)}.fyvr11ff{font-weight:var(--seq-font-weights-bold)}.fyvr11fj{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11fn{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11fr{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11fv{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11fz{line-height:var(--seq-line-heights-4)}.fyvr11g3{line-height:var(--seq-line-heights-5)}.fyvr11g7{line-height:var(--seq-line-heights-6)}.fyvr11gb{line-height:var(--seq-line-heights-7)}.fyvr11gf{line-height:var(--seq-line-heights-9)}.fyvr11gj{line-height:var(--seq-line-heights-inherit)}.fyvr11gn{text-align:center}.fyvr11gr{text-align:left}.fyvr11gv{text-align:right}.fyvr11gz{display:block}.fyvr11h3{display:flex}.fyvr11h7{display:grid}.fyvr11hb{display:inline-block}.fyvr11hf{display:inline-flex}.fyvr11hj{display:none}.fyvr11hn{display:contents}.fyvr11hr{position:absolute}.fyvr11hv{position:fixed}.fyvr11hz{position:relative}.fyvr11i3{position:sticky}.fyvr11i7{flex-direction:column}.fyvr11ib{flex-direction:column-reverse}.fyvr11if{flex-direction:row}.fyvr11ij{flex-direction:row-reverse}.fyvr11in{flex-shrink:0}.fyvr11ir{flex-shrink:1}.fyvr11iv{flex-grow:0}.fyvr11iz{flex-grow:1}.fyvr11j3{flex-wrap:nowrap}.fyvr11j7{flex-wrap:wrap}.fyvr11jb{flex-wrap:wrap-reverse}.fyvr11jf{justify-content:flex-start}.fyvr11jj{justify-content:center}.fyvr11jn{justify-content:flex-end}.fyvr11jr{justify-content:stretch}.fyvr11jv{justify-content:space-around}.fyvr11jz{justify-content:space-between}.fyvr11k3{justify-content:space-evenly}.fyvr11k7{justify-self:flex-start}.fyvr11kb{justify-self:center}.fyvr11kf{justify-self:flex-end}.fyvr11kj{justify-self:stretch}.fyvr11kn{align-items:flex-start}.fyvr11kr{align-items:center}.fyvr11kv{align-items:flex-end}.fyvr11kz{align-items:stretch}.fyvr11l3{align-items:baseline}.fyvr11l7{align-self:flex-start}.fyvr11lb{align-self:center}.fyvr11lf{align-self:flex-end}.fyvr11lj{align-self:stretch}.fyvr11ln{align-self:baseline}.fyvr11lr{overflow-x:auto}.fyvr11lv{overflow-x:hidden}.fyvr11lz{overflow-x:scroll}.fyvr11m3{overflow-x:visible}.fyvr11m7{overflow-y:auto}.fyvr11mb{overflow-y:hidden}.fyvr11mf{overflow-y:scroll}.fyvr11mj{overflow-y:visible}.fyvr11mn{visibility:hidden}.fyvr11mr{visibility:visible}}._4efw240:focus{outline:none}._4efw240:focus-visible{outline:none;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}._1qxj1ibj{font-style:italic}._1qxj1ibk{-webkit-text-decoration:underline;text-decoration:underline}._1qxj1ibl{text-transform:uppercase}._1qxj1ibm{text-transform:capitalize}._1qxj1ibn{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}._2q9vfj7{font-weight:var(--seq-font-weights-normal)}._140wn8nl{outline:2px solid rgba(255,255,255,.1);outline-offset:-2px}._140wn8nr{outline-offset:1px}._140wn8nw{height:28px}._140wn8nx{height:36px}._140wn8ny{height:44px}._140wn8nz{height:52px}._140wn8n10{padding:0;display:flex;align-items:center;justify-content:center}._140wn8n13{outline-color:var(--seq-colors-background-secondary);outline-style:solid;outline-offset:calc(var(--seq-border-widths-thick) * -1);outline-width:var(--seq-border-widths-thick);border-color:transparent}._140wn8n14{outline-color:var(--seq-colors-border-normal);outline-style:solid;outline-offset:calc(var(--seq-border-widths-thick) * -1);outline-width:var(--seq-border-widths-thick);border-color:transparent}._140wn8n15{width:28px}._140wn8n16{width:36px}._140wn8n17{width:44px}._140wn8n18{width:52px}._140wn8n19,._140wn8n1a{padding-left:var(--seq-space-2)}._140wn8n1b{padding-left:var(--seq-space-4)}._140wn8n1c,._140wn8n1d{padding-right:var(--seq-space-2)}._140wn8n1e{padding-right:var(--seq-space-4)}.rhmai65{opacity:.5;cursor:default;pointer-events:none}._43lu9r6{grid-template-columns:1fr 2fr}._43lu9r7{grid-template-columns:2fr 1fr}._1dizidw0{flex-shrink:0}._1dizidw1{height:var(--seq-line-heights-4);width:var(--seq-line-heights-4)}._1dizidw2{height:var(--seq-line-heights-5);width:var(--seq-line-heights-5)}._1dizidw3{height:var(--seq-line-heights-6);width:var(--seq-line-heights-6)}._1dizidw4{height:var(--seq-line-heights-7);width:var(--seq-line-heights-7)}._1dizidw5{height:var(--seq-line-heights-9);width:var(--seq-line-heights-9)}._1c9x66f2{height:20px;width:20px}._1c9x66f3{height:28px;width:28px}._4j62fl0{min-height:64px}._4j62fl2{border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:64px}._4j62fl4{transform-origin:top}._4j62fl5{height:1.25rem;width:1.25rem;display:block}._1k2mbvi1{width:160px}._1k2mbvi2{fill:var(--seq-colors-background-raised)}._1k2mbvi4[data-disabled]{opacity:.8;cursor:default;pointer-events:none;color:var(--seq-colors-text50)}._1k2mbvi4[data-highlighted]{background:var(--seq-colors-background-contrast)}._1k2mbvi5{position:absolute;left:0;width:var(--seq-space-6);display:inline-flex;align-items:center;justify-content:center}._1hq71vk1{height:52px}._1hq71vk1:has(:disabled),._1hq71vk1:has(:disabled):hover{cursor:default;opacity:.5}._1hq71vk1:focus-within{opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}._1bhyzin1{width:12px;height:12px}._1bhyzin2{width:20px;height:20px}._1bhyzin3{width:32px;height:32px}._1bhyzin4{width:40px;height:40px}._1bhyzin5{width:52px;height:52px}._1vqx0w92{height:100%;overflow-y:auto;overscroll-behavior-y:contain}._1vqx0w93{overflow-x:auto;overscroll-behavior-x:contain;width:100%}._1vqx0w95:before{content:"";position:absolute;z-index:1;pointer-events:none}._1vqx0w95:after{content:"";position:absolute;z-index:1;pointer-events:none}._1vqx0w96:before{display:none}._1vqx0w96:after{display:none}._1vqx0w97:before{background:linear-gradient(to top,transparent 0%,var(--seq-colors-background-primary) 100%);left:0;top:0;width:100%;height:var(--seq-space-4)}._1vqx0w97:after{background:linear-gradient(to bottom,transparent 0%,var(--seq-colors-background-primary) 100%);left:0;bottom:0;width:100%;height:var(--seq-space-4)}._1vqx0w98:before{background:linear-gradient(to left,transparent 0%,var(--seq-colors-background-primary) 100%);left:0;top:0;height:100%;width:var(--seq-space-4)}._1vqx0w98:after{background:linear-gradient(to right,transparent 0%,var(--seq-colors-background-primary) 100%);right:0;top:0;height:100%;width:var(--seq-space-4)}._5b32m95{-ms-overflow-style:none;scrollbar-width:none}._5b32m95::-webkit-scrollbar{display:none}._5b32m96{width:100vw;min-height:100px;max-height:calc(100vh - 80px);max-height:calc(100dvh - 80px)}._5b32m97{width:100vw;height:calc(100vh - 70px);height:calc(100dvh - 70px)}._5b32m99{height:auto!important}@media screen and (min-width: 769px){._5b32m96{width:540px;max-height:min(800px,calc(100vh - 80px));max-height:min(800px,calc(100dvh - 80px))}._5b32m97{width:720px;max-height:min(800px,calc(100vh - 80px));max-height:min(800px,calc(100dvh - 80px));height:800px}}._1acm19y1{cursor:text;height:52px;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}._1acm19y1:has(:disabled),._1acm19y1:has(:disabled):hover{cursor:default;opacity:.5}._1acm19y1:focus-within{opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}.y5zf970{width:40px;height:48px;display:flex;justify-content:center;align-items:center;padding:10px;background:var(--seq-colors-background-secondary);border-radius:var(--seq-radii-sm);color:var(--seq-colors-text100)}.y5zf971{height:48px;width:40px;display:flex;justify-content:center;align-items:center;padding:10px;border:none;border-radius:var(--seq-radii-sm);color:var(--seq-colors-text100);background:transparent;text-align:center;caret-color:transparent;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}.y5zf971:disabled{cursor:default;opacity:.5}.y5zf971::-moz-selection{background:transparent}.y5zf971::selection{background:transparent}.y5zf971:hover:not(.y5zf971:disabled){border-color:var(--seq-colors-border-focus)}@keyframes _1jujggt0{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}._1jujggt1{background-image:linear-gradient(-45deg,transparent,var(--seq-colors-background-secondary),transparent);background-size:400% 400%;background-repeat:no-repeat;animation:_1jujggt0 1s ease infinite}._1jujggt2{width:96px;height:var(--seq-line-heights-4)}._1jujggt3{width:100px;height:var(--seq-line-heights-5)}._1jujggt4{width:124px;height:var(--seq-line-heights-6)}._1jujggt5{width:124px;height:var(--seq-line-heights-7)}._1jujggt6{width:148px;height:var(--seq-line-heights-9)}.io59uy4{height:20px;width:20px}.io59uy5{height:28px;width:28px}.io59uy7:after{content:"";display:block;border-radius:999px;background:currentColor}.io59uy9:after{width:14px;height:14px}.io59uya:after{width:18px;height:18px}.gohwum1{height:52px;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}.gohwum1:has(:disabled),.gohwum1:has(:disabled):hover{cursor:default;opacity:.5}.gohwum1:focus{outline:none}.gohwum1:focus-within{outline:none;opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}.gohwuma{box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset}.gohwume{height:52px}.gohwume[data-highlighted]{background:var(--seq-colors-background-secondary)}.gohwume[data-state=checked]{background:var(--seq-colors-background-control)}@keyframes en4abt0{to{transform:rotate(1turn)}}.en4abt1{animation:en4abt0 2s linear infinite}.en4abt2{width:16px;height:16px;stroke-width:3px}.en4abt3{width:24px;height:24px;stroke-width:2px}.en4abt4{width:32px;height:32px;stroke-width:1.5px}._1lp2u8e1{width:48px;height:28px}._1lp2u8e1[data-state=checked]{background:var(--seq-colors-gradient-primary)}._1lp2u8e1:disabled{cursor:default;opacity:.5}._1lp2u8e3{transition:transform .1s ease-out,background .1s ease-out;transform:translate(0);will-change:transform}._1lp2u8e3[data-state=checked]{transform:translate(var(--seq-space-5))}.nwwh3z0{list-style-type:none}.nwwh3za{font-size:.625rem;letter-spacing:.8px}._10c8o0n1:has(:focus-visible){outline:none;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset}._10c8o0n3{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;z-index:2}._10c8o0n3[data-state=active]{color:var(--seq-colors-text100)}._10c8o0n3[disabled]{opacity:.5}._10c8o0n5{transition:transform .2s ease-out}@keyframes _6wut8v2{0%{transform:translate(var(--radix-toast-swipe-end-x))}to{transform:translate(100%)}}._6wut8v1{padding:var(--seq-space-4);padding-top:0;z-index:1000;list-style:none;max-width:532px}._6wut8v3{will-change:transform,opacity}._6wut8v3[data-swipe=move]{transform:translate(var(--radix-toast-swipe-move-x))!important}._6wut8v3[data-swipe=cancel]{transition:transform .2s ease-out;transform:translate(0)}._6wut8v3[data-swipe=end]{animation:_6wut8v2 .2s ease-out}._6wut8v5{color:positive}._6wut8v6{color:negative}._15pztn1{resize:none;cursor:text;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}._15pztn1:disabled,._15pztn1:disabled:hover{cursor:default;opacity:.5}._15pztn1:focus{opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}._15pztn2{resize:vertical}._18h918k6{width:12px;height:12px}._18h918k7{width:20px;height:20px}._18h918k8{width:32px;height:32px}._18h918k9{width:40px;height:40px}._18h918ka{width:64px;height:64px}._18h918kf{max-width:100%;max-height:100%;-o-object-fit:cover;object-fit:cover;width:100%}._18h918k5._18h918k0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0._18h918k6 ._18h918kf{max-width:16px;max-height:16px}._18h918k5._18h918k0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0._18h918k7 ._18h918kf{max-width:20px;max-height:20px}._18h918k5._18h918k0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0._18h918k8 ._18h918kf{max-width:32px;max-height:32px}._18h918k5._18h918k0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0._18h918k9 ._18h918kf{max-width:40px;max-height:40px}._18h918k5._18h918k0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0._18h918ka ._18h918kf{max-width:64px;max-height:64px}.bnrreb2{width:12px;height:12px;font-size:4px}.bnrreb3{width:20px;height:20px;font-size:8px}.bnrreb4{width:32px;height:32px;font-size:9px}.bnrreb5{width:40px;height:40px;font-size:11px}.bnrreb6{width:64px;height:64px;font-size:16px}.bnrreb7{max-width:100%;max-height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.bnrreb1.bnrreb0.fyvr11jg.fyvr11ko.fyvr11hw.fyvr11h0.bnrreb2 .bnrreb7{max-width:12px;max-height:12px}.bnrreb1.bnrreb0.fyvr11jg.fyvr11ko.fyvr11hw.fyvr11h0.bnrreb3 .bnrreb7{max-width:20px;max-height:20px}.bnrreb1.bnrreb0.fyvr11jg.fyvr11ko.fyvr11hw.fyvr11h0.bnrreb4 .bnrreb7{max-width:32px;max-height:32px}.bnrreb1.bnrreb0.fyvr11jg.fyvr11ko.fyvr11hw.fyvr11h0.bnrreb5 .bnrreb7{max-width:40px;max-height:40px}.bnrreb1.bnrreb0.fyvr11jg.fyvr11ko.fyvr11hw.fyvr11h0.bnrreb6 .bnrreb7{max-width:64px;max-height:64px}.bnrreb9{font-size:inherit}.q888p21{fill:var(--seq-colors-background-raised);box-shadow:0 0 10px #00000080}@keyframes _1e9z9270{0%{visibility:hidden}50%{visibility:hidden}to{visibility:visible}}._1e9z9271{animation:_1e9z9270 2s infinite}._1q07ov40{display:grid;grid-column-gap:var(--seq-space-2);grid-row-gap:var(--seq-space-2);grid-template-columns:repeat(1,minmax(0,1fr))}@media screen and (min-width: 769px){._1q07ov40{grid-template-columns:repeat(2,minmax(0,1fr))}}@media screen and (min-width: 1281px){._1q07ov40{grid-template-columns:repeat(3,minmax(0,1fr))}} diff --git a/assets/index-CO3VYRCy.css b/assets/index-CO3VYRCy.css deleted file mode 100644 index cdb72c7..0000000 --- a/assets/index-CO3VYRCy.css +++ /dev/null @@ -1 +0,0 @@ -body{background:var(--seq-colors-background-primary)}*,*:before,*:after{box-sizing:border-box}:root{--seq-blur-blur: blur(12.5px);--seq-blur-none: none;--seq-border-widths-none: 0;--seq-border-widths-thin: .075rem;--seq-border-widths-thick: .125rem;--seq-fonts-inherit: inherit;--seq-fonts-body: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, "Helvetica Neue", Arial;--seq-fonts-mono: "iAWriter Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--seq-font-sizes-inherit: inherit;--seq-font-sizes-xsmall: .625rem;--seq-font-sizes-small: .75rem;--seq-font-sizes-normal: .875rem;--seq-font-sizes-medium: 1rem;--seq-font-sizes-large: 1.25rem;--seq-font-sizes-xlarge: 1.875rem;--seq-font-weights-inherit: inherit;--seq-font-weights-normal: 400;--seq-font-weights-medium: 500;--seq-font-weights-semibold: 600;--seq-font-weights-bold: 700;--seq-letter-spacings-inherit: inherit;--seq-letter-spacings-none: 0;--seq-letter-spacings-normal: .01em;--seq-letter-spacings-wide: .03em;--seq-line-heights-4: 1rem;--seq-line-heights-5: 1.25rem;--seq-line-heights-6: 1.5rem;--seq-line-heights-7: 1.75rem;--seq-line-heights-9: 2.25rem;--seq-line-heights-inherit: inherit;--seq-opacity-0: 0;--seq-opacity-50: .5;--seq-opacity-80: .8;--seq-opacity-100: 1;--seq-radii-none: 0;--seq-radii-xs: .25rem;--seq-radii-sm: .5rem;--seq-radii-md: .75rem;--seq-radii-lg: 1rem;--seq-radii-circle: 9999px;--seq-space-0: 0;--seq-space-1: .25rem;--seq-space-2: .5rem;--seq-space-3: .75rem;--seq-space-4: 1rem;--seq-space-5: 1.25rem;--seq-space-6: 1.5rem;--seq-space-7: 1.75rem;--seq-space-8: 2rem;--seq-space-9: 2.25rem;--seq-space-10: 2.5rem;--seq-space-12: 3rem;--seq-space-14: 3.5rem;--seq-space-16: 4rem;--seq-space-0_25: .0625rem;--seq-space-0_5: .125rem;--seq-space-1_5: .375rem}:root{--seq-colors-black: #000000;--seq-colors-white: #ffffff;--seq-colors-inherit: inherit;--seq-colors-transparent: transparent;--seq-colors-positive: #1FC266;--seq-colors-negative: #C2501F;--seq-colors-info: #0076CC;--seq-colors-warning: #F4B03E;--seq-colors-gradient-backdrop: linear-gradient( 243.18deg, rgba(86, 52, 189, .85) 0%, rgba(49, 41, 223, .85) 63.54%, rgba(7, 98, 149, .85) 100% );--seq-colors-gradient-primary: linear-gradient(89.69deg, #4411E1 .27%, #7537F9 99.73%);--seq-colors-gradient-secondary: linear-gradient(32.51deg, #951990 -15.23%, #3A35B1 48.55%, #20A8B0 100%);--seq-colors-arbitrum-dark: #212D44;--seq-colors-arbitrum-light: #93D4FF;--seq-colors-avalance-dark: #810C0C;--seq-colors-avalance-light: #FF8080;--seq-colors-bsc-dark: #584508;--seq-colors-bsc-light: #FCCF43;--seq-colors-ethereum-dark: #132362;--seq-colors-ethereum-light: #AABBFF;--seq-colors-gnosis-dark: #084246;--seq-colors-gnosis-light: #8CF6FD;--seq-colors-polygon-dark: #350881;--seq-colors-polygon-light: #C7A6FF;--seq-colors-text100: rgba(255, 255, 255, 1);--seq-colors-text80: rgba(255, 255, 255, .8);--seq-colors-text50: rgba(255, 255, 255, .5);--seq-colors-text-inverse100: rgba(0, 0, 0, 1);--seq-colors-background-primary: rgba(0, 0, 0, 1);--seq-colors-background-secondary: rgba(255, 255, 255, .1);--seq-colors-background-contrast: rgba(0, 0, 0, .5);--seq-colors-background-muted: rgba(255, 255, 255, .05);--seq-colors-background-control: rgba(255, 255, 255, .25);--seq-colors-background-inverse: rgba(255, 255, 255, 1);--seq-colors-background-backdrop: rgba(34, 34, 34, .9);--seq-colors-background-overlay: rgba(0, 0, 0, .7);--seq-colors-background-raised: rgba(54, 54, 54, .7);--seq-colors-button-glass: rgba(255, 255, 255, .15);--seq-colors-button-emphasis: rgba(0, 0, 0, .5);--seq-colors-button-inverse: rgba(255, 255, 255, .8);--seq-colors-border-normal: rgba(255, 255, 255, .25);--seq-colors-border-focus: rgba(255, 255, 255, .5)}.fyvr10{width:var(--seq-space-0)}.fyvr14{width:var(--seq-space-1)}.fyvr18{width:var(--seq-space-2)}.fyvr1c{width:var(--seq-space-3)}.fyvr1g{width:var(--seq-space-4)}.fyvr1k{width:var(--seq-space-5)}.fyvr1o{width:var(--seq-space-6)}.fyvr1s{width:var(--seq-space-7)}.fyvr1w{width:var(--seq-space-8)}.fyvr110{width:var(--seq-space-9)}.fyvr114{width:var(--seq-space-10)}.fyvr118{width:var(--seq-space-12)}.fyvr11c{width:var(--seq-space-14)}.fyvr11g{width:var(--seq-space-16)}.fyvr11k{width:var(--seq-space-0_25)}.fyvr11o{width:var(--seq-space-0_5)}.fyvr11s{width:var(--seq-space-1_5)}.fyvr11w{width:0}.fyvr120{width:1px}.fyvr124{width:auto}.fyvr128{width:100%}.fyvr12c{width:50%}.fyvr12g{width:33.33333%}.fyvr12k{width:66.66667%}.fyvr12o{width:25%}.fyvr12s{width:75%}.fyvr12w{width:-moz-fit-content;width:fit-content}.fyvr130{width:-moz-max-content;width:max-content}.fyvr134{width:-moz-min-content;width:min-content}.fyvr138{width:100vw}.fyvr13c{width:100vh}.fyvr13g{height:var(--seq-space-0)}.fyvr13k{height:var(--seq-space-1)}.fyvr13o{height:var(--seq-space-2)}.fyvr13s{height:var(--seq-space-3)}.fyvr13w{height:var(--seq-space-4)}.fyvr140{height:var(--seq-space-5)}.fyvr144{height:var(--seq-space-6)}.fyvr148{height:var(--seq-space-7)}.fyvr14c{height:var(--seq-space-8)}.fyvr14g{height:var(--seq-space-9)}.fyvr14k{height:var(--seq-space-10)}.fyvr14o{height:var(--seq-space-12)}.fyvr14s{height:var(--seq-space-14)}.fyvr14w{height:var(--seq-space-16)}.fyvr150{height:var(--seq-space-0_25)}.fyvr154{height:var(--seq-space-0_5)}.fyvr158{height:var(--seq-space-1_5)}.fyvr15c{height:0}.fyvr15g{height:1px}.fyvr15k{height:auto}.fyvr15o{height:100%}.fyvr15s{height:50%}.fyvr15w{height:33.33333%}.fyvr160{height:66.66667%}.fyvr164{height:25%}.fyvr168{height:75%}.fyvr16c{height:-moz-fit-content;height:fit-content}.fyvr16g{height:-moz-max-content;height:max-content}.fyvr16k{height:-moz-min-content;height:min-content}.fyvr16o{height:100vw}.fyvr16s{height:100vh}.fyvr16w{max-width:var(--seq-space-0)}.fyvr170{max-width:var(--seq-space-1)}.fyvr174{max-width:var(--seq-space-2)}.fyvr178{max-width:var(--seq-space-3)}.fyvr17c{max-width:var(--seq-space-4)}.fyvr17g{max-width:var(--seq-space-5)}.fyvr17k{max-width:var(--seq-space-6)}.fyvr17o{max-width:var(--seq-space-7)}.fyvr17s{max-width:var(--seq-space-8)}.fyvr17w{max-width:var(--seq-space-9)}.fyvr180{max-width:var(--seq-space-10)}.fyvr184{max-width:var(--seq-space-12)}.fyvr188{max-width:var(--seq-space-14)}.fyvr18c{max-width:var(--seq-space-16)}.fyvr18g{max-width:var(--seq-space-0_25)}.fyvr18k{max-width:var(--seq-space-0_5)}.fyvr18o{max-width:var(--seq-space-1_5)}.fyvr18s{max-width:0}.fyvr18w{max-width:1px}.fyvr190{max-width:auto}.fyvr194{max-width:100%}.fyvr198{max-width:50%}.fyvr19c{max-width:33.33333%}.fyvr19g{max-width:66.66667%}.fyvr19k{max-width:25%}.fyvr19o{max-width:75%}.fyvr19s{max-width:-moz-fit-content;max-width:fit-content}.fyvr19w{max-width:-moz-max-content;max-width:max-content}.fyvr1a0{max-width:-moz-min-content;max-width:min-content}.fyvr1a4{max-width:100vw}.fyvr1a8{max-width:100vh}.fyvr1ac{max-height:var(--seq-space-0)}.fyvr1ag{max-height:var(--seq-space-1)}.fyvr1ak{max-height:var(--seq-space-2)}.fyvr1ao{max-height:var(--seq-space-3)}.fyvr1as{max-height:var(--seq-space-4)}.fyvr1aw{max-height:var(--seq-space-5)}.fyvr1b0{max-height:var(--seq-space-6)}.fyvr1b4{max-height:var(--seq-space-7)}.fyvr1b8{max-height:var(--seq-space-8)}.fyvr1bc{max-height:var(--seq-space-9)}.fyvr1bg{max-height:var(--seq-space-10)}.fyvr1bk{max-height:var(--seq-space-12)}.fyvr1bo{max-height:var(--seq-space-14)}.fyvr1bs{max-height:var(--seq-space-16)}.fyvr1bw{max-height:var(--seq-space-0_25)}.fyvr1c0{max-height:var(--seq-space-0_5)}.fyvr1c4{max-height:var(--seq-space-1_5)}.fyvr1c8{max-height:0}.fyvr1cc{max-height:1px}.fyvr1cg{max-height:auto}.fyvr1ck{max-height:100%}.fyvr1co{max-height:50%}.fyvr1cs{max-height:33.33333%}.fyvr1cw{max-height:66.66667%}.fyvr1d0{max-height:25%}.fyvr1d4{max-height:75%}.fyvr1d8{max-height:-moz-fit-content;max-height:fit-content}.fyvr1dc{max-height:-moz-max-content;max-height:max-content}.fyvr1dg{max-height:-moz-min-content;max-height:min-content}.fyvr1dk{max-height:100vw}.fyvr1do{max-height:100vh}.fyvr1ds{min-width:var(--seq-space-0)}.fyvr1dw{min-width:var(--seq-space-1)}.fyvr1e0{min-width:var(--seq-space-2)}.fyvr1e4{min-width:var(--seq-space-3)}.fyvr1e8{min-width:var(--seq-space-4)}.fyvr1ec{min-width:var(--seq-space-5)}.fyvr1eg{min-width:var(--seq-space-6)}.fyvr1ek{min-width:var(--seq-space-7)}.fyvr1eo{min-width:var(--seq-space-8)}.fyvr1es{min-width:var(--seq-space-9)}.fyvr1ew{min-width:var(--seq-space-10)}.fyvr1f0{min-width:var(--seq-space-12)}.fyvr1f4{min-width:var(--seq-space-14)}.fyvr1f8{min-width:var(--seq-space-16)}.fyvr1fc{min-width:var(--seq-space-0_25)}.fyvr1fg{min-width:var(--seq-space-0_5)}.fyvr1fk{min-width:var(--seq-space-1_5)}.fyvr1fo{min-width:0}.fyvr1fs{min-width:1px}.fyvr1fw{min-width:auto}.fyvr1g0{min-width:100%}.fyvr1g4{min-width:50%}.fyvr1g8{min-width:33.33333%}.fyvr1gc{min-width:66.66667%}.fyvr1gg{min-width:25%}.fyvr1gk{min-width:75%}.fyvr1go{min-width:-moz-fit-content;min-width:fit-content}.fyvr1gs{min-width:-moz-max-content;min-width:max-content}.fyvr1gw{min-width:-moz-min-content;min-width:min-content}.fyvr1h0{min-width:100vw}.fyvr1h4{min-width:100vh}.fyvr1h8{min-height:var(--seq-space-0)}.fyvr1hc{min-height:var(--seq-space-1)}.fyvr1hg{min-height:var(--seq-space-2)}.fyvr1hk{min-height:var(--seq-space-3)}.fyvr1ho{min-height:var(--seq-space-4)}.fyvr1hs{min-height:var(--seq-space-5)}.fyvr1hw{min-height:var(--seq-space-6)}.fyvr1i0{min-height:var(--seq-space-7)}.fyvr1i4{min-height:var(--seq-space-8)}.fyvr1i8{min-height:var(--seq-space-9)}.fyvr1ic{min-height:var(--seq-space-10)}.fyvr1ig{min-height:var(--seq-space-12)}.fyvr1ik{min-height:var(--seq-space-14)}.fyvr1io{min-height:var(--seq-space-16)}.fyvr1is{min-height:var(--seq-space-0_25)}.fyvr1iw{min-height:var(--seq-space-0_5)}.fyvr1j0{min-height:var(--seq-space-1_5)}.fyvr1j4{min-height:0}.fyvr1j8{min-height:1px}.fyvr1jc{min-height:auto}.fyvr1jg{min-height:100%}.fyvr1jk{min-height:50%}.fyvr1jo{min-height:33.33333%}.fyvr1js{min-height:66.66667%}.fyvr1jw{min-height:25%}.fyvr1k0{min-height:75%}.fyvr1k4{min-height:-moz-fit-content;min-height:fit-content}.fyvr1k8{min-height:-moz-max-content;min-height:max-content}.fyvr1kc{min-height:-moz-min-content;min-height:min-content}.fyvr1kg{min-height:100vw}.fyvr1kk{min-height:100vh}.fyvr1ko{top:var(--seq-space-0)}.fyvr1ks{top:var(--seq-space-1)}.fyvr1kw{top:var(--seq-space-2)}.fyvr1l0{top:var(--seq-space-3)}.fyvr1l4{top:var(--seq-space-4)}.fyvr1l8{top:var(--seq-space-5)}.fyvr1lc{top:var(--seq-space-6)}.fyvr1lg{top:var(--seq-space-7)}.fyvr1lk{top:var(--seq-space-8)}.fyvr1lo{top:var(--seq-space-9)}.fyvr1ls{top:var(--seq-space-10)}.fyvr1lw{top:var(--seq-space-12)}.fyvr1m0{top:var(--seq-space-14)}.fyvr1m4{top:var(--seq-space-16)}.fyvr1m8{top:var(--seq-space-0_25)}.fyvr1mc{top:var(--seq-space-0_5)}.fyvr1mg{top:var(--seq-space-1_5)}.fyvr1mk{top:auto}.fyvr1mo{bottom:var(--seq-space-0)}.fyvr1ms{bottom:var(--seq-space-1)}.fyvr1mw{bottom:var(--seq-space-2)}.fyvr1n0{bottom:var(--seq-space-3)}.fyvr1n4{bottom:var(--seq-space-4)}.fyvr1n8{bottom:var(--seq-space-5)}.fyvr1nc{bottom:var(--seq-space-6)}.fyvr1ng{bottom:var(--seq-space-7)}.fyvr1nk{bottom:var(--seq-space-8)}.fyvr1no{bottom:var(--seq-space-9)}.fyvr1ns{bottom:var(--seq-space-10)}.fyvr1nw{bottom:var(--seq-space-12)}.fyvr1o0{bottom:var(--seq-space-14)}.fyvr1o4{bottom:var(--seq-space-16)}.fyvr1o8{bottom:var(--seq-space-0_25)}.fyvr1oc{bottom:var(--seq-space-0_5)}.fyvr1og{bottom:var(--seq-space-1_5)}.fyvr1ok{bottom:auto}.fyvr1oo{left:var(--seq-space-0)}.fyvr1os{left:var(--seq-space-1)}.fyvr1ow{left:var(--seq-space-2)}.fyvr1p0{left:var(--seq-space-3)}.fyvr1p4{left:var(--seq-space-4)}.fyvr1p8{left:var(--seq-space-5)}.fyvr1pc{left:var(--seq-space-6)}.fyvr1pg{left:var(--seq-space-7)}.fyvr1pk{left:var(--seq-space-8)}.fyvr1po{left:var(--seq-space-9)}.fyvr1ps{left:var(--seq-space-10)}.fyvr1pw{left:var(--seq-space-12)}.fyvr1q0{left:var(--seq-space-14)}.fyvr1q4{left:var(--seq-space-16)}.fyvr1q8{left:var(--seq-space-0_25)}.fyvr1qc{left:var(--seq-space-0_5)}.fyvr1qg{left:var(--seq-space-1_5)}.fyvr1qk{left:auto}.fyvr1qo{right:var(--seq-space-0)}.fyvr1qs{right:var(--seq-space-1)}.fyvr1qw{right:var(--seq-space-2)}.fyvr1r0{right:var(--seq-space-3)}.fyvr1r4{right:var(--seq-space-4)}.fyvr1r8{right:var(--seq-space-5)}.fyvr1rc{right:var(--seq-space-6)}.fyvr1rg{right:var(--seq-space-7)}.fyvr1rk{right:var(--seq-space-8)}.fyvr1ro{right:var(--seq-space-9)}.fyvr1rs{right:var(--seq-space-10)}.fyvr1rw{right:var(--seq-space-12)}.fyvr1s0{right:var(--seq-space-14)}.fyvr1s4{right:var(--seq-space-16)}.fyvr1s8{right:var(--seq-space-0_25)}.fyvr1sc{right:var(--seq-space-0_5)}.fyvr1sg{right:var(--seq-space-1_5)}.fyvr1sk{right:auto}.fyvr1so{padding-top:var(--seq-space-0)}.fyvr1ss{padding-top:var(--seq-space-1)}.fyvr1sw{padding-top:var(--seq-space-2)}.fyvr1t0{padding-top:var(--seq-space-3)}.fyvr1t4{padding-top:var(--seq-space-4)}.fyvr1t8{padding-top:var(--seq-space-5)}.fyvr1tc{padding-top:var(--seq-space-6)}.fyvr1tg{padding-top:var(--seq-space-7)}.fyvr1tk{padding-top:var(--seq-space-8)}.fyvr1to{padding-top:var(--seq-space-9)}.fyvr1ts{padding-top:var(--seq-space-10)}.fyvr1tw{padding-top:var(--seq-space-12)}.fyvr1u0{padding-top:var(--seq-space-14)}.fyvr1u4{padding-top:var(--seq-space-16)}.fyvr1u8{padding-top:var(--seq-space-0_25)}.fyvr1uc{padding-top:var(--seq-space-0_5)}.fyvr1ug{padding-top:var(--seq-space-1_5)}.fyvr1uk{padding-bottom:var(--seq-space-0)}.fyvr1uo{padding-bottom:var(--seq-space-1)}.fyvr1us{padding-bottom:var(--seq-space-2)}.fyvr1uw{padding-bottom:var(--seq-space-3)}.fyvr1v0{padding-bottom:var(--seq-space-4)}.fyvr1v4{padding-bottom:var(--seq-space-5)}.fyvr1v8{padding-bottom:var(--seq-space-6)}.fyvr1vc{padding-bottom:var(--seq-space-7)}.fyvr1vg{padding-bottom:var(--seq-space-8)}.fyvr1vk{padding-bottom:var(--seq-space-9)}.fyvr1vo{padding-bottom:var(--seq-space-10)}.fyvr1vs{padding-bottom:var(--seq-space-12)}.fyvr1vw{padding-bottom:var(--seq-space-14)}.fyvr1w0{padding-bottom:var(--seq-space-16)}.fyvr1w4{padding-bottom:var(--seq-space-0_25)}.fyvr1w8{padding-bottom:var(--seq-space-0_5)}.fyvr1wc{padding-bottom:var(--seq-space-1_5)}.fyvr1wg{padding-left:var(--seq-space-0)}.fyvr1wk{padding-left:var(--seq-space-1)}.fyvr1wo{padding-left:var(--seq-space-2)}.fyvr1ws{padding-left:var(--seq-space-3)}.fyvr1ww{padding-left:var(--seq-space-4)}.fyvr1x0{padding-left:var(--seq-space-5)}.fyvr1x4{padding-left:var(--seq-space-6)}.fyvr1x8{padding-left:var(--seq-space-7)}.fyvr1xc{padding-left:var(--seq-space-8)}.fyvr1xg{padding-left:var(--seq-space-9)}.fyvr1xk{padding-left:var(--seq-space-10)}.fyvr1xo{padding-left:var(--seq-space-12)}.fyvr1xs{padding-left:var(--seq-space-14)}.fyvr1xw{padding-left:var(--seq-space-16)}.fyvr1y0{padding-left:var(--seq-space-0_25)}.fyvr1y4{padding-left:var(--seq-space-0_5)}.fyvr1y8{padding-left:var(--seq-space-1_5)}.fyvr1yc{padding-right:var(--seq-space-0)}.fyvr1yg{padding-right:var(--seq-space-1)}.fyvr1yk{padding-right:var(--seq-space-2)}.fyvr1yo{padding-right:var(--seq-space-3)}.fyvr1ys{padding-right:var(--seq-space-4)}.fyvr1yw{padding-right:var(--seq-space-5)}.fyvr1z0{padding-right:var(--seq-space-6)}.fyvr1z4{padding-right:var(--seq-space-7)}.fyvr1z8{padding-right:var(--seq-space-8)}.fyvr1zc{padding-right:var(--seq-space-9)}.fyvr1zg{padding-right:var(--seq-space-10)}.fyvr1zk{padding-right:var(--seq-space-12)}.fyvr1zo{padding-right:var(--seq-space-14)}.fyvr1zs{padding-right:var(--seq-space-16)}.fyvr1zw{padding-right:var(--seq-space-0_25)}.fyvr1100{padding-right:var(--seq-space-0_5)}.fyvr1104{padding-right:var(--seq-space-1_5)}.fyvr1108{margin-top:var(--seq-space-0)}.fyvr110c{margin-top:var(--seq-space-1)}.fyvr110g{margin-top:var(--seq-space-2)}.fyvr110k{margin-top:var(--seq-space-3)}.fyvr110o{margin-top:var(--seq-space-4)}.fyvr110s{margin-top:var(--seq-space-5)}.fyvr110w{margin-top:var(--seq-space-6)}.fyvr1110{margin-top:var(--seq-space-7)}.fyvr1114{margin-top:var(--seq-space-8)}.fyvr1118{margin-top:var(--seq-space-9)}.fyvr111c{margin-top:var(--seq-space-10)}.fyvr111g{margin-top:var(--seq-space-12)}.fyvr111k{margin-top:var(--seq-space-14)}.fyvr111o{margin-top:var(--seq-space-16)}.fyvr111s{margin-top:var(--seq-space-0_25)}.fyvr111w{margin-top:var(--seq-space-0_5)}.fyvr1120{margin-top:var(--seq-space-1_5)}.fyvr1124{margin-top:auto}.fyvr1128{margin-bottom:var(--seq-space-0)}.fyvr112c{margin-bottom:var(--seq-space-1)}.fyvr112g{margin-bottom:var(--seq-space-2)}.fyvr112k{margin-bottom:var(--seq-space-3)}.fyvr112o{margin-bottom:var(--seq-space-4)}.fyvr112s{margin-bottom:var(--seq-space-5)}.fyvr112w{margin-bottom:var(--seq-space-6)}.fyvr1130{margin-bottom:var(--seq-space-7)}.fyvr1134{margin-bottom:var(--seq-space-8)}.fyvr1138{margin-bottom:var(--seq-space-9)}.fyvr113c{margin-bottom:var(--seq-space-10)}.fyvr113g{margin-bottom:var(--seq-space-12)}.fyvr113k{margin-bottom:var(--seq-space-14)}.fyvr113o{margin-bottom:var(--seq-space-16)}.fyvr113s{margin-bottom:var(--seq-space-0_25)}.fyvr113w{margin-bottom:var(--seq-space-0_5)}.fyvr1140{margin-bottom:var(--seq-space-1_5)}.fyvr1144{margin-bottom:auto}.fyvr1148{margin-left:var(--seq-space-0)}.fyvr114c{margin-left:var(--seq-space-1)}.fyvr114g{margin-left:var(--seq-space-2)}.fyvr114k{margin-left:var(--seq-space-3)}.fyvr114o{margin-left:var(--seq-space-4)}.fyvr114s{margin-left:var(--seq-space-5)}.fyvr114w{margin-left:var(--seq-space-6)}.fyvr1150{margin-left:var(--seq-space-7)}.fyvr1154{margin-left:var(--seq-space-8)}.fyvr1158{margin-left:var(--seq-space-9)}.fyvr115c{margin-left:var(--seq-space-10)}.fyvr115g{margin-left:var(--seq-space-12)}.fyvr115k{margin-left:var(--seq-space-14)}.fyvr115o{margin-left:var(--seq-space-16)}.fyvr115s{margin-left:var(--seq-space-0_25)}.fyvr115w{margin-left:var(--seq-space-0_5)}.fyvr1160{margin-left:var(--seq-space-1_5)}.fyvr1164{margin-left:auto}.fyvr1168{margin-right:var(--seq-space-0)}.fyvr116c{margin-right:var(--seq-space-1)}.fyvr116g{margin-right:var(--seq-space-2)}.fyvr116k{margin-right:var(--seq-space-3)}.fyvr116o{margin-right:var(--seq-space-4)}.fyvr116s{margin-right:var(--seq-space-5)}.fyvr116w{margin-right:var(--seq-space-6)}.fyvr1170{margin-right:var(--seq-space-7)}.fyvr1174{margin-right:var(--seq-space-8)}.fyvr1178{margin-right:var(--seq-space-9)}.fyvr117c{margin-right:var(--seq-space-10)}.fyvr117g{margin-right:var(--seq-space-12)}.fyvr117k{margin-right:var(--seq-space-14)}.fyvr117o{margin-right:var(--seq-space-16)}.fyvr117s{margin-right:var(--seq-space-0_25)}.fyvr117w{margin-right:var(--seq-space-0_5)}.fyvr1180{margin-right:var(--seq-space-1_5)}.fyvr1184{margin-right:auto}.fyvr1188{gap:var(--seq-space-0)}.fyvr118c{gap:var(--seq-space-1)}.fyvr118g{gap:var(--seq-space-2)}.fyvr118k{gap:var(--seq-space-3)}.fyvr118o{gap:var(--seq-space-4)}.fyvr118s{gap:var(--seq-space-5)}.fyvr118w{gap:var(--seq-space-6)}.fyvr1190{gap:var(--seq-space-7)}.fyvr1194{gap:var(--seq-space-8)}.fyvr1198{gap:var(--seq-space-9)}.fyvr119c{gap:var(--seq-space-10)}.fyvr119g{gap:var(--seq-space-12)}.fyvr119k{gap:var(--seq-space-14)}.fyvr119o{gap:var(--seq-space-16)}.fyvr119s{gap:var(--seq-space-0_25)}.fyvr119w{gap:var(--seq-space-0_5)}.fyvr11a0{gap:var(--seq-space-1_5)}.fyvr11a4{border-bottom-width:var(--seq-border-widths-none)}.fyvr11a8{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11ac{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11ag{border-left-width:var(--seq-border-widths-none)}.fyvr11ak{border-left-width:var(--seq-border-widths-thin)}.fyvr11ao{border-left-width:var(--seq-border-widths-thick)}.fyvr11as{border-right-width:var(--seq-border-widths-none)}.fyvr11aw{border-right-width:var(--seq-border-widths-thin)}.fyvr11b0{border-right-width:var(--seq-border-widths-thick)}.fyvr11b4{border-top-width:var(--seq-border-widths-none)}.fyvr11b8{border-top-width:var(--seq-border-widths-thin)}.fyvr11bc{border-top-width:var(--seq-border-widths-thick)}.fyvr11bg{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11bk{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11bo{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11bs{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11bw{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11c0{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11c4{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11c8{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11cc{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11cg{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11ck{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11co{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11cs{border-top-left-radius:var(--seq-radii-none)}.fyvr11cw{border-top-left-radius:var(--seq-radii-xs)}.fyvr11d0{border-top-left-radius:var(--seq-radii-sm)}.fyvr11d4{border-top-left-radius:var(--seq-radii-md)}.fyvr11d8{border-top-left-radius:var(--seq-radii-lg)}.fyvr11dc{border-top-left-radius:var(--seq-radii-circle)}.fyvr11dg{border-top-right-radius:var(--seq-radii-none)}.fyvr11dk{border-top-right-radius:var(--seq-radii-xs)}.fyvr11do{border-top-right-radius:var(--seq-radii-sm)}.fyvr11ds{border-top-right-radius:var(--seq-radii-md)}.fyvr11dw{border-top-right-radius:var(--seq-radii-lg)}.fyvr11e0{border-top-right-radius:var(--seq-radii-circle)}.fyvr11e4{font-size:var(--seq-font-sizes-inherit)}.fyvr11e8{font-size:var(--seq-font-sizes-xsmall)}.fyvr11ec{font-size:var(--seq-font-sizes-small)}.fyvr11eg{font-size:var(--seq-font-sizes-normal)}.fyvr11ek{font-size:var(--seq-font-sizes-medium)}.fyvr11eo{font-size:var(--seq-font-sizes-large)}.fyvr11es{font-size:var(--seq-font-sizes-xlarge)}.fyvr11ew{font-weight:var(--seq-font-weights-inherit)}.fyvr11f0{font-weight:var(--seq-font-weights-normal)}.fyvr11f4{font-weight:var(--seq-font-weights-medium)}.fyvr11f8{font-weight:var(--seq-font-weights-semibold)}.fyvr11fc{font-weight:var(--seq-font-weights-bold)}.fyvr11fg{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11fk{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11fo{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11fs{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11fw{line-height:var(--seq-line-heights-4)}.fyvr11g0{line-height:var(--seq-line-heights-5)}.fyvr11g4{line-height:var(--seq-line-heights-6)}.fyvr11g8{line-height:var(--seq-line-heights-7)}.fyvr11gc{line-height:var(--seq-line-heights-9)}.fyvr11gg{line-height:var(--seq-line-heights-inherit)}.fyvr11gk{text-align:center}.fyvr11go{text-align:left}.fyvr11gs{text-align:right}.fyvr11gw{display:block}.fyvr11h0{display:flex}.fyvr11h4{display:grid}.fyvr11h8{display:inline-block}.fyvr11hc{display:inline-flex}.fyvr11hg{display:none}.fyvr11hk{display:contents}.fyvr11ho{position:absolute}.fyvr11hs{position:fixed}.fyvr11hw{position:relative}.fyvr11i0{position:sticky}.fyvr11i4{flex-direction:column}.fyvr11i8{flex-direction:column-reverse}.fyvr11ic{flex-direction:row}.fyvr11ig{flex-direction:row-reverse}.fyvr11ik{flex-shrink:0}.fyvr11io{flex-shrink:1}.fyvr11is{flex-grow:0}.fyvr11iw{flex-grow:1}.fyvr11j0{flex-wrap:nowrap}.fyvr11j4{flex-wrap:wrap}.fyvr11j8{flex-wrap:wrap-reverse}.fyvr11jc{justify-content:flex-start}.fyvr11jg{justify-content:center}.fyvr11jk{justify-content:flex-end}.fyvr11jo{justify-content:stretch}.fyvr11js{justify-content:space-around}.fyvr11jw{justify-content:space-between}.fyvr11k0{justify-content:space-evenly}.fyvr11k4{justify-self:flex-start}.fyvr11k8{justify-self:center}.fyvr11kc{justify-self:flex-end}.fyvr11kg{justify-self:stretch}.fyvr11kk{align-items:flex-start}.fyvr11ko{align-items:center}.fyvr11ks{align-items:flex-end}.fyvr11kw{align-items:stretch}.fyvr11l0{align-items:baseline}.fyvr11l4{align-self:flex-start}.fyvr11l8{align-self:center}.fyvr11lc{align-self:flex-end}.fyvr11lg{align-self:stretch}.fyvr11lk{align-self:baseline}.fyvr11lo{overflow-x:auto}.fyvr11ls{overflow-x:hidden}.fyvr11lw{overflow-x:scroll}.fyvr11m0{overflow-x:visible}.fyvr11m4{overflow-y:auto}.fyvr11m8{overflow-y:hidden}.fyvr11mc{overflow-y:scroll}.fyvr11mg{overflow-y:visible}.fyvr11mk{visibility:hidden}.fyvr11mo{visibility:visible}.fyvr11ms{-webkit-backdrop-filter:var(--seq-blur-blur);backdrop-filter:var(--seq-blur-blur)}.fyvr11mt{-webkit-backdrop-filter:var(--seq-blur-none);backdrop-filter:var(--seq-blur-none)}.fyvr11mu{font-family:var(--seq-fonts-inherit)}.fyvr11mv{font-family:var(--seq-fonts-body)}.fyvr11mw{font-family:var(--seq-fonts-mono)}.fyvr11mx{text-overflow:ellipsis}.fyvr11my{text-overflow:clip}.fyvr11mz{text-transform:capitalize}.fyvr11n0{text-transform:lowercase}.fyvr11n1{text-transform:uppercase}.fyvr11n2{-webkit-text-decoration:none;text-decoration:none}.fyvr11n3{-webkit-text-decoration:underline;text-decoration:underline}.fyvr11n4{-webkit-user-select:none;-moz-user-select:none;user-select:none}.fyvr11n5{-webkit-user-select:text;-moz-user-select:text;user-select:text}.fyvr11n6{-webkit-user-select:all;-moz-user-select:all;user-select:all}.fyvr11n7{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.fyvr11n8{white-space:normal}.fyvr11n9{white-space:nowrap}.fyvr11na{white-space:normal;white-space:initial}.fyvr11nb{white-space:inherit}.fyvr11nc{word-break:break-word}.fyvr11nd{word-wrap:normal}.fyvr11ne{word-wrap:break-word}.fyvr11nf{word-wrap:initial}.fyvr11ng{word-wrap:inherit}.fyvr11nh{z-index:0}.fyvr11ni{z-index:1}.fyvr11nj{z-index:10}.fyvr11nk{z-index:20}.fyvr11nl{z-index:30}.fyvr11nm{z-index:40}.fyvr11nn{z-index:50}.fyvr11no{z-index:-1}.fyvr11np{z-index:auto}.fyvr11nq{aspect-ratio:1 / 1}.fyvr11nr{aspect-ratio:16 / 9}.fyvr11ns{aspect-ratio:4 / 3}.fyvr11nt{aspect-ratio:3 / 1}.fyvr11nu{aspect-ratio:auto}.fyvr11nv,.fyvr11nw:active{background:var(--seq-colors-black)}.fyvr11nx:disabled,.fyvr11nx[data-disabled]{background:var(--seq-colors-black)}.fyvr11ny:focus{background:var(--seq-colors-black)}.fyvr11nz:hover:not([disabled]){background:var(--seq-colors-black)}.fyvr11o0[data-state=checked]{background:var(--seq-colors-black)}.fyvr11o1,.fyvr11o2:active{background:var(--seq-colors-white)}.fyvr11o3:disabled,.fyvr11o3[data-disabled]{background:var(--seq-colors-white)}.fyvr11o4:focus{background:var(--seq-colors-white)}.fyvr11o5:hover:not([disabled]){background:var(--seq-colors-white)}.fyvr11o6[data-state=checked]{background:var(--seq-colors-white)}.fyvr11o7,.fyvr11o8:active{background:var(--seq-colors-inherit)}.fyvr11o9:disabled,.fyvr11o9[data-disabled]{background:var(--seq-colors-inherit)}.fyvr11oa:focus{background:var(--seq-colors-inherit)}.fyvr11ob:hover:not([disabled]){background:var(--seq-colors-inherit)}.fyvr11oc[data-state=checked]{background:var(--seq-colors-inherit)}.fyvr11od,.fyvr11oe:active{background:var(--seq-colors-transparent)}.fyvr11of:disabled,.fyvr11of[data-disabled]{background:var(--seq-colors-transparent)}.fyvr11og:focus{background:var(--seq-colors-transparent)}.fyvr11oh:hover:not([disabled]){background:var(--seq-colors-transparent)}.fyvr11oi[data-state=checked]{background:var(--seq-colors-transparent)}.fyvr11oj,.fyvr11ok:active{background:var(--seq-colors-positive)}.fyvr11ol:disabled,.fyvr11ol[data-disabled]{background:var(--seq-colors-positive)}.fyvr11om:focus{background:var(--seq-colors-positive)}.fyvr11on:hover:not([disabled]){background:var(--seq-colors-positive)}.fyvr11oo[data-state=checked]{background:var(--seq-colors-positive)}.fyvr11op,.fyvr11oq:active{background:var(--seq-colors-negative)}.fyvr11or:disabled,.fyvr11or[data-disabled]{background:var(--seq-colors-negative)}.fyvr11os:focus{background:var(--seq-colors-negative)}.fyvr11ot:hover:not([disabled]){background:var(--seq-colors-negative)}.fyvr11ou[data-state=checked]{background:var(--seq-colors-negative)}.fyvr11ov,.fyvr11ow:active{background:var(--seq-colors-info)}.fyvr11ox:disabled,.fyvr11ox[data-disabled]{background:var(--seq-colors-info)}.fyvr11oy:focus{background:var(--seq-colors-info)}.fyvr11oz:hover:not([disabled]){background:var(--seq-colors-info)}.fyvr11p0[data-state=checked]{background:var(--seq-colors-info)}.fyvr11p1,.fyvr11p2:active{background:var(--seq-colors-warning)}.fyvr11p3:disabled,.fyvr11p3[data-disabled]{background:var(--seq-colors-warning)}.fyvr11p4:focus{background:var(--seq-colors-warning)}.fyvr11p5:hover:not([disabled]){background:var(--seq-colors-warning)}.fyvr11p6[data-state=checked]{background:var(--seq-colors-warning)}.fyvr11p7,.fyvr11p8:active{background:var(--seq-colors-gradient-backdrop)}.fyvr11p9:disabled,.fyvr11p9[data-disabled]{background:var(--seq-colors-gradient-backdrop)}.fyvr11pa:focus{background:var(--seq-colors-gradient-backdrop)}.fyvr11pb:hover:not([disabled]){background:var(--seq-colors-gradient-backdrop)}.fyvr11pc[data-state=checked]{background:var(--seq-colors-gradient-backdrop)}.fyvr11pd,.fyvr11pe:active{background:var(--seq-colors-gradient-primary)}.fyvr11pf:disabled,.fyvr11pf[data-disabled]{background:var(--seq-colors-gradient-primary)}.fyvr11pg:focus{background:var(--seq-colors-gradient-primary)}.fyvr11ph:hover:not([disabled]){background:var(--seq-colors-gradient-primary)}.fyvr11pi[data-state=checked]{background:var(--seq-colors-gradient-primary)}.fyvr11pj,.fyvr11pk:active{background:var(--seq-colors-gradient-secondary)}.fyvr11pl:disabled,.fyvr11pl[data-disabled]{background:var(--seq-colors-gradient-secondary)}.fyvr11pm:focus{background:var(--seq-colors-gradient-secondary)}.fyvr11pn:hover:not([disabled]){background:var(--seq-colors-gradient-secondary)}.fyvr11po[data-state=checked]{background:var(--seq-colors-gradient-secondary)}.fyvr11pp,.fyvr11pq:active{background:var(--seq-colors-arbitrum-dark)}.fyvr11pr:disabled,.fyvr11pr[data-disabled]{background:var(--seq-colors-arbitrum-dark)}.fyvr11ps:focus{background:var(--seq-colors-arbitrum-dark)}.fyvr11pt:hover:not([disabled]){background:var(--seq-colors-arbitrum-dark)}.fyvr11pu[data-state=checked]{background:var(--seq-colors-arbitrum-dark)}.fyvr11pv,.fyvr11pw:active{background:var(--seq-colors-arbitrum-light)}.fyvr11px:disabled,.fyvr11px[data-disabled]{background:var(--seq-colors-arbitrum-light)}.fyvr11py:focus{background:var(--seq-colors-arbitrum-light)}.fyvr11pz:hover:not([disabled]){background:var(--seq-colors-arbitrum-light)}.fyvr11q0[data-state=checked]{background:var(--seq-colors-arbitrum-light)}.fyvr11q1,.fyvr11q2:active{background:var(--seq-colors-avalance-dark)}.fyvr11q3:disabled,.fyvr11q3[data-disabled]{background:var(--seq-colors-avalance-dark)}.fyvr11q4:focus{background:var(--seq-colors-avalance-dark)}.fyvr11q5:hover:not([disabled]){background:var(--seq-colors-avalance-dark)}.fyvr11q6[data-state=checked]{background:var(--seq-colors-avalance-dark)}.fyvr11q7,.fyvr11q8:active{background:var(--seq-colors-avalance-light)}.fyvr11q9:disabled,.fyvr11q9[data-disabled]{background:var(--seq-colors-avalance-light)}.fyvr11qa:focus{background:var(--seq-colors-avalance-light)}.fyvr11qb:hover:not([disabled]){background:var(--seq-colors-avalance-light)}.fyvr11qc[data-state=checked]{background:var(--seq-colors-avalance-light)}.fyvr11qd,.fyvr11qe:active{background:var(--seq-colors-bsc-dark)}.fyvr11qf:disabled,.fyvr11qf[data-disabled]{background:var(--seq-colors-bsc-dark)}.fyvr11qg:focus{background:var(--seq-colors-bsc-dark)}.fyvr11qh:hover:not([disabled]){background:var(--seq-colors-bsc-dark)}.fyvr11qi[data-state=checked]{background:var(--seq-colors-bsc-dark)}.fyvr11qj,.fyvr11qk:active{background:var(--seq-colors-bsc-light)}.fyvr11ql:disabled,.fyvr11ql[data-disabled]{background:var(--seq-colors-bsc-light)}.fyvr11qm:focus{background:var(--seq-colors-bsc-light)}.fyvr11qn:hover:not([disabled]){background:var(--seq-colors-bsc-light)}.fyvr11qo[data-state=checked]{background:var(--seq-colors-bsc-light)}.fyvr11qp,.fyvr11qq:active{background:var(--seq-colors-ethereum-dark)}.fyvr11qr:disabled,.fyvr11qr[data-disabled]{background:var(--seq-colors-ethereum-dark)}.fyvr11qs:focus{background:var(--seq-colors-ethereum-dark)}.fyvr11qt:hover:not([disabled]){background:var(--seq-colors-ethereum-dark)}.fyvr11qu[data-state=checked]{background:var(--seq-colors-ethereum-dark)}.fyvr11qv,.fyvr11qw:active{background:var(--seq-colors-ethereum-light)}.fyvr11qx:disabled,.fyvr11qx[data-disabled]{background:var(--seq-colors-ethereum-light)}.fyvr11qy:focus{background:var(--seq-colors-ethereum-light)}.fyvr11qz:hover:not([disabled]){background:var(--seq-colors-ethereum-light)}.fyvr11r0[data-state=checked]{background:var(--seq-colors-ethereum-light)}.fyvr11r1,.fyvr11r2:active{background:var(--seq-colors-gnosis-dark)}.fyvr11r3:disabled,.fyvr11r3[data-disabled]{background:var(--seq-colors-gnosis-dark)}.fyvr11r4:focus{background:var(--seq-colors-gnosis-dark)}.fyvr11r5:hover:not([disabled]){background:var(--seq-colors-gnosis-dark)}.fyvr11r6[data-state=checked]{background:var(--seq-colors-gnosis-dark)}.fyvr11r7,.fyvr11r8:active{background:var(--seq-colors-gnosis-light)}.fyvr11r9:disabled,.fyvr11r9[data-disabled]{background:var(--seq-colors-gnosis-light)}.fyvr11ra:focus{background:var(--seq-colors-gnosis-light)}.fyvr11rb:hover:not([disabled]){background:var(--seq-colors-gnosis-light)}.fyvr11rc[data-state=checked]{background:var(--seq-colors-gnosis-light)}.fyvr11rd,.fyvr11re:active{background:var(--seq-colors-polygon-dark)}.fyvr11rf:disabled,.fyvr11rf[data-disabled]{background:var(--seq-colors-polygon-dark)}.fyvr11rg:focus{background:var(--seq-colors-polygon-dark)}.fyvr11rh:hover:not([disabled]){background:var(--seq-colors-polygon-dark)}.fyvr11ri[data-state=checked]{background:var(--seq-colors-polygon-dark)}.fyvr11rj,.fyvr11rk:active{background:var(--seq-colors-polygon-light)}.fyvr11rl:disabled,.fyvr11rl[data-disabled]{background:var(--seq-colors-polygon-light)}.fyvr11rm:focus{background:var(--seq-colors-polygon-light)}.fyvr11rn:hover:not([disabled]){background:var(--seq-colors-polygon-light)}.fyvr11ro[data-state=checked]{background:var(--seq-colors-polygon-light)}.fyvr11rp,.fyvr11rq:active{background:var(--seq-colors-text100)}.fyvr11rr:disabled,.fyvr11rr[data-disabled]{background:var(--seq-colors-text100)}.fyvr11rs:focus{background:var(--seq-colors-text100)}.fyvr11rt:hover:not([disabled]){background:var(--seq-colors-text100)}.fyvr11ru[data-state=checked]{background:var(--seq-colors-text100)}.fyvr11rv,.fyvr11rw:active{background:var(--seq-colors-text80)}.fyvr11rx:disabled,.fyvr11rx[data-disabled]{background:var(--seq-colors-text80)}.fyvr11ry:focus{background:var(--seq-colors-text80)}.fyvr11rz:hover:not([disabled]){background:var(--seq-colors-text80)}.fyvr11s0[data-state=checked]{background:var(--seq-colors-text80)}.fyvr11s1,.fyvr11s2:active{background:var(--seq-colors-text50)}.fyvr11s3:disabled,.fyvr11s3[data-disabled]{background:var(--seq-colors-text50)}.fyvr11s4:focus{background:var(--seq-colors-text50)}.fyvr11s5:hover:not([disabled]){background:var(--seq-colors-text50)}.fyvr11s6[data-state=checked]{background:var(--seq-colors-text50)}.fyvr11s7,.fyvr11s8:active{background:var(--seq-colors-text-inverse100)}.fyvr11s9:disabled,.fyvr11s9[data-disabled]{background:var(--seq-colors-text-inverse100)}.fyvr11sa:focus{background:var(--seq-colors-text-inverse100)}.fyvr11sb:hover:not([disabled]){background:var(--seq-colors-text-inverse100)}.fyvr11sc[data-state=checked]{background:var(--seq-colors-text-inverse100)}.fyvr11sd,.fyvr11se:active{background:var(--seq-colors-background-primary)}.fyvr11sf:disabled,.fyvr11sf[data-disabled]{background:var(--seq-colors-background-primary)}.fyvr11sg:focus{background:var(--seq-colors-background-primary)}.fyvr11sh:hover:not([disabled]){background:var(--seq-colors-background-primary)}.fyvr11si[data-state=checked]{background:var(--seq-colors-background-primary)}.fyvr11sj,.fyvr11sk:active{background:var(--seq-colors-background-secondary)}.fyvr11sl:disabled,.fyvr11sl[data-disabled]{background:var(--seq-colors-background-secondary)}.fyvr11sm:focus{background:var(--seq-colors-background-secondary)}.fyvr11sn:hover:not([disabled]){background:var(--seq-colors-background-secondary)}.fyvr11so[data-state=checked]{background:var(--seq-colors-background-secondary)}.fyvr11sp,.fyvr11sq:active{background:var(--seq-colors-background-contrast)}.fyvr11sr:disabled,.fyvr11sr[data-disabled]{background:var(--seq-colors-background-contrast)}.fyvr11ss:focus{background:var(--seq-colors-background-contrast)}.fyvr11st:hover:not([disabled]){background:var(--seq-colors-background-contrast)}.fyvr11su[data-state=checked]{background:var(--seq-colors-background-contrast)}.fyvr11sv,.fyvr11sw:active{background:var(--seq-colors-background-muted)}.fyvr11sx:disabled,.fyvr11sx[data-disabled]{background:var(--seq-colors-background-muted)}.fyvr11sy:focus{background:var(--seq-colors-background-muted)}.fyvr11sz:hover:not([disabled]){background:var(--seq-colors-background-muted)}.fyvr11t0[data-state=checked]{background:var(--seq-colors-background-muted)}.fyvr11t1,.fyvr11t2:active{background:var(--seq-colors-background-control)}.fyvr11t3:disabled,.fyvr11t3[data-disabled]{background:var(--seq-colors-background-control)}.fyvr11t4:focus{background:var(--seq-colors-background-control)}.fyvr11t5:hover:not([disabled]){background:var(--seq-colors-background-control)}.fyvr11t6[data-state=checked]{background:var(--seq-colors-background-control)}.fyvr11t7,.fyvr11t8:active{background:var(--seq-colors-background-inverse)}.fyvr11t9:disabled,.fyvr11t9[data-disabled]{background:var(--seq-colors-background-inverse)}.fyvr11ta:focus{background:var(--seq-colors-background-inverse)}.fyvr11tb:hover:not([disabled]){background:var(--seq-colors-background-inverse)}.fyvr11tc[data-state=checked]{background:var(--seq-colors-background-inverse)}.fyvr11td,.fyvr11te:active{background:var(--seq-colors-background-backdrop)}.fyvr11tf:disabled,.fyvr11tf[data-disabled]{background:var(--seq-colors-background-backdrop)}.fyvr11tg:focus{background:var(--seq-colors-background-backdrop)}.fyvr11th:hover:not([disabled]){background:var(--seq-colors-background-backdrop)}.fyvr11ti[data-state=checked]{background:var(--seq-colors-background-backdrop)}.fyvr11tj,.fyvr11tk:active{background:var(--seq-colors-background-overlay)}.fyvr11tl:disabled,.fyvr11tl[data-disabled]{background:var(--seq-colors-background-overlay)}.fyvr11tm:focus{background:var(--seq-colors-background-overlay)}.fyvr11tn:hover:not([disabled]){background:var(--seq-colors-background-overlay)}.fyvr11to[data-state=checked]{background:var(--seq-colors-background-overlay)}.fyvr11tp,.fyvr11tq:active{background:var(--seq-colors-background-raised)}.fyvr11tr:disabled,.fyvr11tr[data-disabled]{background:var(--seq-colors-background-raised)}.fyvr11ts:focus{background:var(--seq-colors-background-raised)}.fyvr11tt:hover:not([disabled]){background:var(--seq-colors-background-raised)}.fyvr11tu[data-state=checked]{background:var(--seq-colors-background-raised)}.fyvr11tv,.fyvr11tw:active{background:var(--seq-colors-button-glass)}.fyvr11tx:disabled,.fyvr11tx[data-disabled]{background:var(--seq-colors-button-glass)}.fyvr11ty:focus{background:var(--seq-colors-button-glass)}.fyvr11tz:hover:not([disabled]){background:var(--seq-colors-button-glass)}.fyvr11u0[data-state=checked]{background:var(--seq-colors-button-glass)}.fyvr11u1,.fyvr11u2:active{background:var(--seq-colors-button-emphasis)}.fyvr11u3:disabled,.fyvr11u3[data-disabled]{background:var(--seq-colors-button-emphasis)}.fyvr11u4:focus{background:var(--seq-colors-button-emphasis)}.fyvr11u5:hover:not([disabled]){background:var(--seq-colors-button-emphasis)}.fyvr11u6[data-state=checked]{background:var(--seq-colors-button-emphasis)}.fyvr11u7,.fyvr11u8:active{background:var(--seq-colors-button-inverse)}.fyvr11u9:disabled,.fyvr11u9[data-disabled]{background:var(--seq-colors-button-inverse)}.fyvr11ua:focus{background:var(--seq-colors-button-inverse)}.fyvr11ub:hover:not([disabled]){background:var(--seq-colors-button-inverse)}.fyvr11uc[data-state=checked]{background:var(--seq-colors-button-inverse)}.fyvr11ud,.fyvr11ue:active{background:var(--seq-colors-border-normal)}.fyvr11uf:disabled,.fyvr11uf[data-disabled]{background:var(--seq-colors-border-normal)}.fyvr11ug:focus{background:var(--seq-colors-border-normal)}.fyvr11uh:hover:not([disabled]){background:var(--seq-colors-border-normal)}.fyvr11ui[data-state=checked]{background:var(--seq-colors-border-normal)}.fyvr11uj,.fyvr11uk:active{background:var(--seq-colors-border-focus)}.fyvr11ul:disabled,.fyvr11ul[data-disabled]{background:var(--seq-colors-border-focus)}.fyvr11um:focus{background:var(--seq-colors-border-focus)}.fyvr11un:hover:not([disabled]){background:var(--seq-colors-border-focus)}.fyvr11uo[data-state=checked]{background:var(--seq-colors-border-focus)}.fyvr11up,.fyvr11uq:active{border-bottom-color:var(--seq-colors-black)}.fyvr11ur:disabled,.fyvr11ur[data-disabled]{border-bottom-color:var(--seq-colors-black)}.fyvr11us:focus{border-bottom-color:var(--seq-colors-black)}.fyvr11ut:hover:not([disabled]){border-bottom-color:var(--seq-colors-black)}.fyvr11uu[data-state=checked]{border-bottom-color:var(--seq-colors-black)}.fyvr11uv,.fyvr11uw:active{border-bottom-color:var(--seq-colors-white)}.fyvr11ux:disabled,.fyvr11ux[data-disabled]{border-bottom-color:var(--seq-colors-white)}.fyvr11uy:focus{border-bottom-color:var(--seq-colors-white)}.fyvr11uz:hover:not([disabled]){border-bottom-color:var(--seq-colors-white)}.fyvr11v0[data-state=checked]{border-bottom-color:var(--seq-colors-white)}.fyvr11v1,.fyvr11v2:active{border-bottom-color:var(--seq-colors-inherit)}.fyvr11v3:disabled,.fyvr11v3[data-disabled]{border-bottom-color:var(--seq-colors-inherit)}.fyvr11v4:focus{border-bottom-color:var(--seq-colors-inherit)}.fyvr11v5:hover:not([disabled]){border-bottom-color:var(--seq-colors-inherit)}.fyvr11v6[data-state=checked]{border-bottom-color:var(--seq-colors-inherit)}.fyvr11v7,.fyvr11v8:active{border-bottom-color:var(--seq-colors-transparent)}.fyvr11v9:disabled,.fyvr11v9[data-disabled]{border-bottom-color:var(--seq-colors-transparent)}.fyvr11va:focus{border-bottom-color:var(--seq-colors-transparent)}.fyvr11vb:hover:not([disabled]){border-bottom-color:var(--seq-colors-transparent)}.fyvr11vc[data-state=checked]{border-bottom-color:var(--seq-colors-transparent)}.fyvr11vd,.fyvr11ve:active{border-bottom-color:var(--seq-colors-positive)}.fyvr11vf:disabled,.fyvr11vf[data-disabled]{border-bottom-color:var(--seq-colors-positive)}.fyvr11vg:focus{border-bottom-color:var(--seq-colors-positive)}.fyvr11vh:hover:not([disabled]){border-bottom-color:var(--seq-colors-positive)}.fyvr11vi[data-state=checked]{border-bottom-color:var(--seq-colors-positive)}.fyvr11vj,.fyvr11vk:active{border-bottom-color:var(--seq-colors-negative)}.fyvr11vl:disabled,.fyvr11vl[data-disabled]{border-bottom-color:var(--seq-colors-negative)}.fyvr11vm:focus{border-bottom-color:var(--seq-colors-negative)}.fyvr11vn:hover:not([disabled]){border-bottom-color:var(--seq-colors-negative)}.fyvr11vo[data-state=checked]{border-bottom-color:var(--seq-colors-negative)}.fyvr11vp,.fyvr11vq:active{border-bottom-color:var(--seq-colors-info)}.fyvr11vr:disabled,.fyvr11vr[data-disabled]{border-bottom-color:var(--seq-colors-info)}.fyvr11vs:focus{border-bottom-color:var(--seq-colors-info)}.fyvr11vt:hover:not([disabled]){border-bottom-color:var(--seq-colors-info)}.fyvr11vu[data-state=checked]{border-bottom-color:var(--seq-colors-info)}.fyvr11vv,.fyvr11vw:active{border-bottom-color:var(--seq-colors-warning)}.fyvr11vx:disabled,.fyvr11vx[data-disabled]{border-bottom-color:var(--seq-colors-warning)}.fyvr11vy:focus{border-bottom-color:var(--seq-colors-warning)}.fyvr11vz:hover:not([disabled]){border-bottom-color:var(--seq-colors-warning)}.fyvr11w0[data-state=checked]{border-bottom-color:var(--seq-colors-warning)}.fyvr11w1,.fyvr11w2:active{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w3:disabled,.fyvr11w3[data-disabled]{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w4:focus{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w5:hover:not([disabled]){border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w6[data-state=checked]{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w7,.fyvr11w8:active{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11w9:disabled,.fyvr11w9[data-disabled]{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11wa:focus{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11wb:hover:not([disabled]){border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11wc[data-state=checked]{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11wd,.fyvr11we:active{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wf:disabled,.fyvr11wf[data-disabled]{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wg:focus{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wh:hover:not([disabled]){border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wi[data-state=checked]{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wj,.fyvr11wk:active{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wl:disabled,.fyvr11wl[data-disabled]{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wm:focus{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wn:hover:not([disabled]){border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wo[data-state=checked]{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wp,.fyvr11wq:active{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11wr:disabled,.fyvr11wr[data-disabled]{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11ws:focus{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11wt:hover:not([disabled]){border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11wu[data-state=checked]{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11wv,.fyvr11ww:active{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11wx:disabled,.fyvr11wx[data-disabled]{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11wy:focus{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11wz:hover:not([disabled]){border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11x0[data-state=checked]{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11x1,.fyvr11x2:active{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x3:disabled,.fyvr11x3[data-disabled]{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x4:focus{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x5:hover:not([disabled]){border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x6[data-state=checked]{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x7,.fyvr11x8:active{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11x9:disabled,.fyvr11x9[data-disabled]{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11xa:focus{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11xb:hover:not([disabled]){border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11xc[data-state=checked]{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11xd,.fyvr11xe:active{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xf:disabled,.fyvr11xf[data-disabled]{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xg:focus{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xh:hover:not([disabled]){border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xi[data-state=checked]{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xj,.fyvr11xk:active{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xl:disabled,.fyvr11xl[data-disabled]{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xm:focus{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xn:hover:not([disabled]){border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xo[data-state=checked]{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xp,.fyvr11xq:active{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xr:disabled,.fyvr11xr[data-disabled]{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xs:focus{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xt:hover:not([disabled]){border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xu[data-state=checked]{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xv,.fyvr11xw:active{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11xx:disabled,.fyvr11xx[data-disabled]{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11xy:focus{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11xz:hover:not([disabled]){border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11y0[data-state=checked]{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11y1,.fyvr11y2:active{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y3:disabled,.fyvr11y3[data-disabled]{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y4:focus{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y5:hover:not([disabled]){border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y6[data-state=checked]{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y7,.fyvr11y8:active{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11y9:disabled,.fyvr11y9[data-disabled]{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11ya:focus{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11yb:hover:not([disabled]){border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11yc[data-state=checked]{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11yd,.fyvr11ye:active{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yf:disabled,.fyvr11yf[data-disabled]{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yg:focus{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yh:hover:not([disabled]){border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yi[data-state=checked]{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yj,.fyvr11yk:active{border-bottom-color:var(--seq-colors-text100)}.fyvr11yl:disabled,.fyvr11yl[data-disabled]{border-bottom-color:var(--seq-colors-text100)}.fyvr11ym:focus{border-bottom-color:var(--seq-colors-text100)}.fyvr11yn:hover:not([disabled]){border-bottom-color:var(--seq-colors-text100)}.fyvr11yo[data-state=checked]{border-bottom-color:var(--seq-colors-text100)}.fyvr11yp,.fyvr11yq:active{border-bottom-color:var(--seq-colors-text80)}.fyvr11yr:disabled,.fyvr11yr[data-disabled]{border-bottom-color:var(--seq-colors-text80)}.fyvr11ys:focus{border-bottom-color:var(--seq-colors-text80)}.fyvr11yt:hover:not([disabled]){border-bottom-color:var(--seq-colors-text80)}.fyvr11yu[data-state=checked]{border-bottom-color:var(--seq-colors-text80)}.fyvr11yv,.fyvr11yw:active{border-bottom-color:var(--seq-colors-text50)}.fyvr11yx:disabled,.fyvr11yx[data-disabled]{border-bottom-color:var(--seq-colors-text50)}.fyvr11yy:focus{border-bottom-color:var(--seq-colors-text50)}.fyvr11yz:hover:not([disabled]){border-bottom-color:var(--seq-colors-text50)}.fyvr11z0[data-state=checked]{border-bottom-color:var(--seq-colors-text50)}.fyvr11z1,.fyvr11z2:active{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z3:disabled,.fyvr11z3[data-disabled]{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z4:focus{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z5:hover:not([disabled]){border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z6[data-state=checked]{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z7,.fyvr11z8:active{border-bottom-color:var(--seq-colors-background-primary)}.fyvr11z9:disabled,.fyvr11z9[data-disabled]{border-bottom-color:var(--seq-colors-background-primary)}.fyvr11za:focus{border-bottom-color:var(--seq-colors-background-primary)}.fyvr11zb:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-primary)}.fyvr11zc[data-state=checked]{border-bottom-color:var(--seq-colors-background-primary)}.fyvr11zd,.fyvr11ze:active{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zf:disabled,.fyvr11zf[data-disabled]{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zg:focus{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zh:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zi[data-state=checked]{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zj,.fyvr11zk:active{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zl:disabled,.fyvr11zl[data-disabled]{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zm:focus{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zn:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zo[data-state=checked]{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zp,.fyvr11zq:active{border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zr:disabled,.fyvr11zr[data-disabled]{border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zs:focus{border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zt:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zu[data-state=checked]{border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zv,.fyvr11zw:active{border-bottom-color:var(--seq-colors-background-control)}.fyvr11zx:disabled,.fyvr11zx[data-disabled]{border-bottom-color:var(--seq-colors-background-control)}.fyvr11zy:focus{border-bottom-color:var(--seq-colors-background-control)}.fyvr11zz:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-control)}.fyvr1200[data-state=checked]{border-bottom-color:var(--seq-colors-background-control)}.fyvr1201,.fyvr1202:active{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1203:disabled,.fyvr1203[data-disabled]{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1204:focus{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1205:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1206[data-state=checked]{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1207,.fyvr1208:active{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr1209:disabled,.fyvr1209[data-disabled]{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr120a:focus{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr120b:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr120c[data-state=checked]{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr120d,.fyvr120e:active{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120f:disabled,.fyvr120f[data-disabled]{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120g:focus{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120h:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120i[data-state=checked]{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120j,.fyvr120k:active{border-bottom-color:var(--seq-colors-background-raised)}.fyvr120l:disabled,.fyvr120l[data-disabled]{border-bottom-color:var(--seq-colors-background-raised)}.fyvr120m:focus{border-bottom-color:var(--seq-colors-background-raised)}.fyvr120n:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-raised)}.fyvr120o[data-state=checked]{border-bottom-color:var(--seq-colors-background-raised)}.fyvr120p,.fyvr120q:active{border-bottom-color:var(--seq-colors-button-glass)}.fyvr120r:disabled,.fyvr120r[data-disabled]{border-bottom-color:var(--seq-colors-button-glass)}.fyvr120s:focus{border-bottom-color:var(--seq-colors-button-glass)}.fyvr120t:hover:not([disabled]){border-bottom-color:var(--seq-colors-button-glass)}.fyvr120u[data-state=checked]{border-bottom-color:var(--seq-colors-button-glass)}.fyvr120v,.fyvr120w:active{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr120x:disabled,.fyvr120x[data-disabled]{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr120y:focus{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr120z:hover:not([disabled]){border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr1210[data-state=checked]{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr1211,.fyvr1212:active{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1213:disabled,.fyvr1213[data-disabled]{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1214:focus{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1215:hover:not([disabled]){border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1216[data-state=checked]{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1217,.fyvr1218:active{border-bottom-color:var(--seq-colors-border-normal)}.fyvr1219:disabled,.fyvr1219[data-disabled]{border-bottom-color:var(--seq-colors-border-normal)}.fyvr121a:focus{border-bottom-color:var(--seq-colors-border-normal)}.fyvr121b:hover:not([disabled]){border-bottom-color:var(--seq-colors-border-normal)}.fyvr121c[data-state=checked]{border-bottom-color:var(--seq-colors-border-normal)}.fyvr121d,.fyvr121e:active{border-bottom-color:var(--seq-colors-border-focus)}.fyvr121f:disabled,.fyvr121f[data-disabled]{border-bottom-color:var(--seq-colors-border-focus)}.fyvr121g:focus{border-bottom-color:var(--seq-colors-border-focus)}.fyvr121h:hover:not([disabled]){border-bottom-color:var(--seq-colors-border-focus)}.fyvr121i[data-state=checked]{border-bottom-color:var(--seq-colors-border-focus)}.fyvr121j,.fyvr121k:active{border-bottom-style:solid}.fyvr121l:disabled,.fyvr121l[data-disabled]{border-bottom-style:solid}.fyvr121m:focus{border-bottom-style:solid}.fyvr121n:hover:not([disabled]){border-bottom-style:solid}.fyvr121o[data-state=checked]{border-bottom-style:solid}.fyvr121p,.fyvr121q:active{border-bottom-style:dashed}.fyvr121r:disabled,.fyvr121r[data-disabled]{border-bottom-style:dashed}.fyvr121s:focus{border-bottom-style:dashed}.fyvr121t:hover:not([disabled]){border-bottom-style:dashed}.fyvr121u[data-state=checked]{border-bottom-style:dashed}.fyvr121v,.fyvr121w:active{border-bottom-style:dotted}.fyvr121x:disabled,.fyvr121x[data-disabled]{border-bottom-style:dotted}.fyvr121y:focus{border-bottom-style:dotted}.fyvr121z:hover:not([disabled]){border-bottom-style:dotted}.fyvr1220[data-state=checked]{border-bottom-style:dotted}.fyvr1221,.fyvr1222:active{border-left-color:var(--seq-colors-black)}.fyvr1223:disabled,.fyvr1223[data-disabled]{border-left-color:var(--seq-colors-black)}.fyvr1224:focus{border-left-color:var(--seq-colors-black)}.fyvr1225:hover:not([disabled]){border-left-color:var(--seq-colors-black)}.fyvr1226[data-state=checked]{border-left-color:var(--seq-colors-black)}.fyvr1227,.fyvr1228:active{border-left-color:var(--seq-colors-white)}.fyvr1229:disabled,.fyvr1229[data-disabled]{border-left-color:var(--seq-colors-white)}.fyvr122a:focus{border-left-color:var(--seq-colors-white)}.fyvr122b:hover:not([disabled]){border-left-color:var(--seq-colors-white)}.fyvr122c[data-state=checked]{border-left-color:var(--seq-colors-white)}.fyvr122d,.fyvr122e:active{border-left-color:var(--seq-colors-inherit)}.fyvr122f:disabled,.fyvr122f[data-disabled]{border-left-color:var(--seq-colors-inherit)}.fyvr122g:focus{border-left-color:var(--seq-colors-inherit)}.fyvr122h:hover:not([disabled]){border-left-color:var(--seq-colors-inherit)}.fyvr122i[data-state=checked]{border-left-color:var(--seq-colors-inherit)}.fyvr122j,.fyvr122k:active{border-left-color:var(--seq-colors-transparent)}.fyvr122l:disabled,.fyvr122l[data-disabled]{border-left-color:var(--seq-colors-transparent)}.fyvr122m:focus{border-left-color:var(--seq-colors-transparent)}.fyvr122n:hover:not([disabled]){border-left-color:var(--seq-colors-transparent)}.fyvr122o[data-state=checked]{border-left-color:var(--seq-colors-transparent)}.fyvr122p,.fyvr122q:active{border-left-color:var(--seq-colors-positive)}.fyvr122r:disabled,.fyvr122r[data-disabled]{border-left-color:var(--seq-colors-positive)}.fyvr122s:focus{border-left-color:var(--seq-colors-positive)}.fyvr122t:hover:not([disabled]){border-left-color:var(--seq-colors-positive)}.fyvr122u[data-state=checked]{border-left-color:var(--seq-colors-positive)}.fyvr122v,.fyvr122w:active{border-left-color:var(--seq-colors-negative)}.fyvr122x:disabled,.fyvr122x[data-disabled]{border-left-color:var(--seq-colors-negative)}.fyvr122y:focus{border-left-color:var(--seq-colors-negative)}.fyvr122z:hover:not([disabled]){border-left-color:var(--seq-colors-negative)}.fyvr1230[data-state=checked]{border-left-color:var(--seq-colors-negative)}.fyvr1231,.fyvr1232:active{border-left-color:var(--seq-colors-info)}.fyvr1233:disabled,.fyvr1233[data-disabled]{border-left-color:var(--seq-colors-info)}.fyvr1234:focus{border-left-color:var(--seq-colors-info)}.fyvr1235:hover:not([disabled]){border-left-color:var(--seq-colors-info)}.fyvr1236[data-state=checked]{border-left-color:var(--seq-colors-info)}.fyvr1237,.fyvr1238:active{border-left-color:var(--seq-colors-warning)}.fyvr1239:disabled,.fyvr1239[data-disabled]{border-left-color:var(--seq-colors-warning)}.fyvr123a:focus{border-left-color:var(--seq-colors-warning)}.fyvr123b:hover:not([disabled]){border-left-color:var(--seq-colors-warning)}.fyvr123c[data-state=checked]{border-left-color:var(--seq-colors-warning)}.fyvr123d,.fyvr123e:active{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123f:disabled,.fyvr123f[data-disabled]{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123g:focus{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123h:hover:not([disabled]){border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123i[data-state=checked]{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123j,.fyvr123k:active{border-left-color:var(--seq-colors-gradient-primary)}.fyvr123l:disabled,.fyvr123l[data-disabled]{border-left-color:var(--seq-colors-gradient-primary)}.fyvr123m:focus{border-left-color:var(--seq-colors-gradient-primary)}.fyvr123n:hover:not([disabled]){border-left-color:var(--seq-colors-gradient-primary)}.fyvr123o[data-state=checked]{border-left-color:var(--seq-colors-gradient-primary)}.fyvr123p,.fyvr123q:active{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123r:disabled,.fyvr123r[data-disabled]{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123s:focus{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123t:hover:not([disabled]){border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123u[data-state=checked]{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123v,.fyvr123w:active{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr123x:disabled,.fyvr123x[data-disabled]{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr123y:focus{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr123z:hover:not([disabled]){border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr1240[data-state=checked]{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr1241,.fyvr1242:active{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1243:disabled,.fyvr1243[data-disabled]{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1244:focus{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1245:hover:not([disabled]){border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1246[data-state=checked]{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1247,.fyvr1248:active{border-left-color:var(--seq-colors-avalance-dark)}.fyvr1249:disabled,.fyvr1249[data-disabled]{border-left-color:var(--seq-colors-avalance-dark)}.fyvr124a:focus{border-left-color:var(--seq-colors-avalance-dark)}.fyvr124b:hover:not([disabled]){border-left-color:var(--seq-colors-avalance-dark)}.fyvr124c[data-state=checked]{border-left-color:var(--seq-colors-avalance-dark)}.fyvr124d,.fyvr124e:active{border-left-color:var(--seq-colors-avalance-light)}.fyvr124f:disabled,.fyvr124f[data-disabled]{border-left-color:var(--seq-colors-avalance-light)}.fyvr124g:focus{border-left-color:var(--seq-colors-avalance-light)}.fyvr124h:hover:not([disabled]){border-left-color:var(--seq-colors-avalance-light)}.fyvr124i[data-state=checked]{border-left-color:var(--seq-colors-avalance-light)}.fyvr124j,.fyvr124k:active{border-left-color:var(--seq-colors-bsc-dark)}.fyvr124l:disabled,.fyvr124l[data-disabled]{border-left-color:var(--seq-colors-bsc-dark)}.fyvr124m:focus{border-left-color:var(--seq-colors-bsc-dark)}.fyvr124n:hover:not([disabled]){border-left-color:var(--seq-colors-bsc-dark)}.fyvr124o[data-state=checked]{border-left-color:var(--seq-colors-bsc-dark)}.fyvr124p,.fyvr124q:active{border-left-color:var(--seq-colors-bsc-light)}.fyvr124r:disabled,.fyvr124r[data-disabled]{border-left-color:var(--seq-colors-bsc-light)}.fyvr124s:focus{border-left-color:var(--seq-colors-bsc-light)}.fyvr124t:hover:not([disabled]){border-left-color:var(--seq-colors-bsc-light)}.fyvr124u[data-state=checked]{border-left-color:var(--seq-colors-bsc-light)}.fyvr124v,.fyvr124w:active{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr124x:disabled,.fyvr124x[data-disabled]{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr124y:focus{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr124z:hover:not([disabled]){border-left-color:var(--seq-colors-ethereum-dark)}.fyvr1250[data-state=checked]{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr1251,.fyvr1252:active{border-left-color:var(--seq-colors-ethereum-light)}.fyvr1253:disabled,.fyvr1253[data-disabled]{border-left-color:var(--seq-colors-ethereum-light)}.fyvr1254:focus{border-left-color:var(--seq-colors-ethereum-light)}.fyvr1255:hover:not([disabled]){border-left-color:var(--seq-colors-ethereum-light)}.fyvr1256[data-state=checked]{border-left-color:var(--seq-colors-ethereum-light)}.fyvr1257,.fyvr1258:active{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr1259:disabled,.fyvr1259[data-disabled]{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr125a:focus{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr125b:hover:not([disabled]){border-left-color:var(--seq-colors-gnosis-dark)}.fyvr125c[data-state=checked]{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr125d,.fyvr125e:active{border-left-color:var(--seq-colors-gnosis-light)}.fyvr125f:disabled,.fyvr125f[data-disabled]{border-left-color:var(--seq-colors-gnosis-light)}.fyvr125g:focus{border-left-color:var(--seq-colors-gnosis-light)}.fyvr125h:hover:not([disabled]){border-left-color:var(--seq-colors-gnosis-light)}.fyvr125i[data-state=checked]{border-left-color:var(--seq-colors-gnosis-light)}.fyvr125j,.fyvr125k:active{border-left-color:var(--seq-colors-polygon-dark)}.fyvr125l:disabled,.fyvr125l[data-disabled]{border-left-color:var(--seq-colors-polygon-dark)}.fyvr125m:focus{border-left-color:var(--seq-colors-polygon-dark)}.fyvr125n:hover:not([disabled]){border-left-color:var(--seq-colors-polygon-dark)}.fyvr125o[data-state=checked]{border-left-color:var(--seq-colors-polygon-dark)}.fyvr125p,.fyvr125q:active{border-left-color:var(--seq-colors-polygon-light)}.fyvr125r:disabled,.fyvr125r[data-disabled]{border-left-color:var(--seq-colors-polygon-light)}.fyvr125s:focus{border-left-color:var(--seq-colors-polygon-light)}.fyvr125t:hover:not([disabled]){border-left-color:var(--seq-colors-polygon-light)}.fyvr125u[data-state=checked]{border-left-color:var(--seq-colors-polygon-light)}.fyvr125v,.fyvr125w:active{border-left-color:var(--seq-colors-text100)}.fyvr125x:disabled,.fyvr125x[data-disabled]{border-left-color:var(--seq-colors-text100)}.fyvr125y:focus{border-left-color:var(--seq-colors-text100)}.fyvr125z:hover:not([disabled]){border-left-color:var(--seq-colors-text100)}.fyvr1260[data-state=checked]{border-left-color:var(--seq-colors-text100)}.fyvr1261,.fyvr1262:active{border-left-color:var(--seq-colors-text80)}.fyvr1263:disabled,.fyvr1263[data-disabled]{border-left-color:var(--seq-colors-text80)}.fyvr1264:focus{border-left-color:var(--seq-colors-text80)}.fyvr1265:hover:not([disabled]){border-left-color:var(--seq-colors-text80)}.fyvr1266[data-state=checked]{border-left-color:var(--seq-colors-text80)}.fyvr1267,.fyvr1268:active{border-left-color:var(--seq-colors-text50)}.fyvr1269:disabled,.fyvr1269[data-disabled]{border-left-color:var(--seq-colors-text50)}.fyvr126a:focus{border-left-color:var(--seq-colors-text50)}.fyvr126b:hover:not([disabled]){border-left-color:var(--seq-colors-text50)}.fyvr126c[data-state=checked]{border-left-color:var(--seq-colors-text50)}.fyvr126d,.fyvr126e:active{border-left-color:var(--seq-colors-text-inverse100)}.fyvr126f:disabled,.fyvr126f[data-disabled]{border-left-color:var(--seq-colors-text-inverse100)}.fyvr126g:focus{border-left-color:var(--seq-colors-text-inverse100)}.fyvr126h:hover:not([disabled]){border-left-color:var(--seq-colors-text-inverse100)}.fyvr126i[data-state=checked]{border-left-color:var(--seq-colors-text-inverse100)}.fyvr126j,.fyvr126k:active{border-left-color:var(--seq-colors-background-primary)}.fyvr126l:disabled,.fyvr126l[data-disabled]{border-left-color:var(--seq-colors-background-primary)}.fyvr126m:focus{border-left-color:var(--seq-colors-background-primary)}.fyvr126n:hover:not([disabled]){border-left-color:var(--seq-colors-background-primary)}.fyvr126o[data-state=checked]{border-left-color:var(--seq-colors-background-primary)}.fyvr126p,.fyvr126q:active{border-left-color:var(--seq-colors-background-secondary)}.fyvr126r:disabled,.fyvr126r[data-disabled]{border-left-color:var(--seq-colors-background-secondary)}.fyvr126s:focus{border-left-color:var(--seq-colors-background-secondary)}.fyvr126t:hover:not([disabled]){border-left-color:var(--seq-colors-background-secondary)}.fyvr126u[data-state=checked]{border-left-color:var(--seq-colors-background-secondary)}.fyvr126v,.fyvr126w:active{border-left-color:var(--seq-colors-background-contrast)}.fyvr126x:disabled,.fyvr126x[data-disabled]{border-left-color:var(--seq-colors-background-contrast)}.fyvr126y:focus{border-left-color:var(--seq-colors-background-contrast)}.fyvr126z:hover:not([disabled]){border-left-color:var(--seq-colors-background-contrast)}.fyvr1270[data-state=checked]{border-left-color:var(--seq-colors-background-contrast)}.fyvr1271,.fyvr1272:active{border-left-color:var(--seq-colors-background-muted)}.fyvr1273:disabled,.fyvr1273[data-disabled]{border-left-color:var(--seq-colors-background-muted)}.fyvr1274:focus{border-left-color:var(--seq-colors-background-muted)}.fyvr1275:hover:not([disabled]){border-left-color:var(--seq-colors-background-muted)}.fyvr1276[data-state=checked]{border-left-color:var(--seq-colors-background-muted)}.fyvr1277,.fyvr1278:active{border-left-color:var(--seq-colors-background-control)}.fyvr1279:disabled,.fyvr1279[data-disabled]{border-left-color:var(--seq-colors-background-control)}.fyvr127a:focus{border-left-color:var(--seq-colors-background-control)}.fyvr127b:hover:not([disabled]){border-left-color:var(--seq-colors-background-control)}.fyvr127c[data-state=checked]{border-left-color:var(--seq-colors-background-control)}.fyvr127d,.fyvr127e:active{border-left-color:var(--seq-colors-background-inverse)}.fyvr127f:disabled,.fyvr127f[data-disabled]{border-left-color:var(--seq-colors-background-inverse)}.fyvr127g:focus{border-left-color:var(--seq-colors-background-inverse)}.fyvr127h:hover:not([disabled]){border-left-color:var(--seq-colors-background-inverse)}.fyvr127i[data-state=checked]{border-left-color:var(--seq-colors-background-inverse)}.fyvr127j,.fyvr127k:active{border-left-color:var(--seq-colors-background-backdrop)}.fyvr127l:disabled,.fyvr127l[data-disabled]{border-left-color:var(--seq-colors-background-backdrop)}.fyvr127m:focus{border-left-color:var(--seq-colors-background-backdrop)}.fyvr127n:hover:not([disabled]){border-left-color:var(--seq-colors-background-backdrop)}.fyvr127o[data-state=checked]{border-left-color:var(--seq-colors-background-backdrop)}.fyvr127p,.fyvr127q:active{border-left-color:var(--seq-colors-background-overlay)}.fyvr127r:disabled,.fyvr127r[data-disabled]{border-left-color:var(--seq-colors-background-overlay)}.fyvr127s:focus{border-left-color:var(--seq-colors-background-overlay)}.fyvr127t:hover:not([disabled]){border-left-color:var(--seq-colors-background-overlay)}.fyvr127u[data-state=checked]{border-left-color:var(--seq-colors-background-overlay)}.fyvr127v,.fyvr127w:active{border-left-color:var(--seq-colors-background-raised)}.fyvr127x:disabled,.fyvr127x[data-disabled]{border-left-color:var(--seq-colors-background-raised)}.fyvr127y:focus{border-left-color:var(--seq-colors-background-raised)}.fyvr127z:hover:not([disabled]){border-left-color:var(--seq-colors-background-raised)}.fyvr1280[data-state=checked]{border-left-color:var(--seq-colors-background-raised)}.fyvr1281,.fyvr1282:active{border-left-color:var(--seq-colors-button-glass)}.fyvr1283:disabled,.fyvr1283[data-disabled]{border-left-color:var(--seq-colors-button-glass)}.fyvr1284:focus{border-left-color:var(--seq-colors-button-glass)}.fyvr1285:hover:not([disabled]){border-left-color:var(--seq-colors-button-glass)}.fyvr1286[data-state=checked]{border-left-color:var(--seq-colors-button-glass)}.fyvr1287,.fyvr1288:active{border-left-color:var(--seq-colors-button-emphasis)}.fyvr1289:disabled,.fyvr1289[data-disabled]{border-left-color:var(--seq-colors-button-emphasis)}.fyvr128a:focus{border-left-color:var(--seq-colors-button-emphasis)}.fyvr128b:hover:not([disabled]){border-left-color:var(--seq-colors-button-emphasis)}.fyvr128c[data-state=checked]{border-left-color:var(--seq-colors-button-emphasis)}.fyvr128d,.fyvr128e:active{border-left-color:var(--seq-colors-button-inverse)}.fyvr128f:disabled,.fyvr128f[data-disabled]{border-left-color:var(--seq-colors-button-inverse)}.fyvr128g:focus{border-left-color:var(--seq-colors-button-inverse)}.fyvr128h:hover:not([disabled]){border-left-color:var(--seq-colors-button-inverse)}.fyvr128i[data-state=checked]{border-left-color:var(--seq-colors-button-inverse)}.fyvr128j,.fyvr128k:active{border-left-color:var(--seq-colors-border-normal)}.fyvr128l:disabled,.fyvr128l[data-disabled]{border-left-color:var(--seq-colors-border-normal)}.fyvr128m:focus{border-left-color:var(--seq-colors-border-normal)}.fyvr128n:hover:not([disabled]){border-left-color:var(--seq-colors-border-normal)}.fyvr128o[data-state=checked]{border-left-color:var(--seq-colors-border-normal)}.fyvr128p,.fyvr128q:active{border-left-color:var(--seq-colors-border-focus)}.fyvr128r:disabled,.fyvr128r[data-disabled]{border-left-color:var(--seq-colors-border-focus)}.fyvr128s:focus{border-left-color:var(--seq-colors-border-focus)}.fyvr128t:hover:not([disabled]){border-left-color:var(--seq-colors-border-focus)}.fyvr128u[data-state=checked]{border-left-color:var(--seq-colors-border-focus)}.fyvr128v,.fyvr128w:active{border-left-style:solid}.fyvr128x:disabled,.fyvr128x[data-disabled]{border-left-style:solid}.fyvr128y:focus{border-left-style:solid}.fyvr128z:hover:not([disabled]){border-left-style:solid}.fyvr1290[data-state=checked]{border-left-style:solid}.fyvr1291,.fyvr1292:active{border-left-style:dashed}.fyvr1293:disabled,.fyvr1293[data-disabled]{border-left-style:dashed}.fyvr1294:focus{border-left-style:dashed}.fyvr1295:hover:not([disabled]){border-left-style:dashed}.fyvr1296[data-state=checked]{border-left-style:dashed}.fyvr1297,.fyvr1298:active{border-left-style:dotted}.fyvr1299:disabled,.fyvr1299[data-disabled]{border-left-style:dotted}.fyvr129a:focus{border-left-style:dotted}.fyvr129b:hover:not([disabled]){border-left-style:dotted}.fyvr129c[data-state=checked]{border-left-style:dotted}.fyvr129d,.fyvr129e:active{border-right-color:var(--seq-colors-black)}.fyvr129f:disabled,.fyvr129f[data-disabled]{border-right-color:var(--seq-colors-black)}.fyvr129g:focus{border-right-color:var(--seq-colors-black)}.fyvr129h:hover:not([disabled]){border-right-color:var(--seq-colors-black)}.fyvr129i[data-state=checked]{border-right-color:var(--seq-colors-black)}.fyvr129j,.fyvr129k:active{border-right-color:var(--seq-colors-white)}.fyvr129l:disabled,.fyvr129l[data-disabled]{border-right-color:var(--seq-colors-white)}.fyvr129m:focus{border-right-color:var(--seq-colors-white)}.fyvr129n:hover:not([disabled]){border-right-color:var(--seq-colors-white)}.fyvr129o[data-state=checked]{border-right-color:var(--seq-colors-white)}.fyvr129p,.fyvr129q:active{border-right-color:var(--seq-colors-inherit)}.fyvr129r:disabled,.fyvr129r[data-disabled]{border-right-color:var(--seq-colors-inherit)}.fyvr129s:focus{border-right-color:var(--seq-colors-inherit)}.fyvr129t:hover:not([disabled]){border-right-color:var(--seq-colors-inherit)}.fyvr129u[data-state=checked]{border-right-color:var(--seq-colors-inherit)}.fyvr129v,.fyvr129w:active{border-right-color:var(--seq-colors-transparent)}.fyvr129x:disabled,.fyvr129x[data-disabled]{border-right-color:var(--seq-colors-transparent)}.fyvr129y:focus{border-right-color:var(--seq-colors-transparent)}.fyvr129z:hover:not([disabled]){border-right-color:var(--seq-colors-transparent)}.fyvr12a0[data-state=checked]{border-right-color:var(--seq-colors-transparent)}.fyvr12a1,.fyvr12a2:active{border-right-color:var(--seq-colors-positive)}.fyvr12a3:disabled,.fyvr12a3[data-disabled]{border-right-color:var(--seq-colors-positive)}.fyvr12a4:focus{border-right-color:var(--seq-colors-positive)}.fyvr12a5:hover:not([disabled]){border-right-color:var(--seq-colors-positive)}.fyvr12a6[data-state=checked]{border-right-color:var(--seq-colors-positive)}.fyvr12a7,.fyvr12a8:active{border-right-color:var(--seq-colors-negative)}.fyvr12a9:disabled,.fyvr12a9[data-disabled]{border-right-color:var(--seq-colors-negative)}.fyvr12aa:focus{border-right-color:var(--seq-colors-negative)}.fyvr12ab:hover:not([disabled]){border-right-color:var(--seq-colors-negative)}.fyvr12ac[data-state=checked]{border-right-color:var(--seq-colors-negative)}.fyvr12ad,.fyvr12ae:active{border-right-color:var(--seq-colors-info)}.fyvr12af:disabled,.fyvr12af[data-disabled]{border-right-color:var(--seq-colors-info)}.fyvr12ag:focus{border-right-color:var(--seq-colors-info)}.fyvr12ah:hover:not([disabled]){border-right-color:var(--seq-colors-info)}.fyvr12ai[data-state=checked]{border-right-color:var(--seq-colors-info)}.fyvr12aj,.fyvr12ak:active{border-right-color:var(--seq-colors-warning)}.fyvr12al:disabled,.fyvr12al[data-disabled]{border-right-color:var(--seq-colors-warning)}.fyvr12am:focus{border-right-color:var(--seq-colors-warning)}.fyvr12an:hover:not([disabled]){border-right-color:var(--seq-colors-warning)}.fyvr12ao[data-state=checked]{border-right-color:var(--seq-colors-warning)}.fyvr12ap,.fyvr12aq:active{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12ar:disabled,.fyvr12ar[data-disabled]{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12as:focus{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12at:hover:not([disabled]){border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12au[data-state=checked]{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12av,.fyvr12aw:active{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12ax:disabled,.fyvr12ax[data-disabled]{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12ay:focus{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12az:hover:not([disabled]){border-right-color:var(--seq-colors-gradient-primary)}.fyvr12b0[data-state=checked]{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12b1,.fyvr12b2:active{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b3:disabled,.fyvr12b3[data-disabled]{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b4:focus{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b5:hover:not([disabled]){border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b6[data-state=checked]{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b7,.fyvr12b8:active{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12b9:disabled,.fyvr12b9[data-disabled]{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12ba:focus{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12bb:hover:not([disabled]){border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12bc[data-state=checked]{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12bd,.fyvr12be:active{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bf:disabled,.fyvr12bf[data-disabled]{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bg:focus{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bh:hover:not([disabled]){border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bi[data-state=checked]{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bj,.fyvr12bk:active{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bl:disabled,.fyvr12bl[data-disabled]{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bm:focus{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bn:hover:not([disabled]){border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bo[data-state=checked]{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bp,.fyvr12bq:active{border-right-color:var(--seq-colors-avalance-light)}.fyvr12br:disabled,.fyvr12br[data-disabled]{border-right-color:var(--seq-colors-avalance-light)}.fyvr12bs:focus{border-right-color:var(--seq-colors-avalance-light)}.fyvr12bt:hover:not([disabled]){border-right-color:var(--seq-colors-avalance-light)}.fyvr12bu[data-state=checked]{border-right-color:var(--seq-colors-avalance-light)}.fyvr12bv,.fyvr12bw:active{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12bx:disabled,.fyvr12bx[data-disabled]{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12by:focus{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12bz:hover:not([disabled]){border-right-color:var(--seq-colors-bsc-dark)}.fyvr12c0[data-state=checked]{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12c1,.fyvr12c2:active{border-right-color:var(--seq-colors-bsc-light)}.fyvr12c3:disabled,.fyvr12c3[data-disabled]{border-right-color:var(--seq-colors-bsc-light)}.fyvr12c4:focus{border-right-color:var(--seq-colors-bsc-light)}.fyvr12c5:hover:not([disabled]){border-right-color:var(--seq-colors-bsc-light)}.fyvr12c6[data-state=checked]{border-right-color:var(--seq-colors-bsc-light)}.fyvr12c7,.fyvr12c8:active{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12c9:disabled,.fyvr12c9[data-disabled]{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12ca:focus{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12cb:hover:not([disabled]){border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12cc[data-state=checked]{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12cd,.fyvr12ce:active{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12cf:disabled,.fyvr12cf[data-disabled]{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12cg:focus{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12ch:hover:not([disabled]){border-right-color:var(--seq-colors-ethereum-light)}.fyvr12ci[data-state=checked]{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12cj,.fyvr12ck:active{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12cl:disabled,.fyvr12cl[data-disabled]{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12cm:focus{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12cn:hover:not([disabled]){border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12co[data-state=checked]{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12cp,.fyvr12cq:active{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12cr:disabled,.fyvr12cr[data-disabled]{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12cs:focus{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12ct:hover:not([disabled]){border-right-color:var(--seq-colors-gnosis-light)}.fyvr12cu[data-state=checked]{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12cv,.fyvr12cw:active{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12cx:disabled,.fyvr12cx[data-disabled]{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12cy:focus{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12cz:hover:not([disabled]){border-right-color:var(--seq-colors-polygon-dark)}.fyvr12d0[data-state=checked]{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12d1,.fyvr12d2:active{border-right-color:var(--seq-colors-polygon-light)}.fyvr12d3:disabled,.fyvr12d3[data-disabled]{border-right-color:var(--seq-colors-polygon-light)}.fyvr12d4:focus{border-right-color:var(--seq-colors-polygon-light)}.fyvr12d5:hover:not([disabled]){border-right-color:var(--seq-colors-polygon-light)}.fyvr12d6[data-state=checked]{border-right-color:var(--seq-colors-polygon-light)}.fyvr12d7,.fyvr12d8:active{border-right-color:var(--seq-colors-text100)}.fyvr12d9:disabled,.fyvr12d9[data-disabled]{border-right-color:var(--seq-colors-text100)}.fyvr12da:focus{border-right-color:var(--seq-colors-text100)}.fyvr12db:hover:not([disabled]){border-right-color:var(--seq-colors-text100)}.fyvr12dc[data-state=checked]{border-right-color:var(--seq-colors-text100)}.fyvr12dd,.fyvr12de:active{border-right-color:var(--seq-colors-text80)}.fyvr12df:disabled,.fyvr12df[data-disabled]{border-right-color:var(--seq-colors-text80)}.fyvr12dg:focus{border-right-color:var(--seq-colors-text80)}.fyvr12dh:hover:not([disabled]){border-right-color:var(--seq-colors-text80)}.fyvr12di[data-state=checked]{border-right-color:var(--seq-colors-text80)}.fyvr12dj,.fyvr12dk:active{border-right-color:var(--seq-colors-text50)}.fyvr12dl:disabled,.fyvr12dl[data-disabled]{border-right-color:var(--seq-colors-text50)}.fyvr12dm:focus{border-right-color:var(--seq-colors-text50)}.fyvr12dn:hover:not([disabled]){border-right-color:var(--seq-colors-text50)}.fyvr12do[data-state=checked]{border-right-color:var(--seq-colors-text50)}.fyvr12dp,.fyvr12dq:active{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12dr:disabled,.fyvr12dr[data-disabled]{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12ds:focus{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12dt:hover:not([disabled]){border-right-color:var(--seq-colors-text-inverse100)}.fyvr12du[data-state=checked]{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12dv,.fyvr12dw:active{border-right-color:var(--seq-colors-background-primary)}.fyvr12dx:disabled,.fyvr12dx[data-disabled]{border-right-color:var(--seq-colors-background-primary)}.fyvr12dy:focus{border-right-color:var(--seq-colors-background-primary)}.fyvr12dz:hover:not([disabled]){border-right-color:var(--seq-colors-background-primary)}.fyvr12e0[data-state=checked]{border-right-color:var(--seq-colors-background-primary)}.fyvr12e1,.fyvr12e2:active{border-right-color:var(--seq-colors-background-secondary)}.fyvr12e3:disabled,.fyvr12e3[data-disabled]{border-right-color:var(--seq-colors-background-secondary)}.fyvr12e4:focus{border-right-color:var(--seq-colors-background-secondary)}.fyvr12e5:hover:not([disabled]){border-right-color:var(--seq-colors-background-secondary)}.fyvr12e6[data-state=checked]{border-right-color:var(--seq-colors-background-secondary)}.fyvr12e7,.fyvr12e8:active{border-right-color:var(--seq-colors-background-contrast)}.fyvr12e9:disabled,.fyvr12e9[data-disabled]{border-right-color:var(--seq-colors-background-contrast)}.fyvr12ea:focus{border-right-color:var(--seq-colors-background-contrast)}.fyvr12eb:hover:not([disabled]){border-right-color:var(--seq-colors-background-contrast)}.fyvr12ec[data-state=checked]{border-right-color:var(--seq-colors-background-contrast)}.fyvr12ed,.fyvr12ee:active{border-right-color:var(--seq-colors-background-muted)}.fyvr12ef:disabled,.fyvr12ef[data-disabled]{border-right-color:var(--seq-colors-background-muted)}.fyvr12eg:focus{border-right-color:var(--seq-colors-background-muted)}.fyvr12eh:hover:not([disabled]){border-right-color:var(--seq-colors-background-muted)}.fyvr12ei[data-state=checked]{border-right-color:var(--seq-colors-background-muted)}.fyvr12ej,.fyvr12ek:active{border-right-color:var(--seq-colors-background-control)}.fyvr12el:disabled,.fyvr12el[data-disabled]{border-right-color:var(--seq-colors-background-control)}.fyvr12em:focus{border-right-color:var(--seq-colors-background-control)}.fyvr12en:hover:not([disabled]){border-right-color:var(--seq-colors-background-control)}.fyvr12eo[data-state=checked]{border-right-color:var(--seq-colors-background-control)}.fyvr12ep,.fyvr12eq:active{border-right-color:var(--seq-colors-background-inverse)}.fyvr12er:disabled,.fyvr12er[data-disabled]{border-right-color:var(--seq-colors-background-inverse)}.fyvr12es:focus{border-right-color:var(--seq-colors-background-inverse)}.fyvr12et:hover:not([disabled]){border-right-color:var(--seq-colors-background-inverse)}.fyvr12eu[data-state=checked]{border-right-color:var(--seq-colors-background-inverse)}.fyvr12ev,.fyvr12ew:active{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12ex:disabled,.fyvr12ex[data-disabled]{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12ey:focus{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12ez:hover:not([disabled]){border-right-color:var(--seq-colors-background-backdrop)}.fyvr12f0[data-state=checked]{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12f1,.fyvr12f2:active{border-right-color:var(--seq-colors-background-overlay)}.fyvr12f3:disabled,.fyvr12f3[data-disabled]{border-right-color:var(--seq-colors-background-overlay)}.fyvr12f4:focus{border-right-color:var(--seq-colors-background-overlay)}.fyvr12f5:hover:not([disabled]){border-right-color:var(--seq-colors-background-overlay)}.fyvr12f6[data-state=checked]{border-right-color:var(--seq-colors-background-overlay)}.fyvr12f7,.fyvr12f8:active{border-right-color:var(--seq-colors-background-raised)}.fyvr12f9:disabled,.fyvr12f9[data-disabled]{border-right-color:var(--seq-colors-background-raised)}.fyvr12fa:focus{border-right-color:var(--seq-colors-background-raised)}.fyvr12fb:hover:not([disabled]){border-right-color:var(--seq-colors-background-raised)}.fyvr12fc[data-state=checked]{border-right-color:var(--seq-colors-background-raised)}.fyvr12fd,.fyvr12fe:active{border-right-color:var(--seq-colors-button-glass)}.fyvr12ff:disabled,.fyvr12ff[data-disabled]{border-right-color:var(--seq-colors-button-glass)}.fyvr12fg:focus{border-right-color:var(--seq-colors-button-glass)}.fyvr12fh:hover:not([disabled]){border-right-color:var(--seq-colors-button-glass)}.fyvr12fi[data-state=checked]{border-right-color:var(--seq-colors-button-glass)}.fyvr12fj,.fyvr12fk:active{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fl:disabled,.fyvr12fl[data-disabled]{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fm:focus{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fn:hover:not([disabled]){border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fo[data-state=checked]{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fp,.fyvr12fq:active{border-right-color:var(--seq-colors-button-inverse)}.fyvr12fr:disabled,.fyvr12fr[data-disabled]{border-right-color:var(--seq-colors-button-inverse)}.fyvr12fs:focus{border-right-color:var(--seq-colors-button-inverse)}.fyvr12ft:hover:not([disabled]){border-right-color:var(--seq-colors-button-inverse)}.fyvr12fu[data-state=checked]{border-right-color:var(--seq-colors-button-inverse)}.fyvr12fv,.fyvr12fw:active{border-right-color:var(--seq-colors-border-normal)}.fyvr12fx:disabled,.fyvr12fx[data-disabled]{border-right-color:var(--seq-colors-border-normal)}.fyvr12fy:focus{border-right-color:var(--seq-colors-border-normal)}.fyvr12fz:hover:not([disabled]){border-right-color:var(--seq-colors-border-normal)}.fyvr12g0[data-state=checked]{border-right-color:var(--seq-colors-border-normal)}.fyvr12g1,.fyvr12g2:active{border-right-color:var(--seq-colors-border-focus)}.fyvr12g3:disabled,.fyvr12g3[data-disabled]{border-right-color:var(--seq-colors-border-focus)}.fyvr12g4:focus{border-right-color:var(--seq-colors-border-focus)}.fyvr12g5:hover:not([disabled]){border-right-color:var(--seq-colors-border-focus)}.fyvr12g6[data-state=checked]{border-right-color:var(--seq-colors-border-focus)}.fyvr12g7,.fyvr12g8:active{border-right-style:solid}.fyvr12g9:disabled,.fyvr12g9[data-disabled]{border-right-style:solid}.fyvr12ga:focus{border-right-style:solid}.fyvr12gb:hover:not([disabled]){border-right-style:solid}.fyvr12gc[data-state=checked]{border-right-style:solid}.fyvr12gd,.fyvr12ge:active{border-right-style:dashed}.fyvr12gf:disabled,.fyvr12gf[data-disabled]{border-right-style:dashed}.fyvr12gg:focus{border-right-style:dashed}.fyvr12gh:hover:not([disabled]){border-right-style:dashed}.fyvr12gi[data-state=checked]{border-right-style:dashed}.fyvr12gj,.fyvr12gk:active{border-right-style:dotted}.fyvr12gl:disabled,.fyvr12gl[data-disabled]{border-right-style:dotted}.fyvr12gm:focus{border-right-style:dotted}.fyvr12gn:hover:not([disabled]){border-right-style:dotted}.fyvr12go[data-state=checked]{border-right-style:dotted}.fyvr12gp,.fyvr12gq:active{border-top-color:var(--seq-colors-black)}.fyvr12gr:disabled,.fyvr12gr[data-disabled]{border-top-color:var(--seq-colors-black)}.fyvr12gs:focus{border-top-color:var(--seq-colors-black)}.fyvr12gt:hover:not([disabled]){border-top-color:var(--seq-colors-black)}.fyvr12gu[data-state=checked]{border-top-color:var(--seq-colors-black)}.fyvr12gv,.fyvr12gw:active{border-top-color:var(--seq-colors-white)}.fyvr12gx:disabled,.fyvr12gx[data-disabled]{border-top-color:var(--seq-colors-white)}.fyvr12gy:focus{border-top-color:var(--seq-colors-white)}.fyvr12gz:hover:not([disabled]){border-top-color:var(--seq-colors-white)}.fyvr12h0[data-state=checked]{border-top-color:var(--seq-colors-white)}.fyvr12h1,.fyvr12h2:active{border-top-color:var(--seq-colors-inherit)}.fyvr12h3:disabled,.fyvr12h3[data-disabled]{border-top-color:var(--seq-colors-inherit)}.fyvr12h4:focus{border-top-color:var(--seq-colors-inherit)}.fyvr12h5:hover:not([disabled]){border-top-color:var(--seq-colors-inherit)}.fyvr12h6[data-state=checked]{border-top-color:var(--seq-colors-inherit)}.fyvr12h7,.fyvr12h8:active{border-top-color:var(--seq-colors-transparent)}.fyvr12h9:disabled,.fyvr12h9[data-disabled]{border-top-color:var(--seq-colors-transparent)}.fyvr12ha:focus{border-top-color:var(--seq-colors-transparent)}.fyvr12hb:hover:not([disabled]){border-top-color:var(--seq-colors-transparent)}.fyvr12hc[data-state=checked]{border-top-color:var(--seq-colors-transparent)}.fyvr12hd,.fyvr12he:active{border-top-color:var(--seq-colors-positive)}.fyvr12hf:disabled,.fyvr12hf[data-disabled]{border-top-color:var(--seq-colors-positive)}.fyvr12hg:focus{border-top-color:var(--seq-colors-positive)}.fyvr12hh:hover:not([disabled]){border-top-color:var(--seq-colors-positive)}.fyvr12hi[data-state=checked]{border-top-color:var(--seq-colors-positive)}.fyvr12hj,.fyvr12hk:active{border-top-color:var(--seq-colors-negative)}.fyvr12hl:disabled,.fyvr12hl[data-disabled]{border-top-color:var(--seq-colors-negative)}.fyvr12hm:focus{border-top-color:var(--seq-colors-negative)}.fyvr12hn:hover:not([disabled]){border-top-color:var(--seq-colors-negative)}.fyvr12ho[data-state=checked]{border-top-color:var(--seq-colors-negative)}.fyvr12hp,.fyvr12hq:active{border-top-color:var(--seq-colors-info)}.fyvr12hr:disabled,.fyvr12hr[data-disabled]{border-top-color:var(--seq-colors-info)}.fyvr12hs:focus{border-top-color:var(--seq-colors-info)}.fyvr12ht:hover:not([disabled]){border-top-color:var(--seq-colors-info)}.fyvr12hu[data-state=checked]{border-top-color:var(--seq-colors-info)}.fyvr12hv,.fyvr12hw:active{border-top-color:var(--seq-colors-warning)}.fyvr12hx:disabled,.fyvr12hx[data-disabled]{border-top-color:var(--seq-colors-warning)}.fyvr12hy:focus{border-top-color:var(--seq-colors-warning)}.fyvr12hz:hover:not([disabled]){border-top-color:var(--seq-colors-warning)}.fyvr12i0[data-state=checked]{border-top-color:var(--seq-colors-warning)}.fyvr12i1,.fyvr12i2:active{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i3:disabled,.fyvr12i3[data-disabled]{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i4:focus{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i5:hover:not([disabled]){border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i6[data-state=checked]{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i7,.fyvr12i8:active{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12i9:disabled,.fyvr12i9[data-disabled]{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12ia:focus{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12ib:hover:not([disabled]){border-top-color:var(--seq-colors-gradient-primary)}.fyvr12ic[data-state=checked]{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12id,.fyvr12ie:active{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12if:disabled,.fyvr12if[data-disabled]{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12ig:focus{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12ih:hover:not([disabled]){border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12ii[data-state=checked]{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12ij,.fyvr12ik:active{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12il:disabled,.fyvr12il[data-disabled]{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12im:focus{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12in:hover:not([disabled]){border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12io[data-state=checked]{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12ip,.fyvr12iq:active{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12ir:disabled,.fyvr12ir[data-disabled]{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12is:focus{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12it:hover:not([disabled]){border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12iu[data-state=checked]{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12iv,.fyvr12iw:active{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12ix:disabled,.fyvr12ix[data-disabled]{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12iy:focus{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12iz:hover:not([disabled]){border-top-color:var(--seq-colors-avalance-dark)}.fyvr12j0[data-state=checked]{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12j1,.fyvr12j2:active{border-top-color:var(--seq-colors-avalance-light)}.fyvr12j3:disabled,.fyvr12j3[data-disabled]{border-top-color:var(--seq-colors-avalance-light)}.fyvr12j4:focus{border-top-color:var(--seq-colors-avalance-light)}.fyvr12j5:hover:not([disabled]){border-top-color:var(--seq-colors-avalance-light)}.fyvr12j6[data-state=checked]{border-top-color:var(--seq-colors-avalance-light)}.fyvr12j7,.fyvr12j8:active{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12j9:disabled,.fyvr12j9[data-disabled]{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12ja:focus{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12jb:hover:not([disabled]){border-top-color:var(--seq-colors-bsc-dark)}.fyvr12jc[data-state=checked]{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12jd,.fyvr12je:active{border-top-color:var(--seq-colors-bsc-light)}.fyvr12jf:disabled,.fyvr12jf[data-disabled]{border-top-color:var(--seq-colors-bsc-light)}.fyvr12jg:focus{border-top-color:var(--seq-colors-bsc-light)}.fyvr12jh:hover:not([disabled]){border-top-color:var(--seq-colors-bsc-light)}.fyvr12ji[data-state=checked]{border-top-color:var(--seq-colors-bsc-light)}.fyvr12jj,.fyvr12jk:active{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jl:disabled,.fyvr12jl[data-disabled]{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jm:focus{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jn:hover:not([disabled]){border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jo[data-state=checked]{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jp,.fyvr12jq:active{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12jr:disabled,.fyvr12jr[data-disabled]{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12js:focus{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12jt:hover:not([disabled]){border-top-color:var(--seq-colors-ethereum-light)}.fyvr12ju[data-state=checked]{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12jv,.fyvr12jw:active{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12jx:disabled,.fyvr12jx[data-disabled]{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12jy:focus{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12jz:hover:not([disabled]){border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12k0[data-state=checked]{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12k1,.fyvr12k2:active{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k3:disabled,.fyvr12k3[data-disabled]{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k4:focus{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k5:hover:not([disabled]){border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k6[data-state=checked]{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k7,.fyvr12k8:active{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12k9:disabled,.fyvr12k9[data-disabled]{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12ka:focus{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12kb:hover:not([disabled]){border-top-color:var(--seq-colors-polygon-dark)}.fyvr12kc[data-state=checked]{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12kd,.fyvr12ke:active{border-top-color:var(--seq-colors-polygon-light)}.fyvr12kf:disabled,.fyvr12kf[data-disabled]{border-top-color:var(--seq-colors-polygon-light)}.fyvr12kg:focus{border-top-color:var(--seq-colors-polygon-light)}.fyvr12kh:hover:not([disabled]){border-top-color:var(--seq-colors-polygon-light)}.fyvr12ki[data-state=checked]{border-top-color:var(--seq-colors-polygon-light)}.fyvr12kj,.fyvr12kk:active{border-top-color:var(--seq-colors-text100)}.fyvr12kl:disabled,.fyvr12kl[data-disabled]{border-top-color:var(--seq-colors-text100)}.fyvr12km:focus{border-top-color:var(--seq-colors-text100)}.fyvr12kn:hover:not([disabled]){border-top-color:var(--seq-colors-text100)}.fyvr12ko[data-state=checked]{border-top-color:var(--seq-colors-text100)}.fyvr12kp,.fyvr12kq:active{border-top-color:var(--seq-colors-text80)}.fyvr12kr:disabled,.fyvr12kr[data-disabled]{border-top-color:var(--seq-colors-text80)}.fyvr12ks:focus{border-top-color:var(--seq-colors-text80)}.fyvr12kt:hover:not([disabled]){border-top-color:var(--seq-colors-text80)}.fyvr12ku[data-state=checked]{border-top-color:var(--seq-colors-text80)}.fyvr12kv,.fyvr12kw:active{border-top-color:var(--seq-colors-text50)}.fyvr12kx:disabled,.fyvr12kx[data-disabled]{border-top-color:var(--seq-colors-text50)}.fyvr12ky:focus{border-top-color:var(--seq-colors-text50)}.fyvr12kz:hover:not([disabled]){border-top-color:var(--seq-colors-text50)}.fyvr12l0[data-state=checked]{border-top-color:var(--seq-colors-text50)}.fyvr12l1,.fyvr12l2:active{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l3:disabled,.fyvr12l3[data-disabled]{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l4:focus{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l5:hover:not([disabled]){border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l6[data-state=checked]{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l7,.fyvr12l8:active{border-top-color:var(--seq-colors-background-primary)}.fyvr12l9:disabled,.fyvr12l9[data-disabled]{border-top-color:var(--seq-colors-background-primary)}.fyvr12la:focus{border-top-color:var(--seq-colors-background-primary)}.fyvr12lb:hover:not([disabled]){border-top-color:var(--seq-colors-background-primary)}.fyvr12lc[data-state=checked]{border-top-color:var(--seq-colors-background-primary)}.fyvr12ld,.fyvr12le:active{border-top-color:var(--seq-colors-background-secondary)}.fyvr12lf:disabled,.fyvr12lf[data-disabled]{border-top-color:var(--seq-colors-background-secondary)}.fyvr12lg:focus{border-top-color:var(--seq-colors-background-secondary)}.fyvr12lh:hover:not([disabled]){border-top-color:var(--seq-colors-background-secondary)}.fyvr12li[data-state=checked]{border-top-color:var(--seq-colors-background-secondary)}.fyvr12lj,.fyvr12lk:active{border-top-color:var(--seq-colors-background-contrast)}.fyvr12ll:disabled,.fyvr12ll[data-disabled]{border-top-color:var(--seq-colors-background-contrast)}.fyvr12lm:focus{border-top-color:var(--seq-colors-background-contrast)}.fyvr12ln:hover:not([disabled]){border-top-color:var(--seq-colors-background-contrast)}.fyvr12lo[data-state=checked]{border-top-color:var(--seq-colors-background-contrast)}.fyvr12lp,.fyvr12lq:active{border-top-color:var(--seq-colors-background-muted)}.fyvr12lr:disabled,.fyvr12lr[data-disabled]{border-top-color:var(--seq-colors-background-muted)}.fyvr12ls:focus{border-top-color:var(--seq-colors-background-muted)}.fyvr12lt:hover:not([disabled]){border-top-color:var(--seq-colors-background-muted)}.fyvr12lu[data-state=checked]{border-top-color:var(--seq-colors-background-muted)}.fyvr12lv,.fyvr12lw:active{border-top-color:var(--seq-colors-background-control)}.fyvr12lx:disabled,.fyvr12lx[data-disabled]{border-top-color:var(--seq-colors-background-control)}.fyvr12ly:focus{border-top-color:var(--seq-colors-background-control)}.fyvr12lz:hover:not([disabled]){border-top-color:var(--seq-colors-background-control)}.fyvr12m0[data-state=checked]{border-top-color:var(--seq-colors-background-control)}.fyvr12m1,.fyvr12m2:active{border-top-color:var(--seq-colors-background-inverse)}.fyvr12m3:disabled,.fyvr12m3[data-disabled]{border-top-color:var(--seq-colors-background-inverse)}.fyvr12m4:focus{border-top-color:var(--seq-colors-background-inverse)}.fyvr12m5:hover:not([disabled]){border-top-color:var(--seq-colors-background-inverse)}.fyvr12m6[data-state=checked]{border-top-color:var(--seq-colors-background-inverse)}.fyvr12m7,.fyvr12m8:active{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12m9:disabled,.fyvr12m9[data-disabled]{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12ma:focus{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12mb:hover:not([disabled]){border-top-color:var(--seq-colors-background-backdrop)}.fyvr12mc[data-state=checked]{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12md,.fyvr12me:active{border-top-color:var(--seq-colors-background-overlay)}.fyvr12mf:disabled,.fyvr12mf[data-disabled]{border-top-color:var(--seq-colors-background-overlay)}.fyvr12mg:focus{border-top-color:var(--seq-colors-background-overlay)}.fyvr12mh:hover:not([disabled]){border-top-color:var(--seq-colors-background-overlay)}.fyvr12mi[data-state=checked]{border-top-color:var(--seq-colors-background-overlay)}.fyvr12mj,.fyvr12mk:active{border-top-color:var(--seq-colors-background-raised)}.fyvr12ml:disabled,.fyvr12ml[data-disabled]{border-top-color:var(--seq-colors-background-raised)}.fyvr12mm:focus{border-top-color:var(--seq-colors-background-raised)}.fyvr12mn:hover:not([disabled]){border-top-color:var(--seq-colors-background-raised)}.fyvr12mo[data-state=checked]{border-top-color:var(--seq-colors-background-raised)}.fyvr12mp,.fyvr12mq:active{border-top-color:var(--seq-colors-button-glass)}.fyvr12mr:disabled,.fyvr12mr[data-disabled]{border-top-color:var(--seq-colors-button-glass)}.fyvr12ms:focus{border-top-color:var(--seq-colors-button-glass)}.fyvr12mt:hover:not([disabled]){border-top-color:var(--seq-colors-button-glass)}.fyvr12mu[data-state=checked]{border-top-color:var(--seq-colors-button-glass)}.fyvr12mv,.fyvr12mw:active{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12mx:disabled,.fyvr12mx[data-disabled]{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12my:focus{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12mz:hover:not([disabled]){border-top-color:var(--seq-colors-button-emphasis)}.fyvr12n0[data-state=checked]{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12n1,.fyvr12n2:active{border-top-color:var(--seq-colors-button-inverse)}.fyvr12n3:disabled,.fyvr12n3[data-disabled]{border-top-color:var(--seq-colors-button-inverse)}.fyvr12n4:focus{border-top-color:var(--seq-colors-button-inverse)}.fyvr12n5:hover:not([disabled]){border-top-color:var(--seq-colors-button-inverse)}.fyvr12n6[data-state=checked]{border-top-color:var(--seq-colors-button-inverse)}.fyvr12n7,.fyvr12n8:active{border-top-color:var(--seq-colors-border-normal)}.fyvr12n9:disabled,.fyvr12n9[data-disabled]{border-top-color:var(--seq-colors-border-normal)}.fyvr12na:focus{border-top-color:var(--seq-colors-border-normal)}.fyvr12nb:hover:not([disabled]){border-top-color:var(--seq-colors-border-normal)}.fyvr12nc[data-state=checked]{border-top-color:var(--seq-colors-border-normal)}.fyvr12nd,.fyvr12ne:active{border-top-color:var(--seq-colors-border-focus)}.fyvr12nf:disabled,.fyvr12nf[data-disabled]{border-top-color:var(--seq-colors-border-focus)}.fyvr12ng:focus{border-top-color:var(--seq-colors-border-focus)}.fyvr12nh:hover:not([disabled]){border-top-color:var(--seq-colors-border-focus)}.fyvr12ni[data-state=checked]{border-top-color:var(--seq-colors-border-focus)}.fyvr12nj,.fyvr12nk:active{border-top-style:solid}.fyvr12nl:disabled,.fyvr12nl[data-disabled]{border-top-style:solid}.fyvr12nm:focus{border-top-style:solid}.fyvr12nn:hover:not([disabled]){border-top-style:solid}.fyvr12no[data-state=checked]{border-top-style:solid}.fyvr12np,.fyvr12nq:active{border-top-style:dashed}.fyvr12nr:disabled,.fyvr12nr[data-disabled]{border-top-style:dashed}.fyvr12ns:focus{border-top-style:dashed}.fyvr12nt:hover:not([disabled]){border-top-style:dashed}.fyvr12nu[data-state=checked]{border-top-style:dashed}.fyvr12nv,.fyvr12nw:active{border-top-style:dotted}.fyvr12nx:disabled,.fyvr12nx[data-disabled]{border-top-style:dotted}.fyvr12ny:focus{border-top-style:dotted}.fyvr12nz:hover:not([disabled]){border-top-style:dotted}.fyvr12o0[data-state=checked]{border-top-style:dotted}.fyvr12o1,.fyvr12o2:active{border:none}.fyvr12o3:disabled,.fyvr12o3[data-disabled]{border:none}.fyvr12o4:focus{border:none}.fyvr12o5:hover:not([disabled]){border:none}.fyvr12o6[data-state=checked]{border:none}.fyvr12o7,.fyvr12o8:active{color:var(--seq-colors-black)}.fyvr12o9:disabled,.fyvr12o9[data-disabled]{color:var(--seq-colors-black)}.fyvr12oa:focus{color:var(--seq-colors-black)}.fyvr12ob:hover:not([disabled]){color:var(--seq-colors-black)}.fyvr12oc[data-state=checked]{color:var(--seq-colors-black)}.fyvr12od,.fyvr12oe:active{color:var(--seq-colors-white)}.fyvr12of:disabled,.fyvr12of[data-disabled]{color:var(--seq-colors-white)}.fyvr12og:focus{color:var(--seq-colors-white)}.fyvr12oh:hover:not([disabled]){color:var(--seq-colors-white)}.fyvr12oi[data-state=checked]{color:var(--seq-colors-white)}.fyvr12oj,.fyvr12ok:active{color:var(--seq-colors-inherit)}.fyvr12ol:disabled,.fyvr12ol[data-disabled]{color:var(--seq-colors-inherit)}.fyvr12om:focus{color:var(--seq-colors-inherit)}.fyvr12on:hover:not([disabled]){color:var(--seq-colors-inherit)}.fyvr12oo[data-state=checked]{color:var(--seq-colors-inherit)}.fyvr12op,.fyvr12oq:active{color:var(--seq-colors-transparent)}.fyvr12or:disabled,.fyvr12or[data-disabled]{color:var(--seq-colors-transparent)}.fyvr12os:focus{color:var(--seq-colors-transparent)}.fyvr12ot:hover:not([disabled]){color:var(--seq-colors-transparent)}.fyvr12ou[data-state=checked]{color:var(--seq-colors-transparent)}.fyvr12ov,.fyvr12ow:active{color:var(--seq-colors-positive)}.fyvr12ox:disabled,.fyvr12ox[data-disabled]{color:var(--seq-colors-positive)}.fyvr12oy:focus{color:var(--seq-colors-positive)}.fyvr12oz:hover:not([disabled]){color:var(--seq-colors-positive)}.fyvr12p0[data-state=checked]{color:var(--seq-colors-positive)}.fyvr12p1,.fyvr12p2:active{color:var(--seq-colors-negative)}.fyvr12p3:disabled,.fyvr12p3[data-disabled]{color:var(--seq-colors-negative)}.fyvr12p4:focus{color:var(--seq-colors-negative)}.fyvr12p5:hover:not([disabled]){color:var(--seq-colors-negative)}.fyvr12p6[data-state=checked]{color:var(--seq-colors-negative)}.fyvr12p7,.fyvr12p8:active{color:var(--seq-colors-info)}.fyvr12p9:disabled,.fyvr12p9[data-disabled]{color:var(--seq-colors-info)}.fyvr12pa:focus{color:var(--seq-colors-info)}.fyvr12pb:hover:not([disabled]){color:var(--seq-colors-info)}.fyvr12pc[data-state=checked]{color:var(--seq-colors-info)}.fyvr12pd,.fyvr12pe:active{color:var(--seq-colors-warning)}.fyvr12pf:disabled,.fyvr12pf[data-disabled]{color:var(--seq-colors-warning)}.fyvr12pg:focus{color:var(--seq-colors-warning)}.fyvr12ph:hover:not([disabled]){color:var(--seq-colors-warning)}.fyvr12pi[data-state=checked]{color:var(--seq-colors-warning)}.fyvr12pj,.fyvr12pk:active{color:var(--seq-colors-gradient-backdrop)}.fyvr12pl:disabled,.fyvr12pl[data-disabled]{color:var(--seq-colors-gradient-backdrop)}.fyvr12pm:focus{color:var(--seq-colors-gradient-backdrop)}.fyvr12pn:hover:not([disabled]){color:var(--seq-colors-gradient-backdrop)}.fyvr12po[data-state=checked]{color:var(--seq-colors-gradient-backdrop)}.fyvr12pp,.fyvr12pq:active{color:var(--seq-colors-gradient-primary)}.fyvr12pr:disabled,.fyvr12pr[data-disabled]{color:var(--seq-colors-gradient-primary)}.fyvr12ps:focus{color:var(--seq-colors-gradient-primary)}.fyvr12pt:hover:not([disabled]){color:var(--seq-colors-gradient-primary)}.fyvr12pu[data-state=checked]{color:var(--seq-colors-gradient-primary)}.fyvr12pv,.fyvr12pw:active{color:var(--seq-colors-gradient-secondary)}.fyvr12px:disabled,.fyvr12px[data-disabled]{color:var(--seq-colors-gradient-secondary)}.fyvr12py:focus{color:var(--seq-colors-gradient-secondary)}.fyvr12pz:hover:not([disabled]){color:var(--seq-colors-gradient-secondary)}.fyvr12q0[data-state=checked]{color:var(--seq-colors-gradient-secondary)}.fyvr12q1,.fyvr12q2:active{color:var(--seq-colors-arbitrum-dark)}.fyvr12q3:disabled,.fyvr12q3[data-disabled]{color:var(--seq-colors-arbitrum-dark)}.fyvr12q4:focus{color:var(--seq-colors-arbitrum-dark)}.fyvr12q5:hover:not([disabled]){color:var(--seq-colors-arbitrum-dark)}.fyvr12q6[data-state=checked]{color:var(--seq-colors-arbitrum-dark)}.fyvr12q7,.fyvr12q8:active{color:var(--seq-colors-arbitrum-light)}.fyvr12q9:disabled,.fyvr12q9[data-disabled]{color:var(--seq-colors-arbitrum-light)}.fyvr12qa:focus{color:var(--seq-colors-arbitrum-light)}.fyvr12qb:hover:not([disabled]){color:var(--seq-colors-arbitrum-light)}.fyvr12qc[data-state=checked]{color:var(--seq-colors-arbitrum-light)}.fyvr12qd,.fyvr12qe:active{color:var(--seq-colors-avalance-dark)}.fyvr12qf:disabled,.fyvr12qf[data-disabled]{color:var(--seq-colors-avalance-dark)}.fyvr12qg:focus{color:var(--seq-colors-avalance-dark)}.fyvr12qh:hover:not([disabled]){color:var(--seq-colors-avalance-dark)}.fyvr12qi[data-state=checked]{color:var(--seq-colors-avalance-dark)}.fyvr12qj,.fyvr12qk:active{color:var(--seq-colors-avalance-light)}.fyvr12ql:disabled,.fyvr12ql[data-disabled]{color:var(--seq-colors-avalance-light)}.fyvr12qm:focus{color:var(--seq-colors-avalance-light)}.fyvr12qn:hover:not([disabled]){color:var(--seq-colors-avalance-light)}.fyvr12qo[data-state=checked]{color:var(--seq-colors-avalance-light)}.fyvr12qp,.fyvr12qq:active{color:var(--seq-colors-bsc-dark)}.fyvr12qr:disabled,.fyvr12qr[data-disabled]{color:var(--seq-colors-bsc-dark)}.fyvr12qs:focus{color:var(--seq-colors-bsc-dark)}.fyvr12qt:hover:not([disabled]){color:var(--seq-colors-bsc-dark)}.fyvr12qu[data-state=checked]{color:var(--seq-colors-bsc-dark)}.fyvr12qv,.fyvr12qw:active{color:var(--seq-colors-bsc-light)}.fyvr12qx:disabled,.fyvr12qx[data-disabled]{color:var(--seq-colors-bsc-light)}.fyvr12qy:focus{color:var(--seq-colors-bsc-light)}.fyvr12qz:hover:not([disabled]){color:var(--seq-colors-bsc-light)}.fyvr12r0[data-state=checked]{color:var(--seq-colors-bsc-light)}.fyvr12r1,.fyvr12r2:active{color:var(--seq-colors-ethereum-dark)}.fyvr12r3:disabled,.fyvr12r3[data-disabled]{color:var(--seq-colors-ethereum-dark)}.fyvr12r4:focus{color:var(--seq-colors-ethereum-dark)}.fyvr12r5:hover:not([disabled]){color:var(--seq-colors-ethereum-dark)}.fyvr12r6[data-state=checked]{color:var(--seq-colors-ethereum-dark)}.fyvr12r7,.fyvr12r8:active{color:var(--seq-colors-ethereum-light)}.fyvr12r9:disabled,.fyvr12r9[data-disabled]{color:var(--seq-colors-ethereum-light)}.fyvr12ra:focus{color:var(--seq-colors-ethereum-light)}.fyvr12rb:hover:not([disabled]){color:var(--seq-colors-ethereum-light)}.fyvr12rc[data-state=checked]{color:var(--seq-colors-ethereum-light)}.fyvr12rd,.fyvr12re:active{color:var(--seq-colors-gnosis-dark)}.fyvr12rf:disabled,.fyvr12rf[data-disabled]{color:var(--seq-colors-gnosis-dark)}.fyvr12rg:focus{color:var(--seq-colors-gnosis-dark)}.fyvr12rh:hover:not([disabled]){color:var(--seq-colors-gnosis-dark)}.fyvr12ri[data-state=checked]{color:var(--seq-colors-gnosis-dark)}.fyvr12rj,.fyvr12rk:active{color:var(--seq-colors-gnosis-light)}.fyvr12rl:disabled,.fyvr12rl[data-disabled]{color:var(--seq-colors-gnosis-light)}.fyvr12rm:focus{color:var(--seq-colors-gnosis-light)}.fyvr12rn:hover:not([disabled]){color:var(--seq-colors-gnosis-light)}.fyvr12ro[data-state=checked]{color:var(--seq-colors-gnosis-light)}.fyvr12rp,.fyvr12rq:active{color:var(--seq-colors-polygon-dark)}.fyvr12rr:disabled,.fyvr12rr[data-disabled]{color:var(--seq-colors-polygon-dark)}.fyvr12rs:focus{color:var(--seq-colors-polygon-dark)}.fyvr12rt:hover:not([disabled]){color:var(--seq-colors-polygon-dark)}.fyvr12ru[data-state=checked]{color:var(--seq-colors-polygon-dark)}.fyvr12rv,.fyvr12rw:active{color:var(--seq-colors-polygon-light)}.fyvr12rx:disabled,.fyvr12rx[data-disabled]{color:var(--seq-colors-polygon-light)}.fyvr12ry:focus{color:var(--seq-colors-polygon-light)}.fyvr12rz:hover:not([disabled]){color:var(--seq-colors-polygon-light)}.fyvr12s0[data-state=checked]{color:var(--seq-colors-polygon-light)}.fyvr12s1,.fyvr12s2:active{color:var(--seq-colors-text100)}.fyvr12s3:disabled,.fyvr12s3[data-disabled]{color:var(--seq-colors-text100)}.fyvr12s4:focus{color:var(--seq-colors-text100)}.fyvr12s5:hover:not([disabled]){color:var(--seq-colors-text100)}.fyvr12s6[data-state=checked]{color:var(--seq-colors-text100)}.fyvr12s7,.fyvr12s8:active{color:var(--seq-colors-text80)}.fyvr12s9:disabled,.fyvr12s9[data-disabled]{color:var(--seq-colors-text80)}.fyvr12sa:focus{color:var(--seq-colors-text80)}.fyvr12sb:hover:not([disabled]){color:var(--seq-colors-text80)}.fyvr12sc[data-state=checked]{color:var(--seq-colors-text80)}.fyvr12sd,.fyvr12se:active{color:var(--seq-colors-text50)}.fyvr12sf:disabled,.fyvr12sf[data-disabled]{color:var(--seq-colors-text50)}.fyvr12sg:focus{color:var(--seq-colors-text50)}.fyvr12sh:hover:not([disabled]){color:var(--seq-colors-text50)}.fyvr12si[data-state=checked]{color:var(--seq-colors-text50)}.fyvr12sj,.fyvr12sk:active{color:var(--seq-colors-text-inverse100)}.fyvr12sl:disabled,.fyvr12sl[data-disabled]{color:var(--seq-colors-text-inverse100)}.fyvr12sm:focus{color:var(--seq-colors-text-inverse100)}.fyvr12sn:hover:not([disabled]){color:var(--seq-colors-text-inverse100)}.fyvr12so[data-state=checked]{color:var(--seq-colors-text-inverse100)}.fyvr12sp,.fyvr12sq:active{color:var(--seq-colors-background-primary)}.fyvr12sr:disabled,.fyvr12sr[data-disabled]{color:var(--seq-colors-background-primary)}.fyvr12ss:focus{color:var(--seq-colors-background-primary)}.fyvr12st:hover:not([disabled]){color:var(--seq-colors-background-primary)}.fyvr12su[data-state=checked]{color:var(--seq-colors-background-primary)}.fyvr12sv,.fyvr12sw:active{color:var(--seq-colors-background-secondary)}.fyvr12sx:disabled,.fyvr12sx[data-disabled]{color:var(--seq-colors-background-secondary)}.fyvr12sy:focus{color:var(--seq-colors-background-secondary)}.fyvr12sz:hover:not([disabled]){color:var(--seq-colors-background-secondary)}.fyvr12t0[data-state=checked]{color:var(--seq-colors-background-secondary)}.fyvr12t1,.fyvr12t2:active{color:var(--seq-colors-background-contrast)}.fyvr12t3:disabled,.fyvr12t3[data-disabled]{color:var(--seq-colors-background-contrast)}.fyvr12t4:focus{color:var(--seq-colors-background-contrast)}.fyvr12t5:hover:not([disabled]){color:var(--seq-colors-background-contrast)}.fyvr12t6[data-state=checked]{color:var(--seq-colors-background-contrast)}.fyvr12t7,.fyvr12t8:active{color:var(--seq-colors-background-muted)}.fyvr12t9:disabled,.fyvr12t9[data-disabled]{color:var(--seq-colors-background-muted)}.fyvr12ta:focus{color:var(--seq-colors-background-muted)}.fyvr12tb:hover:not([disabled]){color:var(--seq-colors-background-muted)}.fyvr12tc[data-state=checked]{color:var(--seq-colors-background-muted)}.fyvr12td,.fyvr12te:active{color:var(--seq-colors-background-control)}.fyvr12tf:disabled,.fyvr12tf[data-disabled]{color:var(--seq-colors-background-control)}.fyvr12tg:focus{color:var(--seq-colors-background-control)}.fyvr12th:hover:not([disabled]){color:var(--seq-colors-background-control)}.fyvr12ti[data-state=checked]{color:var(--seq-colors-background-control)}.fyvr12tj,.fyvr12tk:active{color:var(--seq-colors-background-inverse)}.fyvr12tl:disabled,.fyvr12tl[data-disabled]{color:var(--seq-colors-background-inverse)}.fyvr12tm:focus{color:var(--seq-colors-background-inverse)}.fyvr12tn:hover:not([disabled]){color:var(--seq-colors-background-inverse)}.fyvr12to[data-state=checked]{color:var(--seq-colors-background-inverse)}.fyvr12tp,.fyvr12tq:active{color:var(--seq-colors-background-backdrop)}.fyvr12tr:disabled,.fyvr12tr[data-disabled]{color:var(--seq-colors-background-backdrop)}.fyvr12ts:focus{color:var(--seq-colors-background-backdrop)}.fyvr12tt:hover:not([disabled]){color:var(--seq-colors-background-backdrop)}.fyvr12tu[data-state=checked]{color:var(--seq-colors-background-backdrop)}.fyvr12tv,.fyvr12tw:active{color:var(--seq-colors-background-overlay)}.fyvr12tx:disabled,.fyvr12tx[data-disabled]{color:var(--seq-colors-background-overlay)}.fyvr12ty:focus{color:var(--seq-colors-background-overlay)}.fyvr12tz:hover:not([disabled]){color:var(--seq-colors-background-overlay)}.fyvr12u0[data-state=checked]{color:var(--seq-colors-background-overlay)}.fyvr12u1,.fyvr12u2:active{color:var(--seq-colors-background-raised)}.fyvr12u3:disabled,.fyvr12u3[data-disabled]{color:var(--seq-colors-background-raised)}.fyvr12u4:focus{color:var(--seq-colors-background-raised)}.fyvr12u5:hover:not([disabled]){color:var(--seq-colors-background-raised)}.fyvr12u6[data-state=checked]{color:var(--seq-colors-background-raised)}.fyvr12u7,.fyvr12u8:active{color:var(--seq-colors-button-glass)}.fyvr12u9:disabled,.fyvr12u9[data-disabled]{color:var(--seq-colors-button-glass)}.fyvr12ua:focus{color:var(--seq-colors-button-glass)}.fyvr12ub:hover:not([disabled]){color:var(--seq-colors-button-glass)}.fyvr12uc[data-state=checked]{color:var(--seq-colors-button-glass)}.fyvr12ud,.fyvr12ue:active{color:var(--seq-colors-button-emphasis)}.fyvr12uf:disabled,.fyvr12uf[data-disabled]{color:var(--seq-colors-button-emphasis)}.fyvr12ug:focus{color:var(--seq-colors-button-emphasis)}.fyvr12uh:hover:not([disabled]){color:var(--seq-colors-button-emphasis)}.fyvr12ui[data-state=checked]{color:var(--seq-colors-button-emphasis)}.fyvr12uj,.fyvr12uk:active{color:var(--seq-colors-button-inverse)}.fyvr12ul:disabled,.fyvr12ul[data-disabled]{color:var(--seq-colors-button-inverse)}.fyvr12um:focus{color:var(--seq-colors-button-inverse)}.fyvr12un:hover:not([disabled]){color:var(--seq-colors-button-inverse)}.fyvr12uo[data-state=checked]{color:var(--seq-colors-button-inverse)}.fyvr12up,.fyvr12uq:active{color:var(--seq-colors-border-normal)}.fyvr12ur:disabled,.fyvr12ur[data-disabled]{color:var(--seq-colors-border-normal)}.fyvr12us:focus{color:var(--seq-colors-border-normal)}.fyvr12ut:hover:not([disabled]){color:var(--seq-colors-border-normal)}.fyvr12uu[data-state=checked]{color:var(--seq-colors-border-normal)}.fyvr12uv,.fyvr12uw:active{color:var(--seq-colors-border-focus)}.fyvr12ux:disabled,.fyvr12ux[data-disabled]{color:var(--seq-colors-border-focus)}.fyvr12uy:focus{color:var(--seq-colors-border-focus)}.fyvr12uz:hover:not([disabled]){color:var(--seq-colors-border-focus)}.fyvr12v0[data-state=checked]{color:var(--seq-colors-border-focus)}.fyvr12v1,.fyvr12v2:active{cursor:default}.fyvr12v3:disabled,.fyvr12v3[data-disabled]{cursor:default}.fyvr12v4:focus{cursor:default}.fyvr12v5:hover:not([disabled]){cursor:default}.fyvr12v6[data-state=checked]{cursor:default}.fyvr12v7,.fyvr12v8:active{cursor:pointer}.fyvr12v9:disabled,.fyvr12v9[data-disabled]{cursor:pointer}.fyvr12va:focus{cursor:pointer}.fyvr12vb:hover:not([disabled]){cursor:pointer}.fyvr12vc[data-state=checked]{cursor:pointer}.fyvr12vd,.fyvr12ve:active{cursor:text}.fyvr12vf:disabled,.fyvr12vf[data-disabled]{cursor:text}.fyvr12vg:focus{cursor:text}.fyvr12vh:hover:not([disabled]){cursor:text}.fyvr12vi[data-state=checked]{cursor:text}.fyvr12vj,.fyvr12vk:active{opacity:var(--seq-opacity-0)}.fyvr12vl:disabled,.fyvr12vl[data-disabled]{opacity:var(--seq-opacity-0)}.fyvr12vm:focus{opacity:var(--seq-opacity-0)}.fyvr12vn:hover:not([disabled]){opacity:var(--seq-opacity-0)}.fyvr12vo[data-state=checked]{opacity:var(--seq-opacity-0)}.fyvr12vp,.fyvr12vq:active{opacity:var(--seq-opacity-50)}.fyvr12vr:disabled,.fyvr12vr[data-disabled]{opacity:var(--seq-opacity-50)}.fyvr12vs:focus{opacity:var(--seq-opacity-50)}.fyvr12vt:hover:not([disabled]){opacity:var(--seq-opacity-50)}.fyvr12vu[data-state=checked]{opacity:var(--seq-opacity-50)}.fyvr12vv,.fyvr12vw:active{opacity:var(--seq-opacity-80)}.fyvr12vx:disabled,.fyvr12vx[data-disabled]{opacity:var(--seq-opacity-80)}.fyvr12vy:focus{opacity:var(--seq-opacity-80)}.fyvr12vz:hover:not([disabled]){opacity:var(--seq-opacity-80)}.fyvr12w0[data-state=checked]{opacity:var(--seq-opacity-80)}.fyvr12w1,.fyvr12w2:active{opacity:var(--seq-opacity-100)}.fyvr12w3:disabled,.fyvr12w3[data-disabled]{opacity:var(--seq-opacity-100)}.fyvr12w4:focus{opacity:var(--seq-opacity-100)}.fyvr12w5:hover:not([disabled]){opacity:var(--seq-opacity-100)}.fyvr12w6[data-state=checked]{opacity:var(--seq-opacity-100)}.fyvr12w7,.fyvr12w8:active{pointer-events:none}.fyvr12w9:disabled,.fyvr12w9[data-disabled]{pointer-events:none}.fyvr12wa:focus{pointer-events:none}.fyvr12wb:hover:not([disabled]){pointer-events:none}.fyvr12wc[data-state=checked]{pointer-events:none}.fyvr12wd,.fyvr12we:active{pointer-events:auto}.fyvr12wf:disabled,.fyvr12wf[data-disabled]{pointer-events:auto}.fyvr12wg:focus{pointer-events:auto}.fyvr12wh:hover:not([disabled]){pointer-events:auto}.fyvr12wi[data-state=checked]{pointer-events:auto}.fyvr12wj,.fyvr12wk:active{outline:none}.fyvr12wl:disabled,.fyvr12wl[data-disabled]{outline:none}.fyvr12wm:focus{outline:none}.fyvr12wn:hover:not([disabled]){outline:none}.fyvr12wo[data-state=checked]{outline:none}.fyvr12wp,.fyvr12wq:active{box-shadow:none}.fyvr12wr:disabled,.fyvr12wr[data-disabled]{box-shadow:none}.fyvr12ws:focus{box-shadow:none}.fyvr12wt:hover:not([disabled]){box-shadow:none}.fyvr12wu[data-state=checked]{box-shadow:none}@media (min-width: 480px){.fyvr11{width:var(--seq-space-0)}.fyvr15{width:var(--seq-space-1)}.fyvr19{width:var(--seq-space-2)}.fyvr1d{width:var(--seq-space-3)}.fyvr1h{width:var(--seq-space-4)}.fyvr1l{width:var(--seq-space-5)}.fyvr1p{width:var(--seq-space-6)}.fyvr1t{width:var(--seq-space-7)}.fyvr1x{width:var(--seq-space-8)}.fyvr111{width:var(--seq-space-9)}.fyvr115{width:var(--seq-space-10)}.fyvr119{width:var(--seq-space-12)}.fyvr11d{width:var(--seq-space-14)}.fyvr11h{width:var(--seq-space-16)}.fyvr11l{width:var(--seq-space-0_25)}.fyvr11p{width:var(--seq-space-0_5)}.fyvr11t{width:var(--seq-space-1_5)}.fyvr11x{width:0}.fyvr121{width:1px}.fyvr125{width:auto}.fyvr129{width:100%}.fyvr12d{width:50%}.fyvr12h{width:33.33333%}.fyvr12l{width:66.66667%}.fyvr12p{width:25%}.fyvr12t{width:75%}.fyvr12x{width:-moz-fit-content;width:fit-content}.fyvr131{width:-moz-max-content;width:max-content}.fyvr135{width:-moz-min-content;width:min-content}.fyvr139{width:100vw}.fyvr13d{width:100vh}.fyvr13h{height:var(--seq-space-0)}.fyvr13l{height:var(--seq-space-1)}.fyvr13p{height:var(--seq-space-2)}.fyvr13t{height:var(--seq-space-3)}.fyvr13x{height:var(--seq-space-4)}.fyvr141{height:var(--seq-space-5)}.fyvr145{height:var(--seq-space-6)}.fyvr149{height:var(--seq-space-7)}.fyvr14d{height:var(--seq-space-8)}.fyvr14h{height:var(--seq-space-9)}.fyvr14l{height:var(--seq-space-10)}.fyvr14p{height:var(--seq-space-12)}.fyvr14t{height:var(--seq-space-14)}.fyvr14x{height:var(--seq-space-16)}.fyvr151{height:var(--seq-space-0_25)}.fyvr155{height:var(--seq-space-0_5)}.fyvr159{height:var(--seq-space-1_5)}.fyvr15d{height:0}.fyvr15h{height:1px}.fyvr15l{height:auto}.fyvr15p{height:100%}.fyvr15t{height:50%}.fyvr15x{height:33.33333%}.fyvr161{height:66.66667%}.fyvr165{height:25%}.fyvr169{height:75%}.fyvr16d{height:-moz-fit-content;height:fit-content}.fyvr16h{height:-moz-max-content;height:max-content}.fyvr16l{height:-moz-min-content;height:min-content}.fyvr16p{height:100vw}.fyvr16t{height:100vh}.fyvr16x{max-width:var(--seq-space-0)}.fyvr171{max-width:var(--seq-space-1)}.fyvr175{max-width:var(--seq-space-2)}.fyvr179{max-width:var(--seq-space-3)}.fyvr17d{max-width:var(--seq-space-4)}.fyvr17h{max-width:var(--seq-space-5)}.fyvr17l{max-width:var(--seq-space-6)}.fyvr17p{max-width:var(--seq-space-7)}.fyvr17t{max-width:var(--seq-space-8)}.fyvr17x{max-width:var(--seq-space-9)}.fyvr181{max-width:var(--seq-space-10)}.fyvr185{max-width:var(--seq-space-12)}.fyvr189{max-width:var(--seq-space-14)}.fyvr18d{max-width:var(--seq-space-16)}.fyvr18h{max-width:var(--seq-space-0_25)}.fyvr18l{max-width:var(--seq-space-0_5)}.fyvr18p{max-width:var(--seq-space-1_5)}.fyvr18t{max-width:0}.fyvr18x{max-width:1px}.fyvr191{max-width:auto}.fyvr195{max-width:100%}.fyvr199{max-width:50%}.fyvr19d{max-width:33.33333%}.fyvr19h{max-width:66.66667%}.fyvr19l{max-width:25%}.fyvr19p{max-width:75%}.fyvr19t{max-width:-moz-fit-content;max-width:fit-content}.fyvr19x{max-width:-moz-max-content;max-width:max-content}.fyvr1a1{max-width:-moz-min-content;max-width:min-content}.fyvr1a5{max-width:100vw}.fyvr1a9{max-width:100vh}.fyvr1ad{max-height:var(--seq-space-0)}.fyvr1ah{max-height:var(--seq-space-1)}.fyvr1al{max-height:var(--seq-space-2)}.fyvr1ap{max-height:var(--seq-space-3)}.fyvr1at{max-height:var(--seq-space-4)}.fyvr1ax{max-height:var(--seq-space-5)}.fyvr1b1{max-height:var(--seq-space-6)}.fyvr1b5{max-height:var(--seq-space-7)}.fyvr1b9{max-height:var(--seq-space-8)}.fyvr1bd{max-height:var(--seq-space-9)}.fyvr1bh{max-height:var(--seq-space-10)}.fyvr1bl{max-height:var(--seq-space-12)}.fyvr1bp{max-height:var(--seq-space-14)}.fyvr1bt{max-height:var(--seq-space-16)}.fyvr1bx{max-height:var(--seq-space-0_25)}.fyvr1c1{max-height:var(--seq-space-0_5)}.fyvr1c5{max-height:var(--seq-space-1_5)}.fyvr1c9{max-height:0}.fyvr1cd{max-height:1px}.fyvr1ch{max-height:auto}.fyvr1cl{max-height:100%}.fyvr1cp{max-height:50%}.fyvr1ct{max-height:33.33333%}.fyvr1cx{max-height:66.66667%}.fyvr1d1{max-height:25%}.fyvr1d5{max-height:75%}.fyvr1d9{max-height:-moz-fit-content;max-height:fit-content}.fyvr1dd{max-height:-moz-max-content;max-height:max-content}.fyvr1dh{max-height:-moz-min-content;max-height:min-content}.fyvr1dl{max-height:100vw}.fyvr1dp{max-height:100vh}.fyvr1dt{min-width:var(--seq-space-0)}.fyvr1dx{min-width:var(--seq-space-1)}.fyvr1e1{min-width:var(--seq-space-2)}.fyvr1e5{min-width:var(--seq-space-3)}.fyvr1e9{min-width:var(--seq-space-4)}.fyvr1ed{min-width:var(--seq-space-5)}.fyvr1eh{min-width:var(--seq-space-6)}.fyvr1el{min-width:var(--seq-space-7)}.fyvr1ep{min-width:var(--seq-space-8)}.fyvr1et{min-width:var(--seq-space-9)}.fyvr1ex{min-width:var(--seq-space-10)}.fyvr1f1{min-width:var(--seq-space-12)}.fyvr1f5{min-width:var(--seq-space-14)}.fyvr1f9{min-width:var(--seq-space-16)}.fyvr1fd{min-width:var(--seq-space-0_25)}.fyvr1fh{min-width:var(--seq-space-0_5)}.fyvr1fl{min-width:var(--seq-space-1_5)}.fyvr1fp{min-width:0}.fyvr1ft{min-width:1px}.fyvr1fx{min-width:auto}.fyvr1g1{min-width:100%}.fyvr1g5{min-width:50%}.fyvr1g9{min-width:33.33333%}.fyvr1gd{min-width:66.66667%}.fyvr1gh{min-width:25%}.fyvr1gl{min-width:75%}.fyvr1gp{min-width:-moz-fit-content;min-width:fit-content}.fyvr1gt{min-width:-moz-max-content;min-width:max-content}.fyvr1gx{min-width:-moz-min-content;min-width:min-content}.fyvr1h1{min-width:100vw}.fyvr1h5{min-width:100vh}.fyvr1h9{min-height:var(--seq-space-0)}.fyvr1hd{min-height:var(--seq-space-1)}.fyvr1hh{min-height:var(--seq-space-2)}.fyvr1hl{min-height:var(--seq-space-3)}.fyvr1hp{min-height:var(--seq-space-4)}.fyvr1ht{min-height:var(--seq-space-5)}.fyvr1hx{min-height:var(--seq-space-6)}.fyvr1i1{min-height:var(--seq-space-7)}.fyvr1i5{min-height:var(--seq-space-8)}.fyvr1i9{min-height:var(--seq-space-9)}.fyvr1id{min-height:var(--seq-space-10)}.fyvr1ih{min-height:var(--seq-space-12)}.fyvr1il{min-height:var(--seq-space-14)}.fyvr1ip{min-height:var(--seq-space-16)}.fyvr1it{min-height:var(--seq-space-0_25)}.fyvr1ix{min-height:var(--seq-space-0_5)}.fyvr1j1{min-height:var(--seq-space-1_5)}.fyvr1j5{min-height:0}.fyvr1j9{min-height:1px}.fyvr1jd{min-height:auto}.fyvr1jh{min-height:100%}.fyvr1jl{min-height:50%}.fyvr1jp{min-height:33.33333%}.fyvr1jt{min-height:66.66667%}.fyvr1jx{min-height:25%}.fyvr1k1{min-height:75%}.fyvr1k5{min-height:-moz-fit-content;min-height:fit-content}.fyvr1k9{min-height:-moz-max-content;min-height:max-content}.fyvr1kd{min-height:-moz-min-content;min-height:min-content}.fyvr1kh{min-height:100vw}.fyvr1kl{min-height:100vh}.fyvr1kp{top:var(--seq-space-0)}.fyvr1kt{top:var(--seq-space-1)}.fyvr1kx{top:var(--seq-space-2)}.fyvr1l1{top:var(--seq-space-3)}.fyvr1l5{top:var(--seq-space-4)}.fyvr1l9{top:var(--seq-space-5)}.fyvr1ld{top:var(--seq-space-6)}.fyvr1lh{top:var(--seq-space-7)}.fyvr1ll{top:var(--seq-space-8)}.fyvr1lp{top:var(--seq-space-9)}.fyvr1lt{top:var(--seq-space-10)}.fyvr1lx{top:var(--seq-space-12)}.fyvr1m1{top:var(--seq-space-14)}.fyvr1m5{top:var(--seq-space-16)}.fyvr1m9{top:var(--seq-space-0_25)}.fyvr1md{top:var(--seq-space-0_5)}.fyvr1mh{top:var(--seq-space-1_5)}.fyvr1ml{top:auto}.fyvr1mp{bottom:var(--seq-space-0)}.fyvr1mt{bottom:var(--seq-space-1)}.fyvr1mx{bottom:var(--seq-space-2)}.fyvr1n1{bottom:var(--seq-space-3)}.fyvr1n5{bottom:var(--seq-space-4)}.fyvr1n9{bottom:var(--seq-space-5)}.fyvr1nd{bottom:var(--seq-space-6)}.fyvr1nh{bottom:var(--seq-space-7)}.fyvr1nl{bottom:var(--seq-space-8)}.fyvr1np{bottom:var(--seq-space-9)}.fyvr1nt{bottom:var(--seq-space-10)}.fyvr1nx{bottom:var(--seq-space-12)}.fyvr1o1{bottom:var(--seq-space-14)}.fyvr1o5{bottom:var(--seq-space-16)}.fyvr1o9{bottom:var(--seq-space-0_25)}.fyvr1od{bottom:var(--seq-space-0_5)}.fyvr1oh{bottom:var(--seq-space-1_5)}.fyvr1ol{bottom:auto}.fyvr1op{left:var(--seq-space-0)}.fyvr1ot{left:var(--seq-space-1)}.fyvr1ox{left:var(--seq-space-2)}.fyvr1p1{left:var(--seq-space-3)}.fyvr1p5{left:var(--seq-space-4)}.fyvr1p9{left:var(--seq-space-5)}.fyvr1pd{left:var(--seq-space-6)}.fyvr1ph{left:var(--seq-space-7)}.fyvr1pl{left:var(--seq-space-8)}.fyvr1pp{left:var(--seq-space-9)}.fyvr1pt{left:var(--seq-space-10)}.fyvr1px{left:var(--seq-space-12)}.fyvr1q1{left:var(--seq-space-14)}.fyvr1q5{left:var(--seq-space-16)}.fyvr1q9{left:var(--seq-space-0_25)}.fyvr1qd{left:var(--seq-space-0_5)}.fyvr1qh{left:var(--seq-space-1_5)}.fyvr1ql{left:auto}.fyvr1qp{right:var(--seq-space-0)}.fyvr1qt{right:var(--seq-space-1)}.fyvr1qx{right:var(--seq-space-2)}.fyvr1r1{right:var(--seq-space-3)}.fyvr1r5{right:var(--seq-space-4)}.fyvr1r9{right:var(--seq-space-5)}.fyvr1rd{right:var(--seq-space-6)}.fyvr1rh{right:var(--seq-space-7)}.fyvr1rl{right:var(--seq-space-8)}.fyvr1rp{right:var(--seq-space-9)}.fyvr1rt{right:var(--seq-space-10)}.fyvr1rx{right:var(--seq-space-12)}.fyvr1s1{right:var(--seq-space-14)}.fyvr1s5{right:var(--seq-space-16)}.fyvr1s9{right:var(--seq-space-0_25)}.fyvr1sd{right:var(--seq-space-0_5)}.fyvr1sh{right:var(--seq-space-1_5)}.fyvr1sl{right:auto}.fyvr1sp{padding-top:var(--seq-space-0)}.fyvr1st{padding-top:var(--seq-space-1)}.fyvr1sx{padding-top:var(--seq-space-2)}.fyvr1t1{padding-top:var(--seq-space-3)}.fyvr1t5{padding-top:var(--seq-space-4)}.fyvr1t9{padding-top:var(--seq-space-5)}.fyvr1td{padding-top:var(--seq-space-6)}.fyvr1th{padding-top:var(--seq-space-7)}.fyvr1tl{padding-top:var(--seq-space-8)}.fyvr1tp{padding-top:var(--seq-space-9)}.fyvr1tt{padding-top:var(--seq-space-10)}.fyvr1tx{padding-top:var(--seq-space-12)}.fyvr1u1{padding-top:var(--seq-space-14)}.fyvr1u5{padding-top:var(--seq-space-16)}.fyvr1u9{padding-top:var(--seq-space-0_25)}.fyvr1ud{padding-top:var(--seq-space-0_5)}.fyvr1uh{padding-top:var(--seq-space-1_5)}.fyvr1ul{padding-bottom:var(--seq-space-0)}.fyvr1up{padding-bottom:var(--seq-space-1)}.fyvr1ut{padding-bottom:var(--seq-space-2)}.fyvr1ux{padding-bottom:var(--seq-space-3)}.fyvr1v1{padding-bottom:var(--seq-space-4)}.fyvr1v5{padding-bottom:var(--seq-space-5)}.fyvr1v9{padding-bottom:var(--seq-space-6)}.fyvr1vd{padding-bottom:var(--seq-space-7)}.fyvr1vh{padding-bottom:var(--seq-space-8)}.fyvr1vl{padding-bottom:var(--seq-space-9)}.fyvr1vp{padding-bottom:var(--seq-space-10)}.fyvr1vt{padding-bottom:var(--seq-space-12)}.fyvr1vx{padding-bottom:var(--seq-space-14)}.fyvr1w1{padding-bottom:var(--seq-space-16)}.fyvr1w5{padding-bottom:var(--seq-space-0_25)}.fyvr1w9{padding-bottom:var(--seq-space-0_5)}.fyvr1wd{padding-bottom:var(--seq-space-1_5)}.fyvr1wh{padding-left:var(--seq-space-0)}.fyvr1wl{padding-left:var(--seq-space-1)}.fyvr1wp{padding-left:var(--seq-space-2)}.fyvr1wt{padding-left:var(--seq-space-3)}.fyvr1wx{padding-left:var(--seq-space-4)}.fyvr1x1{padding-left:var(--seq-space-5)}.fyvr1x5{padding-left:var(--seq-space-6)}.fyvr1x9{padding-left:var(--seq-space-7)}.fyvr1xd{padding-left:var(--seq-space-8)}.fyvr1xh{padding-left:var(--seq-space-9)}.fyvr1xl{padding-left:var(--seq-space-10)}.fyvr1xp{padding-left:var(--seq-space-12)}.fyvr1xt{padding-left:var(--seq-space-14)}.fyvr1xx{padding-left:var(--seq-space-16)}.fyvr1y1{padding-left:var(--seq-space-0_25)}.fyvr1y5{padding-left:var(--seq-space-0_5)}.fyvr1y9{padding-left:var(--seq-space-1_5)}.fyvr1yd{padding-right:var(--seq-space-0)}.fyvr1yh{padding-right:var(--seq-space-1)}.fyvr1yl{padding-right:var(--seq-space-2)}.fyvr1yp{padding-right:var(--seq-space-3)}.fyvr1yt{padding-right:var(--seq-space-4)}.fyvr1yx{padding-right:var(--seq-space-5)}.fyvr1z1{padding-right:var(--seq-space-6)}.fyvr1z5{padding-right:var(--seq-space-7)}.fyvr1z9{padding-right:var(--seq-space-8)}.fyvr1zd{padding-right:var(--seq-space-9)}.fyvr1zh{padding-right:var(--seq-space-10)}.fyvr1zl{padding-right:var(--seq-space-12)}.fyvr1zp{padding-right:var(--seq-space-14)}.fyvr1zt{padding-right:var(--seq-space-16)}.fyvr1zx{padding-right:var(--seq-space-0_25)}.fyvr1101{padding-right:var(--seq-space-0_5)}.fyvr1105{padding-right:var(--seq-space-1_5)}.fyvr1109{margin-top:var(--seq-space-0)}.fyvr110d{margin-top:var(--seq-space-1)}.fyvr110h{margin-top:var(--seq-space-2)}.fyvr110l{margin-top:var(--seq-space-3)}.fyvr110p{margin-top:var(--seq-space-4)}.fyvr110t{margin-top:var(--seq-space-5)}.fyvr110x{margin-top:var(--seq-space-6)}.fyvr1111{margin-top:var(--seq-space-7)}.fyvr1115{margin-top:var(--seq-space-8)}.fyvr1119{margin-top:var(--seq-space-9)}.fyvr111d{margin-top:var(--seq-space-10)}.fyvr111h{margin-top:var(--seq-space-12)}.fyvr111l{margin-top:var(--seq-space-14)}.fyvr111p{margin-top:var(--seq-space-16)}.fyvr111t{margin-top:var(--seq-space-0_25)}.fyvr111x{margin-top:var(--seq-space-0_5)}.fyvr1121{margin-top:var(--seq-space-1_5)}.fyvr1125{margin-top:auto}.fyvr1129{margin-bottom:var(--seq-space-0)}.fyvr112d{margin-bottom:var(--seq-space-1)}.fyvr112h{margin-bottom:var(--seq-space-2)}.fyvr112l{margin-bottom:var(--seq-space-3)}.fyvr112p{margin-bottom:var(--seq-space-4)}.fyvr112t{margin-bottom:var(--seq-space-5)}.fyvr112x{margin-bottom:var(--seq-space-6)}.fyvr1131{margin-bottom:var(--seq-space-7)}.fyvr1135{margin-bottom:var(--seq-space-8)}.fyvr1139{margin-bottom:var(--seq-space-9)}.fyvr113d{margin-bottom:var(--seq-space-10)}.fyvr113h{margin-bottom:var(--seq-space-12)}.fyvr113l{margin-bottom:var(--seq-space-14)}.fyvr113p{margin-bottom:var(--seq-space-16)}.fyvr113t{margin-bottom:var(--seq-space-0_25)}.fyvr113x{margin-bottom:var(--seq-space-0_5)}.fyvr1141{margin-bottom:var(--seq-space-1_5)}.fyvr1145{margin-bottom:auto}.fyvr1149{margin-left:var(--seq-space-0)}.fyvr114d{margin-left:var(--seq-space-1)}.fyvr114h{margin-left:var(--seq-space-2)}.fyvr114l{margin-left:var(--seq-space-3)}.fyvr114p{margin-left:var(--seq-space-4)}.fyvr114t{margin-left:var(--seq-space-5)}.fyvr114x{margin-left:var(--seq-space-6)}.fyvr1151{margin-left:var(--seq-space-7)}.fyvr1155{margin-left:var(--seq-space-8)}.fyvr1159{margin-left:var(--seq-space-9)}.fyvr115d{margin-left:var(--seq-space-10)}.fyvr115h{margin-left:var(--seq-space-12)}.fyvr115l{margin-left:var(--seq-space-14)}.fyvr115p{margin-left:var(--seq-space-16)}.fyvr115t{margin-left:var(--seq-space-0_25)}.fyvr115x{margin-left:var(--seq-space-0_5)}.fyvr1161{margin-left:var(--seq-space-1_5)}.fyvr1165{margin-left:auto}.fyvr1169{margin-right:var(--seq-space-0)}.fyvr116d{margin-right:var(--seq-space-1)}.fyvr116h{margin-right:var(--seq-space-2)}.fyvr116l{margin-right:var(--seq-space-3)}.fyvr116p{margin-right:var(--seq-space-4)}.fyvr116t{margin-right:var(--seq-space-5)}.fyvr116x{margin-right:var(--seq-space-6)}.fyvr1171{margin-right:var(--seq-space-7)}.fyvr1175{margin-right:var(--seq-space-8)}.fyvr1179{margin-right:var(--seq-space-9)}.fyvr117d{margin-right:var(--seq-space-10)}.fyvr117h{margin-right:var(--seq-space-12)}.fyvr117l{margin-right:var(--seq-space-14)}.fyvr117p{margin-right:var(--seq-space-16)}.fyvr117t{margin-right:var(--seq-space-0_25)}.fyvr117x{margin-right:var(--seq-space-0_5)}.fyvr1181{margin-right:var(--seq-space-1_5)}.fyvr1185{margin-right:auto}.fyvr1189{gap:var(--seq-space-0)}.fyvr118d{gap:var(--seq-space-1)}.fyvr118h{gap:var(--seq-space-2)}.fyvr118l{gap:var(--seq-space-3)}.fyvr118p{gap:var(--seq-space-4)}.fyvr118t{gap:var(--seq-space-5)}.fyvr118x{gap:var(--seq-space-6)}.fyvr1191{gap:var(--seq-space-7)}.fyvr1195{gap:var(--seq-space-8)}.fyvr1199{gap:var(--seq-space-9)}.fyvr119d{gap:var(--seq-space-10)}.fyvr119h{gap:var(--seq-space-12)}.fyvr119l{gap:var(--seq-space-14)}.fyvr119p{gap:var(--seq-space-16)}.fyvr119t{gap:var(--seq-space-0_25)}.fyvr119x{gap:var(--seq-space-0_5)}.fyvr11a1{gap:var(--seq-space-1_5)}.fyvr11a5{border-bottom-width:var(--seq-border-widths-none)}.fyvr11a9{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11ad{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11ah{border-left-width:var(--seq-border-widths-none)}.fyvr11al{border-left-width:var(--seq-border-widths-thin)}.fyvr11ap{border-left-width:var(--seq-border-widths-thick)}.fyvr11at{border-right-width:var(--seq-border-widths-none)}.fyvr11ax{border-right-width:var(--seq-border-widths-thin)}.fyvr11b1{border-right-width:var(--seq-border-widths-thick)}.fyvr11b5{border-top-width:var(--seq-border-widths-none)}.fyvr11b9{border-top-width:var(--seq-border-widths-thin)}.fyvr11bd{border-top-width:var(--seq-border-widths-thick)}.fyvr11bh{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11bl{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11bp{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11bt{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11bx{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11c1{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11c5{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11c9{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11cd{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11ch{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11cl{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11cp{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11ct{border-top-left-radius:var(--seq-radii-none)}.fyvr11cx{border-top-left-radius:var(--seq-radii-xs)}.fyvr11d1{border-top-left-radius:var(--seq-radii-sm)}.fyvr11d5{border-top-left-radius:var(--seq-radii-md)}.fyvr11d9{border-top-left-radius:var(--seq-radii-lg)}.fyvr11dd{border-top-left-radius:var(--seq-radii-circle)}.fyvr11dh{border-top-right-radius:var(--seq-radii-none)}.fyvr11dl{border-top-right-radius:var(--seq-radii-xs)}.fyvr11dp{border-top-right-radius:var(--seq-radii-sm)}.fyvr11dt{border-top-right-radius:var(--seq-radii-md)}.fyvr11dx{border-top-right-radius:var(--seq-radii-lg)}.fyvr11e1{border-top-right-radius:var(--seq-radii-circle)}.fyvr11e5{font-size:var(--seq-font-sizes-inherit)}.fyvr11e9{font-size:var(--seq-font-sizes-xsmall)}.fyvr11ed{font-size:var(--seq-font-sizes-small)}.fyvr11eh{font-size:var(--seq-font-sizes-normal)}.fyvr11el{font-size:var(--seq-font-sizes-medium)}.fyvr11ep{font-size:var(--seq-font-sizes-large)}.fyvr11et{font-size:var(--seq-font-sizes-xlarge)}.fyvr11ex{font-weight:var(--seq-font-weights-inherit)}.fyvr11f1{font-weight:var(--seq-font-weights-normal)}.fyvr11f5{font-weight:var(--seq-font-weights-medium)}.fyvr11f9{font-weight:var(--seq-font-weights-semibold)}.fyvr11fd{font-weight:var(--seq-font-weights-bold)}.fyvr11fh{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11fl{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11fp{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11ft{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11fx{line-height:var(--seq-line-heights-4)}.fyvr11g1{line-height:var(--seq-line-heights-5)}.fyvr11g5{line-height:var(--seq-line-heights-6)}.fyvr11g9{line-height:var(--seq-line-heights-7)}.fyvr11gd{line-height:var(--seq-line-heights-9)}.fyvr11gh{line-height:var(--seq-line-heights-inherit)}.fyvr11gl{text-align:center}.fyvr11gp{text-align:left}.fyvr11gt{text-align:right}.fyvr11gx{display:block}.fyvr11h1{display:flex}.fyvr11h5{display:grid}.fyvr11h9{display:inline-block}.fyvr11hd{display:inline-flex}.fyvr11hh{display:none}.fyvr11hl{display:contents}.fyvr11hp{position:absolute}.fyvr11ht{position:fixed}.fyvr11hx{position:relative}.fyvr11i1{position:sticky}.fyvr11i5{flex-direction:column}.fyvr11i9{flex-direction:column-reverse}.fyvr11id{flex-direction:row}.fyvr11ih{flex-direction:row-reverse}.fyvr11il{flex-shrink:0}.fyvr11ip{flex-shrink:1}.fyvr11it{flex-grow:0}.fyvr11ix{flex-grow:1}.fyvr11j1{flex-wrap:nowrap}.fyvr11j5{flex-wrap:wrap}.fyvr11j9{flex-wrap:wrap-reverse}.fyvr11jd{justify-content:flex-start}.fyvr11jh{justify-content:center}.fyvr11jl{justify-content:flex-end}.fyvr11jp{justify-content:stretch}.fyvr11jt{justify-content:space-around}.fyvr11jx{justify-content:space-between}.fyvr11k1{justify-content:space-evenly}.fyvr11k5{justify-self:flex-start}.fyvr11k9{justify-self:center}.fyvr11kd{justify-self:flex-end}.fyvr11kh{justify-self:stretch}.fyvr11kl{align-items:flex-start}.fyvr11kp{align-items:center}.fyvr11kt{align-items:flex-end}.fyvr11kx{align-items:stretch}.fyvr11l1{align-items:baseline}.fyvr11l5{align-self:flex-start}.fyvr11l9{align-self:center}.fyvr11ld{align-self:flex-end}.fyvr11lh{align-self:stretch}.fyvr11ll{align-self:baseline}.fyvr11lp{overflow-x:auto}.fyvr11lt{overflow-x:hidden}.fyvr11lx{overflow-x:scroll}.fyvr11m1{overflow-x:visible}.fyvr11m5{overflow-y:auto}.fyvr11m9{overflow-y:hidden}.fyvr11md{overflow-y:scroll}.fyvr11mh{overflow-y:visible}.fyvr11ml{visibility:hidden}.fyvr11mp{visibility:visible}}@media (min-width: 769px){.fyvr12{width:var(--seq-space-0)}.fyvr16{width:var(--seq-space-1)}.fyvr1a{width:var(--seq-space-2)}.fyvr1e{width:var(--seq-space-3)}.fyvr1i{width:var(--seq-space-4)}.fyvr1m{width:var(--seq-space-5)}.fyvr1q{width:var(--seq-space-6)}.fyvr1u{width:var(--seq-space-7)}.fyvr1y{width:var(--seq-space-8)}.fyvr112{width:var(--seq-space-9)}.fyvr116{width:var(--seq-space-10)}.fyvr11a{width:var(--seq-space-12)}.fyvr11e{width:var(--seq-space-14)}.fyvr11i{width:var(--seq-space-16)}.fyvr11m{width:var(--seq-space-0_25)}.fyvr11q{width:var(--seq-space-0_5)}.fyvr11u{width:var(--seq-space-1_5)}.fyvr11y{width:0}.fyvr122{width:1px}.fyvr126{width:auto}.fyvr12a{width:100%}.fyvr12e{width:50%}.fyvr12i{width:33.33333%}.fyvr12m{width:66.66667%}.fyvr12q{width:25%}.fyvr12u{width:75%}.fyvr12y{width:-moz-fit-content;width:fit-content}.fyvr132{width:-moz-max-content;width:max-content}.fyvr136{width:-moz-min-content;width:min-content}.fyvr13a{width:100vw}.fyvr13e{width:100vh}.fyvr13i{height:var(--seq-space-0)}.fyvr13m{height:var(--seq-space-1)}.fyvr13q{height:var(--seq-space-2)}.fyvr13u{height:var(--seq-space-3)}.fyvr13y{height:var(--seq-space-4)}.fyvr142{height:var(--seq-space-5)}.fyvr146{height:var(--seq-space-6)}.fyvr14a{height:var(--seq-space-7)}.fyvr14e{height:var(--seq-space-8)}.fyvr14i{height:var(--seq-space-9)}.fyvr14m{height:var(--seq-space-10)}.fyvr14q{height:var(--seq-space-12)}.fyvr14u{height:var(--seq-space-14)}.fyvr14y{height:var(--seq-space-16)}.fyvr152{height:var(--seq-space-0_25)}.fyvr156{height:var(--seq-space-0_5)}.fyvr15a{height:var(--seq-space-1_5)}.fyvr15e{height:0}.fyvr15i{height:1px}.fyvr15m{height:auto}.fyvr15q{height:100%}.fyvr15u{height:50%}.fyvr15y{height:33.33333%}.fyvr162{height:66.66667%}.fyvr166{height:25%}.fyvr16a{height:75%}.fyvr16e{height:-moz-fit-content;height:fit-content}.fyvr16i{height:-moz-max-content;height:max-content}.fyvr16m{height:-moz-min-content;height:min-content}.fyvr16q{height:100vw}.fyvr16u{height:100vh}.fyvr16y{max-width:var(--seq-space-0)}.fyvr172{max-width:var(--seq-space-1)}.fyvr176{max-width:var(--seq-space-2)}.fyvr17a{max-width:var(--seq-space-3)}.fyvr17e{max-width:var(--seq-space-4)}.fyvr17i{max-width:var(--seq-space-5)}.fyvr17m{max-width:var(--seq-space-6)}.fyvr17q{max-width:var(--seq-space-7)}.fyvr17u{max-width:var(--seq-space-8)}.fyvr17y{max-width:var(--seq-space-9)}.fyvr182{max-width:var(--seq-space-10)}.fyvr186{max-width:var(--seq-space-12)}.fyvr18a{max-width:var(--seq-space-14)}.fyvr18e{max-width:var(--seq-space-16)}.fyvr18i{max-width:var(--seq-space-0_25)}.fyvr18m{max-width:var(--seq-space-0_5)}.fyvr18q{max-width:var(--seq-space-1_5)}.fyvr18u{max-width:0}.fyvr18y{max-width:1px}.fyvr192{max-width:auto}.fyvr196{max-width:100%}.fyvr19a{max-width:50%}.fyvr19e{max-width:33.33333%}.fyvr19i{max-width:66.66667%}.fyvr19m{max-width:25%}.fyvr19q{max-width:75%}.fyvr19u{max-width:-moz-fit-content;max-width:fit-content}.fyvr19y{max-width:-moz-max-content;max-width:max-content}.fyvr1a2{max-width:-moz-min-content;max-width:min-content}.fyvr1a6{max-width:100vw}.fyvr1aa{max-width:100vh}.fyvr1ae{max-height:var(--seq-space-0)}.fyvr1ai{max-height:var(--seq-space-1)}.fyvr1am{max-height:var(--seq-space-2)}.fyvr1aq{max-height:var(--seq-space-3)}.fyvr1au{max-height:var(--seq-space-4)}.fyvr1ay{max-height:var(--seq-space-5)}.fyvr1b2{max-height:var(--seq-space-6)}.fyvr1b6{max-height:var(--seq-space-7)}.fyvr1ba{max-height:var(--seq-space-8)}.fyvr1be{max-height:var(--seq-space-9)}.fyvr1bi{max-height:var(--seq-space-10)}.fyvr1bm{max-height:var(--seq-space-12)}.fyvr1bq{max-height:var(--seq-space-14)}.fyvr1bu{max-height:var(--seq-space-16)}.fyvr1by{max-height:var(--seq-space-0_25)}.fyvr1c2{max-height:var(--seq-space-0_5)}.fyvr1c6{max-height:var(--seq-space-1_5)}.fyvr1ca{max-height:0}.fyvr1ce{max-height:1px}.fyvr1ci{max-height:auto}.fyvr1cm{max-height:100%}.fyvr1cq{max-height:50%}.fyvr1cu{max-height:33.33333%}.fyvr1cy{max-height:66.66667%}.fyvr1d2{max-height:25%}.fyvr1d6{max-height:75%}.fyvr1da{max-height:-moz-fit-content;max-height:fit-content}.fyvr1de{max-height:-moz-max-content;max-height:max-content}.fyvr1di{max-height:-moz-min-content;max-height:min-content}.fyvr1dm{max-height:100vw}.fyvr1dq{max-height:100vh}.fyvr1du{min-width:var(--seq-space-0)}.fyvr1dy{min-width:var(--seq-space-1)}.fyvr1e2{min-width:var(--seq-space-2)}.fyvr1e6{min-width:var(--seq-space-3)}.fyvr1ea{min-width:var(--seq-space-4)}.fyvr1ee{min-width:var(--seq-space-5)}.fyvr1ei{min-width:var(--seq-space-6)}.fyvr1em{min-width:var(--seq-space-7)}.fyvr1eq{min-width:var(--seq-space-8)}.fyvr1eu{min-width:var(--seq-space-9)}.fyvr1ey{min-width:var(--seq-space-10)}.fyvr1f2{min-width:var(--seq-space-12)}.fyvr1f6{min-width:var(--seq-space-14)}.fyvr1fa{min-width:var(--seq-space-16)}.fyvr1fe{min-width:var(--seq-space-0_25)}.fyvr1fi{min-width:var(--seq-space-0_5)}.fyvr1fm{min-width:var(--seq-space-1_5)}.fyvr1fq{min-width:0}.fyvr1fu{min-width:1px}.fyvr1fy{min-width:auto}.fyvr1g2{min-width:100%}.fyvr1g6{min-width:50%}.fyvr1ga{min-width:33.33333%}.fyvr1ge{min-width:66.66667%}.fyvr1gi{min-width:25%}.fyvr1gm{min-width:75%}.fyvr1gq{min-width:-moz-fit-content;min-width:fit-content}.fyvr1gu{min-width:-moz-max-content;min-width:max-content}.fyvr1gy{min-width:-moz-min-content;min-width:min-content}.fyvr1h2{min-width:100vw}.fyvr1h6{min-width:100vh}.fyvr1ha{min-height:var(--seq-space-0)}.fyvr1he{min-height:var(--seq-space-1)}.fyvr1hi{min-height:var(--seq-space-2)}.fyvr1hm{min-height:var(--seq-space-3)}.fyvr1hq{min-height:var(--seq-space-4)}.fyvr1hu{min-height:var(--seq-space-5)}.fyvr1hy{min-height:var(--seq-space-6)}.fyvr1i2{min-height:var(--seq-space-7)}.fyvr1i6{min-height:var(--seq-space-8)}.fyvr1ia{min-height:var(--seq-space-9)}.fyvr1ie{min-height:var(--seq-space-10)}.fyvr1ii{min-height:var(--seq-space-12)}.fyvr1im{min-height:var(--seq-space-14)}.fyvr1iq{min-height:var(--seq-space-16)}.fyvr1iu{min-height:var(--seq-space-0_25)}.fyvr1iy{min-height:var(--seq-space-0_5)}.fyvr1j2{min-height:var(--seq-space-1_5)}.fyvr1j6{min-height:0}.fyvr1ja{min-height:1px}.fyvr1je{min-height:auto}.fyvr1ji{min-height:100%}.fyvr1jm{min-height:50%}.fyvr1jq{min-height:33.33333%}.fyvr1ju{min-height:66.66667%}.fyvr1jy{min-height:25%}.fyvr1k2{min-height:75%}.fyvr1k6{min-height:-moz-fit-content;min-height:fit-content}.fyvr1ka{min-height:-moz-max-content;min-height:max-content}.fyvr1ke{min-height:-moz-min-content;min-height:min-content}.fyvr1ki{min-height:100vw}.fyvr1km{min-height:100vh}.fyvr1kq{top:var(--seq-space-0)}.fyvr1ku{top:var(--seq-space-1)}.fyvr1ky{top:var(--seq-space-2)}.fyvr1l2{top:var(--seq-space-3)}.fyvr1l6{top:var(--seq-space-4)}.fyvr1la{top:var(--seq-space-5)}.fyvr1le{top:var(--seq-space-6)}.fyvr1li{top:var(--seq-space-7)}.fyvr1lm{top:var(--seq-space-8)}.fyvr1lq{top:var(--seq-space-9)}.fyvr1lu{top:var(--seq-space-10)}.fyvr1ly{top:var(--seq-space-12)}.fyvr1m2{top:var(--seq-space-14)}.fyvr1m6{top:var(--seq-space-16)}.fyvr1ma{top:var(--seq-space-0_25)}.fyvr1me{top:var(--seq-space-0_5)}.fyvr1mi{top:var(--seq-space-1_5)}.fyvr1mm{top:auto}.fyvr1mq{bottom:var(--seq-space-0)}.fyvr1mu{bottom:var(--seq-space-1)}.fyvr1my{bottom:var(--seq-space-2)}.fyvr1n2{bottom:var(--seq-space-3)}.fyvr1n6{bottom:var(--seq-space-4)}.fyvr1na{bottom:var(--seq-space-5)}.fyvr1ne{bottom:var(--seq-space-6)}.fyvr1ni{bottom:var(--seq-space-7)}.fyvr1nm{bottom:var(--seq-space-8)}.fyvr1nq{bottom:var(--seq-space-9)}.fyvr1nu{bottom:var(--seq-space-10)}.fyvr1ny{bottom:var(--seq-space-12)}.fyvr1o2{bottom:var(--seq-space-14)}.fyvr1o6{bottom:var(--seq-space-16)}.fyvr1oa{bottom:var(--seq-space-0_25)}.fyvr1oe{bottom:var(--seq-space-0_5)}.fyvr1oi{bottom:var(--seq-space-1_5)}.fyvr1om{bottom:auto}.fyvr1oq{left:var(--seq-space-0)}.fyvr1ou{left:var(--seq-space-1)}.fyvr1oy{left:var(--seq-space-2)}.fyvr1p2{left:var(--seq-space-3)}.fyvr1p6{left:var(--seq-space-4)}.fyvr1pa{left:var(--seq-space-5)}.fyvr1pe{left:var(--seq-space-6)}.fyvr1pi{left:var(--seq-space-7)}.fyvr1pm{left:var(--seq-space-8)}.fyvr1pq{left:var(--seq-space-9)}.fyvr1pu{left:var(--seq-space-10)}.fyvr1py{left:var(--seq-space-12)}.fyvr1q2{left:var(--seq-space-14)}.fyvr1q6{left:var(--seq-space-16)}.fyvr1qa{left:var(--seq-space-0_25)}.fyvr1qe{left:var(--seq-space-0_5)}.fyvr1qi{left:var(--seq-space-1_5)}.fyvr1qm{left:auto}.fyvr1qq{right:var(--seq-space-0)}.fyvr1qu{right:var(--seq-space-1)}.fyvr1qy{right:var(--seq-space-2)}.fyvr1r2{right:var(--seq-space-3)}.fyvr1r6{right:var(--seq-space-4)}.fyvr1ra{right:var(--seq-space-5)}.fyvr1re{right:var(--seq-space-6)}.fyvr1ri{right:var(--seq-space-7)}.fyvr1rm{right:var(--seq-space-8)}.fyvr1rq{right:var(--seq-space-9)}.fyvr1ru{right:var(--seq-space-10)}.fyvr1ry{right:var(--seq-space-12)}.fyvr1s2{right:var(--seq-space-14)}.fyvr1s6{right:var(--seq-space-16)}.fyvr1sa{right:var(--seq-space-0_25)}.fyvr1se{right:var(--seq-space-0_5)}.fyvr1si{right:var(--seq-space-1_5)}.fyvr1sm{right:auto}.fyvr1sq{padding-top:var(--seq-space-0)}.fyvr1su{padding-top:var(--seq-space-1)}.fyvr1sy{padding-top:var(--seq-space-2)}.fyvr1t2{padding-top:var(--seq-space-3)}.fyvr1t6{padding-top:var(--seq-space-4)}.fyvr1ta{padding-top:var(--seq-space-5)}.fyvr1te{padding-top:var(--seq-space-6)}.fyvr1ti{padding-top:var(--seq-space-7)}.fyvr1tm{padding-top:var(--seq-space-8)}.fyvr1tq{padding-top:var(--seq-space-9)}.fyvr1tu{padding-top:var(--seq-space-10)}.fyvr1ty{padding-top:var(--seq-space-12)}.fyvr1u2{padding-top:var(--seq-space-14)}.fyvr1u6{padding-top:var(--seq-space-16)}.fyvr1ua{padding-top:var(--seq-space-0_25)}.fyvr1ue{padding-top:var(--seq-space-0_5)}.fyvr1ui{padding-top:var(--seq-space-1_5)}.fyvr1um{padding-bottom:var(--seq-space-0)}.fyvr1uq{padding-bottom:var(--seq-space-1)}.fyvr1uu{padding-bottom:var(--seq-space-2)}.fyvr1uy{padding-bottom:var(--seq-space-3)}.fyvr1v2{padding-bottom:var(--seq-space-4)}.fyvr1v6{padding-bottom:var(--seq-space-5)}.fyvr1va{padding-bottom:var(--seq-space-6)}.fyvr1ve{padding-bottom:var(--seq-space-7)}.fyvr1vi{padding-bottom:var(--seq-space-8)}.fyvr1vm{padding-bottom:var(--seq-space-9)}.fyvr1vq{padding-bottom:var(--seq-space-10)}.fyvr1vu{padding-bottom:var(--seq-space-12)}.fyvr1vy{padding-bottom:var(--seq-space-14)}.fyvr1w2{padding-bottom:var(--seq-space-16)}.fyvr1w6{padding-bottom:var(--seq-space-0_25)}.fyvr1wa{padding-bottom:var(--seq-space-0_5)}.fyvr1we{padding-bottom:var(--seq-space-1_5)}.fyvr1wi{padding-left:var(--seq-space-0)}.fyvr1wm{padding-left:var(--seq-space-1)}.fyvr1wq{padding-left:var(--seq-space-2)}.fyvr1wu{padding-left:var(--seq-space-3)}.fyvr1wy{padding-left:var(--seq-space-4)}.fyvr1x2{padding-left:var(--seq-space-5)}.fyvr1x6{padding-left:var(--seq-space-6)}.fyvr1xa{padding-left:var(--seq-space-7)}.fyvr1xe{padding-left:var(--seq-space-8)}.fyvr1xi{padding-left:var(--seq-space-9)}.fyvr1xm{padding-left:var(--seq-space-10)}.fyvr1xq{padding-left:var(--seq-space-12)}.fyvr1xu{padding-left:var(--seq-space-14)}.fyvr1xy{padding-left:var(--seq-space-16)}.fyvr1y2{padding-left:var(--seq-space-0_25)}.fyvr1y6{padding-left:var(--seq-space-0_5)}.fyvr1ya{padding-left:var(--seq-space-1_5)}.fyvr1ye{padding-right:var(--seq-space-0)}.fyvr1yi{padding-right:var(--seq-space-1)}.fyvr1ym{padding-right:var(--seq-space-2)}.fyvr1yq{padding-right:var(--seq-space-3)}.fyvr1yu{padding-right:var(--seq-space-4)}.fyvr1yy{padding-right:var(--seq-space-5)}.fyvr1z2{padding-right:var(--seq-space-6)}.fyvr1z6{padding-right:var(--seq-space-7)}.fyvr1za{padding-right:var(--seq-space-8)}.fyvr1ze{padding-right:var(--seq-space-9)}.fyvr1zi{padding-right:var(--seq-space-10)}.fyvr1zm{padding-right:var(--seq-space-12)}.fyvr1zq{padding-right:var(--seq-space-14)}.fyvr1zu{padding-right:var(--seq-space-16)}.fyvr1zy{padding-right:var(--seq-space-0_25)}.fyvr1102{padding-right:var(--seq-space-0_5)}.fyvr1106{padding-right:var(--seq-space-1_5)}.fyvr110a{margin-top:var(--seq-space-0)}.fyvr110e{margin-top:var(--seq-space-1)}.fyvr110i{margin-top:var(--seq-space-2)}.fyvr110m{margin-top:var(--seq-space-3)}.fyvr110q{margin-top:var(--seq-space-4)}.fyvr110u{margin-top:var(--seq-space-5)}.fyvr110y{margin-top:var(--seq-space-6)}.fyvr1112{margin-top:var(--seq-space-7)}.fyvr1116{margin-top:var(--seq-space-8)}.fyvr111a{margin-top:var(--seq-space-9)}.fyvr111e{margin-top:var(--seq-space-10)}.fyvr111i{margin-top:var(--seq-space-12)}.fyvr111m{margin-top:var(--seq-space-14)}.fyvr111q{margin-top:var(--seq-space-16)}.fyvr111u{margin-top:var(--seq-space-0_25)}.fyvr111y{margin-top:var(--seq-space-0_5)}.fyvr1122{margin-top:var(--seq-space-1_5)}.fyvr1126{margin-top:auto}.fyvr112a{margin-bottom:var(--seq-space-0)}.fyvr112e{margin-bottom:var(--seq-space-1)}.fyvr112i{margin-bottom:var(--seq-space-2)}.fyvr112m{margin-bottom:var(--seq-space-3)}.fyvr112q{margin-bottom:var(--seq-space-4)}.fyvr112u{margin-bottom:var(--seq-space-5)}.fyvr112y{margin-bottom:var(--seq-space-6)}.fyvr1132{margin-bottom:var(--seq-space-7)}.fyvr1136{margin-bottom:var(--seq-space-8)}.fyvr113a{margin-bottom:var(--seq-space-9)}.fyvr113e{margin-bottom:var(--seq-space-10)}.fyvr113i{margin-bottom:var(--seq-space-12)}.fyvr113m{margin-bottom:var(--seq-space-14)}.fyvr113q{margin-bottom:var(--seq-space-16)}.fyvr113u{margin-bottom:var(--seq-space-0_25)}.fyvr113y{margin-bottom:var(--seq-space-0_5)}.fyvr1142{margin-bottom:var(--seq-space-1_5)}.fyvr1146{margin-bottom:auto}.fyvr114a{margin-left:var(--seq-space-0)}.fyvr114e{margin-left:var(--seq-space-1)}.fyvr114i{margin-left:var(--seq-space-2)}.fyvr114m{margin-left:var(--seq-space-3)}.fyvr114q{margin-left:var(--seq-space-4)}.fyvr114u{margin-left:var(--seq-space-5)}.fyvr114y{margin-left:var(--seq-space-6)}.fyvr1152{margin-left:var(--seq-space-7)}.fyvr1156{margin-left:var(--seq-space-8)}.fyvr115a{margin-left:var(--seq-space-9)}.fyvr115e{margin-left:var(--seq-space-10)}.fyvr115i{margin-left:var(--seq-space-12)}.fyvr115m{margin-left:var(--seq-space-14)}.fyvr115q{margin-left:var(--seq-space-16)}.fyvr115u{margin-left:var(--seq-space-0_25)}.fyvr115y{margin-left:var(--seq-space-0_5)}.fyvr1162{margin-left:var(--seq-space-1_5)}.fyvr1166{margin-left:auto}.fyvr116a{margin-right:var(--seq-space-0)}.fyvr116e{margin-right:var(--seq-space-1)}.fyvr116i{margin-right:var(--seq-space-2)}.fyvr116m{margin-right:var(--seq-space-3)}.fyvr116q{margin-right:var(--seq-space-4)}.fyvr116u{margin-right:var(--seq-space-5)}.fyvr116y{margin-right:var(--seq-space-6)}.fyvr1172{margin-right:var(--seq-space-7)}.fyvr1176{margin-right:var(--seq-space-8)}.fyvr117a{margin-right:var(--seq-space-9)}.fyvr117e{margin-right:var(--seq-space-10)}.fyvr117i{margin-right:var(--seq-space-12)}.fyvr117m{margin-right:var(--seq-space-14)}.fyvr117q{margin-right:var(--seq-space-16)}.fyvr117u{margin-right:var(--seq-space-0_25)}.fyvr117y{margin-right:var(--seq-space-0_5)}.fyvr1182{margin-right:var(--seq-space-1_5)}.fyvr1186{margin-right:auto}.fyvr118a{gap:var(--seq-space-0)}.fyvr118e{gap:var(--seq-space-1)}.fyvr118i{gap:var(--seq-space-2)}.fyvr118m{gap:var(--seq-space-3)}.fyvr118q{gap:var(--seq-space-4)}.fyvr118u{gap:var(--seq-space-5)}.fyvr118y{gap:var(--seq-space-6)}.fyvr1192{gap:var(--seq-space-7)}.fyvr1196{gap:var(--seq-space-8)}.fyvr119a{gap:var(--seq-space-9)}.fyvr119e{gap:var(--seq-space-10)}.fyvr119i{gap:var(--seq-space-12)}.fyvr119m{gap:var(--seq-space-14)}.fyvr119q{gap:var(--seq-space-16)}.fyvr119u{gap:var(--seq-space-0_25)}.fyvr119y{gap:var(--seq-space-0_5)}.fyvr11a2{gap:var(--seq-space-1_5)}.fyvr11a6{border-bottom-width:var(--seq-border-widths-none)}.fyvr11aa{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11ae{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11ai{border-left-width:var(--seq-border-widths-none)}.fyvr11am{border-left-width:var(--seq-border-widths-thin)}.fyvr11aq{border-left-width:var(--seq-border-widths-thick)}.fyvr11au{border-right-width:var(--seq-border-widths-none)}.fyvr11ay{border-right-width:var(--seq-border-widths-thin)}.fyvr11b2{border-right-width:var(--seq-border-widths-thick)}.fyvr11b6{border-top-width:var(--seq-border-widths-none)}.fyvr11ba{border-top-width:var(--seq-border-widths-thin)}.fyvr11be{border-top-width:var(--seq-border-widths-thick)}.fyvr11bi{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11bm{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11bq{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11bu{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11by{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11c2{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11c6{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11ca{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11ce{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11ci{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11cm{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11cq{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11cu{border-top-left-radius:var(--seq-radii-none)}.fyvr11cy{border-top-left-radius:var(--seq-radii-xs)}.fyvr11d2{border-top-left-radius:var(--seq-radii-sm)}.fyvr11d6{border-top-left-radius:var(--seq-radii-md)}.fyvr11da{border-top-left-radius:var(--seq-radii-lg)}.fyvr11de{border-top-left-radius:var(--seq-radii-circle)}.fyvr11di{border-top-right-radius:var(--seq-radii-none)}.fyvr11dm{border-top-right-radius:var(--seq-radii-xs)}.fyvr11dq{border-top-right-radius:var(--seq-radii-sm)}.fyvr11du{border-top-right-radius:var(--seq-radii-md)}.fyvr11dy{border-top-right-radius:var(--seq-radii-lg)}.fyvr11e2{border-top-right-radius:var(--seq-radii-circle)}.fyvr11e6{font-size:var(--seq-font-sizes-inherit)}.fyvr11ea{font-size:var(--seq-font-sizes-xsmall)}.fyvr11ee{font-size:var(--seq-font-sizes-small)}.fyvr11ei{font-size:var(--seq-font-sizes-normal)}.fyvr11em{font-size:var(--seq-font-sizes-medium)}.fyvr11eq{font-size:var(--seq-font-sizes-large)}.fyvr11eu{font-size:var(--seq-font-sizes-xlarge)}.fyvr11ey{font-weight:var(--seq-font-weights-inherit)}.fyvr11f2{font-weight:var(--seq-font-weights-normal)}.fyvr11f6{font-weight:var(--seq-font-weights-medium)}.fyvr11fa{font-weight:var(--seq-font-weights-semibold)}.fyvr11fe{font-weight:var(--seq-font-weights-bold)}.fyvr11fi{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11fm{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11fq{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11fu{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11fy{line-height:var(--seq-line-heights-4)}.fyvr11g2{line-height:var(--seq-line-heights-5)}.fyvr11g6{line-height:var(--seq-line-heights-6)}.fyvr11ga{line-height:var(--seq-line-heights-7)}.fyvr11ge{line-height:var(--seq-line-heights-9)}.fyvr11gi{line-height:var(--seq-line-heights-inherit)}.fyvr11gm{text-align:center}.fyvr11gq{text-align:left}.fyvr11gu{text-align:right}.fyvr11gy{display:block}.fyvr11h2{display:flex}.fyvr11h6{display:grid}.fyvr11ha{display:inline-block}.fyvr11he{display:inline-flex}.fyvr11hi{display:none}.fyvr11hm{display:contents}.fyvr11hq{position:absolute}.fyvr11hu{position:fixed}.fyvr11hy{position:relative}.fyvr11i2{position:sticky}.fyvr11i6{flex-direction:column}.fyvr11ia{flex-direction:column-reverse}.fyvr11ie{flex-direction:row}.fyvr11ii{flex-direction:row-reverse}.fyvr11im{flex-shrink:0}.fyvr11iq{flex-shrink:1}.fyvr11iu{flex-grow:0}.fyvr11iy{flex-grow:1}.fyvr11j2{flex-wrap:nowrap}.fyvr11j6{flex-wrap:wrap}.fyvr11ja{flex-wrap:wrap-reverse}.fyvr11je{justify-content:flex-start}.fyvr11ji{justify-content:center}.fyvr11jm{justify-content:flex-end}.fyvr11jq{justify-content:stretch}.fyvr11ju{justify-content:space-around}.fyvr11jy{justify-content:space-between}.fyvr11k2{justify-content:space-evenly}.fyvr11k6{justify-self:flex-start}.fyvr11ka{justify-self:center}.fyvr11ke{justify-self:flex-end}.fyvr11ki{justify-self:stretch}.fyvr11km{align-items:flex-start}.fyvr11kq{align-items:center}.fyvr11ku{align-items:flex-end}.fyvr11ky{align-items:stretch}.fyvr11l2{align-items:baseline}.fyvr11l6{align-self:flex-start}.fyvr11la{align-self:center}.fyvr11le{align-self:flex-end}.fyvr11li{align-self:stretch}.fyvr11lm{align-self:baseline}.fyvr11lq{overflow-x:auto}.fyvr11lu{overflow-x:hidden}.fyvr11ly{overflow-x:scroll}.fyvr11m2{overflow-x:visible}.fyvr11m6{overflow-y:auto}.fyvr11ma{overflow-y:hidden}.fyvr11me{overflow-y:scroll}.fyvr11mi{overflow-y:visible}.fyvr11mm{visibility:hidden}.fyvr11mq{visibility:visible}}@media (min-width: 1281px){.fyvr13{width:var(--seq-space-0)}.fyvr17{width:var(--seq-space-1)}.fyvr1b{width:var(--seq-space-2)}.fyvr1f{width:var(--seq-space-3)}.fyvr1j{width:var(--seq-space-4)}.fyvr1n{width:var(--seq-space-5)}.fyvr1r{width:var(--seq-space-6)}.fyvr1v{width:var(--seq-space-7)}.fyvr1z{width:var(--seq-space-8)}.fyvr113{width:var(--seq-space-9)}.fyvr117{width:var(--seq-space-10)}.fyvr11b{width:var(--seq-space-12)}.fyvr11f{width:var(--seq-space-14)}.fyvr11j{width:var(--seq-space-16)}.fyvr11n{width:var(--seq-space-0_25)}.fyvr11r{width:var(--seq-space-0_5)}.fyvr11v{width:var(--seq-space-1_5)}.fyvr11z{width:0}.fyvr123{width:1px}.fyvr127{width:auto}.fyvr12b{width:100%}.fyvr12f{width:50%}.fyvr12j{width:33.33333%}.fyvr12n{width:66.66667%}.fyvr12r{width:25%}.fyvr12v{width:75%}.fyvr12z{width:-moz-fit-content;width:fit-content}.fyvr133{width:-moz-max-content;width:max-content}.fyvr137{width:-moz-min-content;width:min-content}.fyvr13b{width:100vw}.fyvr13f{width:100vh}.fyvr13j{height:var(--seq-space-0)}.fyvr13n{height:var(--seq-space-1)}.fyvr13r{height:var(--seq-space-2)}.fyvr13v{height:var(--seq-space-3)}.fyvr13z{height:var(--seq-space-4)}.fyvr143{height:var(--seq-space-5)}.fyvr147{height:var(--seq-space-6)}.fyvr14b{height:var(--seq-space-7)}.fyvr14f{height:var(--seq-space-8)}.fyvr14j{height:var(--seq-space-9)}.fyvr14n{height:var(--seq-space-10)}.fyvr14r{height:var(--seq-space-12)}.fyvr14v{height:var(--seq-space-14)}.fyvr14z{height:var(--seq-space-16)}.fyvr153{height:var(--seq-space-0_25)}.fyvr157{height:var(--seq-space-0_5)}.fyvr15b{height:var(--seq-space-1_5)}.fyvr15f{height:0}.fyvr15j{height:1px}.fyvr15n{height:auto}.fyvr15r{height:100%}.fyvr15v{height:50%}.fyvr15z{height:33.33333%}.fyvr163{height:66.66667%}.fyvr167{height:25%}.fyvr16b{height:75%}.fyvr16f{height:-moz-fit-content;height:fit-content}.fyvr16j{height:-moz-max-content;height:max-content}.fyvr16n{height:-moz-min-content;height:min-content}.fyvr16r{height:100vw}.fyvr16v{height:100vh}.fyvr16z{max-width:var(--seq-space-0)}.fyvr173{max-width:var(--seq-space-1)}.fyvr177{max-width:var(--seq-space-2)}.fyvr17b{max-width:var(--seq-space-3)}.fyvr17f{max-width:var(--seq-space-4)}.fyvr17j{max-width:var(--seq-space-5)}.fyvr17n{max-width:var(--seq-space-6)}.fyvr17r{max-width:var(--seq-space-7)}.fyvr17v{max-width:var(--seq-space-8)}.fyvr17z{max-width:var(--seq-space-9)}.fyvr183{max-width:var(--seq-space-10)}.fyvr187{max-width:var(--seq-space-12)}.fyvr18b{max-width:var(--seq-space-14)}.fyvr18f{max-width:var(--seq-space-16)}.fyvr18j{max-width:var(--seq-space-0_25)}.fyvr18n{max-width:var(--seq-space-0_5)}.fyvr18r{max-width:var(--seq-space-1_5)}.fyvr18v{max-width:0}.fyvr18z{max-width:1px}.fyvr193{max-width:auto}.fyvr197{max-width:100%}.fyvr19b{max-width:50%}.fyvr19f{max-width:33.33333%}.fyvr19j{max-width:66.66667%}.fyvr19n{max-width:25%}.fyvr19r{max-width:75%}.fyvr19v{max-width:-moz-fit-content;max-width:fit-content}.fyvr19z{max-width:-moz-max-content;max-width:max-content}.fyvr1a3{max-width:-moz-min-content;max-width:min-content}.fyvr1a7{max-width:100vw}.fyvr1ab{max-width:100vh}.fyvr1af{max-height:var(--seq-space-0)}.fyvr1aj{max-height:var(--seq-space-1)}.fyvr1an{max-height:var(--seq-space-2)}.fyvr1ar{max-height:var(--seq-space-3)}.fyvr1av{max-height:var(--seq-space-4)}.fyvr1az{max-height:var(--seq-space-5)}.fyvr1b3{max-height:var(--seq-space-6)}.fyvr1b7{max-height:var(--seq-space-7)}.fyvr1bb{max-height:var(--seq-space-8)}.fyvr1bf{max-height:var(--seq-space-9)}.fyvr1bj{max-height:var(--seq-space-10)}.fyvr1bn{max-height:var(--seq-space-12)}.fyvr1br{max-height:var(--seq-space-14)}.fyvr1bv{max-height:var(--seq-space-16)}.fyvr1bz{max-height:var(--seq-space-0_25)}.fyvr1c3{max-height:var(--seq-space-0_5)}.fyvr1c7{max-height:var(--seq-space-1_5)}.fyvr1cb{max-height:0}.fyvr1cf{max-height:1px}.fyvr1cj{max-height:auto}.fyvr1cn{max-height:100%}.fyvr1cr{max-height:50%}.fyvr1cv{max-height:33.33333%}.fyvr1cz{max-height:66.66667%}.fyvr1d3{max-height:25%}.fyvr1d7{max-height:75%}.fyvr1db{max-height:-moz-fit-content;max-height:fit-content}.fyvr1df{max-height:-moz-max-content;max-height:max-content}.fyvr1dj{max-height:-moz-min-content;max-height:min-content}.fyvr1dn{max-height:100vw}.fyvr1dr{max-height:100vh}.fyvr1dv{min-width:var(--seq-space-0)}.fyvr1dz{min-width:var(--seq-space-1)}.fyvr1e3{min-width:var(--seq-space-2)}.fyvr1e7{min-width:var(--seq-space-3)}.fyvr1eb{min-width:var(--seq-space-4)}.fyvr1ef{min-width:var(--seq-space-5)}.fyvr1ej{min-width:var(--seq-space-6)}.fyvr1en{min-width:var(--seq-space-7)}.fyvr1er{min-width:var(--seq-space-8)}.fyvr1ev{min-width:var(--seq-space-9)}.fyvr1ez{min-width:var(--seq-space-10)}.fyvr1f3{min-width:var(--seq-space-12)}.fyvr1f7{min-width:var(--seq-space-14)}.fyvr1fb{min-width:var(--seq-space-16)}.fyvr1ff{min-width:var(--seq-space-0_25)}.fyvr1fj{min-width:var(--seq-space-0_5)}.fyvr1fn{min-width:var(--seq-space-1_5)}.fyvr1fr{min-width:0}.fyvr1fv{min-width:1px}.fyvr1fz{min-width:auto}.fyvr1g3{min-width:100%}.fyvr1g7{min-width:50%}.fyvr1gb{min-width:33.33333%}.fyvr1gf{min-width:66.66667%}.fyvr1gj{min-width:25%}.fyvr1gn{min-width:75%}.fyvr1gr{min-width:-moz-fit-content;min-width:fit-content}.fyvr1gv{min-width:-moz-max-content;min-width:max-content}.fyvr1gz{min-width:-moz-min-content;min-width:min-content}.fyvr1h3{min-width:100vw}.fyvr1h7{min-width:100vh}.fyvr1hb{min-height:var(--seq-space-0)}.fyvr1hf{min-height:var(--seq-space-1)}.fyvr1hj{min-height:var(--seq-space-2)}.fyvr1hn{min-height:var(--seq-space-3)}.fyvr1hr{min-height:var(--seq-space-4)}.fyvr1hv{min-height:var(--seq-space-5)}.fyvr1hz{min-height:var(--seq-space-6)}.fyvr1i3{min-height:var(--seq-space-7)}.fyvr1i7{min-height:var(--seq-space-8)}.fyvr1ib{min-height:var(--seq-space-9)}.fyvr1if{min-height:var(--seq-space-10)}.fyvr1ij{min-height:var(--seq-space-12)}.fyvr1in{min-height:var(--seq-space-14)}.fyvr1ir{min-height:var(--seq-space-16)}.fyvr1iv{min-height:var(--seq-space-0_25)}.fyvr1iz{min-height:var(--seq-space-0_5)}.fyvr1j3{min-height:var(--seq-space-1_5)}.fyvr1j7{min-height:0}.fyvr1jb{min-height:1px}.fyvr1jf{min-height:auto}.fyvr1jj{min-height:100%}.fyvr1jn{min-height:50%}.fyvr1jr{min-height:33.33333%}.fyvr1jv{min-height:66.66667%}.fyvr1jz{min-height:25%}.fyvr1k3{min-height:75%}.fyvr1k7{min-height:-moz-fit-content;min-height:fit-content}.fyvr1kb{min-height:-moz-max-content;min-height:max-content}.fyvr1kf{min-height:-moz-min-content;min-height:min-content}.fyvr1kj{min-height:100vw}.fyvr1kn{min-height:100vh}.fyvr1kr{top:var(--seq-space-0)}.fyvr1kv{top:var(--seq-space-1)}.fyvr1kz{top:var(--seq-space-2)}.fyvr1l3{top:var(--seq-space-3)}.fyvr1l7{top:var(--seq-space-4)}.fyvr1lb{top:var(--seq-space-5)}.fyvr1lf{top:var(--seq-space-6)}.fyvr1lj{top:var(--seq-space-7)}.fyvr1ln{top:var(--seq-space-8)}.fyvr1lr{top:var(--seq-space-9)}.fyvr1lv{top:var(--seq-space-10)}.fyvr1lz{top:var(--seq-space-12)}.fyvr1m3{top:var(--seq-space-14)}.fyvr1m7{top:var(--seq-space-16)}.fyvr1mb{top:var(--seq-space-0_25)}.fyvr1mf{top:var(--seq-space-0_5)}.fyvr1mj{top:var(--seq-space-1_5)}.fyvr1mn{top:auto}.fyvr1mr{bottom:var(--seq-space-0)}.fyvr1mv{bottom:var(--seq-space-1)}.fyvr1mz{bottom:var(--seq-space-2)}.fyvr1n3{bottom:var(--seq-space-3)}.fyvr1n7{bottom:var(--seq-space-4)}.fyvr1nb{bottom:var(--seq-space-5)}.fyvr1nf{bottom:var(--seq-space-6)}.fyvr1nj{bottom:var(--seq-space-7)}.fyvr1nn{bottom:var(--seq-space-8)}.fyvr1nr{bottom:var(--seq-space-9)}.fyvr1nv{bottom:var(--seq-space-10)}.fyvr1nz{bottom:var(--seq-space-12)}.fyvr1o3{bottom:var(--seq-space-14)}.fyvr1o7{bottom:var(--seq-space-16)}.fyvr1ob{bottom:var(--seq-space-0_25)}.fyvr1of{bottom:var(--seq-space-0_5)}.fyvr1oj{bottom:var(--seq-space-1_5)}.fyvr1on{bottom:auto}.fyvr1or{left:var(--seq-space-0)}.fyvr1ov{left:var(--seq-space-1)}.fyvr1oz{left:var(--seq-space-2)}.fyvr1p3{left:var(--seq-space-3)}.fyvr1p7{left:var(--seq-space-4)}.fyvr1pb{left:var(--seq-space-5)}.fyvr1pf{left:var(--seq-space-6)}.fyvr1pj{left:var(--seq-space-7)}.fyvr1pn{left:var(--seq-space-8)}.fyvr1pr{left:var(--seq-space-9)}.fyvr1pv{left:var(--seq-space-10)}.fyvr1pz{left:var(--seq-space-12)}.fyvr1q3{left:var(--seq-space-14)}.fyvr1q7{left:var(--seq-space-16)}.fyvr1qb{left:var(--seq-space-0_25)}.fyvr1qf{left:var(--seq-space-0_5)}.fyvr1qj{left:var(--seq-space-1_5)}.fyvr1qn{left:auto}.fyvr1qr{right:var(--seq-space-0)}.fyvr1qv{right:var(--seq-space-1)}.fyvr1qz{right:var(--seq-space-2)}.fyvr1r3{right:var(--seq-space-3)}.fyvr1r7{right:var(--seq-space-4)}.fyvr1rb{right:var(--seq-space-5)}.fyvr1rf{right:var(--seq-space-6)}.fyvr1rj{right:var(--seq-space-7)}.fyvr1rn{right:var(--seq-space-8)}.fyvr1rr{right:var(--seq-space-9)}.fyvr1rv{right:var(--seq-space-10)}.fyvr1rz{right:var(--seq-space-12)}.fyvr1s3{right:var(--seq-space-14)}.fyvr1s7{right:var(--seq-space-16)}.fyvr1sb{right:var(--seq-space-0_25)}.fyvr1sf{right:var(--seq-space-0_5)}.fyvr1sj{right:var(--seq-space-1_5)}.fyvr1sn{right:auto}.fyvr1sr{padding-top:var(--seq-space-0)}.fyvr1sv{padding-top:var(--seq-space-1)}.fyvr1sz{padding-top:var(--seq-space-2)}.fyvr1t3{padding-top:var(--seq-space-3)}.fyvr1t7{padding-top:var(--seq-space-4)}.fyvr1tb{padding-top:var(--seq-space-5)}.fyvr1tf{padding-top:var(--seq-space-6)}.fyvr1tj{padding-top:var(--seq-space-7)}.fyvr1tn{padding-top:var(--seq-space-8)}.fyvr1tr{padding-top:var(--seq-space-9)}.fyvr1tv{padding-top:var(--seq-space-10)}.fyvr1tz{padding-top:var(--seq-space-12)}.fyvr1u3{padding-top:var(--seq-space-14)}.fyvr1u7{padding-top:var(--seq-space-16)}.fyvr1ub{padding-top:var(--seq-space-0_25)}.fyvr1uf{padding-top:var(--seq-space-0_5)}.fyvr1uj{padding-top:var(--seq-space-1_5)}.fyvr1un{padding-bottom:var(--seq-space-0)}.fyvr1ur{padding-bottom:var(--seq-space-1)}.fyvr1uv{padding-bottom:var(--seq-space-2)}.fyvr1uz{padding-bottom:var(--seq-space-3)}.fyvr1v3{padding-bottom:var(--seq-space-4)}.fyvr1v7{padding-bottom:var(--seq-space-5)}.fyvr1vb{padding-bottom:var(--seq-space-6)}.fyvr1vf{padding-bottom:var(--seq-space-7)}.fyvr1vj{padding-bottom:var(--seq-space-8)}.fyvr1vn{padding-bottom:var(--seq-space-9)}.fyvr1vr{padding-bottom:var(--seq-space-10)}.fyvr1vv{padding-bottom:var(--seq-space-12)}.fyvr1vz{padding-bottom:var(--seq-space-14)}.fyvr1w3{padding-bottom:var(--seq-space-16)}.fyvr1w7{padding-bottom:var(--seq-space-0_25)}.fyvr1wb{padding-bottom:var(--seq-space-0_5)}.fyvr1wf{padding-bottom:var(--seq-space-1_5)}.fyvr1wj{padding-left:var(--seq-space-0)}.fyvr1wn{padding-left:var(--seq-space-1)}.fyvr1wr{padding-left:var(--seq-space-2)}.fyvr1wv{padding-left:var(--seq-space-3)}.fyvr1wz{padding-left:var(--seq-space-4)}.fyvr1x3{padding-left:var(--seq-space-5)}.fyvr1x7{padding-left:var(--seq-space-6)}.fyvr1xb{padding-left:var(--seq-space-7)}.fyvr1xf{padding-left:var(--seq-space-8)}.fyvr1xj{padding-left:var(--seq-space-9)}.fyvr1xn{padding-left:var(--seq-space-10)}.fyvr1xr{padding-left:var(--seq-space-12)}.fyvr1xv{padding-left:var(--seq-space-14)}.fyvr1xz{padding-left:var(--seq-space-16)}.fyvr1y3{padding-left:var(--seq-space-0_25)}.fyvr1y7{padding-left:var(--seq-space-0_5)}.fyvr1yb{padding-left:var(--seq-space-1_5)}.fyvr1yf{padding-right:var(--seq-space-0)}.fyvr1yj{padding-right:var(--seq-space-1)}.fyvr1yn{padding-right:var(--seq-space-2)}.fyvr1yr{padding-right:var(--seq-space-3)}.fyvr1yv{padding-right:var(--seq-space-4)}.fyvr1yz{padding-right:var(--seq-space-5)}.fyvr1z3{padding-right:var(--seq-space-6)}.fyvr1z7{padding-right:var(--seq-space-7)}.fyvr1zb{padding-right:var(--seq-space-8)}.fyvr1zf{padding-right:var(--seq-space-9)}.fyvr1zj{padding-right:var(--seq-space-10)}.fyvr1zn{padding-right:var(--seq-space-12)}.fyvr1zr{padding-right:var(--seq-space-14)}.fyvr1zv{padding-right:var(--seq-space-16)}.fyvr1zz{padding-right:var(--seq-space-0_25)}.fyvr1103{padding-right:var(--seq-space-0_5)}.fyvr1107{padding-right:var(--seq-space-1_5)}.fyvr110b{margin-top:var(--seq-space-0)}.fyvr110f{margin-top:var(--seq-space-1)}.fyvr110j{margin-top:var(--seq-space-2)}.fyvr110n{margin-top:var(--seq-space-3)}.fyvr110r{margin-top:var(--seq-space-4)}.fyvr110v{margin-top:var(--seq-space-5)}.fyvr110z{margin-top:var(--seq-space-6)}.fyvr1113{margin-top:var(--seq-space-7)}.fyvr1117{margin-top:var(--seq-space-8)}.fyvr111b{margin-top:var(--seq-space-9)}.fyvr111f{margin-top:var(--seq-space-10)}.fyvr111j{margin-top:var(--seq-space-12)}.fyvr111n{margin-top:var(--seq-space-14)}.fyvr111r{margin-top:var(--seq-space-16)}.fyvr111v{margin-top:var(--seq-space-0_25)}.fyvr111z{margin-top:var(--seq-space-0_5)}.fyvr1123{margin-top:var(--seq-space-1_5)}.fyvr1127{margin-top:auto}.fyvr112b{margin-bottom:var(--seq-space-0)}.fyvr112f{margin-bottom:var(--seq-space-1)}.fyvr112j{margin-bottom:var(--seq-space-2)}.fyvr112n{margin-bottom:var(--seq-space-3)}.fyvr112r{margin-bottom:var(--seq-space-4)}.fyvr112v{margin-bottom:var(--seq-space-5)}.fyvr112z{margin-bottom:var(--seq-space-6)}.fyvr1133{margin-bottom:var(--seq-space-7)}.fyvr1137{margin-bottom:var(--seq-space-8)}.fyvr113b{margin-bottom:var(--seq-space-9)}.fyvr113f{margin-bottom:var(--seq-space-10)}.fyvr113j{margin-bottom:var(--seq-space-12)}.fyvr113n{margin-bottom:var(--seq-space-14)}.fyvr113r{margin-bottom:var(--seq-space-16)}.fyvr113v{margin-bottom:var(--seq-space-0_25)}.fyvr113z{margin-bottom:var(--seq-space-0_5)}.fyvr1143{margin-bottom:var(--seq-space-1_5)}.fyvr1147{margin-bottom:auto}.fyvr114b{margin-left:var(--seq-space-0)}.fyvr114f{margin-left:var(--seq-space-1)}.fyvr114j{margin-left:var(--seq-space-2)}.fyvr114n{margin-left:var(--seq-space-3)}.fyvr114r{margin-left:var(--seq-space-4)}.fyvr114v{margin-left:var(--seq-space-5)}.fyvr114z{margin-left:var(--seq-space-6)}.fyvr1153{margin-left:var(--seq-space-7)}.fyvr1157{margin-left:var(--seq-space-8)}.fyvr115b{margin-left:var(--seq-space-9)}.fyvr115f{margin-left:var(--seq-space-10)}.fyvr115j{margin-left:var(--seq-space-12)}.fyvr115n{margin-left:var(--seq-space-14)}.fyvr115r{margin-left:var(--seq-space-16)}.fyvr115v{margin-left:var(--seq-space-0_25)}.fyvr115z{margin-left:var(--seq-space-0_5)}.fyvr1163{margin-left:var(--seq-space-1_5)}.fyvr1167{margin-left:auto}.fyvr116b{margin-right:var(--seq-space-0)}.fyvr116f{margin-right:var(--seq-space-1)}.fyvr116j{margin-right:var(--seq-space-2)}.fyvr116n{margin-right:var(--seq-space-3)}.fyvr116r{margin-right:var(--seq-space-4)}.fyvr116v{margin-right:var(--seq-space-5)}.fyvr116z{margin-right:var(--seq-space-6)}.fyvr1173{margin-right:var(--seq-space-7)}.fyvr1177{margin-right:var(--seq-space-8)}.fyvr117b{margin-right:var(--seq-space-9)}.fyvr117f{margin-right:var(--seq-space-10)}.fyvr117j{margin-right:var(--seq-space-12)}.fyvr117n{margin-right:var(--seq-space-14)}.fyvr117r{margin-right:var(--seq-space-16)}.fyvr117v{margin-right:var(--seq-space-0_25)}.fyvr117z{margin-right:var(--seq-space-0_5)}.fyvr1183{margin-right:var(--seq-space-1_5)}.fyvr1187{margin-right:auto}.fyvr118b{gap:var(--seq-space-0)}.fyvr118f{gap:var(--seq-space-1)}.fyvr118j{gap:var(--seq-space-2)}.fyvr118n{gap:var(--seq-space-3)}.fyvr118r{gap:var(--seq-space-4)}.fyvr118v{gap:var(--seq-space-5)}.fyvr118z{gap:var(--seq-space-6)}.fyvr1193{gap:var(--seq-space-7)}.fyvr1197{gap:var(--seq-space-8)}.fyvr119b{gap:var(--seq-space-9)}.fyvr119f{gap:var(--seq-space-10)}.fyvr119j{gap:var(--seq-space-12)}.fyvr119n{gap:var(--seq-space-14)}.fyvr119r{gap:var(--seq-space-16)}.fyvr119v{gap:var(--seq-space-0_25)}.fyvr119z{gap:var(--seq-space-0_5)}.fyvr11a3{gap:var(--seq-space-1_5)}.fyvr11a7{border-bottom-width:var(--seq-border-widths-none)}.fyvr11ab{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11af{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11aj{border-left-width:var(--seq-border-widths-none)}.fyvr11an{border-left-width:var(--seq-border-widths-thin)}.fyvr11ar{border-left-width:var(--seq-border-widths-thick)}.fyvr11av{border-right-width:var(--seq-border-widths-none)}.fyvr11az{border-right-width:var(--seq-border-widths-thin)}.fyvr11b3{border-right-width:var(--seq-border-widths-thick)}.fyvr11b7{border-top-width:var(--seq-border-widths-none)}.fyvr11bb{border-top-width:var(--seq-border-widths-thin)}.fyvr11bf{border-top-width:var(--seq-border-widths-thick)}.fyvr11bj{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11bn{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11br{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11bv{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11bz{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11c3{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11c7{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11cb{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11cf{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11cj{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11cn{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11cr{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11cv{border-top-left-radius:var(--seq-radii-none)}.fyvr11cz{border-top-left-radius:var(--seq-radii-xs)}.fyvr11d3{border-top-left-radius:var(--seq-radii-sm)}.fyvr11d7{border-top-left-radius:var(--seq-radii-md)}.fyvr11db{border-top-left-radius:var(--seq-radii-lg)}.fyvr11df{border-top-left-radius:var(--seq-radii-circle)}.fyvr11dj{border-top-right-radius:var(--seq-radii-none)}.fyvr11dn{border-top-right-radius:var(--seq-radii-xs)}.fyvr11dr{border-top-right-radius:var(--seq-radii-sm)}.fyvr11dv{border-top-right-radius:var(--seq-radii-md)}.fyvr11dz{border-top-right-radius:var(--seq-radii-lg)}.fyvr11e3{border-top-right-radius:var(--seq-radii-circle)}.fyvr11e7{font-size:var(--seq-font-sizes-inherit)}.fyvr11eb{font-size:var(--seq-font-sizes-xsmall)}.fyvr11ef{font-size:var(--seq-font-sizes-small)}.fyvr11ej{font-size:var(--seq-font-sizes-normal)}.fyvr11en{font-size:var(--seq-font-sizes-medium)}.fyvr11er{font-size:var(--seq-font-sizes-large)}.fyvr11ev{font-size:var(--seq-font-sizes-xlarge)}.fyvr11ez{font-weight:var(--seq-font-weights-inherit)}.fyvr11f3{font-weight:var(--seq-font-weights-normal)}.fyvr11f7{font-weight:var(--seq-font-weights-medium)}.fyvr11fb{font-weight:var(--seq-font-weights-semibold)}.fyvr11ff{font-weight:var(--seq-font-weights-bold)}.fyvr11fj{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11fn{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11fr{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11fv{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11fz{line-height:var(--seq-line-heights-4)}.fyvr11g3{line-height:var(--seq-line-heights-5)}.fyvr11g7{line-height:var(--seq-line-heights-6)}.fyvr11gb{line-height:var(--seq-line-heights-7)}.fyvr11gf{line-height:var(--seq-line-heights-9)}.fyvr11gj{line-height:var(--seq-line-heights-inherit)}.fyvr11gn{text-align:center}.fyvr11gr{text-align:left}.fyvr11gv{text-align:right}.fyvr11gz{display:block}.fyvr11h3{display:flex}.fyvr11h7{display:grid}.fyvr11hb{display:inline-block}.fyvr11hf{display:inline-flex}.fyvr11hj{display:none}.fyvr11hn{display:contents}.fyvr11hr{position:absolute}.fyvr11hv{position:fixed}.fyvr11hz{position:relative}.fyvr11i3{position:sticky}.fyvr11i7{flex-direction:column}.fyvr11ib{flex-direction:column-reverse}.fyvr11if{flex-direction:row}.fyvr11ij{flex-direction:row-reverse}.fyvr11in{flex-shrink:0}.fyvr11ir{flex-shrink:1}.fyvr11iv{flex-grow:0}.fyvr11iz{flex-grow:1}.fyvr11j3{flex-wrap:nowrap}.fyvr11j7{flex-wrap:wrap}.fyvr11jb{flex-wrap:wrap-reverse}.fyvr11jf{justify-content:flex-start}.fyvr11jj{justify-content:center}.fyvr11jn{justify-content:flex-end}.fyvr11jr{justify-content:stretch}.fyvr11jv{justify-content:space-around}.fyvr11jz{justify-content:space-between}.fyvr11k3{justify-content:space-evenly}.fyvr11k7{justify-self:flex-start}.fyvr11kb{justify-self:center}.fyvr11kf{justify-self:flex-end}.fyvr11kj{justify-self:stretch}.fyvr11kn{align-items:flex-start}.fyvr11kr{align-items:center}.fyvr11kv{align-items:flex-end}.fyvr11kz{align-items:stretch}.fyvr11l3{align-items:baseline}.fyvr11l7{align-self:flex-start}.fyvr11lb{align-self:center}.fyvr11lf{align-self:flex-end}.fyvr11lj{align-self:stretch}.fyvr11ln{align-self:baseline}.fyvr11lr{overflow-x:auto}.fyvr11lv{overflow-x:hidden}.fyvr11lz{overflow-x:scroll}.fyvr11m3{overflow-x:visible}.fyvr11m7{overflow-y:auto}.fyvr11mb{overflow-y:hidden}.fyvr11mf{overflow-y:scroll}.fyvr11mj{overflow-y:visible}.fyvr11mn{visibility:hidden}.fyvr11mr{visibility:visible}}._4efw240:focus{outline:none}._4efw240:focus-visible{outline:none;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}._1qxj1ibj{font-style:italic}._1qxj1ibk{-webkit-text-decoration:underline;text-decoration:underline}._1qxj1ibl{text-transform:uppercase}._1qxj1ibm{text-transform:capitalize}._1qxj1ibn{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}._2q9vfj7{font-weight:var(--seq-font-weights-normal)}._140wn8nl{outline:2px solid rgba(255,255,255,.1);outline-offset:-2px}._140wn8nr{outline-offset:1px}._140wn8nw{height:28px}._140wn8nx{height:36px}._140wn8ny{height:44px}._140wn8nz{height:52px}._140wn8n10{padding:0;display:flex;align-items:center;justify-content:center}._140wn8n13{outline-color:var(--seq-colors-background-secondary);outline-style:solid;outline-offset:calc(var(--seq-border-widths-thick) * -1);outline-width:var(--seq-border-widths-thick);border-color:transparent}._140wn8n14{outline-color:var(--seq-colors-border-normal);outline-style:solid;outline-offset:calc(var(--seq-border-widths-thick) * -1);outline-width:var(--seq-border-widths-thick);border-color:transparent}._140wn8n15{width:28px}._140wn8n16{width:36px}._140wn8n17{width:44px}._140wn8n18{width:52px}._140wn8n19,._140wn8n1a{padding-left:var(--seq-space-2)}._140wn8n1b{padding-left:var(--seq-space-4)}._140wn8n1c,._140wn8n1d{padding-right:var(--seq-space-2)}._140wn8n1e{padding-right:var(--seq-space-4)}.rhmai65{opacity:.5;cursor:default;pointer-events:none}._43lu9r6{grid-template-columns:1fr 2fr}._43lu9r7{grid-template-columns:2fr 1fr}._1dizidw0{flex-shrink:0}._1dizidw1{height:var(--seq-line-heights-4);width:var(--seq-line-heights-4)}._1dizidw2{height:var(--seq-line-heights-5);width:var(--seq-line-heights-5)}._1dizidw3{height:var(--seq-line-heights-6);width:var(--seq-line-heights-6)}._1dizidw4{height:var(--seq-line-heights-7);width:var(--seq-line-heights-7)}._1dizidw5{height:var(--seq-line-heights-9);width:var(--seq-line-heights-9)}._1c9x66f2{height:20px;width:20px}._1c9x66f3{height:28px;width:28px}._4j62fl0{min-height:64px}._4j62fl2{border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:64px}._4j62fl4{transform-origin:top}._4j62fl5{height:1.25rem;width:1.25rem;display:block}._1k2mbvi1{width:160px}._1k2mbvi2{fill:var(--seq-colors-background-raised)}._1k2mbvi4[data-disabled]{opacity:.8;cursor:default;pointer-events:none;color:var(--seq-colors-text50)}._1k2mbvi4[data-highlighted]{background:var(--seq-colors-background-contrast)}._1k2mbvi5{position:absolute;left:0;width:var(--seq-space-6);display:inline-flex;align-items:center;justify-content:center}._1hq71vk1{height:52px}._1hq71vk1:has(:disabled),._1hq71vk1:has(:disabled):hover{cursor:default;opacity:.5}._1hq71vk1:focus-within{opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}._1bhyzin1{width:12px;height:12px}._1bhyzin2{width:20px;height:20px}._1bhyzin3{width:32px;height:32px}._1bhyzin4{width:40px;height:40px}._1bhyzin5{width:52px;height:52px}._1vqx0w92{height:100%;overflow-y:auto;overscroll-behavior-y:contain}._1vqx0w93{overflow-x:auto;overscroll-behavior-x:contain;width:100%}._1vqx0w95:before{content:"";position:absolute;z-index:1;pointer-events:none}._1vqx0w95:after{content:"";position:absolute;z-index:1;pointer-events:none}._1vqx0w96:before{display:none}._1vqx0w96:after{display:none}._1vqx0w97:before{background:linear-gradient(to top,transparent 0%,var(--seq-colors-background-primary) 100%);left:0;top:0;width:100%;height:var(--seq-space-4)}._1vqx0w97:after{background:linear-gradient(to bottom,transparent 0%,var(--seq-colors-background-primary) 100%);left:0;bottom:0;width:100%;height:var(--seq-space-4)}._1vqx0w98:before{background:linear-gradient(to left,transparent 0%,var(--seq-colors-background-primary) 100%);left:0;top:0;height:100%;width:var(--seq-space-4)}._1vqx0w98:after{background:linear-gradient(to right,transparent 0%,var(--seq-colors-background-primary) 100%);right:0;top:0;height:100%;width:var(--seq-space-4)}._5b32m95{-ms-overflow-style:none;scrollbar-width:none}._5b32m95::-webkit-scrollbar{display:none}._5b32m96{width:100vw;min-height:100px;max-height:calc(100vh - 80px);max-height:calc(100dvh - 80px)}._5b32m97{width:100vw;height:calc(100vh - 70px);height:calc(100dvh - 70px)}._5b32m99{height:auto!important}@media screen and (min-width: 769px){._5b32m96{width:540px;max-height:min(800px,calc(100vh - 80px));max-height:min(800px,calc(100dvh - 80px))}._5b32m97{width:720px;max-height:min(800px,calc(100vh - 80px));max-height:min(800px,calc(100dvh - 80px));height:800px}}._1acm19y1{cursor:text;height:52px;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}._1acm19y1:has(:disabled),._1acm19y1:has(:disabled):hover{cursor:default;opacity:.5}._1acm19y1:focus-within{opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}.y5zf970{width:40px;height:48px;display:flex;justify-content:center;align-items:center;padding:10px;background:var(--seq-colors-background-secondary);border-radius:var(--seq-radii-sm);color:var(--seq-colors-text100)}.y5zf971{height:48px;width:40px;display:flex;justify-content:center;align-items:center;padding:10px;border:none;border-radius:var(--seq-radii-sm);color:var(--seq-colors-text100);background:transparent;text-align:center;caret-color:transparent;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}.y5zf971:disabled{cursor:default;opacity:.5}.y5zf971::-moz-selection{background:transparent}.y5zf971::selection{background:transparent}.y5zf971:hover:not(.y5zf971:disabled){border-color:var(--seq-colors-border-focus)}@keyframes _1jujggt0{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}._1jujggt1{background-image:linear-gradient(-45deg,transparent,var(--seq-colors-background-secondary),transparent);background-size:400% 400%;background-repeat:no-repeat;animation:_1jujggt0 1s ease infinite}._1jujggt2{width:96px;height:var(--seq-line-heights-4)}._1jujggt3{width:100px;height:var(--seq-line-heights-5)}._1jujggt4{width:124px;height:var(--seq-line-heights-6)}._1jujggt5{width:124px;height:var(--seq-line-heights-7)}._1jujggt6{width:148px;height:var(--seq-line-heights-9)}.io59uy4{height:20px;width:20px}.io59uy5{height:28px;width:28px}.io59uy7:after{content:"";display:block;border-radius:999px;background:currentColor}.io59uy9:after{width:14px;height:14px}.io59uya:after{width:18px;height:18px}.gohwum1{height:52px;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}.gohwum1:has(:disabled),.gohwum1:has(:disabled):hover{cursor:default;opacity:.5}.gohwum1:focus{outline:none}.gohwum1:focus-within{outline:none;opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}.gohwuma{box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset}.gohwume{height:52px}.gohwume[data-highlighted]{background:var(--seq-colors-background-secondary)}.gohwume[data-state=checked]{background:var(--seq-colors-background-control)}@keyframes en4abt0{to{transform:rotate(1turn)}}.en4abt1{animation:en4abt0 2s linear infinite}.en4abt2{width:16px;height:16px;stroke-width:3px}.en4abt3{width:24px;height:24px;stroke-width:2px}.en4abt4{width:32px;height:32px;stroke-width:1.5px}._1lp2u8e1{width:48px;height:28px}._1lp2u8e1[data-state=checked]{background:var(--seq-colors-gradient-primary)}._1lp2u8e1:disabled{cursor:default;opacity:.5}._1lp2u8e3{transition:transform .1s ease-out,background .1s ease-out;transform:translate(0);will-change:transform}._1lp2u8e3[data-state=checked]{transform:translate(var(--seq-space-5))}.nwwh3z0{list-style-type:none}.nwwh3za{font-size:.625rem;letter-spacing:.8px}._10c8o0n1:has(:focus-visible){outline:none;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset}._10c8o0n3{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;z-index:2}._10c8o0n3[data-state=active]{color:var(--seq-colors-text100)}._10c8o0n3[disabled]{opacity:.5}._10c8o0n5{transition:transform .2s ease-out}@keyframes _6wut8v2{0%{transform:translate(var(--radix-toast-swipe-end-x))}to{transform:translate(100%)}}._6wut8v1{padding:var(--seq-space-4);padding-top:0;z-index:1000;list-style:none;max-width:532px}._6wut8v3{will-change:transform,opacity}._6wut8v3[data-swipe=move]{transform:translate(var(--radix-toast-swipe-move-x))!important}._6wut8v3[data-swipe=cancel]{transition:transform .2s ease-out;transform:translate(0)}._6wut8v3[data-swipe=end]{animation:_6wut8v2 .2s ease-out}._6wut8v5{color:positive}._6wut8v6{color:negative}._15pztn1{resize:none;cursor:text;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}._15pztn1:disabled,._15pztn1:disabled:hover{cursor:default;opacity:.5}._15pztn1:focus{opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}._15pztn2{resize:vertical}._18h918k6{width:12px;height:12px}._18h918k7{width:20px;height:20px}._18h918k8{width:32px;height:32px}._18h918k9{width:40px;height:40px}._18h918ka{width:64px;height:64px}._18h918kf{max-width:100%;max-height:100%;-o-object-fit:cover;object-fit:cover;width:100%}._18h918k5._18h918k0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0._18h918k6 ._18h918kf{max-width:16px;max-height:16px}._18h918k5._18h918k0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0._18h918k7 ._18h918kf{max-width:20px;max-height:20px}._18h918k5._18h918k0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0._18h918k8 ._18h918kf{max-width:32px;max-height:32px}._18h918k5._18h918k0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0._18h918k9 ._18h918kf{max-width:40px;max-height:40px}._18h918k5._18h918k0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0._18h918ka ._18h918kf{max-width:64px;max-height:64px}.bnrreb2{width:12px;height:12px;font-size:4px}.bnrreb3{width:20px;height:20px;font-size:8px}.bnrreb4{width:32px;height:32px;font-size:9px}.bnrreb5{width:40px;height:40px;font-size:11px}.bnrreb6{width:64px;height:64px;font-size:16px}.bnrreb7{max-width:100%;max-height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.bnrreb1.bnrreb0.fyvr11jg.fyvr11ko.fyvr11hw.fyvr11h0.bnrreb2 .bnrreb7{max-width:12px;max-height:12px}.bnrreb1.bnrreb0.fyvr11jg.fyvr11ko.fyvr11hw.fyvr11h0.bnrreb3 .bnrreb7{max-width:20px;max-height:20px}.bnrreb1.bnrreb0.fyvr11jg.fyvr11ko.fyvr11hw.fyvr11h0.bnrreb4 .bnrreb7{max-width:32px;max-height:32px}.bnrreb1.bnrreb0.fyvr11jg.fyvr11ko.fyvr11hw.fyvr11h0.bnrreb5 .bnrreb7{max-width:40px;max-height:40px}.bnrreb1.bnrreb0.fyvr11jg.fyvr11ko.fyvr11hw.fyvr11h0.bnrreb6 .bnrreb7{max-width:64px;max-height:64px}.bnrreb9{font-size:inherit}.q888p21{fill:var(--seq-colors-background-raised);box-shadow:0 0 10px #00000080}@keyframes _1e9z9270{0%{visibility:hidden}50%{visibility:hidden}to{visibility:visible}}._1e9z9271{animation:_1e9z9270 2s infinite}._1q07ov40{display:grid;grid-column-gap:var(--seq-space-2);grid-row-gap:var(--seq-space-2);grid-template-columns:repeat(1,minmax(0,1fr))}@media screen and (min-width: 769px){._1q07ov40{grid-template-columns:repeat(2,minmax(0,1fr))}}@media screen and (min-width: 1281px){._1q07ov40{grid-template-columns:repeat(3,minmax(0,1fr))}} diff --git a/assets/index-DdY2Dpeu.js b/assets/index-DzJapjX6.js similarity index 56% rename from assets/index-DdY2Dpeu.js rename to assets/index-DzJapjX6.js index 0d5764b..4498c23 100644 --- a/assets/index-DdY2Dpeu.js +++ b/assets/index-DzJapjX6.js @@ -1,4 +1,4 @@ -var jF=Object.defineProperty;var Gk=t=>{throw TypeError(t)};var FF=(t,e,r)=>e in t?jF(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var N=(t,e,r)=>FF(t,typeof e!="symbol"?e+"":e,r),vm=(t,e,r)=>e.has(t)||Gk("Cannot "+r);var w=(t,e,r)=>(vm(t,e,"read from private field"),r?r.call(t):e.get(t)),j=(t,e,r)=>e.has(t)?Gk("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),T=(t,e,r,n)=>(vm(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),Y=(t,e,r)=>(vm(t,e,"access private method"),r);var Il=(t,e,r,n)=>({set _(s){T(t,e,s,r)},get _(){return w(t,e,n)}});function UF(t,e){for(var r=0;rn[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=r(s);fetch(s.href,i)}})();function D3(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var B3={exports:{}},Lv={},L3={exports:{}},Fe={};/** +var UF=Object.defineProperty;var Kk=t=>{throw TypeError(t)};var $F=(t,e,r)=>e in t?UF(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var N=(t,e,r)=>$F(t,typeof e!="symbol"?e+"":e,r),mm=(t,e,r)=>e.has(t)||Kk("Cannot "+r);var w=(t,e,r)=>(mm(t,e,"read from private field"),r?r.call(t):e.get(t)),j=(t,e,r)=>e.has(t)?Kk("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),T=(t,e,r,n)=>(mm(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),Y=(t,e,r)=>(mm(t,e,"access private method"),r);var Ol=(t,e,r,n)=>({set _(s){T(t,e,s,r)},get _(){return w(t,e,n)}});function WF(t,e){for(var r=0;rn[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=r(s);fetch(s.href,i)}})();function L3(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var j3={exports:{}},jv={},F3={exports:{}},Fe={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var jF=Object.defineProperty;var Gk=t=>{throw TypeError(t)};var FF=(t,e,r)=>e in * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Z0=Symbol.for("react.element"),$F=Symbol.for("react.portal"),WF=Symbol.for("react.fragment"),VF=Symbol.for("react.strict_mode"),HF=Symbol.for("react.profiler"),zF=Symbol.for("react.provider"),GF=Symbol.for("react.context"),qF=Symbol.for("react.forward_ref"),KF=Symbol.for("react.suspense"),QF=Symbol.for("react.memo"),JF=Symbol.for("react.lazy"),qk=Symbol.iterator;function YF(t){return t===null||typeof t!="object"?null:(t=qk&&t[qk]||t["@@iterator"],typeof t=="function"?t:null)}var j3={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F3=Object.assign,U3={};function ad(t,e,r){this.props=t,this.context=e,this.refs=U3,this.updater=r||j3}ad.prototype.isReactComponent={};ad.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)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,t,e,"setState")};ad.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function $3(){}$3.prototype=ad.prototype;function q2(t,e,r){this.props=t,this.context=e,this.refs=U3,this.updater=r||j3}var K2=q2.prototype=new $3;K2.constructor=q2;F3(K2,ad.prototype);K2.isPureReactComponent=!0;var Kk=Array.isArray,W3=Object.prototype.hasOwnProperty,Q2={current:null},V3={key:!0,ref:!0,__self:!0,__source:!0};function H3(t,e,r){var n,s={},i=null,o=null;if(e!=null)for(n in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)W3.call(e,n)&&!V3.hasOwnProperty(n)&&(s[n]=e[n]);var a=arguments.length-2;if(a===1)s.children=r;else if(1{throw TypeError(t)};var FF=(t,e,r)=>e in * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var nU=m,sU=Symbol.for("react.element"),iU=Symbol.for("react.fragment"),oU=Object.prototype.hasOwnProperty,aU=nU.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,cU={key:!0,ref:!0,__self:!0,__source:!0};function G3(t,e,r){var n,s={},i=null,o=null;r!==void 0&&(i=""+r),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(o=e.ref);for(n in e)oU.call(e,n)&&!cU.hasOwnProperty(n)&&(s[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)s[n]===void 0&&(s[n]=e[n]);return{$$typeof:sU,type:t,key:i,ref:o,props:s,_owner:aU.current}}Lv.Fragment=iU;Lv.jsx=G3;Lv.jsxs=G3;B3.exports=Lv;var ie=B3.exports,q3={exports:{}},Nn={},K3={exports:{}},Q3={};/** + */var iU=m,oU=Symbol.for("react.element"),aU=Symbol.for("react.fragment"),cU=Object.prototype.hasOwnProperty,lU=iU.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,uU={key:!0,ref:!0,__self:!0,__source:!0};function K3(t,e,r){var n,s={},i=null,o=null;r!==void 0&&(i=""+r),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(o=e.ref);for(n in e)cU.call(e,n)&&!uU.hasOwnProperty(n)&&(s[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)s[n]===void 0&&(s[n]=e[n]);return{$$typeof:oU,type:t,key:i,ref:o,props:s,_owner:lU.current}}jv.Fragment=aU;jv.jsx=K3;jv.jsxs=K3;j3.exports=jv;var ie=j3.exports,Q3={exports:{}},Nn={},J3={exports:{}},Y3={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var jF=Object.defineProperty;var Gk=t=>{throw TypeError(t)};var FF=(t,e,r)=>e in * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(t){function e(C,A){var O=C.length;C.push(A);e:for(;0>>1,B=C[M];if(0>>1;Ms(te,O))Js($,te)?(C[M]=$,C[J]=O,M=J):(C[M]=te,C[q]=O,M=q);else if(Js($,O))C[M]=$,C[J]=O,M=J;else break e}}return A}function s(C,A){var O=C.sortIndex-A.sortIndex;return O!==0?O:C.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var c=[],l=[],u=1,f=null,d=3,h=!1,y=!1,p=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(C){for(var A=r(l);A!==null;){if(A.callback===null)n(l);else if(A.startTime<=C)n(l),A.sortIndex=A.expirationTime,e(c,A);else break;A=r(l)}}function k(C){if(p=!1,x(C),!y)if(r(c)!==null)y=!0,G(S);else{var A=r(l);A!==null&&Z(k,A.startTime-C)}}function S(C,A){y=!1,p&&(p=!1,v(_),_=-1),h=!0;var O=d;try{for(x(A),f=r(c);f!==null&&(!(f.expirationTime>A)||C&&!X());){var M=f.callback;if(typeof M=="function"){f.callback=null,d=f.priorityLevel;var B=M(f.expirationTime<=A);A=t.unstable_now(),typeof B=="function"?f.callback=B:f===r(c)&&n(c),x(A)}else n(c);f=r(c)}if(f!==null)var W=!0;else{var q=r(l);q!==null&&Z(k,q.startTime-A),W=!1}return W}finally{f=null,d=O,h=!1}}var I=!1,R=null,_=-1,V=5,F=-1;function X(){return!(t.unstable_now()-FC||125M?(C.sortIndex=O,e(l,C),r(c)===null&&C===r(l)&&(p?(v(_),_=-1):p=!0,Z(k,O-M))):(C.sortIndex=B,e(c,C),y||h||(y=!0,G(S))),C},t.unstable_shouldYield=X,t.unstable_wrapCallback=function(C){var A=d;return function(){var O=d;d=A;try{return C.apply(this,arguments)}finally{d=O}}}})(Q3);K3.exports=Q3;var lU=K3.exports;/** + */(function(t){function e(C,A){var O=C.length;C.push(A);e:for(;0>>1,B=C[M];if(0>>1;Ms(te,O))Js($,te)?(C[M]=$,C[J]=O,M=J):(C[M]=te,C[q]=O,M=q);else if(Js($,O))C[M]=$,C[J]=O,M=J;else break e}}return A}function s(C,A){var O=C.sortIndex-A.sortIndex;return O!==0?O:C.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var c=[],l=[],u=1,f=null,d=3,h=!1,y=!1,p=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(C){for(var A=r(l);A!==null;){if(A.callback===null)n(l);else if(A.startTime<=C)n(l),A.sortIndex=A.expirationTime,e(c,A);else break;A=r(l)}}function k(C){if(p=!1,x(C),!y)if(r(c)!==null)y=!0,G(S);else{var A=r(l);A!==null&&Z(k,A.startTime-C)}}function S(C,A){y=!1,p&&(p=!1,v(_),_=-1),h=!0;var O=d;try{for(x(A),f=r(c);f!==null&&(!(f.expirationTime>A)||C&&!X());){var M=f.callback;if(typeof M=="function"){f.callback=null,d=f.priorityLevel;var B=M(f.expirationTime<=A);A=t.unstable_now(),typeof B=="function"?f.callback=B:f===r(c)&&n(c),x(A)}else n(c);f=r(c)}if(f!==null)var W=!0;else{var q=r(l);q!==null&&Z(k,q.startTime-A),W=!1}return W}finally{f=null,d=O,h=!1}}var I=!1,R=null,_=-1,V=5,F=-1;function X(){return!(t.unstable_now()-FC||125M?(C.sortIndex=O,e(l,C),r(c)===null&&C===r(l)&&(p?(v(_),_=-1):p=!0,Z(k,O-M))):(C.sortIndex=B,e(c,C),y||h||(y=!0,G(S))),C},t.unstable_shouldYield=X,t.unstable_wrapCallback=function(C){var A=d;return function(){var O=d;d=A;try{return C.apply(this,arguments)}finally{d=O}}}})(Y3);J3.exports=Y3;var fU=J3.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var jF=Object.defineProperty;var Gk=t=>{throw TypeError(t)};var FF=(t,e,r)=>e in * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var uU=m,On=lU;function ne(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qx=Object.prototype.hasOwnProperty,fU=/^[: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]*$/,Jk={},Yk={};function dU(t){return Qx.call(Yk,t)?!0:Qx.call(Jk,t)?!1:fU.test(t)?Yk[t]=!0:(Jk[t]=!0,!1)}function hU(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function pU(t,e,r,n){if(e===null||typeof e>"u"||hU(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Jr(t,e,r,n,s,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var mr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){mr[t]=new Jr(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];mr[e]=new Jr(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){mr[t]=new Jr(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){mr[t]=new Jr(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){mr[t]=new Jr(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){mr[t]=new Jr(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){mr[t]=new Jr(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){mr[t]=new Jr(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){mr[t]=new Jr(t,5,!1,t.toLowerCase(),null,!1,!1)});var Y2=/[\-:]([a-z])/g;function X2(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Y2,X2);mr[e]=new Jr(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Y2,X2);mr[e]=new Jr(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Y2,X2);mr[e]=new Jr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){mr[t]=new Jr(t,1,!1,t.toLowerCase(),null,!1,!1)});mr.xlinkHref=new Jr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){mr[t]=new Jr(t,1,!1,t.toLowerCase(),null,!0,!0)});function Z2(t,e,r,n){var s=mr.hasOwnProperty(e)?mr[e]:null;(s!==null?s.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yx=Object.prototype.hasOwnProperty,hU=/^[: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]*$/,Xk={},Zk={};function pU(t){return Yx.call(Zk,t)?!0:Yx.call(Xk,t)?!1:hU.test(t)?Zk[t]=!0:(Xk[t]=!0,!1)}function yU(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function vU(t,e,r,n){if(e===null||typeof e>"u"||yU(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Yr(t,e,r,n,s,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var mr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){mr[t]=new Yr(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];mr[e]=new Yr(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){mr[t]=new Yr(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){mr[t]=new Yr(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){mr[t]=new Yr(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){mr[t]=new Yr(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){mr[t]=new Yr(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){mr[t]=new Yr(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){mr[t]=new Yr(t,5,!1,t.toLowerCase(),null,!1,!1)});var Z2=/[\-:]([a-z])/g;function eC(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Z2,eC);mr[e]=new Yr(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Z2,eC);mr[e]=new Yr(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Z2,eC);mr[e]=new Yr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){mr[t]=new Yr(t,1,!1,t.toLowerCase(),null,!1,!1)});mr.xlinkHref=new Yr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){mr[t]=new Yr(t,1,!1,t.toLowerCase(),null,!0,!0)});function tC(t,e,r,n){var s=mr.hasOwnProperty(e)?mr[e]:null;(s!==null?s.type!==0:n||!(2a||s[o]!==i[a]){var c=` -`+s[o].replace(" at new "," at ");return t.displayName&&c.includes("")&&(c=c.replace("",t.displayName)),c}while(1<=o&&0<=a);break}}}finally{xm=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?Gd(t):""}function yU(t){switch(t.tag){case 5:return Gd(t.type);case 16:return Gd("Lazy");case 13:return Gd("Suspense");case 19:return Gd("SuspenseList");case 0:case 2:case 15:return t=bm(t.type,!1),t;case 11:return t=bm(t.type.render,!1),t;case 1:return t=bm(t.type,!0),t;default:return""}}function Zx(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Yl:return"Fragment";case Jl:return"Portal";case Jx:return"Profiler";case eC:return"StrictMode";case Yx:return"Suspense";case Xx:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case X3:return(t.displayName||"Context")+".Consumer";case Y3:return(t._context.displayName||"Context")+".Provider";case tC:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case rC:return e=t.displayName||null,e!==null?e:Zx(t.type)||"Memo";case Ro:e=t._payload,t=t._init;try{return Zx(t(e))}catch{}}return null}function vU(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Zx(e);case 8:return e===eC?"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 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function ka(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function e4(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function gU(t){var e=e4(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,i=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function M1(t){t._valueTracker||(t._valueTracker=gU(t))}function t4(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=e4(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function py(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function eb(t,e){var r=e.checked;return kt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function Zk(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=ka(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function r4(t,e){e=e.checked,e!=null&&Z2(t,"checked",e,!1)}function tb(t,e){r4(t,e);var r=ka(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?rb(t,e.type,r):e.hasOwnProperty("defaultValue")&&rb(t,e.type,ka(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function e6(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function rb(t,e,r){(e!=="number"||py(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var qd=Array.isArray;function xu(t,e,r,n){if(t=t.options,e){e={};for(var s=0;s"+e.valueOf().toString()+"",e=D1.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function $h(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var uh={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},mU=["Webkit","ms","Moz","O"];Object.keys(uh).forEach(function(t){mU.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),uh[e]=uh[t]})});function o4(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||uh.hasOwnProperty(t)&&uh[t]?(""+e).trim():e+"px"}function a4(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,s=o4(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,s):t[r]=s}}var xU=kt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ib(t,e){if(e){if(xU[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ne(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ne(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ne(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ne(62))}}function ob(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ab=null;function nC(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var cb=null,bu=null,wu=null;function n6(t){if(t=r1(t)){if(typeof cb!="function")throw Error(ne(280));var e=t.stateNode;e&&(e=Wv(e),cb(t.stateNode,t.type,e))}}function c4(t){bu?wu?wu.push(t):wu=[t]:bu=t}function l4(){if(bu){var t=bu,e=wu;if(wu=bu=null,n6(t),e)for(t=0;t>>=0,t===0?32:31-(OU(t)/RU|0)|0}var B1=64,L1=4194304;function Kd(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function my(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,s=t.suspendedLanes,i=t.pingedLanes,o=r&268435455;if(o!==0){var a=o&~s;a!==0?n=Kd(a):(i&=o,i!==0&&(n=Kd(i)))}else o=r&~s,o!==0?n=Kd(o):i!==0&&(n=Kd(i));if(n===0)return 0;if(e!==0&&e!==n&&!(e&s)&&(s=n&-n,i=e&-e,s>=i||s===16&&(i&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0r;r++)e.push(t);return e}function e1(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Ts(e),t[e]=r}function DU(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0=dh),d6=" ",h6=!1;function I4(t,e){switch(t){case"keyup":return l$.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function O4(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Xl=!1;function f$(t,e){switch(t){case"compositionend":return O4(e);case"keypress":return e.which!==32?null:(h6=!0,d6);case"textInput":return t=e.data,t===d6&&h6?null:t;default:return null}}function d$(t,e){if(Xl)return t==="compositionend"||!fC&&I4(t,e)?(t=T4(),Ip=cC=ia=null,Xl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=g6(r)}}function M4(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?M4(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function D4(){for(var t=window,e=py();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=py(t.document)}return e}function dC(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function w$(t){var e=D4(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&M4(r.ownerDocument.documentElement,r)){if(n!==null&&dC(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var s=r.textContent.length,i=Math.min(n.start,s);n=n.end===void 0?i:Math.min(n.end,s),!t.extend&&i>n&&(s=n,n=i,i=s),s=m6(r,i);var o=m6(r,n);s&&o&&(t.rangeCount!==1||t.anchorNode!==s.node||t.anchorOffset!==s.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(s.node,s.offset),t.removeAllRanges(),i>n?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Zl=null,pb=null,ph=null,yb=!1;function x6(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;yb||Zl==null||Zl!==py(n)||(n=Zl,"selectionStart"in n&&dC(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ph&&qh(ph,n)||(ph=n,n=wy(pb,"onSelect"),0ru||(t.current=wb[ru],wb[ru]=null,ru--)}function lt(t,e){ru++,wb[ru]=t.current,t.current=e}var Aa={},Nr=Ba(Aa),ln=Ba(!1),sl=Aa;function Nf(t,e){var r=t.type.contextTypes;if(!r)return Aa;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in r)s[i]=e[i];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=s),s}function un(t){return t=t.childContextTypes,t!=null}function Ey(){yt(ln),yt(Nr)}function S6(t,e,r){if(Nr.current!==Aa)throw Error(ne(168));lt(Nr,e),lt(ln,r)}function H4(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var s in n)if(!(s in e))throw Error(ne(108,vU(t)||"Unknown",s));return kt({},r,n)}function ky(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Aa,sl=Nr.current,lt(Nr,t),lt(ln,ln.current),!0}function T6(t,e,r){var n=t.stateNode;if(!n)throw Error(ne(169));r?(t=H4(t,e,sl),n.__reactInternalMemoizedMergedChildContext=t,yt(ln),yt(Nr),lt(Nr,t)):yt(ln),lt(ln,r)}var Pi=null,Vv=!1,Mm=!1;function z4(t){Pi===null?Pi=[t]:Pi.push(t)}function _$(t){Vv=!0,z4(t)}function La(){if(!Mm&&Pi!==null){Mm=!0;var t=0,e=tt;try{var r=Pi;for(tt=1;t>=o,s-=o,Hi=1<<32-Ts(e)+s|r<_?(V=R,R=null):V=R.sibling;var F=d(v,R,x[_],k);if(F===null){R===null&&(R=V);break}t&&R&&F.alternate===null&&e(v,R),g=i(F,g,_),I===null?S=F:I.sibling=F,I=F,R=V}if(_===x.length)return r(v,R),gt&&Za(v,_),S;if(R===null){for(;__?(V=R,R=null):V=R.sibling;var X=d(v,R,F.value,k);if(X===null){R===null&&(R=V);break}t&&R&&X.alternate===null&&e(v,R),g=i(X,g,_),I===null?S=X:I.sibling=X,I=X,R=V}if(F.done)return r(v,R),gt&&Za(v,_),S;if(R===null){for(;!F.done;_++,F=x.next())F=f(v,F.value,k),F!==null&&(g=i(F,g,_),I===null?S=F:I.sibling=F,I=F);return gt&&Za(v,_),S}for(R=n(v,R);!F.done;_++,F=x.next())F=h(R,v,_,F.value,k),F!==null&&(t&&F.alternate!==null&&R.delete(F.key===null?_:F.key),g=i(F,g,_),I===null?S=F:I.sibling=F,I=F);return t&&R.forEach(function(re){return e(v,re)}),gt&&Za(v,_),S}function b(v,g,x,k){if(typeof x=="object"&&x!==null&&x.type===Yl&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case _1:e:{for(var S=x.key,I=g;I!==null;){if(I.key===S){if(S=x.type,S===Yl){if(I.tag===7){r(v,I.sibling),g=s(I,x.props.children),g.return=v,v=g;break e}}else if(I.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ro&&O6(S)===I.type){r(v,I.sibling),g=s(I,x.props),g.ref=Nd(v,I,x),g.return=v,v=g;break e}r(v,I);break}else e(v,I);I=I.sibling}x.type===Yl?(g=Jc(x.props.children,v.mode,k,x.key),g.return=v,v=g):(k=Lp(x.type,x.key,x.props,null,v.mode,k),k.ref=Nd(v,g,x),k.return=v,v=k)}return o(v);case Jl:e:{for(I=x.key;g!==null;){if(g.key===I)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){r(v,g.sibling),g=s(g,x.children||[]),g.return=v,v=g;break e}else{r(v,g);break}else e(v,g);g=g.sibling}g=Wm(x,v.mode,k),g.return=v,v=g}return o(v);case Ro:return I=x._init,b(v,g,I(x._payload),k)}if(qd(x))return y(v,g,x,k);if(Td(x))return p(v,g,x,k);H1(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(r(v,g.sibling),g=s(g,x),g.return=v,v=g):(r(v,g),g=$m(x,v.mode,k),g.return=v,v=g),o(v)):r(v,g)}return b}var Mf=Q4(!0),J4=Q4(!1),Ty=Ba(null),Py=null,iu=null,vC=null;function gC(){vC=iu=Py=null}function mC(t){var e=Ty.current;yt(Ty),t._currentValue=e}function kb(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function Eu(t,e){Py=t,vC=iu=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(cn=!0),t.firstContext=null)}function ns(t){var e=t._currentValue;if(vC!==t)if(t={context:t,memoizedValue:e,next:null},iu===null){if(Py===null)throw Error(ne(308));iu=t,Py.dependencies={lanes:0,firstContext:t}}else iu=iu.next=t;return e}var pc=null;function xC(t){pc===null?pc=[t]:pc.push(t)}function Y4(t,e,r,n){var s=e.interleaved;return s===null?(r.next=r,xC(e)):(r.next=s.next,s.next=r),e.interleaved=r,no(t,n)}function no(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}var No=!1;function bC(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function X4(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Qi(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function pa(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,Ge&2){var s=n.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),n.pending=e,no(t,r)}return s=n.interleaved,s===null?(e.next=e,xC(n)):(e.next=s.next,s.next=e),n.interleaved=e,no(t,r)}function Rp(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,iC(t,r)}}function R6(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?s=i=o:i=i.next=o,r=r.next}while(r!==null);i===null?s=i=e:i=i.next=e}else s=i=e;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function Iy(t,e,r,n){var s=t.updateQueue;No=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var c=a,l=c.next;c.next=null,o===null?i=l:o.next=l,o=c;var u=t.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==o&&(a===null?u.firstBaseUpdate=l:a.next=l,u.lastBaseUpdate=c))}if(i!==null){var f=s.baseState;o=0,u=l=c=null,a=i;do{var d=a.lane,h=a.eventTime;if((n&d)===d){u!==null&&(u=u.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=t,p=a;switch(d=e,h=r,p.tag){case 1:if(y=p.payload,typeof y=="function"){f=y.call(h,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=p.payload,d=typeof y=="function"?y.call(h,f,d):y,d==null)break e;f=kt({},f,d);break e;case 2:No=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,d=s.effects,d===null?s.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(l=u=h,c=f):u=u.next=h,o|=d;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;d=a,a=d.next,d.next=null,s.lastBaseUpdate=d,s.shared.pending=null}}while(!0);if(u===null&&(c=f),s.baseState=c,s.firstBaseUpdate=l,s.lastBaseUpdate=u,e=s.shared.interleaved,e!==null){s=e;do o|=s.lane,s=s.next;while(s!==e)}else i===null&&(s.shared.lanes=0);al|=o,t.lanes=o,t.memoizedState=f}}function N6(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;er?r:4,t(!0);var n=Bm.transition;Bm.transition={};try{t(!1),e()}finally{tt=r,Bm.transition=n}}function yT(){return ss().memoizedState}function L$(t,e,r){var n=va(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},vT(t))gT(e,r);else if(r=Y4(t,e,r,n),r!==null){var s=zr();Ps(r,t,n,s),mT(r,e,n)}}function j$(t,e,r){var n=va(t),s={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(vT(t))gT(e,s);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,a=i(o,r);if(s.hasEagerState=!0,s.eagerState=a,Ns(a,o)){var c=e.interleaved;c===null?(s.next=s,xC(e)):(s.next=c.next,c.next=s),e.interleaved=s;return}}catch{}finally{}r=Y4(t,e,s,n),r!==null&&(s=zr(),Ps(r,t,n,s),mT(r,e,n))}}function vT(t){var e=t.alternate;return t===Et||e!==null&&e===Et}function gT(t,e){yh=Ry=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function mT(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,iC(t,r)}}var Ny={readContext:ns,useCallback:wr,useContext:wr,useEffect:wr,useImperativeHandle:wr,useInsertionEffect:wr,useLayoutEffect:wr,useMemo:wr,useReducer:wr,useRef:wr,useState:wr,useDebugValue:wr,useDeferredValue:wr,useTransition:wr,useMutableSource:wr,useSyncExternalStore:wr,useId:wr,unstable_isNewReconciler:!1},F$={readContext:ns,useCallback:function(t,e){return Hs().memoizedState=[t,e===void 0?null:e],t},useContext:ns,useEffect:M6,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,_p(4194308,4,uT.bind(null,e,t),r)},useLayoutEffect:function(t,e){return _p(4194308,4,t,e)},useInsertionEffect:function(t,e){return _p(4,2,t,e)},useMemo:function(t,e){var r=Hs();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Hs();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=L$.bind(null,Et,t),[n.memoizedState,t]},useRef:function(t){var e=Hs();return t={current:t},e.memoizedState=t},useState:_6,useDebugValue:PC,useDeferredValue:function(t){return Hs().memoizedState=t},useTransition:function(){var t=_6(!1),e=t[0];return t=B$.bind(null,t[1]),Hs().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=Et,s=Hs();if(gt){if(r===void 0)throw Error(ne(407));r=r()}else{if(r=e(),ir===null)throw Error(ne(349));ol&30||rT(n,e,r)}s.memoizedState=r;var i={value:r,getSnapshot:e};return s.queue=i,M6(sT.bind(null,n,i,t),[t]),n.flags|=2048,t0(9,nT.bind(null,n,i,r,e),void 0,null),r},useId:function(){var t=Hs(),e=ir.identifierPrefix;if(gt){var r=zi,n=Hi;r=(n&~(1<<32-Ts(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=Zh++,0")&&(c=c.replace("",t.displayName)),c}while(1<=o&&0<=a);break}}}finally{wm=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?qd(t):""}function gU(t){switch(t.tag){case 5:return qd(t.type);case 16:return qd("Lazy");case 13:return qd("Suspense");case 19:return qd("SuspenseList");case 0:case 2:case 15:return t=Cm(t.type,!1),t;case 11:return t=Cm(t.type.render,!1),t;case 1:return t=Cm(t.type,!0),t;default:return""}}function tb(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Xl:return"Fragment";case Yl:return"Portal";case Xx:return"Profiler";case rC:return"StrictMode";case Zx:return"Suspense";case eb:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case e4:return(t.displayName||"Context")+".Consumer";case Z3:return(t._context.displayName||"Context")+".Provider";case nC:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case sC:return e=t.displayName||null,e!==null?e:tb(t.type)||"Memo";case No:e=t._payload,t=t._init;try{return tb(t(e))}catch{}}return null}function mU(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return tb(e);case 8:return e===rC?"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 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Aa(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function r4(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function xU(t){var e=r4(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,i=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function D1(t){t._valueTracker||(t._valueTracker=xU(t))}function n4(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=r4(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function yy(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function rb(t,e){var r=e.checked;return kt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function t6(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=Aa(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function s4(t,e){e=e.checked,e!=null&&tC(t,"checked",e,!1)}function nb(t,e){s4(t,e);var r=Aa(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?sb(t,e.type,r):e.hasOwnProperty("defaultValue")&&sb(t,e.type,Aa(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function r6(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function sb(t,e,r){(e!=="number"||yy(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var Kd=Array.isArray;function bu(t,e,r,n){if(t=t.options,e){e={};for(var s=0;s"+e.valueOf().toString()+"",e=B1.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Wh(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var fh={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},bU=["Webkit","ms","Moz","O"];Object.keys(fh).forEach(function(t){bU.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),fh[e]=fh[t]})});function c4(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||fh.hasOwnProperty(t)&&fh[t]?(""+e).trim():e+"px"}function l4(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,s=c4(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,s):t[r]=s}}var wU=kt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ab(t,e){if(e){if(wU[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ne(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ne(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ne(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ne(62))}}function cb(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var lb=null;function iC(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ub=null,wu=null,Cu=null;function i6(t){if(t=n1(t)){if(typeof ub!="function")throw Error(ne(280));var e=t.stateNode;e&&(e=Vv(e),ub(t.stateNode,t.type,e))}}function u4(t){wu?Cu?Cu.push(t):Cu=[t]:wu=t}function f4(){if(wu){var t=wu,e=Cu;if(Cu=wu=null,i6(t),e)for(t=0;t>>=0,t===0?32:31-(NU(t)/_U|0)|0}var L1=64,j1=4194304;function Qd(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function xy(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,s=t.suspendedLanes,i=t.pingedLanes,o=r&268435455;if(o!==0){var a=o&~s;a!==0?n=Qd(a):(i&=o,i!==0&&(n=Qd(i)))}else o=r&~s,o!==0?n=Qd(o):i!==0&&(n=Qd(i));if(n===0)return 0;if(e!==0&&e!==n&&!(e&s)&&(s=n&-n,i=e&-e,s>=i||s===16&&(i&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0r;r++)e.push(t);return e}function t1(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Ps(e),t[e]=r}function LU(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0=hh),p6=" ",y6=!1;function R4(t,e){switch(t){case"keyup":return f$.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function N4(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Zl=!1;function h$(t,e){switch(t){case"compositionend":return N4(e);case"keypress":return e.which!==32?null:(y6=!0,p6);case"textInput":return t=e.data,t===p6&&y6?null:t;default:return null}}function p$(t,e){if(Zl)return t==="compositionend"||!hC&&R4(t,e)?(t=I4(),Op=uC=oa=null,Zl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=x6(r)}}function B4(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?B4(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function L4(){for(var t=window,e=yy();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=yy(t.document)}return e}function pC(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function E$(t){var e=L4(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&B4(r.ownerDocument.documentElement,r)){if(n!==null&&pC(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var s=r.textContent.length,i=Math.min(n.start,s);n=n.end===void 0?i:Math.min(n.end,s),!t.extend&&i>n&&(s=n,n=i,i=s),s=b6(r,i);var o=b6(r,n);s&&o&&(t.rangeCount!==1||t.anchorNode!==s.node||t.anchorOffset!==s.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(s.node,s.offset),t.removeAllRanges(),i>n?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,eu=null,vb=null,yh=null,gb=!1;function w6(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;gb||eu==null||eu!==yy(n)||(n=eu,"selectionStart"in n&&pC(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),yh&&Kh(yh,n)||(yh=n,n=Cy(vb,"onSelect"),0nu||(t.current=Eb[nu],Eb[nu]=null,nu--)}function lt(t,e){nu++,Eb[nu]=t.current,t.current=e}var Sa={},Nr=La(Sa),ln=La(!1),il=Sa;function _f(t,e){var r=t.type.contextTypes;if(!r)return Sa;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in r)s[i]=e[i];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=s),s}function un(t){return t=t.childContextTypes,t!=null}function ky(){yt(ln),yt(Nr)}function P6(t,e,r){if(Nr.current!==Sa)throw Error(ne(168));lt(Nr,e),lt(ln,r)}function G4(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var s in n)if(!(s in e))throw Error(ne(108,mU(t)||"Unknown",s));return kt({},r,n)}function Ay(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Sa,il=Nr.current,lt(Nr,t),lt(ln,ln.current),!0}function I6(t,e,r){var n=t.stateNode;if(!n)throw Error(ne(169));r?(t=G4(t,e,il),n.__reactInternalMemoizedMergedChildContext=t,yt(ln),yt(Nr),lt(Nr,t)):yt(ln),lt(ln,r)}var Ii=null,Hv=!1,Bm=!1;function q4(t){Ii===null?Ii=[t]:Ii.push(t)}function D$(t){Hv=!0,q4(t)}function ja(){if(!Bm&&Ii!==null){Bm=!0;var t=0,e=tt;try{var r=Ii;for(tt=1;t>=o,s-=o,zi=1<<32-Ps(e)+s|r<_?(V=R,R=null):V=R.sibling;var F=d(v,R,x[_],k);if(F===null){R===null&&(R=V);break}t&&R&&F.alternate===null&&e(v,R),g=i(F,g,_),I===null?S=F:I.sibling=F,I=F,R=V}if(_===x.length)return r(v,R),gt&&ec(v,_),S;if(R===null){for(;__?(V=R,R=null):V=R.sibling;var X=d(v,R,F.value,k);if(X===null){R===null&&(R=V);break}t&&R&&X.alternate===null&&e(v,R),g=i(X,g,_),I===null?S=X:I.sibling=X,I=X,R=V}if(F.done)return r(v,R),gt&&ec(v,_),S;if(R===null){for(;!F.done;_++,F=x.next())F=f(v,F.value,k),F!==null&&(g=i(F,g,_),I===null?S=F:I.sibling=F,I=F);return gt&&ec(v,_),S}for(R=n(v,R);!F.done;_++,F=x.next())F=h(R,v,_,F.value,k),F!==null&&(t&&F.alternate!==null&&R.delete(F.key===null?_:F.key),g=i(F,g,_),I===null?S=F:I.sibling=F,I=F);return t&&R.forEach(function(re){return e(v,re)}),gt&&ec(v,_),S}function b(v,g,x,k){if(typeof x=="object"&&x!==null&&x.type===Xl&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case M1:e:{for(var S=x.key,I=g;I!==null;){if(I.key===S){if(S=x.type,S===Xl){if(I.tag===7){r(v,I.sibling),g=s(I,x.props.children),g.return=v,v=g;break e}}else if(I.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===No&&N6(S)===I.type){r(v,I.sibling),g=s(I,x.props),g.ref=_d(v,I,x),g.return=v,v=g;break e}r(v,I);break}else e(v,I);I=I.sibling}x.type===Xl?(g=Yc(x.props.children,v.mode,k,x.key),g.return=v,v=g):(k=jp(x.type,x.key,x.props,null,v.mode,k),k.ref=_d(v,g,x),k.return=v,v=k)}return o(v);case Yl:e:{for(I=x.key;g!==null;){if(g.key===I)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){r(v,g.sibling),g=s(g,x.children||[]),g.return=v,v=g;break e}else{r(v,g);break}else e(v,g);g=g.sibling}g=Hm(x,v.mode,k),g.return=v,v=g}return o(v);case No:return I=x._init,b(v,g,I(x._payload),k)}if(Kd(x))return y(v,g,x,k);if(Pd(x))return p(v,g,x,k);z1(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(r(v,g.sibling),g=s(g,x),g.return=v,v=g):(r(v,g),g=Vm(x,v.mode,k),g.return=v,v=g),o(v)):r(v,g)}return b}var Df=Y4(!0),X4=Y4(!1),Py=La(null),Iy=null,ou=null,mC=null;function xC(){mC=ou=Iy=null}function bC(t){var e=Py.current;yt(Py),t._currentValue=e}function Sb(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function ku(t,e){Iy=t,mC=ou=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(cn=!0),t.firstContext=null)}function ns(t){var e=t._currentValue;if(mC!==t)if(t={context:t,memoizedValue:e,next:null},ou===null){if(Iy===null)throw Error(ne(308));ou=t,Iy.dependencies={lanes:0,firstContext:t}}else ou=ou.next=t;return e}var yc=null;function wC(t){yc===null?yc=[t]:yc.push(t)}function Z4(t,e,r,n){var s=e.interleaved;return s===null?(r.next=r,wC(e)):(r.next=s.next,s.next=r),e.interleaved=r,so(t,n)}function so(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}var _o=!1;function CC(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function eT(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Ji(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function ya(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,Ge&2){var s=n.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),n.pending=e,so(t,r)}return s=n.interleaved,s===null?(e.next=e,wC(n)):(e.next=s.next,s.next=e),n.interleaved=e,so(t,r)}function Np(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,aC(t,r)}}function _6(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?s=i=o:i=i.next=o,r=r.next}while(r!==null);i===null?s=i=e:i=i.next=e}else s=i=e;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function Oy(t,e,r,n){var s=t.updateQueue;_o=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var c=a,l=c.next;c.next=null,o===null?i=l:o.next=l,o=c;var u=t.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==o&&(a===null?u.firstBaseUpdate=l:a.next=l,u.lastBaseUpdate=c))}if(i!==null){var f=s.baseState;o=0,u=l=c=null,a=i;do{var d=a.lane,h=a.eventTime;if((n&d)===d){u!==null&&(u=u.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=t,p=a;switch(d=e,h=r,p.tag){case 1:if(y=p.payload,typeof y=="function"){f=y.call(h,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=p.payload,d=typeof y=="function"?y.call(h,f,d):y,d==null)break e;f=kt({},f,d);break e;case 2:_o=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,d=s.effects,d===null?s.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(l=u=h,c=f):u=u.next=h,o|=d;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;d=a,a=d.next,d.next=null,s.lastBaseUpdate=d,s.shared.pending=null}}while(!0);if(u===null&&(c=f),s.baseState=c,s.firstBaseUpdate=l,s.lastBaseUpdate=u,e=s.shared.interleaved,e!==null){s=e;do o|=s.lane,s=s.next;while(s!==e)}else i===null&&(s.shared.lanes=0);cl|=o,t.lanes=o,t.memoizedState=f}}function M6(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;er?r:4,t(!0);var n=jm.transition;jm.transition={};try{t(!1),e()}finally{tt=r,jm.transition=n}}function gT(){return ss().memoizedState}function F$(t,e,r){var n=ga(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},mT(t))xT(e,r);else if(r=Z4(t,e,r,n),r!==null){var s=Gr();Is(r,t,n,s),bT(r,e,n)}}function U$(t,e,r){var n=ga(t),s={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(mT(t))xT(e,s);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,a=i(o,r);if(s.hasEagerState=!0,s.eagerState=a,_s(a,o)){var c=e.interleaved;c===null?(s.next=s,wC(e)):(s.next=c.next,c.next=s),e.interleaved=s;return}}catch{}finally{}r=Z4(t,e,s,n),r!==null&&(s=Gr(),Is(r,t,n,s),bT(r,e,n))}}function mT(t){var e=t.alternate;return t===Et||e!==null&&e===Et}function xT(t,e){vh=Ny=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function bT(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,aC(t,r)}}var _y={readContext:ns,useCallback:wr,useContext:wr,useEffect:wr,useImperativeHandle:wr,useInsertionEffect:wr,useLayoutEffect:wr,useMemo:wr,useReducer:wr,useRef:wr,useState:wr,useDebugValue:wr,useDeferredValue:wr,useTransition:wr,useMutableSource:wr,useSyncExternalStore:wr,useId:wr,unstable_isNewReconciler:!1},$$={readContext:ns,useCallback:function(t,e){return zs().memoizedState=[t,e===void 0?null:e],t},useContext:ns,useEffect:B6,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,Mp(4194308,4,dT.bind(null,e,t),r)},useLayoutEffect:function(t,e){return Mp(4194308,4,t,e)},useInsertionEffect:function(t,e){return Mp(4,2,t,e)},useMemo:function(t,e){var r=zs();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=zs();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=F$.bind(null,Et,t),[n.memoizedState,t]},useRef:function(t){var e=zs();return t={current:t},e.memoizedState=t},useState:D6,useDebugValue:OC,useDeferredValue:function(t){return zs().memoizedState=t},useTransition:function(){var t=D6(!1),e=t[0];return t=j$.bind(null,t[1]),zs().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=Et,s=zs();if(gt){if(r===void 0)throw Error(ne(407));r=r()}else{if(r=e(),ir===null)throw Error(ne(349));al&30||sT(n,e,r)}s.memoizedState=r;var i={value:r,getSnapshot:e};return s.queue=i,B6(oT.bind(null,n,i,t),[t]),n.flags|=2048,r0(9,iT.bind(null,n,i,r,e),void 0,null),r},useId:function(){var t=zs(),e=ir.identifierPrefix;if(gt){var r=Gi,n=zi;r=(n&~(1<<32-Ps(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=e0++,0<\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=o.createElement(r,{is:n.is}):(t=o.createElement(r),r==="select"&&(o=t,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):t=o.createElementNS(t,r),t[si]=e,t[Jh]=n,PT(t,e,!1,!1),e.stateNode=t;e:{switch(o=ob(r,n),r){case"dialog":ut("cancel",t),ut("close",t),s=n;break;case"iframe":case"object":case"embed":ut("load",t),s=n;break;case"video":case"audio":for(s=0;sLf&&(e.flags|=128,n=!0,_d(i,!1),e.lanes=4194304)}else{if(!n)if(t=Oy(o),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),_d(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!gt)return Cr(e),null}else 2*_t()-i.renderingStartTime>Lf&&r!==1073741824&&(e.flags|=128,n=!0,_d(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(r=i.last,r!==null?r.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=_t(),e.sibling=null,r=bt.current,lt(bt,n?r&1|2:r&1),e):(Cr(e),null);case 22:case 23:return MC(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?En&1073741824&&(Cr(e),e.subtreeFlags&6&&(e.flags|=8192)):Cr(e),null;case 24:return null;case 25:return null}throw Error(ne(156,e.tag))}function q$(t,e){switch(pC(e),e.tag){case 1:return un(e.type)&&Ey(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Df(),yt(ln),yt(Nr),EC(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return CC(e),null;case 13:if(yt(bt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(ne(340));_f()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return yt(bt),null;case 4:return Df(),null;case 10:return mC(e.type._context),null;case 22:case 23:return MC(),null;case 24:return null;default:return null}}var G1=!1,Ir=!1,K$=typeof WeakSet=="function"?WeakSet:Set,pe=null;function ou(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){St(t,e,n)}else r.current=null}function _b(t,e,r){try{r()}catch(n){St(t,e,n)}}var z6=!1;function Q$(t,e){if(vb=xy,t=D4(),dC(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var s=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var o=0,a=-1,c=-1,l=0,u=0,f=t,d=null;t:for(;;){for(var h;f!==r||s!==0&&f.nodeType!==3||(a=o+s),f!==i||n!==0&&f.nodeType!==3||(c=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===t)break t;if(d===r&&++l===s&&(a=o),d===i&&++u===n&&(c=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=a===-1||c===-1?null:{start:a,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(gb={focusedElem:t,selectionRange:r},xy=!1,pe=e;pe!==null;)if(e=pe,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,pe=t;else for(;pe!==null;){e=pe;try{var y=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var p=y.memoizedProps,b=y.memoizedState,v=e.stateNode,g=v.getSnapshotBeforeUpdate(e.elementType===e.type?p:ps(e.type,p),b);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=e.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ne(163))}}catch(k){St(e,e.return,k)}if(t=e.sibling,t!==null){t.return=e.return,pe=t;break}pe=e.return}return y=z6,z6=!1,y}function vh(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&t)===t){var i=s.destroy;s.destroy=void 0,i!==void 0&&_b(e,r,i)}s=s.next}while(s!==n)}}function Gv(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function Mb(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function RT(t){var e=t.alternate;e!==null&&(t.alternate=null,RT(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[si],delete e[Jh],delete e[bb],delete e[R$],delete e[N$])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function NT(t){return t.tag===5||t.tag===3||t.tag===4}function G6(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||NT(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Db(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=Cy));else if(n!==4&&(t=t.child,t!==null))for(Db(t,e,r),t=t.sibling;t!==null;)Db(t,e,r),t=t.sibling}function Bb(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(Bb(t,e,r),t=t.sibling;t!==null;)Bb(t,e,r),t=t.sibling}var ur=null,Cs=!1;function bo(t,e,r){for(r=r.child;r!==null;)_T(t,e,r),r=r.sibling}function _T(t,e,r){if(ui&&typeof ui.onCommitFiberUnmount=="function")try{ui.onCommitFiberUnmount(jv,r)}catch{}switch(r.tag){case 5:Ir||ou(r,e);case 6:var n=ur,s=Cs;ur=null,bo(t,e,r),ur=n,Cs=s,ur!==null&&(Cs?(t=ur,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):ur.removeChild(r.stateNode));break;case 18:ur!==null&&(Cs?(t=ur,r=r.stateNode,t.nodeType===8?_m(t.parentNode,r):t.nodeType===1&&_m(t,r),zh(t)):_m(ur,r.stateNode));break;case 4:n=ur,s=Cs,ur=r.stateNode.containerInfo,Cs=!0,bo(t,e,r),ur=n,Cs=s;break;case 0:case 11:case 14:case 15:if(!Ir&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){s=n=n.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&_b(r,e,o),s=s.next}while(s!==n)}bo(t,e,r);break;case 1:if(!Ir&&(ou(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){St(r,e,a)}bo(t,e,r);break;case 21:bo(t,e,r);break;case 22:r.mode&1?(Ir=(n=Ir)||r.memoizedState!==null,bo(t,e,r),Ir=n):bo(t,e,r);break;default:bo(t,e,r)}}function q6(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new K$),e.forEach(function(n){var s=sW.bind(null,t,n);r.has(n)||(r.add(n),n.then(s,s))})}}function as(t,e){var r=e.deletions;if(r!==null)for(var n=0;ns&&(s=o),n&=~i}if(n=s,n=_t()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Y$(n/1960))-n,10t?16:t,oa===null)var n=!1;else{if(t=oa,oa=null,Dy=0,Ge&6)throw Error(ne(331));var s=Ge;for(Ge|=4,pe=t.current;pe!==null;){var i=pe,o=i.child;if(pe.flags&16){var a=i.deletions;if(a!==null){for(var c=0;c_t()-NC?Qc(t,0):RC|=r),fn(t,e)}function $T(t,e){e===0&&(t.mode&1?(e=L1,L1<<=1,!(L1&130023424)&&(L1=4194304)):e=1);var r=zr();t=no(t,e),t!==null&&(e1(t,e,r),fn(t,r))}function nW(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),$T(t,r)}function sW(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,s=t.memoizedState;s!==null&&(r=s.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(ne(314))}n!==null&&n.delete(e),$T(t,r)}var WT;WT=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||ln.current)cn=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return cn=!1,z$(t,e,r);cn=!!(t.flags&131072)}else cn=!1,gt&&e.flags&1048576&&G4(e,Sy,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;Mp(t,e),t=e.pendingProps;var s=Nf(e,Nr.current);Eu(e,r),s=AC(null,e,n,t,s,r);var i=SC();return e.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,un(n)?(i=!0,ky(e)):i=!1,e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,bC(e),s.updater=zv,e.stateNode=s,s._reactInternals=e,Sb(e,n,t,r),e=Ib(null,e,n,!0,i,r)):(e.tag=0,gt&&i&&hC(e),Fr(null,e,s,r),e=e.child),e;case 16:n=e.elementType;e:{switch(Mp(t,e),t=e.pendingProps,s=n._init,n=s(n._payload),e.type=n,s=e.tag=oW(n),t=ps(n,t),s){case 0:e=Pb(null,e,n,t,r);break e;case 1:e=W6(null,e,n,t,r);break e;case 11:e=U6(null,e,n,t,r);break e;case 14:e=$6(null,e,n,ps(n.type,t),r);break e}throw Error(ne(306,n,""))}return e;case 0:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ps(n,s),Pb(t,e,n,s,r);case 1:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ps(n,s),W6(t,e,n,s,r);case 3:e:{if(AT(e),t===null)throw Error(ne(387));n=e.pendingProps,i=e.memoizedState,s=i.element,X4(t,e),Iy(e,n,null,r);var o=e.memoizedState;if(n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){s=Bf(Error(ne(423)),e),e=V6(t,e,n,r,s);break e}else if(n!==s){s=Bf(Error(ne(424)),e),e=V6(t,e,n,r,s);break e}else for(Sn=ha(e.stateNode.containerInfo.firstChild),Tn=e,gt=!0,Es=null,r=J4(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(_f(),n===s){e=so(t,e,r);break e}Fr(t,e,n,r)}e=e.child}return e;case 5:return Z4(e),t===null&&Eb(e),n=e.type,s=e.pendingProps,i=t!==null?t.memoizedProps:null,o=s.children,mb(n,s)?o=null:i!==null&&mb(n,i)&&(e.flags|=32),kT(t,e),Fr(t,e,o,r),e.child;case 6:return t===null&&Eb(e),null;case 13:return ST(t,e,r);case 4:return wC(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Mf(e,null,n,r):Fr(t,e,n,r),e.child;case 11:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ps(n,s),U6(t,e,n,s,r);case 7:return Fr(t,e,e.pendingProps,r),e.child;case 8:return Fr(t,e,e.pendingProps.children,r),e.child;case 12:return Fr(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,s=e.pendingProps,i=e.memoizedProps,o=s.value,lt(Ty,n._currentValue),n._currentValue=o,i!==null)if(Ns(i.value,o)){if(i.children===s.children&&!ln.current){e=so(t,e,r);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var c=a.firstContext;c!==null;){if(c.context===n){if(i.tag===1){c=Qi(-1,r&-r),c.tag=2;var l=i.updateQueue;if(l!==null){l=l.shared;var u=l.pending;u===null?c.next=c:(c.next=u.next,u.next=c),l.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),kb(i.return,r,e),a.lanes|=r;break}c=c.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ne(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),kb(o,r,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Fr(t,e,s.children,r),e=e.child}return e;case 9:return s=e.type,n=e.pendingProps.children,Eu(e,r),s=ns(s),n=n(s),e.flags|=1,Fr(t,e,n,r),e.child;case 14:return n=e.type,s=ps(n,e.pendingProps),s=ps(n.type,s),$6(t,e,n,s,r);case 15:return CT(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ps(n,s),Mp(t,e),e.tag=1,un(n)?(t=!0,ky(e)):t=!1,Eu(e,r),xT(e,n,s),Sb(e,n,s,r),Ib(null,e,n,!0,t,r);case 19:return TT(t,e,r);case 22:return ET(t,e,r)}throw Error(ne(156,e.tag))};function VT(t,e){return v4(t,e)}function iW(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xn(t,e,r,n){return new iW(t,e,r,n)}function BC(t){return t=t.prototype,!(!t||!t.isReactComponent)}function oW(t){if(typeof t=="function")return BC(t)?1:0;if(t!=null){if(t=t.$$typeof,t===tC)return 11;if(t===rC)return 14}return 2}function ga(t,e){var r=t.alternate;return r===null?(r=Xn(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function Lp(t,e,r,n,s,i){var o=2;if(n=t,typeof t=="function")BC(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Yl:return Jc(r.children,s,i,e);case eC:o=8,s|=8;break;case Jx:return t=Xn(12,r,e,s|2),t.elementType=Jx,t.lanes=i,t;case Yx:return t=Xn(13,r,e,s),t.elementType=Yx,t.lanes=i,t;case Xx:return t=Xn(19,r,e,s),t.elementType=Xx,t.lanes=i,t;case Z3:return Kv(r,s,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Y3:o=10;break e;case X3:o=9;break e;case tC:o=11;break e;case rC:o=14;break e;case Ro:o=16,n=null;break e}throw Error(ne(130,t==null?t:typeof t,""))}return e=Xn(o,r,e,s),e.elementType=t,e.type=n,e.lanes=i,e}function Jc(t,e,r,n){return t=Xn(7,t,n,e),t.lanes=r,t}function Kv(t,e,r,n){return t=Xn(22,t,n,e),t.elementType=Z3,t.lanes=r,t.stateNode={isHidden:!1},t}function $m(t,e,r){return t=Xn(6,t,null,e),t.lanes=r,t}function Wm(t,e,r){return e=Xn(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function aW(t,e,r,n,s){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cm(0),this.expirationTimes=Cm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cm(0),this.identifierPrefix=n,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function LC(t,e,r,n,s,i,o,a,c){return t=new aW(t,e,r,a,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Xn(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},bC(i),t}function cW(t,e,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qT)}catch(t){console.error(t)}}qT(),q3.exports=Nn;var ja=q3.exports;const hW=D3(ja),KT=m.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Zv=m.createContext({});function pW(){return m.useContext(Zv).visualElement}const eg=m.createContext(null),tg=typeof document<"u",jy=tg?m.useLayoutEffect:m.useEffect,QT=m.createContext({strict:!1});function yW(t,e,r,n){const s=pW(),i=m.useContext(QT),o=m.useContext(eg),a=m.useContext(KT).reducedMotion,c=m.useRef();n=n||i.renderer,!c.current&&n&&(c.current=n(t,{visualState:e,parent:s,props:r,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:a}));const l=c.current;return m.useInsertionEffect(()=>{l&&l.update(r,o)}),jy(()=>{l&&l.render()}),m.useEffect(()=>{l&&l.updateFeatures()}),(window.HandoffAppearAnimations?jy:m.useEffect)(()=>{l&&l.animationState&&l.animationState.animateChanges()}),l}function cu(t){return typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function vW(t,e,r){return m.useCallback(n=>{n&&t.mount&&t.mount(n),e&&(n?e.mount(n):e.unmount()),r&&(typeof r=="function"?r(n):cu(r)&&(r.current=n))},[e])}function n0(t){return typeof t=="string"||Array.isArray(t)}function rg(t){return typeof t=="object"&&typeof t.start=="function"}const $C=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],WC=["initial",...$C];function ng(t){return rg(t.animate)||WC.some(e=>n0(t[e]))}function JT(t){return!!(ng(t)||t.variants)}function gW(t,e){if(ng(t)){const{initial:r,animate:n}=t;return{initial:r===!1||n0(r)?r:void 0,animate:n0(n)?n:void 0}}return t.inherit!==!1?e:{}}function mW(t){const{initial:e,animate:r}=gW(t,m.useContext(Zv));return m.useMemo(()=>({initial:e,animate:r}),[tA(e),tA(r)])}function tA(t){return Array.isArray(t)?t.join(" "):t}const rA={animation:["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},s0={};for(const t in rA)s0[t]={isEnabled:e=>rA[t].some(r=>!!e[r])};function xW(t){for(const e in t)s0[e]={...s0[e],...t[e]}}function VC(t){const e=m.useRef(null);return e.current===null&&(e.current=t()),e.current}const xh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let bW=1;function wW(){return VC(()=>{if(xh.hasEverUpdated)return bW++})}const HC=m.createContext({}),YT=m.createContext({}),CW=Symbol.for("motionComponentSymbol");function EW({preloadedFeatures:t,createVisualElement:e,useRender:r,useVisualState:n,Component:s}){t&&xW(t);function i(a,c){let l;const u={...m.useContext(KT),...a,layoutId:kW(a)},{isStatic:f}=u,d=mW(a),h=f?void 0:wW(),y=n(a,f);if(!f&&tg){d.visualElement=yW(s,y,u,e);const p=m.useContext(YT),b=m.useContext(QT).strict;d.visualElement&&(l=d.visualElement.loadFeatures(u,b,t,h,p))}return m.createElement(Zv.Provider,{value:d},l&&d.visualElement?m.createElement(l,{visualElement:d.visualElement,...u}):null,r(s,a,h,vW(y,d.visualElement,c),y,f,d.visualElement))}const o=m.forwardRef(i);return o[CW]=s,o}function kW({layoutId:t}){const e=m.useContext(HC).id;return e&&t!==void 0?e+"-"+t:t}function AW(t){function e(n,s={}){return EW(t(n,s))}if(typeof Proxy>"u")return e;const r=new Map;return new Proxy(e,{get:(n,s)=>(r.has(s)||r.set(s,e(s)),r.get(s))})}const SW=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function zC(t){return typeof t!="string"||t.includes("-")?!1:!!(SW.indexOf(t)>-1||/[A-Z]/.test(t))}const Fy={};function TW(t){Object.assign(Fy,t)}const sg=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Al=new Set(sg);function XT(t,{layout:e,layoutId:r}){return Al.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!Fy[t]||t==="opacity")}const hn=t=>!!(t&&t.getVelocity),PW={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},IW=sg.length;function OW(t,{enableHardwareAcceleration:e=!0,allowTransformNone:r=!0},n,s){let i="";for(let o=0;oe=>typeof e=="string"&&e.startsWith(t),eP=ZT("--"),$b=ZT("var(--"),RW=(t,e)=>e&&typeof t=="number"?e.transform(t):t,jf=(t,e,r)=>Math.min(Math.max(r,t),e),Sl={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},bh={...Sl,transform:t=>jf(0,1,t)},Q1={...Sl,default:1},wh=t=>Math.round(t*1e5)/1e5,i0=/(-)?([\d]*\.?[\d])+/g,Wb=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,NW=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function s1(t){return typeof t=="string"}const i1=t=>({test:e=>s1(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Po=i1("deg"),di=i1("%"),Ie=i1("px"),_W=i1("vh"),MW=i1("vw"),nA={...di,parse:t=>di.parse(t)/100,transform:t=>di.transform(t*100)},sA={...Sl,transform:Math.round},tP={borderWidth:Ie,borderTopWidth:Ie,borderRightWidth:Ie,borderBottomWidth:Ie,borderLeftWidth:Ie,borderRadius:Ie,radius:Ie,borderTopLeftRadius:Ie,borderTopRightRadius:Ie,borderBottomRightRadius:Ie,borderBottomLeftRadius:Ie,width:Ie,maxWidth:Ie,height:Ie,maxHeight:Ie,size:Ie,top:Ie,right:Ie,bottom:Ie,left:Ie,padding:Ie,paddingTop:Ie,paddingRight:Ie,paddingBottom:Ie,paddingLeft:Ie,margin:Ie,marginTop:Ie,marginRight:Ie,marginBottom:Ie,marginLeft:Ie,rotate:Po,rotateX:Po,rotateY:Po,rotateZ:Po,scale:Q1,scaleX:Q1,scaleY:Q1,scaleZ:Q1,skew:Po,skewX:Po,skewY:Po,distance:Ie,translateX:Ie,translateY:Ie,translateZ:Ie,x:Ie,y:Ie,z:Ie,perspective:Ie,transformPerspective:Ie,opacity:bh,originX:nA,originY:nA,originZ:Ie,zIndex:sA,fillOpacity:bh,strokeOpacity:bh,numOctaves:sA};function GC(t,e,r,n){const{style:s,vars:i,transform:o,transformOrigin:a}=t;let c=!1,l=!1,u=!0;for(const f in e){const d=e[f];if(eP(f)){i[f]=d;continue}const h=tP[f],y=RW(d,h);if(Al.has(f)){if(c=!0,o[f]=y,!u)continue;d!==(h.default||0)&&(u=!1)}else f.startsWith("origin")?(l=!0,a[f]=y):s[f]=y}if(e.transform||(c||n?s.transform=OW(t.transform,r,u,n):s.transform&&(s.transform="none")),l){const{originX:f="50%",originY:d="50%",originZ:h=0}=a;s.transformOrigin=`${f} ${d} ${h}`}}const qC=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function rP(t,e,r){for(const n in e)!hn(e[n])&&!XT(n,r)&&(t[n]=e[n])}function DW({transformTemplate:t},e,r){return m.useMemo(()=>{const n=qC();return GC(n,e,{enableHardwareAcceleration:!r},t),Object.assign({},n.vars,n.style)},[e])}function BW(t,e,r){const n=t.style||{},s={};return rP(s,n,t),Object.assign(s,DW(t,e,r)),t.transformValues?t.transformValues(s):s}function LW(t,e,r){const n={},s=BW(t,e,r);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const jW=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Uy(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||jW.has(t)}let nP=t=>!Uy(t);function FW(t){t&&(nP=e=>e.startsWith("on")?!Uy(e):t(e))}try{FW(require("@emotion/is-prop-valid").default)}catch{}function UW(t,e,r){const n={};for(const s in t)s==="values"&&typeof t.values=="object"||(nP(s)||r===!0&&Uy(s)||!e&&!Uy(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}function iA(t,e,r){return typeof t=="string"?t:Ie.transform(e+r*t)}function $W(t,e,r){const n=iA(e,t.x,t.width),s=iA(r,t.y,t.height);return`${n} ${s}`}const WW={offset:"stroke-dashoffset",array:"stroke-dasharray"},VW={offset:"strokeDashoffset",array:"strokeDasharray"};function HW(t,e,r=1,n=0,s=!0){t.pathLength=1;const i=s?WW:VW;t[i.offset]=Ie.transform(-n);const o=Ie.transform(e),a=Ie.transform(r);t[i.array]=`${o} ${a}`}function KC(t,{attrX:e,attrY:r,originX:n,originY:s,pathLength:i,pathSpacing:o=1,pathOffset:a=0,...c},l,u,f){if(GC(t,c,l,f),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:h,dimensions:y}=t;d.transform&&(y&&(h.transform=d.transform),delete d.transform),y&&(n!==void 0||s!==void 0||h.transform)&&(h.transformOrigin=$W(y,n!==void 0?n:.5,s!==void 0?s:.5)),e!==void 0&&(d.x=e),r!==void 0&&(d.y=r),i!==void 0&&HW(d,i,o,a,!1)}const sP=()=>({...qC(),attrs:{}}),QC=t=>typeof t=="string"&&t.toLowerCase()==="svg";function zW(t,e,r,n){const s=m.useMemo(()=>{const i=sP();return KC(i,e,{enableHardwareAcceleration:!1},QC(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){const i={};rP(i,t.style,t),s.style={...i,...s.style}}return s}function GW(t=!1){return(r,n,s,i,{latestValues:o},a)=>{const l=(zC(r)?zW:LW)(n,o,a,r),f={...UW(n,typeof r=="string",t),...l,ref:i},{children:d}=n,h=m.useMemo(()=>hn(d)?d.get():d,[d]);return s&&(f["data-projection-id"]=s),m.createElement(r,{...f,children:h})}}const JC=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function iP(t,{style:e,vars:r},n,s){Object.assign(t.style,e,s&&s.getProjectionStyles(n));for(const i in r)t.style.setProperty(i,r[i])}const oP=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function aP(t,e,r,n){iP(t,e,void 0,n);for(const s in e.attrs)t.setAttribute(oP.has(s)?s:JC(s),e.attrs[s])}function YC(t,e){const{style:r}=t,n={};for(const s in r)(hn(r[s])||e.style&&hn(e.style[s])||XT(s,t))&&(n[s]=r[s]);return n}function cP(t,e){const r=YC(t,e);for(const n in t)if(hn(t[n])||hn(e[n])){const s=n==="x"||n==="y"?"attr"+n.toUpperCase():n;r[s]=t[n]}return r}function XC(t,e,r,n={},s={}){return typeof e=="function"&&(e=e(r!==void 0?r:t.custom,n,s)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(r!==void 0?r:t.custom,n,s)),e}const $y=t=>Array.isArray(t),qW=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),KW=t=>$y(t)?t[t.length-1]||0:t;function jp(t){const e=hn(t)?t.get():t;return qW(e)?e.toValue():e}function QW({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:r},n,s,i){const o={latestValues:JW(n,s,i,t),renderState:e()};return r&&(o.mount=a=>r(n,a,o)),o}const lP=t=>(e,r)=>{const n=m.useContext(Zv),s=m.useContext(eg),i=()=>QW(t,e,n,s);return r?i():VC(i)};function JW(t,e,r,n){const s={},i=n(t,{});for(const d in i)s[d]=jp(i[d]);let{initial:o,animate:a}=t;const c=ng(t),l=JT(t);e&&l&&!c&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=r?r.initial===!1:!1;u=u||o===!1;const f=u?a:o;return f&&typeof f!="boolean"&&!rg(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const y=XC(t,h);if(!y)return;const{transitionEnd:p,transition:b,...v}=y;for(const g in v){let x=v[g];if(Array.isArray(x)){const k=u?x.length-1:0;x=x[k]}x!==null&&(s[g]=x)}for(const g in p)s[g]=p[g]}),s}const YW={useVisualState:lP({scrapeMotionValuesFromProps:cP,createRenderState:sP,onMount:(t,e,{renderState:r,latestValues:n})=>{try{r.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}KC(r,n,{enableHardwareAcceleration:!1},QC(e.tagName),t.transformTemplate),aP(e,r)}})},XW={useVisualState:lP({scrapeMotionValuesFromProps:YC,createRenderState:qC})};function ZW(t,{forwardMotionProps:e=!1},r,n){return{...zC(t)?YW:XW,preloadedFeatures:r,useRender:GW(e),createVisualElement:n,Component:t}}function Gi(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r)}const uP=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function ig(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const eV=t=>e=>uP(e)&&t(e,ig(e));function Ji(t,e,r,n){return Gi(t,e,eV(r),n)}const tV=(t,e)=>r=>e(t(r)),ma=(...t)=>t.reduce(tV);function fP(t){let e=null;return()=>{const r=()=>{e=null};return e===null?(e=t,r):!1}}const oA=fP("dragHorizontal"),aA=fP("dragVertical");function dP(t){let e=!1;if(t==="y")e=aA();else if(t==="x")e=oA();else{const r=oA(),n=aA();r&&n?e=()=>{r(),n()}:(r&&r(),n&&n())}return e}function hP(){const t=dP(!0);return t?(t(),!1):!0}class Fa{constructor(e){this.isMounted=!1,this.node=e}update(){}}function cA(t,e){const r="pointer"+(e?"enter":"leave"),n="onHover"+(e?"Start":"End"),s=(i,o)=>{if(i.type==="touch"||hP())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[n]&&a[n](i,o)};return Ji(t.current,r,s,{passive:!t.getProps()[n]})}class rV extends Fa{mount(){this.unmount=ma(cA(this.node,!0),cA(this.node,!1))}unmount(){}}class nV extends Fa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ma(Gi(this.node.current,"focus",()=>this.onFocus()),Gi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const pP=(t,e)=>e?t===e?!0:pP(t,e.parentElement):!1,Is=t=>t;function Vm(t,e){if(!e)return;const r=new PointerEvent("pointer"+t);e(r,ig(r))}class sV extends Fa{constructor(){super(...arguments),this.removeStartListeners=Is,this.removeEndListeners=Is,this.removeAccessibleListeners=Is,this.startPointerPress=(e,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),i=Ji(window,"pointerup",(a,c)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:u}=this.node.getProps();pP(this.node.current,a.target)?l&&l(a,c):u&&u(a,c)},{passive:!(n.onTap||n.onPointerUp)}),o=Ji(window,"pointercancel",(a,c)=>this.cancelPress(a,c),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=ma(i,o),this.startPress(e,r)},this.startAccessiblePress=()=>{const e=i=>{if(i.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||Vm("up",this.node.getProps().onTap)};this.removeEndListeners(),this.removeEndListeners=Gi(this.node.current,"keyup",o),Vm("down",(a,c)=>{this.startPress(a,c)})},r=Gi(this.node.current,"keydown",e),n=()=>{this.isPressing&&Vm("cancel",(i,o)=>this.cancelPress(i,o))},s=Gi(this.node.current,"blur",n);this.removeAccessibleListeners=ma(r,s)}}startPress(e,r){this.isPressing=!0;const{onTapStart:n,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&n(e,r)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!hP()}cancelPress(e,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&n(e,r)}mount(){const e=this.node.getProps(),r=Ji(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Gi(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ma(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Vb=new WeakMap,Hm=new WeakMap,iV=t=>{const e=Vb.get(t.target);e&&e(t)},oV=t=>{t.forEach(iV)};function aV({root:t,...e}){const r=t||document;Hm.has(r)||Hm.set(r,{});const n=Hm.get(r),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(oV,{root:t,...e})),n[s]}function cV(t,e,r){const n=aV(e);return Vb.set(t,r),n.observe(t),()=>{Vb.delete(t),n.unobserve(t)}}const lV={some:0,all:1};class uV extends Fa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}viewportFallback(){requestAnimationFrame(()=>{this.hasEnteredView=!0;const{onViewportEnter:e}=this.node.getProps();e&&e(null),this.node.animationState&&this.node.animationState.setActive("whileInView",!0)})}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:i,fallback:o=!0}=e;if(typeof IntersectionObserver>"u"){o&&this.viewportFallback();return}const a={root:r?r.current:void 0,rootMargin:n,threshold:typeof s=="number"?s:lV[s]},c=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:f,onViewportLeave:d}=this.node.getProps(),h=u?f:d;h&&h(l)};return cV(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:r}=this.node;["amount","margin","root"].some(fV(e,r))&&this.startObserver()}unmount(){}}function fV({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}const dV={inView:{Feature:uV},tap:{Feature:sV},focus:{Feature:nV},hover:{Feature:rV}};function yP(t,e){if(!Array.isArray(e))return!1;const r=e.length;if(r!==t.length)return!1;for(let n=0;n/^\-?\d*\.?\d+$/.test(t),pV=t=>/^0[^.\s]+$/.test(t),Yi={delta:0,timestamp:0},vP=1/60*1e3,yV=typeof performance<"u"?()=>performance.now():()=>Date.now(),gP=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(yV()),vP);function vV(t){let e=[],r=[],n=0,s=!1,i=!1;const o=new WeakSet,a={schedule:(c,l=!1,u=!1)=>{const f=u&&s,d=f?e:r;return l&&o.add(c),d.indexOf(c)===-1&&(d.push(c),f&&s&&(n=e.length)),c},cancel:c=>{const l=r.indexOf(c);l!==-1&&r.splice(l,1),o.delete(c)},process:c=>{if(s){i=!0;return}if(s=!0,[e,r]=[r,e],r.length=0,n=e.length,n)for(let l=0;l(t[e]=vV(()=>o0=!0),t),{}),Or=o1.reduce((t,e)=>{const r=og[e];return t[e]=(n,s=!1,i=!1)=>(o0||xV(),r.schedule(n,s,i)),t},{}),Sa=o1.reduce((t,e)=>(t[e]=og[e].cancel,t),{}),zm=o1.reduce((t,e)=>(t[e]=()=>og[e].process(Yi),t),{}),mV=t=>og[t].process(Yi),mP=t=>{o0=!1,Yi.delta=Hb?vP:Math.max(Math.min(t-Yi.timestamp,gV),1),Yi.timestamp=t,zb=!0,o1.forEach(mV),zb=!1,o0&&(Hb=!1,gP(mP))},xV=()=>{o0=!0,Hb=!0,zb||gP(mP)};function ZC(t,e){t.indexOf(e)===-1&&t.push(e)}function eE(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}class tE{constructor(){this.subscriptions=[]}add(e){return ZC(this.subscriptions,e),()=>eE(this.subscriptions,e)}notify(e,r,n){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,r,n);else for(let i=0;i!isNaN(parseFloat(t));class wV{constructor(e,r={}){this.version="9.1.7",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,s=!0)=>{this.prev=this.current,this.current=n;const{delta:i,timestamp:o}=Yi;this.lastUpdated!==o&&(this.timeDelta=i,this.lastUpdated=o,Or.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Or.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=bV(this.current),this.owner=r.owner}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new tE);const n=this.events[e].add(r);return e==="change"?()=>{n(),Or.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e,r=!0){!r||!this.passiveEffect?this.updateAndNotify(e,r):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,r,n){this.set(r),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?rE(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r)||null,this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ff(t,e){return new wV(t,e)}const nE=(t,e)=>r=>!!(s1(r)&&NW.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),xP=(t,e,r)=>n=>{if(!s1(n))return n;const[s,i,o,a]=n.match(i0);return{[t]:parseFloat(s),[e]:parseFloat(i),[r]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},CV=t=>jf(0,255,t),Gm={...Sl,transform:t=>Math.round(CV(t))},vc={test:nE("rgb","red"),parse:xP("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+Gm.transform(t)+", "+Gm.transform(e)+", "+Gm.transform(r)+", "+wh(bh.transform(n))+")"};function EV(t){let e="",r="",n="",s="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,r+=r,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}}const Gb={test:nE("#"),parse:EV,transform:vc.transform},lu={test:nE("hsl","hue"),parse:xP("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+di.transform(wh(e))+", "+di.transform(wh(r))+", "+wh(bh.transform(n))+")"},jr={test:t=>vc.test(t)||Gb.test(t)||lu.test(t),parse:t=>vc.test(t)?vc.parse(t):lu.test(t)?lu.parse(t):Gb.parse(t),transform:t=>s1(t)?t:t.hasOwnProperty("red")?vc.transform(t):lu.transform(t)},bP="${c}",wP="${n}";function kV(t){var e,r;return isNaN(t)&&s1(t)&&(((e=t.match(i0))===null||e===void 0?void 0:e.length)||0)+(((r=t.match(Wb))===null||r===void 0?void 0:r.length)||0)>0}function Wy(t){typeof t=="number"&&(t=`${t}`);const e=[];let r=0,n=0;const s=t.match(Wb);s&&(r=s.length,t=t.replace(Wb,bP),e.push(...s.map(jr.parse)));const i=t.match(i0);return i&&(n=i.length,t=t.replace(i0,wP),e.push(...i.map(Sl.parse))),{values:e,numColors:r,numNumbers:n,tokenised:t}}function CP(t){return Wy(t).values}function EP(t){const{values:e,numColors:r,tokenised:n}=Wy(t),s=e.length;return i=>{let o=n;for(let a=0;atypeof t=="number"?0:t;function SV(t){const e=CP(t);return EP(t)(e.map(AV))}const Ta={test:kV,parse:CP,createTransformer:EP,getAnimatableNone:SV},TV=new Set(["brightness","contrast","saturate","opacity"]);function PV(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=r.match(i0)||[];if(!n)return t;const s=r.replace(n,"");let i=TV.has(e)?1:0;return n!==r&&(i*=100),e+"("+i+s+")"}const IV=/([a-z-]*)\(.*?\)/g,qb={...Ta,getAnimatableNone:t=>{const e=t.match(IV);return e?e.map(PV).join(" "):t}},OV={...tP,color:jr,backgroundColor:jr,outlineColor:jr,fill:jr,stroke:jr,borderColor:jr,borderTopColor:jr,borderRightColor:jr,borderBottomColor:jr,borderLeftColor:jr,filter:qb,WebkitFilter:qb},sE=t=>OV[t];function iE(t,e){let r=sE(t);return r!==qb&&(r=Ta),r.getAnimatableNone?r.getAnimatableNone(e):void 0}const kP=t=>e=>e.test(t),RV={test:t=>t==="auto",parse:t=>t},AP=[Sl,Ie,di,Po,MW,_W,RV],Dd=t=>AP.find(kP(t)),NV=[...AP,jr,Ta],_V=t=>NV.find(kP(t));function MV(t){const e={};return t.values.forEach((r,n)=>e[n]=r.get()),e}function DV(t){const e={};return t.values.forEach((r,n)=>e[n]=r.getVelocity()),e}function ag(t,e,r){const n=t.getProps();return XC(n,e,r!==void 0?r:n.custom,MV(t),DV(t))}function BV(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,Ff(r))}function LV(t,e){const r=ag(t,e);let{transitionEnd:n={},transition:s={},...i}=r?t.makeTargetAnimatable(r,!1):{};i={...i,...n};for(const o in i){const a=KW(i[o]);BV(t,o,a)}}function jV(t,e,r){var n,s;const i=Object.keys(e).filter(a=>!t.hasValue(a)),o=i.length;if(o)for(let a=0;at*1e3,VV={current:!1},oE=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,aE=t=>e=>1-t(1-e),cE=t=>t*t,HV=aE(cE),lE=oE(cE),Ct=(t,e,r)=>-r*t+r*e+t;function qm(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function zV({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let s=0,i=0,o=0;if(!e)s=i=o=r;else{const a=r<.5?r*(1+e):r+e-r*e,c=2*r-a;s=qm(c,a,t+1/3),i=qm(c,a,t),o=qm(c,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:n}}const Km=(t,e,r)=>{const n=t*t;return Math.sqrt(Math.max(0,r*(e*e-n)+n))},GV=[Gb,vc,lu],qV=t=>GV.find(e=>e.test(t));function lA(t){const e=qV(t);let r=e.parse(t);return e===lu&&(r=zV(r)),r}const SP=(t,e)=>{const r=lA(t),n=lA(e),s={...r};return i=>(s.red=Km(r.red,n.red,i),s.green=Km(r.green,n.green,i),s.blue=Km(r.blue,n.blue,i),s.alpha=Ct(r.alpha,n.alpha,i),vc.transform(s))};function TP(t,e){return typeof t=="number"?r=>Ct(t,e,r):jr.test(t)?SP(t,e):IP(t,e)}const PP=(t,e)=>{const r=[...t],n=r.length,s=t.map((i,o)=>TP(i,e[o]));return i=>{for(let o=0;o{const r={...t,...e},n={};for(const s in r)t[s]!==void 0&&e[s]!==void 0&&(n[s]=TP(t[s],e[s]));return s=>{for(const i in n)r[i]=n[i](s);return r}},IP=(t,e)=>{const r=Ta.createTransformer(e),n=Wy(t),s=Wy(e);return n.numColors===s.numColors&&n.numNumbers>=s.numNumbers?ma(PP(n.values,s.values),r):o=>`${o>0?e:t}`},c0=(t,e,r)=>{const n=e-t;return n===0?1:(r-t)/n},uA=(t,e)=>r=>Ct(t,e,r);function QV(t){return typeof t=="number"?uA:typeof t=="string"?jr.test(t)?SP:IP:Array.isArray(t)?PP:typeof t=="object"?KV:uA}function JV(t,e,r){const n=[],s=r||QV(t[0]),i=t.length-1;for(let o=0;ot[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=JV(e,n,s),a=o.length,c=l=>{let u=0;if(a>1)for(;uc(jf(t[0],t[i-1],l)):c}function YV(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const s=c0(0,e,n);t.push(Ct(r,1,s))}}function XV(t){const e=[0];return YV(e,t.length-1),e}function ZV(t,e){return t.map(r=>r*e)}const RP=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,eH=1e-7,tH=12;function rH(t,e,r,n,s){let i,o,a=0;do o=e+(r-e)/2,i=RP(o,n,s)-t,i>0?r=o:e=o;while(Math.abs(i)>eH&&++arH(i,0,1,t,r);return i=>i===0||i===1?i:RP(s(i),e,n)}const _P=t=>1-Math.sin(Math.acos(t)),uE=aE(_P),nH=oE(uE),MP=NP(.33,1.53,.69,.99),fE=aE(MP),sH=oE(fE),iH=t=>(t*=2)<1?.5*fE(t):.5*(2-Math.pow(2,-10*(t-1))),fA={linear:Is,easeIn:cE,easeInOut:lE,easeOut:HV,circIn:_P,circInOut:nH,circOut:uE,backIn:fE,backInOut:sH,backOut:MP,anticipate:iH},dA=t=>{if(Array.isArray(t)){a0(t.length===4);const[e,r,n,s]=t;return NP(e,r,n,s)}else if(typeof t=="string")return a0(fA[t]!==void 0),fA[t];return t},oH=t=>Array.isArray(t)&&typeof t[0]!="number";function aH(t,e){return t.map(()=>e||lE).splice(0,t.length-1)}function Kb({keyframes:t,ease:e=lE,times:r,duration:n=300}){t=[...t];const s=oH(e)?e.map(dA):dA(e),i={done:!1,value:t[0]},o=ZV(r&&r.length===t.length?r:XV(t),n);function a(){return OP(o,t,{ease:Array.isArray(s)?s:aH(t,s)})}let c=a();return{next:l=>(i.value=c(l),i.done=l>=n,i),flipTarget:()=>{t.reverse(),c=a()}}}const Qm=.001,cH=.01,lH=10,uH=.05,fH=1;function dH({duration:t=800,bounce:e=.25,velocity:r=0,mass:n=1}){let s,i,o=1-e;o=jf(uH,fH,o),t=jf(cH,lH,t/1e3),o<1?(s=l=>{const u=l*o,f=u*t,d=u-r,h=Qb(l,o),y=Math.exp(-f);return Qm-d/h*y},i=l=>{const f=l*o*t,d=f*r+r,h=Math.pow(o,2)*Math.pow(l,2)*t,y=Math.exp(-f),p=Qb(Math.pow(l,2),o);return(-s(l)+Qm>0?-1:1)*((d-h)*y)/p}):(s=l=>{const u=Math.exp(-l*t),f=(l-r)*t+1;return-Qm+u*f},i=l=>{const u=Math.exp(-l*t),f=(r-l)*(t*t);return u*f});const a=5/t,c=pH(s,i,a);if(t=t*1e3,isNaN(c))return{stiffness:100,damping:10,duration:t};{const l=Math.pow(c,2)*n;return{stiffness:l,damping:o*2*Math.sqrt(n*l),duration:t}}}const hH=12;function pH(t,e,r){let n=r;for(let s=1;st[r]!==void 0)}function gH(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!hA(t,vH)&&hA(t,yH)){const r=dH(t);e={...e,...r,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}const mH=5;function DP({keyframes:t,restDelta:e,restSpeed:r,...n}){let s=t[0],i=t[t.length-1];const o={done:!1,value:s},{stiffness:a,damping:c,mass:l,velocity:u,duration:f,isResolvedFromDuration:d}=gH(n);let h=xH,y=u?-(u/1e3):0;const p=c/(2*Math.sqrt(a*l));function b(){const v=i-s,g=Math.sqrt(a/l)/1e3,x=Math.abs(v)<5;if(r||(r=x?.01:2),e||(e=x?.005:.5),p<1){const k=Qb(g,p);h=S=>{const I=Math.exp(-p*g*S);return i-I*((y+p*g*v)/k*Math.sin(k*S)+v*Math.cos(k*S))}}else if(p===1)h=k=>i-Math.exp(-g*k)*(v+(y+g*v)*k);else{const k=g*Math.sqrt(p*p-1);h=S=>{const I=Math.exp(-p*g*S),R=Math.min(k*S,300);return i-I*((y+p*g*v)*Math.sinh(R)+k*v*Math.cosh(R))/k}}}return b(),{next:v=>{const g=h(v);if(d)o.done=v>=f;else{let x=y;if(v!==0)if(p<1){const I=Math.max(0,v-mH);x=rE(g-h(I),v-I)}else x=0;const k=Math.abs(x)<=r,S=Math.abs(i-g)<=e;o.done=k&&S}return o.value=o.done?i:g,o},flipTarget:()=>{y=-y,[s,i]=[i,s],b()}}}DP.needsInterpolation=(t,e)=>typeof t=="string"||typeof e=="string";const xH=t=>0;function bH({keyframes:t=[0],velocity:e=0,power:r=.8,timeConstant:n=350,restDelta:s=.5,modifyTarget:i}){const o=t[0],a={done:!1,value:o};let c=r*e;const l=o+c,u=i===void 0?l:i(l);return u!==l&&(c=u-o),{next:f=>{const d=-c*Math.exp(-f/n);return a.done=!(d>s||d<-s),a.value=a.done?u:u+d,a},flipTarget:()=>{}}}const wH={decay:bH,keyframes:Kb,tween:Kb,spring:DP};function BP(t,e,r=0){return t-e-r}function CH(t,e=0,r=0,n=!0){return n?BP(e+-t,e,r):e-(t-e)+r}function EH(t,e,r,n){return n?t>=e+r:t<=-r}const kH=t=>{const e=({delta:r})=>t(r);return{start:()=>Or.update(e,!0),stop:()=>Sa.update(e)}};function Hy({duration:t,driver:e=kH,elapsed:r=0,repeat:n=0,repeatType:s="loop",repeatDelay:i=0,keyframes:o,autoplay:a=!0,onPlay:c,onStop:l,onComplete:u,onRepeat:f,onUpdate:d,type:h="keyframes",...y}){const p=r;let b,v=0,g=t,x=!1,k=!0,S;const I=wH[o.length>2?"keyframes":h]||Kb,R=o[0],_=o[o.length-1];let V={done:!1,value:R};const{needsInterpolation:F}=I;F&&F(R,_)&&(S=OP([0,100],[R,_],{clamp:!1}),o=[0,100]);const X=I({...y,duration:t,keyframes:o});function re(){v++,s==="reverse"?(k=v%2===0,r=CH(r,g,i,k)):(r=BP(r,g,i),s==="mirror"&&X.flipTarget()),x=!1,f&&f()}function le(){b&&b.stop(),u&&u()}function ee(G){k||(G=-G),r+=G,x||(V=X.next(Math.max(0,r)),S&&(V.value=S(V.value)),x=k?V.done:r<=0),d&&d(V.value),x&&(v===0&&(g=g!==void 0?g:r),v{l&&l(),b&&b.stop()},set currentTime(G){r=p,ee(G)},sample:G=>{r=p;const Z=t&&typeof t=="number"?Math.max(t*.5,50):50;let C=0;for(ee(0);C<=G;){const A=G-C;ee(Math.min(A,Z)),C+=Z}return V}}}function AH(t){return!t||Array.isArray(t)||typeof t=="string"&&LP[t]}const Jd=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,LP={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Jd([0,.65,.55,1]),circOut:Jd([.55,0,1,.45]),backIn:Jd([.31,.01,.66,-.59]),backOut:Jd([.33,1.53,.69,.99])};function SH(t){if(t)return Array.isArray(t)?Jd(t):LP[t]}function TH(t,e,r,{delay:n=0,duration:s,repeat:i=0,repeatType:o="loop",ease:a,times:c}={}){return t.animate({[e]:r,offset:c},{delay:n,duration:s,easing:SH(a),fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const pA={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Jm={},jP={};for(const t in pA)jP[t]=()=>(Jm[t]===void 0&&(Jm[t]=pA[t]()),Jm[t]);function PH(t,{repeat:e,repeatType:r="loop"}){const n=e&&r!=="loop"&&e%2===1?0:t.length-1;return t[n]}const IH=new Set(["opacity","clipPath","filter","transform"]),J1=10;function OH(t,e,{onUpdate:r,onComplete:n,...s}){if(!(jP.waapi()&&IH.has(e)&&!s.repeatDelay&&s.repeatType!=="mirror"&&s.damping!==0))return!1;let{keyframes:o,duration:a=300,elapsed:c=0,ease:l}=s;if(s.type==="spring"||!AH(s.ease)){if(s.repeat===1/0)return;const f=Hy({...s,elapsed:0});let d={done:!1,value:o[0]};const h=[];let y=0;for(;!d.done&&y<2e4;)d=f.sample(y),h.push(d.value),y+=J1;o=h,a=y-J1,l="linear"}const u=TH(t.owner.current,e,o,{...s,delay:-c,duration:a,ease:l});return u.onfinish=()=>{t.set(PH(o,s)),Or.update(()=>u.cancel()),n&&n()},{get currentTime(){return u.currentTime||0},set currentTime(f){u.currentTime=f},stop:()=>{const{currentTime:f}=u;if(f){const d=Hy({...s,autoplay:!1});t.setWithVelocity(d.sample(f-J1).value,d.sample(f).value,J1)}Or.update(()=>u.cancel())}}}function FP(t,e){const r=performance.now(),n=({timestamp:s})=>{const i=s-r;i>=e&&(Sa.read(n),t(i-e))};return Or.read(n,!0),()=>Sa.read(n)}function RH({keyframes:t,elapsed:e,onUpdate:r,onComplete:n}){const s=()=>{r&&r(t[t.length-1]),n&&n()};return e?{stop:FP(s,-e)}:s()}function NH({keyframes:t,velocity:e=0,min:r,max:n,power:s=.8,timeConstant:i=750,bounceStiffness:o=500,bounceDamping:a=10,restDelta:c=1,modifyTarget:l,driver:u,onUpdate:f,onComplete:d,onStop:h}){const y=t[0];let p;function b(k){return r!==void 0&&kn}function v(k){return r===void 0?n:n===void 0||Math.abs(r-k){f&&f(S),k.onUpdate&&k.onUpdate(S)},onComplete:d,onStop:h})}function x(k){g({type:"spring",stiffness:o,damping:a,restDelta:c,...k})}if(b(y))x({velocity:e,keyframes:[y,v(y)]});else{let k=s*e+y;typeof l<"u"&&(k=l(k));const S=v(k),I=S===r?-1:1;let R,_;const V=F=>{R=_,_=F,e=rE(F-R,Yi.delta),(I===1&&F>S||I===-1&&Fp&&p.stop()}}const _H={type:"spring",stiffness:500,damping:25,restSpeed:10},MH=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),DH={type:"keyframes",duration:.8},BH={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},LH=(t,{keyframes:e})=>e.length>2?DH:Al.has(t)?t.startsWith("scale")?MH(e[1]):_H:BH,Jb=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&Ta.test(e)&&!e.startsWith("url("));function jH({when:t,delay:e,delayChildren:r,staggerChildren:n,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}function yA(t){return t===0||typeof t=="string"&&parseFloat(t)===0&&t.indexOf(" ")===-1}function vA(t){return typeof t=="number"?0:iE("",t)}function UP(t,e){return t[e]||t.default||t}function FH(t,e,r,n){const s=Jb(e,r);let i=n.from!==void 0?n.from:t.get();return i==="none"&&s&&typeof r=="string"?i=iE(e,r):yA(i)&&typeof r=="string"?i=vA(r):!Array.isArray(r)&&yA(r)&&typeof i=="string"&&(r=vA(i)),Array.isArray(r)?(r[0]===null&&(r[0]=i),r):[i,r]}const dE=(t,e,r,n={})=>s=>{const i=UP(n,t)||{},o=i.delay||n.delay||0;let{elapsed:a=0}=n;a=a-Fp(o);const c=FH(e,t,r,i),l=c[0],u=c[c.length-1],f=Jb(t,l),d=Jb(t,u);let h={keyframes:c,velocity:e.getVelocity(),...i,elapsed:a,onUpdate:y=>{e.set(y),i.onUpdate&&i.onUpdate(y)},onComplete:()=>{s(),i.onComplete&&i.onComplete()}};if(!f||!d||VV.current||i.type===!1)return RH(h);if(i.type==="inertia")return NH(h);if(jH(i)||(h={...h,...LH(t,h)}),h.duration&&(h.duration=Fp(h.duration)),h.repeatDelay&&(h.repeatDelay=Fp(h.repeatDelay)),e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const y=OH(e,t,h);if(y)return y}return Hy(h)};function UH(t,e,r={}){t.notify("AnimationStart",e);let n;if(Array.isArray(e)){const s=e.map(i=>Yb(t,i,r));n=Promise.all(s)}else if(typeof e=="string")n=Yb(t,e,r);else{const s=typeof e=="function"?ag(t,e,r.custom):e;n=$P(t,s,r)}return n.then(()=>t.notify("AnimationComplete",e))}function Yb(t,e,r={}){const n=ag(t,e,r.custom);let{transition:s=t.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(s=r.transitionOverride);const i=n?()=>$P(t,n,r):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:u,staggerDirection:f}=s;return $H(t,e,l+c,u,f,r)}:()=>Promise.resolve(),{when:a}=s;if(a){const[c,l]=a==="beforeChildren"?[i,o]:[o,i];return c().then(l)}else return Promise.all([i(),o(r.delay)])}function $P(t,e,{delay:r=0,transitionOverride:n,type:s}={}){let{transition:i=t.getDefaultTransition(),transitionEnd:o,...a}=t.makeTargetAnimatable(e);const c=t.getValue("willChange");n&&(i=n);const l=[],u=s&&t.animationState&&t.animationState.getState()[s];for(const f in a){const d=t.getValue(f),h=a[f];if(!d||h===void 0||u&&VH(u,f))continue;const y={delay:r,elapsed:0,...i};if(window.HandoffAppearAnimations&&!d.hasAnimated){const b=t.getProps()[WV];b&&(y.elapsed=window.HandoffAppearAnimations(b,f,d,Or))}let p=d.start(dE(f,d,h,t.shouldReduceMotion&&Al.has(f)?{type:!1}:y));Vy(c)&&(c.add(f),p=p.then(()=>c.remove(f))),l.push(p)}return Promise.all(l).then(()=>{o&&LV(t,o)})}function $H(t,e,r=0,n=0,s=1,i){const o=[],a=(t.variantChildren.size-1)*n,c=s===1?(l=0)=>l*n:(l=0)=>a-l*n;return Array.from(t.variantChildren).sort(WH).forEach((l,u)=>{l.notify("AnimationStart",e),o.push(Yb(l,e,{...i,delay:r+c(u)}).then(()=>l.notify("AnimationComplete",e)))}),Promise.all(o)}function WH(t,e){return t.sortNodePosition(e)}function VH({protectedKeys:t,needsAnimating:e},r){const n=t.hasOwnProperty(r)&&e[r]!==!0;return e[r]=!1,n}const HH=[...$C].reverse(),zH=$C.length;function GH(t){return e=>Promise.all(e.map(({animation:r,options:n})=>UH(t,r,n)))}function qH(t){let e=GH(t);const r=QH();let n=!0;const s=(c,l)=>{const u=ag(t,l);if(u){const{transition:f,transitionEnd:d,...h}=u;c={...c,...h,...d}}return c};function i(c){e=c(t)}function o(c,l){const u=t.getProps(),f=t.getVariantContext(!0)||{},d=[],h=new Set;let y={},p=1/0;for(let v=0;vp&&S;const F=Array.isArray(k)?k:[k];let X=F.reduce(s,{});I===!1&&(X={});const{prevResolvedValues:re={}}=x,le={...re,...X},ee=D=>{V=!0,h.delete(D),x.needsAnimating[D]=!0};for(const D in le){const G=X[D],Z=re[D];y.hasOwnProperty(D)||(G!==Z?$y(G)&&$y(Z)?!yP(G,Z)||_?ee(D):x.protectedKeys[D]=!0:G!==void 0?ee(D):h.add(D):G!==void 0&&h.has(D)?ee(D):x.protectedKeys[D]=!0)}x.prevProp=k,x.prevResolvedValues=X,x.isActive&&(y={...y,...X}),n&&t.blockInitialAnimation&&(V=!1),V&&!R&&d.push(...F.map(D=>({animation:D,options:{type:g,...c}})))}if(h.size){const v={};h.forEach(g=>{const x=t.getBaseTarget(g);x!==void 0&&(v[g]=x)}),d.push({animation:v})}let b=!!d.length;return n&&u.initial===!1&&!t.manuallyAnimateOnMount&&(b=!1),n=!1,b?e(d):Promise.resolve()}function a(c,l,u){var f;if(r[c].isActive===l)return Promise.resolve();(f=t.variantChildren)===null||f===void 0||f.forEach(h=>{var y;return(y=h.animationState)===null||y===void 0?void 0:y.setActive(c,l)}),r[c].isActive=l;const d=o(u,c);for(const h in r)r[h].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>r}}function KH(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!yP(e,t):!1}function Qa(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function QH(){return{animate:Qa(!0),whileInView:Qa(),whileHover:Qa(),whileTap:Qa(),whileDrag:Qa(),whileFocus:Qa(),exit:Qa()}}class JH extends Fa{constructor(e){super(e),e.animationState||(e.animationState=qH(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),rg(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:r}=this.node.prevProps||{};e!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let YH=0;class XH extends Fa{constructor(){super(...arguments),this.id=YH++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e,{custom:n??this.node.getProps().custom});r&&!e&&i.then(()=>r(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const ZH={animation:{Feature:JH},exit:{Feature:XH}},gA=(t,e)=>Math.abs(t-e);function ez(t,e){const r=gA(t.x,e.x),n=gA(t.y,e.y);return Math.sqrt(r**2+n**2)}class WP{constructor(e,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const l=Xm(this.lastMoveEventInfo,this.history),u=this.startEvent!==null,f=ez(l.offset,{x:0,y:0})>=3;if(!u&&!f)return;const{point:d}=l,{timestamp:h}=Yi;this.history.push({...d,timestamp:h});const{onStart:y,onMove:p}=this.handlers;u||(y&&y(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,l)},this.handlePointerMove=(l,u)=>{this.lastMoveEvent=l,this.lastMoveEventInfo=Ym(u,this.transformPagePoint),Or.update(this.updatePoint,!0)},this.handlePointerUp=(l,u)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=Xm(l.type==="pointercancel"?this.lastMoveEventInfo:Ym(u,this.transformPagePoint),this.history);this.startEvent&&f&&f(l,h),d&&d(l,h)},!uP(e))return;this.handlers=r,this.transformPagePoint=n;const s=ig(e),i=Ym(s,this.transformPagePoint),{point:o}=i,{timestamp:a}=Yi;this.history=[{...o,timestamp:a}];const{onSessionStart:c}=r;c&&c(e,Xm(i,this.history)),this.removeListeners=ma(Ji(window,"pointermove",this.handlePointerMove),Ji(window,"pointerup",this.handlePointerUp),Ji(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Sa.update(this.updatePoint)}}function Ym(t,e){return e?{point:e(t.point)}:t}function mA(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Xm({point:t},e){return{point:t,delta:mA(t,VP(e)),offset:mA(t,tz(e)),velocity:rz(e,.1)}}function tz(t){return t[0]}function VP(t){return t[t.length-1]}function rz(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,n=null;const s=VP(t);for(;r>=0&&(n=t[r],!(s.timestamp-n.timestamp>Fp(e)));)r--;if(!n)return{x:0,y:0};const i=(s.timestamp-n.timestamp)/1e3;if(i===0)return{x:0,y:0};const o={x:(s.x-n.x)/i,y:(s.y-n.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Rn(t){return t.max-t.min}function Xb(t,e=0,r=.01){return Math.abs(t-e)<=r}function xA(t,e,r,n=.5){t.origin=n,t.originPoint=Ct(e.min,e.max,t.origin),t.scale=Rn(r)/Rn(e),(Xb(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Ct(r.min,r.max,t.origin)-t.originPoint,(Xb(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Ch(t,e,r,n){xA(t.x,e.x,r.x,n?n.originX:void 0),xA(t.y,e.y,r.y,n?n.originY:void 0)}function bA(t,e,r){t.min=r.min+e.min,t.max=t.min+Rn(e)}function nz(t,e,r){bA(t.x,e.x,r.x),bA(t.y,e.y,r.y)}function wA(t,e,r){t.min=e.min-r.min,t.max=t.min+Rn(e)}function Eh(t,e,r){wA(t.x,e.x,r.x),wA(t.y,e.y,r.y)}function sz(t,{min:e,max:r},n){return e!==void 0&&tr&&(t=n?Ct(r,t,n.max):Math.min(t,r)),t}function CA(t,e,r){return{min:e!==void 0?t.min+e:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function iz(t,{top:e,left:r,bottom:n,right:s}){return{x:CA(t.x,r,s),y:CA(t.y,e,n)}}function EA(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.minn?r=c0(e.min,e.max-n,t.min):n>s&&(r=c0(t.min,t.max-s,e.min)),jf(0,1,r)}function cz(t,e){const r={};return e.min!==void 0&&(r.min=e.min-t.min),e.max!==void 0&&(r.max=e.max-t.min),r}const Zb=.35;function lz(t=Zb){return t===!1?t=0:t===!0&&(t=Zb),{x:kA(t,"left","right"),y:kA(t,"top","bottom")}}function kA(t,e,r){return{min:AA(t,e),max:AA(t,r)}}function AA(t,e){return typeof t=="number"?t:t[e]||0}const SA=()=>({translate:0,scale:1,origin:0,originPoint:0}),kh=()=>({x:SA(),y:SA()}),TA=()=>({min:0,max:0}),Lt=()=>({x:TA(),y:TA()});function zs(t){return[t("x"),t("y")]}function HP({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function uz({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function fz(t,e){if(!e)return t;const r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Zm(t){return t===void 0||t===1}function ew({scale:t,scaleX:e,scaleY:r}){return!Zm(t)||!Zm(e)||!Zm(r)}function tc(t){return ew(t)||zP(t)||t.z||t.rotate||t.rotateX||t.rotateY}function zP(t){return PA(t.x)||PA(t.y)}function PA(t){return t&&t!=="0%"}function zy(t,e,r){const n=t-r,s=e*n;return r+s}function IA(t,e,r,n,s){return s!==void 0&&(t=zy(t,s,n)),zy(t,r,n)+e}function tw(t,e=0,r=1,n,s){t.min=IA(t.min,e,r,n,s),t.max=IA(t.max,e,r,n,s)}function GP(t,{x:e,y:r}){tw(t.x,e.translate,e.scale,e.originPoint),tw(t.y,r.translate,r.scale,r.originPoint)}function dz(t,e,r,n=!1){const s=r.length;if(!s)return;e.x=e.y=1;let i,o;for(let a=0;a1.0000000000001||t<.999999999999?t:1}function _o(t,e){t.min=t.min+e,t.max=t.max+e}function RA(t,e,[r,n,s]){const i=e[s]!==void 0?e[s]:.5,o=Ct(t.min,t.max,i);tw(t,e[r],e[n],o,e.scale)}const hz=["x","scaleX","originX"],pz=["y","scaleY","originY"];function uu(t,e){RA(t.x,e,hz),RA(t.y,e,pz)}function qP(t,e){return HP(fz(t.getBoundingClientRect(),e))}function yz(t,e,r){const n=qP(t,r),{scroll:s}=e;return s&&(_o(n.x,s.offset.x),_o(n.y,s.offset.y)),n}const vz=new WeakMap;class gz{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Lt(),this.visualElement=e}start(e,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const s=c=>{this.stopAnimation(),r&&this.snapToCursor(ig(c,"page").point)},i=(c,l)=>{const{drag:u,dragPropagation:f,onDragStart:d}=this.getProps();if(u&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=dP(u),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),zs(y=>{let p=this.getAxisMotionValue(y).get()||0;if(di.test(p)){const{projection:b}=this.visualElement;if(b&&b.layout){const v=b.layout.layoutBox[y];v&&(p=Rn(v)*(parseFloat(p)/100))}}this.originPoint[y]=p}),d&&d(c,l);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},o=(c,l)=>{const{dragPropagation:u,dragDirectionLock:f,onDirectionLock:d,onDrag:h}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:y}=l;if(f&&this.currentDirection===null){this.currentDirection=mz(y),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",l.point,y),this.updateAxis("y",l.point,y),this.visualElement.render(),h&&h(c,l)},a=(c,l)=>this.stop(c,l);this.panSession=new WP(e,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:s}=r;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&i(e,r)}cancel(){this.isDragging=!1;const{projection:e,animationState:r}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(e,r,n){const{drag:s}=this.getProps();if(!n||!Y1(e,s,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=sz(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},s=this.constraints;e&&cu(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=iz(n.layoutBox,e):this.constraints=!1,this.elastic=lz(r),s!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&zs(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=cz(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!cu(e))return!1;const n=e.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=yz(n,s.root,this.visualElement.getTransformPagePoint());let o=oz(s.layout.layoutBox,i);if(r){const a=r(uz(o));this.hasMutatedConstraints=!!a,a&&(o=HP(a))}return o}startAnimation(e){const{drag:r,dragMomentum:n,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=zs(u=>{if(!Y1(u,r,this.currentDirection))return;let f=c&&c[u]||{};o&&(f={min:0,max:0});const d=s?200:1e6,h=s?40:1e7,y={type:"inertia",velocity:n?e[u]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(u,y)});return Promise.all(l).then(a)}startAxisValueAnimation(e,r){const n=this.getAxisMotionValue(e);return n.start(dE(e,n,0,r))}stopAnimation(){zs(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const r="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),s=n[r];return s||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){zs(r=>{const{drag:n}=this.getProps();if(!Y1(r,n,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(r);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[r];i.set(e[r]-Ct(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!cu(r)||!n||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};zs(o=>{const a=this.getAxisMotionValue(o);if(a){const c=a.get();s[o]=az({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),zs(o=>{if(!Y1(o,e,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(Ct(c,l,s[o]))})}addListeners(){if(!this.visualElement.current)return;vz.set(this.visualElement,this);const e=this.visualElement.current,r=Ji(e,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),n=()=>{const{dragConstraints:c}=this.getProps();cu(c)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),n();const o=Gi(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(zs(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=c[u].translate,f.set(f.get()+c[u].translate))}),this.visualElement.render())});return()=>{o(),r(),i(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=Zb,dragMomentum:a=!0}=e;return{...e,drag:r,dragDirectionLock:n,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Y1(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function mz(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}class xz extends Fa{constructor(e){super(e),this.removeGroupControls=Is,this.removeListeners=Is,this.controls=new gz(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Is}unmount(){this.removeGroupControls(),this.removeListeners()}}class bz extends Fa{constructor(){super(...arguments),this.removePointerDownListener=Is}onPointerDown(e){this.session=new WP(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:r,onPan:n,onPanEnd:s}=this.node.getProps();return{onSessionStart:e,onStart:r,onMove:n,onEnd:(i,o)=>{delete this.session,s&&s(i,o)}}}mount(){this.removePointerDownListener=Ji(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function wz(){const t=m.useContext(eg);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:r,register:n}=t,s=m.useId();return m.useEffect(()=>n(s),[]),!e&&r?[!1,()=>r&&r(s)]:[!0]}function NA(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Bd={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Ie.test(t))t=parseFloat(t);else return t;const r=NA(t,e.target.x),n=NA(t,e.target.y);return`${r}% ${n}%`}},KP=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Cz(t){const e=KP.exec(t);if(!e)return[,];const[,r,n]=e;return[r,n]}function rw(t,e,r=1){const[n,s]=Cz(t);if(!n)return;const i=window.getComputedStyle(e).getPropertyValue(n);return i?i.trim():$b(s)?rw(s,e,r+1):s}function Ez(t,{...e},r){const n=t.current;if(!(n instanceof Element))return{target:e,transitionEnd:r};r&&(r={...r}),t.values.forEach(s=>{const i=s.get();if(!$b(i))return;const o=rw(i,n);o&&s.set(o)});for(const s in e){const i=e[s];if(!$b(i))continue;const o=rw(i,n);o&&(e[s]=o,r&&r[s]===void 0&&(r[s]=i))}return{target:e,transitionEnd:r}}const _A="_$css",kz={correct:(t,{treeScale:e,projectionDelta:r})=>{const n=t,s=t.includes("var("),i=[];s&&(t=t.replace(KP,h=>(i.push(h),_A)));const o=Ta.parse(t);if(o.length>5)return n;const a=Ta.createTransformer(t),c=typeof o[0]!="number"?1:0,l=r.x.scale*e.x,u=r.y.scale*e.y;o[0+c]/=l,o[1+c]/=u;const f=Ct(l,u,.5);typeof o[2+c]=="number"&&(o[2+c]/=f),typeof o[3+c]=="number"&&(o[3+c]/=f);let d=a(o);if(s){let h=0;d=d.replace(_A,()=>{const y=i[h];return h++,y})}return d}};class Az extends $r.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n,layoutId:s}=this.props,{projection:i}=e;TW(Sz),i&&(r.group&&r.group.add(i),n&&n.register&&s&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),xh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:r,visualElement:n,drag:s,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,s||e.layoutDependency!==r||r===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||Or.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:s}=e;s&&(s.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(s),n&&n.deregister&&n.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function QP(t){const[e,r]=wz(),n=m.useContext(HC);return $r.createElement(Az,{...t,layoutGroup:n,switchLayoutGroup:m.useContext(YT),isPresent:e,safeToRemove:r})}const Sz={borderRadius:{...Bd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Bd,borderTopRightRadius:Bd,borderBottomLeftRadius:Bd,borderBottomRightRadius:Bd,boxShadow:kz};function Tz(t,e,r={}){const n=hn(t)?t:Ff(t);return n.start(dE("",n,e,r)),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}const JP=["TopLeft","TopRight","BottomLeft","BottomRight"],Pz=JP.length,MA=t=>typeof t=="string"?parseFloat(t):t,DA=t=>typeof t=="number"||Ie.test(t);function Iz(t,e,r,n,s,i){s?(t.opacity=Ct(0,r.opacity!==void 0?r.opacity:1,Oz(n)),t.opacityExit=Ct(e.opacity!==void 0?e.opacity:1,0,Rz(n))):i&&(t.opacity=Ct(e.opacity!==void 0?e.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let o=0;one?1:r(c0(t,e,n))}function LA(t,e){t.min=e.min,t.max=e.max}function Mn(t,e){LA(t.x,e.x),LA(t.y,e.y)}function jA(t,e,r,n,s){return t-=e,t=zy(t,1/r,n),s!==void 0&&(t=zy(t,1/s,n)),t}function Nz(t,e=0,r=1,n=.5,s,i=t,o=t){if(di.test(e)&&(e=parseFloat(e),e=Ct(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=Ct(i.min,i.max,n);t===i&&(a-=e),t.min=jA(t.min,e,r,a,s),t.max=jA(t.max,e,r,a,s)}function FA(t,e,[r,n,s],i,o){Nz(t,e[r],e[n],e[s],e.scale,i,o)}const _z=["x","scaleX","originX"],Mz=["y","scaleY","originY"];function UA(t,e,r,n){FA(t.x,e,_z,r?r.x:void 0,n?n.x:void 0),FA(t.y,e,Mz,r?r.y:void 0,n?n.y:void 0)}function $A(t){return t.translate===0&&t.scale===1}function XP(t){return $A(t.x)&&$A(t.y)}function nw(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function WA(t){return Rn(t.x)/Rn(t.y)}class Dz{constructor(){this.members=[]}add(e){ZC(this.members,e),e.scheduleRender()}remove(e){if(eE(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(e){const r=this.members.findIndex(s=>e===s);if(r===0)return!1;let n;for(let s=r;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(e,r){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,r&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:s}=e.options;s===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:r,resumingFrom:n}=e;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function VA(t,e,r){let n="";const s=t.x.translate/e.x,i=t.y.translate/e.y;if((s||i)&&(n=`translate3d(${s}px, ${i}px, 0) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),r){const{rotate:c,rotateX:l,rotateY:u}=r;c&&(n+=`rotate(${c}deg) `),l&&(n+=`rotateX(${l}deg) `),u&&(n+=`rotateY(${u}deg) `)}const o=t.x.scale*e.x,a=t.y.scale*e.y;return(o!==1||a!==1)&&(n+=`scale(${o}, ${a})`),n||"none"}const Bz=(t,e)=>t.depth-e.depth;class Lz{constructor(){this.children=[],this.isDirty=!1}add(e){ZC(this.children,e),this.isDirty=!0}remove(e){eE(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Bz),this.isDirty=!1,this.children.forEach(e)}}function jz(t){window.MotionDebug&&window.MotionDebug.record(t)}const HA=["","X","Y","Z"],zA=1e3;let Fz=0;const rc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ZP({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(o,a={},c=e==null?void 0:e()){this.id=Fz++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{rc.totalNodes=rc.resolvedTargetDeltas=rc.recalculatedProjection=0,this.nodes.forEach(Wz),this.nodes.forEach(Gz),this.nodes.forEach(qz),this.nodes.forEach(Vz),jz(rc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=o,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0,o&&this.root.registerPotentialNode(o,this);for(let l=0;lthis.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=FP(d,250),xh.hasAnimatedSinceResize&&(xh.hasAnimatedSinceResize=!1,this.nodes.forEach(qA))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||l)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||Xz,{onLayoutAnimationStart:b,onLayoutAnimationComplete:v}=u.getProps(),g=!this.targetLayout||!nw(this.targetLayout,y)||h,x=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||d&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,x);const k={...UP(p,"layout"),onPlay:b,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k)}else!d&&this.animationProgress===0&&qA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Sa.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Kz),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c{const S=k/1e3;KA(f.x,o.x,S),KA(f.y,o.y,S),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Eh(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Jz(this.relativeTarget,this.relativeTargetOrigin,d,S),x&&nw(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Lt()),Mn(x,this.relativeTarget)),p&&(this.animationValues=u,Iz(u,l,this.latestValues,S,g,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Sa.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Or.update(()=>{xh.hasAnimatedSinceResize=!0,this.currentAnimation=Tz(0,zA,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(zA),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=o;if(!(!a||!c||!l)){if(this!==o&&this.layout&&l&&eI(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||Lt();const f=Rn(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+f;const d=Rn(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+d}Mn(a,c),uu(a,u),Ch(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Dz),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(a=!0),!a)return;const l={};for(let u=0;u{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(GA),this.root.sharedNodes.clear()}}}function Uz(t){t.updateLayout()}function $z(t){var e;const r=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,o=r.source!==t.layout.source;i==="size"?zs(f=>{const d=o?r.measuredBox[f]:r.layoutBox[f],h=Rn(d);d.min=n[f].min,d.max=d.min+h}):eI(i,r.layoutBox,n)&&zs(f=>{const d=o?r.measuredBox[f]:r.layoutBox[f],h=Rn(n[f]);d.max=d.min+h});const a=kh();Ch(a,n,r.layoutBox);const c=kh();o?Ch(c,t.applyTransform(s,!0),r.measuredBox):Ch(c,n,r.layoutBox);const l=!XP(a);let u=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const y=Lt();Eh(y,r.layoutBox,d.layoutBox);const p=Lt();Eh(p,n,h.layoutBox),nw(y,p)||(u=!0),f.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=y,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function Wz(t){rc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Vz(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Hz(t){t.clearSnapshot()}function GA(t){t.clearMeasurements()}function zz(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function qA(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function Gz(t){t.resolveTargetDelta()}function qz(t){t.calcProjection()}function Kz(t){t.resetRotation()}function Qz(t){t.removeLeadSnapshot()}function KA(t,e,r){t.translate=Ct(e.translate,0,r),t.scale=Ct(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function QA(t,e,r,n){t.min=Ct(e.min,r.min,n),t.max=Ct(e.max,r.max,n)}function Jz(t,e,r,n){QA(t.x,e.x,r.x,n),QA(t.y,e.y,r.y,n)}function Yz(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Xz={duration:.45,ease:[.4,0,.1,1]};function Zz(t,e){let r=t.root;for(let i=t.path.length-1;i>=0;i--)if(t.path[i].instance){r=t.path[i];break}const s=(r&&r!==t.root?r.instance:document).querySelector(`[data-projection-id="${e}"]`);s&&t.mount(s,!0)}function JA(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function eG(t){JA(t.x),JA(t.y)}function eI(t,e,r){return t==="position"||t==="preserve-aspect"&&!Xb(WA(e),WA(r),.2)}const tG=ZP({attachResizeListener:(t,e)=>Gi(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ex={current:void 0},tI=ZP({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ex.current){const t=new tG(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),ex.current=t}return ex.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),rG={pan:{Feature:bz},drag:{Feature:xz,ProjectionNode:tI,MeasureLayout:QP}},nG=new Set(["width","height","top","left","right","bottom","x","y"]),rI=t=>nG.has(t),sG=t=>Object.keys(t).some(rI),YA=t=>t===Sl||t===Ie,XA=(t,e)=>parseFloat(t.split(", ")[e]),ZA=(t,e)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const s=n.match(/^matrix3d\((.+)\)$/);if(s)return XA(s[1],e);{const i=n.match(/^matrix\((.+)\)$/);return i?XA(i[1],t):0}},iG=new Set(["x","y","z"]),oG=sg.filter(t=>!iG.has(t));function aG(t){const e=[];return oG.forEach(r=>{const n=t.getValue(r);n!==void 0&&(e.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),e.length&&t.render(),e}const eS={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:ZA(4,13),y:ZA(5,14)},cG=(t,e,r)=>{const n=e.measureViewportBox(),s=e.current,i=getComputedStyle(s),{display:o}=i,a={};o==="none"&&e.setStaticValue("display",t.display||"block"),r.forEach(l=>{a[l]=eS[l](n,i)}),e.render();const c=e.measureViewportBox();return r.forEach(l=>{const u=e.getValue(l);u&&u.jump(a[l]),t[l]=eS[l](c,i)}),t},lG=(t,e,r={},n={})=>{e={...e},n={...n};const s=Object.keys(e).filter(rI);let i=[],o=!1;const a=[];if(s.forEach(c=>{const l=t.getValue(c);if(!t.hasValue(c))return;let u=r[c],f=Dd(u);const d=e[c];let h;if($y(d)){const y=d.length,p=d[0]===null?1:0;u=d[p],f=Dd(u);for(let b=p;b=0?window.pageYOffset:null,l=cG(e,t,a);return i.length&&i.forEach(([u,f])=>{t.getValue(u).set(f)}),t.render(),tg&&c!==null&&window.scrollTo({top:c}),{target:l,transitionEnd:n}}else return{target:e,transitionEnd:n}};function uG(t,e,r,n){return sG(e)?lG(t,e,r,n):{target:e,transitionEnd:n}}const fG=(t,e,r,n)=>{const s=Ez(t,e,n);return e=s.target,n=s.transitionEnd,uG(t,e,r,n)},sw={current:null},nI={current:!1};function dG(){if(nI.current=!0,!!tg)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>sw.current=t.matches;t.addListener(e),e()}else sw.current=!1}function hG(t,e,r){const{willChange:n}=e;for(const s in e){const i=e[s],o=r[s];if(hn(i))t.addValue(s,i),Vy(n)&&n.add(s);else if(hn(o))t.addValue(s,Ff(i,{owner:t})),Vy(n)&&n.remove(s);else if(o!==i)if(t.hasValue(s)){const a=t.getValue(s);!a.hasAnimated&&a.set(i)}else{const a=t.getStaticValue(s);t.addValue(s,Ff(a!==void 0?a:i,{owner:t}))}}for(const s in r)e[s]===void 0&&t.removeValue(s);return e}const sI=Object.keys(s0),pG=sI.length,tS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],yG=WC.length;class vG{constructor({parent:e,props:r,presenceContext:n,reducedMotionConfig:s,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Or.render(this.render,!1,!0);const{latestValues:a,renderState:c}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=r.initial?{...a}:{},this.renderState=c,this.parent=e,this.props=r,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=o,this.isControllingVariants=ng(r),this.isVariantNode=JT(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(r,{});for(const f in u){const d=u[f];a[f]!==void 0&&hn(d)&&(d.set(a[f],!1),Vy(l)&&l.add(f))}}scrapeMotionValuesFromProps(e,r){return{}}mount(e){this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),nI.current||dG(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:sw.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Sa.update(this.notifyUpdate),Sa.render(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,r){const n=Al.has(e),s=r.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&Or.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{s(),i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...r},n,s,i,o){let a,c;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:h,layoutRoot:y})}return c}updateFeatures(){for(const e in this.features){const r=this.features[e];r.isMounted?r.update(this.props,this.prevProps):(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Lt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}makeTargetAnimatable(e,r=!0){return this.makeTargetAnimatableFromInstance(e,this.props,r)}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(e)}addValue(e,r){r!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,r)),this.values.set(e,r),this.latestValues[e]=r.get()}removeValue(e){this.values.delete(e);const r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&r!==void 0&&(n=Ff(r,{owner:this}),this.addValue(e,n)),n}readValue(e){return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){var r;const{initial:n}=this.props,s=typeof n=="string"||typeof n=="object"?(r=XC(this.props,n))===null||r===void 0?void 0:r[e]:void 0;if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!hn(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new tE),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}}class iI extends vG{sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){return e.style?e.style[r]:void 0}removeValueFromRenderState(e,{vars:r,style:n}){delete r[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:r,...n},{transformValues:s},i){let o=UV(n,e||{},this);if(s&&(r&&(r=s(r)),n&&(n=s(n)),o&&(o=s(o))),i){jV(this,n,o);const a=fG(this,n,o,r);r=a.transitionEnd,n=a.target}return{transition:e,transitionEnd:r,...n}}}function gG(t){return window.getComputedStyle(t)}class mG extends iI{readValueFromInstance(e,r){if(Al.has(r)){const n=sE(r);return n&&n.default||0}else{const n=gG(e),s=(eP(r)?n.getPropertyValue(r):n[r])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:r}){return qP(e,r)}build(e,r,n,s){GC(e,r,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,r){return YC(e,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;hn(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(e,r,n,s){iP(e,r,n,s)}}class xG extends iI{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(Al.has(r)){const n=sE(r);return n&&n.default||0}return r=oP.has(r)?r:JC(r),e.getAttribute(r)}measureInstanceViewportBox(){return Lt()}scrapeMotionValuesFromProps(e,r){return cP(e,r)}build(e,r,n,s){KC(e,r,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,r,n,s){aP(e,r,n,s)}mount(e){this.isSVGTag=QC(e.tagName),super.mount(e)}}const bG=(t,e)=>zC(t)?new xG(e,{enableHardwareAcceleration:!1}):new mG(e,{enableHardwareAcceleration:!0}),wG={layout:{ProjectionNode:tI,MeasureLayout:QP}},CG={...ZH,...dV,...rG,...wG},Au=AW((t,e)=>ZW(t,e,CG,bG));function oI(){const t=m.useRef(!1);return jy(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function EG(){const t=oI(),[e,r]=m.useState(0),n=m.useCallback(()=>{t.current&&r(e+1)},[e]);return[m.useCallback(()=>Or.postRender(n),[n]),e]}class kG extends m.Component{getSnapshotBeforeUpdate(e){const r=this.props.childRef.current;if(r&&e.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function AG({children:t,isPresent:e}){const r=m.useId(),n=m.useRef(null),s=m.useRef({width:0,height:0,top:0,left:0});return m.useInsertionEffect(()=>{const{width:i,height:o,top:a,left:c}=s.current;if(e||!n.current||!i||!o)return;n.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` +`+i.stack}return{value:t,source:e,stack:s,digest:null}}function $m(t,e,r){return{value:t,source:null,stack:r??null,digest:e??null}}function Ib(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var H$=typeof WeakMap=="function"?WeakMap:Map;function CT(t,e,r){r=Ji(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){Dy||(Dy=!0,Fb=n),Ib(t,e)},r}function ET(t,e,r){r=Ji(-1,r),r.tag=3;var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var s=e.value;r.payload=function(){return n(s)},r.callback=function(){Ib(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){Ib(t,e),typeof n!="function"&&(va===null?va=new Set([this]):va.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),r}function F6(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new H$;var s=new Set;n.set(e,s)}else s=n.get(e),s===void 0&&(s=new Set,n.set(e,s));s.has(r)||(s.add(r),t=sW.bind(null,t,e,r),e.then(t,t))}function U6(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function $6(t,e,r,n,s){return t.mode&1?(t.flags|=65536,t.lanes=s,t):(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(e=Ji(-1,1),e.tag=2,ya(r,e,1))),r.lanes|=1),t)}var z$=ho.ReactCurrentOwner,cn=!1;function Ur(t,e,r,n){e.child=t===null?X4(e,null,r,n):Df(e,t.child,r,n)}function W6(t,e,r,n,s){r=r.render;var i=e.ref;return ku(e,s),n=TC(t,e,r,n,i,s),r=PC(),t!==null&&!cn?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,io(t,e,s)):(gt&&r&&yC(e),e.flags|=1,Ur(t,e,n,s),e.child)}function V6(t,e,r,n,s){if(t===null){var i=r.type;return typeof i=="function"&&!jC(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=i,kT(t,e,i,n,s)):(t=jp(r.type,null,n,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!(t.lanes&s)){var o=i.memoizedProps;if(r=r.compare,r=r!==null?r:Kh,r(o,n)&&t.ref===e.ref)return io(t,e,s)}return e.flags|=1,t=ma(i,n),t.ref=e.ref,t.return=e,e.child=t}function kT(t,e,r,n,s){if(t!==null){var i=t.memoizedProps;if(Kh(i,n)&&t.ref===e.ref)if(cn=!1,e.pendingProps=n=i,(t.lanes&s)!==0)t.flags&131072&&(cn=!0);else return e.lanes=t.lanes,io(t,e,s)}return Ob(t,e,r,n,s)}function AT(t,e,r){var n=e.pendingProps,s=n.children,i=t!==null?t.memoizedState:null;if(n.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},lt(cu,En),En|=r;else{if(!(r&1073741824))return t=i!==null?i.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,lt(cu,En),En|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,lt(cu,En),En|=n}else i!==null?(n=i.baseLanes|r,e.memoizedState=null):n=r,lt(cu,En),En|=n;return Ur(t,e,s,r),e.child}function ST(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function Ob(t,e,r,n,s){var i=un(r)?il:Nr.current;return i=_f(e,i),ku(e,s),r=TC(t,e,r,n,i,s),n=PC(),t!==null&&!cn?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,io(t,e,s)):(gt&&n&&yC(e),e.flags|=1,Ur(t,e,r,s),e.child)}function H6(t,e,r,n,s){if(un(r)){var i=!0;Ay(e)}else i=!1;if(ku(e,s),e.stateNode===null)Dp(t,e),wT(e,r,n),Pb(e,r,n,s),n=!0;else if(t===null){var o=e.stateNode,a=e.memoizedProps;o.props=a;var c=o.context,l=r.contextType;typeof l=="object"&&l!==null?l=ns(l):(l=un(r)?il:Nr.current,l=_f(e,l));var u=r.getDerivedStateFromProps,f=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==n||c!==l)&&j6(e,o,n,l),_o=!1;var d=e.memoizedState;o.state=d,Oy(e,n,o,s),c=e.memoizedState,a!==n||d!==c||ln.current||_o?(typeof u=="function"&&(Tb(e,r,u,n),c=e.memoizedState),(a=_o||L6(e,r,a,n,d,c,l))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=c),o.props=n,o.state=c,o.context=l,n=a):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{o=e.stateNode,eT(t,e),a=e.memoizedProps,l=e.type===e.elementType?a:ps(e.type,a),o.props=l,f=e.pendingProps,d=o.context,c=r.contextType,typeof c=="object"&&c!==null?c=ns(c):(c=un(r)?il:Nr.current,c=_f(e,c));var h=r.getDerivedStateFromProps;(u=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||d!==c)&&j6(e,o,n,c),_o=!1,d=e.memoizedState,o.state=d,Oy(e,n,o,s);var y=e.memoizedState;a!==f||d!==y||ln.current||_o?(typeof h=="function"&&(Tb(e,r,h,n),y=e.memoizedState),(l=_o||L6(e,r,l,n,d,y,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,y,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,y,c)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=y),o.props=n,o.state=y,o.context=c,n=l):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),n=!1)}return Rb(t,e,r,n,i,s)}function Rb(t,e,r,n,s,i){ST(t,e);var o=(e.flags&128)!==0;if(!n&&!o)return s&&I6(e,r,!1),io(t,e,i);n=e.stateNode,z$.current=e;var a=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&o?(e.child=Df(e,t.child,null,i),e.child=Df(e,null,a,i)):Ur(t,e,a,i),e.memoizedState=n.state,s&&I6(e,r,!0),e.child}function TT(t){var e=t.stateNode;e.pendingContext?P6(t,e.pendingContext,e.pendingContext!==e.context):e.context&&P6(t,e.context,!1),EC(t,e.containerInfo)}function z6(t,e,r,n,s){return Mf(),gC(s),e.flags|=256,Ur(t,e,r,n),e.child}var Nb={dehydrated:null,treeContext:null,retryLane:0};function _b(t){return{baseLanes:t,cachePool:null,transitions:null}}function PT(t,e,r){var n=e.pendingProps,s=bt.current,i=!1,o=(e.flags&128)!==0,a;if((a=o)||(a=t!==null&&t.memoizedState===null?!1:(s&2)!==0),a?(i=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(s|=1),lt(bt,s&1),t===null)return Ab(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=n.children,t=n.fallback,i?(n=e.mode,i=e.child,o={mode:"hidden",children:o},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Qv(o,n,0,null),t=Yc(t,n,r,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=_b(r),e.memoizedState=Nb,t):RC(e,o));if(s=t.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return G$(t,e,o,n,a,s,r);if(i){i=n.fallback,o=e.mode,s=t.child,a=s.sibling;var c={mode:"hidden",children:n.children};return!(o&1)&&e.child!==s?(n=e.child,n.childLanes=0,n.pendingProps=c,e.deletions=null):(n=ma(s,c),n.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=ma(a,i):(i=Yc(i,o,r,null),i.flags|=2),i.return=e,n.return=e,n.sibling=i,e.child=n,n=i,i=e.child,o=t.child.memoizedState,o=o===null?_b(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=t.childLanes&~r,e.memoizedState=Nb,n}return i=t.child,t=i.sibling,n=ma(i,{mode:"visible",children:n.children}),!(e.mode&1)&&(n.lanes=r),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n}function RC(t,e){return e=Qv({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function G1(t,e,r,n){return n!==null&&gC(n),Df(e,t.child,null,r),t=RC(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function G$(t,e,r,n,s,i,o){if(r)return e.flags&256?(e.flags&=-257,n=$m(Error(ne(422))),G1(t,e,o,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=n.fallback,s=e.mode,n=Qv({mode:"visible",children:n.children},s,0,null),i=Yc(i,s,o,null),i.flags|=2,n.return=e,i.return=e,n.sibling=i,e.child=n,e.mode&1&&Df(e,t.child,null,o),e.child.memoizedState=_b(o),e.memoizedState=Nb,i);if(!(e.mode&1))return G1(t,e,o,null);if(s.data==="$!"){if(n=s.nextSibling&&s.nextSibling.dataset,n)var a=n.dgst;return n=a,i=Error(ne(419)),n=$m(i,n,void 0),G1(t,e,o,n)}if(a=(o&t.childLanes)!==0,cn||a){if(n=ir,n!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(n.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,so(t,s),Is(n,t,s,-1))}return LC(),n=$m(Error(ne(421))),G1(t,e,o,n)}return s.data==="$?"?(e.flags|=128,e.child=t.child,e=iW.bind(null,t),s._reactRetry=e,null):(t=i.treeContext,Sn=pa(s.nextSibling),Tn=e,gt=!0,Es=null,t!==null&&(Qn[Jn++]=zi,Qn[Jn++]=Gi,Qn[Jn++]=ol,zi=t.id,Gi=t.overflow,ol=e),e=RC(e,n.children),e.flags|=4096,e)}function G6(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Sb(t.return,e,r)}function Wm(t,e,r,n,s){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:s}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=s)}function IT(t,e,r){var n=e.pendingProps,s=n.revealOrder,i=n.tail;if(Ur(t,e,n.children,r),n=bt.current,n&2)n=n&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&G6(t,r,e);else if(t.tag===19)G6(t,r,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if(lt(bt,n),!(e.mode&1))e.memoizedState=null;else switch(s){case"forwards":for(r=e.child,s=null;r!==null;)t=r.alternate,t!==null&&Ry(t)===null&&(s=r),r=r.sibling;r=s,r===null?(s=e.child,e.child=null):(s=r.sibling,r.sibling=null),Wm(e,!1,s,r,i);break;case"backwards":for(r=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&Ry(t)===null){e.child=s;break}t=s.sibling,s.sibling=r,r=s,s=t}Wm(e,!0,r,null,i);break;case"together":Wm(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Dp(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function io(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),cl|=e.lanes,!(r&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(ne(153));if(e.child!==null){for(t=e.child,r=ma(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=ma(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function q$(t,e,r){switch(e.tag){case 3:TT(e),Mf();break;case 5:tT(e);break;case 1:un(e.type)&&Ay(e);break;case 4:EC(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,s=e.memoizedProps.value;lt(Py,n._currentValue),n._currentValue=s;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?(lt(bt,bt.current&1),e.flags|=128,null):r&e.child.childLanes?PT(t,e,r):(lt(bt,bt.current&1),t=io(t,e,r),t!==null?t.sibling:null);lt(bt,bt.current&1);break;case 19:if(n=(r&e.childLanes)!==0,t.flags&128){if(n)return IT(t,e,r);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),lt(bt,bt.current),n)break;return null;case 22:case 23:return e.lanes=0,AT(t,e,r)}return io(t,e,r)}var OT,Mb,RT,NT;OT=function(t,e){for(var r=e.child;r!==null;){if(r.tag===5||r.tag===6)t.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Mb=function(){};RT=function(t,e,r,n){var s=t.memoizedProps;if(s!==n){t=e.stateNode,vc(di.current);var i=null;switch(r){case"input":s=rb(t,s),n=rb(t,n),i=[];break;case"select":s=kt({},s,{value:void 0}),n=kt({},n,{value:void 0}),i=[];break;case"textarea":s=ib(t,s),n=ib(t,n),i=[];break;default:typeof s.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=Ey)}ab(r,n);var o;r=null;for(l in s)if(!n.hasOwnProperty(l)&&s.hasOwnProperty(l)&&s[l]!=null)if(l==="style"){var a=s[l];for(o in a)a.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&($h.hasOwnProperty(l)?i||(i=[]):(i=i||[]).push(l,null));for(l in n){var c=n[l];if(a=s!=null?s[l]:void 0,n.hasOwnProperty(l)&&c!==a&&(c!=null||a!=null))if(l==="style")if(a){for(o in a)!a.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in c)c.hasOwnProperty(o)&&a[o]!==c[o]&&(r||(r={}),r[o]=c[o])}else r||(i||(i=[]),i.push(l,r)),r=c;else l==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(i=i||[]).push(l,c)):l==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(l,""+c):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&($h.hasOwnProperty(l)?(c!=null&&l==="onScroll"&&ut("scroll",t),i||a===c||(i=[])):(i=i||[]).push(l,c))}r&&(i=i||[]).push("style",r);var l=i;(e.updateQueue=l)&&(e.flags|=4)}};NT=function(t,e,r,n){r!==n&&(e.flags|=4)};function Md(t,e){if(!gt)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function Cr(t){var e=t.alternate!==null&&t.alternate.child===t.child,r=0,n=0;if(e)for(var s=t.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags&14680064,n|=s.flags&14680064,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags,n|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function K$(t,e,r){var n=e.pendingProps;switch(vC(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Cr(e),null;case 1:return un(e.type)&&ky(),Cr(e),null;case 3:return n=e.stateNode,Bf(),yt(ln),yt(Nr),AC(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(H1(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Es!==null&&(Wb(Es),Es=null))),Mb(t,e),Cr(e),null;case 5:kC(e);var s=vc(Zh.current);if(r=e.type,t!==null&&e.stateNode!=null)RT(t,e,r,n,s),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(ne(166));return Cr(e),null}if(t=vc(di.current),H1(e)){n=e.stateNode,r=e.type;var i=e.memoizedProps;switch(n[ii]=e,n[Yh]=i,t=(e.mode&1)!==0,r){case"dialog":ut("cancel",n),ut("close",n);break;case"iframe":case"object":case"embed":ut("load",n);break;case"video":case"audio":for(s=0;s<\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=o.createElement(r,{is:n.is}):(t=o.createElement(r),r==="select"&&(o=t,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):t=o.createElementNS(t,r),t[ii]=e,t[Yh]=n,OT(t,e,!1,!1),e.stateNode=t;e:{switch(o=cb(r,n),r){case"dialog":ut("cancel",t),ut("close",t),s=n;break;case"iframe":case"object":case"embed":ut("load",t),s=n;break;case"video":case"audio":for(s=0;sjf&&(e.flags|=128,n=!0,Md(i,!1),e.lanes=4194304)}else{if(!n)if(t=Ry(o),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Md(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!gt)return Cr(e),null}else 2*_t()-i.renderingStartTime>jf&&r!==1073741824&&(e.flags|=128,n=!0,Md(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(r=i.last,r!==null?r.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=_t(),e.sibling=null,r=bt.current,lt(bt,n?r&1|2:r&1),e):(Cr(e),null);case 22:case 23:return BC(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?En&1073741824&&(Cr(e),e.subtreeFlags&6&&(e.flags|=8192)):Cr(e),null;case 24:return null;case 25:return null}throw Error(ne(156,e.tag))}function Q$(t,e){switch(vC(e),e.tag){case 1:return un(e.type)&&ky(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Bf(),yt(ln),yt(Nr),AC(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return kC(e),null;case 13:if(yt(bt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(ne(340));Mf()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return yt(bt),null;case 4:return Bf(),null;case 10:return bC(e.type._context),null;case 22:case 23:return BC(),null;case 24:return null;default:return null}}var q1=!1,Ir=!1,J$=typeof WeakSet=="function"?WeakSet:Set,pe=null;function au(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){St(t,e,n)}else r.current=null}function Db(t,e,r){try{r()}catch(n){St(t,e,n)}}var q6=!1;function Y$(t,e){if(mb=by,t=L4(),pC(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var s=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var o=0,a=-1,c=-1,l=0,u=0,f=t,d=null;t:for(;;){for(var h;f!==r||s!==0&&f.nodeType!==3||(a=o+s),f!==i||n!==0&&f.nodeType!==3||(c=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===t)break t;if(d===r&&++l===s&&(a=o),d===i&&++u===n&&(c=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=a===-1||c===-1?null:{start:a,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(xb={focusedElem:t,selectionRange:r},by=!1,pe=e;pe!==null;)if(e=pe,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,pe=t;else for(;pe!==null;){e=pe;try{var y=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var p=y.memoizedProps,b=y.memoizedState,v=e.stateNode,g=v.getSnapshotBeforeUpdate(e.elementType===e.type?p:ps(e.type,p),b);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=e.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ne(163))}}catch(k){St(e,e.return,k)}if(t=e.sibling,t!==null){t.return=e.return,pe=t;break}pe=e.return}return y=q6,q6=!1,y}function gh(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&t)===t){var i=s.destroy;s.destroy=void 0,i!==void 0&&Db(e,r,i)}s=s.next}while(s!==n)}}function qv(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function Bb(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function _T(t){var e=t.alternate;e!==null&&(t.alternate=null,_T(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[ii],delete e[Yh],delete e[Cb],delete e[_$],delete e[M$])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function MT(t){return t.tag===5||t.tag===3||t.tag===4}function K6(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||MT(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Lb(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=Ey));else if(n!==4&&(t=t.child,t!==null))for(Lb(t,e,r),t=t.sibling;t!==null;)Lb(t,e,r),t=t.sibling}function jb(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(jb(t,e,r),t=t.sibling;t!==null;)jb(t,e,r),t=t.sibling}var ur=null,Cs=!1;function wo(t,e,r){for(r=r.child;r!==null;)DT(t,e,r),r=r.sibling}function DT(t,e,r){if(fi&&typeof fi.onCommitFiberUnmount=="function")try{fi.onCommitFiberUnmount(Fv,r)}catch{}switch(r.tag){case 5:Ir||au(r,e);case 6:var n=ur,s=Cs;ur=null,wo(t,e,r),ur=n,Cs=s,ur!==null&&(Cs?(t=ur,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):ur.removeChild(r.stateNode));break;case 18:ur!==null&&(Cs?(t=ur,r=r.stateNode,t.nodeType===8?Dm(t.parentNode,r):t.nodeType===1&&Dm(t,r),Gh(t)):Dm(ur,r.stateNode));break;case 4:n=ur,s=Cs,ur=r.stateNode.containerInfo,Cs=!0,wo(t,e,r),ur=n,Cs=s;break;case 0:case 11:case 14:case 15:if(!Ir&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){s=n=n.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Db(r,e,o),s=s.next}while(s!==n)}wo(t,e,r);break;case 1:if(!Ir&&(au(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){St(r,e,a)}wo(t,e,r);break;case 21:wo(t,e,r);break;case 22:r.mode&1?(Ir=(n=Ir)||r.memoizedState!==null,wo(t,e,r),Ir=n):wo(t,e,r);break;default:wo(t,e,r)}}function Q6(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new J$),e.forEach(function(n){var s=oW.bind(null,t,n);r.has(n)||(r.add(n),n.then(s,s))})}}function as(t,e){var r=e.deletions;if(r!==null)for(var n=0;ns&&(s=o),n&=~i}if(n=s,n=_t()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Z$(n/1960))-n,10t?16:t,aa===null)var n=!1;else{if(t=aa,aa=null,By=0,Ge&6)throw Error(ne(331));var s=Ge;for(Ge|=4,pe=t.current;pe!==null;){var i=pe,o=i.child;if(pe.flags&16){var a=i.deletions;if(a!==null){for(var c=0;c_t()-MC?Jc(t,0):_C|=r),fn(t,e)}function VT(t,e){e===0&&(t.mode&1?(e=j1,j1<<=1,!(j1&130023424)&&(j1=4194304)):e=1);var r=Gr();t=so(t,e),t!==null&&(t1(t,e,r),fn(t,r))}function iW(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),VT(t,r)}function oW(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,s=t.memoizedState;s!==null&&(r=s.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(ne(314))}n!==null&&n.delete(e),VT(t,r)}var HT;HT=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||ln.current)cn=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return cn=!1,q$(t,e,r);cn=!!(t.flags&131072)}else cn=!1,gt&&e.flags&1048576&&K4(e,Ty,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;Dp(t,e),t=e.pendingProps;var s=_f(e,Nr.current);ku(e,r),s=TC(null,e,n,t,s,r);var i=PC();return e.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,un(n)?(i=!0,Ay(e)):i=!1,e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,CC(e),s.updater=Gv,e.stateNode=s,s._reactInternals=e,Pb(e,n,t,r),e=Rb(null,e,n,!0,i,r)):(e.tag=0,gt&&i&&yC(e),Ur(null,e,s,r),e=e.child),e;case 16:n=e.elementType;e:{switch(Dp(t,e),t=e.pendingProps,s=n._init,n=s(n._payload),e.type=n,s=e.tag=cW(n),t=ps(n,t),s){case 0:e=Ob(null,e,n,t,r);break e;case 1:e=H6(null,e,n,t,r);break e;case 11:e=W6(null,e,n,t,r);break e;case 14:e=V6(null,e,n,ps(n.type,t),r);break e}throw Error(ne(306,n,""))}return e;case 0:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ps(n,s),Ob(t,e,n,s,r);case 1:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ps(n,s),H6(t,e,n,s,r);case 3:e:{if(TT(e),t===null)throw Error(ne(387));n=e.pendingProps,i=e.memoizedState,s=i.element,eT(t,e),Oy(e,n,null,r);var o=e.memoizedState;if(n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){s=Lf(Error(ne(423)),e),e=z6(t,e,n,r,s);break e}else if(n!==s){s=Lf(Error(ne(424)),e),e=z6(t,e,n,r,s);break e}else for(Sn=pa(e.stateNode.containerInfo.firstChild),Tn=e,gt=!0,Es=null,r=X4(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Mf(),n===s){e=io(t,e,r);break e}Ur(t,e,n,r)}e=e.child}return e;case 5:return tT(e),t===null&&Ab(e),n=e.type,s=e.pendingProps,i=t!==null?t.memoizedProps:null,o=s.children,bb(n,s)?o=null:i!==null&&bb(n,i)&&(e.flags|=32),ST(t,e),Ur(t,e,o,r),e.child;case 6:return t===null&&Ab(e),null;case 13:return PT(t,e,r);case 4:return EC(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Df(e,null,n,r):Ur(t,e,n,r),e.child;case 11:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ps(n,s),W6(t,e,n,s,r);case 7:return Ur(t,e,e.pendingProps,r),e.child;case 8:return Ur(t,e,e.pendingProps.children,r),e.child;case 12:return Ur(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,s=e.pendingProps,i=e.memoizedProps,o=s.value,lt(Py,n._currentValue),n._currentValue=o,i!==null)if(_s(i.value,o)){if(i.children===s.children&&!ln.current){e=io(t,e,r);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var c=a.firstContext;c!==null;){if(c.context===n){if(i.tag===1){c=Ji(-1,r&-r),c.tag=2;var l=i.updateQueue;if(l!==null){l=l.shared;var u=l.pending;u===null?c.next=c:(c.next=u.next,u.next=c),l.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),Sb(i.return,r,e),a.lanes|=r;break}c=c.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ne(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),Sb(o,r,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ur(t,e,s.children,r),e=e.child}return e;case 9:return s=e.type,n=e.pendingProps.children,ku(e,r),s=ns(s),n=n(s),e.flags|=1,Ur(t,e,n,r),e.child;case 14:return n=e.type,s=ps(n,e.pendingProps),s=ps(n.type,s),V6(t,e,n,s,r);case 15:return kT(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ps(n,s),Dp(t,e),e.tag=1,un(n)?(t=!0,Ay(e)):t=!1,ku(e,r),wT(e,n,s),Pb(e,n,s,r),Rb(null,e,n,!0,t,r);case 19:return IT(t,e,r);case 22:return AT(t,e,r)}throw Error(ne(156,e.tag))};function zT(t,e){return m4(t,e)}function aW(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xn(t,e,r,n){return new aW(t,e,r,n)}function jC(t){return t=t.prototype,!(!t||!t.isReactComponent)}function cW(t){if(typeof t=="function")return jC(t)?1:0;if(t!=null){if(t=t.$$typeof,t===nC)return 11;if(t===sC)return 14}return 2}function ma(t,e){var r=t.alternate;return r===null?(r=Xn(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function jp(t,e,r,n,s,i){var o=2;if(n=t,typeof t=="function")jC(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Xl:return Yc(r.children,s,i,e);case rC:o=8,s|=8;break;case Xx:return t=Xn(12,r,e,s|2),t.elementType=Xx,t.lanes=i,t;case Zx:return t=Xn(13,r,e,s),t.elementType=Zx,t.lanes=i,t;case eb:return t=Xn(19,r,e,s),t.elementType=eb,t.lanes=i,t;case t4:return Qv(r,s,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Z3:o=10;break e;case e4:o=9;break e;case nC:o=11;break e;case sC:o=14;break e;case No:o=16,n=null;break e}throw Error(ne(130,t==null?t:typeof t,""))}return e=Xn(o,r,e,s),e.elementType=t,e.type=n,e.lanes=i,e}function Yc(t,e,r,n){return t=Xn(7,t,n,e),t.lanes=r,t}function Qv(t,e,r,n){return t=Xn(22,t,n,e),t.elementType=t4,t.lanes=r,t.stateNode={isHidden:!1},t}function Vm(t,e,r){return t=Xn(6,t,null,e),t.lanes=r,t}function Hm(t,e,r){return e=Xn(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function lW(t,e,r,n,s){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=km(0),this.expirationTimes=km(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=km(0),this.identifierPrefix=n,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function FC(t,e,r,n,s,i,o,a,c){return t=new lW(t,e,r,a,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Xn(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},CC(i),t}function uW(t,e,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(QT)}catch(t){console.error(t)}}QT(),Q3.exports=Nn;var Fa=Q3.exports;const yW=L3(Fa),JT=m.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),eg=m.createContext({});function vW(){return m.useContext(eg).visualElement}const tg=m.createContext(null),rg=typeof document<"u",Fy=rg?m.useLayoutEffect:m.useEffect,YT=m.createContext({strict:!1});function gW(t,e,r,n){const s=vW(),i=m.useContext(YT),o=m.useContext(tg),a=m.useContext(JT).reducedMotion,c=m.useRef();n=n||i.renderer,!c.current&&n&&(c.current=n(t,{visualState:e,parent:s,props:r,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:a}));const l=c.current;return m.useInsertionEffect(()=>{l&&l.update(r,o)}),Fy(()=>{l&&l.render()}),m.useEffect(()=>{l&&l.updateFeatures()}),(window.HandoffAppearAnimations?Fy:m.useEffect)(()=>{l&&l.animationState&&l.animationState.animateChanges()}),l}function lu(t){return typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function mW(t,e,r){return m.useCallback(n=>{n&&t.mount&&t.mount(n),e&&(n?e.mount(n):e.unmount()),r&&(typeof r=="function"?r(n):lu(r)&&(r.current=n))},[e])}function s0(t){return typeof t=="string"||Array.isArray(t)}function ng(t){return typeof t=="object"&&typeof t.start=="function"}const VC=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],HC=["initial",...VC];function sg(t){return ng(t.animate)||HC.some(e=>s0(t[e]))}function XT(t){return!!(sg(t)||t.variants)}function xW(t,e){if(sg(t)){const{initial:r,animate:n}=t;return{initial:r===!1||s0(r)?r:void 0,animate:s0(n)?n:void 0}}return t.inherit!==!1?e:{}}function bW(t){const{initial:e,animate:r}=xW(t,m.useContext(eg));return m.useMemo(()=>({initial:e,animate:r}),[nA(e),nA(r)])}function nA(t){return Array.isArray(t)?t.join(" "):t}const sA={animation:["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},i0={};for(const t in sA)i0[t]={isEnabled:e=>sA[t].some(r=>!!e[r])};function wW(t){for(const e in t)i0[e]={...i0[e],...t[e]}}function zC(t){const e=m.useRef(null);return e.current===null&&(e.current=t()),e.current}const bh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let CW=1;function EW(){return zC(()=>{if(bh.hasEverUpdated)return CW++})}const GC=m.createContext({}),ZT=m.createContext({}),kW=Symbol.for("motionComponentSymbol");function AW({preloadedFeatures:t,createVisualElement:e,useRender:r,useVisualState:n,Component:s}){t&&wW(t);function i(a,c){let l;const u={...m.useContext(JT),...a,layoutId:SW(a)},{isStatic:f}=u,d=bW(a),h=f?void 0:EW(),y=n(a,f);if(!f&&rg){d.visualElement=gW(s,y,u,e);const p=m.useContext(ZT),b=m.useContext(YT).strict;d.visualElement&&(l=d.visualElement.loadFeatures(u,b,t,h,p))}return m.createElement(eg.Provider,{value:d},l&&d.visualElement?m.createElement(l,{visualElement:d.visualElement,...u}):null,r(s,a,h,mW(y,d.visualElement,c),y,f,d.visualElement))}const o=m.forwardRef(i);return o[kW]=s,o}function SW({layoutId:t}){const e=m.useContext(GC).id;return e&&t!==void 0?e+"-"+t:t}function TW(t){function e(n,s={}){return AW(t(n,s))}if(typeof Proxy>"u")return e;const r=new Map;return new Proxy(e,{get:(n,s)=>(r.has(s)||r.set(s,e(s)),r.get(s))})}const PW=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function qC(t){return typeof t!="string"||t.includes("-")?!1:!!(PW.indexOf(t)>-1||/[A-Z]/.test(t))}const Uy={};function IW(t){Object.assign(Uy,t)}const ig=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Sl=new Set(ig);function eP(t,{layout:e,layoutId:r}){return Sl.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!Uy[t]||t==="opacity")}const hn=t=>!!(t&&t.getVelocity),OW={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},RW=ig.length;function NW(t,{enableHardwareAcceleration:e=!0,allowTransformNone:r=!0},n,s){let i="";for(let o=0;oe=>typeof e=="string"&&e.startsWith(t),rP=tP("--"),Vb=tP("var(--"),_W=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Ff=(t,e,r)=>Math.min(Math.max(r,t),e),Tl={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},wh={...Tl,transform:t=>Ff(0,1,t)},J1={...Tl,default:1},Ch=t=>Math.round(t*1e5)/1e5,o0=/(-)?([\d]*\.?[\d])+/g,Hb=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,MW=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function i1(t){return typeof t=="string"}const o1=t=>({test:e=>i1(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Io=o1("deg"),hi=o1("%"),Ie=o1("px"),DW=o1("vh"),BW=o1("vw"),iA={...hi,parse:t=>hi.parse(t)/100,transform:t=>hi.transform(t*100)},oA={...Tl,transform:Math.round},nP={borderWidth:Ie,borderTopWidth:Ie,borderRightWidth:Ie,borderBottomWidth:Ie,borderLeftWidth:Ie,borderRadius:Ie,radius:Ie,borderTopLeftRadius:Ie,borderTopRightRadius:Ie,borderBottomRightRadius:Ie,borderBottomLeftRadius:Ie,width:Ie,maxWidth:Ie,height:Ie,maxHeight:Ie,size:Ie,top:Ie,right:Ie,bottom:Ie,left:Ie,padding:Ie,paddingTop:Ie,paddingRight:Ie,paddingBottom:Ie,paddingLeft:Ie,margin:Ie,marginTop:Ie,marginRight:Ie,marginBottom:Ie,marginLeft:Ie,rotate:Io,rotateX:Io,rotateY:Io,rotateZ:Io,scale:J1,scaleX:J1,scaleY:J1,scaleZ:J1,skew:Io,skewX:Io,skewY:Io,distance:Ie,translateX:Ie,translateY:Ie,translateZ:Ie,x:Ie,y:Ie,z:Ie,perspective:Ie,transformPerspective:Ie,opacity:wh,originX:iA,originY:iA,originZ:Ie,zIndex:oA,fillOpacity:wh,strokeOpacity:wh,numOctaves:oA};function KC(t,e,r,n){const{style:s,vars:i,transform:o,transformOrigin:a}=t;let c=!1,l=!1,u=!0;for(const f in e){const d=e[f];if(rP(f)){i[f]=d;continue}const h=nP[f],y=_W(d,h);if(Sl.has(f)){if(c=!0,o[f]=y,!u)continue;d!==(h.default||0)&&(u=!1)}else f.startsWith("origin")?(l=!0,a[f]=y):s[f]=y}if(e.transform||(c||n?s.transform=NW(t.transform,r,u,n):s.transform&&(s.transform="none")),l){const{originX:f="50%",originY:d="50%",originZ:h=0}=a;s.transformOrigin=`${f} ${d} ${h}`}}const QC=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sP(t,e,r){for(const n in e)!hn(e[n])&&!eP(n,r)&&(t[n]=e[n])}function LW({transformTemplate:t},e,r){return m.useMemo(()=>{const n=QC();return KC(n,e,{enableHardwareAcceleration:!r},t),Object.assign({},n.vars,n.style)},[e])}function jW(t,e,r){const n=t.style||{},s={};return sP(s,n,t),Object.assign(s,LW(t,e,r)),t.transformValues?t.transformValues(s):s}function FW(t,e,r){const n={},s=jW(t,e,r);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const UW=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function $y(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||UW.has(t)}let iP=t=>!$y(t);function $W(t){t&&(iP=e=>e.startsWith("on")?!$y(e):t(e))}try{$W(require("@emotion/is-prop-valid").default)}catch{}function WW(t,e,r){const n={};for(const s in t)s==="values"&&typeof t.values=="object"||(iP(s)||r===!0&&$y(s)||!e&&!$y(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}function aA(t,e,r){return typeof t=="string"?t:Ie.transform(e+r*t)}function VW(t,e,r){const n=aA(e,t.x,t.width),s=aA(r,t.y,t.height);return`${n} ${s}`}const HW={offset:"stroke-dashoffset",array:"stroke-dasharray"},zW={offset:"strokeDashoffset",array:"strokeDasharray"};function GW(t,e,r=1,n=0,s=!0){t.pathLength=1;const i=s?HW:zW;t[i.offset]=Ie.transform(-n);const o=Ie.transform(e),a=Ie.transform(r);t[i.array]=`${o} ${a}`}function JC(t,{attrX:e,attrY:r,originX:n,originY:s,pathLength:i,pathSpacing:o=1,pathOffset:a=0,...c},l,u,f){if(KC(t,c,l,f),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:h,dimensions:y}=t;d.transform&&(y&&(h.transform=d.transform),delete d.transform),y&&(n!==void 0||s!==void 0||h.transform)&&(h.transformOrigin=VW(y,n!==void 0?n:.5,s!==void 0?s:.5)),e!==void 0&&(d.x=e),r!==void 0&&(d.y=r),i!==void 0&&GW(d,i,o,a,!1)}const oP=()=>({...QC(),attrs:{}}),YC=t=>typeof t=="string"&&t.toLowerCase()==="svg";function qW(t,e,r,n){const s=m.useMemo(()=>{const i=oP();return JC(i,e,{enableHardwareAcceleration:!1},YC(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){const i={};sP(i,t.style,t),s.style={...i,...s.style}}return s}function KW(t=!1){return(r,n,s,i,{latestValues:o},a)=>{const l=(qC(r)?qW:FW)(n,o,a,r),f={...WW(n,typeof r=="string",t),...l,ref:i},{children:d}=n,h=m.useMemo(()=>hn(d)?d.get():d,[d]);return s&&(f["data-projection-id"]=s),m.createElement(r,{...f,children:h})}}const XC=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function aP(t,{style:e,vars:r},n,s){Object.assign(t.style,e,s&&s.getProjectionStyles(n));for(const i in r)t.style.setProperty(i,r[i])}const cP=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function lP(t,e,r,n){aP(t,e,void 0,n);for(const s in e.attrs)t.setAttribute(cP.has(s)?s:XC(s),e.attrs[s])}function ZC(t,e){const{style:r}=t,n={};for(const s in r)(hn(r[s])||e.style&&hn(e.style[s])||eP(s,t))&&(n[s]=r[s]);return n}function uP(t,e){const r=ZC(t,e);for(const n in t)if(hn(t[n])||hn(e[n])){const s=n==="x"||n==="y"?"attr"+n.toUpperCase():n;r[s]=t[n]}return r}function eE(t,e,r,n={},s={}){return typeof e=="function"&&(e=e(r!==void 0?r:t.custom,n,s)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(r!==void 0?r:t.custom,n,s)),e}const Wy=t=>Array.isArray(t),QW=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),JW=t=>Wy(t)?t[t.length-1]||0:t;function Fp(t){const e=hn(t)?t.get():t;return QW(e)?e.toValue():e}function YW({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:r},n,s,i){const o={latestValues:XW(n,s,i,t),renderState:e()};return r&&(o.mount=a=>r(n,a,o)),o}const fP=t=>(e,r)=>{const n=m.useContext(eg),s=m.useContext(tg),i=()=>YW(t,e,n,s);return r?i():zC(i)};function XW(t,e,r,n){const s={},i=n(t,{});for(const d in i)s[d]=Fp(i[d]);let{initial:o,animate:a}=t;const c=sg(t),l=XT(t);e&&l&&!c&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=r?r.initial===!1:!1;u=u||o===!1;const f=u?a:o;return f&&typeof f!="boolean"&&!ng(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const y=eE(t,h);if(!y)return;const{transitionEnd:p,transition:b,...v}=y;for(const g in v){let x=v[g];if(Array.isArray(x)){const k=u?x.length-1:0;x=x[k]}x!==null&&(s[g]=x)}for(const g in p)s[g]=p[g]}),s}const ZW={useVisualState:fP({scrapeMotionValuesFromProps:uP,createRenderState:oP,onMount:(t,e,{renderState:r,latestValues:n})=>{try{r.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}JC(r,n,{enableHardwareAcceleration:!1},YC(e.tagName),t.transformTemplate),lP(e,r)}})},eV={useVisualState:fP({scrapeMotionValuesFromProps:ZC,createRenderState:QC})};function tV(t,{forwardMotionProps:e=!1},r,n){return{...qC(t)?ZW:eV,preloadedFeatures:r,useRender:KW(e),createVisualElement:n,Component:t}}function qi(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r)}const dP=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function og(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const rV=t=>e=>dP(e)&&t(e,og(e));function Yi(t,e,r,n){return qi(t,e,rV(r),n)}const nV=(t,e)=>r=>e(t(r)),xa=(...t)=>t.reduce(nV);function hP(t){let e=null;return()=>{const r=()=>{e=null};return e===null?(e=t,r):!1}}const cA=hP("dragHorizontal"),lA=hP("dragVertical");function pP(t){let e=!1;if(t==="y")e=lA();else if(t==="x")e=cA();else{const r=cA(),n=lA();r&&n?e=()=>{r(),n()}:(r&&r(),n&&n())}return e}function yP(){const t=pP(!0);return t?(t(),!1):!0}class Ua{constructor(e){this.isMounted=!1,this.node=e}update(){}}function uA(t,e){const r="pointer"+(e?"enter":"leave"),n="onHover"+(e?"Start":"End"),s=(i,o)=>{if(i.type==="touch"||yP())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[n]&&a[n](i,o)};return Yi(t.current,r,s,{passive:!t.getProps()[n]})}class sV extends Ua{mount(){this.unmount=xa(uA(this.node,!0),uA(this.node,!1))}unmount(){}}class iV extends Ua{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=xa(qi(this.node.current,"focus",()=>this.onFocus()),qi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const vP=(t,e)=>e?t===e?!0:vP(t,e.parentElement):!1,Os=t=>t;function zm(t,e){if(!e)return;const r=new PointerEvent("pointer"+t);e(r,og(r))}class oV extends Ua{constructor(){super(...arguments),this.removeStartListeners=Os,this.removeEndListeners=Os,this.removeAccessibleListeners=Os,this.startPointerPress=(e,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),i=Yi(window,"pointerup",(a,c)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:u}=this.node.getProps();vP(this.node.current,a.target)?l&&l(a,c):u&&u(a,c)},{passive:!(n.onTap||n.onPointerUp)}),o=Yi(window,"pointercancel",(a,c)=>this.cancelPress(a,c),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=xa(i,o),this.startPress(e,r)},this.startAccessiblePress=()=>{const e=i=>{if(i.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||zm("up",this.node.getProps().onTap)};this.removeEndListeners(),this.removeEndListeners=qi(this.node.current,"keyup",o),zm("down",(a,c)=>{this.startPress(a,c)})},r=qi(this.node.current,"keydown",e),n=()=>{this.isPressing&&zm("cancel",(i,o)=>this.cancelPress(i,o))},s=qi(this.node.current,"blur",n);this.removeAccessibleListeners=xa(r,s)}}startPress(e,r){this.isPressing=!0;const{onTapStart:n,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&n(e,r)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!yP()}cancelPress(e,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&n(e,r)}mount(){const e=this.node.getProps(),r=Yi(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=qi(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=xa(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const zb=new WeakMap,Gm=new WeakMap,aV=t=>{const e=zb.get(t.target);e&&e(t)},cV=t=>{t.forEach(aV)};function lV({root:t,...e}){const r=t||document;Gm.has(r)||Gm.set(r,{});const n=Gm.get(r),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(cV,{root:t,...e})),n[s]}function uV(t,e,r){const n=lV(e);return zb.set(t,r),n.observe(t),()=>{zb.delete(t),n.unobserve(t)}}const fV={some:0,all:1};class dV extends Ua{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}viewportFallback(){requestAnimationFrame(()=>{this.hasEnteredView=!0;const{onViewportEnter:e}=this.node.getProps();e&&e(null),this.node.animationState&&this.node.animationState.setActive("whileInView",!0)})}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:i,fallback:o=!0}=e;if(typeof IntersectionObserver>"u"){o&&this.viewportFallback();return}const a={root:r?r.current:void 0,rootMargin:n,threshold:typeof s=="number"?s:fV[s]},c=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:f,onViewportLeave:d}=this.node.getProps(),h=u?f:d;h&&h(l)};return uV(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:r}=this.node;["amount","margin","root"].some(hV(e,r))&&this.startObserver()}unmount(){}}function hV({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}const pV={inView:{Feature:dV},tap:{Feature:oV},focus:{Feature:iV},hover:{Feature:sV}};function gP(t,e){if(!Array.isArray(e))return!1;const r=e.length;if(r!==t.length)return!1;for(let n=0;n/^\-?\d*\.?\d+$/.test(t),vV=t=>/^0[^.\s]+$/.test(t),Xi={delta:0,timestamp:0},mP=1/60*1e3,gV=typeof performance<"u"?()=>performance.now():()=>Date.now(),xP=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(gV()),mP);function mV(t){let e=[],r=[],n=0,s=!1,i=!1;const o=new WeakSet,a={schedule:(c,l=!1,u=!1)=>{const f=u&&s,d=f?e:r;return l&&o.add(c),d.indexOf(c)===-1&&(d.push(c),f&&s&&(n=e.length)),c},cancel:c=>{const l=r.indexOf(c);l!==-1&&r.splice(l,1),o.delete(c)},process:c=>{if(s){i=!0;return}if(s=!0,[e,r]=[r,e],r.length=0,n=e.length,n)for(let l=0;l(t[e]=mV(()=>a0=!0),t),{}),Or=a1.reduce((t,e)=>{const r=ag[e];return t[e]=(n,s=!1,i=!1)=>(a0||wV(),r.schedule(n,s,i)),t},{}),Ta=a1.reduce((t,e)=>(t[e]=ag[e].cancel,t),{}),qm=a1.reduce((t,e)=>(t[e]=()=>ag[e].process(Xi),t),{}),bV=t=>ag[t].process(Xi),bP=t=>{a0=!1,Xi.delta=Gb?mP:Math.max(Math.min(t-Xi.timestamp,xV),1),Xi.timestamp=t,qb=!0,a1.forEach(bV),qb=!1,a0&&(Gb=!1,xP(bP))},wV=()=>{a0=!0,Gb=!0,qb||xP(bP)};function tE(t,e){t.indexOf(e)===-1&&t.push(e)}function rE(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}class nE{constructor(){this.subscriptions=[]}add(e){return tE(this.subscriptions,e),()=>rE(this.subscriptions,e)}notify(e,r,n){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,r,n);else for(let i=0;i!isNaN(parseFloat(t));class EV{constructor(e,r={}){this.version="9.1.7",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,s=!0)=>{this.prev=this.current,this.current=n;const{delta:i,timestamp:o}=Xi;this.lastUpdated!==o&&(this.timeDelta=i,this.lastUpdated=o,Or.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Or.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=CV(this.current),this.owner=r.owner}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new nE);const n=this.events[e].add(r);return e==="change"?()=>{n(),Or.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e,r=!0){!r||!this.passiveEffect?this.updateAndNotify(e,r):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,r,n){this.set(r),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?sE(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r)||null,this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Uf(t,e){return new EV(t,e)}const iE=(t,e)=>r=>!!(i1(r)&&MW.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),wP=(t,e,r)=>n=>{if(!i1(n))return n;const[s,i,o,a]=n.match(o0);return{[t]:parseFloat(s),[e]:parseFloat(i),[r]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},kV=t=>Ff(0,255,t),Km={...Tl,transform:t=>Math.round(kV(t))},gc={test:iE("rgb","red"),parse:wP("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+Km.transform(t)+", "+Km.transform(e)+", "+Km.transform(r)+", "+Ch(wh.transform(n))+")"};function AV(t){let e="",r="",n="",s="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,r+=r,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}}const Kb={test:iE("#"),parse:AV,transform:gc.transform},uu={test:iE("hsl","hue"),parse:wP("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+hi.transform(Ch(e))+", "+hi.transform(Ch(r))+", "+Ch(wh.transform(n))+")"},Fr={test:t=>gc.test(t)||Kb.test(t)||uu.test(t),parse:t=>gc.test(t)?gc.parse(t):uu.test(t)?uu.parse(t):Kb.parse(t),transform:t=>i1(t)?t:t.hasOwnProperty("red")?gc.transform(t):uu.transform(t)},CP="${c}",EP="${n}";function SV(t){var e,r;return isNaN(t)&&i1(t)&&(((e=t.match(o0))===null||e===void 0?void 0:e.length)||0)+(((r=t.match(Hb))===null||r===void 0?void 0:r.length)||0)>0}function Vy(t){typeof t=="number"&&(t=`${t}`);const e=[];let r=0,n=0;const s=t.match(Hb);s&&(r=s.length,t=t.replace(Hb,CP),e.push(...s.map(Fr.parse)));const i=t.match(o0);return i&&(n=i.length,t=t.replace(o0,EP),e.push(...i.map(Tl.parse))),{values:e,numColors:r,numNumbers:n,tokenised:t}}function kP(t){return Vy(t).values}function AP(t){const{values:e,numColors:r,tokenised:n}=Vy(t),s=e.length;return i=>{let o=n;for(let a=0;atypeof t=="number"?0:t;function PV(t){const e=kP(t);return AP(t)(e.map(TV))}const Pa={test:SV,parse:kP,createTransformer:AP,getAnimatableNone:PV},IV=new Set(["brightness","contrast","saturate","opacity"]);function OV(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=r.match(o0)||[];if(!n)return t;const s=r.replace(n,"");let i=IV.has(e)?1:0;return n!==r&&(i*=100),e+"("+i+s+")"}const RV=/([a-z-]*)\(.*?\)/g,Qb={...Pa,getAnimatableNone:t=>{const e=t.match(RV);return e?e.map(OV).join(" "):t}},NV={...nP,color:Fr,backgroundColor:Fr,outlineColor:Fr,fill:Fr,stroke:Fr,borderColor:Fr,borderTopColor:Fr,borderRightColor:Fr,borderBottomColor:Fr,borderLeftColor:Fr,filter:Qb,WebkitFilter:Qb},oE=t=>NV[t];function aE(t,e){let r=oE(t);return r!==Qb&&(r=Pa),r.getAnimatableNone?r.getAnimatableNone(e):void 0}const SP=t=>e=>e.test(t),_V={test:t=>t==="auto",parse:t=>t},TP=[Tl,Ie,hi,Io,BW,DW,_V],Bd=t=>TP.find(SP(t)),MV=[...TP,Fr,Pa],DV=t=>MV.find(SP(t));function BV(t){const e={};return t.values.forEach((r,n)=>e[n]=r.get()),e}function LV(t){const e={};return t.values.forEach((r,n)=>e[n]=r.getVelocity()),e}function cg(t,e,r){const n=t.getProps();return eE(n,e,r!==void 0?r:n.custom,BV(t),LV(t))}function jV(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,Uf(r))}function FV(t,e){const r=cg(t,e);let{transitionEnd:n={},transition:s={},...i}=r?t.makeTargetAnimatable(r,!1):{};i={...i,...n};for(const o in i){const a=JW(i[o]);jV(t,o,a)}}function UV(t,e,r){var n,s;const i=Object.keys(e).filter(a=>!t.hasValue(a)),o=i.length;if(o)for(let a=0;at*1e3,zV={current:!1},cE=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,lE=t=>e=>1-t(1-e),uE=t=>t*t,GV=lE(uE),fE=cE(uE),Ct=(t,e,r)=>-r*t+r*e+t;function Qm(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function qV({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let s=0,i=0,o=0;if(!e)s=i=o=r;else{const a=r<.5?r*(1+e):r+e-r*e,c=2*r-a;s=Qm(c,a,t+1/3),i=Qm(c,a,t),o=Qm(c,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:n}}const Jm=(t,e,r)=>{const n=t*t;return Math.sqrt(Math.max(0,r*(e*e-n)+n))},KV=[Kb,gc,uu],QV=t=>KV.find(e=>e.test(t));function fA(t){const e=QV(t);let r=e.parse(t);return e===uu&&(r=qV(r)),r}const PP=(t,e)=>{const r=fA(t),n=fA(e),s={...r};return i=>(s.red=Jm(r.red,n.red,i),s.green=Jm(r.green,n.green,i),s.blue=Jm(r.blue,n.blue,i),s.alpha=Ct(r.alpha,n.alpha,i),gc.transform(s))};function IP(t,e){return typeof t=="number"?r=>Ct(t,e,r):Fr.test(t)?PP(t,e):RP(t,e)}const OP=(t,e)=>{const r=[...t],n=r.length,s=t.map((i,o)=>IP(i,e[o]));return i=>{for(let o=0;o{const r={...t,...e},n={};for(const s in r)t[s]!==void 0&&e[s]!==void 0&&(n[s]=IP(t[s],e[s]));return s=>{for(const i in n)r[i]=n[i](s);return r}},RP=(t,e)=>{const r=Pa.createTransformer(e),n=Vy(t),s=Vy(e);return n.numColors===s.numColors&&n.numNumbers>=s.numNumbers?xa(OP(n.values,s.values),r):o=>`${o>0?e:t}`},l0=(t,e,r)=>{const n=e-t;return n===0?1:(r-t)/n},dA=(t,e)=>r=>Ct(t,e,r);function YV(t){return typeof t=="number"?dA:typeof t=="string"?Fr.test(t)?PP:RP:Array.isArray(t)?OP:typeof t=="object"?JV:dA}function XV(t,e,r){const n=[],s=r||YV(t[0]),i=t.length-1;for(let o=0;ot[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=XV(e,n,s),a=o.length,c=l=>{let u=0;if(a>1)for(;uc(Ff(t[0],t[i-1],l)):c}function ZV(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const s=l0(0,e,n);t.push(Ct(r,1,s))}}function eH(t){const e=[0];return ZV(e,t.length-1),e}function tH(t,e){return t.map(r=>r*e)}const _P=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,rH=1e-7,nH=12;function sH(t,e,r,n,s){let i,o,a=0;do o=e+(r-e)/2,i=_P(o,n,s)-t,i>0?r=o:e=o;while(Math.abs(i)>rH&&++asH(i,0,1,t,r);return i=>i===0||i===1?i:_P(s(i),e,n)}const DP=t=>1-Math.sin(Math.acos(t)),dE=lE(DP),iH=cE(dE),BP=MP(.33,1.53,.69,.99),hE=lE(BP),oH=cE(hE),aH=t=>(t*=2)<1?.5*hE(t):.5*(2-Math.pow(2,-10*(t-1))),hA={linear:Os,easeIn:uE,easeInOut:fE,easeOut:GV,circIn:DP,circInOut:iH,circOut:dE,backIn:hE,backInOut:oH,backOut:BP,anticipate:aH},pA=t=>{if(Array.isArray(t)){c0(t.length===4);const[e,r,n,s]=t;return MP(e,r,n,s)}else if(typeof t=="string")return c0(hA[t]!==void 0),hA[t];return t},cH=t=>Array.isArray(t)&&typeof t[0]!="number";function lH(t,e){return t.map(()=>e||fE).splice(0,t.length-1)}function Jb({keyframes:t,ease:e=fE,times:r,duration:n=300}){t=[...t];const s=cH(e)?e.map(pA):pA(e),i={done:!1,value:t[0]},o=tH(r&&r.length===t.length?r:eH(t),n);function a(){return NP(o,t,{ease:Array.isArray(s)?s:lH(t,s)})}let c=a();return{next:l=>(i.value=c(l),i.done=l>=n,i),flipTarget:()=>{t.reverse(),c=a()}}}const Ym=.001,uH=.01,fH=10,dH=.05,hH=1;function pH({duration:t=800,bounce:e=.25,velocity:r=0,mass:n=1}){let s,i,o=1-e;o=Ff(dH,hH,o),t=Ff(uH,fH,t/1e3),o<1?(s=l=>{const u=l*o,f=u*t,d=u-r,h=Yb(l,o),y=Math.exp(-f);return Ym-d/h*y},i=l=>{const f=l*o*t,d=f*r+r,h=Math.pow(o,2)*Math.pow(l,2)*t,y=Math.exp(-f),p=Yb(Math.pow(l,2),o);return(-s(l)+Ym>0?-1:1)*((d-h)*y)/p}):(s=l=>{const u=Math.exp(-l*t),f=(l-r)*t+1;return-Ym+u*f},i=l=>{const u=Math.exp(-l*t),f=(r-l)*(t*t);return u*f});const a=5/t,c=vH(s,i,a);if(t=t*1e3,isNaN(c))return{stiffness:100,damping:10,duration:t};{const l=Math.pow(c,2)*n;return{stiffness:l,damping:o*2*Math.sqrt(n*l),duration:t}}}const yH=12;function vH(t,e,r){let n=r;for(let s=1;st[r]!==void 0)}function xH(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!yA(t,mH)&&yA(t,gH)){const r=pH(t);e={...e,...r,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}const bH=5;function LP({keyframes:t,restDelta:e,restSpeed:r,...n}){let s=t[0],i=t[t.length-1];const o={done:!1,value:s},{stiffness:a,damping:c,mass:l,velocity:u,duration:f,isResolvedFromDuration:d}=xH(n);let h=wH,y=u?-(u/1e3):0;const p=c/(2*Math.sqrt(a*l));function b(){const v=i-s,g=Math.sqrt(a/l)/1e3,x=Math.abs(v)<5;if(r||(r=x?.01:2),e||(e=x?.005:.5),p<1){const k=Yb(g,p);h=S=>{const I=Math.exp(-p*g*S);return i-I*((y+p*g*v)/k*Math.sin(k*S)+v*Math.cos(k*S))}}else if(p===1)h=k=>i-Math.exp(-g*k)*(v+(y+g*v)*k);else{const k=g*Math.sqrt(p*p-1);h=S=>{const I=Math.exp(-p*g*S),R=Math.min(k*S,300);return i-I*((y+p*g*v)*Math.sinh(R)+k*v*Math.cosh(R))/k}}}return b(),{next:v=>{const g=h(v);if(d)o.done=v>=f;else{let x=y;if(v!==0)if(p<1){const I=Math.max(0,v-bH);x=sE(g-h(I),v-I)}else x=0;const k=Math.abs(x)<=r,S=Math.abs(i-g)<=e;o.done=k&&S}return o.value=o.done?i:g,o},flipTarget:()=>{y=-y,[s,i]=[i,s],b()}}}LP.needsInterpolation=(t,e)=>typeof t=="string"||typeof e=="string";const wH=t=>0;function CH({keyframes:t=[0],velocity:e=0,power:r=.8,timeConstant:n=350,restDelta:s=.5,modifyTarget:i}){const o=t[0],a={done:!1,value:o};let c=r*e;const l=o+c,u=i===void 0?l:i(l);return u!==l&&(c=u-o),{next:f=>{const d=-c*Math.exp(-f/n);return a.done=!(d>s||d<-s),a.value=a.done?u:u+d,a},flipTarget:()=>{}}}const EH={decay:CH,keyframes:Jb,tween:Jb,spring:LP};function jP(t,e,r=0){return t-e-r}function kH(t,e=0,r=0,n=!0){return n?jP(e+-t,e,r):e-(t-e)+r}function AH(t,e,r,n){return n?t>=e+r:t<=-r}const SH=t=>{const e=({delta:r})=>t(r);return{start:()=>Or.update(e,!0),stop:()=>Ta.update(e)}};function zy({duration:t,driver:e=SH,elapsed:r=0,repeat:n=0,repeatType:s="loop",repeatDelay:i=0,keyframes:o,autoplay:a=!0,onPlay:c,onStop:l,onComplete:u,onRepeat:f,onUpdate:d,type:h="keyframes",...y}){const p=r;let b,v=0,g=t,x=!1,k=!0,S;const I=EH[o.length>2?"keyframes":h]||Jb,R=o[0],_=o[o.length-1];let V={done:!1,value:R};const{needsInterpolation:F}=I;F&&F(R,_)&&(S=NP([0,100],[R,_],{clamp:!1}),o=[0,100]);const X=I({...y,duration:t,keyframes:o});function re(){v++,s==="reverse"?(k=v%2===0,r=kH(r,g,i,k)):(r=jP(r,g,i),s==="mirror"&&X.flipTarget()),x=!1,f&&f()}function le(){b&&b.stop(),u&&u()}function ee(G){k||(G=-G),r+=G,x||(V=X.next(Math.max(0,r)),S&&(V.value=S(V.value)),x=k?V.done:r<=0),d&&d(V.value),x&&(v===0&&(g=g!==void 0?g:r),v{l&&l(),b&&b.stop()},set currentTime(G){r=p,ee(G)},sample:G=>{r=p;const Z=t&&typeof t=="number"?Math.max(t*.5,50):50;let C=0;for(ee(0);C<=G;){const A=G-C;ee(Math.min(A,Z)),C+=Z}return V}}}function TH(t){return!t||Array.isArray(t)||typeof t=="string"&&FP[t]}const Yd=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,FP={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Yd([0,.65,.55,1]),circOut:Yd([.55,0,1,.45]),backIn:Yd([.31,.01,.66,-.59]),backOut:Yd([.33,1.53,.69,.99])};function PH(t){if(t)return Array.isArray(t)?Yd(t):FP[t]}function IH(t,e,r,{delay:n=0,duration:s,repeat:i=0,repeatType:o="loop",ease:a,times:c}={}){return t.animate({[e]:r,offset:c},{delay:n,duration:s,easing:PH(a),fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const vA={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Xm={},UP={};for(const t in vA)UP[t]=()=>(Xm[t]===void 0&&(Xm[t]=vA[t]()),Xm[t]);function OH(t,{repeat:e,repeatType:r="loop"}){const n=e&&r!=="loop"&&e%2===1?0:t.length-1;return t[n]}const RH=new Set(["opacity","clipPath","filter","transform"]),Y1=10;function NH(t,e,{onUpdate:r,onComplete:n,...s}){if(!(UP.waapi()&&RH.has(e)&&!s.repeatDelay&&s.repeatType!=="mirror"&&s.damping!==0))return!1;let{keyframes:o,duration:a=300,elapsed:c=0,ease:l}=s;if(s.type==="spring"||!TH(s.ease)){if(s.repeat===1/0)return;const f=zy({...s,elapsed:0});let d={done:!1,value:o[0]};const h=[];let y=0;for(;!d.done&&y<2e4;)d=f.sample(y),h.push(d.value),y+=Y1;o=h,a=y-Y1,l="linear"}const u=IH(t.owner.current,e,o,{...s,delay:-c,duration:a,ease:l});return u.onfinish=()=>{t.set(OH(o,s)),Or.update(()=>u.cancel()),n&&n()},{get currentTime(){return u.currentTime||0},set currentTime(f){u.currentTime=f},stop:()=>{const{currentTime:f}=u;if(f){const d=zy({...s,autoplay:!1});t.setWithVelocity(d.sample(f-Y1).value,d.sample(f).value,Y1)}Or.update(()=>u.cancel())}}}function $P(t,e){const r=performance.now(),n=({timestamp:s})=>{const i=s-r;i>=e&&(Ta.read(n),t(i-e))};return Or.read(n,!0),()=>Ta.read(n)}function _H({keyframes:t,elapsed:e,onUpdate:r,onComplete:n}){const s=()=>{r&&r(t[t.length-1]),n&&n()};return e?{stop:$P(s,-e)}:s()}function MH({keyframes:t,velocity:e=0,min:r,max:n,power:s=.8,timeConstant:i=750,bounceStiffness:o=500,bounceDamping:a=10,restDelta:c=1,modifyTarget:l,driver:u,onUpdate:f,onComplete:d,onStop:h}){const y=t[0];let p;function b(k){return r!==void 0&&kn}function v(k){return r===void 0?n:n===void 0||Math.abs(r-k){f&&f(S),k.onUpdate&&k.onUpdate(S)},onComplete:d,onStop:h})}function x(k){g({type:"spring",stiffness:o,damping:a,restDelta:c,...k})}if(b(y))x({velocity:e,keyframes:[y,v(y)]});else{let k=s*e+y;typeof l<"u"&&(k=l(k));const S=v(k),I=S===r?-1:1;let R,_;const V=F=>{R=_,_=F,e=sE(F-R,Xi.delta),(I===1&&F>S||I===-1&&Fp&&p.stop()}}const DH={type:"spring",stiffness:500,damping:25,restSpeed:10},BH=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),LH={type:"keyframes",duration:.8},jH={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},FH=(t,{keyframes:e})=>e.length>2?LH:Sl.has(t)?t.startsWith("scale")?BH(e[1]):DH:jH,Xb=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&Pa.test(e)&&!e.startsWith("url("));function UH({when:t,delay:e,delayChildren:r,staggerChildren:n,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}function gA(t){return t===0||typeof t=="string"&&parseFloat(t)===0&&t.indexOf(" ")===-1}function mA(t){return typeof t=="number"?0:aE("",t)}function WP(t,e){return t[e]||t.default||t}function $H(t,e,r,n){const s=Xb(e,r);let i=n.from!==void 0?n.from:t.get();return i==="none"&&s&&typeof r=="string"?i=aE(e,r):gA(i)&&typeof r=="string"?i=mA(r):!Array.isArray(r)&&gA(r)&&typeof i=="string"&&(r=mA(i)),Array.isArray(r)?(r[0]===null&&(r[0]=i),r):[i,r]}const pE=(t,e,r,n={})=>s=>{const i=WP(n,t)||{},o=i.delay||n.delay||0;let{elapsed:a=0}=n;a=a-Up(o);const c=$H(e,t,r,i),l=c[0],u=c[c.length-1],f=Xb(t,l),d=Xb(t,u);let h={keyframes:c,velocity:e.getVelocity(),...i,elapsed:a,onUpdate:y=>{e.set(y),i.onUpdate&&i.onUpdate(y)},onComplete:()=>{s(),i.onComplete&&i.onComplete()}};if(!f||!d||zV.current||i.type===!1)return _H(h);if(i.type==="inertia")return MH(h);if(UH(i)||(h={...h,...FH(t,h)}),h.duration&&(h.duration=Up(h.duration)),h.repeatDelay&&(h.repeatDelay=Up(h.repeatDelay)),e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const y=NH(e,t,h);if(y)return y}return zy(h)};function WH(t,e,r={}){t.notify("AnimationStart",e);let n;if(Array.isArray(e)){const s=e.map(i=>Zb(t,i,r));n=Promise.all(s)}else if(typeof e=="string")n=Zb(t,e,r);else{const s=typeof e=="function"?cg(t,e,r.custom):e;n=VP(t,s,r)}return n.then(()=>t.notify("AnimationComplete",e))}function Zb(t,e,r={}){const n=cg(t,e,r.custom);let{transition:s=t.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(s=r.transitionOverride);const i=n?()=>VP(t,n,r):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:u,staggerDirection:f}=s;return VH(t,e,l+c,u,f,r)}:()=>Promise.resolve(),{when:a}=s;if(a){const[c,l]=a==="beforeChildren"?[i,o]:[o,i];return c().then(l)}else return Promise.all([i(),o(r.delay)])}function VP(t,e,{delay:r=0,transitionOverride:n,type:s}={}){let{transition:i=t.getDefaultTransition(),transitionEnd:o,...a}=t.makeTargetAnimatable(e);const c=t.getValue("willChange");n&&(i=n);const l=[],u=s&&t.animationState&&t.animationState.getState()[s];for(const f in a){const d=t.getValue(f),h=a[f];if(!d||h===void 0||u&&zH(u,f))continue;const y={delay:r,elapsed:0,...i};if(window.HandoffAppearAnimations&&!d.hasAnimated){const b=t.getProps()[HV];b&&(y.elapsed=window.HandoffAppearAnimations(b,f,d,Or))}let p=d.start(pE(f,d,h,t.shouldReduceMotion&&Sl.has(f)?{type:!1}:y));Hy(c)&&(c.add(f),p=p.then(()=>c.remove(f))),l.push(p)}return Promise.all(l).then(()=>{o&&FV(t,o)})}function VH(t,e,r=0,n=0,s=1,i){const o=[],a=(t.variantChildren.size-1)*n,c=s===1?(l=0)=>l*n:(l=0)=>a-l*n;return Array.from(t.variantChildren).sort(HH).forEach((l,u)=>{l.notify("AnimationStart",e),o.push(Zb(l,e,{...i,delay:r+c(u)}).then(()=>l.notify("AnimationComplete",e)))}),Promise.all(o)}function HH(t,e){return t.sortNodePosition(e)}function zH({protectedKeys:t,needsAnimating:e},r){const n=t.hasOwnProperty(r)&&e[r]!==!0;return e[r]=!1,n}const GH=[...VC].reverse(),qH=VC.length;function KH(t){return e=>Promise.all(e.map(({animation:r,options:n})=>WH(t,r,n)))}function QH(t){let e=KH(t);const r=YH();let n=!0;const s=(c,l)=>{const u=cg(t,l);if(u){const{transition:f,transitionEnd:d,...h}=u;c={...c,...h,...d}}return c};function i(c){e=c(t)}function o(c,l){const u=t.getProps(),f=t.getVariantContext(!0)||{},d=[],h=new Set;let y={},p=1/0;for(let v=0;vp&&S;const F=Array.isArray(k)?k:[k];let X=F.reduce(s,{});I===!1&&(X={});const{prevResolvedValues:re={}}=x,le={...re,...X},ee=D=>{V=!0,h.delete(D),x.needsAnimating[D]=!0};for(const D in le){const G=X[D],Z=re[D];y.hasOwnProperty(D)||(G!==Z?Wy(G)&&Wy(Z)?!gP(G,Z)||_?ee(D):x.protectedKeys[D]=!0:G!==void 0?ee(D):h.add(D):G!==void 0&&h.has(D)?ee(D):x.protectedKeys[D]=!0)}x.prevProp=k,x.prevResolvedValues=X,x.isActive&&(y={...y,...X}),n&&t.blockInitialAnimation&&(V=!1),V&&!R&&d.push(...F.map(D=>({animation:D,options:{type:g,...c}})))}if(h.size){const v={};h.forEach(g=>{const x=t.getBaseTarget(g);x!==void 0&&(v[g]=x)}),d.push({animation:v})}let b=!!d.length;return n&&u.initial===!1&&!t.manuallyAnimateOnMount&&(b=!1),n=!1,b?e(d):Promise.resolve()}function a(c,l,u){var f;if(r[c].isActive===l)return Promise.resolve();(f=t.variantChildren)===null||f===void 0||f.forEach(h=>{var y;return(y=h.animationState)===null||y===void 0?void 0:y.setActive(c,l)}),r[c].isActive=l;const d=o(u,c);for(const h in r)r[h].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>r}}function JH(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!gP(e,t):!1}function Ja(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function YH(){return{animate:Ja(!0),whileInView:Ja(),whileHover:Ja(),whileTap:Ja(),whileDrag:Ja(),whileFocus:Ja(),exit:Ja()}}class XH extends Ua{constructor(e){super(e),e.animationState||(e.animationState=QH(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),ng(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:r}=this.node.prevProps||{};e!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let ZH=0;class ez extends Ua{constructor(){super(...arguments),this.id=ZH++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e,{custom:n??this.node.getProps().custom});r&&!e&&i.then(()=>r(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const tz={animation:{Feature:XH},exit:{Feature:ez}},xA=(t,e)=>Math.abs(t-e);function rz(t,e){const r=xA(t.x,e.x),n=xA(t.y,e.y);return Math.sqrt(r**2+n**2)}class HP{constructor(e,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const l=ex(this.lastMoveEventInfo,this.history),u=this.startEvent!==null,f=rz(l.offset,{x:0,y:0})>=3;if(!u&&!f)return;const{point:d}=l,{timestamp:h}=Xi;this.history.push({...d,timestamp:h});const{onStart:y,onMove:p}=this.handlers;u||(y&&y(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,l)},this.handlePointerMove=(l,u)=>{this.lastMoveEvent=l,this.lastMoveEventInfo=Zm(u,this.transformPagePoint),Or.update(this.updatePoint,!0)},this.handlePointerUp=(l,u)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=ex(l.type==="pointercancel"?this.lastMoveEventInfo:Zm(u,this.transformPagePoint),this.history);this.startEvent&&f&&f(l,h),d&&d(l,h)},!dP(e))return;this.handlers=r,this.transformPagePoint=n;const s=og(e),i=Zm(s,this.transformPagePoint),{point:o}=i,{timestamp:a}=Xi;this.history=[{...o,timestamp:a}];const{onSessionStart:c}=r;c&&c(e,ex(i,this.history)),this.removeListeners=xa(Yi(window,"pointermove",this.handlePointerMove),Yi(window,"pointerup",this.handlePointerUp),Yi(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Ta.update(this.updatePoint)}}function Zm(t,e){return e?{point:e(t.point)}:t}function bA(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ex({point:t},e){return{point:t,delta:bA(t,zP(e)),offset:bA(t,nz(e)),velocity:sz(e,.1)}}function nz(t){return t[0]}function zP(t){return t[t.length-1]}function sz(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,n=null;const s=zP(t);for(;r>=0&&(n=t[r],!(s.timestamp-n.timestamp>Up(e)));)r--;if(!n)return{x:0,y:0};const i=(s.timestamp-n.timestamp)/1e3;if(i===0)return{x:0,y:0};const o={x:(s.x-n.x)/i,y:(s.y-n.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Rn(t){return t.max-t.min}function ew(t,e=0,r=.01){return Math.abs(t-e)<=r}function wA(t,e,r,n=.5){t.origin=n,t.originPoint=Ct(e.min,e.max,t.origin),t.scale=Rn(r)/Rn(e),(ew(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Ct(r.min,r.max,t.origin)-t.originPoint,(ew(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Eh(t,e,r,n){wA(t.x,e.x,r.x,n?n.originX:void 0),wA(t.y,e.y,r.y,n?n.originY:void 0)}function CA(t,e,r){t.min=r.min+e.min,t.max=t.min+Rn(e)}function iz(t,e,r){CA(t.x,e.x,r.x),CA(t.y,e.y,r.y)}function EA(t,e,r){t.min=e.min-r.min,t.max=t.min+Rn(e)}function kh(t,e,r){EA(t.x,e.x,r.x),EA(t.y,e.y,r.y)}function oz(t,{min:e,max:r},n){return e!==void 0&&tr&&(t=n?Ct(r,t,n.max):Math.min(t,r)),t}function kA(t,e,r){return{min:e!==void 0?t.min+e:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function az(t,{top:e,left:r,bottom:n,right:s}){return{x:kA(t.x,r,s),y:kA(t.y,e,n)}}function AA(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.minn?r=l0(e.min,e.max-n,t.min):n>s&&(r=l0(t.min,t.max-s,e.min)),Ff(0,1,r)}function uz(t,e){const r={};return e.min!==void 0&&(r.min=e.min-t.min),e.max!==void 0&&(r.max=e.max-t.min),r}const tw=.35;function fz(t=tw){return t===!1?t=0:t===!0&&(t=tw),{x:SA(t,"left","right"),y:SA(t,"top","bottom")}}function SA(t,e,r){return{min:TA(t,e),max:TA(t,r)}}function TA(t,e){return typeof t=="number"?t:t[e]||0}const PA=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ah=()=>({x:PA(),y:PA()}),IA=()=>({min:0,max:0}),Lt=()=>({x:IA(),y:IA()});function Gs(t){return[t("x"),t("y")]}function GP({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function dz({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function hz(t,e){if(!e)return t;const r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function tx(t){return t===void 0||t===1}function rw({scale:t,scaleX:e,scaleY:r}){return!tx(t)||!tx(e)||!tx(r)}function rc(t){return rw(t)||qP(t)||t.z||t.rotate||t.rotateX||t.rotateY}function qP(t){return OA(t.x)||OA(t.y)}function OA(t){return t&&t!=="0%"}function Gy(t,e,r){const n=t-r,s=e*n;return r+s}function RA(t,e,r,n,s){return s!==void 0&&(t=Gy(t,s,n)),Gy(t,r,n)+e}function nw(t,e=0,r=1,n,s){t.min=RA(t.min,e,r,n,s),t.max=RA(t.max,e,r,n,s)}function KP(t,{x:e,y:r}){nw(t.x,e.translate,e.scale,e.originPoint),nw(t.y,r.translate,r.scale,r.originPoint)}function pz(t,e,r,n=!1){const s=r.length;if(!s)return;e.x=e.y=1;let i,o;for(let a=0;a1.0000000000001||t<.999999999999?t:1}function Mo(t,e){t.min=t.min+e,t.max=t.max+e}function _A(t,e,[r,n,s]){const i=e[s]!==void 0?e[s]:.5,o=Ct(t.min,t.max,i);nw(t,e[r],e[n],o,e.scale)}const yz=["x","scaleX","originX"],vz=["y","scaleY","originY"];function fu(t,e){_A(t.x,e,yz),_A(t.y,e,vz)}function QP(t,e){return GP(hz(t.getBoundingClientRect(),e))}function gz(t,e,r){const n=QP(t,r),{scroll:s}=e;return s&&(Mo(n.x,s.offset.x),Mo(n.y,s.offset.y)),n}const mz=new WeakMap;class xz{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Lt(),this.visualElement=e}start(e,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const s=c=>{this.stopAnimation(),r&&this.snapToCursor(og(c,"page").point)},i=(c,l)=>{const{drag:u,dragPropagation:f,onDragStart:d}=this.getProps();if(u&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=pP(u),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Gs(y=>{let p=this.getAxisMotionValue(y).get()||0;if(hi.test(p)){const{projection:b}=this.visualElement;if(b&&b.layout){const v=b.layout.layoutBox[y];v&&(p=Rn(v)*(parseFloat(p)/100))}}this.originPoint[y]=p}),d&&d(c,l);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},o=(c,l)=>{const{dragPropagation:u,dragDirectionLock:f,onDirectionLock:d,onDrag:h}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:y}=l;if(f&&this.currentDirection===null){this.currentDirection=bz(y),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",l.point,y),this.updateAxis("y",l.point,y),this.visualElement.render(),h&&h(c,l)},a=(c,l)=>this.stop(c,l);this.panSession=new HP(e,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:s}=r;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&i(e,r)}cancel(){this.isDragging=!1;const{projection:e,animationState:r}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(e,r,n){const{drag:s}=this.getProps();if(!n||!X1(e,s,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=oz(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},s=this.constraints;e&&lu(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=az(n.layoutBox,e):this.constraints=!1,this.elastic=fz(r),s!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Gs(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=uz(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!lu(e))return!1;const n=e.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=gz(n,s.root,this.visualElement.getTransformPagePoint());let o=cz(s.layout.layoutBox,i);if(r){const a=r(dz(o));this.hasMutatedConstraints=!!a,a&&(o=GP(a))}return o}startAnimation(e){const{drag:r,dragMomentum:n,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=Gs(u=>{if(!X1(u,r,this.currentDirection))return;let f=c&&c[u]||{};o&&(f={min:0,max:0});const d=s?200:1e6,h=s?40:1e7,y={type:"inertia",velocity:n?e[u]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(u,y)});return Promise.all(l).then(a)}startAxisValueAnimation(e,r){const n=this.getAxisMotionValue(e);return n.start(pE(e,n,0,r))}stopAnimation(){Gs(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const r="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),s=n[r];return s||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Gs(r=>{const{drag:n}=this.getProps();if(!X1(r,n,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(r);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[r];i.set(e[r]-Ct(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!lu(r)||!n||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Gs(o=>{const a=this.getAxisMotionValue(o);if(a){const c=a.get();s[o]=lz({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Gs(o=>{if(!X1(o,e,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(Ct(c,l,s[o]))})}addListeners(){if(!this.visualElement.current)return;mz.set(this.visualElement,this);const e=this.visualElement.current,r=Yi(e,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),n=()=>{const{dragConstraints:c}=this.getProps();lu(c)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),n();const o=qi(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(Gs(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=c[u].translate,f.set(f.get()+c[u].translate))}),this.visualElement.render())});return()=>{o(),r(),i(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=tw,dragMomentum:a=!0}=e;return{...e,drag:r,dragDirectionLock:n,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function X1(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function bz(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}class wz extends Ua{constructor(e){super(e),this.removeGroupControls=Os,this.removeListeners=Os,this.controls=new xz(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Os}unmount(){this.removeGroupControls(),this.removeListeners()}}class Cz extends Ua{constructor(){super(...arguments),this.removePointerDownListener=Os}onPointerDown(e){this.session=new HP(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:r,onPan:n,onPanEnd:s}=this.node.getProps();return{onSessionStart:e,onStart:r,onMove:n,onEnd:(i,o)=>{delete this.session,s&&s(i,o)}}}mount(){this.removePointerDownListener=Yi(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Ez(){const t=m.useContext(tg);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:r,register:n}=t,s=m.useId();return m.useEffect(()=>n(s),[]),!e&&r?[!1,()=>r&&r(s)]:[!0]}function MA(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ld={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Ie.test(t))t=parseFloat(t);else return t;const r=MA(t,e.target.x),n=MA(t,e.target.y);return`${r}% ${n}%`}},JP=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function kz(t){const e=JP.exec(t);if(!e)return[,];const[,r,n]=e;return[r,n]}function sw(t,e,r=1){const[n,s]=kz(t);if(!n)return;const i=window.getComputedStyle(e).getPropertyValue(n);return i?i.trim():Vb(s)?sw(s,e,r+1):s}function Az(t,{...e},r){const n=t.current;if(!(n instanceof Element))return{target:e,transitionEnd:r};r&&(r={...r}),t.values.forEach(s=>{const i=s.get();if(!Vb(i))return;const o=sw(i,n);o&&s.set(o)});for(const s in e){const i=e[s];if(!Vb(i))continue;const o=sw(i,n);o&&(e[s]=o,r&&r[s]===void 0&&(r[s]=i))}return{target:e,transitionEnd:r}}const DA="_$css",Sz={correct:(t,{treeScale:e,projectionDelta:r})=>{const n=t,s=t.includes("var("),i=[];s&&(t=t.replace(JP,h=>(i.push(h),DA)));const o=Pa.parse(t);if(o.length>5)return n;const a=Pa.createTransformer(t),c=typeof o[0]!="number"?1:0,l=r.x.scale*e.x,u=r.y.scale*e.y;o[0+c]/=l,o[1+c]/=u;const f=Ct(l,u,.5);typeof o[2+c]=="number"&&(o[2+c]/=f),typeof o[3+c]=="number"&&(o[3+c]/=f);let d=a(o);if(s){let h=0;d=d.replace(DA,()=>{const y=i[h];return h++,y})}return d}};class Tz extends Wr.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n,layoutId:s}=this.props,{projection:i}=e;IW(Pz),i&&(r.group&&r.group.add(i),n&&n.register&&s&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),bh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:r,visualElement:n,drag:s,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,s||e.layoutDependency!==r||r===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||Or.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:s}=e;s&&(s.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(s),n&&n.deregister&&n.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function YP(t){const[e,r]=Ez(),n=m.useContext(GC);return Wr.createElement(Tz,{...t,layoutGroup:n,switchLayoutGroup:m.useContext(ZT),isPresent:e,safeToRemove:r})}const Pz={borderRadius:{...Ld,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ld,borderTopRightRadius:Ld,borderBottomLeftRadius:Ld,borderBottomRightRadius:Ld,boxShadow:Sz};function Iz(t,e,r={}){const n=hn(t)?t:Uf(t);return n.start(pE("",n,e,r)),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}const XP=["TopLeft","TopRight","BottomLeft","BottomRight"],Oz=XP.length,BA=t=>typeof t=="string"?parseFloat(t):t,LA=t=>typeof t=="number"||Ie.test(t);function Rz(t,e,r,n,s,i){s?(t.opacity=Ct(0,r.opacity!==void 0?r.opacity:1,Nz(n)),t.opacityExit=Ct(e.opacity!==void 0?e.opacity:1,0,_z(n))):i&&(t.opacity=Ct(e.opacity!==void 0?e.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let o=0;one?1:r(l0(t,e,n))}function FA(t,e){t.min=e.min,t.max=e.max}function Mn(t,e){FA(t.x,e.x),FA(t.y,e.y)}function UA(t,e,r,n,s){return t-=e,t=Gy(t,1/r,n),s!==void 0&&(t=Gy(t,1/s,n)),t}function Mz(t,e=0,r=1,n=.5,s,i=t,o=t){if(hi.test(e)&&(e=parseFloat(e),e=Ct(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=Ct(i.min,i.max,n);t===i&&(a-=e),t.min=UA(t.min,e,r,a,s),t.max=UA(t.max,e,r,a,s)}function $A(t,e,[r,n,s],i,o){Mz(t,e[r],e[n],e[s],e.scale,i,o)}const Dz=["x","scaleX","originX"],Bz=["y","scaleY","originY"];function WA(t,e,r,n){$A(t.x,e,Dz,r?r.x:void 0,n?n.x:void 0),$A(t.y,e,Bz,r?r.y:void 0,n?n.y:void 0)}function VA(t){return t.translate===0&&t.scale===1}function eI(t){return VA(t.x)&&VA(t.y)}function iw(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function HA(t){return Rn(t.x)/Rn(t.y)}class Lz{constructor(){this.members=[]}add(e){tE(this.members,e),e.scheduleRender()}remove(e){if(rE(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(e){const r=this.members.findIndex(s=>e===s);if(r===0)return!1;let n;for(let s=r;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(e,r){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,r&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:s}=e.options;s===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:r,resumingFrom:n}=e;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function zA(t,e,r){let n="";const s=t.x.translate/e.x,i=t.y.translate/e.y;if((s||i)&&(n=`translate3d(${s}px, ${i}px, 0) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),r){const{rotate:c,rotateX:l,rotateY:u}=r;c&&(n+=`rotate(${c}deg) `),l&&(n+=`rotateX(${l}deg) `),u&&(n+=`rotateY(${u}deg) `)}const o=t.x.scale*e.x,a=t.y.scale*e.y;return(o!==1||a!==1)&&(n+=`scale(${o}, ${a})`),n||"none"}const jz=(t,e)=>t.depth-e.depth;class Fz{constructor(){this.children=[],this.isDirty=!1}add(e){tE(this.children,e),this.isDirty=!0}remove(e){rE(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(jz),this.isDirty=!1,this.children.forEach(e)}}function Uz(t){window.MotionDebug&&window.MotionDebug.record(t)}const GA=["","X","Y","Z"],qA=1e3;let $z=0;const nc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function tI({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(o,a={},c=e==null?void 0:e()){this.id=$z++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{nc.totalNodes=nc.resolvedTargetDeltas=nc.recalculatedProjection=0,this.nodes.forEach(Hz),this.nodes.forEach(Kz),this.nodes.forEach(Qz),this.nodes.forEach(zz),Uz(nc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=o,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0,o&&this.root.registerPotentialNode(o,this);for(let l=0;lthis.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=$P(d,250),bh.hasAnimatedSinceResize&&(bh.hasAnimatedSinceResize=!1,this.nodes.forEach(QA))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||l)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||eG,{onLayoutAnimationStart:b,onLayoutAnimationComplete:v}=u.getProps(),g=!this.targetLayout||!iw(this.targetLayout,y)||h,x=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||d&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,x);const k={...WP(p,"layout"),onPlay:b,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k)}else!d&&this.animationProgress===0&&QA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ta.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Jz),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c{const S=k/1e3;JA(f.x,o.x,S),JA(f.y,o.y,S),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(kh(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Xz(this.relativeTarget,this.relativeTargetOrigin,d,S),x&&iw(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Lt()),Mn(x,this.relativeTarget)),p&&(this.animationValues=u,Rz(u,l,this.latestValues,S,g,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ta.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Or.update(()=>{bh.hasAnimatedSinceResize=!0,this.currentAnimation=Iz(0,qA,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(qA),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=o;if(!(!a||!c||!l)){if(this!==o&&this.layout&&l&&rI(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||Lt();const f=Rn(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+f;const d=Rn(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+d}Mn(a,c),fu(a,u),Eh(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Lz),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(a=!0),!a)return;const l={};for(let u=0;u{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(KA),this.root.sharedNodes.clear()}}}function Wz(t){t.updateLayout()}function Vz(t){var e;const r=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,o=r.source!==t.layout.source;i==="size"?Gs(f=>{const d=o?r.measuredBox[f]:r.layoutBox[f],h=Rn(d);d.min=n[f].min,d.max=d.min+h}):rI(i,r.layoutBox,n)&&Gs(f=>{const d=o?r.measuredBox[f]:r.layoutBox[f],h=Rn(n[f]);d.max=d.min+h});const a=Ah();Eh(a,n,r.layoutBox);const c=Ah();o?Eh(c,t.applyTransform(s,!0),r.measuredBox):Eh(c,n,r.layoutBox);const l=!eI(a);let u=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const y=Lt();kh(y,r.layoutBox,d.layoutBox);const p=Lt();kh(p,n,h.layoutBox),iw(y,p)||(u=!0),f.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=y,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function Hz(t){nc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function zz(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Gz(t){t.clearSnapshot()}function KA(t){t.clearMeasurements()}function qz(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function QA(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function Kz(t){t.resolveTargetDelta()}function Qz(t){t.calcProjection()}function Jz(t){t.resetRotation()}function Yz(t){t.removeLeadSnapshot()}function JA(t,e,r){t.translate=Ct(e.translate,0,r),t.scale=Ct(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function YA(t,e,r,n){t.min=Ct(e.min,r.min,n),t.max=Ct(e.max,r.max,n)}function Xz(t,e,r,n){YA(t.x,e.x,r.x,n),YA(t.y,e.y,r.y,n)}function Zz(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const eG={duration:.45,ease:[.4,0,.1,1]};function tG(t,e){let r=t.root;for(let i=t.path.length-1;i>=0;i--)if(t.path[i].instance){r=t.path[i];break}const s=(r&&r!==t.root?r.instance:document).querySelector(`[data-projection-id="${e}"]`);s&&t.mount(s,!0)}function XA(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function rG(t){XA(t.x),XA(t.y)}function rI(t,e,r){return t==="position"||t==="preserve-aspect"&&!ew(HA(e),HA(r),.2)}const nG=tI({attachResizeListener:(t,e)=>qi(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rx={current:void 0},nI=tI({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rx.current){const t=new nG(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),rx.current=t}return rx.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),sG={pan:{Feature:Cz},drag:{Feature:wz,ProjectionNode:nI,MeasureLayout:YP}},iG=new Set(["width","height","top","left","right","bottom","x","y"]),sI=t=>iG.has(t),oG=t=>Object.keys(t).some(sI),ZA=t=>t===Tl||t===Ie,eS=(t,e)=>parseFloat(t.split(", ")[e]),tS=(t,e)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const s=n.match(/^matrix3d\((.+)\)$/);if(s)return eS(s[1],e);{const i=n.match(/^matrix\((.+)\)$/);return i?eS(i[1],t):0}},aG=new Set(["x","y","z"]),cG=ig.filter(t=>!aG.has(t));function lG(t){const e=[];return cG.forEach(r=>{const n=t.getValue(r);n!==void 0&&(e.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),e.length&&t.render(),e}const rS={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:tS(4,13),y:tS(5,14)},uG=(t,e,r)=>{const n=e.measureViewportBox(),s=e.current,i=getComputedStyle(s),{display:o}=i,a={};o==="none"&&e.setStaticValue("display",t.display||"block"),r.forEach(l=>{a[l]=rS[l](n,i)}),e.render();const c=e.measureViewportBox();return r.forEach(l=>{const u=e.getValue(l);u&&u.jump(a[l]),t[l]=rS[l](c,i)}),t},fG=(t,e,r={},n={})=>{e={...e},n={...n};const s=Object.keys(e).filter(sI);let i=[],o=!1;const a=[];if(s.forEach(c=>{const l=t.getValue(c);if(!t.hasValue(c))return;let u=r[c],f=Bd(u);const d=e[c];let h;if(Wy(d)){const y=d.length,p=d[0]===null?1:0;u=d[p],f=Bd(u);for(let b=p;b=0?window.pageYOffset:null,l=uG(e,t,a);return i.length&&i.forEach(([u,f])=>{t.getValue(u).set(f)}),t.render(),rg&&c!==null&&window.scrollTo({top:c}),{target:l,transitionEnd:n}}else return{target:e,transitionEnd:n}};function dG(t,e,r,n){return oG(e)?fG(t,e,r,n):{target:e,transitionEnd:n}}const hG=(t,e,r,n)=>{const s=Az(t,e,n);return e=s.target,n=s.transitionEnd,dG(t,e,r,n)},ow={current:null},iI={current:!1};function pG(){if(iI.current=!0,!!rg)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ow.current=t.matches;t.addListener(e),e()}else ow.current=!1}function yG(t,e,r){const{willChange:n}=e;for(const s in e){const i=e[s],o=r[s];if(hn(i))t.addValue(s,i),Hy(n)&&n.add(s);else if(hn(o))t.addValue(s,Uf(i,{owner:t})),Hy(n)&&n.remove(s);else if(o!==i)if(t.hasValue(s)){const a=t.getValue(s);!a.hasAnimated&&a.set(i)}else{const a=t.getStaticValue(s);t.addValue(s,Uf(a!==void 0?a:i,{owner:t}))}}for(const s in r)e[s]===void 0&&t.removeValue(s);return e}const oI=Object.keys(i0),vG=oI.length,nS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],gG=HC.length;class mG{constructor({parent:e,props:r,presenceContext:n,reducedMotionConfig:s,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Or.render(this.render,!1,!0);const{latestValues:a,renderState:c}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=r.initial?{...a}:{},this.renderState=c,this.parent=e,this.props=r,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=o,this.isControllingVariants=sg(r),this.isVariantNode=XT(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(r,{});for(const f in u){const d=u[f];a[f]!==void 0&&hn(d)&&(d.set(a[f],!1),Hy(l)&&l.add(f))}}scrapeMotionValuesFromProps(e,r){return{}}mount(e){this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),iI.current||pG(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ow.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ta.update(this.notifyUpdate),Ta.render(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,r){const n=Sl.has(e),s=r.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&Or.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{s(),i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...r},n,s,i,o){let a,c;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:h,layoutRoot:y})}return c}updateFeatures(){for(const e in this.features){const r=this.features[e];r.isMounted?r.update(this.props,this.prevProps):(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Lt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}makeTargetAnimatable(e,r=!0){return this.makeTargetAnimatableFromInstance(e,this.props,r)}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(e)}addValue(e,r){r!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,r)),this.values.set(e,r),this.latestValues[e]=r.get()}removeValue(e){this.values.delete(e);const r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&r!==void 0&&(n=Uf(r,{owner:this}),this.addValue(e,n)),n}readValue(e){return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){var r;const{initial:n}=this.props,s=typeof n=="string"||typeof n=="object"?(r=eE(this.props,n))===null||r===void 0?void 0:r[e]:void 0;if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!hn(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new nE),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}}class aI extends mG{sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){return e.style?e.style[r]:void 0}removeValueFromRenderState(e,{vars:r,style:n}){delete r[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:r,...n},{transformValues:s},i){let o=WV(n,e||{},this);if(s&&(r&&(r=s(r)),n&&(n=s(n)),o&&(o=s(o))),i){UV(this,n,o);const a=hG(this,n,o,r);r=a.transitionEnd,n=a.target}return{transition:e,transitionEnd:r,...n}}}function xG(t){return window.getComputedStyle(t)}class bG extends aI{readValueFromInstance(e,r){if(Sl.has(r)){const n=oE(r);return n&&n.default||0}else{const n=xG(e),s=(rP(r)?n.getPropertyValue(r):n[r])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:r}){return QP(e,r)}build(e,r,n,s){KC(e,r,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,r){return ZC(e,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;hn(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(e,r,n,s){aP(e,r,n,s)}}class wG extends aI{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(Sl.has(r)){const n=oE(r);return n&&n.default||0}return r=cP.has(r)?r:XC(r),e.getAttribute(r)}measureInstanceViewportBox(){return Lt()}scrapeMotionValuesFromProps(e,r){return uP(e,r)}build(e,r,n,s){JC(e,r,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,r,n,s){lP(e,r,n,s)}mount(e){this.isSVGTag=YC(e.tagName),super.mount(e)}}const CG=(t,e)=>qC(t)?new wG(e,{enableHardwareAcceleration:!1}):new bG(e,{enableHardwareAcceleration:!0}),EG={layout:{ProjectionNode:nI,MeasureLayout:YP}},kG={...tz,...pV,...sG,...EG},Su=TW((t,e)=>tV(t,e,kG,CG));function cI(){const t=m.useRef(!1);return Fy(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function AG(){const t=cI(),[e,r]=m.useState(0),n=m.useCallback(()=>{t.current&&r(e+1)},[e]);return[m.useCallback(()=>Or.postRender(n),[n]),e]}class SG extends m.Component{getSnapshotBeforeUpdate(e){const r=this.props.childRef.current;if(r&&e.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function TG({children:t,isPresent:e}){const r=m.useId(),n=m.useRef(null),s=m.useRef({width:0,height:0,top:0,left:0});return m.useInsertionEffect(()=>{const{width:i,height:o,top:a,left:c}=s.current;if(e||!n.current||!i||!o)return;n.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` [data-motion-pop-id="${r}"] { position: absolute !important; width: ${i}px !important; @@ -45,12 +45,12 @@ Error generating stack: `+i.message+` top: ${a}px !important; left: ${c}px !important; } - `),()=>{document.head.removeChild(l)}},[e]),m.createElement(kG,{isPresent:e,childRef:n,sizeRef:s},m.cloneElement(t,{ref:n}))}const tx=({children:t,initial:e,isPresent:r,onExitComplete:n,custom:s,presenceAffectsLayout:i,mode:o})=>{const a=VC(SG),c=m.useId(),l=m.useMemo(()=>({id:c,initial:e,isPresent:r,custom:s,onExitComplete:u=>{a.set(u,!0);for(const f of a.values())if(!f)return;n&&n()},register:u=>(a.set(u,!1),()=>a.delete(u))}),i?void 0:[r]);return m.useMemo(()=>{a.forEach((u,f)=>a.set(f,!1))},[r]),m.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),o==="popLayout"&&(t=m.createElement(AG,{isPresent:r},t)),m.createElement(eg.Provider,{value:l},t)};function SG(){return new Map}function TG(t){return m.useEffect(()=>()=>t(),[])}const zl=t=>t.key||"";function PG(t,e){t.forEach(r=>{const n=zl(r);e.set(n,r)})}function IG(t){const e=[];return m.Children.forEach(t,r=>{m.isValidElement(r)&&e.push(r)}),e}const aI=({children:t,custom:e,initial:r=!0,onExitComplete:n,exitBeforeEnter:s,presenceAffectsLayout:i=!0,mode:o="sync"})=>{s&&(o="wait");let[a]=EG();const c=m.useContext(HC).forceRender;c&&(a=c);const l=oI(),u=IG(t);let f=u;const d=new Set,h=m.useRef(f),y=m.useRef(new Map).current,p=m.useRef(!0);if(jy(()=>{p.current=!1,PG(u,y),h.current=f}),TG(()=>{p.current=!0,y.clear(),d.clear()}),p.current)return m.createElement(m.Fragment,null,f.map(x=>m.createElement(tx,{key:zl(x),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:o},x)));f=[...f];const b=h.current.map(zl),v=u.map(zl),g=b.length;for(let x=0;x{if(v.indexOf(x)!==-1)return;const k=y.get(x);if(!k)return;const S=b.indexOf(x),I=()=>{y.delete(x),d.delete(x);const R=h.current.findIndex(_=>_.key===x);if(h.current.splice(R,1),!d.size){if(h.current=u,l.current===!1)return;a(),n&&n()}};f.splice(S,0,m.createElement(tx,{key:zl(k),isPresent:!1,onExitComplete:I,custom:e,presenceAffectsLayout:i,mode:o},k))}),f=f.map(x=>{const k=x.key;return d.has(k)?x:m.createElement(tx,{key:zl(x),isPresent:!0,presenceAffectsLayout:i,mode:o},x)}),m.createElement(m.Fragment,null,d.size?f:f.map(x=>m.cloneElement(x)))},cI={black:"#000000",white:"#ffffff",inherit:"inherit",transparent:"transparent",positive:"#1FC266",negative:"#C2501F",info:"#0076CC",warning:"#F4B03E",gradientBackdrop:`linear-gradient( + `),()=>{document.head.removeChild(l)}},[e]),m.createElement(SG,{isPresent:e,childRef:n,sizeRef:s},m.cloneElement(t,{ref:n}))}const nx=({children:t,initial:e,isPresent:r,onExitComplete:n,custom:s,presenceAffectsLayout:i,mode:o})=>{const a=zC(PG),c=m.useId(),l=m.useMemo(()=>({id:c,initial:e,isPresent:r,custom:s,onExitComplete:u=>{a.set(u,!0);for(const f of a.values())if(!f)return;n&&n()},register:u=>(a.set(u,!1),()=>a.delete(u))}),i?void 0:[r]);return m.useMemo(()=>{a.forEach((u,f)=>a.set(f,!1))},[r]),m.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),o==="popLayout"&&(t=m.createElement(TG,{isPresent:r},t)),m.createElement(tg.Provider,{value:l},t)};function PG(){return new Map}function IG(t){return m.useEffect(()=>()=>t(),[])}const Gl=t=>t.key||"";function OG(t,e){t.forEach(r=>{const n=Gl(r);e.set(n,r)})}function RG(t){const e=[];return m.Children.forEach(t,r=>{m.isValidElement(r)&&e.push(r)}),e}const lI=({children:t,custom:e,initial:r=!0,onExitComplete:n,exitBeforeEnter:s,presenceAffectsLayout:i=!0,mode:o="sync"})=>{s&&(o="wait");let[a]=AG();const c=m.useContext(GC).forceRender;c&&(a=c);const l=cI(),u=RG(t);let f=u;const d=new Set,h=m.useRef(f),y=m.useRef(new Map).current,p=m.useRef(!0);if(Fy(()=>{p.current=!1,OG(u,y),h.current=f}),IG(()=>{p.current=!0,y.clear(),d.clear()}),p.current)return m.createElement(m.Fragment,null,f.map(x=>m.createElement(nx,{key:Gl(x),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:o},x)));f=[...f];const b=h.current.map(Gl),v=u.map(Gl),g=b.length;for(let x=0;x{if(v.indexOf(x)!==-1)return;const k=y.get(x);if(!k)return;const S=b.indexOf(x),I=()=>{y.delete(x),d.delete(x);const R=h.current.findIndex(_=>_.key===x);if(h.current.splice(R,1),!d.size){if(h.current=u,l.current===!1)return;a(),n&&n()}};f.splice(S,0,m.createElement(nx,{key:Gl(k),isPresent:!1,onExitComplete:I,custom:e,presenceAffectsLayout:i,mode:o},k))}),f=f.map(x=>{const k=x.key;return d.has(k)?x:m.createElement(nx,{key:Gl(x),isPresent:!0,presenceAffectsLayout:i,mode:o},x)}),m.createElement(m.Fragment,null,d.size?f:f.map(x=>m.cloneElement(x)))},uI={black:"#000000",white:"#ffffff",inherit:"inherit",transparent:"transparent",positive:"#1FC266",negative:"#C2501F",info:"#0076CC",warning:"#F4B03E",gradientBackdrop:`linear-gradient( 243.18deg, rgba(86, 52, 189, 0.85) 0%, rgba(49, 41, 223, 0.85) 63.54%, rgba(7, 98, 149, 0.85) 100% - )`,gradientPrimary:"linear-gradient(89.69deg, #4411E1 0.27%, #7537F9 99.73%)",gradientSecondary:"linear-gradient(32.51deg, #951990 -15.23%, #3A35B1 48.55%, #20A8B0 100%)",arbitrumDark:"#212D44",arbitrumLight:"#93D4FF",avalanceDark:"#810C0C",avalanceLight:"#FF8080",bscDark:"#584508",bscLight:"#FCCF43",ethereumDark:"#132362",ethereumLight:"#AABBFF",gnosisDark:"#084246",gnosisLight:"#8CF6FD",polygonDark:"#350881",polygonLight:"#C7A6FF"},OG={...cI,text100:"rgba(255, 255, 255, 1)",text80:"rgba(255, 255, 255, 0.8)",text50:"rgba(255, 255, 255, 0.5)",textInverse100:"rgba(0, 0, 0, 1)",backgroundPrimary:"rgba(0, 0, 0, 1)",backgroundSecondary:"rgba(255, 255, 255, 0.1)",backgroundContrast:"rgba(0, 0, 0, 0.5)",backgroundMuted:"rgba(255, 255, 255, 0.05)",backgroundControl:"rgba(255, 255, 255, 0.25)",backgroundInverse:"rgba(255, 255, 255, 1)",backgroundBackdrop:"rgba(34, 34, 34, 0.9)",backgroundOverlay:"rgba(0, 0, 0, 0.7)",backgroundRaised:"rgba(54, 54, 54, 0.7)",buttonGlass:"rgba(255, 255, 255, 0.15)",buttonEmphasis:"rgba(0, 0, 0, 0.5)",buttonInverse:"rgba(255, 255, 255, 0.8)",borderNormal:"rgba(255, 255, 255, 0.25)",borderFocus:"rgba(255, 255, 255, 0.5)"},RG={...cI,text100:"rgba(0, 0, 0, 1)",text80:"rgba(0, 0, 0, 0.8)",text50:"rgba(0, 0, 0, 0.5)",textInverse100:"rgba(255, 255, 255, 1)",backgroundPrimary:"rgba(244, 244, 244, 1)",backgroundSecondary:"rgba(0, 0, 0, 0.1)",backgroundContrast:"rgba(244, 244, 244, 0.5)",backgroundMuted:"rgba(0, 0, 0, 0.05)",backgroundControl:"rgba(0, 0, 0, 0.25)",backgroundInverse:"rgba(0, 0, 0, 1)",backgroundBackdrop:"rgba(221, 221, 221, 0.9)",backgroundOverlay:"rgba(244, 244, 244, 0.7)",backgroundRaised:"rgba(192, 192, 192, 0.7)",buttonGlass:"rgba(0, 0, 0, 0.15)",buttonEmphasis:"rgba(255, 255, 255, 0.5)",buttonInverse:"rgba(0, 0, 0, 0.8)",borderNormal:"rgba(0, 0, 0, 0.25)",borderFocus:"rgba(0, 0, 0, 0.5)"},NG={dark:OG,light:RG},_G={inherit:{fontFamily:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit",fontWeight:"inherit"},xlarge:{fontFamily:"body",fontSize:"xlarge",lineHeight:"9",letterSpacing:"none",fontWeight:"bold"},large:{fontFamily:"body",fontSize:"large",lineHeight:"7",letterSpacing:"normal",fontWeight:"semibold"},medium:{fontFamily:"body",fontSize:"medium",lineHeight:"6",letterSpacing:"normal",fontWeight:"bold"},normal:{fontFamily:"body",fontSize:"normal",lineHeight:"5",letterSpacing:"wide",fontWeight:"normal"},small:{fontFamily:"body",fontSize:"small",lineHeight:"4",letterSpacing:"wide",fontWeight:"medium"},xsmall:{fontFamily:"body",fontSize:"xsmall",lineHeight:"4",letterSpacing:"wide",fontWeight:"bold"},code:{fontFamily:"mono",fontSize:"normal",lineHeight:"5",letterSpacing:"none",fontWeight:"normal"}};var rS={colors:{black:"var(--seq-colors-black)",white:"var(--seq-colors-white)",inherit:"var(--seq-colors-inherit)",transparent:"var(--seq-colors-transparent)",positive:"var(--seq-colors-positive)",negative:"var(--seq-colors-negative)",info:"var(--seq-colors-info)",warning:"var(--seq-colors-warning)",gradientBackdrop:"var(--seq-colors-gradient-backdrop)",gradientPrimary:"var(--seq-colors-gradient-primary)",gradientSecondary:"var(--seq-colors-gradient-secondary)",arbitrumDark:"var(--seq-colors-arbitrum-dark)",arbitrumLight:"var(--seq-colors-arbitrum-light)",avalanceDark:"var(--seq-colors-avalance-dark)",avalanceLight:"var(--seq-colors-avalance-light)",bscDark:"var(--seq-colors-bsc-dark)",bscLight:"var(--seq-colors-bsc-light)",ethereumDark:"var(--seq-colors-ethereum-dark)",ethereumLight:"var(--seq-colors-ethereum-light)",gnosisDark:"var(--seq-colors-gnosis-dark)",gnosisLight:"var(--seq-colors-gnosis-light)",polygonDark:"var(--seq-colors-polygon-dark)",polygonLight:"var(--seq-colors-polygon-light)",text100:"var(--seq-colors-text100)",text80:"var(--seq-colors-text80)",text50:"var(--seq-colors-text50)",textInverse100:"var(--seq-colors-text-inverse100)",backgroundPrimary:"var(--seq-colors-background-primary)",backgroundSecondary:"var(--seq-colors-background-secondary)",backgroundContrast:"var(--seq-colors-background-contrast)",backgroundMuted:"var(--seq-colors-background-muted)",backgroundControl:"var(--seq-colors-background-control)",backgroundInverse:"var(--seq-colors-background-inverse)",backgroundBackdrop:"var(--seq-colors-background-backdrop)",backgroundOverlay:"var(--seq-colors-background-overlay)",backgroundRaised:"var(--seq-colors-background-raised)",buttonGlass:"var(--seq-colors-button-glass)",buttonEmphasis:"var(--seq-colors-button-emphasis)",buttonInverse:"var(--seq-colors-button-inverse)",borderNormal:"var(--seq-colors-border-normal)",borderFocus:"var(--seq-colors-border-focus)"}};function MG(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function DG(t){var e=MG(t,"string");return typeof e=="symbol"?e:String(e)}function BG(t,e,r){return e=DG(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function rx(t){for(var e=1;efunction(){for(var e=arguments.length,r=new Array(e),n=0;nc.styles)),i=Object.keys(s),o=i.filter(c=>"mappings"in s[c]),a=c=>{var l=[],u={},f=rx({},c),d=!1;for(var h of o){var y=c[h];if(y!=null){var p=s[h];d=!0;for(var b of p.mappings)u[b]=y,f[b]==null&&delete f[b]}}var v=d?rx(rx({},u),f):c,g=function(){var S=v[x],I=s[x];try{if(I.mappings)return 1;if(typeof S=="string"||typeof S=="number")l.push(I.values[S].defaultClass);else if(Array.isArray(S))for(var R=0;Rt,FG=function(){return LG(jG)(...arguments)},lI=FG({conditions:{defaultCondition:"sm",conditionNames:["sm","md","lg","xl"],responsiveArray:void 0},styles:{borderWidth:{mappings:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"]},borderRadius:{mappings:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderLeftRadius:{mappings:["borderBottomLeftRadius","borderTopLeftRadius"]},borderRightRadius:{mappings:["borderBottomRightRadius","borderTopRightRadius"]},borderTopRadius:{mappings:["borderTopLeftRadius","borderTopRightRadius"]},borderBottomRadius:{mappings:["borderBottomLeftRadius","borderBottomRightRadius"]},margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},overflow:{mappings:["overflowX","overflowY"]},padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},placeItems:{mappings:["justifyContent","alignItems"]},inset:{mappings:["top","bottom","left","right"]},width:{values:{0:{conditions:{sm:"fyvr10",md:"fyvr11",lg:"fyvr12",xl:"fyvr13"},defaultClass:"fyvr10"},1:{conditions:{sm:"fyvr14",md:"fyvr15",lg:"fyvr16",xl:"fyvr17"},defaultClass:"fyvr14"},2:{conditions:{sm:"fyvr18",md:"fyvr19",lg:"fyvr1a",xl:"fyvr1b"},defaultClass:"fyvr18"},3:{conditions:{sm:"fyvr1c",md:"fyvr1d",lg:"fyvr1e",xl:"fyvr1f"},defaultClass:"fyvr1c"},4:{conditions:{sm:"fyvr1g",md:"fyvr1h",lg:"fyvr1i",xl:"fyvr1j"},defaultClass:"fyvr1g"},5:{conditions:{sm:"fyvr1k",md:"fyvr1l",lg:"fyvr1m",xl:"fyvr1n"},defaultClass:"fyvr1k"},6:{conditions:{sm:"fyvr1o",md:"fyvr1p",lg:"fyvr1q",xl:"fyvr1r"},defaultClass:"fyvr1o"},7:{conditions:{sm:"fyvr1s",md:"fyvr1t",lg:"fyvr1u",xl:"fyvr1v"},defaultClass:"fyvr1s"},8:{conditions:{sm:"fyvr1w",md:"fyvr1x",lg:"fyvr1y",xl:"fyvr1z"},defaultClass:"fyvr1w"},9:{conditions:{sm:"fyvr110",md:"fyvr111",lg:"fyvr112",xl:"fyvr113"},defaultClass:"fyvr110"},10:{conditions:{sm:"fyvr114",md:"fyvr115",lg:"fyvr116",xl:"fyvr117"},defaultClass:"fyvr114"},12:{conditions:{sm:"fyvr118",md:"fyvr119",lg:"fyvr11a",xl:"fyvr11b"},defaultClass:"fyvr118"},14:{conditions:{sm:"fyvr11c",md:"fyvr11d",lg:"fyvr11e",xl:"fyvr11f"},defaultClass:"fyvr11c"},16:{conditions:{sm:"fyvr11g",md:"fyvr11h",lg:"fyvr11i",xl:"fyvr11j"},defaultClass:"fyvr11g"},"0.25":{conditions:{sm:"fyvr11k",md:"fyvr11l",lg:"fyvr11m",xl:"fyvr11n"},defaultClass:"fyvr11k"},"0.5":{conditions:{sm:"fyvr11o",md:"fyvr11p",lg:"fyvr11q",xl:"fyvr11r"},defaultClass:"fyvr11o"},"1.5":{conditions:{sm:"fyvr11s",md:"fyvr11t",lg:"fyvr11u",xl:"fyvr11v"},defaultClass:"fyvr11s"},none:{conditions:{sm:"fyvr11w",md:"fyvr11x",lg:"fyvr11y",xl:"fyvr11z"},defaultClass:"fyvr11w"},px:{conditions:{sm:"fyvr120",md:"fyvr121",lg:"fyvr122",xl:"fyvr123"},defaultClass:"fyvr120"},auto:{conditions:{sm:"fyvr124",md:"fyvr125",lg:"fyvr126",xl:"fyvr127"},defaultClass:"fyvr124"},full:{conditions:{sm:"fyvr128",md:"fyvr129",lg:"fyvr12a",xl:"fyvr12b"},defaultClass:"fyvr128"},"1/2":{conditions:{sm:"fyvr12c",md:"fyvr12d",lg:"fyvr12e",xl:"fyvr12f"},defaultClass:"fyvr12c"},"1/3":{conditions:{sm:"fyvr12g",md:"fyvr12h",lg:"fyvr12i",xl:"fyvr12j"},defaultClass:"fyvr12g"},"2/3":{conditions:{sm:"fyvr12k",md:"fyvr12l",lg:"fyvr12m",xl:"fyvr12n"},defaultClass:"fyvr12k"},"1/4":{conditions:{sm:"fyvr12o",md:"fyvr12p",lg:"fyvr12q",xl:"fyvr12r"},defaultClass:"fyvr12o"},"3/4":{conditions:{sm:"fyvr12s",md:"fyvr12t",lg:"fyvr12u",xl:"fyvr12v"},defaultClass:"fyvr12s"},fit:{conditions:{sm:"fyvr12w",md:"fyvr12x",lg:"fyvr12y",xl:"fyvr12z"},defaultClass:"fyvr12w"},max:{conditions:{sm:"fyvr130",md:"fyvr131",lg:"fyvr132",xl:"fyvr133"},defaultClass:"fyvr130"},min:{conditions:{sm:"fyvr134",md:"fyvr135",lg:"fyvr136",xl:"fyvr137"},defaultClass:"fyvr134"},vw:{conditions:{sm:"fyvr138",md:"fyvr139",lg:"fyvr13a",xl:"fyvr13b"},defaultClass:"fyvr138"},vh:{conditions:{sm:"fyvr13c",md:"fyvr13d",lg:"fyvr13e",xl:"fyvr13f"},defaultClass:"fyvr13c"}}},height:{values:{0:{conditions:{sm:"fyvr13g",md:"fyvr13h",lg:"fyvr13i",xl:"fyvr13j"},defaultClass:"fyvr13g"},1:{conditions:{sm:"fyvr13k",md:"fyvr13l",lg:"fyvr13m",xl:"fyvr13n"},defaultClass:"fyvr13k"},2:{conditions:{sm:"fyvr13o",md:"fyvr13p",lg:"fyvr13q",xl:"fyvr13r"},defaultClass:"fyvr13o"},3:{conditions:{sm:"fyvr13s",md:"fyvr13t",lg:"fyvr13u",xl:"fyvr13v"},defaultClass:"fyvr13s"},4:{conditions:{sm:"fyvr13w",md:"fyvr13x",lg:"fyvr13y",xl:"fyvr13z"},defaultClass:"fyvr13w"},5:{conditions:{sm:"fyvr140",md:"fyvr141",lg:"fyvr142",xl:"fyvr143"},defaultClass:"fyvr140"},6:{conditions:{sm:"fyvr144",md:"fyvr145",lg:"fyvr146",xl:"fyvr147"},defaultClass:"fyvr144"},7:{conditions:{sm:"fyvr148",md:"fyvr149",lg:"fyvr14a",xl:"fyvr14b"},defaultClass:"fyvr148"},8:{conditions:{sm:"fyvr14c",md:"fyvr14d",lg:"fyvr14e",xl:"fyvr14f"},defaultClass:"fyvr14c"},9:{conditions:{sm:"fyvr14g",md:"fyvr14h",lg:"fyvr14i",xl:"fyvr14j"},defaultClass:"fyvr14g"},10:{conditions:{sm:"fyvr14k",md:"fyvr14l",lg:"fyvr14m",xl:"fyvr14n"},defaultClass:"fyvr14k"},12:{conditions:{sm:"fyvr14o",md:"fyvr14p",lg:"fyvr14q",xl:"fyvr14r"},defaultClass:"fyvr14o"},14:{conditions:{sm:"fyvr14s",md:"fyvr14t",lg:"fyvr14u",xl:"fyvr14v"},defaultClass:"fyvr14s"},16:{conditions:{sm:"fyvr14w",md:"fyvr14x",lg:"fyvr14y",xl:"fyvr14z"},defaultClass:"fyvr14w"},"0.25":{conditions:{sm:"fyvr150",md:"fyvr151",lg:"fyvr152",xl:"fyvr153"},defaultClass:"fyvr150"},"0.5":{conditions:{sm:"fyvr154",md:"fyvr155",lg:"fyvr156",xl:"fyvr157"},defaultClass:"fyvr154"},"1.5":{conditions:{sm:"fyvr158",md:"fyvr159",lg:"fyvr15a",xl:"fyvr15b"},defaultClass:"fyvr158"},none:{conditions:{sm:"fyvr15c",md:"fyvr15d",lg:"fyvr15e",xl:"fyvr15f"},defaultClass:"fyvr15c"},px:{conditions:{sm:"fyvr15g",md:"fyvr15h",lg:"fyvr15i",xl:"fyvr15j"},defaultClass:"fyvr15g"},auto:{conditions:{sm:"fyvr15k",md:"fyvr15l",lg:"fyvr15m",xl:"fyvr15n"},defaultClass:"fyvr15k"},full:{conditions:{sm:"fyvr15o",md:"fyvr15p",lg:"fyvr15q",xl:"fyvr15r"},defaultClass:"fyvr15o"},"1/2":{conditions:{sm:"fyvr15s",md:"fyvr15t",lg:"fyvr15u",xl:"fyvr15v"},defaultClass:"fyvr15s"},"1/3":{conditions:{sm:"fyvr15w",md:"fyvr15x",lg:"fyvr15y",xl:"fyvr15z"},defaultClass:"fyvr15w"},"2/3":{conditions:{sm:"fyvr160",md:"fyvr161",lg:"fyvr162",xl:"fyvr163"},defaultClass:"fyvr160"},"1/4":{conditions:{sm:"fyvr164",md:"fyvr165",lg:"fyvr166",xl:"fyvr167"},defaultClass:"fyvr164"},"3/4":{conditions:{sm:"fyvr168",md:"fyvr169",lg:"fyvr16a",xl:"fyvr16b"},defaultClass:"fyvr168"},fit:{conditions:{sm:"fyvr16c",md:"fyvr16d",lg:"fyvr16e",xl:"fyvr16f"},defaultClass:"fyvr16c"},max:{conditions:{sm:"fyvr16g",md:"fyvr16h",lg:"fyvr16i",xl:"fyvr16j"},defaultClass:"fyvr16g"},min:{conditions:{sm:"fyvr16k",md:"fyvr16l",lg:"fyvr16m",xl:"fyvr16n"},defaultClass:"fyvr16k"},vw:{conditions:{sm:"fyvr16o",md:"fyvr16p",lg:"fyvr16q",xl:"fyvr16r"},defaultClass:"fyvr16o"},vh:{conditions:{sm:"fyvr16s",md:"fyvr16t",lg:"fyvr16u",xl:"fyvr16v"},defaultClass:"fyvr16s"}}},maxWidth:{values:{0:{conditions:{sm:"fyvr16w",md:"fyvr16x",lg:"fyvr16y",xl:"fyvr16z"},defaultClass:"fyvr16w"},1:{conditions:{sm:"fyvr170",md:"fyvr171",lg:"fyvr172",xl:"fyvr173"},defaultClass:"fyvr170"},2:{conditions:{sm:"fyvr174",md:"fyvr175",lg:"fyvr176",xl:"fyvr177"},defaultClass:"fyvr174"},3:{conditions:{sm:"fyvr178",md:"fyvr179",lg:"fyvr17a",xl:"fyvr17b"},defaultClass:"fyvr178"},4:{conditions:{sm:"fyvr17c",md:"fyvr17d",lg:"fyvr17e",xl:"fyvr17f"},defaultClass:"fyvr17c"},5:{conditions:{sm:"fyvr17g",md:"fyvr17h",lg:"fyvr17i",xl:"fyvr17j"},defaultClass:"fyvr17g"},6:{conditions:{sm:"fyvr17k",md:"fyvr17l",lg:"fyvr17m",xl:"fyvr17n"},defaultClass:"fyvr17k"},7:{conditions:{sm:"fyvr17o",md:"fyvr17p",lg:"fyvr17q",xl:"fyvr17r"},defaultClass:"fyvr17o"},8:{conditions:{sm:"fyvr17s",md:"fyvr17t",lg:"fyvr17u",xl:"fyvr17v"},defaultClass:"fyvr17s"},9:{conditions:{sm:"fyvr17w",md:"fyvr17x",lg:"fyvr17y",xl:"fyvr17z"},defaultClass:"fyvr17w"},10:{conditions:{sm:"fyvr180",md:"fyvr181",lg:"fyvr182",xl:"fyvr183"},defaultClass:"fyvr180"},12:{conditions:{sm:"fyvr184",md:"fyvr185",lg:"fyvr186",xl:"fyvr187"},defaultClass:"fyvr184"},14:{conditions:{sm:"fyvr188",md:"fyvr189",lg:"fyvr18a",xl:"fyvr18b"},defaultClass:"fyvr188"},16:{conditions:{sm:"fyvr18c",md:"fyvr18d",lg:"fyvr18e",xl:"fyvr18f"},defaultClass:"fyvr18c"},"0.25":{conditions:{sm:"fyvr18g",md:"fyvr18h",lg:"fyvr18i",xl:"fyvr18j"},defaultClass:"fyvr18g"},"0.5":{conditions:{sm:"fyvr18k",md:"fyvr18l",lg:"fyvr18m",xl:"fyvr18n"},defaultClass:"fyvr18k"},"1.5":{conditions:{sm:"fyvr18o",md:"fyvr18p",lg:"fyvr18q",xl:"fyvr18r"},defaultClass:"fyvr18o"},none:{conditions:{sm:"fyvr18s",md:"fyvr18t",lg:"fyvr18u",xl:"fyvr18v"},defaultClass:"fyvr18s"},px:{conditions:{sm:"fyvr18w",md:"fyvr18x",lg:"fyvr18y",xl:"fyvr18z"},defaultClass:"fyvr18w"},auto:{conditions:{sm:"fyvr190",md:"fyvr191",lg:"fyvr192",xl:"fyvr193"},defaultClass:"fyvr190"},full:{conditions:{sm:"fyvr194",md:"fyvr195",lg:"fyvr196",xl:"fyvr197"},defaultClass:"fyvr194"},"1/2":{conditions:{sm:"fyvr198",md:"fyvr199",lg:"fyvr19a",xl:"fyvr19b"},defaultClass:"fyvr198"},"1/3":{conditions:{sm:"fyvr19c",md:"fyvr19d",lg:"fyvr19e",xl:"fyvr19f"},defaultClass:"fyvr19c"},"2/3":{conditions:{sm:"fyvr19g",md:"fyvr19h",lg:"fyvr19i",xl:"fyvr19j"},defaultClass:"fyvr19g"},"1/4":{conditions:{sm:"fyvr19k",md:"fyvr19l",lg:"fyvr19m",xl:"fyvr19n"},defaultClass:"fyvr19k"},"3/4":{conditions:{sm:"fyvr19o",md:"fyvr19p",lg:"fyvr19q",xl:"fyvr19r"},defaultClass:"fyvr19o"},fit:{conditions:{sm:"fyvr19s",md:"fyvr19t",lg:"fyvr19u",xl:"fyvr19v"},defaultClass:"fyvr19s"},max:{conditions:{sm:"fyvr19w",md:"fyvr19x",lg:"fyvr19y",xl:"fyvr19z"},defaultClass:"fyvr19w"},min:{conditions:{sm:"fyvr1a0",md:"fyvr1a1",lg:"fyvr1a2",xl:"fyvr1a3"},defaultClass:"fyvr1a0"},vw:{conditions:{sm:"fyvr1a4",md:"fyvr1a5",lg:"fyvr1a6",xl:"fyvr1a7"},defaultClass:"fyvr1a4"},vh:{conditions:{sm:"fyvr1a8",md:"fyvr1a9",lg:"fyvr1aa",xl:"fyvr1ab"},defaultClass:"fyvr1a8"}}},maxHeight:{values:{0:{conditions:{sm:"fyvr1ac",md:"fyvr1ad",lg:"fyvr1ae",xl:"fyvr1af"},defaultClass:"fyvr1ac"},1:{conditions:{sm:"fyvr1ag",md:"fyvr1ah",lg:"fyvr1ai",xl:"fyvr1aj"},defaultClass:"fyvr1ag"},2:{conditions:{sm:"fyvr1ak",md:"fyvr1al",lg:"fyvr1am",xl:"fyvr1an"},defaultClass:"fyvr1ak"},3:{conditions:{sm:"fyvr1ao",md:"fyvr1ap",lg:"fyvr1aq",xl:"fyvr1ar"},defaultClass:"fyvr1ao"},4:{conditions:{sm:"fyvr1as",md:"fyvr1at",lg:"fyvr1au",xl:"fyvr1av"},defaultClass:"fyvr1as"},5:{conditions:{sm:"fyvr1aw",md:"fyvr1ax",lg:"fyvr1ay",xl:"fyvr1az"},defaultClass:"fyvr1aw"},6:{conditions:{sm:"fyvr1b0",md:"fyvr1b1",lg:"fyvr1b2",xl:"fyvr1b3"},defaultClass:"fyvr1b0"},7:{conditions:{sm:"fyvr1b4",md:"fyvr1b5",lg:"fyvr1b6",xl:"fyvr1b7"},defaultClass:"fyvr1b4"},8:{conditions:{sm:"fyvr1b8",md:"fyvr1b9",lg:"fyvr1ba",xl:"fyvr1bb"},defaultClass:"fyvr1b8"},9:{conditions:{sm:"fyvr1bc",md:"fyvr1bd",lg:"fyvr1be",xl:"fyvr1bf"},defaultClass:"fyvr1bc"},10:{conditions:{sm:"fyvr1bg",md:"fyvr1bh",lg:"fyvr1bi",xl:"fyvr1bj"},defaultClass:"fyvr1bg"},12:{conditions:{sm:"fyvr1bk",md:"fyvr1bl",lg:"fyvr1bm",xl:"fyvr1bn"},defaultClass:"fyvr1bk"},14:{conditions:{sm:"fyvr1bo",md:"fyvr1bp",lg:"fyvr1bq",xl:"fyvr1br"},defaultClass:"fyvr1bo"},16:{conditions:{sm:"fyvr1bs",md:"fyvr1bt",lg:"fyvr1bu",xl:"fyvr1bv"},defaultClass:"fyvr1bs"},"0.25":{conditions:{sm:"fyvr1bw",md:"fyvr1bx",lg:"fyvr1by",xl:"fyvr1bz"},defaultClass:"fyvr1bw"},"0.5":{conditions:{sm:"fyvr1c0",md:"fyvr1c1",lg:"fyvr1c2",xl:"fyvr1c3"},defaultClass:"fyvr1c0"},"1.5":{conditions:{sm:"fyvr1c4",md:"fyvr1c5",lg:"fyvr1c6",xl:"fyvr1c7"},defaultClass:"fyvr1c4"},none:{conditions:{sm:"fyvr1c8",md:"fyvr1c9",lg:"fyvr1ca",xl:"fyvr1cb"},defaultClass:"fyvr1c8"},px:{conditions:{sm:"fyvr1cc",md:"fyvr1cd",lg:"fyvr1ce",xl:"fyvr1cf"},defaultClass:"fyvr1cc"},auto:{conditions:{sm:"fyvr1cg",md:"fyvr1ch",lg:"fyvr1ci",xl:"fyvr1cj"},defaultClass:"fyvr1cg"},full:{conditions:{sm:"fyvr1ck",md:"fyvr1cl",lg:"fyvr1cm",xl:"fyvr1cn"},defaultClass:"fyvr1ck"},"1/2":{conditions:{sm:"fyvr1co",md:"fyvr1cp",lg:"fyvr1cq",xl:"fyvr1cr"},defaultClass:"fyvr1co"},"1/3":{conditions:{sm:"fyvr1cs",md:"fyvr1ct",lg:"fyvr1cu",xl:"fyvr1cv"},defaultClass:"fyvr1cs"},"2/3":{conditions:{sm:"fyvr1cw",md:"fyvr1cx",lg:"fyvr1cy",xl:"fyvr1cz"},defaultClass:"fyvr1cw"},"1/4":{conditions:{sm:"fyvr1d0",md:"fyvr1d1",lg:"fyvr1d2",xl:"fyvr1d3"},defaultClass:"fyvr1d0"},"3/4":{conditions:{sm:"fyvr1d4",md:"fyvr1d5",lg:"fyvr1d6",xl:"fyvr1d7"},defaultClass:"fyvr1d4"},fit:{conditions:{sm:"fyvr1d8",md:"fyvr1d9",lg:"fyvr1da",xl:"fyvr1db"},defaultClass:"fyvr1d8"},max:{conditions:{sm:"fyvr1dc",md:"fyvr1dd",lg:"fyvr1de",xl:"fyvr1df"},defaultClass:"fyvr1dc"},min:{conditions:{sm:"fyvr1dg",md:"fyvr1dh",lg:"fyvr1di",xl:"fyvr1dj"},defaultClass:"fyvr1dg"},vw:{conditions:{sm:"fyvr1dk",md:"fyvr1dl",lg:"fyvr1dm",xl:"fyvr1dn"},defaultClass:"fyvr1dk"},vh:{conditions:{sm:"fyvr1do",md:"fyvr1dp",lg:"fyvr1dq",xl:"fyvr1dr"},defaultClass:"fyvr1do"}}},minWidth:{values:{0:{conditions:{sm:"fyvr1ds",md:"fyvr1dt",lg:"fyvr1du",xl:"fyvr1dv"},defaultClass:"fyvr1ds"},1:{conditions:{sm:"fyvr1dw",md:"fyvr1dx",lg:"fyvr1dy",xl:"fyvr1dz"},defaultClass:"fyvr1dw"},2:{conditions:{sm:"fyvr1e0",md:"fyvr1e1",lg:"fyvr1e2",xl:"fyvr1e3"},defaultClass:"fyvr1e0"},3:{conditions:{sm:"fyvr1e4",md:"fyvr1e5",lg:"fyvr1e6",xl:"fyvr1e7"},defaultClass:"fyvr1e4"},4:{conditions:{sm:"fyvr1e8",md:"fyvr1e9",lg:"fyvr1ea",xl:"fyvr1eb"},defaultClass:"fyvr1e8"},5:{conditions:{sm:"fyvr1ec",md:"fyvr1ed",lg:"fyvr1ee",xl:"fyvr1ef"},defaultClass:"fyvr1ec"},6:{conditions:{sm:"fyvr1eg",md:"fyvr1eh",lg:"fyvr1ei",xl:"fyvr1ej"},defaultClass:"fyvr1eg"},7:{conditions:{sm:"fyvr1ek",md:"fyvr1el",lg:"fyvr1em",xl:"fyvr1en"},defaultClass:"fyvr1ek"},8:{conditions:{sm:"fyvr1eo",md:"fyvr1ep",lg:"fyvr1eq",xl:"fyvr1er"},defaultClass:"fyvr1eo"},9:{conditions:{sm:"fyvr1es",md:"fyvr1et",lg:"fyvr1eu",xl:"fyvr1ev"},defaultClass:"fyvr1es"},10:{conditions:{sm:"fyvr1ew",md:"fyvr1ex",lg:"fyvr1ey",xl:"fyvr1ez"},defaultClass:"fyvr1ew"},12:{conditions:{sm:"fyvr1f0",md:"fyvr1f1",lg:"fyvr1f2",xl:"fyvr1f3"},defaultClass:"fyvr1f0"},14:{conditions:{sm:"fyvr1f4",md:"fyvr1f5",lg:"fyvr1f6",xl:"fyvr1f7"},defaultClass:"fyvr1f4"},16:{conditions:{sm:"fyvr1f8",md:"fyvr1f9",lg:"fyvr1fa",xl:"fyvr1fb"},defaultClass:"fyvr1f8"},"0.25":{conditions:{sm:"fyvr1fc",md:"fyvr1fd",lg:"fyvr1fe",xl:"fyvr1ff"},defaultClass:"fyvr1fc"},"0.5":{conditions:{sm:"fyvr1fg",md:"fyvr1fh",lg:"fyvr1fi",xl:"fyvr1fj"},defaultClass:"fyvr1fg"},"1.5":{conditions:{sm:"fyvr1fk",md:"fyvr1fl",lg:"fyvr1fm",xl:"fyvr1fn"},defaultClass:"fyvr1fk"},none:{conditions:{sm:"fyvr1fo",md:"fyvr1fp",lg:"fyvr1fq",xl:"fyvr1fr"},defaultClass:"fyvr1fo"},px:{conditions:{sm:"fyvr1fs",md:"fyvr1ft",lg:"fyvr1fu",xl:"fyvr1fv"},defaultClass:"fyvr1fs"},auto:{conditions:{sm:"fyvr1fw",md:"fyvr1fx",lg:"fyvr1fy",xl:"fyvr1fz"},defaultClass:"fyvr1fw"},full:{conditions:{sm:"fyvr1g0",md:"fyvr1g1",lg:"fyvr1g2",xl:"fyvr1g3"},defaultClass:"fyvr1g0"},"1/2":{conditions:{sm:"fyvr1g4",md:"fyvr1g5",lg:"fyvr1g6",xl:"fyvr1g7"},defaultClass:"fyvr1g4"},"1/3":{conditions:{sm:"fyvr1g8",md:"fyvr1g9",lg:"fyvr1ga",xl:"fyvr1gb"},defaultClass:"fyvr1g8"},"2/3":{conditions:{sm:"fyvr1gc",md:"fyvr1gd",lg:"fyvr1ge",xl:"fyvr1gf"},defaultClass:"fyvr1gc"},"1/4":{conditions:{sm:"fyvr1gg",md:"fyvr1gh",lg:"fyvr1gi",xl:"fyvr1gj"},defaultClass:"fyvr1gg"},"3/4":{conditions:{sm:"fyvr1gk",md:"fyvr1gl",lg:"fyvr1gm",xl:"fyvr1gn"},defaultClass:"fyvr1gk"},fit:{conditions:{sm:"fyvr1go",md:"fyvr1gp",lg:"fyvr1gq",xl:"fyvr1gr"},defaultClass:"fyvr1go"},max:{conditions:{sm:"fyvr1gs",md:"fyvr1gt",lg:"fyvr1gu",xl:"fyvr1gv"},defaultClass:"fyvr1gs"},min:{conditions:{sm:"fyvr1gw",md:"fyvr1gx",lg:"fyvr1gy",xl:"fyvr1gz"},defaultClass:"fyvr1gw"},vw:{conditions:{sm:"fyvr1h0",md:"fyvr1h1",lg:"fyvr1h2",xl:"fyvr1h3"},defaultClass:"fyvr1h0"},vh:{conditions:{sm:"fyvr1h4",md:"fyvr1h5",lg:"fyvr1h6",xl:"fyvr1h7"},defaultClass:"fyvr1h4"}}},minHeight:{values:{0:{conditions:{sm:"fyvr1h8",md:"fyvr1h9",lg:"fyvr1ha",xl:"fyvr1hb"},defaultClass:"fyvr1h8"},1:{conditions:{sm:"fyvr1hc",md:"fyvr1hd",lg:"fyvr1he",xl:"fyvr1hf"},defaultClass:"fyvr1hc"},2:{conditions:{sm:"fyvr1hg",md:"fyvr1hh",lg:"fyvr1hi",xl:"fyvr1hj"},defaultClass:"fyvr1hg"},3:{conditions:{sm:"fyvr1hk",md:"fyvr1hl",lg:"fyvr1hm",xl:"fyvr1hn"},defaultClass:"fyvr1hk"},4:{conditions:{sm:"fyvr1ho",md:"fyvr1hp",lg:"fyvr1hq",xl:"fyvr1hr"},defaultClass:"fyvr1ho"},5:{conditions:{sm:"fyvr1hs",md:"fyvr1ht",lg:"fyvr1hu",xl:"fyvr1hv"},defaultClass:"fyvr1hs"},6:{conditions:{sm:"fyvr1hw",md:"fyvr1hx",lg:"fyvr1hy",xl:"fyvr1hz"},defaultClass:"fyvr1hw"},7:{conditions:{sm:"fyvr1i0",md:"fyvr1i1",lg:"fyvr1i2",xl:"fyvr1i3"},defaultClass:"fyvr1i0"},8:{conditions:{sm:"fyvr1i4",md:"fyvr1i5",lg:"fyvr1i6",xl:"fyvr1i7"},defaultClass:"fyvr1i4"},9:{conditions:{sm:"fyvr1i8",md:"fyvr1i9",lg:"fyvr1ia",xl:"fyvr1ib"},defaultClass:"fyvr1i8"},10:{conditions:{sm:"fyvr1ic",md:"fyvr1id",lg:"fyvr1ie",xl:"fyvr1if"},defaultClass:"fyvr1ic"},12:{conditions:{sm:"fyvr1ig",md:"fyvr1ih",lg:"fyvr1ii",xl:"fyvr1ij"},defaultClass:"fyvr1ig"},14:{conditions:{sm:"fyvr1ik",md:"fyvr1il",lg:"fyvr1im",xl:"fyvr1in"},defaultClass:"fyvr1ik"},16:{conditions:{sm:"fyvr1io",md:"fyvr1ip",lg:"fyvr1iq",xl:"fyvr1ir"},defaultClass:"fyvr1io"},"0.25":{conditions:{sm:"fyvr1is",md:"fyvr1it",lg:"fyvr1iu",xl:"fyvr1iv"},defaultClass:"fyvr1is"},"0.5":{conditions:{sm:"fyvr1iw",md:"fyvr1ix",lg:"fyvr1iy",xl:"fyvr1iz"},defaultClass:"fyvr1iw"},"1.5":{conditions:{sm:"fyvr1j0",md:"fyvr1j1",lg:"fyvr1j2",xl:"fyvr1j3"},defaultClass:"fyvr1j0"},none:{conditions:{sm:"fyvr1j4",md:"fyvr1j5",lg:"fyvr1j6",xl:"fyvr1j7"},defaultClass:"fyvr1j4"},px:{conditions:{sm:"fyvr1j8",md:"fyvr1j9",lg:"fyvr1ja",xl:"fyvr1jb"},defaultClass:"fyvr1j8"},auto:{conditions:{sm:"fyvr1jc",md:"fyvr1jd",lg:"fyvr1je",xl:"fyvr1jf"},defaultClass:"fyvr1jc"},full:{conditions:{sm:"fyvr1jg",md:"fyvr1jh",lg:"fyvr1ji",xl:"fyvr1jj"},defaultClass:"fyvr1jg"},"1/2":{conditions:{sm:"fyvr1jk",md:"fyvr1jl",lg:"fyvr1jm",xl:"fyvr1jn"},defaultClass:"fyvr1jk"},"1/3":{conditions:{sm:"fyvr1jo",md:"fyvr1jp",lg:"fyvr1jq",xl:"fyvr1jr"},defaultClass:"fyvr1jo"},"2/3":{conditions:{sm:"fyvr1js",md:"fyvr1jt",lg:"fyvr1ju",xl:"fyvr1jv"},defaultClass:"fyvr1js"},"1/4":{conditions:{sm:"fyvr1jw",md:"fyvr1jx",lg:"fyvr1jy",xl:"fyvr1jz"},defaultClass:"fyvr1jw"},"3/4":{conditions:{sm:"fyvr1k0",md:"fyvr1k1",lg:"fyvr1k2",xl:"fyvr1k3"},defaultClass:"fyvr1k0"},fit:{conditions:{sm:"fyvr1k4",md:"fyvr1k5",lg:"fyvr1k6",xl:"fyvr1k7"},defaultClass:"fyvr1k4"},max:{conditions:{sm:"fyvr1k8",md:"fyvr1k9",lg:"fyvr1ka",xl:"fyvr1kb"},defaultClass:"fyvr1k8"},min:{conditions:{sm:"fyvr1kc",md:"fyvr1kd",lg:"fyvr1ke",xl:"fyvr1kf"},defaultClass:"fyvr1kc"},vw:{conditions:{sm:"fyvr1kg",md:"fyvr1kh",lg:"fyvr1ki",xl:"fyvr1kj"},defaultClass:"fyvr1kg"},vh:{conditions:{sm:"fyvr1kk",md:"fyvr1kl",lg:"fyvr1km",xl:"fyvr1kn"},defaultClass:"fyvr1kk"}}},top:{values:{0:{conditions:{sm:"fyvr1ko",md:"fyvr1kp",lg:"fyvr1kq",xl:"fyvr1kr"},defaultClass:"fyvr1ko"},1:{conditions:{sm:"fyvr1ks",md:"fyvr1kt",lg:"fyvr1ku",xl:"fyvr1kv"},defaultClass:"fyvr1ks"},2:{conditions:{sm:"fyvr1kw",md:"fyvr1kx",lg:"fyvr1ky",xl:"fyvr1kz"},defaultClass:"fyvr1kw"},3:{conditions:{sm:"fyvr1l0",md:"fyvr1l1",lg:"fyvr1l2",xl:"fyvr1l3"},defaultClass:"fyvr1l0"},4:{conditions:{sm:"fyvr1l4",md:"fyvr1l5",lg:"fyvr1l6",xl:"fyvr1l7"},defaultClass:"fyvr1l4"},5:{conditions:{sm:"fyvr1l8",md:"fyvr1l9",lg:"fyvr1la",xl:"fyvr1lb"},defaultClass:"fyvr1l8"},6:{conditions:{sm:"fyvr1lc",md:"fyvr1ld",lg:"fyvr1le",xl:"fyvr1lf"},defaultClass:"fyvr1lc"},7:{conditions:{sm:"fyvr1lg",md:"fyvr1lh",lg:"fyvr1li",xl:"fyvr1lj"},defaultClass:"fyvr1lg"},8:{conditions:{sm:"fyvr1lk",md:"fyvr1ll",lg:"fyvr1lm",xl:"fyvr1ln"},defaultClass:"fyvr1lk"},9:{conditions:{sm:"fyvr1lo",md:"fyvr1lp",lg:"fyvr1lq",xl:"fyvr1lr"},defaultClass:"fyvr1lo"},10:{conditions:{sm:"fyvr1ls",md:"fyvr1lt",lg:"fyvr1lu",xl:"fyvr1lv"},defaultClass:"fyvr1ls"},12:{conditions:{sm:"fyvr1lw",md:"fyvr1lx",lg:"fyvr1ly",xl:"fyvr1lz"},defaultClass:"fyvr1lw"},14:{conditions:{sm:"fyvr1m0",md:"fyvr1m1",lg:"fyvr1m2",xl:"fyvr1m3"},defaultClass:"fyvr1m0"},16:{conditions:{sm:"fyvr1m4",md:"fyvr1m5",lg:"fyvr1m6",xl:"fyvr1m7"},defaultClass:"fyvr1m4"},"0.25":{conditions:{sm:"fyvr1m8",md:"fyvr1m9",lg:"fyvr1ma",xl:"fyvr1mb"},defaultClass:"fyvr1m8"},"0.5":{conditions:{sm:"fyvr1mc",md:"fyvr1md",lg:"fyvr1me",xl:"fyvr1mf"},defaultClass:"fyvr1mc"},"1.5":{conditions:{sm:"fyvr1mg",md:"fyvr1mh",lg:"fyvr1mi",xl:"fyvr1mj"},defaultClass:"fyvr1mg"},auto:{conditions:{sm:"fyvr1mk",md:"fyvr1ml",lg:"fyvr1mm",xl:"fyvr1mn"},defaultClass:"fyvr1mk"}}},bottom:{values:{0:{conditions:{sm:"fyvr1mo",md:"fyvr1mp",lg:"fyvr1mq",xl:"fyvr1mr"},defaultClass:"fyvr1mo"},1:{conditions:{sm:"fyvr1ms",md:"fyvr1mt",lg:"fyvr1mu",xl:"fyvr1mv"},defaultClass:"fyvr1ms"},2:{conditions:{sm:"fyvr1mw",md:"fyvr1mx",lg:"fyvr1my",xl:"fyvr1mz"},defaultClass:"fyvr1mw"},3:{conditions:{sm:"fyvr1n0",md:"fyvr1n1",lg:"fyvr1n2",xl:"fyvr1n3"},defaultClass:"fyvr1n0"},4:{conditions:{sm:"fyvr1n4",md:"fyvr1n5",lg:"fyvr1n6",xl:"fyvr1n7"},defaultClass:"fyvr1n4"},5:{conditions:{sm:"fyvr1n8",md:"fyvr1n9",lg:"fyvr1na",xl:"fyvr1nb"},defaultClass:"fyvr1n8"},6:{conditions:{sm:"fyvr1nc",md:"fyvr1nd",lg:"fyvr1ne",xl:"fyvr1nf"},defaultClass:"fyvr1nc"},7:{conditions:{sm:"fyvr1ng",md:"fyvr1nh",lg:"fyvr1ni",xl:"fyvr1nj"},defaultClass:"fyvr1ng"},8:{conditions:{sm:"fyvr1nk",md:"fyvr1nl",lg:"fyvr1nm",xl:"fyvr1nn"},defaultClass:"fyvr1nk"},9:{conditions:{sm:"fyvr1no",md:"fyvr1np",lg:"fyvr1nq",xl:"fyvr1nr"},defaultClass:"fyvr1no"},10:{conditions:{sm:"fyvr1ns",md:"fyvr1nt",lg:"fyvr1nu",xl:"fyvr1nv"},defaultClass:"fyvr1ns"},12:{conditions:{sm:"fyvr1nw",md:"fyvr1nx",lg:"fyvr1ny",xl:"fyvr1nz"},defaultClass:"fyvr1nw"},14:{conditions:{sm:"fyvr1o0",md:"fyvr1o1",lg:"fyvr1o2",xl:"fyvr1o3"},defaultClass:"fyvr1o0"},16:{conditions:{sm:"fyvr1o4",md:"fyvr1o5",lg:"fyvr1o6",xl:"fyvr1o7"},defaultClass:"fyvr1o4"},"0.25":{conditions:{sm:"fyvr1o8",md:"fyvr1o9",lg:"fyvr1oa",xl:"fyvr1ob"},defaultClass:"fyvr1o8"},"0.5":{conditions:{sm:"fyvr1oc",md:"fyvr1od",lg:"fyvr1oe",xl:"fyvr1of"},defaultClass:"fyvr1oc"},"1.5":{conditions:{sm:"fyvr1og",md:"fyvr1oh",lg:"fyvr1oi",xl:"fyvr1oj"},defaultClass:"fyvr1og"},auto:{conditions:{sm:"fyvr1ok",md:"fyvr1ol",lg:"fyvr1om",xl:"fyvr1on"},defaultClass:"fyvr1ok"}}},left:{values:{0:{conditions:{sm:"fyvr1oo",md:"fyvr1op",lg:"fyvr1oq",xl:"fyvr1or"},defaultClass:"fyvr1oo"},1:{conditions:{sm:"fyvr1os",md:"fyvr1ot",lg:"fyvr1ou",xl:"fyvr1ov"},defaultClass:"fyvr1os"},2:{conditions:{sm:"fyvr1ow",md:"fyvr1ox",lg:"fyvr1oy",xl:"fyvr1oz"},defaultClass:"fyvr1ow"},3:{conditions:{sm:"fyvr1p0",md:"fyvr1p1",lg:"fyvr1p2",xl:"fyvr1p3"},defaultClass:"fyvr1p0"},4:{conditions:{sm:"fyvr1p4",md:"fyvr1p5",lg:"fyvr1p6",xl:"fyvr1p7"},defaultClass:"fyvr1p4"},5:{conditions:{sm:"fyvr1p8",md:"fyvr1p9",lg:"fyvr1pa",xl:"fyvr1pb"},defaultClass:"fyvr1p8"},6:{conditions:{sm:"fyvr1pc",md:"fyvr1pd",lg:"fyvr1pe",xl:"fyvr1pf"},defaultClass:"fyvr1pc"},7:{conditions:{sm:"fyvr1pg",md:"fyvr1ph",lg:"fyvr1pi",xl:"fyvr1pj"},defaultClass:"fyvr1pg"},8:{conditions:{sm:"fyvr1pk",md:"fyvr1pl",lg:"fyvr1pm",xl:"fyvr1pn"},defaultClass:"fyvr1pk"},9:{conditions:{sm:"fyvr1po",md:"fyvr1pp",lg:"fyvr1pq",xl:"fyvr1pr"},defaultClass:"fyvr1po"},10:{conditions:{sm:"fyvr1ps",md:"fyvr1pt",lg:"fyvr1pu",xl:"fyvr1pv"},defaultClass:"fyvr1ps"},12:{conditions:{sm:"fyvr1pw",md:"fyvr1px",lg:"fyvr1py",xl:"fyvr1pz"},defaultClass:"fyvr1pw"},14:{conditions:{sm:"fyvr1q0",md:"fyvr1q1",lg:"fyvr1q2",xl:"fyvr1q3"},defaultClass:"fyvr1q0"},16:{conditions:{sm:"fyvr1q4",md:"fyvr1q5",lg:"fyvr1q6",xl:"fyvr1q7"},defaultClass:"fyvr1q4"},"0.25":{conditions:{sm:"fyvr1q8",md:"fyvr1q9",lg:"fyvr1qa",xl:"fyvr1qb"},defaultClass:"fyvr1q8"},"0.5":{conditions:{sm:"fyvr1qc",md:"fyvr1qd",lg:"fyvr1qe",xl:"fyvr1qf"},defaultClass:"fyvr1qc"},"1.5":{conditions:{sm:"fyvr1qg",md:"fyvr1qh",lg:"fyvr1qi",xl:"fyvr1qj"},defaultClass:"fyvr1qg"},auto:{conditions:{sm:"fyvr1qk",md:"fyvr1ql",lg:"fyvr1qm",xl:"fyvr1qn"},defaultClass:"fyvr1qk"}}},right:{values:{0:{conditions:{sm:"fyvr1qo",md:"fyvr1qp",lg:"fyvr1qq",xl:"fyvr1qr"},defaultClass:"fyvr1qo"},1:{conditions:{sm:"fyvr1qs",md:"fyvr1qt",lg:"fyvr1qu",xl:"fyvr1qv"},defaultClass:"fyvr1qs"},2:{conditions:{sm:"fyvr1qw",md:"fyvr1qx",lg:"fyvr1qy",xl:"fyvr1qz"},defaultClass:"fyvr1qw"},3:{conditions:{sm:"fyvr1r0",md:"fyvr1r1",lg:"fyvr1r2",xl:"fyvr1r3"},defaultClass:"fyvr1r0"},4:{conditions:{sm:"fyvr1r4",md:"fyvr1r5",lg:"fyvr1r6",xl:"fyvr1r7"},defaultClass:"fyvr1r4"},5:{conditions:{sm:"fyvr1r8",md:"fyvr1r9",lg:"fyvr1ra",xl:"fyvr1rb"},defaultClass:"fyvr1r8"},6:{conditions:{sm:"fyvr1rc",md:"fyvr1rd",lg:"fyvr1re",xl:"fyvr1rf"},defaultClass:"fyvr1rc"},7:{conditions:{sm:"fyvr1rg",md:"fyvr1rh",lg:"fyvr1ri",xl:"fyvr1rj"},defaultClass:"fyvr1rg"},8:{conditions:{sm:"fyvr1rk",md:"fyvr1rl",lg:"fyvr1rm",xl:"fyvr1rn"},defaultClass:"fyvr1rk"},9:{conditions:{sm:"fyvr1ro",md:"fyvr1rp",lg:"fyvr1rq",xl:"fyvr1rr"},defaultClass:"fyvr1ro"},10:{conditions:{sm:"fyvr1rs",md:"fyvr1rt",lg:"fyvr1ru",xl:"fyvr1rv"},defaultClass:"fyvr1rs"},12:{conditions:{sm:"fyvr1rw",md:"fyvr1rx",lg:"fyvr1ry",xl:"fyvr1rz"},defaultClass:"fyvr1rw"},14:{conditions:{sm:"fyvr1s0",md:"fyvr1s1",lg:"fyvr1s2",xl:"fyvr1s3"},defaultClass:"fyvr1s0"},16:{conditions:{sm:"fyvr1s4",md:"fyvr1s5",lg:"fyvr1s6",xl:"fyvr1s7"},defaultClass:"fyvr1s4"},"0.25":{conditions:{sm:"fyvr1s8",md:"fyvr1s9",lg:"fyvr1sa",xl:"fyvr1sb"},defaultClass:"fyvr1s8"},"0.5":{conditions:{sm:"fyvr1sc",md:"fyvr1sd",lg:"fyvr1se",xl:"fyvr1sf"},defaultClass:"fyvr1sc"},"1.5":{conditions:{sm:"fyvr1sg",md:"fyvr1sh",lg:"fyvr1si",xl:"fyvr1sj"},defaultClass:"fyvr1sg"},auto:{conditions:{sm:"fyvr1sk",md:"fyvr1sl",lg:"fyvr1sm",xl:"fyvr1sn"},defaultClass:"fyvr1sk"}}},paddingTop:{values:{0:{conditions:{sm:"fyvr1so",md:"fyvr1sp",lg:"fyvr1sq",xl:"fyvr1sr"},defaultClass:"fyvr1so"},1:{conditions:{sm:"fyvr1ss",md:"fyvr1st",lg:"fyvr1su",xl:"fyvr1sv"},defaultClass:"fyvr1ss"},2:{conditions:{sm:"fyvr1sw",md:"fyvr1sx",lg:"fyvr1sy",xl:"fyvr1sz"},defaultClass:"fyvr1sw"},3:{conditions:{sm:"fyvr1t0",md:"fyvr1t1",lg:"fyvr1t2",xl:"fyvr1t3"},defaultClass:"fyvr1t0"},4:{conditions:{sm:"fyvr1t4",md:"fyvr1t5",lg:"fyvr1t6",xl:"fyvr1t7"},defaultClass:"fyvr1t4"},5:{conditions:{sm:"fyvr1t8",md:"fyvr1t9",lg:"fyvr1ta",xl:"fyvr1tb"},defaultClass:"fyvr1t8"},6:{conditions:{sm:"fyvr1tc",md:"fyvr1td",lg:"fyvr1te",xl:"fyvr1tf"},defaultClass:"fyvr1tc"},7:{conditions:{sm:"fyvr1tg",md:"fyvr1th",lg:"fyvr1ti",xl:"fyvr1tj"},defaultClass:"fyvr1tg"},8:{conditions:{sm:"fyvr1tk",md:"fyvr1tl",lg:"fyvr1tm",xl:"fyvr1tn"},defaultClass:"fyvr1tk"},9:{conditions:{sm:"fyvr1to",md:"fyvr1tp",lg:"fyvr1tq",xl:"fyvr1tr"},defaultClass:"fyvr1to"},10:{conditions:{sm:"fyvr1ts",md:"fyvr1tt",lg:"fyvr1tu",xl:"fyvr1tv"},defaultClass:"fyvr1ts"},12:{conditions:{sm:"fyvr1tw",md:"fyvr1tx",lg:"fyvr1ty",xl:"fyvr1tz"},defaultClass:"fyvr1tw"},14:{conditions:{sm:"fyvr1u0",md:"fyvr1u1",lg:"fyvr1u2",xl:"fyvr1u3"},defaultClass:"fyvr1u0"},16:{conditions:{sm:"fyvr1u4",md:"fyvr1u5",lg:"fyvr1u6",xl:"fyvr1u7"},defaultClass:"fyvr1u4"},"0.25":{conditions:{sm:"fyvr1u8",md:"fyvr1u9",lg:"fyvr1ua",xl:"fyvr1ub"},defaultClass:"fyvr1u8"},"0.5":{conditions:{sm:"fyvr1uc",md:"fyvr1ud",lg:"fyvr1ue",xl:"fyvr1uf"},defaultClass:"fyvr1uc"},"1.5":{conditions:{sm:"fyvr1ug",md:"fyvr1uh",lg:"fyvr1ui",xl:"fyvr1uj"},defaultClass:"fyvr1ug"}}},paddingBottom:{values:{0:{conditions:{sm:"fyvr1uk",md:"fyvr1ul",lg:"fyvr1um",xl:"fyvr1un"},defaultClass:"fyvr1uk"},1:{conditions:{sm:"fyvr1uo",md:"fyvr1up",lg:"fyvr1uq",xl:"fyvr1ur"},defaultClass:"fyvr1uo"},2:{conditions:{sm:"fyvr1us",md:"fyvr1ut",lg:"fyvr1uu",xl:"fyvr1uv"},defaultClass:"fyvr1us"},3:{conditions:{sm:"fyvr1uw",md:"fyvr1ux",lg:"fyvr1uy",xl:"fyvr1uz"},defaultClass:"fyvr1uw"},4:{conditions:{sm:"fyvr1v0",md:"fyvr1v1",lg:"fyvr1v2",xl:"fyvr1v3"},defaultClass:"fyvr1v0"},5:{conditions:{sm:"fyvr1v4",md:"fyvr1v5",lg:"fyvr1v6",xl:"fyvr1v7"},defaultClass:"fyvr1v4"},6:{conditions:{sm:"fyvr1v8",md:"fyvr1v9",lg:"fyvr1va",xl:"fyvr1vb"},defaultClass:"fyvr1v8"},7:{conditions:{sm:"fyvr1vc",md:"fyvr1vd",lg:"fyvr1ve",xl:"fyvr1vf"},defaultClass:"fyvr1vc"},8:{conditions:{sm:"fyvr1vg",md:"fyvr1vh",lg:"fyvr1vi",xl:"fyvr1vj"},defaultClass:"fyvr1vg"},9:{conditions:{sm:"fyvr1vk",md:"fyvr1vl",lg:"fyvr1vm",xl:"fyvr1vn"},defaultClass:"fyvr1vk"},10:{conditions:{sm:"fyvr1vo",md:"fyvr1vp",lg:"fyvr1vq",xl:"fyvr1vr"},defaultClass:"fyvr1vo"},12:{conditions:{sm:"fyvr1vs",md:"fyvr1vt",lg:"fyvr1vu",xl:"fyvr1vv"},defaultClass:"fyvr1vs"},14:{conditions:{sm:"fyvr1vw",md:"fyvr1vx",lg:"fyvr1vy",xl:"fyvr1vz"},defaultClass:"fyvr1vw"},16:{conditions:{sm:"fyvr1w0",md:"fyvr1w1",lg:"fyvr1w2",xl:"fyvr1w3"},defaultClass:"fyvr1w0"},"0.25":{conditions:{sm:"fyvr1w4",md:"fyvr1w5",lg:"fyvr1w6",xl:"fyvr1w7"},defaultClass:"fyvr1w4"},"0.5":{conditions:{sm:"fyvr1w8",md:"fyvr1w9",lg:"fyvr1wa",xl:"fyvr1wb"},defaultClass:"fyvr1w8"},"1.5":{conditions:{sm:"fyvr1wc",md:"fyvr1wd",lg:"fyvr1we",xl:"fyvr1wf"},defaultClass:"fyvr1wc"}}},paddingLeft:{values:{0:{conditions:{sm:"fyvr1wg",md:"fyvr1wh",lg:"fyvr1wi",xl:"fyvr1wj"},defaultClass:"fyvr1wg"},1:{conditions:{sm:"fyvr1wk",md:"fyvr1wl",lg:"fyvr1wm",xl:"fyvr1wn"},defaultClass:"fyvr1wk"},2:{conditions:{sm:"fyvr1wo",md:"fyvr1wp",lg:"fyvr1wq",xl:"fyvr1wr"},defaultClass:"fyvr1wo"},3:{conditions:{sm:"fyvr1ws",md:"fyvr1wt",lg:"fyvr1wu",xl:"fyvr1wv"},defaultClass:"fyvr1ws"},4:{conditions:{sm:"fyvr1ww",md:"fyvr1wx",lg:"fyvr1wy",xl:"fyvr1wz"},defaultClass:"fyvr1ww"},5:{conditions:{sm:"fyvr1x0",md:"fyvr1x1",lg:"fyvr1x2",xl:"fyvr1x3"},defaultClass:"fyvr1x0"},6:{conditions:{sm:"fyvr1x4",md:"fyvr1x5",lg:"fyvr1x6",xl:"fyvr1x7"},defaultClass:"fyvr1x4"},7:{conditions:{sm:"fyvr1x8",md:"fyvr1x9",lg:"fyvr1xa",xl:"fyvr1xb"},defaultClass:"fyvr1x8"},8:{conditions:{sm:"fyvr1xc",md:"fyvr1xd",lg:"fyvr1xe",xl:"fyvr1xf"},defaultClass:"fyvr1xc"},9:{conditions:{sm:"fyvr1xg",md:"fyvr1xh",lg:"fyvr1xi",xl:"fyvr1xj"},defaultClass:"fyvr1xg"},10:{conditions:{sm:"fyvr1xk",md:"fyvr1xl",lg:"fyvr1xm",xl:"fyvr1xn"},defaultClass:"fyvr1xk"},12:{conditions:{sm:"fyvr1xo",md:"fyvr1xp",lg:"fyvr1xq",xl:"fyvr1xr"},defaultClass:"fyvr1xo"},14:{conditions:{sm:"fyvr1xs",md:"fyvr1xt",lg:"fyvr1xu",xl:"fyvr1xv"},defaultClass:"fyvr1xs"},16:{conditions:{sm:"fyvr1xw",md:"fyvr1xx",lg:"fyvr1xy",xl:"fyvr1xz"},defaultClass:"fyvr1xw"},"0.25":{conditions:{sm:"fyvr1y0",md:"fyvr1y1",lg:"fyvr1y2",xl:"fyvr1y3"},defaultClass:"fyvr1y0"},"0.5":{conditions:{sm:"fyvr1y4",md:"fyvr1y5",lg:"fyvr1y6",xl:"fyvr1y7"},defaultClass:"fyvr1y4"},"1.5":{conditions:{sm:"fyvr1y8",md:"fyvr1y9",lg:"fyvr1ya",xl:"fyvr1yb"},defaultClass:"fyvr1y8"}}},paddingRight:{values:{0:{conditions:{sm:"fyvr1yc",md:"fyvr1yd",lg:"fyvr1ye",xl:"fyvr1yf"},defaultClass:"fyvr1yc"},1:{conditions:{sm:"fyvr1yg",md:"fyvr1yh",lg:"fyvr1yi",xl:"fyvr1yj"},defaultClass:"fyvr1yg"},2:{conditions:{sm:"fyvr1yk",md:"fyvr1yl",lg:"fyvr1ym",xl:"fyvr1yn"},defaultClass:"fyvr1yk"},3:{conditions:{sm:"fyvr1yo",md:"fyvr1yp",lg:"fyvr1yq",xl:"fyvr1yr"},defaultClass:"fyvr1yo"},4:{conditions:{sm:"fyvr1ys",md:"fyvr1yt",lg:"fyvr1yu",xl:"fyvr1yv"},defaultClass:"fyvr1ys"},5:{conditions:{sm:"fyvr1yw",md:"fyvr1yx",lg:"fyvr1yy",xl:"fyvr1yz"},defaultClass:"fyvr1yw"},6:{conditions:{sm:"fyvr1z0",md:"fyvr1z1",lg:"fyvr1z2",xl:"fyvr1z3"},defaultClass:"fyvr1z0"},7:{conditions:{sm:"fyvr1z4",md:"fyvr1z5",lg:"fyvr1z6",xl:"fyvr1z7"},defaultClass:"fyvr1z4"},8:{conditions:{sm:"fyvr1z8",md:"fyvr1z9",lg:"fyvr1za",xl:"fyvr1zb"},defaultClass:"fyvr1z8"},9:{conditions:{sm:"fyvr1zc",md:"fyvr1zd",lg:"fyvr1ze",xl:"fyvr1zf"},defaultClass:"fyvr1zc"},10:{conditions:{sm:"fyvr1zg",md:"fyvr1zh",lg:"fyvr1zi",xl:"fyvr1zj"},defaultClass:"fyvr1zg"},12:{conditions:{sm:"fyvr1zk",md:"fyvr1zl",lg:"fyvr1zm",xl:"fyvr1zn"},defaultClass:"fyvr1zk"},14:{conditions:{sm:"fyvr1zo",md:"fyvr1zp",lg:"fyvr1zq",xl:"fyvr1zr"},defaultClass:"fyvr1zo"},16:{conditions:{sm:"fyvr1zs",md:"fyvr1zt",lg:"fyvr1zu",xl:"fyvr1zv"},defaultClass:"fyvr1zs"},"0.25":{conditions:{sm:"fyvr1zw",md:"fyvr1zx",lg:"fyvr1zy",xl:"fyvr1zz"},defaultClass:"fyvr1zw"},"0.5":{conditions:{sm:"fyvr1100",md:"fyvr1101",lg:"fyvr1102",xl:"fyvr1103"},defaultClass:"fyvr1100"},"1.5":{conditions:{sm:"fyvr1104",md:"fyvr1105",lg:"fyvr1106",xl:"fyvr1107"},defaultClass:"fyvr1104"}}},marginTop:{values:{0:{conditions:{sm:"fyvr1108",md:"fyvr1109",lg:"fyvr110a",xl:"fyvr110b"},defaultClass:"fyvr1108"},1:{conditions:{sm:"fyvr110c",md:"fyvr110d",lg:"fyvr110e",xl:"fyvr110f"},defaultClass:"fyvr110c"},2:{conditions:{sm:"fyvr110g",md:"fyvr110h",lg:"fyvr110i",xl:"fyvr110j"},defaultClass:"fyvr110g"},3:{conditions:{sm:"fyvr110k",md:"fyvr110l",lg:"fyvr110m",xl:"fyvr110n"},defaultClass:"fyvr110k"},4:{conditions:{sm:"fyvr110o",md:"fyvr110p",lg:"fyvr110q",xl:"fyvr110r"},defaultClass:"fyvr110o"},5:{conditions:{sm:"fyvr110s",md:"fyvr110t",lg:"fyvr110u",xl:"fyvr110v"},defaultClass:"fyvr110s"},6:{conditions:{sm:"fyvr110w",md:"fyvr110x",lg:"fyvr110y",xl:"fyvr110z"},defaultClass:"fyvr110w"},7:{conditions:{sm:"fyvr1110",md:"fyvr1111",lg:"fyvr1112",xl:"fyvr1113"},defaultClass:"fyvr1110"},8:{conditions:{sm:"fyvr1114",md:"fyvr1115",lg:"fyvr1116",xl:"fyvr1117"},defaultClass:"fyvr1114"},9:{conditions:{sm:"fyvr1118",md:"fyvr1119",lg:"fyvr111a",xl:"fyvr111b"},defaultClass:"fyvr1118"},10:{conditions:{sm:"fyvr111c",md:"fyvr111d",lg:"fyvr111e",xl:"fyvr111f"},defaultClass:"fyvr111c"},12:{conditions:{sm:"fyvr111g",md:"fyvr111h",lg:"fyvr111i",xl:"fyvr111j"},defaultClass:"fyvr111g"},14:{conditions:{sm:"fyvr111k",md:"fyvr111l",lg:"fyvr111m",xl:"fyvr111n"},defaultClass:"fyvr111k"},16:{conditions:{sm:"fyvr111o",md:"fyvr111p",lg:"fyvr111q",xl:"fyvr111r"},defaultClass:"fyvr111o"},"0.25":{conditions:{sm:"fyvr111s",md:"fyvr111t",lg:"fyvr111u",xl:"fyvr111v"},defaultClass:"fyvr111s"},"0.5":{conditions:{sm:"fyvr111w",md:"fyvr111x",lg:"fyvr111y",xl:"fyvr111z"},defaultClass:"fyvr111w"},"1.5":{conditions:{sm:"fyvr1120",md:"fyvr1121",lg:"fyvr1122",xl:"fyvr1123"},defaultClass:"fyvr1120"},auto:{conditions:{sm:"fyvr1124",md:"fyvr1125",lg:"fyvr1126",xl:"fyvr1127"},defaultClass:"fyvr1124"}}},marginBottom:{values:{0:{conditions:{sm:"fyvr1128",md:"fyvr1129",lg:"fyvr112a",xl:"fyvr112b"},defaultClass:"fyvr1128"},1:{conditions:{sm:"fyvr112c",md:"fyvr112d",lg:"fyvr112e",xl:"fyvr112f"},defaultClass:"fyvr112c"},2:{conditions:{sm:"fyvr112g",md:"fyvr112h",lg:"fyvr112i",xl:"fyvr112j"},defaultClass:"fyvr112g"},3:{conditions:{sm:"fyvr112k",md:"fyvr112l",lg:"fyvr112m",xl:"fyvr112n"},defaultClass:"fyvr112k"},4:{conditions:{sm:"fyvr112o",md:"fyvr112p",lg:"fyvr112q",xl:"fyvr112r"},defaultClass:"fyvr112o"},5:{conditions:{sm:"fyvr112s",md:"fyvr112t",lg:"fyvr112u",xl:"fyvr112v"},defaultClass:"fyvr112s"},6:{conditions:{sm:"fyvr112w",md:"fyvr112x",lg:"fyvr112y",xl:"fyvr112z"},defaultClass:"fyvr112w"},7:{conditions:{sm:"fyvr1130",md:"fyvr1131",lg:"fyvr1132",xl:"fyvr1133"},defaultClass:"fyvr1130"},8:{conditions:{sm:"fyvr1134",md:"fyvr1135",lg:"fyvr1136",xl:"fyvr1137"},defaultClass:"fyvr1134"},9:{conditions:{sm:"fyvr1138",md:"fyvr1139",lg:"fyvr113a",xl:"fyvr113b"},defaultClass:"fyvr1138"},10:{conditions:{sm:"fyvr113c",md:"fyvr113d",lg:"fyvr113e",xl:"fyvr113f"},defaultClass:"fyvr113c"},12:{conditions:{sm:"fyvr113g",md:"fyvr113h",lg:"fyvr113i",xl:"fyvr113j"},defaultClass:"fyvr113g"},14:{conditions:{sm:"fyvr113k",md:"fyvr113l",lg:"fyvr113m",xl:"fyvr113n"},defaultClass:"fyvr113k"},16:{conditions:{sm:"fyvr113o",md:"fyvr113p",lg:"fyvr113q",xl:"fyvr113r"},defaultClass:"fyvr113o"},"0.25":{conditions:{sm:"fyvr113s",md:"fyvr113t",lg:"fyvr113u",xl:"fyvr113v"},defaultClass:"fyvr113s"},"0.5":{conditions:{sm:"fyvr113w",md:"fyvr113x",lg:"fyvr113y",xl:"fyvr113z"},defaultClass:"fyvr113w"},"1.5":{conditions:{sm:"fyvr1140",md:"fyvr1141",lg:"fyvr1142",xl:"fyvr1143"},defaultClass:"fyvr1140"},auto:{conditions:{sm:"fyvr1144",md:"fyvr1145",lg:"fyvr1146",xl:"fyvr1147"},defaultClass:"fyvr1144"}}},marginLeft:{values:{0:{conditions:{sm:"fyvr1148",md:"fyvr1149",lg:"fyvr114a",xl:"fyvr114b"},defaultClass:"fyvr1148"},1:{conditions:{sm:"fyvr114c",md:"fyvr114d",lg:"fyvr114e",xl:"fyvr114f"},defaultClass:"fyvr114c"},2:{conditions:{sm:"fyvr114g",md:"fyvr114h",lg:"fyvr114i",xl:"fyvr114j"},defaultClass:"fyvr114g"},3:{conditions:{sm:"fyvr114k",md:"fyvr114l",lg:"fyvr114m",xl:"fyvr114n"},defaultClass:"fyvr114k"},4:{conditions:{sm:"fyvr114o",md:"fyvr114p",lg:"fyvr114q",xl:"fyvr114r"},defaultClass:"fyvr114o"},5:{conditions:{sm:"fyvr114s",md:"fyvr114t",lg:"fyvr114u",xl:"fyvr114v"},defaultClass:"fyvr114s"},6:{conditions:{sm:"fyvr114w",md:"fyvr114x",lg:"fyvr114y",xl:"fyvr114z"},defaultClass:"fyvr114w"},7:{conditions:{sm:"fyvr1150",md:"fyvr1151",lg:"fyvr1152",xl:"fyvr1153"},defaultClass:"fyvr1150"},8:{conditions:{sm:"fyvr1154",md:"fyvr1155",lg:"fyvr1156",xl:"fyvr1157"},defaultClass:"fyvr1154"},9:{conditions:{sm:"fyvr1158",md:"fyvr1159",lg:"fyvr115a",xl:"fyvr115b"},defaultClass:"fyvr1158"},10:{conditions:{sm:"fyvr115c",md:"fyvr115d",lg:"fyvr115e",xl:"fyvr115f"},defaultClass:"fyvr115c"},12:{conditions:{sm:"fyvr115g",md:"fyvr115h",lg:"fyvr115i",xl:"fyvr115j"},defaultClass:"fyvr115g"},14:{conditions:{sm:"fyvr115k",md:"fyvr115l",lg:"fyvr115m",xl:"fyvr115n"},defaultClass:"fyvr115k"},16:{conditions:{sm:"fyvr115o",md:"fyvr115p",lg:"fyvr115q",xl:"fyvr115r"},defaultClass:"fyvr115o"},"0.25":{conditions:{sm:"fyvr115s",md:"fyvr115t",lg:"fyvr115u",xl:"fyvr115v"},defaultClass:"fyvr115s"},"0.5":{conditions:{sm:"fyvr115w",md:"fyvr115x",lg:"fyvr115y",xl:"fyvr115z"},defaultClass:"fyvr115w"},"1.5":{conditions:{sm:"fyvr1160",md:"fyvr1161",lg:"fyvr1162",xl:"fyvr1163"},defaultClass:"fyvr1160"},auto:{conditions:{sm:"fyvr1164",md:"fyvr1165",lg:"fyvr1166",xl:"fyvr1167"},defaultClass:"fyvr1164"}}},marginRight:{values:{0:{conditions:{sm:"fyvr1168",md:"fyvr1169",lg:"fyvr116a",xl:"fyvr116b"},defaultClass:"fyvr1168"},1:{conditions:{sm:"fyvr116c",md:"fyvr116d",lg:"fyvr116e",xl:"fyvr116f"},defaultClass:"fyvr116c"},2:{conditions:{sm:"fyvr116g",md:"fyvr116h",lg:"fyvr116i",xl:"fyvr116j"},defaultClass:"fyvr116g"},3:{conditions:{sm:"fyvr116k",md:"fyvr116l",lg:"fyvr116m",xl:"fyvr116n"},defaultClass:"fyvr116k"},4:{conditions:{sm:"fyvr116o",md:"fyvr116p",lg:"fyvr116q",xl:"fyvr116r"},defaultClass:"fyvr116o"},5:{conditions:{sm:"fyvr116s",md:"fyvr116t",lg:"fyvr116u",xl:"fyvr116v"},defaultClass:"fyvr116s"},6:{conditions:{sm:"fyvr116w",md:"fyvr116x",lg:"fyvr116y",xl:"fyvr116z"},defaultClass:"fyvr116w"},7:{conditions:{sm:"fyvr1170",md:"fyvr1171",lg:"fyvr1172",xl:"fyvr1173"},defaultClass:"fyvr1170"},8:{conditions:{sm:"fyvr1174",md:"fyvr1175",lg:"fyvr1176",xl:"fyvr1177"},defaultClass:"fyvr1174"},9:{conditions:{sm:"fyvr1178",md:"fyvr1179",lg:"fyvr117a",xl:"fyvr117b"},defaultClass:"fyvr1178"},10:{conditions:{sm:"fyvr117c",md:"fyvr117d",lg:"fyvr117e",xl:"fyvr117f"},defaultClass:"fyvr117c"},12:{conditions:{sm:"fyvr117g",md:"fyvr117h",lg:"fyvr117i",xl:"fyvr117j"},defaultClass:"fyvr117g"},14:{conditions:{sm:"fyvr117k",md:"fyvr117l",lg:"fyvr117m",xl:"fyvr117n"},defaultClass:"fyvr117k"},16:{conditions:{sm:"fyvr117o",md:"fyvr117p",lg:"fyvr117q",xl:"fyvr117r"},defaultClass:"fyvr117o"},"0.25":{conditions:{sm:"fyvr117s",md:"fyvr117t",lg:"fyvr117u",xl:"fyvr117v"},defaultClass:"fyvr117s"},"0.5":{conditions:{sm:"fyvr117w",md:"fyvr117x",lg:"fyvr117y",xl:"fyvr117z"},defaultClass:"fyvr117w"},"1.5":{conditions:{sm:"fyvr1180",md:"fyvr1181",lg:"fyvr1182",xl:"fyvr1183"},defaultClass:"fyvr1180"},auto:{conditions:{sm:"fyvr1184",md:"fyvr1185",lg:"fyvr1186",xl:"fyvr1187"},defaultClass:"fyvr1184"}}},gap:{values:{0:{conditions:{sm:"fyvr1188",md:"fyvr1189",lg:"fyvr118a",xl:"fyvr118b"},defaultClass:"fyvr1188"},1:{conditions:{sm:"fyvr118c",md:"fyvr118d",lg:"fyvr118e",xl:"fyvr118f"},defaultClass:"fyvr118c"},2:{conditions:{sm:"fyvr118g",md:"fyvr118h",lg:"fyvr118i",xl:"fyvr118j"},defaultClass:"fyvr118g"},3:{conditions:{sm:"fyvr118k",md:"fyvr118l",lg:"fyvr118m",xl:"fyvr118n"},defaultClass:"fyvr118k"},4:{conditions:{sm:"fyvr118o",md:"fyvr118p",lg:"fyvr118q",xl:"fyvr118r"},defaultClass:"fyvr118o"},5:{conditions:{sm:"fyvr118s",md:"fyvr118t",lg:"fyvr118u",xl:"fyvr118v"},defaultClass:"fyvr118s"},6:{conditions:{sm:"fyvr118w",md:"fyvr118x",lg:"fyvr118y",xl:"fyvr118z"},defaultClass:"fyvr118w"},7:{conditions:{sm:"fyvr1190",md:"fyvr1191",lg:"fyvr1192",xl:"fyvr1193"},defaultClass:"fyvr1190"},8:{conditions:{sm:"fyvr1194",md:"fyvr1195",lg:"fyvr1196",xl:"fyvr1197"},defaultClass:"fyvr1194"},9:{conditions:{sm:"fyvr1198",md:"fyvr1199",lg:"fyvr119a",xl:"fyvr119b"},defaultClass:"fyvr1198"},10:{conditions:{sm:"fyvr119c",md:"fyvr119d",lg:"fyvr119e",xl:"fyvr119f"},defaultClass:"fyvr119c"},12:{conditions:{sm:"fyvr119g",md:"fyvr119h",lg:"fyvr119i",xl:"fyvr119j"},defaultClass:"fyvr119g"},14:{conditions:{sm:"fyvr119k",md:"fyvr119l",lg:"fyvr119m",xl:"fyvr119n"},defaultClass:"fyvr119k"},16:{conditions:{sm:"fyvr119o",md:"fyvr119p",lg:"fyvr119q",xl:"fyvr119r"},defaultClass:"fyvr119o"},"0.25":{conditions:{sm:"fyvr119s",md:"fyvr119t",lg:"fyvr119u",xl:"fyvr119v"},defaultClass:"fyvr119s"},"0.5":{conditions:{sm:"fyvr119w",md:"fyvr119x",lg:"fyvr119y",xl:"fyvr119z"},defaultClass:"fyvr119w"},"1.5":{conditions:{sm:"fyvr11a0",md:"fyvr11a1",lg:"fyvr11a2",xl:"fyvr11a3"},defaultClass:"fyvr11a0"}}},borderBottomWidth:{values:{none:{conditions:{sm:"fyvr11a4",md:"fyvr11a5",lg:"fyvr11a6",xl:"fyvr11a7"},defaultClass:"fyvr11a4"},thin:{conditions:{sm:"fyvr11a8",md:"fyvr11a9",lg:"fyvr11aa",xl:"fyvr11ab"},defaultClass:"fyvr11a8"},thick:{conditions:{sm:"fyvr11ac",md:"fyvr11ad",lg:"fyvr11ae",xl:"fyvr11af"},defaultClass:"fyvr11ac"}}},borderLeftWidth:{values:{none:{conditions:{sm:"fyvr11ag",md:"fyvr11ah",lg:"fyvr11ai",xl:"fyvr11aj"},defaultClass:"fyvr11ag"},thin:{conditions:{sm:"fyvr11ak",md:"fyvr11al",lg:"fyvr11am",xl:"fyvr11an"},defaultClass:"fyvr11ak"},thick:{conditions:{sm:"fyvr11ao",md:"fyvr11ap",lg:"fyvr11aq",xl:"fyvr11ar"},defaultClass:"fyvr11ao"}}},borderRightWidth:{values:{none:{conditions:{sm:"fyvr11as",md:"fyvr11at",lg:"fyvr11au",xl:"fyvr11av"},defaultClass:"fyvr11as"},thin:{conditions:{sm:"fyvr11aw",md:"fyvr11ax",lg:"fyvr11ay",xl:"fyvr11az"},defaultClass:"fyvr11aw"},thick:{conditions:{sm:"fyvr11b0",md:"fyvr11b1",lg:"fyvr11b2",xl:"fyvr11b3"},defaultClass:"fyvr11b0"}}},borderTopWidth:{values:{none:{conditions:{sm:"fyvr11b4",md:"fyvr11b5",lg:"fyvr11b6",xl:"fyvr11b7"},defaultClass:"fyvr11b4"},thin:{conditions:{sm:"fyvr11b8",md:"fyvr11b9",lg:"fyvr11ba",xl:"fyvr11bb"},defaultClass:"fyvr11b8"},thick:{conditions:{sm:"fyvr11bc",md:"fyvr11bd",lg:"fyvr11be",xl:"fyvr11bf"},defaultClass:"fyvr11bc"}}},borderBottomLeftRadius:{values:{none:{conditions:{sm:"fyvr11bg",md:"fyvr11bh",lg:"fyvr11bi",xl:"fyvr11bj"},defaultClass:"fyvr11bg"},xs:{conditions:{sm:"fyvr11bk",md:"fyvr11bl",lg:"fyvr11bm",xl:"fyvr11bn"},defaultClass:"fyvr11bk"},sm:{conditions:{sm:"fyvr11bo",md:"fyvr11bp",lg:"fyvr11bq",xl:"fyvr11br"},defaultClass:"fyvr11bo"},md:{conditions:{sm:"fyvr11bs",md:"fyvr11bt",lg:"fyvr11bu",xl:"fyvr11bv"},defaultClass:"fyvr11bs"},lg:{conditions:{sm:"fyvr11bw",md:"fyvr11bx",lg:"fyvr11by",xl:"fyvr11bz"},defaultClass:"fyvr11bw"},circle:{conditions:{sm:"fyvr11c0",md:"fyvr11c1",lg:"fyvr11c2",xl:"fyvr11c3"},defaultClass:"fyvr11c0"}}},borderBottomRightRadius:{values:{none:{conditions:{sm:"fyvr11c4",md:"fyvr11c5",lg:"fyvr11c6",xl:"fyvr11c7"},defaultClass:"fyvr11c4"},xs:{conditions:{sm:"fyvr11c8",md:"fyvr11c9",lg:"fyvr11ca",xl:"fyvr11cb"},defaultClass:"fyvr11c8"},sm:{conditions:{sm:"fyvr11cc",md:"fyvr11cd",lg:"fyvr11ce",xl:"fyvr11cf"},defaultClass:"fyvr11cc"},md:{conditions:{sm:"fyvr11cg",md:"fyvr11ch",lg:"fyvr11ci",xl:"fyvr11cj"},defaultClass:"fyvr11cg"},lg:{conditions:{sm:"fyvr11ck",md:"fyvr11cl",lg:"fyvr11cm",xl:"fyvr11cn"},defaultClass:"fyvr11ck"},circle:{conditions:{sm:"fyvr11co",md:"fyvr11cp",lg:"fyvr11cq",xl:"fyvr11cr"},defaultClass:"fyvr11co"}}},borderTopLeftRadius:{values:{none:{conditions:{sm:"fyvr11cs",md:"fyvr11ct",lg:"fyvr11cu",xl:"fyvr11cv"},defaultClass:"fyvr11cs"},xs:{conditions:{sm:"fyvr11cw",md:"fyvr11cx",lg:"fyvr11cy",xl:"fyvr11cz"},defaultClass:"fyvr11cw"},sm:{conditions:{sm:"fyvr11d0",md:"fyvr11d1",lg:"fyvr11d2",xl:"fyvr11d3"},defaultClass:"fyvr11d0"},md:{conditions:{sm:"fyvr11d4",md:"fyvr11d5",lg:"fyvr11d6",xl:"fyvr11d7"},defaultClass:"fyvr11d4"},lg:{conditions:{sm:"fyvr11d8",md:"fyvr11d9",lg:"fyvr11da",xl:"fyvr11db"},defaultClass:"fyvr11d8"},circle:{conditions:{sm:"fyvr11dc",md:"fyvr11dd",lg:"fyvr11de",xl:"fyvr11df"},defaultClass:"fyvr11dc"}}},borderTopRightRadius:{values:{none:{conditions:{sm:"fyvr11dg",md:"fyvr11dh",lg:"fyvr11di",xl:"fyvr11dj"},defaultClass:"fyvr11dg"},xs:{conditions:{sm:"fyvr11dk",md:"fyvr11dl",lg:"fyvr11dm",xl:"fyvr11dn"},defaultClass:"fyvr11dk"},sm:{conditions:{sm:"fyvr11do",md:"fyvr11dp",lg:"fyvr11dq",xl:"fyvr11dr"},defaultClass:"fyvr11do"},md:{conditions:{sm:"fyvr11ds",md:"fyvr11dt",lg:"fyvr11du",xl:"fyvr11dv"},defaultClass:"fyvr11ds"},lg:{conditions:{sm:"fyvr11dw",md:"fyvr11dx",lg:"fyvr11dy",xl:"fyvr11dz"},defaultClass:"fyvr11dw"},circle:{conditions:{sm:"fyvr11e0",md:"fyvr11e1",lg:"fyvr11e2",xl:"fyvr11e3"},defaultClass:"fyvr11e0"}}},fontSize:{values:{inherit:{conditions:{sm:"fyvr11e4",md:"fyvr11e5",lg:"fyvr11e6",xl:"fyvr11e7"},defaultClass:"fyvr11e4"},xsmall:{conditions:{sm:"fyvr11e8",md:"fyvr11e9",lg:"fyvr11ea",xl:"fyvr11eb"},defaultClass:"fyvr11e8"},small:{conditions:{sm:"fyvr11ec",md:"fyvr11ed",lg:"fyvr11ee",xl:"fyvr11ef"},defaultClass:"fyvr11ec"},normal:{conditions:{sm:"fyvr11eg",md:"fyvr11eh",lg:"fyvr11ei",xl:"fyvr11ej"},defaultClass:"fyvr11eg"},medium:{conditions:{sm:"fyvr11ek",md:"fyvr11el",lg:"fyvr11em",xl:"fyvr11en"},defaultClass:"fyvr11ek"},large:{conditions:{sm:"fyvr11eo",md:"fyvr11ep",lg:"fyvr11eq",xl:"fyvr11er"},defaultClass:"fyvr11eo"},xlarge:{conditions:{sm:"fyvr11es",md:"fyvr11et",lg:"fyvr11eu",xl:"fyvr11ev"},defaultClass:"fyvr11es"}}},fontWeight:{values:{inherit:{conditions:{sm:"fyvr11ew",md:"fyvr11ex",lg:"fyvr11ey",xl:"fyvr11ez"},defaultClass:"fyvr11ew"},normal:{conditions:{sm:"fyvr11f0",md:"fyvr11f1",lg:"fyvr11f2",xl:"fyvr11f3"},defaultClass:"fyvr11f0"},medium:{conditions:{sm:"fyvr11f4",md:"fyvr11f5",lg:"fyvr11f6",xl:"fyvr11f7"},defaultClass:"fyvr11f4"},semibold:{conditions:{sm:"fyvr11f8",md:"fyvr11f9",lg:"fyvr11fa",xl:"fyvr11fb"},defaultClass:"fyvr11f8"},bold:{conditions:{sm:"fyvr11fc",md:"fyvr11fd",lg:"fyvr11fe",xl:"fyvr11ff"},defaultClass:"fyvr11fc"}}},letterSpacing:{values:{inherit:{conditions:{sm:"fyvr11fg",md:"fyvr11fh",lg:"fyvr11fi",xl:"fyvr11fj"},defaultClass:"fyvr11fg"},none:{conditions:{sm:"fyvr11fk",md:"fyvr11fl",lg:"fyvr11fm",xl:"fyvr11fn"},defaultClass:"fyvr11fk"},normal:{conditions:{sm:"fyvr11fo",md:"fyvr11fp",lg:"fyvr11fq",xl:"fyvr11fr"},defaultClass:"fyvr11fo"},wide:{conditions:{sm:"fyvr11fs",md:"fyvr11ft",lg:"fyvr11fu",xl:"fyvr11fv"},defaultClass:"fyvr11fs"}}},lineHeight:{values:{4:{conditions:{sm:"fyvr11fw",md:"fyvr11fx",lg:"fyvr11fy",xl:"fyvr11fz"},defaultClass:"fyvr11fw"},5:{conditions:{sm:"fyvr11g0",md:"fyvr11g1",lg:"fyvr11g2",xl:"fyvr11g3"},defaultClass:"fyvr11g0"},6:{conditions:{sm:"fyvr11g4",md:"fyvr11g5",lg:"fyvr11g6",xl:"fyvr11g7"},defaultClass:"fyvr11g4"},7:{conditions:{sm:"fyvr11g8",md:"fyvr11g9",lg:"fyvr11ga",xl:"fyvr11gb"},defaultClass:"fyvr11g8"},9:{conditions:{sm:"fyvr11gc",md:"fyvr11gd",lg:"fyvr11ge",xl:"fyvr11gf"},defaultClass:"fyvr11gc"},inherit:{conditions:{sm:"fyvr11gg",md:"fyvr11gh",lg:"fyvr11gi",xl:"fyvr11gj"},defaultClass:"fyvr11gg"}}},textAlign:{values:{center:{conditions:{sm:"fyvr11gk",md:"fyvr11gl",lg:"fyvr11gm",xl:"fyvr11gn"},defaultClass:"fyvr11gk"},left:{conditions:{sm:"fyvr11go",md:"fyvr11gp",lg:"fyvr11gq",xl:"fyvr11gr"},defaultClass:"fyvr11go"},right:{conditions:{sm:"fyvr11gs",md:"fyvr11gt",lg:"fyvr11gu",xl:"fyvr11gv"},defaultClass:"fyvr11gs"}}},display:{values:{block:{conditions:{sm:"fyvr11gw",md:"fyvr11gx",lg:"fyvr11gy",xl:"fyvr11gz"},defaultClass:"fyvr11gw"},flex:{conditions:{sm:"fyvr11h0",md:"fyvr11h1",lg:"fyvr11h2",xl:"fyvr11h3"},defaultClass:"fyvr11h0"},grid:{conditions:{sm:"fyvr11h4",md:"fyvr11h5",lg:"fyvr11h6",xl:"fyvr11h7"},defaultClass:"fyvr11h4"},"inline-block":{conditions:{sm:"fyvr11h8",md:"fyvr11h9",lg:"fyvr11ha",xl:"fyvr11hb"},defaultClass:"fyvr11h8"},"inline-flex":{conditions:{sm:"fyvr11hc",md:"fyvr11hd",lg:"fyvr11he",xl:"fyvr11hf"},defaultClass:"fyvr11hc"},none:{conditions:{sm:"fyvr11hg",md:"fyvr11hh",lg:"fyvr11hi",xl:"fyvr11hj"},defaultClass:"fyvr11hg"},contents:{conditions:{sm:"fyvr11hk",md:"fyvr11hl",lg:"fyvr11hm",xl:"fyvr11hn"},defaultClass:"fyvr11hk"}}},position:{values:{absolute:{conditions:{sm:"fyvr11ho",md:"fyvr11hp",lg:"fyvr11hq",xl:"fyvr11hr"},defaultClass:"fyvr11ho"},fixed:{conditions:{sm:"fyvr11hs",md:"fyvr11ht",lg:"fyvr11hu",xl:"fyvr11hv"},defaultClass:"fyvr11hs"},relative:{conditions:{sm:"fyvr11hw",md:"fyvr11hx",lg:"fyvr11hy",xl:"fyvr11hz"},defaultClass:"fyvr11hw"},sticky:{conditions:{sm:"fyvr11i0",md:"fyvr11i1",lg:"fyvr11i2",xl:"fyvr11i3"},defaultClass:"fyvr11i0"}}},flexDirection:{values:{column:{conditions:{sm:"fyvr11i4",md:"fyvr11i5",lg:"fyvr11i6",xl:"fyvr11i7"},defaultClass:"fyvr11i4"},"column-reverse":{conditions:{sm:"fyvr11i8",md:"fyvr11i9",lg:"fyvr11ia",xl:"fyvr11ib"},defaultClass:"fyvr11i8"},row:{conditions:{sm:"fyvr11ic",md:"fyvr11id",lg:"fyvr11ie",xl:"fyvr11if"},defaultClass:"fyvr11ic"},"row-reverse":{conditions:{sm:"fyvr11ig",md:"fyvr11ih",lg:"fyvr11ii",xl:"fyvr11ij"},defaultClass:"fyvr11ig"}}},flexShrink:{values:{0:{conditions:{sm:"fyvr11ik",md:"fyvr11il",lg:"fyvr11im",xl:"fyvr11in"},defaultClass:"fyvr11ik"},1:{conditions:{sm:"fyvr11io",md:"fyvr11ip",lg:"fyvr11iq",xl:"fyvr11ir"},defaultClass:"fyvr11io"}}},flexGrow:{values:{0:{conditions:{sm:"fyvr11is",md:"fyvr11it",lg:"fyvr11iu",xl:"fyvr11iv"},defaultClass:"fyvr11is"},1:{conditions:{sm:"fyvr11iw",md:"fyvr11ix",lg:"fyvr11iy",xl:"fyvr11iz"},defaultClass:"fyvr11iw"}}},flexWrap:{values:{nowrap:{conditions:{sm:"fyvr11j0",md:"fyvr11j1",lg:"fyvr11j2",xl:"fyvr11j3"},defaultClass:"fyvr11j0"},wrap:{conditions:{sm:"fyvr11j4",md:"fyvr11j5",lg:"fyvr11j6",xl:"fyvr11j7"},defaultClass:"fyvr11j4"},"wrap-reverse":{conditions:{sm:"fyvr11j8",md:"fyvr11j9",lg:"fyvr11ja",xl:"fyvr11jb"},defaultClass:"fyvr11j8"}}},justifyContent:{values:{"flex-start":{conditions:{sm:"fyvr11jc",md:"fyvr11jd",lg:"fyvr11je",xl:"fyvr11jf"},defaultClass:"fyvr11jc"},center:{conditions:{sm:"fyvr11jg",md:"fyvr11jh",lg:"fyvr11ji",xl:"fyvr11jj"},defaultClass:"fyvr11jg"},"flex-end":{conditions:{sm:"fyvr11jk",md:"fyvr11jl",lg:"fyvr11jm",xl:"fyvr11jn"},defaultClass:"fyvr11jk"},stretch:{conditions:{sm:"fyvr11jo",md:"fyvr11jp",lg:"fyvr11jq",xl:"fyvr11jr"},defaultClass:"fyvr11jo"},"space-around":{conditions:{sm:"fyvr11js",md:"fyvr11jt",lg:"fyvr11ju",xl:"fyvr11jv"},defaultClass:"fyvr11js"},"space-between":{conditions:{sm:"fyvr11jw",md:"fyvr11jx",lg:"fyvr11jy",xl:"fyvr11jz"},defaultClass:"fyvr11jw"},"space-evenly":{conditions:{sm:"fyvr11k0",md:"fyvr11k1",lg:"fyvr11k2",xl:"fyvr11k3"},defaultClass:"fyvr11k0"}}},justifySelf:{values:{"flex-start":{conditions:{sm:"fyvr11k4",md:"fyvr11k5",lg:"fyvr11k6",xl:"fyvr11k7"},defaultClass:"fyvr11k4"},center:{conditions:{sm:"fyvr11k8",md:"fyvr11k9",lg:"fyvr11ka",xl:"fyvr11kb"},defaultClass:"fyvr11k8"},"flex-end":{conditions:{sm:"fyvr11kc",md:"fyvr11kd",lg:"fyvr11ke",xl:"fyvr11kf"},defaultClass:"fyvr11kc"},stretch:{conditions:{sm:"fyvr11kg",md:"fyvr11kh",lg:"fyvr11ki",xl:"fyvr11kj"},defaultClass:"fyvr11kg"}}},alignItems:{values:{"flex-start":{conditions:{sm:"fyvr11kk",md:"fyvr11kl",lg:"fyvr11km",xl:"fyvr11kn"},defaultClass:"fyvr11kk"},center:{conditions:{sm:"fyvr11ko",md:"fyvr11kp",lg:"fyvr11kq",xl:"fyvr11kr"},defaultClass:"fyvr11ko"},"flex-end":{conditions:{sm:"fyvr11ks",md:"fyvr11kt",lg:"fyvr11ku",xl:"fyvr11kv"},defaultClass:"fyvr11ks"},stretch:{conditions:{sm:"fyvr11kw",md:"fyvr11kx",lg:"fyvr11ky",xl:"fyvr11kz"},defaultClass:"fyvr11kw"},baseline:{conditions:{sm:"fyvr11l0",md:"fyvr11l1",lg:"fyvr11l2",xl:"fyvr11l3"},defaultClass:"fyvr11l0"}}},alignSelf:{values:{"flex-start":{conditions:{sm:"fyvr11l4",md:"fyvr11l5",lg:"fyvr11l6",xl:"fyvr11l7"},defaultClass:"fyvr11l4"},center:{conditions:{sm:"fyvr11l8",md:"fyvr11l9",lg:"fyvr11la",xl:"fyvr11lb"},defaultClass:"fyvr11l8"},"flex-end":{conditions:{sm:"fyvr11lc",md:"fyvr11ld",lg:"fyvr11le",xl:"fyvr11lf"},defaultClass:"fyvr11lc"},stretch:{conditions:{sm:"fyvr11lg",md:"fyvr11lh",lg:"fyvr11li",xl:"fyvr11lj"},defaultClass:"fyvr11lg"},baseline:{conditions:{sm:"fyvr11lk",md:"fyvr11ll",lg:"fyvr11lm",xl:"fyvr11ln"},defaultClass:"fyvr11lk"}}},overflowX:{values:{auto:{conditions:{sm:"fyvr11lo",md:"fyvr11lp",lg:"fyvr11lq",xl:"fyvr11lr"},defaultClass:"fyvr11lo"},hidden:{conditions:{sm:"fyvr11ls",md:"fyvr11lt",lg:"fyvr11lu",xl:"fyvr11lv"},defaultClass:"fyvr11ls"},scroll:{conditions:{sm:"fyvr11lw",md:"fyvr11lx",lg:"fyvr11ly",xl:"fyvr11lz"},defaultClass:"fyvr11lw"},visible:{conditions:{sm:"fyvr11m0",md:"fyvr11m1",lg:"fyvr11m2",xl:"fyvr11m3"},defaultClass:"fyvr11m0"}}},overflowY:{values:{auto:{conditions:{sm:"fyvr11m4",md:"fyvr11m5",lg:"fyvr11m6",xl:"fyvr11m7"},defaultClass:"fyvr11m4"},hidden:{conditions:{sm:"fyvr11m8",md:"fyvr11m9",lg:"fyvr11ma",xl:"fyvr11mb"},defaultClass:"fyvr11m8"},scroll:{conditions:{sm:"fyvr11mc",md:"fyvr11md",lg:"fyvr11me",xl:"fyvr11mf"},defaultClass:"fyvr11mc"},visible:{conditions:{sm:"fyvr11mg",md:"fyvr11mh",lg:"fyvr11mi",xl:"fyvr11mj"},defaultClass:"fyvr11mg"}}},visibility:{values:{hidden:{conditions:{sm:"fyvr11mk",md:"fyvr11ml",lg:"fyvr11mm",xl:"fyvr11mn"},defaultClass:"fyvr11mk"},visible:{conditions:{sm:"fyvr11mo",md:"fyvr11mp",lg:"fyvr11mq",xl:"fyvr11mr"},defaultClass:"fyvr11mo"}}}}},{conditions:void 0,styles:{backdropFilter:{values:{blur:{defaultClass:"fyvr11ms"},none:{defaultClass:"fyvr11mt"}}},fontFamily:{values:{inherit:{defaultClass:"fyvr11mu"},body:{defaultClass:"fyvr11mv"},mono:{defaultClass:"fyvr11mw"}}},textOverflow:{values:{ellipsis:{defaultClass:"fyvr11mx"},clip:{defaultClass:"fyvr11my"}}},textTransform:{values:{capitalize:{defaultClass:"fyvr11mz"},lowercase:{defaultClass:"fyvr11n0"},uppercase:{defaultClass:"fyvr11n1"}}},textDecoration:{values:{none:{defaultClass:"fyvr11n2"},underline:{defaultClass:"fyvr11n3"}}},userSelect:{values:{none:{defaultClass:"fyvr11n4"},text:{defaultClass:"fyvr11n5"},all:{defaultClass:"fyvr11n6"},auto:{defaultClass:"fyvr11n7"}}},whiteSpace:{values:{normal:{defaultClass:"fyvr11n8"},nowrap:{defaultClass:"fyvr11n9"},initial:{defaultClass:"fyvr11na"},inherit:{defaultClass:"fyvr11nb"}}},wordBreak:{values:{"break-word":{defaultClass:"fyvr11nc"}}},wordWrap:{values:{normal:{defaultClass:"fyvr11nd"},"break-word":{defaultClass:"fyvr11ne"},initial:{defaultClass:"fyvr11nf"},inherit:{defaultClass:"fyvr11ng"}}},zIndex:{values:{0:{defaultClass:"fyvr11nh"},1:{defaultClass:"fyvr11ni"},10:{defaultClass:"fyvr11nj"},20:{defaultClass:"fyvr11nk"},30:{defaultClass:"fyvr11nl"},40:{defaultClass:"fyvr11nm"},50:{defaultClass:"fyvr11nn"},"-1":{defaultClass:"fyvr11no"},auto:{defaultClass:"fyvr11np"}}},aspectRatio:{values:{"1/1":{defaultClass:"fyvr11nq"},"16/9":{defaultClass:"fyvr11nr"},"4/3":{defaultClass:"fyvr11ns"},"3/1":{defaultClass:"fyvr11nt"},auto:{defaultClass:"fyvr11nu"}}}}},{conditions:{defaultCondition:"base",conditionNames:["base","active","disabled","focus","hover","checked"],responsiveArray:void 0},styles:{borderColor:{mappings:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]},borderStyle:{mappings:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"]},focusRing:{mappings:["boxShadow","outline"]},background:{values:{black:{conditions:{base:"fyvr11nv",active:"fyvr11nw",disabled:"fyvr11nx",focus:"fyvr11ny",hover:"fyvr11nz",checked:"fyvr11o0"},defaultClass:"fyvr11nv"},white:{conditions:{base:"fyvr11o1",active:"fyvr11o2",disabled:"fyvr11o3",focus:"fyvr11o4",hover:"fyvr11o5",checked:"fyvr11o6"},defaultClass:"fyvr11o1"},inherit:{conditions:{base:"fyvr11o7",active:"fyvr11o8",disabled:"fyvr11o9",focus:"fyvr11oa",hover:"fyvr11ob",checked:"fyvr11oc"},defaultClass:"fyvr11o7"},transparent:{conditions:{base:"fyvr11od",active:"fyvr11oe",disabled:"fyvr11of",focus:"fyvr11og",hover:"fyvr11oh",checked:"fyvr11oi"},defaultClass:"fyvr11od"},positive:{conditions:{base:"fyvr11oj",active:"fyvr11ok",disabled:"fyvr11ol",focus:"fyvr11om",hover:"fyvr11on",checked:"fyvr11oo"},defaultClass:"fyvr11oj"},negative:{conditions:{base:"fyvr11op",active:"fyvr11oq",disabled:"fyvr11or",focus:"fyvr11os",hover:"fyvr11ot",checked:"fyvr11ou"},defaultClass:"fyvr11op"},info:{conditions:{base:"fyvr11ov",active:"fyvr11ow",disabled:"fyvr11ox",focus:"fyvr11oy",hover:"fyvr11oz",checked:"fyvr11p0"},defaultClass:"fyvr11ov"},warning:{conditions:{base:"fyvr11p1",active:"fyvr11p2",disabled:"fyvr11p3",focus:"fyvr11p4",hover:"fyvr11p5",checked:"fyvr11p6"},defaultClass:"fyvr11p1"},gradientBackdrop:{conditions:{base:"fyvr11p7",active:"fyvr11p8",disabled:"fyvr11p9",focus:"fyvr11pa",hover:"fyvr11pb",checked:"fyvr11pc"},defaultClass:"fyvr11p7"},gradientPrimary:{conditions:{base:"fyvr11pd",active:"fyvr11pe",disabled:"fyvr11pf",focus:"fyvr11pg",hover:"fyvr11ph",checked:"fyvr11pi"},defaultClass:"fyvr11pd"},gradientSecondary:{conditions:{base:"fyvr11pj",active:"fyvr11pk",disabled:"fyvr11pl",focus:"fyvr11pm",hover:"fyvr11pn",checked:"fyvr11po"},defaultClass:"fyvr11pj"},arbitrumDark:{conditions:{base:"fyvr11pp",active:"fyvr11pq",disabled:"fyvr11pr",focus:"fyvr11ps",hover:"fyvr11pt",checked:"fyvr11pu"},defaultClass:"fyvr11pp"},arbitrumLight:{conditions:{base:"fyvr11pv",active:"fyvr11pw",disabled:"fyvr11px",focus:"fyvr11py",hover:"fyvr11pz",checked:"fyvr11q0"},defaultClass:"fyvr11pv"},avalanceDark:{conditions:{base:"fyvr11q1",active:"fyvr11q2",disabled:"fyvr11q3",focus:"fyvr11q4",hover:"fyvr11q5",checked:"fyvr11q6"},defaultClass:"fyvr11q1"},avalanceLight:{conditions:{base:"fyvr11q7",active:"fyvr11q8",disabled:"fyvr11q9",focus:"fyvr11qa",hover:"fyvr11qb",checked:"fyvr11qc"},defaultClass:"fyvr11q7"},bscDark:{conditions:{base:"fyvr11qd",active:"fyvr11qe",disabled:"fyvr11qf",focus:"fyvr11qg",hover:"fyvr11qh",checked:"fyvr11qi"},defaultClass:"fyvr11qd"},bscLight:{conditions:{base:"fyvr11qj",active:"fyvr11qk",disabled:"fyvr11ql",focus:"fyvr11qm",hover:"fyvr11qn",checked:"fyvr11qo"},defaultClass:"fyvr11qj"},ethereumDark:{conditions:{base:"fyvr11qp",active:"fyvr11qq",disabled:"fyvr11qr",focus:"fyvr11qs",hover:"fyvr11qt",checked:"fyvr11qu"},defaultClass:"fyvr11qp"},ethereumLight:{conditions:{base:"fyvr11qv",active:"fyvr11qw",disabled:"fyvr11qx",focus:"fyvr11qy",hover:"fyvr11qz",checked:"fyvr11r0"},defaultClass:"fyvr11qv"},gnosisDark:{conditions:{base:"fyvr11r1",active:"fyvr11r2",disabled:"fyvr11r3",focus:"fyvr11r4",hover:"fyvr11r5",checked:"fyvr11r6"},defaultClass:"fyvr11r1"},gnosisLight:{conditions:{base:"fyvr11r7",active:"fyvr11r8",disabled:"fyvr11r9",focus:"fyvr11ra",hover:"fyvr11rb",checked:"fyvr11rc"},defaultClass:"fyvr11r7"},polygonDark:{conditions:{base:"fyvr11rd",active:"fyvr11re",disabled:"fyvr11rf",focus:"fyvr11rg",hover:"fyvr11rh",checked:"fyvr11ri"},defaultClass:"fyvr11rd"},polygonLight:{conditions:{base:"fyvr11rj",active:"fyvr11rk",disabled:"fyvr11rl",focus:"fyvr11rm",hover:"fyvr11rn",checked:"fyvr11ro"},defaultClass:"fyvr11rj"},text100:{conditions:{base:"fyvr11rp",active:"fyvr11rq",disabled:"fyvr11rr",focus:"fyvr11rs",hover:"fyvr11rt",checked:"fyvr11ru"},defaultClass:"fyvr11rp"},text80:{conditions:{base:"fyvr11rv",active:"fyvr11rw",disabled:"fyvr11rx",focus:"fyvr11ry",hover:"fyvr11rz",checked:"fyvr11s0"},defaultClass:"fyvr11rv"},text50:{conditions:{base:"fyvr11s1",active:"fyvr11s2",disabled:"fyvr11s3",focus:"fyvr11s4",hover:"fyvr11s5",checked:"fyvr11s6"},defaultClass:"fyvr11s1"},textInverse100:{conditions:{base:"fyvr11s7",active:"fyvr11s8",disabled:"fyvr11s9",focus:"fyvr11sa",hover:"fyvr11sb",checked:"fyvr11sc"},defaultClass:"fyvr11s7"},backgroundPrimary:{conditions:{base:"fyvr11sd",active:"fyvr11se",disabled:"fyvr11sf",focus:"fyvr11sg",hover:"fyvr11sh",checked:"fyvr11si"},defaultClass:"fyvr11sd"},backgroundSecondary:{conditions:{base:"fyvr11sj",active:"fyvr11sk",disabled:"fyvr11sl",focus:"fyvr11sm",hover:"fyvr11sn",checked:"fyvr11so"},defaultClass:"fyvr11sj"},backgroundContrast:{conditions:{base:"fyvr11sp",active:"fyvr11sq",disabled:"fyvr11sr",focus:"fyvr11ss",hover:"fyvr11st",checked:"fyvr11su"},defaultClass:"fyvr11sp"},backgroundMuted:{conditions:{base:"fyvr11sv",active:"fyvr11sw",disabled:"fyvr11sx",focus:"fyvr11sy",hover:"fyvr11sz",checked:"fyvr11t0"},defaultClass:"fyvr11sv"},backgroundControl:{conditions:{base:"fyvr11t1",active:"fyvr11t2",disabled:"fyvr11t3",focus:"fyvr11t4",hover:"fyvr11t5",checked:"fyvr11t6"},defaultClass:"fyvr11t1"},backgroundInverse:{conditions:{base:"fyvr11t7",active:"fyvr11t8",disabled:"fyvr11t9",focus:"fyvr11ta",hover:"fyvr11tb",checked:"fyvr11tc"},defaultClass:"fyvr11t7"},backgroundBackdrop:{conditions:{base:"fyvr11td",active:"fyvr11te",disabled:"fyvr11tf",focus:"fyvr11tg",hover:"fyvr11th",checked:"fyvr11ti"},defaultClass:"fyvr11td"},backgroundOverlay:{conditions:{base:"fyvr11tj",active:"fyvr11tk",disabled:"fyvr11tl",focus:"fyvr11tm",hover:"fyvr11tn",checked:"fyvr11to"},defaultClass:"fyvr11tj"},backgroundRaised:{conditions:{base:"fyvr11tp",active:"fyvr11tq",disabled:"fyvr11tr",focus:"fyvr11ts",hover:"fyvr11tt",checked:"fyvr11tu"},defaultClass:"fyvr11tp"},buttonGlass:{conditions:{base:"fyvr11tv",active:"fyvr11tw",disabled:"fyvr11tx",focus:"fyvr11ty",hover:"fyvr11tz",checked:"fyvr11u0"},defaultClass:"fyvr11tv"},buttonEmphasis:{conditions:{base:"fyvr11u1",active:"fyvr11u2",disabled:"fyvr11u3",focus:"fyvr11u4",hover:"fyvr11u5",checked:"fyvr11u6"},defaultClass:"fyvr11u1"},buttonInverse:{conditions:{base:"fyvr11u7",active:"fyvr11u8",disabled:"fyvr11u9",focus:"fyvr11ua",hover:"fyvr11ub",checked:"fyvr11uc"},defaultClass:"fyvr11u7"},borderNormal:{conditions:{base:"fyvr11ud",active:"fyvr11ue",disabled:"fyvr11uf",focus:"fyvr11ug",hover:"fyvr11uh",checked:"fyvr11ui"},defaultClass:"fyvr11ud"},borderFocus:{conditions:{base:"fyvr11uj",active:"fyvr11uk",disabled:"fyvr11ul",focus:"fyvr11um",hover:"fyvr11un",checked:"fyvr11uo"},defaultClass:"fyvr11uj"}}},borderBottomColor:{values:{black:{conditions:{base:"fyvr11up",active:"fyvr11uq",disabled:"fyvr11ur",focus:"fyvr11us",hover:"fyvr11ut",checked:"fyvr11uu"},defaultClass:"fyvr11up"},white:{conditions:{base:"fyvr11uv",active:"fyvr11uw",disabled:"fyvr11ux",focus:"fyvr11uy",hover:"fyvr11uz",checked:"fyvr11v0"},defaultClass:"fyvr11uv"},inherit:{conditions:{base:"fyvr11v1",active:"fyvr11v2",disabled:"fyvr11v3",focus:"fyvr11v4",hover:"fyvr11v5",checked:"fyvr11v6"},defaultClass:"fyvr11v1"},transparent:{conditions:{base:"fyvr11v7",active:"fyvr11v8",disabled:"fyvr11v9",focus:"fyvr11va",hover:"fyvr11vb",checked:"fyvr11vc"},defaultClass:"fyvr11v7"},positive:{conditions:{base:"fyvr11vd",active:"fyvr11ve",disabled:"fyvr11vf",focus:"fyvr11vg",hover:"fyvr11vh",checked:"fyvr11vi"},defaultClass:"fyvr11vd"},negative:{conditions:{base:"fyvr11vj",active:"fyvr11vk",disabled:"fyvr11vl",focus:"fyvr11vm",hover:"fyvr11vn",checked:"fyvr11vo"},defaultClass:"fyvr11vj"},info:{conditions:{base:"fyvr11vp",active:"fyvr11vq",disabled:"fyvr11vr",focus:"fyvr11vs",hover:"fyvr11vt",checked:"fyvr11vu"},defaultClass:"fyvr11vp"},warning:{conditions:{base:"fyvr11vv",active:"fyvr11vw",disabled:"fyvr11vx",focus:"fyvr11vy",hover:"fyvr11vz",checked:"fyvr11w0"},defaultClass:"fyvr11vv"},gradientBackdrop:{conditions:{base:"fyvr11w1",active:"fyvr11w2",disabled:"fyvr11w3",focus:"fyvr11w4",hover:"fyvr11w5",checked:"fyvr11w6"},defaultClass:"fyvr11w1"},gradientPrimary:{conditions:{base:"fyvr11w7",active:"fyvr11w8",disabled:"fyvr11w9",focus:"fyvr11wa",hover:"fyvr11wb",checked:"fyvr11wc"},defaultClass:"fyvr11w7"},gradientSecondary:{conditions:{base:"fyvr11wd",active:"fyvr11we",disabled:"fyvr11wf",focus:"fyvr11wg",hover:"fyvr11wh",checked:"fyvr11wi"},defaultClass:"fyvr11wd"},arbitrumDark:{conditions:{base:"fyvr11wj",active:"fyvr11wk",disabled:"fyvr11wl",focus:"fyvr11wm",hover:"fyvr11wn",checked:"fyvr11wo"},defaultClass:"fyvr11wj"},arbitrumLight:{conditions:{base:"fyvr11wp",active:"fyvr11wq",disabled:"fyvr11wr",focus:"fyvr11ws",hover:"fyvr11wt",checked:"fyvr11wu"},defaultClass:"fyvr11wp"},avalanceDark:{conditions:{base:"fyvr11wv",active:"fyvr11ww",disabled:"fyvr11wx",focus:"fyvr11wy",hover:"fyvr11wz",checked:"fyvr11x0"},defaultClass:"fyvr11wv"},avalanceLight:{conditions:{base:"fyvr11x1",active:"fyvr11x2",disabled:"fyvr11x3",focus:"fyvr11x4",hover:"fyvr11x5",checked:"fyvr11x6"},defaultClass:"fyvr11x1"},bscDark:{conditions:{base:"fyvr11x7",active:"fyvr11x8",disabled:"fyvr11x9",focus:"fyvr11xa",hover:"fyvr11xb",checked:"fyvr11xc"},defaultClass:"fyvr11x7"},bscLight:{conditions:{base:"fyvr11xd",active:"fyvr11xe",disabled:"fyvr11xf",focus:"fyvr11xg",hover:"fyvr11xh",checked:"fyvr11xi"},defaultClass:"fyvr11xd"},ethereumDark:{conditions:{base:"fyvr11xj",active:"fyvr11xk",disabled:"fyvr11xl",focus:"fyvr11xm",hover:"fyvr11xn",checked:"fyvr11xo"},defaultClass:"fyvr11xj"},ethereumLight:{conditions:{base:"fyvr11xp",active:"fyvr11xq",disabled:"fyvr11xr",focus:"fyvr11xs",hover:"fyvr11xt",checked:"fyvr11xu"},defaultClass:"fyvr11xp"},gnosisDark:{conditions:{base:"fyvr11xv",active:"fyvr11xw",disabled:"fyvr11xx",focus:"fyvr11xy",hover:"fyvr11xz",checked:"fyvr11y0"},defaultClass:"fyvr11xv"},gnosisLight:{conditions:{base:"fyvr11y1",active:"fyvr11y2",disabled:"fyvr11y3",focus:"fyvr11y4",hover:"fyvr11y5",checked:"fyvr11y6"},defaultClass:"fyvr11y1"},polygonDark:{conditions:{base:"fyvr11y7",active:"fyvr11y8",disabled:"fyvr11y9",focus:"fyvr11ya",hover:"fyvr11yb",checked:"fyvr11yc"},defaultClass:"fyvr11y7"},polygonLight:{conditions:{base:"fyvr11yd",active:"fyvr11ye",disabled:"fyvr11yf",focus:"fyvr11yg",hover:"fyvr11yh",checked:"fyvr11yi"},defaultClass:"fyvr11yd"},text100:{conditions:{base:"fyvr11yj",active:"fyvr11yk",disabled:"fyvr11yl",focus:"fyvr11ym",hover:"fyvr11yn",checked:"fyvr11yo"},defaultClass:"fyvr11yj"},text80:{conditions:{base:"fyvr11yp",active:"fyvr11yq",disabled:"fyvr11yr",focus:"fyvr11ys",hover:"fyvr11yt",checked:"fyvr11yu"},defaultClass:"fyvr11yp"},text50:{conditions:{base:"fyvr11yv",active:"fyvr11yw",disabled:"fyvr11yx",focus:"fyvr11yy",hover:"fyvr11yz",checked:"fyvr11z0"},defaultClass:"fyvr11yv"},textInverse100:{conditions:{base:"fyvr11z1",active:"fyvr11z2",disabled:"fyvr11z3",focus:"fyvr11z4",hover:"fyvr11z5",checked:"fyvr11z6"},defaultClass:"fyvr11z1"},backgroundPrimary:{conditions:{base:"fyvr11z7",active:"fyvr11z8",disabled:"fyvr11z9",focus:"fyvr11za",hover:"fyvr11zb",checked:"fyvr11zc"},defaultClass:"fyvr11z7"},backgroundSecondary:{conditions:{base:"fyvr11zd",active:"fyvr11ze",disabled:"fyvr11zf",focus:"fyvr11zg",hover:"fyvr11zh",checked:"fyvr11zi"},defaultClass:"fyvr11zd"},backgroundContrast:{conditions:{base:"fyvr11zj",active:"fyvr11zk",disabled:"fyvr11zl",focus:"fyvr11zm",hover:"fyvr11zn",checked:"fyvr11zo"},defaultClass:"fyvr11zj"},backgroundMuted:{conditions:{base:"fyvr11zp",active:"fyvr11zq",disabled:"fyvr11zr",focus:"fyvr11zs",hover:"fyvr11zt",checked:"fyvr11zu"},defaultClass:"fyvr11zp"},backgroundControl:{conditions:{base:"fyvr11zv",active:"fyvr11zw",disabled:"fyvr11zx",focus:"fyvr11zy",hover:"fyvr11zz",checked:"fyvr1200"},defaultClass:"fyvr11zv"},backgroundInverse:{conditions:{base:"fyvr1201",active:"fyvr1202",disabled:"fyvr1203",focus:"fyvr1204",hover:"fyvr1205",checked:"fyvr1206"},defaultClass:"fyvr1201"},backgroundBackdrop:{conditions:{base:"fyvr1207",active:"fyvr1208",disabled:"fyvr1209",focus:"fyvr120a",hover:"fyvr120b",checked:"fyvr120c"},defaultClass:"fyvr1207"},backgroundOverlay:{conditions:{base:"fyvr120d",active:"fyvr120e",disabled:"fyvr120f",focus:"fyvr120g",hover:"fyvr120h",checked:"fyvr120i"},defaultClass:"fyvr120d"},backgroundRaised:{conditions:{base:"fyvr120j",active:"fyvr120k",disabled:"fyvr120l",focus:"fyvr120m",hover:"fyvr120n",checked:"fyvr120o"},defaultClass:"fyvr120j"},buttonGlass:{conditions:{base:"fyvr120p",active:"fyvr120q",disabled:"fyvr120r",focus:"fyvr120s",hover:"fyvr120t",checked:"fyvr120u"},defaultClass:"fyvr120p"},buttonEmphasis:{conditions:{base:"fyvr120v",active:"fyvr120w",disabled:"fyvr120x",focus:"fyvr120y",hover:"fyvr120z",checked:"fyvr1210"},defaultClass:"fyvr120v"},buttonInverse:{conditions:{base:"fyvr1211",active:"fyvr1212",disabled:"fyvr1213",focus:"fyvr1214",hover:"fyvr1215",checked:"fyvr1216"},defaultClass:"fyvr1211"},borderNormal:{conditions:{base:"fyvr1217",active:"fyvr1218",disabled:"fyvr1219",focus:"fyvr121a",hover:"fyvr121b",checked:"fyvr121c"},defaultClass:"fyvr1217"},borderFocus:{conditions:{base:"fyvr121d",active:"fyvr121e",disabled:"fyvr121f",focus:"fyvr121g",hover:"fyvr121h",checked:"fyvr121i"},defaultClass:"fyvr121d"}}},borderBottomStyle:{values:{solid:{conditions:{base:"fyvr121j",active:"fyvr121k",disabled:"fyvr121l",focus:"fyvr121m",hover:"fyvr121n",checked:"fyvr121o"},defaultClass:"fyvr121j"},dashed:{conditions:{base:"fyvr121p",active:"fyvr121q",disabled:"fyvr121r",focus:"fyvr121s",hover:"fyvr121t",checked:"fyvr121u"},defaultClass:"fyvr121p"},dotted:{conditions:{base:"fyvr121v",active:"fyvr121w",disabled:"fyvr121x",focus:"fyvr121y",hover:"fyvr121z",checked:"fyvr1220"},defaultClass:"fyvr121v"}}},borderLeftColor:{values:{black:{conditions:{base:"fyvr1221",active:"fyvr1222",disabled:"fyvr1223",focus:"fyvr1224",hover:"fyvr1225",checked:"fyvr1226"},defaultClass:"fyvr1221"},white:{conditions:{base:"fyvr1227",active:"fyvr1228",disabled:"fyvr1229",focus:"fyvr122a",hover:"fyvr122b",checked:"fyvr122c"},defaultClass:"fyvr1227"},inherit:{conditions:{base:"fyvr122d",active:"fyvr122e",disabled:"fyvr122f",focus:"fyvr122g",hover:"fyvr122h",checked:"fyvr122i"},defaultClass:"fyvr122d"},transparent:{conditions:{base:"fyvr122j",active:"fyvr122k",disabled:"fyvr122l",focus:"fyvr122m",hover:"fyvr122n",checked:"fyvr122o"},defaultClass:"fyvr122j"},positive:{conditions:{base:"fyvr122p",active:"fyvr122q",disabled:"fyvr122r",focus:"fyvr122s",hover:"fyvr122t",checked:"fyvr122u"},defaultClass:"fyvr122p"},negative:{conditions:{base:"fyvr122v",active:"fyvr122w",disabled:"fyvr122x",focus:"fyvr122y",hover:"fyvr122z",checked:"fyvr1230"},defaultClass:"fyvr122v"},info:{conditions:{base:"fyvr1231",active:"fyvr1232",disabled:"fyvr1233",focus:"fyvr1234",hover:"fyvr1235",checked:"fyvr1236"},defaultClass:"fyvr1231"},warning:{conditions:{base:"fyvr1237",active:"fyvr1238",disabled:"fyvr1239",focus:"fyvr123a",hover:"fyvr123b",checked:"fyvr123c"},defaultClass:"fyvr1237"},gradientBackdrop:{conditions:{base:"fyvr123d",active:"fyvr123e",disabled:"fyvr123f",focus:"fyvr123g",hover:"fyvr123h",checked:"fyvr123i"},defaultClass:"fyvr123d"},gradientPrimary:{conditions:{base:"fyvr123j",active:"fyvr123k",disabled:"fyvr123l",focus:"fyvr123m",hover:"fyvr123n",checked:"fyvr123o"},defaultClass:"fyvr123j"},gradientSecondary:{conditions:{base:"fyvr123p",active:"fyvr123q",disabled:"fyvr123r",focus:"fyvr123s",hover:"fyvr123t",checked:"fyvr123u"},defaultClass:"fyvr123p"},arbitrumDark:{conditions:{base:"fyvr123v",active:"fyvr123w",disabled:"fyvr123x",focus:"fyvr123y",hover:"fyvr123z",checked:"fyvr1240"},defaultClass:"fyvr123v"},arbitrumLight:{conditions:{base:"fyvr1241",active:"fyvr1242",disabled:"fyvr1243",focus:"fyvr1244",hover:"fyvr1245",checked:"fyvr1246"},defaultClass:"fyvr1241"},avalanceDark:{conditions:{base:"fyvr1247",active:"fyvr1248",disabled:"fyvr1249",focus:"fyvr124a",hover:"fyvr124b",checked:"fyvr124c"},defaultClass:"fyvr1247"},avalanceLight:{conditions:{base:"fyvr124d",active:"fyvr124e",disabled:"fyvr124f",focus:"fyvr124g",hover:"fyvr124h",checked:"fyvr124i"},defaultClass:"fyvr124d"},bscDark:{conditions:{base:"fyvr124j",active:"fyvr124k",disabled:"fyvr124l",focus:"fyvr124m",hover:"fyvr124n",checked:"fyvr124o"},defaultClass:"fyvr124j"},bscLight:{conditions:{base:"fyvr124p",active:"fyvr124q",disabled:"fyvr124r",focus:"fyvr124s",hover:"fyvr124t",checked:"fyvr124u"},defaultClass:"fyvr124p"},ethereumDark:{conditions:{base:"fyvr124v",active:"fyvr124w",disabled:"fyvr124x",focus:"fyvr124y",hover:"fyvr124z",checked:"fyvr1250"},defaultClass:"fyvr124v"},ethereumLight:{conditions:{base:"fyvr1251",active:"fyvr1252",disabled:"fyvr1253",focus:"fyvr1254",hover:"fyvr1255",checked:"fyvr1256"},defaultClass:"fyvr1251"},gnosisDark:{conditions:{base:"fyvr1257",active:"fyvr1258",disabled:"fyvr1259",focus:"fyvr125a",hover:"fyvr125b",checked:"fyvr125c"},defaultClass:"fyvr1257"},gnosisLight:{conditions:{base:"fyvr125d",active:"fyvr125e",disabled:"fyvr125f",focus:"fyvr125g",hover:"fyvr125h",checked:"fyvr125i"},defaultClass:"fyvr125d"},polygonDark:{conditions:{base:"fyvr125j",active:"fyvr125k",disabled:"fyvr125l",focus:"fyvr125m",hover:"fyvr125n",checked:"fyvr125o"},defaultClass:"fyvr125j"},polygonLight:{conditions:{base:"fyvr125p",active:"fyvr125q",disabled:"fyvr125r",focus:"fyvr125s",hover:"fyvr125t",checked:"fyvr125u"},defaultClass:"fyvr125p"},text100:{conditions:{base:"fyvr125v",active:"fyvr125w",disabled:"fyvr125x",focus:"fyvr125y",hover:"fyvr125z",checked:"fyvr1260"},defaultClass:"fyvr125v"},text80:{conditions:{base:"fyvr1261",active:"fyvr1262",disabled:"fyvr1263",focus:"fyvr1264",hover:"fyvr1265",checked:"fyvr1266"},defaultClass:"fyvr1261"},text50:{conditions:{base:"fyvr1267",active:"fyvr1268",disabled:"fyvr1269",focus:"fyvr126a",hover:"fyvr126b",checked:"fyvr126c"},defaultClass:"fyvr1267"},textInverse100:{conditions:{base:"fyvr126d",active:"fyvr126e",disabled:"fyvr126f",focus:"fyvr126g",hover:"fyvr126h",checked:"fyvr126i"},defaultClass:"fyvr126d"},backgroundPrimary:{conditions:{base:"fyvr126j",active:"fyvr126k",disabled:"fyvr126l",focus:"fyvr126m",hover:"fyvr126n",checked:"fyvr126o"},defaultClass:"fyvr126j"},backgroundSecondary:{conditions:{base:"fyvr126p",active:"fyvr126q",disabled:"fyvr126r",focus:"fyvr126s",hover:"fyvr126t",checked:"fyvr126u"},defaultClass:"fyvr126p"},backgroundContrast:{conditions:{base:"fyvr126v",active:"fyvr126w",disabled:"fyvr126x",focus:"fyvr126y",hover:"fyvr126z",checked:"fyvr1270"},defaultClass:"fyvr126v"},backgroundMuted:{conditions:{base:"fyvr1271",active:"fyvr1272",disabled:"fyvr1273",focus:"fyvr1274",hover:"fyvr1275",checked:"fyvr1276"},defaultClass:"fyvr1271"},backgroundControl:{conditions:{base:"fyvr1277",active:"fyvr1278",disabled:"fyvr1279",focus:"fyvr127a",hover:"fyvr127b",checked:"fyvr127c"},defaultClass:"fyvr1277"},backgroundInverse:{conditions:{base:"fyvr127d",active:"fyvr127e",disabled:"fyvr127f",focus:"fyvr127g",hover:"fyvr127h",checked:"fyvr127i"},defaultClass:"fyvr127d"},backgroundBackdrop:{conditions:{base:"fyvr127j",active:"fyvr127k",disabled:"fyvr127l",focus:"fyvr127m",hover:"fyvr127n",checked:"fyvr127o"},defaultClass:"fyvr127j"},backgroundOverlay:{conditions:{base:"fyvr127p",active:"fyvr127q",disabled:"fyvr127r",focus:"fyvr127s",hover:"fyvr127t",checked:"fyvr127u"},defaultClass:"fyvr127p"},backgroundRaised:{conditions:{base:"fyvr127v",active:"fyvr127w",disabled:"fyvr127x",focus:"fyvr127y",hover:"fyvr127z",checked:"fyvr1280"},defaultClass:"fyvr127v"},buttonGlass:{conditions:{base:"fyvr1281",active:"fyvr1282",disabled:"fyvr1283",focus:"fyvr1284",hover:"fyvr1285",checked:"fyvr1286"},defaultClass:"fyvr1281"},buttonEmphasis:{conditions:{base:"fyvr1287",active:"fyvr1288",disabled:"fyvr1289",focus:"fyvr128a",hover:"fyvr128b",checked:"fyvr128c"},defaultClass:"fyvr1287"},buttonInverse:{conditions:{base:"fyvr128d",active:"fyvr128e",disabled:"fyvr128f",focus:"fyvr128g",hover:"fyvr128h",checked:"fyvr128i"},defaultClass:"fyvr128d"},borderNormal:{conditions:{base:"fyvr128j",active:"fyvr128k",disabled:"fyvr128l",focus:"fyvr128m",hover:"fyvr128n",checked:"fyvr128o"},defaultClass:"fyvr128j"},borderFocus:{conditions:{base:"fyvr128p",active:"fyvr128q",disabled:"fyvr128r",focus:"fyvr128s",hover:"fyvr128t",checked:"fyvr128u"},defaultClass:"fyvr128p"}}},borderLeftStyle:{values:{solid:{conditions:{base:"fyvr128v",active:"fyvr128w",disabled:"fyvr128x",focus:"fyvr128y",hover:"fyvr128z",checked:"fyvr1290"},defaultClass:"fyvr128v"},dashed:{conditions:{base:"fyvr1291",active:"fyvr1292",disabled:"fyvr1293",focus:"fyvr1294",hover:"fyvr1295",checked:"fyvr1296"},defaultClass:"fyvr1291"},dotted:{conditions:{base:"fyvr1297",active:"fyvr1298",disabled:"fyvr1299",focus:"fyvr129a",hover:"fyvr129b",checked:"fyvr129c"},defaultClass:"fyvr1297"}}},borderRightColor:{values:{black:{conditions:{base:"fyvr129d",active:"fyvr129e",disabled:"fyvr129f",focus:"fyvr129g",hover:"fyvr129h",checked:"fyvr129i"},defaultClass:"fyvr129d"},white:{conditions:{base:"fyvr129j",active:"fyvr129k",disabled:"fyvr129l",focus:"fyvr129m",hover:"fyvr129n",checked:"fyvr129o"},defaultClass:"fyvr129j"},inherit:{conditions:{base:"fyvr129p",active:"fyvr129q",disabled:"fyvr129r",focus:"fyvr129s",hover:"fyvr129t",checked:"fyvr129u"},defaultClass:"fyvr129p"},transparent:{conditions:{base:"fyvr129v",active:"fyvr129w",disabled:"fyvr129x",focus:"fyvr129y",hover:"fyvr129z",checked:"fyvr12a0"},defaultClass:"fyvr129v"},positive:{conditions:{base:"fyvr12a1",active:"fyvr12a2",disabled:"fyvr12a3",focus:"fyvr12a4",hover:"fyvr12a5",checked:"fyvr12a6"},defaultClass:"fyvr12a1"},negative:{conditions:{base:"fyvr12a7",active:"fyvr12a8",disabled:"fyvr12a9",focus:"fyvr12aa",hover:"fyvr12ab",checked:"fyvr12ac"},defaultClass:"fyvr12a7"},info:{conditions:{base:"fyvr12ad",active:"fyvr12ae",disabled:"fyvr12af",focus:"fyvr12ag",hover:"fyvr12ah",checked:"fyvr12ai"},defaultClass:"fyvr12ad"},warning:{conditions:{base:"fyvr12aj",active:"fyvr12ak",disabled:"fyvr12al",focus:"fyvr12am",hover:"fyvr12an",checked:"fyvr12ao"},defaultClass:"fyvr12aj"},gradientBackdrop:{conditions:{base:"fyvr12ap",active:"fyvr12aq",disabled:"fyvr12ar",focus:"fyvr12as",hover:"fyvr12at",checked:"fyvr12au"},defaultClass:"fyvr12ap"},gradientPrimary:{conditions:{base:"fyvr12av",active:"fyvr12aw",disabled:"fyvr12ax",focus:"fyvr12ay",hover:"fyvr12az",checked:"fyvr12b0"},defaultClass:"fyvr12av"},gradientSecondary:{conditions:{base:"fyvr12b1",active:"fyvr12b2",disabled:"fyvr12b3",focus:"fyvr12b4",hover:"fyvr12b5",checked:"fyvr12b6"},defaultClass:"fyvr12b1"},arbitrumDark:{conditions:{base:"fyvr12b7",active:"fyvr12b8",disabled:"fyvr12b9",focus:"fyvr12ba",hover:"fyvr12bb",checked:"fyvr12bc"},defaultClass:"fyvr12b7"},arbitrumLight:{conditions:{base:"fyvr12bd",active:"fyvr12be",disabled:"fyvr12bf",focus:"fyvr12bg",hover:"fyvr12bh",checked:"fyvr12bi"},defaultClass:"fyvr12bd"},avalanceDark:{conditions:{base:"fyvr12bj",active:"fyvr12bk",disabled:"fyvr12bl",focus:"fyvr12bm",hover:"fyvr12bn",checked:"fyvr12bo"},defaultClass:"fyvr12bj"},avalanceLight:{conditions:{base:"fyvr12bp",active:"fyvr12bq",disabled:"fyvr12br",focus:"fyvr12bs",hover:"fyvr12bt",checked:"fyvr12bu"},defaultClass:"fyvr12bp"},bscDark:{conditions:{base:"fyvr12bv",active:"fyvr12bw",disabled:"fyvr12bx",focus:"fyvr12by",hover:"fyvr12bz",checked:"fyvr12c0"},defaultClass:"fyvr12bv"},bscLight:{conditions:{base:"fyvr12c1",active:"fyvr12c2",disabled:"fyvr12c3",focus:"fyvr12c4",hover:"fyvr12c5",checked:"fyvr12c6"},defaultClass:"fyvr12c1"},ethereumDark:{conditions:{base:"fyvr12c7",active:"fyvr12c8",disabled:"fyvr12c9",focus:"fyvr12ca",hover:"fyvr12cb",checked:"fyvr12cc"},defaultClass:"fyvr12c7"},ethereumLight:{conditions:{base:"fyvr12cd",active:"fyvr12ce",disabled:"fyvr12cf",focus:"fyvr12cg",hover:"fyvr12ch",checked:"fyvr12ci"},defaultClass:"fyvr12cd"},gnosisDark:{conditions:{base:"fyvr12cj",active:"fyvr12ck",disabled:"fyvr12cl",focus:"fyvr12cm",hover:"fyvr12cn",checked:"fyvr12co"},defaultClass:"fyvr12cj"},gnosisLight:{conditions:{base:"fyvr12cp",active:"fyvr12cq",disabled:"fyvr12cr",focus:"fyvr12cs",hover:"fyvr12ct",checked:"fyvr12cu"},defaultClass:"fyvr12cp"},polygonDark:{conditions:{base:"fyvr12cv",active:"fyvr12cw",disabled:"fyvr12cx",focus:"fyvr12cy",hover:"fyvr12cz",checked:"fyvr12d0"},defaultClass:"fyvr12cv"},polygonLight:{conditions:{base:"fyvr12d1",active:"fyvr12d2",disabled:"fyvr12d3",focus:"fyvr12d4",hover:"fyvr12d5",checked:"fyvr12d6"},defaultClass:"fyvr12d1"},text100:{conditions:{base:"fyvr12d7",active:"fyvr12d8",disabled:"fyvr12d9",focus:"fyvr12da",hover:"fyvr12db",checked:"fyvr12dc"},defaultClass:"fyvr12d7"},text80:{conditions:{base:"fyvr12dd",active:"fyvr12de",disabled:"fyvr12df",focus:"fyvr12dg",hover:"fyvr12dh",checked:"fyvr12di"},defaultClass:"fyvr12dd"},text50:{conditions:{base:"fyvr12dj",active:"fyvr12dk",disabled:"fyvr12dl",focus:"fyvr12dm",hover:"fyvr12dn",checked:"fyvr12do"},defaultClass:"fyvr12dj"},textInverse100:{conditions:{base:"fyvr12dp",active:"fyvr12dq",disabled:"fyvr12dr",focus:"fyvr12ds",hover:"fyvr12dt",checked:"fyvr12du"},defaultClass:"fyvr12dp"},backgroundPrimary:{conditions:{base:"fyvr12dv",active:"fyvr12dw",disabled:"fyvr12dx",focus:"fyvr12dy",hover:"fyvr12dz",checked:"fyvr12e0"},defaultClass:"fyvr12dv"},backgroundSecondary:{conditions:{base:"fyvr12e1",active:"fyvr12e2",disabled:"fyvr12e3",focus:"fyvr12e4",hover:"fyvr12e5",checked:"fyvr12e6"},defaultClass:"fyvr12e1"},backgroundContrast:{conditions:{base:"fyvr12e7",active:"fyvr12e8",disabled:"fyvr12e9",focus:"fyvr12ea",hover:"fyvr12eb",checked:"fyvr12ec"},defaultClass:"fyvr12e7"},backgroundMuted:{conditions:{base:"fyvr12ed",active:"fyvr12ee",disabled:"fyvr12ef",focus:"fyvr12eg",hover:"fyvr12eh",checked:"fyvr12ei"},defaultClass:"fyvr12ed"},backgroundControl:{conditions:{base:"fyvr12ej",active:"fyvr12ek",disabled:"fyvr12el",focus:"fyvr12em",hover:"fyvr12en",checked:"fyvr12eo"},defaultClass:"fyvr12ej"},backgroundInverse:{conditions:{base:"fyvr12ep",active:"fyvr12eq",disabled:"fyvr12er",focus:"fyvr12es",hover:"fyvr12et",checked:"fyvr12eu"},defaultClass:"fyvr12ep"},backgroundBackdrop:{conditions:{base:"fyvr12ev",active:"fyvr12ew",disabled:"fyvr12ex",focus:"fyvr12ey",hover:"fyvr12ez",checked:"fyvr12f0"},defaultClass:"fyvr12ev"},backgroundOverlay:{conditions:{base:"fyvr12f1",active:"fyvr12f2",disabled:"fyvr12f3",focus:"fyvr12f4",hover:"fyvr12f5",checked:"fyvr12f6"},defaultClass:"fyvr12f1"},backgroundRaised:{conditions:{base:"fyvr12f7",active:"fyvr12f8",disabled:"fyvr12f9",focus:"fyvr12fa",hover:"fyvr12fb",checked:"fyvr12fc"},defaultClass:"fyvr12f7"},buttonGlass:{conditions:{base:"fyvr12fd",active:"fyvr12fe",disabled:"fyvr12ff",focus:"fyvr12fg",hover:"fyvr12fh",checked:"fyvr12fi"},defaultClass:"fyvr12fd"},buttonEmphasis:{conditions:{base:"fyvr12fj",active:"fyvr12fk",disabled:"fyvr12fl",focus:"fyvr12fm",hover:"fyvr12fn",checked:"fyvr12fo"},defaultClass:"fyvr12fj"},buttonInverse:{conditions:{base:"fyvr12fp",active:"fyvr12fq",disabled:"fyvr12fr",focus:"fyvr12fs",hover:"fyvr12ft",checked:"fyvr12fu"},defaultClass:"fyvr12fp"},borderNormal:{conditions:{base:"fyvr12fv",active:"fyvr12fw",disabled:"fyvr12fx",focus:"fyvr12fy",hover:"fyvr12fz",checked:"fyvr12g0"},defaultClass:"fyvr12fv"},borderFocus:{conditions:{base:"fyvr12g1",active:"fyvr12g2",disabled:"fyvr12g3",focus:"fyvr12g4",hover:"fyvr12g5",checked:"fyvr12g6"},defaultClass:"fyvr12g1"}}},borderRightStyle:{values:{solid:{conditions:{base:"fyvr12g7",active:"fyvr12g8",disabled:"fyvr12g9",focus:"fyvr12ga",hover:"fyvr12gb",checked:"fyvr12gc"},defaultClass:"fyvr12g7"},dashed:{conditions:{base:"fyvr12gd",active:"fyvr12ge",disabled:"fyvr12gf",focus:"fyvr12gg",hover:"fyvr12gh",checked:"fyvr12gi"},defaultClass:"fyvr12gd"},dotted:{conditions:{base:"fyvr12gj",active:"fyvr12gk",disabled:"fyvr12gl",focus:"fyvr12gm",hover:"fyvr12gn",checked:"fyvr12go"},defaultClass:"fyvr12gj"}}},borderTopColor:{values:{black:{conditions:{base:"fyvr12gp",active:"fyvr12gq",disabled:"fyvr12gr",focus:"fyvr12gs",hover:"fyvr12gt",checked:"fyvr12gu"},defaultClass:"fyvr12gp"},white:{conditions:{base:"fyvr12gv",active:"fyvr12gw",disabled:"fyvr12gx",focus:"fyvr12gy",hover:"fyvr12gz",checked:"fyvr12h0"},defaultClass:"fyvr12gv"},inherit:{conditions:{base:"fyvr12h1",active:"fyvr12h2",disabled:"fyvr12h3",focus:"fyvr12h4",hover:"fyvr12h5",checked:"fyvr12h6"},defaultClass:"fyvr12h1"},transparent:{conditions:{base:"fyvr12h7",active:"fyvr12h8",disabled:"fyvr12h9",focus:"fyvr12ha",hover:"fyvr12hb",checked:"fyvr12hc"},defaultClass:"fyvr12h7"},positive:{conditions:{base:"fyvr12hd",active:"fyvr12he",disabled:"fyvr12hf",focus:"fyvr12hg",hover:"fyvr12hh",checked:"fyvr12hi"},defaultClass:"fyvr12hd"},negative:{conditions:{base:"fyvr12hj",active:"fyvr12hk",disabled:"fyvr12hl",focus:"fyvr12hm",hover:"fyvr12hn",checked:"fyvr12ho"},defaultClass:"fyvr12hj"},info:{conditions:{base:"fyvr12hp",active:"fyvr12hq",disabled:"fyvr12hr",focus:"fyvr12hs",hover:"fyvr12ht",checked:"fyvr12hu"},defaultClass:"fyvr12hp"},warning:{conditions:{base:"fyvr12hv",active:"fyvr12hw",disabled:"fyvr12hx",focus:"fyvr12hy",hover:"fyvr12hz",checked:"fyvr12i0"},defaultClass:"fyvr12hv"},gradientBackdrop:{conditions:{base:"fyvr12i1",active:"fyvr12i2",disabled:"fyvr12i3",focus:"fyvr12i4",hover:"fyvr12i5",checked:"fyvr12i6"},defaultClass:"fyvr12i1"},gradientPrimary:{conditions:{base:"fyvr12i7",active:"fyvr12i8",disabled:"fyvr12i9",focus:"fyvr12ia",hover:"fyvr12ib",checked:"fyvr12ic"},defaultClass:"fyvr12i7"},gradientSecondary:{conditions:{base:"fyvr12id",active:"fyvr12ie",disabled:"fyvr12if",focus:"fyvr12ig",hover:"fyvr12ih",checked:"fyvr12ii"},defaultClass:"fyvr12id"},arbitrumDark:{conditions:{base:"fyvr12ij",active:"fyvr12ik",disabled:"fyvr12il",focus:"fyvr12im",hover:"fyvr12in",checked:"fyvr12io"},defaultClass:"fyvr12ij"},arbitrumLight:{conditions:{base:"fyvr12ip",active:"fyvr12iq",disabled:"fyvr12ir",focus:"fyvr12is",hover:"fyvr12it",checked:"fyvr12iu"},defaultClass:"fyvr12ip"},avalanceDark:{conditions:{base:"fyvr12iv",active:"fyvr12iw",disabled:"fyvr12ix",focus:"fyvr12iy",hover:"fyvr12iz",checked:"fyvr12j0"},defaultClass:"fyvr12iv"},avalanceLight:{conditions:{base:"fyvr12j1",active:"fyvr12j2",disabled:"fyvr12j3",focus:"fyvr12j4",hover:"fyvr12j5",checked:"fyvr12j6"},defaultClass:"fyvr12j1"},bscDark:{conditions:{base:"fyvr12j7",active:"fyvr12j8",disabled:"fyvr12j9",focus:"fyvr12ja",hover:"fyvr12jb",checked:"fyvr12jc"},defaultClass:"fyvr12j7"},bscLight:{conditions:{base:"fyvr12jd",active:"fyvr12je",disabled:"fyvr12jf",focus:"fyvr12jg",hover:"fyvr12jh",checked:"fyvr12ji"},defaultClass:"fyvr12jd"},ethereumDark:{conditions:{base:"fyvr12jj",active:"fyvr12jk",disabled:"fyvr12jl",focus:"fyvr12jm",hover:"fyvr12jn",checked:"fyvr12jo"},defaultClass:"fyvr12jj"},ethereumLight:{conditions:{base:"fyvr12jp",active:"fyvr12jq",disabled:"fyvr12jr",focus:"fyvr12js",hover:"fyvr12jt",checked:"fyvr12ju"},defaultClass:"fyvr12jp"},gnosisDark:{conditions:{base:"fyvr12jv",active:"fyvr12jw",disabled:"fyvr12jx",focus:"fyvr12jy",hover:"fyvr12jz",checked:"fyvr12k0"},defaultClass:"fyvr12jv"},gnosisLight:{conditions:{base:"fyvr12k1",active:"fyvr12k2",disabled:"fyvr12k3",focus:"fyvr12k4",hover:"fyvr12k5",checked:"fyvr12k6"},defaultClass:"fyvr12k1"},polygonDark:{conditions:{base:"fyvr12k7",active:"fyvr12k8",disabled:"fyvr12k9",focus:"fyvr12ka",hover:"fyvr12kb",checked:"fyvr12kc"},defaultClass:"fyvr12k7"},polygonLight:{conditions:{base:"fyvr12kd",active:"fyvr12ke",disabled:"fyvr12kf",focus:"fyvr12kg",hover:"fyvr12kh",checked:"fyvr12ki"},defaultClass:"fyvr12kd"},text100:{conditions:{base:"fyvr12kj",active:"fyvr12kk",disabled:"fyvr12kl",focus:"fyvr12km",hover:"fyvr12kn",checked:"fyvr12ko"},defaultClass:"fyvr12kj"},text80:{conditions:{base:"fyvr12kp",active:"fyvr12kq",disabled:"fyvr12kr",focus:"fyvr12ks",hover:"fyvr12kt",checked:"fyvr12ku"},defaultClass:"fyvr12kp"},text50:{conditions:{base:"fyvr12kv",active:"fyvr12kw",disabled:"fyvr12kx",focus:"fyvr12ky",hover:"fyvr12kz",checked:"fyvr12l0"},defaultClass:"fyvr12kv"},textInverse100:{conditions:{base:"fyvr12l1",active:"fyvr12l2",disabled:"fyvr12l3",focus:"fyvr12l4",hover:"fyvr12l5",checked:"fyvr12l6"},defaultClass:"fyvr12l1"},backgroundPrimary:{conditions:{base:"fyvr12l7",active:"fyvr12l8",disabled:"fyvr12l9",focus:"fyvr12la",hover:"fyvr12lb",checked:"fyvr12lc"},defaultClass:"fyvr12l7"},backgroundSecondary:{conditions:{base:"fyvr12ld",active:"fyvr12le",disabled:"fyvr12lf",focus:"fyvr12lg",hover:"fyvr12lh",checked:"fyvr12li"},defaultClass:"fyvr12ld"},backgroundContrast:{conditions:{base:"fyvr12lj",active:"fyvr12lk",disabled:"fyvr12ll",focus:"fyvr12lm",hover:"fyvr12ln",checked:"fyvr12lo"},defaultClass:"fyvr12lj"},backgroundMuted:{conditions:{base:"fyvr12lp",active:"fyvr12lq",disabled:"fyvr12lr",focus:"fyvr12ls",hover:"fyvr12lt",checked:"fyvr12lu"},defaultClass:"fyvr12lp"},backgroundControl:{conditions:{base:"fyvr12lv",active:"fyvr12lw",disabled:"fyvr12lx",focus:"fyvr12ly",hover:"fyvr12lz",checked:"fyvr12m0"},defaultClass:"fyvr12lv"},backgroundInverse:{conditions:{base:"fyvr12m1",active:"fyvr12m2",disabled:"fyvr12m3",focus:"fyvr12m4",hover:"fyvr12m5",checked:"fyvr12m6"},defaultClass:"fyvr12m1"},backgroundBackdrop:{conditions:{base:"fyvr12m7",active:"fyvr12m8",disabled:"fyvr12m9",focus:"fyvr12ma",hover:"fyvr12mb",checked:"fyvr12mc"},defaultClass:"fyvr12m7"},backgroundOverlay:{conditions:{base:"fyvr12md",active:"fyvr12me",disabled:"fyvr12mf",focus:"fyvr12mg",hover:"fyvr12mh",checked:"fyvr12mi"},defaultClass:"fyvr12md"},backgroundRaised:{conditions:{base:"fyvr12mj",active:"fyvr12mk",disabled:"fyvr12ml",focus:"fyvr12mm",hover:"fyvr12mn",checked:"fyvr12mo"},defaultClass:"fyvr12mj"},buttonGlass:{conditions:{base:"fyvr12mp",active:"fyvr12mq",disabled:"fyvr12mr",focus:"fyvr12ms",hover:"fyvr12mt",checked:"fyvr12mu"},defaultClass:"fyvr12mp"},buttonEmphasis:{conditions:{base:"fyvr12mv",active:"fyvr12mw",disabled:"fyvr12mx",focus:"fyvr12my",hover:"fyvr12mz",checked:"fyvr12n0"},defaultClass:"fyvr12mv"},buttonInverse:{conditions:{base:"fyvr12n1",active:"fyvr12n2",disabled:"fyvr12n3",focus:"fyvr12n4",hover:"fyvr12n5",checked:"fyvr12n6"},defaultClass:"fyvr12n1"},borderNormal:{conditions:{base:"fyvr12n7",active:"fyvr12n8",disabled:"fyvr12n9",focus:"fyvr12na",hover:"fyvr12nb",checked:"fyvr12nc"},defaultClass:"fyvr12n7"},borderFocus:{conditions:{base:"fyvr12nd",active:"fyvr12ne",disabled:"fyvr12nf",focus:"fyvr12ng",hover:"fyvr12nh",checked:"fyvr12ni"},defaultClass:"fyvr12nd"}}},borderTopStyle:{values:{solid:{conditions:{base:"fyvr12nj",active:"fyvr12nk",disabled:"fyvr12nl",focus:"fyvr12nm",hover:"fyvr12nn",checked:"fyvr12no"},defaultClass:"fyvr12nj"},dashed:{conditions:{base:"fyvr12np",active:"fyvr12nq",disabled:"fyvr12nr",focus:"fyvr12ns",hover:"fyvr12nt",checked:"fyvr12nu"},defaultClass:"fyvr12np"},dotted:{conditions:{base:"fyvr12nv",active:"fyvr12nw",disabled:"fyvr12nx",focus:"fyvr12ny",hover:"fyvr12nz",checked:"fyvr12o0"},defaultClass:"fyvr12nv"}}},border:{values:{none:{conditions:{base:"fyvr12o1",active:"fyvr12o2",disabled:"fyvr12o3",focus:"fyvr12o4",hover:"fyvr12o5",checked:"fyvr12o6"},defaultClass:"fyvr12o1"}}},color:{values:{black:{conditions:{base:"fyvr12o7",active:"fyvr12o8",disabled:"fyvr12o9",focus:"fyvr12oa",hover:"fyvr12ob",checked:"fyvr12oc"},defaultClass:"fyvr12o7"},white:{conditions:{base:"fyvr12od",active:"fyvr12oe",disabled:"fyvr12of",focus:"fyvr12og",hover:"fyvr12oh",checked:"fyvr12oi"},defaultClass:"fyvr12od"},inherit:{conditions:{base:"fyvr12oj",active:"fyvr12ok",disabled:"fyvr12ol",focus:"fyvr12om",hover:"fyvr12on",checked:"fyvr12oo"},defaultClass:"fyvr12oj"},transparent:{conditions:{base:"fyvr12op",active:"fyvr12oq",disabled:"fyvr12or",focus:"fyvr12os",hover:"fyvr12ot",checked:"fyvr12ou"},defaultClass:"fyvr12op"},positive:{conditions:{base:"fyvr12ov",active:"fyvr12ow",disabled:"fyvr12ox",focus:"fyvr12oy",hover:"fyvr12oz",checked:"fyvr12p0"},defaultClass:"fyvr12ov"},negative:{conditions:{base:"fyvr12p1",active:"fyvr12p2",disabled:"fyvr12p3",focus:"fyvr12p4",hover:"fyvr12p5",checked:"fyvr12p6"},defaultClass:"fyvr12p1"},info:{conditions:{base:"fyvr12p7",active:"fyvr12p8",disabled:"fyvr12p9",focus:"fyvr12pa",hover:"fyvr12pb",checked:"fyvr12pc"},defaultClass:"fyvr12p7"},warning:{conditions:{base:"fyvr12pd",active:"fyvr12pe",disabled:"fyvr12pf",focus:"fyvr12pg",hover:"fyvr12ph",checked:"fyvr12pi"},defaultClass:"fyvr12pd"},gradientBackdrop:{conditions:{base:"fyvr12pj",active:"fyvr12pk",disabled:"fyvr12pl",focus:"fyvr12pm",hover:"fyvr12pn",checked:"fyvr12po"},defaultClass:"fyvr12pj"},gradientPrimary:{conditions:{base:"fyvr12pp",active:"fyvr12pq",disabled:"fyvr12pr",focus:"fyvr12ps",hover:"fyvr12pt",checked:"fyvr12pu"},defaultClass:"fyvr12pp"},gradientSecondary:{conditions:{base:"fyvr12pv",active:"fyvr12pw",disabled:"fyvr12px",focus:"fyvr12py",hover:"fyvr12pz",checked:"fyvr12q0"},defaultClass:"fyvr12pv"},arbitrumDark:{conditions:{base:"fyvr12q1",active:"fyvr12q2",disabled:"fyvr12q3",focus:"fyvr12q4",hover:"fyvr12q5",checked:"fyvr12q6"},defaultClass:"fyvr12q1"},arbitrumLight:{conditions:{base:"fyvr12q7",active:"fyvr12q8",disabled:"fyvr12q9",focus:"fyvr12qa",hover:"fyvr12qb",checked:"fyvr12qc"},defaultClass:"fyvr12q7"},avalanceDark:{conditions:{base:"fyvr12qd",active:"fyvr12qe",disabled:"fyvr12qf",focus:"fyvr12qg",hover:"fyvr12qh",checked:"fyvr12qi"},defaultClass:"fyvr12qd"},avalanceLight:{conditions:{base:"fyvr12qj",active:"fyvr12qk",disabled:"fyvr12ql",focus:"fyvr12qm",hover:"fyvr12qn",checked:"fyvr12qo"},defaultClass:"fyvr12qj"},bscDark:{conditions:{base:"fyvr12qp",active:"fyvr12qq",disabled:"fyvr12qr",focus:"fyvr12qs",hover:"fyvr12qt",checked:"fyvr12qu"},defaultClass:"fyvr12qp"},bscLight:{conditions:{base:"fyvr12qv",active:"fyvr12qw",disabled:"fyvr12qx",focus:"fyvr12qy",hover:"fyvr12qz",checked:"fyvr12r0"},defaultClass:"fyvr12qv"},ethereumDark:{conditions:{base:"fyvr12r1",active:"fyvr12r2",disabled:"fyvr12r3",focus:"fyvr12r4",hover:"fyvr12r5",checked:"fyvr12r6"},defaultClass:"fyvr12r1"},ethereumLight:{conditions:{base:"fyvr12r7",active:"fyvr12r8",disabled:"fyvr12r9",focus:"fyvr12ra",hover:"fyvr12rb",checked:"fyvr12rc"},defaultClass:"fyvr12r7"},gnosisDark:{conditions:{base:"fyvr12rd",active:"fyvr12re",disabled:"fyvr12rf",focus:"fyvr12rg",hover:"fyvr12rh",checked:"fyvr12ri"},defaultClass:"fyvr12rd"},gnosisLight:{conditions:{base:"fyvr12rj",active:"fyvr12rk",disabled:"fyvr12rl",focus:"fyvr12rm",hover:"fyvr12rn",checked:"fyvr12ro"},defaultClass:"fyvr12rj"},polygonDark:{conditions:{base:"fyvr12rp",active:"fyvr12rq",disabled:"fyvr12rr",focus:"fyvr12rs",hover:"fyvr12rt",checked:"fyvr12ru"},defaultClass:"fyvr12rp"},polygonLight:{conditions:{base:"fyvr12rv",active:"fyvr12rw",disabled:"fyvr12rx",focus:"fyvr12ry",hover:"fyvr12rz",checked:"fyvr12s0"},defaultClass:"fyvr12rv"},text100:{conditions:{base:"fyvr12s1",active:"fyvr12s2",disabled:"fyvr12s3",focus:"fyvr12s4",hover:"fyvr12s5",checked:"fyvr12s6"},defaultClass:"fyvr12s1"},text80:{conditions:{base:"fyvr12s7",active:"fyvr12s8",disabled:"fyvr12s9",focus:"fyvr12sa",hover:"fyvr12sb",checked:"fyvr12sc"},defaultClass:"fyvr12s7"},text50:{conditions:{base:"fyvr12sd",active:"fyvr12se",disabled:"fyvr12sf",focus:"fyvr12sg",hover:"fyvr12sh",checked:"fyvr12si"},defaultClass:"fyvr12sd"},textInverse100:{conditions:{base:"fyvr12sj",active:"fyvr12sk",disabled:"fyvr12sl",focus:"fyvr12sm",hover:"fyvr12sn",checked:"fyvr12so"},defaultClass:"fyvr12sj"},backgroundPrimary:{conditions:{base:"fyvr12sp",active:"fyvr12sq",disabled:"fyvr12sr",focus:"fyvr12ss",hover:"fyvr12st",checked:"fyvr12su"},defaultClass:"fyvr12sp"},backgroundSecondary:{conditions:{base:"fyvr12sv",active:"fyvr12sw",disabled:"fyvr12sx",focus:"fyvr12sy",hover:"fyvr12sz",checked:"fyvr12t0"},defaultClass:"fyvr12sv"},backgroundContrast:{conditions:{base:"fyvr12t1",active:"fyvr12t2",disabled:"fyvr12t3",focus:"fyvr12t4",hover:"fyvr12t5",checked:"fyvr12t6"},defaultClass:"fyvr12t1"},backgroundMuted:{conditions:{base:"fyvr12t7",active:"fyvr12t8",disabled:"fyvr12t9",focus:"fyvr12ta",hover:"fyvr12tb",checked:"fyvr12tc"},defaultClass:"fyvr12t7"},backgroundControl:{conditions:{base:"fyvr12td",active:"fyvr12te",disabled:"fyvr12tf",focus:"fyvr12tg",hover:"fyvr12th",checked:"fyvr12ti"},defaultClass:"fyvr12td"},backgroundInverse:{conditions:{base:"fyvr12tj",active:"fyvr12tk",disabled:"fyvr12tl",focus:"fyvr12tm",hover:"fyvr12tn",checked:"fyvr12to"},defaultClass:"fyvr12tj"},backgroundBackdrop:{conditions:{base:"fyvr12tp",active:"fyvr12tq",disabled:"fyvr12tr",focus:"fyvr12ts",hover:"fyvr12tt",checked:"fyvr12tu"},defaultClass:"fyvr12tp"},backgroundOverlay:{conditions:{base:"fyvr12tv",active:"fyvr12tw",disabled:"fyvr12tx",focus:"fyvr12ty",hover:"fyvr12tz",checked:"fyvr12u0"},defaultClass:"fyvr12tv"},backgroundRaised:{conditions:{base:"fyvr12u1",active:"fyvr12u2",disabled:"fyvr12u3",focus:"fyvr12u4",hover:"fyvr12u5",checked:"fyvr12u6"},defaultClass:"fyvr12u1"},buttonGlass:{conditions:{base:"fyvr12u7",active:"fyvr12u8",disabled:"fyvr12u9",focus:"fyvr12ua",hover:"fyvr12ub",checked:"fyvr12uc"},defaultClass:"fyvr12u7"},buttonEmphasis:{conditions:{base:"fyvr12ud",active:"fyvr12ue",disabled:"fyvr12uf",focus:"fyvr12ug",hover:"fyvr12uh",checked:"fyvr12ui"},defaultClass:"fyvr12ud"},buttonInverse:{conditions:{base:"fyvr12uj",active:"fyvr12uk",disabled:"fyvr12ul",focus:"fyvr12um",hover:"fyvr12un",checked:"fyvr12uo"},defaultClass:"fyvr12uj"},borderNormal:{conditions:{base:"fyvr12up",active:"fyvr12uq",disabled:"fyvr12ur",focus:"fyvr12us",hover:"fyvr12ut",checked:"fyvr12uu"},defaultClass:"fyvr12up"},borderFocus:{conditions:{base:"fyvr12uv",active:"fyvr12uw",disabled:"fyvr12ux",focus:"fyvr12uy",hover:"fyvr12uz",checked:"fyvr12v0"},defaultClass:"fyvr12uv"}}},cursor:{values:{default:{conditions:{base:"fyvr12v1",active:"fyvr12v2",disabled:"fyvr12v3",focus:"fyvr12v4",hover:"fyvr12v5",checked:"fyvr12v6"},defaultClass:"fyvr12v1"},pointer:{conditions:{base:"fyvr12v7",active:"fyvr12v8",disabled:"fyvr12v9",focus:"fyvr12va",hover:"fyvr12vb",checked:"fyvr12vc"},defaultClass:"fyvr12v7"},text:{conditions:{base:"fyvr12vd",active:"fyvr12ve",disabled:"fyvr12vf",focus:"fyvr12vg",hover:"fyvr12vh",checked:"fyvr12vi"},defaultClass:"fyvr12vd"}}},opacity:{values:{0:{conditions:{base:"fyvr12vj",active:"fyvr12vk",disabled:"fyvr12vl",focus:"fyvr12vm",hover:"fyvr12vn",checked:"fyvr12vo"},defaultClass:"fyvr12vj"},50:{conditions:{base:"fyvr12vp",active:"fyvr12vq",disabled:"fyvr12vr",focus:"fyvr12vs",hover:"fyvr12vt",checked:"fyvr12vu"},defaultClass:"fyvr12vp"},80:{conditions:{base:"fyvr12vv",active:"fyvr12vw",disabled:"fyvr12vx",focus:"fyvr12vy",hover:"fyvr12vz",checked:"fyvr12w0"},defaultClass:"fyvr12vv"},100:{conditions:{base:"fyvr12w1",active:"fyvr12w2",disabled:"fyvr12w3",focus:"fyvr12w4",hover:"fyvr12w5",checked:"fyvr12w6"},defaultClass:"fyvr12w1"}}},pointerEvents:{values:{none:{conditions:{base:"fyvr12w7",active:"fyvr12w8",disabled:"fyvr12w9",focus:"fyvr12wa",hover:"fyvr12wb",checked:"fyvr12wc"},defaultClass:"fyvr12w7"},auto:{conditions:{base:"fyvr12wd",active:"fyvr12we",disabled:"fyvr12wf",focus:"fyvr12wg",hover:"fyvr12wh",checked:"fyvr12wi"},defaultClass:"fyvr12wd"}}},outline:{values:{none:{conditions:{base:"fyvr12wj",active:"fyvr12wk",disabled:"fyvr12wl",focus:"fyvr12wm",hover:"fyvr12wn",checked:"fyvr12wo"},defaultClass:"fyvr12wj"}}},boxShadow:{values:{none:{conditions:{base:"fyvr12wp",active:"fyvr12wq",disabled:"fyvr12wr",focus:"fyvr12ws",hover:"fyvr12wt",checked:"fyvr12wu"},defaultClass:"fyvr12wp"}}}}});const UG=["alignItems","alignSelf","flexDirection","gap","justifyContent","justifySelf","placeItems"],iw=t=>(t.display||(t.display=Object.keys(t).some(e=>UG.includes(e))?"flex":void 0),lI(t));iw.properties=lI.properties;const $G="https://assets.sequence.info/",WG=5,VG={xs:"small",sm:"small",md:"medium",lg:"large",xl:"large"},uI=t=>t?VG[t]||t:"medium",HG=(t,e)=>t.replace(/\/(small|medium|large)\//,`/${uI(e)}/`),zG=(t,e)=>$G+`images/networks/${uI(e)}/${t}.webp?v${WG}`;function fI(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e{const{as:r="div",sx:n={},className:s,...i}=t,o={},a={};for(const l in i)iw.properties.has(l)?o[l]=i[l]:a[l]=i[l];const c=iw({...o,...n});return m.createElement(r,{className:Yr(c,s),...a,ref:e})});var dI={exports:{}},Ld={};/** + )`,gradientPrimary:"linear-gradient(89.69deg, #4411E1 0.27%, #7537F9 99.73%)",gradientSecondary:"linear-gradient(32.51deg, #951990 -15.23%, #3A35B1 48.55%, #20A8B0 100%)",arbitrumDark:"#212D44",arbitrumLight:"#93D4FF",avalanceDark:"#810C0C",avalanceLight:"#FF8080",bscDark:"#584508",bscLight:"#FCCF43",ethereumDark:"#132362",ethereumLight:"#AABBFF",gnosisDark:"#084246",gnosisLight:"#8CF6FD",polygonDark:"#350881",polygonLight:"#C7A6FF"},NG={...uI,text100:"rgba(255, 255, 255, 1)",text80:"rgba(255, 255, 255, 0.8)",text50:"rgba(255, 255, 255, 0.5)",textInverse100:"rgba(0, 0, 0, 1)",backgroundPrimary:"rgba(0, 0, 0, 1)",backgroundSecondary:"rgba(255, 255, 255, 0.1)",backgroundContrast:"rgba(0, 0, 0, 0.5)",backgroundMuted:"rgba(255, 255, 255, 0.05)",backgroundControl:"rgba(255, 255, 255, 0.25)",backgroundInverse:"rgba(255, 255, 255, 1)",backgroundBackdrop:"rgba(34, 34, 34, 0.9)",backgroundOverlay:"rgba(0, 0, 0, 0.7)",backgroundRaised:"rgba(54, 54, 54, 0.7)",buttonGlass:"rgba(255, 255, 255, 0.15)",buttonEmphasis:"rgba(0, 0, 0, 0.5)",buttonInverse:"rgba(255, 255, 255, 0.8)",borderNormal:"rgba(255, 255, 255, 0.25)",borderFocus:"rgba(255, 255, 255, 0.5)"},_G={...uI,text100:"rgba(0, 0, 0, 1)",text80:"rgba(0, 0, 0, 0.8)",text50:"rgba(0, 0, 0, 0.5)",textInverse100:"rgba(255, 255, 255, 1)",backgroundPrimary:"rgba(244, 244, 244, 1)",backgroundSecondary:"rgba(0, 0, 0, 0.1)",backgroundContrast:"rgba(244, 244, 244, 0.5)",backgroundMuted:"rgba(0, 0, 0, 0.05)",backgroundControl:"rgba(0, 0, 0, 0.25)",backgroundInverse:"rgba(0, 0, 0, 1)",backgroundBackdrop:"rgba(221, 221, 221, 0.9)",backgroundOverlay:"rgba(244, 244, 244, 0.7)",backgroundRaised:"rgba(192, 192, 192, 0.7)",buttonGlass:"rgba(0, 0, 0, 0.15)",buttonEmphasis:"rgba(255, 255, 255, 0.5)",buttonInverse:"rgba(0, 0, 0, 0.8)",borderNormal:"rgba(0, 0, 0, 0.25)",borderFocus:"rgba(0, 0, 0, 0.5)"},MG={dark:NG,light:_G},DG={inherit:{fontFamily:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit",fontWeight:"inherit"},xlarge:{fontFamily:"body",fontSize:"xlarge",lineHeight:"9",letterSpacing:"none",fontWeight:"bold"},large:{fontFamily:"body",fontSize:"large",lineHeight:"7",letterSpacing:"normal",fontWeight:"semibold"},medium:{fontFamily:"body",fontSize:"medium",lineHeight:"6",letterSpacing:"normal",fontWeight:"bold"},normal:{fontFamily:"body",fontSize:"normal",lineHeight:"5",letterSpacing:"wide",fontWeight:"normal"},small:{fontFamily:"body",fontSize:"small",lineHeight:"4",letterSpacing:"wide",fontWeight:"medium"},xsmall:{fontFamily:"body",fontSize:"xsmall",lineHeight:"4",letterSpacing:"wide",fontWeight:"bold"},code:{fontFamily:"mono",fontSize:"normal",lineHeight:"5",letterSpacing:"none",fontWeight:"normal"}};var sS={colors:{black:"var(--seq-colors-black)",white:"var(--seq-colors-white)",inherit:"var(--seq-colors-inherit)",transparent:"var(--seq-colors-transparent)",positive:"var(--seq-colors-positive)",negative:"var(--seq-colors-negative)",info:"var(--seq-colors-info)",warning:"var(--seq-colors-warning)",gradientBackdrop:"var(--seq-colors-gradient-backdrop)",gradientPrimary:"var(--seq-colors-gradient-primary)",gradientSecondary:"var(--seq-colors-gradient-secondary)",arbitrumDark:"var(--seq-colors-arbitrum-dark)",arbitrumLight:"var(--seq-colors-arbitrum-light)",avalanceDark:"var(--seq-colors-avalance-dark)",avalanceLight:"var(--seq-colors-avalance-light)",bscDark:"var(--seq-colors-bsc-dark)",bscLight:"var(--seq-colors-bsc-light)",ethereumDark:"var(--seq-colors-ethereum-dark)",ethereumLight:"var(--seq-colors-ethereum-light)",gnosisDark:"var(--seq-colors-gnosis-dark)",gnosisLight:"var(--seq-colors-gnosis-light)",polygonDark:"var(--seq-colors-polygon-dark)",polygonLight:"var(--seq-colors-polygon-light)",text100:"var(--seq-colors-text100)",text80:"var(--seq-colors-text80)",text50:"var(--seq-colors-text50)",textInverse100:"var(--seq-colors-text-inverse100)",backgroundPrimary:"var(--seq-colors-background-primary)",backgroundSecondary:"var(--seq-colors-background-secondary)",backgroundContrast:"var(--seq-colors-background-contrast)",backgroundMuted:"var(--seq-colors-background-muted)",backgroundControl:"var(--seq-colors-background-control)",backgroundInverse:"var(--seq-colors-background-inverse)",backgroundBackdrop:"var(--seq-colors-background-backdrop)",backgroundOverlay:"var(--seq-colors-background-overlay)",backgroundRaised:"var(--seq-colors-background-raised)",buttonGlass:"var(--seq-colors-button-glass)",buttonEmphasis:"var(--seq-colors-button-emphasis)",buttonInverse:"var(--seq-colors-button-inverse)",borderNormal:"var(--seq-colors-border-normal)",borderFocus:"var(--seq-colors-border-focus)"}};function BG(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function LG(t){var e=BG(t,"string");return typeof e=="symbol"?e:String(e)}function jG(t,e,r){return e=LG(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function iS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function sx(t){for(var e=1;efunction(){for(var e=arguments.length,r=new Array(e),n=0;nc.styles)),i=Object.keys(s),o=i.filter(c=>"mappings"in s[c]),a=c=>{var l=[],u={},f=sx({},c),d=!1;for(var h of o){var y=c[h];if(y!=null){var p=s[h];d=!0;for(var b of p.mappings)u[b]=y,f[b]==null&&delete f[b]}}var v=d?sx(sx({},u),f):c,g=function(){var S=v[x],I=s[x];try{if(I.mappings)return 1;if(typeof S=="string"||typeof S=="number")l.push(I.values[S].defaultClass);else if(Array.isArray(S))for(var R=0;Rt,$G=function(){return FG(UG)(...arguments)},fI=$G({conditions:{defaultCondition:"sm",conditionNames:["sm","md","lg","xl"],responsiveArray:void 0},styles:{borderWidth:{mappings:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"]},borderRadius:{mappings:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderLeftRadius:{mappings:["borderBottomLeftRadius","borderTopLeftRadius"]},borderRightRadius:{mappings:["borderBottomRightRadius","borderTopRightRadius"]},borderTopRadius:{mappings:["borderTopLeftRadius","borderTopRightRadius"]},borderBottomRadius:{mappings:["borderBottomLeftRadius","borderBottomRightRadius"]},margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},overflow:{mappings:["overflowX","overflowY"]},padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},placeItems:{mappings:["justifyContent","alignItems"]},inset:{mappings:["top","bottom","left","right"]},width:{values:{0:{conditions:{sm:"fyvr10",md:"fyvr11",lg:"fyvr12",xl:"fyvr13"},defaultClass:"fyvr10"},1:{conditions:{sm:"fyvr14",md:"fyvr15",lg:"fyvr16",xl:"fyvr17"},defaultClass:"fyvr14"},2:{conditions:{sm:"fyvr18",md:"fyvr19",lg:"fyvr1a",xl:"fyvr1b"},defaultClass:"fyvr18"},3:{conditions:{sm:"fyvr1c",md:"fyvr1d",lg:"fyvr1e",xl:"fyvr1f"},defaultClass:"fyvr1c"},4:{conditions:{sm:"fyvr1g",md:"fyvr1h",lg:"fyvr1i",xl:"fyvr1j"},defaultClass:"fyvr1g"},5:{conditions:{sm:"fyvr1k",md:"fyvr1l",lg:"fyvr1m",xl:"fyvr1n"},defaultClass:"fyvr1k"},6:{conditions:{sm:"fyvr1o",md:"fyvr1p",lg:"fyvr1q",xl:"fyvr1r"},defaultClass:"fyvr1o"},7:{conditions:{sm:"fyvr1s",md:"fyvr1t",lg:"fyvr1u",xl:"fyvr1v"},defaultClass:"fyvr1s"},8:{conditions:{sm:"fyvr1w",md:"fyvr1x",lg:"fyvr1y",xl:"fyvr1z"},defaultClass:"fyvr1w"},9:{conditions:{sm:"fyvr110",md:"fyvr111",lg:"fyvr112",xl:"fyvr113"},defaultClass:"fyvr110"},10:{conditions:{sm:"fyvr114",md:"fyvr115",lg:"fyvr116",xl:"fyvr117"},defaultClass:"fyvr114"},12:{conditions:{sm:"fyvr118",md:"fyvr119",lg:"fyvr11a",xl:"fyvr11b"},defaultClass:"fyvr118"},14:{conditions:{sm:"fyvr11c",md:"fyvr11d",lg:"fyvr11e",xl:"fyvr11f"},defaultClass:"fyvr11c"},16:{conditions:{sm:"fyvr11g",md:"fyvr11h",lg:"fyvr11i",xl:"fyvr11j"},defaultClass:"fyvr11g"},"0.25":{conditions:{sm:"fyvr11k",md:"fyvr11l",lg:"fyvr11m",xl:"fyvr11n"},defaultClass:"fyvr11k"},"0.5":{conditions:{sm:"fyvr11o",md:"fyvr11p",lg:"fyvr11q",xl:"fyvr11r"},defaultClass:"fyvr11o"},"1.5":{conditions:{sm:"fyvr11s",md:"fyvr11t",lg:"fyvr11u",xl:"fyvr11v"},defaultClass:"fyvr11s"},none:{conditions:{sm:"fyvr11w",md:"fyvr11x",lg:"fyvr11y",xl:"fyvr11z"},defaultClass:"fyvr11w"},px:{conditions:{sm:"fyvr120",md:"fyvr121",lg:"fyvr122",xl:"fyvr123"},defaultClass:"fyvr120"},auto:{conditions:{sm:"fyvr124",md:"fyvr125",lg:"fyvr126",xl:"fyvr127"},defaultClass:"fyvr124"},full:{conditions:{sm:"fyvr128",md:"fyvr129",lg:"fyvr12a",xl:"fyvr12b"},defaultClass:"fyvr128"},"1/2":{conditions:{sm:"fyvr12c",md:"fyvr12d",lg:"fyvr12e",xl:"fyvr12f"},defaultClass:"fyvr12c"},"1/3":{conditions:{sm:"fyvr12g",md:"fyvr12h",lg:"fyvr12i",xl:"fyvr12j"},defaultClass:"fyvr12g"},"2/3":{conditions:{sm:"fyvr12k",md:"fyvr12l",lg:"fyvr12m",xl:"fyvr12n"},defaultClass:"fyvr12k"},"1/4":{conditions:{sm:"fyvr12o",md:"fyvr12p",lg:"fyvr12q",xl:"fyvr12r"},defaultClass:"fyvr12o"},"3/4":{conditions:{sm:"fyvr12s",md:"fyvr12t",lg:"fyvr12u",xl:"fyvr12v"},defaultClass:"fyvr12s"},fit:{conditions:{sm:"fyvr12w",md:"fyvr12x",lg:"fyvr12y",xl:"fyvr12z"},defaultClass:"fyvr12w"},max:{conditions:{sm:"fyvr130",md:"fyvr131",lg:"fyvr132",xl:"fyvr133"},defaultClass:"fyvr130"},min:{conditions:{sm:"fyvr134",md:"fyvr135",lg:"fyvr136",xl:"fyvr137"},defaultClass:"fyvr134"},vw:{conditions:{sm:"fyvr138",md:"fyvr139",lg:"fyvr13a",xl:"fyvr13b"},defaultClass:"fyvr138"},vh:{conditions:{sm:"fyvr13c",md:"fyvr13d",lg:"fyvr13e",xl:"fyvr13f"},defaultClass:"fyvr13c"}}},height:{values:{0:{conditions:{sm:"fyvr13g",md:"fyvr13h",lg:"fyvr13i",xl:"fyvr13j"},defaultClass:"fyvr13g"},1:{conditions:{sm:"fyvr13k",md:"fyvr13l",lg:"fyvr13m",xl:"fyvr13n"},defaultClass:"fyvr13k"},2:{conditions:{sm:"fyvr13o",md:"fyvr13p",lg:"fyvr13q",xl:"fyvr13r"},defaultClass:"fyvr13o"},3:{conditions:{sm:"fyvr13s",md:"fyvr13t",lg:"fyvr13u",xl:"fyvr13v"},defaultClass:"fyvr13s"},4:{conditions:{sm:"fyvr13w",md:"fyvr13x",lg:"fyvr13y",xl:"fyvr13z"},defaultClass:"fyvr13w"},5:{conditions:{sm:"fyvr140",md:"fyvr141",lg:"fyvr142",xl:"fyvr143"},defaultClass:"fyvr140"},6:{conditions:{sm:"fyvr144",md:"fyvr145",lg:"fyvr146",xl:"fyvr147"},defaultClass:"fyvr144"},7:{conditions:{sm:"fyvr148",md:"fyvr149",lg:"fyvr14a",xl:"fyvr14b"},defaultClass:"fyvr148"},8:{conditions:{sm:"fyvr14c",md:"fyvr14d",lg:"fyvr14e",xl:"fyvr14f"},defaultClass:"fyvr14c"},9:{conditions:{sm:"fyvr14g",md:"fyvr14h",lg:"fyvr14i",xl:"fyvr14j"},defaultClass:"fyvr14g"},10:{conditions:{sm:"fyvr14k",md:"fyvr14l",lg:"fyvr14m",xl:"fyvr14n"},defaultClass:"fyvr14k"},12:{conditions:{sm:"fyvr14o",md:"fyvr14p",lg:"fyvr14q",xl:"fyvr14r"},defaultClass:"fyvr14o"},14:{conditions:{sm:"fyvr14s",md:"fyvr14t",lg:"fyvr14u",xl:"fyvr14v"},defaultClass:"fyvr14s"},16:{conditions:{sm:"fyvr14w",md:"fyvr14x",lg:"fyvr14y",xl:"fyvr14z"},defaultClass:"fyvr14w"},"0.25":{conditions:{sm:"fyvr150",md:"fyvr151",lg:"fyvr152",xl:"fyvr153"},defaultClass:"fyvr150"},"0.5":{conditions:{sm:"fyvr154",md:"fyvr155",lg:"fyvr156",xl:"fyvr157"},defaultClass:"fyvr154"},"1.5":{conditions:{sm:"fyvr158",md:"fyvr159",lg:"fyvr15a",xl:"fyvr15b"},defaultClass:"fyvr158"},none:{conditions:{sm:"fyvr15c",md:"fyvr15d",lg:"fyvr15e",xl:"fyvr15f"},defaultClass:"fyvr15c"},px:{conditions:{sm:"fyvr15g",md:"fyvr15h",lg:"fyvr15i",xl:"fyvr15j"},defaultClass:"fyvr15g"},auto:{conditions:{sm:"fyvr15k",md:"fyvr15l",lg:"fyvr15m",xl:"fyvr15n"},defaultClass:"fyvr15k"},full:{conditions:{sm:"fyvr15o",md:"fyvr15p",lg:"fyvr15q",xl:"fyvr15r"},defaultClass:"fyvr15o"},"1/2":{conditions:{sm:"fyvr15s",md:"fyvr15t",lg:"fyvr15u",xl:"fyvr15v"},defaultClass:"fyvr15s"},"1/3":{conditions:{sm:"fyvr15w",md:"fyvr15x",lg:"fyvr15y",xl:"fyvr15z"},defaultClass:"fyvr15w"},"2/3":{conditions:{sm:"fyvr160",md:"fyvr161",lg:"fyvr162",xl:"fyvr163"},defaultClass:"fyvr160"},"1/4":{conditions:{sm:"fyvr164",md:"fyvr165",lg:"fyvr166",xl:"fyvr167"},defaultClass:"fyvr164"},"3/4":{conditions:{sm:"fyvr168",md:"fyvr169",lg:"fyvr16a",xl:"fyvr16b"},defaultClass:"fyvr168"},fit:{conditions:{sm:"fyvr16c",md:"fyvr16d",lg:"fyvr16e",xl:"fyvr16f"},defaultClass:"fyvr16c"},max:{conditions:{sm:"fyvr16g",md:"fyvr16h",lg:"fyvr16i",xl:"fyvr16j"},defaultClass:"fyvr16g"},min:{conditions:{sm:"fyvr16k",md:"fyvr16l",lg:"fyvr16m",xl:"fyvr16n"},defaultClass:"fyvr16k"},vw:{conditions:{sm:"fyvr16o",md:"fyvr16p",lg:"fyvr16q",xl:"fyvr16r"},defaultClass:"fyvr16o"},vh:{conditions:{sm:"fyvr16s",md:"fyvr16t",lg:"fyvr16u",xl:"fyvr16v"},defaultClass:"fyvr16s"}}},maxWidth:{values:{0:{conditions:{sm:"fyvr16w",md:"fyvr16x",lg:"fyvr16y",xl:"fyvr16z"},defaultClass:"fyvr16w"},1:{conditions:{sm:"fyvr170",md:"fyvr171",lg:"fyvr172",xl:"fyvr173"},defaultClass:"fyvr170"},2:{conditions:{sm:"fyvr174",md:"fyvr175",lg:"fyvr176",xl:"fyvr177"},defaultClass:"fyvr174"},3:{conditions:{sm:"fyvr178",md:"fyvr179",lg:"fyvr17a",xl:"fyvr17b"},defaultClass:"fyvr178"},4:{conditions:{sm:"fyvr17c",md:"fyvr17d",lg:"fyvr17e",xl:"fyvr17f"},defaultClass:"fyvr17c"},5:{conditions:{sm:"fyvr17g",md:"fyvr17h",lg:"fyvr17i",xl:"fyvr17j"},defaultClass:"fyvr17g"},6:{conditions:{sm:"fyvr17k",md:"fyvr17l",lg:"fyvr17m",xl:"fyvr17n"},defaultClass:"fyvr17k"},7:{conditions:{sm:"fyvr17o",md:"fyvr17p",lg:"fyvr17q",xl:"fyvr17r"},defaultClass:"fyvr17o"},8:{conditions:{sm:"fyvr17s",md:"fyvr17t",lg:"fyvr17u",xl:"fyvr17v"},defaultClass:"fyvr17s"},9:{conditions:{sm:"fyvr17w",md:"fyvr17x",lg:"fyvr17y",xl:"fyvr17z"},defaultClass:"fyvr17w"},10:{conditions:{sm:"fyvr180",md:"fyvr181",lg:"fyvr182",xl:"fyvr183"},defaultClass:"fyvr180"},12:{conditions:{sm:"fyvr184",md:"fyvr185",lg:"fyvr186",xl:"fyvr187"},defaultClass:"fyvr184"},14:{conditions:{sm:"fyvr188",md:"fyvr189",lg:"fyvr18a",xl:"fyvr18b"},defaultClass:"fyvr188"},16:{conditions:{sm:"fyvr18c",md:"fyvr18d",lg:"fyvr18e",xl:"fyvr18f"},defaultClass:"fyvr18c"},"0.25":{conditions:{sm:"fyvr18g",md:"fyvr18h",lg:"fyvr18i",xl:"fyvr18j"},defaultClass:"fyvr18g"},"0.5":{conditions:{sm:"fyvr18k",md:"fyvr18l",lg:"fyvr18m",xl:"fyvr18n"},defaultClass:"fyvr18k"},"1.5":{conditions:{sm:"fyvr18o",md:"fyvr18p",lg:"fyvr18q",xl:"fyvr18r"},defaultClass:"fyvr18o"},none:{conditions:{sm:"fyvr18s",md:"fyvr18t",lg:"fyvr18u",xl:"fyvr18v"},defaultClass:"fyvr18s"},px:{conditions:{sm:"fyvr18w",md:"fyvr18x",lg:"fyvr18y",xl:"fyvr18z"},defaultClass:"fyvr18w"},auto:{conditions:{sm:"fyvr190",md:"fyvr191",lg:"fyvr192",xl:"fyvr193"},defaultClass:"fyvr190"},full:{conditions:{sm:"fyvr194",md:"fyvr195",lg:"fyvr196",xl:"fyvr197"},defaultClass:"fyvr194"},"1/2":{conditions:{sm:"fyvr198",md:"fyvr199",lg:"fyvr19a",xl:"fyvr19b"},defaultClass:"fyvr198"},"1/3":{conditions:{sm:"fyvr19c",md:"fyvr19d",lg:"fyvr19e",xl:"fyvr19f"},defaultClass:"fyvr19c"},"2/3":{conditions:{sm:"fyvr19g",md:"fyvr19h",lg:"fyvr19i",xl:"fyvr19j"},defaultClass:"fyvr19g"},"1/4":{conditions:{sm:"fyvr19k",md:"fyvr19l",lg:"fyvr19m",xl:"fyvr19n"},defaultClass:"fyvr19k"},"3/4":{conditions:{sm:"fyvr19o",md:"fyvr19p",lg:"fyvr19q",xl:"fyvr19r"},defaultClass:"fyvr19o"},fit:{conditions:{sm:"fyvr19s",md:"fyvr19t",lg:"fyvr19u",xl:"fyvr19v"},defaultClass:"fyvr19s"},max:{conditions:{sm:"fyvr19w",md:"fyvr19x",lg:"fyvr19y",xl:"fyvr19z"},defaultClass:"fyvr19w"},min:{conditions:{sm:"fyvr1a0",md:"fyvr1a1",lg:"fyvr1a2",xl:"fyvr1a3"},defaultClass:"fyvr1a0"},vw:{conditions:{sm:"fyvr1a4",md:"fyvr1a5",lg:"fyvr1a6",xl:"fyvr1a7"},defaultClass:"fyvr1a4"},vh:{conditions:{sm:"fyvr1a8",md:"fyvr1a9",lg:"fyvr1aa",xl:"fyvr1ab"},defaultClass:"fyvr1a8"}}},maxHeight:{values:{0:{conditions:{sm:"fyvr1ac",md:"fyvr1ad",lg:"fyvr1ae",xl:"fyvr1af"},defaultClass:"fyvr1ac"},1:{conditions:{sm:"fyvr1ag",md:"fyvr1ah",lg:"fyvr1ai",xl:"fyvr1aj"},defaultClass:"fyvr1ag"},2:{conditions:{sm:"fyvr1ak",md:"fyvr1al",lg:"fyvr1am",xl:"fyvr1an"},defaultClass:"fyvr1ak"},3:{conditions:{sm:"fyvr1ao",md:"fyvr1ap",lg:"fyvr1aq",xl:"fyvr1ar"},defaultClass:"fyvr1ao"},4:{conditions:{sm:"fyvr1as",md:"fyvr1at",lg:"fyvr1au",xl:"fyvr1av"},defaultClass:"fyvr1as"},5:{conditions:{sm:"fyvr1aw",md:"fyvr1ax",lg:"fyvr1ay",xl:"fyvr1az"},defaultClass:"fyvr1aw"},6:{conditions:{sm:"fyvr1b0",md:"fyvr1b1",lg:"fyvr1b2",xl:"fyvr1b3"},defaultClass:"fyvr1b0"},7:{conditions:{sm:"fyvr1b4",md:"fyvr1b5",lg:"fyvr1b6",xl:"fyvr1b7"},defaultClass:"fyvr1b4"},8:{conditions:{sm:"fyvr1b8",md:"fyvr1b9",lg:"fyvr1ba",xl:"fyvr1bb"},defaultClass:"fyvr1b8"},9:{conditions:{sm:"fyvr1bc",md:"fyvr1bd",lg:"fyvr1be",xl:"fyvr1bf"},defaultClass:"fyvr1bc"},10:{conditions:{sm:"fyvr1bg",md:"fyvr1bh",lg:"fyvr1bi",xl:"fyvr1bj"},defaultClass:"fyvr1bg"},12:{conditions:{sm:"fyvr1bk",md:"fyvr1bl",lg:"fyvr1bm",xl:"fyvr1bn"},defaultClass:"fyvr1bk"},14:{conditions:{sm:"fyvr1bo",md:"fyvr1bp",lg:"fyvr1bq",xl:"fyvr1br"},defaultClass:"fyvr1bo"},16:{conditions:{sm:"fyvr1bs",md:"fyvr1bt",lg:"fyvr1bu",xl:"fyvr1bv"},defaultClass:"fyvr1bs"},"0.25":{conditions:{sm:"fyvr1bw",md:"fyvr1bx",lg:"fyvr1by",xl:"fyvr1bz"},defaultClass:"fyvr1bw"},"0.5":{conditions:{sm:"fyvr1c0",md:"fyvr1c1",lg:"fyvr1c2",xl:"fyvr1c3"},defaultClass:"fyvr1c0"},"1.5":{conditions:{sm:"fyvr1c4",md:"fyvr1c5",lg:"fyvr1c6",xl:"fyvr1c7"},defaultClass:"fyvr1c4"},none:{conditions:{sm:"fyvr1c8",md:"fyvr1c9",lg:"fyvr1ca",xl:"fyvr1cb"},defaultClass:"fyvr1c8"},px:{conditions:{sm:"fyvr1cc",md:"fyvr1cd",lg:"fyvr1ce",xl:"fyvr1cf"},defaultClass:"fyvr1cc"},auto:{conditions:{sm:"fyvr1cg",md:"fyvr1ch",lg:"fyvr1ci",xl:"fyvr1cj"},defaultClass:"fyvr1cg"},full:{conditions:{sm:"fyvr1ck",md:"fyvr1cl",lg:"fyvr1cm",xl:"fyvr1cn"},defaultClass:"fyvr1ck"},"1/2":{conditions:{sm:"fyvr1co",md:"fyvr1cp",lg:"fyvr1cq",xl:"fyvr1cr"},defaultClass:"fyvr1co"},"1/3":{conditions:{sm:"fyvr1cs",md:"fyvr1ct",lg:"fyvr1cu",xl:"fyvr1cv"},defaultClass:"fyvr1cs"},"2/3":{conditions:{sm:"fyvr1cw",md:"fyvr1cx",lg:"fyvr1cy",xl:"fyvr1cz"},defaultClass:"fyvr1cw"},"1/4":{conditions:{sm:"fyvr1d0",md:"fyvr1d1",lg:"fyvr1d2",xl:"fyvr1d3"},defaultClass:"fyvr1d0"},"3/4":{conditions:{sm:"fyvr1d4",md:"fyvr1d5",lg:"fyvr1d6",xl:"fyvr1d7"},defaultClass:"fyvr1d4"},fit:{conditions:{sm:"fyvr1d8",md:"fyvr1d9",lg:"fyvr1da",xl:"fyvr1db"},defaultClass:"fyvr1d8"},max:{conditions:{sm:"fyvr1dc",md:"fyvr1dd",lg:"fyvr1de",xl:"fyvr1df"},defaultClass:"fyvr1dc"},min:{conditions:{sm:"fyvr1dg",md:"fyvr1dh",lg:"fyvr1di",xl:"fyvr1dj"},defaultClass:"fyvr1dg"},vw:{conditions:{sm:"fyvr1dk",md:"fyvr1dl",lg:"fyvr1dm",xl:"fyvr1dn"},defaultClass:"fyvr1dk"},vh:{conditions:{sm:"fyvr1do",md:"fyvr1dp",lg:"fyvr1dq",xl:"fyvr1dr"},defaultClass:"fyvr1do"}}},minWidth:{values:{0:{conditions:{sm:"fyvr1ds",md:"fyvr1dt",lg:"fyvr1du",xl:"fyvr1dv"},defaultClass:"fyvr1ds"},1:{conditions:{sm:"fyvr1dw",md:"fyvr1dx",lg:"fyvr1dy",xl:"fyvr1dz"},defaultClass:"fyvr1dw"},2:{conditions:{sm:"fyvr1e0",md:"fyvr1e1",lg:"fyvr1e2",xl:"fyvr1e3"},defaultClass:"fyvr1e0"},3:{conditions:{sm:"fyvr1e4",md:"fyvr1e5",lg:"fyvr1e6",xl:"fyvr1e7"},defaultClass:"fyvr1e4"},4:{conditions:{sm:"fyvr1e8",md:"fyvr1e9",lg:"fyvr1ea",xl:"fyvr1eb"},defaultClass:"fyvr1e8"},5:{conditions:{sm:"fyvr1ec",md:"fyvr1ed",lg:"fyvr1ee",xl:"fyvr1ef"},defaultClass:"fyvr1ec"},6:{conditions:{sm:"fyvr1eg",md:"fyvr1eh",lg:"fyvr1ei",xl:"fyvr1ej"},defaultClass:"fyvr1eg"},7:{conditions:{sm:"fyvr1ek",md:"fyvr1el",lg:"fyvr1em",xl:"fyvr1en"},defaultClass:"fyvr1ek"},8:{conditions:{sm:"fyvr1eo",md:"fyvr1ep",lg:"fyvr1eq",xl:"fyvr1er"},defaultClass:"fyvr1eo"},9:{conditions:{sm:"fyvr1es",md:"fyvr1et",lg:"fyvr1eu",xl:"fyvr1ev"},defaultClass:"fyvr1es"},10:{conditions:{sm:"fyvr1ew",md:"fyvr1ex",lg:"fyvr1ey",xl:"fyvr1ez"},defaultClass:"fyvr1ew"},12:{conditions:{sm:"fyvr1f0",md:"fyvr1f1",lg:"fyvr1f2",xl:"fyvr1f3"},defaultClass:"fyvr1f0"},14:{conditions:{sm:"fyvr1f4",md:"fyvr1f5",lg:"fyvr1f6",xl:"fyvr1f7"},defaultClass:"fyvr1f4"},16:{conditions:{sm:"fyvr1f8",md:"fyvr1f9",lg:"fyvr1fa",xl:"fyvr1fb"},defaultClass:"fyvr1f8"},"0.25":{conditions:{sm:"fyvr1fc",md:"fyvr1fd",lg:"fyvr1fe",xl:"fyvr1ff"},defaultClass:"fyvr1fc"},"0.5":{conditions:{sm:"fyvr1fg",md:"fyvr1fh",lg:"fyvr1fi",xl:"fyvr1fj"},defaultClass:"fyvr1fg"},"1.5":{conditions:{sm:"fyvr1fk",md:"fyvr1fl",lg:"fyvr1fm",xl:"fyvr1fn"},defaultClass:"fyvr1fk"},none:{conditions:{sm:"fyvr1fo",md:"fyvr1fp",lg:"fyvr1fq",xl:"fyvr1fr"},defaultClass:"fyvr1fo"},px:{conditions:{sm:"fyvr1fs",md:"fyvr1ft",lg:"fyvr1fu",xl:"fyvr1fv"},defaultClass:"fyvr1fs"},auto:{conditions:{sm:"fyvr1fw",md:"fyvr1fx",lg:"fyvr1fy",xl:"fyvr1fz"},defaultClass:"fyvr1fw"},full:{conditions:{sm:"fyvr1g0",md:"fyvr1g1",lg:"fyvr1g2",xl:"fyvr1g3"},defaultClass:"fyvr1g0"},"1/2":{conditions:{sm:"fyvr1g4",md:"fyvr1g5",lg:"fyvr1g6",xl:"fyvr1g7"},defaultClass:"fyvr1g4"},"1/3":{conditions:{sm:"fyvr1g8",md:"fyvr1g9",lg:"fyvr1ga",xl:"fyvr1gb"},defaultClass:"fyvr1g8"},"2/3":{conditions:{sm:"fyvr1gc",md:"fyvr1gd",lg:"fyvr1ge",xl:"fyvr1gf"},defaultClass:"fyvr1gc"},"1/4":{conditions:{sm:"fyvr1gg",md:"fyvr1gh",lg:"fyvr1gi",xl:"fyvr1gj"},defaultClass:"fyvr1gg"},"3/4":{conditions:{sm:"fyvr1gk",md:"fyvr1gl",lg:"fyvr1gm",xl:"fyvr1gn"},defaultClass:"fyvr1gk"},fit:{conditions:{sm:"fyvr1go",md:"fyvr1gp",lg:"fyvr1gq",xl:"fyvr1gr"},defaultClass:"fyvr1go"},max:{conditions:{sm:"fyvr1gs",md:"fyvr1gt",lg:"fyvr1gu",xl:"fyvr1gv"},defaultClass:"fyvr1gs"},min:{conditions:{sm:"fyvr1gw",md:"fyvr1gx",lg:"fyvr1gy",xl:"fyvr1gz"},defaultClass:"fyvr1gw"},vw:{conditions:{sm:"fyvr1h0",md:"fyvr1h1",lg:"fyvr1h2",xl:"fyvr1h3"},defaultClass:"fyvr1h0"},vh:{conditions:{sm:"fyvr1h4",md:"fyvr1h5",lg:"fyvr1h6",xl:"fyvr1h7"},defaultClass:"fyvr1h4"}}},minHeight:{values:{0:{conditions:{sm:"fyvr1h8",md:"fyvr1h9",lg:"fyvr1ha",xl:"fyvr1hb"},defaultClass:"fyvr1h8"},1:{conditions:{sm:"fyvr1hc",md:"fyvr1hd",lg:"fyvr1he",xl:"fyvr1hf"},defaultClass:"fyvr1hc"},2:{conditions:{sm:"fyvr1hg",md:"fyvr1hh",lg:"fyvr1hi",xl:"fyvr1hj"},defaultClass:"fyvr1hg"},3:{conditions:{sm:"fyvr1hk",md:"fyvr1hl",lg:"fyvr1hm",xl:"fyvr1hn"},defaultClass:"fyvr1hk"},4:{conditions:{sm:"fyvr1ho",md:"fyvr1hp",lg:"fyvr1hq",xl:"fyvr1hr"},defaultClass:"fyvr1ho"},5:{conditions:{sm:"fyvr1hs",md:"fyvr1ht",lg:"fyvr1hu",xl:"fyvr1hv"},defaultClass:"fyvr1hs"},6:{conditions:{sm:"fyvr1hw",md:"fyvr1hx",lg:"fyvr1hy",xl:"fyvr1hz"},defaultClass:"fyvr1hw"},7:{conditions:{sm:"fyvr1i0",md:"fyvr1i1",lg:"fyvr1i2",xl:"fyvr1i3"},defaultClass:"fyvr1i0"},8:{conditions:{sm:"fyvr1i4",md:"fyvr1i5",lg:"fyvr1i6",xl:"fyvr1i7"},defaultClass:"fyvr1i4"},9:{conditions:{sm:"fyvr1i8",md:"fyvr1i9",lg:"fyvr1ia",xl:"fyvr1ib"},defaultClass:"fyvr1i8"},10:{conditions:{sm:"fyvr1ic",md:"fyvr1id",lg:"fyvr1ie",xl:"fyvr1if"},defaultClass:"fyvr1ic"},12:{conditions:{sm:"fyvr1ig",md:"fyvr1ih",lg:"fyvr1ii",xl:"fyvr1ij"},defaultClass:"fyvr1ig"},14:{conditions:{sm:"fyvr1ik",md:"fyvr1il",lg:"fyvr1im",xl:"fyvr1in"},defaultClass:"fyvr1ik"},16:{conditions:{sm:"fyvr1io",md:"fyvr1ip",lg:"fyvr1iq",xl:"fyvr1ir"},defaultClass:"fyvr1io"},"0.25":{conditions:{sm:"fyvr1is",md:"fyvr1it",lg:"fyvr1iu",xl:"fyvr1iv"},defaultClass:"fyvr1is"},"0.5":{conditions:{sm:"fyvr1iw",md:"fyvr1ix",lg:"fyvr1iy",xl:"fyvr1iz"},defaultClass:"fyvr1iw"},"1.5":{conditions:{sm:"fyvr1j0",md:"fyvr1j1",lg:"fyvr1j2",xl:"fyvr1j3"},defaultClass:"fyvr1j0"},none:{conditions:{sm:"fyvr1j4",md:"fyvr1j5",lg:"fyvr1j6",xl:"fyvr1j7"},defaultClass:"fyvr1j4"},px:{conditions:{sm:"fyvr1j8",md:"fyvr1j9",lg:"fyvr1ja",xl:"fyvr1jb"},defaultClass:"fyvr1j8"},auto:{conditions:{sm:"fyvr1jc",md:"fyvr1jd",lg:"fyvr1je",xl:"fyvr1jf"},defaultClass:"fyvr1jc"},full:{conditions:{sm:"fyvr1jg",md:"fyvr1jh",lg:"fyvr1ji",xl:"fyvr1jj"},defaultClass:"fyvr1jg"},"1/2":{conditions:{sm:"fyvr1jk",md:"fyvr1jl",lg:"fyvr1jm",xl:"fyvr1jn"},defaultClass:"fyvr1jk"},"1/3":{conditions:{sm:"fyvr1jo",md:"fyvr1jp",lg:"fyvr1jq",xl:"fyvr1jr"},defaultClass:"fyvr1jo"},"2/3":{conditions:{sm:"fyvr1js",md:"fyvr1jt",lg:"fyvr1ju",xl:"fyvr1jv"},defaultClass:"fyvr1js"},"1/4":{conditions:{sm:"fyvr1jw",md:"fyvr1jx",lg:"fyvr1jy",xl:"fyvr1jz"},defaultClass:"fyvr1jw"},"3/4":{conditions:{sm:"fyvr1k0",md:"fyvr1k1",lg:"fyvr1k2",xl:"fyvr1k3"},defaultClass:"fyvr1k0"},fit:{conditions:{sm:"fyvr1k4",md:"fyvr1k5",lg:"fyvr1k6",xl:"fyvr1k7"},defaultClass:"fyvr1k4"},max:{conditions:{sm:"fyvr1k8",md:"fyvr1k9",lg:"fyvr1ka",xl:"fyvr1kb"},defaultClass:"fyvr1k8"},min:{conditions:{sm:"fyvr1kc",md:"fyvr1kd",lg:"fyvr1ke",xl:"fyvr1kf"},defaultClass:"fyvr1kc"},vw:{conditions:{sm:"fyvr1kg",md:"fyvr1kh",lg:"fyvr1ki",xl:"fyvr1kj"},defaultClass:"fyvr1kg"},vh:{conditions:{sm:"fyvr1kk",md:"fyvr1kl",lg:"fyvr1km",xl:"fyvr1kn"},defaultClass:"fyvr1kk"}}},top:{values:{0:{conditions:{sm:"fyvr1ko",md:"fyvr1kp",lg:"fyvr1kq",xl:"fyvr1kr"},defaultClass:"fyvr1ko"},1:{conditions:{sm:"fyvr1ks",md:"fyvr1kt",lg:"fyvr1ku",xl:"fyvr1kv"},defaultClass:"fyvr1ks"},2:{conditions:{sm:"fyvr1kw",md:"fyvr1kx",lg:"fyvr1ky",xl:"fyvr1kz"},defaultClass:"fyvr1kw"},3:{conditions:{sm:"fyvr1l0",md:"fyvr1l1",lg:"fyvr1l2",xl:"fyvr1l3"},defaultClass:"fyvr1l0"},4:{conditions:{sm:"fyvr1l4",md:"fyvr1l5",lg:"fyvr1l6",xl:"fyvr1l7"},defaultClass:"fyvr1l4"},5:{conditions:{sm:"fyvr1l8",md:"fyvr1l9",lg:"fyvr1la",xl:"fyvr1lb"},defaultClass:"fyvr1l8"},6:{conditions:{sm:"fyvr1lc",md:"fyvr1ld",lg:"fyvr1le",xl:"fyvr1lf"},defaultClass:"fyvr1lc"},7:{conditions:{sm:"fyvr1lg",md:"fyvr1lh",lg:"fyvr1li",xl:"fyvr1lj"},defaultClass:"fyvr1lg"},8:{conditions:{sm:"fyvr1lk",md:"fyvr1ll",lg:"fyvr1lm",xl:"fyvr1ln"},defaultClass:"fyvr1lk"},9:{conditions:{sm:"fyvr1lo",md:"fyvr1lp",lg:"fyvr1lq",xl:"fyvr1lr"},defaultClass:"fyvr1lo"},10:{conditions:{sm:"fyvr1ls",md:"fyvr1lt",lg:"fyvr1lu",xl:"fyvr1lv"},defaultClass:"fyvr1ls"},12:{conditions:{sm:"fyvr1lw",md:"fyvr1lx",lg:"fyvr1ly",xl:"fyvr1lz"},defaultClass:"fyvr1lw"},14:{conditions:{sm:"fyvr1m0",md:"fyvr1m1",lg:"fyvr1m2",xl:"fyvr1m3"},defaultClass:"fyvr1m0"},16:{conditions:{sm:"fyvr1m4",md:"fyvr1m5",lg:"fyvr1m6",xl:"fyvr1m7"},defaultClass:"fyvr1m4"},"0.25":{conditions:{sm:"fyvr1m8",md:"fyvr1m9",lg:"fyvr1ma",xl:"fyvr1mb"},defaultClass:"fyvr1m8"},"0.5":{conditions:{sm:"fyvr1mc",md:"fyvr1md",lg:"fyvr1me",xl:"fyvr1mf"},defaultClass:"fyvr1mc"},"1.5":{conditions:{sm:"fyvr1mg",md:"fyvr1mh",lg:"fyvr1mi",xl:"fyvr1mj"},defaultClass:"fyvr1mg"},auto:{conditions:{sm:"fyvr1mk",md:"fyvr1ml",lg:"fyvr1mm",xl:"fyvr1mn"},defaultClass:"fyvr1mk"}}},bottom:{values:{0:{conditions:{sm:"fyvr1mo",md:"fyvr1mp",lg:"fyvr1mq",xl:"fyvr1mr"},defaultClass:"fyvr1mo"},1:{conditions:{sm:"fyvr1ms",md:"fyvr1mt",lg:"fyvr1mu",xl:"fyvr1mv"},defaultClass:"fyvr1ms"},2:{conditions:{sm:"fyvr1mw",md:"fyvr1mx",lg:"fyvr1my",xl:"fyvr1mz"},defaultClass:"fyvr1mw"},3:{conditions:{sm:"fyvr1n0",md:"fyvr1n1",lg:"fyvr1n2",xl:"fyvr1n3"},defaultClass:"fyvr1n0"},4:{conditions:{sm:"fyvr1n4",md:"fyvr1n5",lg:"fyvr1n6",xl:"fyvr1n7"},defaultClass:"fyvr1n4"},5:{conditions:{sm:"fyvr1n8",md:"fyvr1n9",lg:"fyvr1na",xl:"fyvr1nb"},defaultClass:"fyvr1n8"},6:{conditions:{sm:"fyvr1nc",md:"fyvr1nd",lg:"fyvr1ne",xl:"fyvr1nf"},defaultClass:"fyvr1nc"},7:{conditions:{sm:"fyvr1ng",md:"fyvr1nh",lg:"fyvr1ni",xl:"fyvr1nj"},defaultClass:"fyvr1ng"},8:{conditions:{sm:"fyvr1nk",md:"fyvr1nl",lg:"fyvr1nm",xl:"fyvr1nn"},defaultClass:"fyvr1nk"},9:{conditions:{sm:"fyvr1no",md:"fyvr1np",lg:"fyvr1nq",xl:"fyvr1nr"},defaultClass:"fyvr1no"},10:{conditions:{sm:"fyvr1ns",md:"fyvr1nt",lg:"fyvr1nu",xl:"fyvr1nv"},defaultClass:"fyvr1ns"},12:{conditions:{sm:"fyvr1nw",md:"fyvr1nx",lg:"fyvr1ny",xl:"fyvr1nz"},defaultClass:"fyvr1nw"},14:{conditions:{sm:"fyvr1o0",md:"fyvr1o1",lg:"fyvr1o2",xl:"fyvr1o3"},defaultClass:"fyvr1o0"},16:{conditions:{sm:"fyvr1o4",md:"fyvr1o5",lg:"fyvr1o6",xl:"fyvr1o7"},defaultClass:"fyvr1o4"},"0.25":{conditions:{sm:"fyvr1o8",md:"fyvr1o9",lg:"fyvr1oa",xl:"fyvr1ob"},defaultClass:"fyvr1o8"},"0.5":{conditions:{sm:"fyvr1oc",md:"fyvr1od",lg:"fyvr1oe",xl:"fyvr1of"},defaultClass:"fyvr1oc"},"1.5":{conditions:{sm:"fyvr1og",md:"fyvr1oh",lg:"fyvr1oi",xl:"fyvr1oj"},defaultClass:"fyvr1og"},auto:{conditions:{sm:"fyvr1ok",md:"fyvr1ol",lg:"fyvr1om",xl:"fyvr1on"},defaultClass:"fyvr1ok"}}},left:{values:{0:{conditions:{sm:"fyvr1oo",md:"fyvr1op",lg:"fyvr1oq",xl:"fyvr1or"},defaultClass:"fyvr1oo"},1:{conditions:{sm:"fyvr1os",md:"fyvr1ot",lg:"fyvr1ou",xl:"fyvr1ov"},defaultClass:"fyvr1os"},2:{conditions:{sm:"fyvr1ow",md:"fyvr1ox",lg:"fyvr1oy",xl:"fyvr1oz"},defaultClass:"fyvr1ow"},3:{conditions:{sm:"fyvr1p0",md:"fyvr1p1",lg:"fyvr1p2",xl:"fyvr1p3"},defaultClass:"fyvr1p0"},4:{conditions:{sm:"fyvr1p4",md:"fyvr1p5",lg:"fyvr1p6",xl:"fyvr1p7"},defaultClass:"fyvr1p4"},5:{conditions:{sm:"fyvr1p8",md:"fyvr1p9",lg:"fyvr1pa",xl:"fyvr1pb"},defaultClass:"fyvr1p8"},6:{conditions:{sm:"fyvr1pc",md:"fyvr1pd",lg:"fyvr1pe",xl:"fyvr1pf"},defaultClass:"fyvr1pc"},7:{conditions:{sm:"fyvr1pg",md:"fyvr1ph",lg:"fyvr1pi",xl:"fyvr1pj"},defaultClass:"fyvr1pg"},8:{conditions:{sm:"fyvr1pk",md:"fyvr1pl",lg:"fyvr1pm",xl:"fyvr1pn"},defaultClass:"fyvr1pk"},9:{conditions:{sm:"fyvr1po",md:"fyvr1pp",lg:"fyvr1pq",xl:"fyvr1pr"},defaultClass:"fyvr1po"},10:{conditions:{sm:"fyvr1ps",md:"fyvr1pt",lg:"fyvr1pu",xl:"fyvr1pv"},defaultClass:"fyvr1ps"},12:{conditions:{sm:"fyvr1pw",md:"fyvr1px",lg:"fyvr1py",xl:"fyvr1pz"},defaultClass:"fyvr1pw"},14:{conditions:{sm:"fyvr1q0",md:"fyvr1q1",lg:"fyvr1q2",xl:"fyvr1q3"},defaultClass:"fyvr1q0"},16:{conditions:{sm:"fyvr1q4",md:"fyvr1q5",lg:"fyvr1q6",xl:"fyvr1q7"},defaultClass:"fyvr1q4"},"0.25":{conditions:{sm:"fyvr1q8",md:"fyvr1q9",lg:"fyvr1qa",xl:"fyvr1qb"},defaultClass:"fyvr1q8"},"0.5":{conditions:{sm:"fyvr1qc",md:"fyvr1qd",lg:"fyvr1qe",xl:"fyvr1qf"},defaultClass:"fyvr1qc"},"1.5":{conditions:{sm:"fyvr1qg",md:"fyvr1qh",lg:"fyvr1qi",xl:"fyvr1qj"},defaultClass:"fyvr1qg"},auto:{conditions:{sm:"fyvr1qk",md:"fyvr1ql",lg:"fyvr1qm",xl:"fyvr1qn"},defaultClass:"fyvr1qk"}}},right:{values:{0:{conditions:{sm:"fyvr1qo",md:"fyvr1qp",lg:"fyvr1qq",xl:"fyvr1qr"},defaultClass:"fyvr1qo"},1:{conditions:{sm:"fyvr1qs",md:"fyvr1qt",lg:"fyvr1qu",xl:"fyvr1qv"},defaultClass:"fyvr1qs"},2:{conditions:{sm:"fyvr1qw",md:"fyvr1qx",lg:"fyvr1qy",xl:"fyvr1qz"},defaultClass:"fyvr1qw"},3:{conditions:{sm:"fyvr1r0",md:"fyvr1r1",lg:"fyvr1r2",xl:"fyvr1r3"},defaultClass:"fyvr1r0"},4:{conditions:{sm:"fyvr1r4",md:"fyvr1r5",lg:"fyvr1r6",xl:"fyvr1r7"},defaultClass:"fyvr1r4"},5:{conditions:{sm:"fyvr1r8",md:"fyvr1r9",lg:"fyvr1ra",xl:"fyvr1rb"},defaultClass:"fyvr1r8"},6:{conditions:{sm:"fyvr1rc",md:"fyvr1rd",lg:"fyvr1re",xl:"fyvr1rf"},defaultClass:"fyvr1rc"},7:{conditions:{sm:"fyvr1rg",md:"fyvr1rh",lg:"fyvr1ri",xl:"fyvr1rj"},defaultClass:"fyvr1rg"},8:{conditions:{sm:"fyvr1rk",md:"fyvr1rl",lg:"fyvr1rm",xl:"fyvr1rn"},defaultClass:"fyvr1rk"},9:{conditions:{sm:"fyvr1ro",md:"fyvr1rp",lg:"fyvr1rq",xl:"fyvr1rr"},defaultClass:"fyvr1ro"},10:{conditions:{sm:"fyvr1rs",md:"fyvr1rt",lg:"fyvr1ru",xl:"fyvr1rv"},defaultClass:"fyvr1rs"},12:{conditions:{sm:"fyvr1rw",md:"fyvr1rx",lg:"fyvr1ry",xl:"fyvr1rz"},defaultClass:"fyvr1rw"},14:{conditions:{sm:"fyvr1s0",md:"fyvr1s1",lg:"fyvr1s2",xl:"fyvr1s3"},defaultClass:"fyvr1s0"},16:{conditions:{sm:"fyvr1s4",md:"fyvr1s5",lg:"fyvr1s6",xl:"fyvr1s7"},defaultClass:"fyvr1s4"},"0.25":{conditions:{sm:"fyvr1s8",md:"fyvr1s9",lg:"fyvr1sa",xl:"fyvr1sb"},defaultClass:"fyvr1s8"},"0.5":{conditions:{sm:"fyvr1sc",md:"fyvr1sd",lg:"fyvr1se",xl:"fyvr1sf"},defaultClass:"fyvr1sc"},"1.5":{conditions:{sm:"fyvr1sg",md:"fyvr1sh",lg:"fyvr1si",xl:"fyvr1sj"},defaultClass:"fyvr1sg"},auto:{conditions:{sm:"fyvr1sk",md:"fyvr1sl",lg:"fyvr1sm",xl:"fyvr1sn"},defaultClass:"fyvr1sk"}}},paddingTop:{values:{0:{conditions:{sm:"fyvr1so",md:"fyvr1sp",lg:"fyvr1sq",xl:"fyvr1sr"},defaultClass:"fyvr1so"},1:{conditions:{sm:"fyvr1ss",md:"fyvr1st",lg:"fyvr1su",xl:"fyvr1sv"},defaultClass:"fyvr1ss"},2:{conditions:{sm:"fyvr1sw",md:"fyvr1sx",lg:"fyvr1sy",xl:"fyvr1sz"},defaultClass:"fyvr1sw"},3:{conditions:{sm:"fyvr1t0",md:"fyvr1t1",lg:"fyvr1t2",xl:"fyvr1t3"},defaultClass:"fyvr1t0"},4:{conditions:{sm:"fyvr1t4",md:"fyvr1t5",lg:"fyvr1t6",xl:"fyvr1t7"},defaultClass:"fyvr1t4"},5:{conditions:{sm:"fyvr1t8",md:"fyvr1t9",lg:"fyvr1ta",xl:"fyvr1tb"},defaultClass:"fyvr1t8"},6:{conditions:{sm:"fyvr1tc",md:"fyvr1td",lg:"fyvr1te",xl:"fyvr1tf"},defaultClass:"fyvr1tc"},7:{conditions:{sm:"fyvr1tg",md:"fyvr1th",lg:"fyvr1ti",xl:"fyvr1tj"},defaultClass:"fyvr1tg"},8:{conditions:{sm:"fyvr1tk",md:"fyvr1tl",lg:"fyvr1tm",xl:"fyvr1tn"},defaultClass:"fyvr1tk"},9:{conditions:{sm:"fyvr1to",md:"fyvr1tp",lg:"fyvr1tq",xl:"fyvr1tr"},defaultClass:"fyvr1to"},10:{conditions:{sm:"fyvr1ts",md:"fyvr1tt",lg:"fyvr1tu",xl:"fyvr1tv"},defaultClass:"fyvr1ts"},12:{conditions:{sm:"fyvr1tw",md:"fyvr1tx",lg:"fyvr1ty",xl:"fyvr1tz"},defaultClass:"fyvr1tw"},14:{conditions:{sm:"fyvr1u0",md:"fyvr1u1",lg:"fyvr1u2",xl:"fyvr1u3"},defaultClass:"fyvr1u0"},16:{conditions:{sm:"fyvr1u4",md:"fyvr1u5",lg:"fyvr1u6",xl:"fyvr1u7"},defaultClass:"fyvr1u4"},"0.25":{conditions:{sm:"fyvr1u8",md:"fyvr1u9",lg:"fyvr1ua",xl:"fyvr1ub"},defaultClass:"fyvr1u8"},"0.5":{conditions:{sm:"fyvr1uc",md:"fyvr1ud",lg:"fyvr1ue",xl:"fyvr1uf"},defaultClass:"fyvr1uc"},"1.5":{conditions:{sm:"fyvr1ug",md:"fyvr1uh",lg:"fyvr1ui",xl:"fyvr1uj"},defaultClass:"fyvr1ug"}}},paddingBottom:{values:{0:{conditions:{sm:"fyvr1uk",md:"fyvr1ul",lg:"fyvr1um",xl:"fyvr1un"},defaultClass:"fyvr1uk"},1:{conditions:{sm:"fyvr1uo",md:"fyvr1up",lg:"fyvr1uq",xl:"fyvr1ur"},defaultClass:"fyvr1uo"},2:{conditions:{sm:"fyvr1us",md:"fyvr1ut",lg:"fyvr1uu",xl:"fyvr1uv"},defaultClass:"fyvr1us"},3:{conditions:{sm:"fyvr1uw",md:"fyvr1ux",lg:"fyvr1uy",xl:"fyvr1uz"},defaultClass:"fyvr1uw"},4:{conditions:{sm:"fyvr1v0",md:"fyvr1v1",lg:"fyvr1v2",xl:"fyvr1v3"},defaultClass:"fyvr1v0"},5:{conditions:{sm:"fyvr1v4",md:"fyvr1v5",lg:"fyvr1v6",xl:"fyvr1v7"},defaultClass:"fyvr1v4"},6:{conditions:{sm:"fyvr1v8",md:"fyvr1v9",lg:"fyvr1va",xl:"fyvr1vb"},defaultClass:"fyvr1v8"},7:{conditions:{sm:"fyvr1vc",md:"fyvr1vd",lg:"fyvr1ve",xl:"fyvr1vf"},defaultClass:"fyvr1vc"},8:{conditions:{sm:"fyvr1vg",md:"fyvr1vh",lg:"fyvr1vi",xl:"fyvr1vj"},defaultClass:"fyvr1vg"},9:{conditions:{sm:"fyvr1vk",md:"fyvr1vl",lg:"fyvr1vm",xl:"fyvr1vn"},defaultClass:"fyvr1vk"},10:{conditions:{sm:"fyvr1vo",md:"fyvr1vp",lg:"fyvr1vq",xl:"fyvr1vr"},defaultClass:"fyvr1vo"},12:{conditions:{sm:"fyvr1vs",md:"fyvr1vt",lg:"fyvr1vu",xl:"fyvr1vv"},defaultClass:"fyvr1vs"},14:{conditions:{sm:"fyvr1vw",md:"fyvr1vx",lg:"fyvr1vy",xl:"fyvr1vz"},defaultClass:"fyvr1vw"},16:{conditions:{sm:"fyvr1w0",md:"fyvr1w1",lg:"fyvr1w2",xl:"fyvr1w3"},defaultClass:"fyvr1w0"},"0.25":{conditions:{sm:"fyvr1w4",md:"fyvr1w5",lg:"fyvr1w6",xl:"fyvr1w7"},defaultClass:"fyvr1w4"},"0.5":{conditions:{sm:"fyvr1w8",md:"fyvr1w9",lg:"fyvr1wa",xl:"fyvr1wb"},defaultClass:"fyvr1w8"},"1.5":{conditions:{sm:"fyvr1wc",md:"fyvr1wd",lg:"fyvr1we",xl:"fyvr1wf"},defaultClass:"fyvr1wc"}}},paddingLeft:{values:{0:{conditions:{sm:"fyvr1wg",md:"fyvr1wh",lg:"fyvr1wi",xl:"fyvr1wj"},defaultClass:"fyvr1wg"},1:{conditions:{sm:"fyvr1wk",md:"fyvr1wl",lg:"fyvr1wm",xl:"fyvr1wn"},defaultClass:"fyvr1wk"},2:{conditions:{sm:"fyvr1wo",md:"fyvr1wp",lg:"fyvr1wq",xl:"fyvr1wr"},defaultClass:"fyvr1wo"},3:{conditions:{sm:"fyvr1ws",md:"fyvr1wt",lg:"fyvr1wu",xl:"fyvr1wv"},defaultClass:"fyvr1ws"},4:{conditions:{sm:"fyvr1ww",md:"fyvr1wx",lg:"fyvr1wy",xl:"fyvr1wz"},defaultClass:"fyvr1ww"},5:{conditions:{sm:"fyvr1x0",md:"fyvr1x1",lg:"fyvr1x2",xl:"fyvr1x3"},defaultClass:"fyvr1x0"},6:{conditions:{sm:"fyvr1x4",md:"fyvr1x5",lg:"fyvr1x6",xl:"fyvr1x7"},defaultClass:"fyvr1x4"},7:{conditions:{sm:"fyvr1x8",md:"fyvr1x9",lg:"fyvr1xa",xl:"fyvr1xb"},defaultClass:"fyvr1x8"},8:{conditions:{sm:"fyvr1xc",md:"fyvr1xd",lg:"fyvr1xe",xl:"fyvr1xf"},defaultClass:"fyvr1xc"},9:{conditions:{sm:"fyvr1xg",md:"fyvr1xh",lg:"fyvr1xi",xl:"fyvr1xj"},defaultClass:"fyvr1xg"},10:{conditions:{sm:"fyvr1xk",md:"fyvr1xl",lg:"fyvr1xm",xl:"fyvr1xn"},defaultClass:"fyvr1xk"},12:{conditions:{sm:"fyvr1xo",md:"fyvr1xp",lg:"fyvr1xq",xl:"fyvr1xr"},defaultClass:"fyvr1xo"},14:{conditions:{sm:"fyvr1xs",md:"fyvr1xt",lg:"fyvr1xu",xl:"fyvr1xv"},defaultClass:"fyvr1xs"},16:{conditions:{sm:"fyvr1xw",md:"fyvr1xx",lg:"fyvr1xy",xl:"fyvr1xz"},defaultClass:"fyvr1xw"},"0.25":{conditions:{sm:"fyvr1y0",md:"fyvr1y1",lg:"fyvr1y2",xl:"fyvr1y3"},defaultClass:"fyvr1y0"},"0.5":{conditions:{sm:"fyvr1y4",md:"fyvr1y5",lg:"fyvr1y6",xl:"fyvr1y7"},defaultClass:"fyvr1y4"},"1.5":{conditions:{sm:"fyvr1y8",md:"fyvr1y9",lg:"fyvr1ya",xl:"fyvr1yb"},defaultClass:"fyvr1y8"}}},paddingRight:{values:{0:{conditions:{sm:"fyvr1yc",md:"fyvr1yd",lg:"fyvr1ye",xl:"fyvr1yf"},defaultClass:"fyvr1yc"},1:{conditions:{sm:"fyvr1yg",md:"fyvr1yh",lg:"fyvr1yi",xl:"fyvr1yj"},defaultClass:"fyvr1yg"},2:{conditions:{sm:"fyvr1yk",md:"fyvr1yl",lg:"fyvr1ym",xl:"fyvr1yn"},defaultClass:"fyvr1yk"},3:{conditions:{sm:"fyvr1yo",md:"fyvr1yp",lg:"fyvr1yq",xl:"fyvr1yr"},defaultClass:"fyvr1yo"},4:{conditions:{sm:"fyvr1ys",md:"fyvr1yt",lg:"fyvr1yu",xl:"fyvr1yv"},defaultClass:"fyvr1ys"},5:{conditions:{sm:"fyvr1yw",md:"fyvr1yx",lg:"fyvr1yy",xl:"fyvr1yz"},defaultClass:"fyvr1yw"},6:{conditions:{sm:"fyvr1z0",md:"fyvr1z1",lg:"fyvr1z2",xl:"fyvr1z3"},defaultClass:"fyvr1z0"},7:{conditions:{sm:"fyvr1z4",md:"fyvr1z5",lg:"fyvr1z6",xl:"fyvr1z7"},defaultClass:"fyvr1z4"},8:{conditions:{sm:"fyvr1z8",md:"fyvr1z9",lg:"fyvr1za",xl:"fyvr1zb"},defaultClass:"fyvr1z8"},9:{conditions:{sm:"fyvr1zc",md:"fyvr1zd",lg:"fyvr1ze",xl:"fyvr1zf"},defaultClass:"fyvr1zc"},10:{conditions:{sm:"fyvr1zg",md:"fyvr1zh",lg:"fyvr1zi",xl:"fyvr1zj"},defaultClass:"fyvr1zg"},12:{conditions:{sm:"fyvr1zk",md:"fyvr1zl",lg:"fyvr1zm",xl:"fyvr1zn"},defaultClass:"fyvr1zk"},14:{conditions:{sm:"fyvr1zo",md:"fyvr1zp",lg:"fyvr1zq",xl:"fyvr1zr"},defaultClass:"fyvr1zo"},16:{conditions:{sm:"fyvr1zs",md:"fyvr1zt",lg:"fyvr1zu",xl:"fyvr1zv"},defaultClass:"fyvr1zs"},"0.25":{conditions:{sm:"fyvr1zw",md:"fyvr1zx",lg:"fyvr1zy",xl:"fyvr1zz"},defaultClass:"fyvr1zw"},"0.5":{conditions:{sm:"fyvr1100",md:"fyvr1101",lg:"fyvr1102",xl:"fyvr1103"},defaultClass:"fyvr1100"},"1.5":{conditions:{sm:"fyvr1104",md:"fyvr1105",lg:"fyvr1106",xl:"fyvr1107"},defaultClass:"fyvr1104"}}},marginTop:{values:{0:{conditions:{sm:"fyvr1108",md:"fyvr1109",lg:"fyvr110a",xl:"fyvr110b"},defaultClass:"fyvr1108"},1:{conditions:{sm:"fyvr110c",md:"fyvr110d",lg:"fyvr110e",xl:"fyvr110f"},defaultClass:"fyvr110c"},2:{conditions:{sm:"fyvr110g",md:"fyvr110h",lg:"fyvr110i",xl:"fyvr110j"},defaultClass:"fyvr110g"},3:{conditions:{sm:"fyvr110k",md:"fyvr110l",lg:"fyvr110m",xl:"fyvr110n"},defaultClass:"fyvr110k"},4:{conditions:{sm:"fyvr110o",md:"fyvr110p",lg:"fyvr110q",xl:"fyvr110r"},defaultClass:"fyvr110o"},5:{conditions:{sm:"fyvr110s",md:"fyvr110t",lg:"fyvr110u",xl:"fyvr110v"},defaultClass:"fyvr110s"},6:{conditions:{sm:"fyvr110w",md:"fyvr110x",lg:"fyvr110y",xl:"fyvr110z"},defaultClass:"fyvr110w"},7:{conditions:{sm:"fyvr1110",md:"fyvr1111",lg:"fyvr1112",xl:"fyvr1113"},defaultClass:"fyvr1110"},8:{conditions:{sm:"fyvr1114",md:"fyvr1115",lg:"fyvr1116",xl:"fyvr1117"},defaultClass:"fyvr1114"},9:{conditions:{sm:"fyvr1118",md:"fyvr1119",lg:"fyvr111a",xl:"fyvr111b"},defaultClass:"fyvr1118"},10:{conditions:{sm:"fyvr111c",md:"fyvr111d",lg:"fyvr111e",xl:"fyvr111f"},defaultClass:"fyvr111c"},12:{conditions:{sm:"fyvr111g",md:"fyvr111h",lg:"fyvr111i",xl:"fyvr111j"},defaultClass:"fyvr111g"},14:{conditions:{sm:"fyvr111k",md:"fyvr111l",lg:"fyvr111m",xl:"fyvr111n"},defaultClass:"fyvr111k"},16:{conditions:{sm:"fyvr111o",md:"fyvr111p",lg:"fyvr111q",xl:"fyvr111r"},defaultClass:"fyvr111o"},"0.25":{conditions:{sm:"fyvr111s",md:"fyvr111t",lg:"fyvr111u",xl:"fyvr111v"},defaultClass:"fyvr111s"},"0.5":{conditions:{sm:"fyvr111w",md:"fyvr111x",lg:"fyvr111y",xl:"fyvr111z"},defaultClass:"fyvr111w"},"1.5":{conditions:{sm:"fyvr1120",md:"fyvr1121",lg:"fyvr1122",xl:"fyvr1123"},defaultClass:"fyvr1120"},auto:{conditions:{sm:"fyvr1124",md:"fyvr1125",lg:"fyvr1126",xl:"fyvr1127"},defaultClass:"fyvr1124"}}},marginBottom:{values:{0:{conditions:{sm:"fyvr1128",md:"fyvr1129",lg:"fyvr112a",xl:"fyvr112b"},defaultClass:"fyvr1128"},1:{conditions:{sm:"fyvr112c",md:"fyvr112d",lg:"fyvr112e",xl:"fyvr112f"},defaultClass:"fyvr112c"},2:{conditions:{sm:"fyvr112g",md:"fyvr112h",lg:"fyvr112i",xl:"fyvr112j"},defaultClass:"fyvr112g"},3:{conditions:{sm:"fyvr112k",md:"fyvr112l",lg:"fyvr112m",xl:"fyvr112n"},defaultClass:"fyvr112k"},4:{conditions:{sm:"fyvr112o",md:"fyvr112p",lg:"fyvr112q",xl:"fyvr112r"},defaultClass:"fyvr112o"},5:{conditions:{sm:"fyvr112s",md:"fyvr112t",lg:"fyvr112u",xl:"fyvr112v"},defaultClass:"fyvr112s"},6:{conditions:{sm:"fyvr112w",md:"fyvr112x",lg:"fyvr112y",xl:"fyvr112z"},defaultClass:"fyvr112w"},7:{conditions:{sm:"fyvr1130",md:"fyvr1131",lg:"fyvr1132",xl:"fyvr1133"},defaultClass:"fyvr1130"},8:{conditions:{sm:"fyvr1134",md:"fyvr1135",lg:"fyvr1136",xl:"fyvr1137"},defaultClass:"fyvr1134"},9:{conditions:{sm:"fyvr1138",md:"fyvr1139",lg:"fyvr113a",xl:"fyvr113b"},defaultClass:"fyvr1138"},10:{conditions:{sm:"fyvr113c",md:"fyvr113d",lg:"fyvr113e",xl:"fyvr113f"},defaultClass:"fyvr113c"},12:{conditions:{sm:"fyvr113g",md:"fyvr113h",lg:"fyvr113i",xl:"fyvr113j"},defaultClass:"fyvr113g"},14:{conditions:{sm:"fyvr113k",md:"fyvr113l",lg:"fyvr113m",xl:"fyvr113n"},defaultClass:"fyvr113k"},16:{conditions:{sm:"fyvr113o",md:"fyvr113p",lg:"fyvr113q",xl:"fyvr113r"},defaultClass:"fyvr113o"},"0.25":{conditions:{sm:"fyvr113s",md:"fyvr113t",lg:"fyvr113u",xl:"fyvr113v"},defaultClass:"fyvr113s"},"0.5":{conditions:{sm:"fyvr113w",md:"fyvr113x",lg:"fyvr113y",xl:"fyvr113z"},defaultClass:"fyvr113w"},"1.5":{conditions:{sm:"fyvr1140",md:"fyvr1141",lg:"fyvr1142",xl:"fyvr1143"},defaultClass:"fyvr1140"},auto:{conditions:{sm:"fyvr1144",md:"fyvr1145",lg:"fyvr1146",xl:"fyvr1147"},defaultClass:"fyvr1144"}}},marginLeft:{values:{0:{conditions:{sm:"fyvr1148",md:"fyvr1149",lg:"fyvr114a",xl:"fyvr114b"},defaultClass:"fyvr1148"},1:{conditions:{sm:"fyvr114c",md:"fyvr114d",lg:"fyvr114e",xl:"fyvr114f"},defaultClass:"fyvr114c"},2:{conditions:{sm:"fyvr114g",md:"fyvr114h",lg:"fyvr114i",xl:"fyvr114j"},defaultClass:"fyvr114g"},3:{conditions:{sm:"fyvr114k",md:"fyvr114l",lg:"fyvr114m",xl:"fyvr114n"},defaultClass:"fyvr114k"},4:{conditions:{sm:"fyvr114o",md:"fyvr114p",lg:"fyvr114q",xl:"fyvr114r"},defaultClass:"fyvr114o"},5:{conditions:{sm:"fyvr114s",md:"fyvr114t",lg:"fyvr114u",xl:"fyvr114v"},defaultClass:"fyvr114s"},6:{conditions:{sm:"fyvr114w",md:"fyvr114x",lg:"fyvr114y",xl:"fyvr114z"},defaultClass:"fyvr114w"},7:{conditions:{sm:"fyvr1150",md:"fyvr1151",lg:"fyvr1152",xl:"fyvr1153"},defaultClass:"fyvr1150"},8:{conditions:{sm:"fyvr1154",md:"fyvr1155",lg:"fyvr1156",xl:"fyvr1157"},defaultClass:"fyvr1154"},9:{conditions:{sm:"fyvr1158",md:"fyvr1159",lg:"fyvr115a",xl:"fyvr115b"},defaultClass:"fyvr1158"},10:{conditions:{sm:"fyvr115c",md:"fyvr115d",lg:"fyvr115e",xl:"fyvr115f"},defaultClass:"fyvr115c"},12:{conditions:{sm:"fyvr115g",md:"fyvr115h",lg:"fyvr115i",xl:"fyvr115j"},defaultClass:"fyvr115g"},14:{conditions:{sm:"fyvr115k",md:"fyvr115l",lg:"fyvr115m",xl:"fyvr115n"},defaultClass:"fyvr115k"},16:{conditions:{sm:"fyvr115o",md:"fyvr115p",lg:"fyvr115q",xl:"fyvr115r"},defaultClass:"fyvr115o"},"0.25":{conditions:{sm:"fyvr115s",md:"fyvr115t",lg:"fyvr115u",xl:"fyvr115v"},defaultClass:"fyvr115s"},"0.5":{conditions:{sm:"fyvr115w",md:"fyvr115x",lg:"fyvr115y",xl:"fyvr115z"},defaultClass:"fyvr115w"},"1.5":{conditions:{sm:"fyvr1160",md:"fyvr1161",lg:"fyvr1162",xl:"fyvr1163"},defaultClass:"fyvr1160"},auto:{conditions:{sm:"fyvr1164",md:"fyvr1165",lg:"fyvr1166",xl:"fyvr1167"},defaultClass:"fyvr1164"}}},marginRight:{values:{0:{conditions:{sm:"fyvr1168",md:"fyvr1169",lg:"fyvr116a",xl:"fyvr116b"},defaultClass:"fyvr1168"},1:{conditions:{sm:"fyvr116c",md:"fyvr116d",lg:"fyvr116e",xl:"fyvr116f"},defaultClass:"fyvr116c"},2:{conditions:{sm:"fyvr116g",md:"fyvr116h",lg:"fyvr116i",xl:"fyvr116j"},defaultClass:"fyvr116g"},3:{conditions:{sm:"fyvr116k",md:"fyvr116l",lg:"fyvr116m",xl:"fyvr116n"},defaultClass:"fyvr116k"},4:{conditions:{sm:"fyvr116o",md:"fyvr116p",lg:"fyvr116q",xl:"fyvr116r"},defaultClass:"fyvr116o"},5:{conditions:{sm:"fyvr116s",md:"fyvr116t",lg:"fyvr116u",xl:"fyvr116v"},defaultClass:"fyvr116s"},6:{conditions:{sm:"fyvr116w",md:"fyvr116x",lg:"fyvr116y",xl:"fyvr116z"},defaultClass:"fyvr116w"},7:{conditions:{sm:"fyvr1170",md:"fyvr1171",lg:"fyvr1172",xl:"fyvr1173"},defaultClass:"fyvr1170"},8:{conditions:{sm:"fyvr1174",md:"fyvr1175",lg:"fyvr1176",xl:"fyvr1177"},defaultClass:"fyvr1174"},9:{conditions:{sm:"fyvr1178",md:"fyvr1179",lg:"fyvr117a",xl:"fyvr117b"},defaultClass:"fyvr1178"},10:{conditions:{sm:"fyvr117c",md:"fyvr117d",lg:"fyvr117e",xl:"fyvr117f"},defaultClass:"fyvr117c"},12:{conditions:{sm:"fyvr117g",md:"fyvr117h",lg:"fyvr117i",xl:"fyvr117j"},defaultClass:"fyvr117g"},14:{conditions:{sm:"fyvr117k",md:"fyvr117l",lg:"fyvr117m",xl:"fyvr117n"},defaultClass:"fyvr117k"},16:{conditions:{sm:"fyvr117o",md:"fyvr117p",lg:"fyvr117q",xl:"fyvr117r"},defaultClass:"fyvr117o"},"0.25":{conditions:{sm:"fyvr117s",md:"fyvr117t",lg:"fyvr117u",xl:"fyvr117v"},defaultClass:"fyvr117s"},"0.5":{conditions:{sm:"fyvr117w",md:"fyvr117x",lg:"fyvr117y",xl:"fyvr117z"},defaultClass:"fyvr117w"},"1.5":{conditions:{sm:"fyvr1180",md:"fyvr1181",lg:"fyvr1182",xl:"fyvr1183"},defaultClass:"fyvr1180"},auto:{conditions:{sm:"fyvr1184",md:"fyvr1185",lg:"fyvr1186",xl:"fyvr1187"},defaultClass:"fyvr1184"}}},gap:{values:{0:{conditions:{sm:"fyvr1188",md:"fyvr1189",lg:"fyvr118a",xl:"fyvr118b"},defaultClass:"fyvr1188"},1:{conditions:{sm:"fyvr118c",md:"fyvr118d",lg:"fyvr118e",xl:"fyvr118f"},defaultClass:"fyvr118c"},2:{conditions:{sm:"fyvr118g",md:"fyvr118h",lg:"fyvr118i",xl:"fyvr118j"},defaultClass:"fyvr118g"},3:{conditions:{sm:"fyvr118k",md:"fyvr118l",lg:"fyvr118m",xl:"fyvr118n"},defaultClass:"fyvr118k"},4:{conditions:{sm:"fyvr118o",md:"fyvr118p",lg:"fyvr118q",xl:"fyvr118r"},defaultClass:"fyvr118o"},5:{conditions:{sm:"fyvr118s",md:"fyvr118t",lg:"fyvr118u",xl:"fyvr118v"},defaultClass:"fyvr118s"},6:{conditions:{sm:"fyvr118w",md:"fyvr118x",lg:"fyvr118y",xl:"fyvr118z"},defaultClass:"fyvr118w"},7:{conditions:{sm:"fyvr1190",md:"fyvr1191",lg:"fyvr1192",xl:"fyvr1193"},defaultClass:"fyvr1190"},8:{conditions:{sm:"fyvr1194",md:"fyvr1195",lg:"fyvr1196",xl:"fyvr1197"},defaultClass:"fyvr1194"},9:{conditions:{sm:"fyvr1198",md:"fyvr1199",lg:"fyvr119a",xl:"fyvr119b"},defaultClass:"fyvr1198"},10:{conditions:{sm:"fyvr119c",md:"fyvr119d",lg:"fyvr119e",xl:"fyvr119f"},defaultClass:"fyvr119c"},12:{conditions:{sm:"fyvr119g",md:"fyvr119h",lg:"fyvr119i",xl:"fyvr119j"},defaultClass:"fyvr119g"},14:{conditions:{sm:"fyvr119k",md:"fyvr119l",lg:"fyvr119m",xl:"fyvr119n"},defaultClass:"fyvr119k"},16:{conditions:{sm:"fyvr119o",md:"fyvr119p",lg:"fyvr119q",xl:"fyvr119r"},defaultClass:"fyvr119o"},"0.25":{conditions:{sm:"fyvr119s",md:"fyvr119t",lg:"fyvr119u",xl:"fyvr119v"},defaultClass:"fyvr119s"},"0.5":{conditions:{sm:"fyvr119w",md:"fyvr119x",lg:"fyvr119y",xl:"fyvr119z"},defaultClass:"fyvr119w"},"1.5":{conditions:{sm:"fyvr11a0",md:"fyvr11a1",lg:"fyvr11a2",xl:"fyvr11a3"},defaultClass:"fyvr11a0"}}},borderBottomWidth:{values:{none:{conditions:{sm:"fyvr11a4",md:"fyvr11a5",lg:"fyvr11a6",xl:"fyvr11a7"},defaultClass:"fyvr11a4"},thin:{conditions:{sm:"fyvr11a8",md:"fyvr11a9",lg:"fyvr11aa",xl:"fyvr11ab"},defaultClass:"fyvr11a8"},thick:{conditions:{sm:"fyvr11ac",md:"fyvr11ad",lg:"fyvr11ae",xl:"fyvr11af"},defaultClass:"fyvr11ac"}}},borderLeftWidth:{values:{none:{conditions:{sm:"fyvr11ag",md:"fyvr11ah",lg:"fyvr11ai",xl:"fyvr11aj"},defaultClass:"fyvr11ag"},thin:{conditions:{sm:"fyvr11ak",md:"fyvr11al",lg:"fyvr11am",xl:"fyvr11an"},defaultClass:"fyvr11ak"},thick:{conditions:{sm:"fyvr11ao",md:"fyvr11ap",lg:"fyvr11aq",xl:"fyvr11ar"},defaultClass:"fyvr11ao"}}},borderRightWidth:{values:{none:{conditions:{sm:"fyvr11as",md:"fyvr11at",lg:"fyvr11au",xl:"fyvr11av"},defaultClass:"fyvr11as"},thin:{conditions:{sm:"fyvr11aw",md:"fyvr11ax",lg:"fyvr11ay",xl:"fyvr11az"},defaultClass:"fyvr11aw"},thick:{conditions:{sm:"fyvr11b0",md:"fyvr11b1",lg:"fyvr11b2",xl:"fyvr11b3"},defaultClass:"fyvr11b0"}}},borderTopWidth:{values:{none:{conditions:{sm:"fyvr11b4",md:"fyvr11b5",lg:"fyvr11b6",xl:"fyvr11b7"},defaultClass:"fyvr11b4"},thin:{conditions:{sm:"fyvr11b8",md:"fyvr11b9",lg:"fyvr11ba",xl:"fyvr11bb"},defaultClass:"fyvr11b8"},thick:{conditions:{sm:"fyvr11bc",md:"fyvr11bd",lg:"fyvr11be",xl:"fyvr11bf"},defaultClass:"fyvr11bc"}}},borderBottomLeftRadius:{values:{none:{conditions:{sm:"fyvr11bg",md:"fyvr11bh",lg:"fyvr11bi",xl:"fyvr11bj"},defaultClass:"fyvr11bg"},xs:{conditions:{sm:"fyvr11bk",md:"fyvr11bl",lg:"fyvr11bm",xl:"fyvr11bn"},defaultClass:"fyvr11bk"},sm:{conditions:{sm:"fyvr11bo",md:"fyvr11bp",lg:"fyvr11bq",xl:"fyvr11br"},defaultClass:"fyvr11bo"},md:{conditions:{sm:"fyvr11bs",md:"fyvr11bt",lg:"fyvr11bu",xl:"fyvr11bv"},defaultClass:"fyvr11bs"},lg:{conditions:{sm:"fyvr11bw",md:"fyvr11bx",lg:"fyvr11by",xl:"fyvr11bz"},defaultClass:"fyvr11bw"},circle:{conditions:{sm:"fyvr11c0",md:"fyvr11c1",lg:"fyvr11c2",xl:"fyvr11c3"},defaultClass:"fyvr11c0"}}},borderBottomRightRadius:{values:{none:{conditions:{sm:"fyvr11c4",md:"fyvr11c5",lg:"fyvr11c6",xl:"fyvr11c7"},defaultClass:"fyvr11c4"},xs:{conditions:{sm:"fyvr11c8",md:"fyvr11c9",lg:"fyvr11ca",xl:"fyvr11cb"},defaultClass:"fyvr11c8"},sm:{conditions:{sm:"fyvr11cc",md:"fyvr11cd",lg:"fyvr11ce",xl:"fyvr11cf"},defaultClass:"fyvr11cc"},md:{conditions:{sm:"fyvr11cg",md:"fyvr11ch",lg:"fyvr11ci",xl:"fyvr11cj"},defaultClass:"fyvr11cg"},lg:{conditions:{sm:"fyvr11ck",md:"fyvr11cl",lg:"fyvr11cm",xl:"fyvr11cn"},defaultClass:"fyvr11ck"},circle:{conditions:{sm:"fyvr11co",md:"fyvr11cp",lg:"fyvr11cq",xl:"fyvr11cr"},defaultClass:"fyvr11co"}}},borderTopLeftRadius:{values:{none:{conditions:{sm:"fyvr11cs",md:"fyvr11ct",lg:"fyvr11cu",xl:"fyvr11cv"},defaultClass:"fyvr11cs"},xs:{conditions:{sm:"fyvr11cw",md:"fyvr11cx",lg:"fyvr11cy",xl:"fyvr11cz"},defaultClass:"fyvr11cw"},sm:{conditions:{sm:"fyvr11d0",md:"fyvr11d1",lg:"fyvr11d2",xl:"fyvr11d3"},defaultClass:"fyvr11d0"},md:{conditions:{sm:"fyvr11d4",md:"fyvr11d5",lg:"fyvr11d6",xl:"fyvr11d7"},defaultClass:"fyvr11d4"},lg:{conditions:{sm:"fyvr11d8",md:"fyvr11d9",lg:"fyvr11da",xl:"fyvr11db"},defaultClass:"fyvr11d8"},circle:{conditions:{sm:"fyvr11dc",md:"fyvr11dd",lg:"fyvr11de",xl:"fyvr11df"},defaultClass:"fyvr11dc"}}},borderTopRightRadius:{values:{none:{conditions:{sm:"fyvr11dg",md:"fyvr11dh",lg:"fyvr11di",xl:"fyvr11dj"},defaultClass:"fyvr11dg"},xs:{conditions:{sm:"fyvr11dk",md:"fyvr11dl",lg:"fyvr11dm",xl:"fyvr11dn"},defaultClass:"fyvr11dk"},sm:{conditions:{sm:"fyvr11do",md:"fyvr11dp",lg:"fyvr11dq",xl:"fyvr11dr"},defaultClass:"fyvr11do"},md:{conditions:{sm:"fyvr11ds",md:"fyvr11dt",lg:"fyvr11du",xl:"fyvr11dv"},defaultClass:"fyvr11ds"},lg:{conditions:{sm:"fyvr11dw",md:"fyvr11dx",lg:"fyvr11dy",xl:"fyvr11dz"},defaultClass:"fyvr11dw"},circle:{conditions:{sm:"fyvr11e0",md:"fyvr11e1",lg:"fyvr11e2",xl:"fyvr11e3"},defaultClass:"fyvr11e0"}}},fontSize:{values:{inherit:{conditions:{sm:"fyvr11e4",md:"fyvr11e5",lg:"fyvr11e6",xl:"fyvr11e7"},defaultClass:"fyvr11e4"},xsmall:{conditions:{sm:"fyvr11e8",md:"fyvr11e9",lg:"fyvr11ea",xl:"fyvr11eb"},defaultClass:"fyvr11e8"},small:{conditions:{sm:"fyvr11ec",md:"fyvr11ed",lg:"fyvr11ee",xl:"fyvr11ef"},defaultClass:"fyvr11ec"},normal:{conditions:{sm:"fyvr11eg",md:"fyvr11eh",lg:"fyvr11ei",xl:"fyvr11ej"},defaultClass:"fyvr11eg"},medium:{conditions:{sm:"fyvr11ek",md:"fyvr11el",lg:"fyvr11em",xl:"fyvr11en"},defaultClass:"fyvr11ek"},large:{conditions:{sm:"fyvr11eo",md:"fyvr11ep",lg:"fyvr11eq",xl:"fyvr11er"},defaultClass:"fyvr11eo"},xlarge:{conditions:{sm:"fyvr11es",md:"fyvr11et",lg:"fyvr11eu",xl:"fyvr11ev"},defaultClass:"fyvr11es"}}},fontWeight:{values:{inherit:{conditions:{sm:"fyvr11ew",md:"fyvr11ex",lg:"fyvr11ey",xl:"fyvr11ez"},defaultClass:"fyvr11ew"},normal:{conditions:{sm:"fyvr11f0",md:"fyvr11f1",lg:"fyvr11f2",xl:"fyvr11f3"},defaultClass:"fyvr11f0"},medium:{conditions:{sm:"fyvr11f4",md:"fyvr11f5",lg:"fyvr11f6",xl:"fyvr11f7"},defaultClass:"fyvr11f4"},semibold:{conditions:{sm:"fyvr11f8",md:"fyvr11f9",lg:"fyvr11fa",xl:"fyvr11fb"},defaultClass:"fyvr11f8"},bold:{conditions:{sm:"fyvr11fc",md:"fyvr11fd",lg:"fyvr11fe",xl:"fyvr11ff"},defaultClass:"fyvr11fc"}}},letterSpacing:{values:{inherit:{conditions:{sm:"fyvr11fg",md:"fyvr11fh",lg:"fyvr11fi",xl:"fyvr11fj"},defaultClass:"fyvr11fg"},none:{conditions:{sm:"fyvr11fk",md:"fyvr11fl",lg:"fyvr11fm",xl:"fyvr11fn"},defaultClass:"fyvr11fk"},normal:{conditions:{sm:"fyvr11fo",md:"fyvr11fp",lg:"fyvr11fq",xl:"fyvr11fr"},defaultClass:"fyvr11fo"},wide:{conditions:{sm:"fyvr11fs",md:"fyvr11ft",lg:"fyvr11fu",xl:"fyvr11fv"},defaultClass:"fyvr11fs"}}},lineHeight:{values:{4:{conditions:{sm:"fyvr11fw",md:"fyvr11fx",lg:"fyvr11fy",xl:"fyvr11fz"},defaultClass:"fyvr11fw"},5:{conditions:{sm:"fyvr11g0",md:"fyvr11g1",lg:"fyvr11g2",xl:"fyvr11g3"},defaultClass:"fyvr11g0"},6:{conditions:{sm:"fyvr11g4",md:"fyvr11g5",lg:"fyvr11g6",xl:"fyvr11g7"},defaultClass:"fyvr11g4"},7:{conditions:{sm:"fyvr11g8",md:"fyvr11g9",lg:"fyvr11ga",xl:"fyvr11gb"},defaultClass:"fyvr11g8"},9:{conditions:{sm:"fyvr11gc",md:"fyvr11gd",lg:"fyvr11ge",xl:"fyvr11gf"},defaultClass:"fyvr11gc"},inherit:{conditions:{sm:"fyvr11gg",md:"fyvr11gh",lg:"fyvr11gi",xl:"fyvr11gj"},defaultClass:"fyvr11gg"}}},textAlign:{values:{center:{conditions:{sm:"fyvr11gk",md:"fyvr11gl",lg:"fyvr11gm",xl:"fyvr11gn"},defaultClass:"fyvr11gk"},left:{conditions:{sm:"fyvr11go",md:"fyvr11gp",lg:"fyvr11gq",xl:"fyvr11gr"},defaultClass:"fyvr11go"},right:{conditions:{sm:"fyvr11gs",md:"fyvr11gt",lg:"fyvr11gu",xl:"fyvr11gv"},defaultClass:"fyvr11gs"}}},display:{values:{block:{conditions:{sm:"fyvr11gw",md:"fyvr11gx",lg:"fyvr11gy",xl:"fyvr11gz"},defaultClass:"fyvr11gw"},flex:{conditions:{sm:"fyvr11h0",md:"fyvr11h1",lg:"fyvr11h2",xl:"fyvr11h3"},defaultClass:"fyvr11h0"},grid:{conditions:{sm:"fyvr11h4",md:"fyvr11h5",lg:"fyvr11h6",xl:"fyvr11h7"},defaultClass:"fyvr11h4"},"inline-block":{conditions:{sm:"fyvr11h8",md:"fyvr11h9",lg:"fyvr11ha",xl:"fyvr11hb"},defaultClass:"fyvr11h8"},"inline-flex":{conditions:{sm:"fyvr11hc",md:"fyvr11hd",lg:"fyvr11he",xl:"fyvr11hf"},defaultClass:"fyvr11hc"},none:{conditions:{sm:"fyvr11hg",md:"fyvr11hh",lg:"fyvr11hi",xl:"fyvr11hj"},defaultClass:"fyvr11hg"},contents:{conditions:{sm:"fyvr11hk",md:"fyvr11hl",lg:"fyvr11hm",xl:"fyvr11hn"},defaultClass:"fyvr11hk"}}},position:{values:{absolute:{conditions:{sm:"fyvr11ho",md:"fyvr11hp",lg:"fyvr11hq",xl:"fyvr11hr"},defaultClass:"fyvr11ho"},fixed:{conditions:{sm:"fyvr11hs",md:"fyvr11ht",lg:"fyvr11hu",xl:"fyvr11hv"},defaultClass:"fyvr11hs"},relative:{conditions:{sm:"fyvr11hw",md:"fyvr11hx",lg:"fyvr11hy",xl:"fyvr11hz"},defaultClass:"fyvr11hw"},sticky:{conditions:{sm:"fyvr11i0",md:"fyvr11i1",lg:"fyvr11i2",xl:"fyvr11i3"},defaultClass:"fyvr11i0"}}},flexDirection:{values:{column:{conditions:{sm:"fyvr11i4",md:"fyvr11i5",lg:"fyvr11i6",xl:"fyvr11i7"},defaultClass:"fyvr11i4"},"column-reverse":{conditions:{sm:"fyvr11i8",md:"fyvr11i9",lg:"fyvr11ia",xl:"fyvr11ib"},defaultClass:"fyvr11i8"},row:{conditions:{sm:"fyvr11ic",md:"fyvr11id",lg:"fyvr11ie",xl:"fyvr11if"},defaultClass:"fyvr11ic"},"row-reverse":{conditions:{sm:"fyvr11ig",md:"fyvr11ih",lg:"fyvr11ii",xl:"fyvr11ij"},defaultClass:"fyvr11ig"}}},flexShrink:{values:{0:{conditions:{sm:"fyvr11ik",md:"fyvr11il",lg:"fyvr11im",xl:"fyvr11in"},defaultClass:"fyvr11ik"},1:{conditions:{sm:"fyvr11io",md:"fyvr11ip",lg:"fyvr11iq",xl:"fyvr11ir"},defaultClass:"fyvr11io"}}},flexGrow:{values:{0:{conditions:{sm:"fyvr11is",md:"fyvr11it",lg:"fyvr11iu",xl:"fyvr11iv"},defaultClass:"fyvr11is"},1:{conditions:{sm:"fyvr11iw",md:"fyvr11ix",lg:"fyvr11iy",xl:"fyvr11iz"},defaultClass:"fyvr11iw"}}},flexWrap:{values:{nowrap:{conditions:{sm:"fyvr11j0",md:"fyvr11j1",lg:"fyvr11j2",xl:"fyvr11j3"},defaultClass:"fyvr11j0"},wrap:{conditions:{sm:"fyvr11j4",md:"fyvr11j5",lg:"fyvr11j6",xl:"fyvr11j7"},defaultClass:"fyvr11j4"},"wrap-reverse":{conditions:{sm:"fyvr11j8",md:"fyvr11j9",lg:"fyvr11ja",xl:"fyvr11jb"},defaultClass:"fyvr11j8"}}},justifyContent:{values:{"flex-start":{conditions:{sm:"fyvr11jc",md:"fyvr11jd",lg:"fyvr11je",xl:"fyvr11jf"},defaultClass:"fyvr11jc"},center:{conditions:{sm:"fyvr11jg",md:"fyvr11jh",lg:"fyvr11ji",xl:"fyvr11jj"},defaultClass:"fyvr11jg"},"flex-end":{conditions:{sm:"fyvr11jk",md:"fyvr11jl",lg:"fyvr11jm",xl:"fyvr11jn"},defaultClass:"fyvr11jk"},stretch:{conditions:{sm:"fyvr11jo",md:"fyvr11jp",lg:"fyvr11jq",xl:"fyvr11jr"},defaultClass:"fyvr11jo"},"space-around":{conditions:{sm:"fyvr11js",md:"fyvr11jt",lg:"fyvr11ju",xl:"fyvr11jv"},defaultClass:"fyvr11js"},"space-between":{conditions:{sm:"fyvr11jw",md:"fyvr11jx",lg:"fyvr11jy",xl:"fyvr11jz"},defaultClass:"fyvr11jw"},"space-evenly":{conditions:{sm:"fyvr11k0",md:"fyvr11k1",lg:"fyvr11k2",xl:"fyvr11k3"},defaultClass:"fyvr11k0"}}},justifySelf:{values:{"flex-start":{conditions:{sm:"fyvr11k4",md:"fyvr11k5",lg:"fyvr11k6",xl:"fyvr11k7"},defaultClass:"fyvr11k4"},center:{conditions:{sm:"fyvr11k8",md:"fyvr11k9",lg:"fyvr11ka",xl:"fyvr11kb"},defaultClass:"fyvr11k8"},"flex-end":{conditions:{sm:"fyvr11kc",md:"fyvr11kd",lg:"fyvr11ke",xl:"fyvr11kf"},defaultClass:"fyvr11kc"},stretch:{conditions:{sm:"fyvr11kg",md:"fyvr11kh",lg:"fyvr11ki",xl:"fyvr11kj"},defaultClass:"fyvr11kg"}}},alignItems:{values:{"flex-start":{conditions:{sm:"fyvr11kk",md:"fyvr11kl",lg:"fyvr11km",xl:"fyvr11kn"},defaultClass:"fyvr11kk"},center:{conditions:{sm:"fyvr11ko",md:"fyvr11kp",lg:"fyvr11kq",xl:"fyvr11kr"},defaultClass:"fyvr11ko"},"flex-end":{conditions:{sm:"fyvr11ks",md:"fyvr11kt",lg:"fyvr11ku",xl:"fyvr11kv"},defaultClass:"fyvr11ks"},stretch:{conditions:{sm:"fyvr11kw",md:"fyvr11kx",lg:"fyvr11ky",xl:"fyvr11kz"},defaultClass:"fyvr11kw"},baseline:{conditions:{sm:"fyvr11l0",md:"fyvr11l1",lg:"fyvr11l2",xl:"fyvr11l3"},defaultClass:"fyvr11l0"}}},alignSelf:{values:{"flex-start":{conditions:{sm:"fyvr11l4",md:"fyvr11l5",lg:"fyvr11l6",xl:"fyvr11l7"},defaultClass:"fyvr11l4"},center:{conditions:{sm:"fyvr11l8",md:"fyvr11l9",lg:"fyvr11la",xl:"fyvr11lb"},defaultClass:"fyvr11l8"},"flex-end":{conditions:{sm:"fyvr11lc",md:"fyvr11ld",lg:"fyvr11le",xl:"fyvr11lf"},defaultClass:"fyvr11lc"},stretch:{conditions:{sm:"fyvr11lg",md:"fyvr11lh",lg:"fyvr11li",xl:"fyvr11lj"},defaultClass:"fyvr11lg"},baseline:{conditions:{sm:"fyvr11lk",md:"fyvr11ll",lg:"fyvr11lm",xl:"fyvr11ln"},defaultClass:"fyvr11lk"}}},overflowX:{values:{auto:{conditions:{sm:"fyvr11lo",md:"fyvr11lp",lg:"fyvr11lq",xl:"fyvr11lr"},defaultClass:"fyvr11lo"},hidden:{conditions:{sm:"fyvr11ls",md:"fyvr11lt",lg:"fyvr11lu",xl:"fyvr11lv"},defaultClass:"fyvr11ls"},scroll:{conditions:{sm:"fyvr11lw",md:"fyvr11lx",lg:"fyvr11ly",xl:"fyvr11lz"},defaultClass:"fyvr11lw"},visible:{conditions:{sm:"fyvr11m0",md:"fyvr11m1",lg:"fyvr11m2",xl:"fyvr11m3"},defaultClass:"fyvr11m0"}}},overflowY:{values:{auto:{conditions:{sm:"fyvr11m4",md:"fyvr11m5",lg:"fyvr11m6",xl:"fyvr11m7"},defaultClass:"fyvr11m4"},hidden:{conditions:{sm:"fyvr11m8",md:"fyvr11m9",lg:"fyvr11ma",xl:"fyvr11mb"},defaultClass:"fyvr11m8"},scroll:{conditions:{sm:"fyvr11mc",md:"fyvr11md",lg:"fyvr11me",xl:"fyvr11mf"},defaultClass:"fyvr11mc"},visible:{conditions:{sm:"fyvr11mg",md:"fyvr11mh",lg:"fyvr11mi",xl:"fyvr11mj"},defaultClass:"fyvr11mg"}}},visibility:{values:{hidden:{conditions:{sm:"fyvr11mk",md:"fyvr11ml",lg:"fyvr11mm",xl:"fyvr11mn"},defaultClass:"fyvr11mk"},visible:{conditions:{sm:"fyvr11mo",md:"fyvr11mp",lg:"fyvr11mq",xl:"fyvr11mr"},defaultClass:"fyvr11mo"}}}}},{conditions:void 0,styles:{backdropFilter:{values:{blur:{defaultClass:"fyvr11ms"},none:{defaultClass:"fyvr11mt"}}},fontFamily:{values:{inherit:{defaultClass:"fyvr11mu"},body:{defaultClass:"fyvr11mv"},mono:{defaultClass:"fyvr11mw"}}},textOverflow:{values:{ellipsis:{defaultClass:"fyvr11mx"},clip:{defaultClass:"fyvr11my"}}},textTransform:{values:{capitalize:{defaultClass:"fyvr11mz"},lowercase:{defaultClass:"fyvr11n0"},uppercase:{defaultClass:"fyvr11n1"}}},textDecoration:{values:{none:{defaultClass:"fyvr11n2"},underline:{defaultClass:"fyvr11n3"}}},userSelect:{values:{none:{defaultClass:"fyvr11n4"},text:{defaultClass:"fyvr11n5"},all:{defaultClass:"fyvr11n6"},auto:{defaultClass:"fyvr11n7"}}},whiteSpace:{values:{normal:{defaultClass:"fyvr11n8"},nowrap:{defaultClass:"fyvr11n9"},initial:{defaultClass:"fyvr11na"},inherit:{defaultClass:"fyvr11nb"}}},wordBreak:{values:{"break-word":{defaultClass:"fyvr11nc"}}},wordWrap:{values:{normal:{defaultClass:"fyvr11nd"},"break-word":{defaultClass:"fyvr11ne"},initial:{defaultClass:"fyvr11nf"},inherit:{defaultClass:"fyvr11ng"}}},zIndex:{values:{0:{defaultClass:"fyvr11nh"},1:{defaultClass:"fyvr11ni"},10:{defaultClass:"fyvr11nj"},20:{defaultClass:"fyvr11nk"},30:{defaultClass:"fyvr11nl"},40:{defaultClass:"fyvr11nm"},50:{defaultClass:"fyvr11nn"},"-1":{defaultClass:"fyvr11no"},auto:{defaultClass:"fyvr11np"}}},aspectRatio:{values:{"1/1":{defaultClass:"fyvr11nq"},"16/9":{defaultClass:"fyvr11nr"},"4/3":{defaultClass:"fyvr11ns"},"3/1":{defaultClass:"fyvr11nt"},auto:{defaultClass:"fyvr11nu"}}}}},{conditions:{defaultCondition:"base",conditionNames:["base","active","disabled","focus","hover","checked"],responsiveArray:void 0},styles:{borderColor:{mappings:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]},borderStyle:{mappings:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"]},focusRing:{mappings:["boxShadow","outline"]},background:{values:{black:{conditions:{base:"fyvr11nv",active:"fyvr11nw",disabled:"fyvr11nx",focus:"fyvr11ny",hover:"fyvr11nz",checked:"fyvr11o0"},defaultClass:"fyvr11nv"},white:{conditions:{base:"fyvr11o1",active:"fyvr11o2",disabled:"fyvr11o3",focus:"fyvr11o4",hover:"fyvr11o5",checked:"fyvr11o6"},defaultClass:"fyvr11o1"},inherit:{conditions:{base:"fyvr11o7",active:"fyvr11o8",disabled:"fyvr11o9",focus:"fyvr11oa",hover:"fyvr11ob",checked:"fyvr11oc"},defaultClass:"fyvr11o7"},transparent:{conditions:{base:"fyvr11od",active:"fyvr11oe",disabled:"fyvr11of",focus:"fyvr11og",hover:"fyvr11oh",checked:"fyvr11oi"},defaultClass:"fyvr11od"},positive:{conditions:{base:"fyvr11oj",active:"fyvr11ok",disabled:"fyvr11ol",focus:"fyvr11om",hover:"fyvr11on",checked:"fyvr11oo"},defaultClass:"fyvr11oj"},negative:{conditions:{base:"fyvr11op",active:"fyvr11oq",disabled:"fyvr11or",focus:"fyvr11os",hover:"fyvr11ot",checked:"fyvr11ou"},defaultClass:"fyvr11op"},info:{conditions:{base:"fyvr11ov",active:"fyvr11ow",disabled:"fyvr11ox",focus:"fyvr11oy",hover:"fyvr11oz",checked:"fyvr11p0"},defaultClass:"fyvr11ov"},warning:{conditions:{base:"fyvr11p1",active:"fyvr11p2",disabled:"fyvr11p3",focus:"fyvr11p4",hover:"fyvr11p5",checked:"fyvr11p6"},defaultClass:"fyvr11p1"},gradientBackdrop:{conditions:{base:"fyvr11p7",active:"fyvr11p8",disabled:"fyvr11p9",focus:"fyvr11pa",hover:"fyvr11pb",checked:"fyvr11pc"},defaultClass:"fyvr11p7"},gradientPrimary:{conditions:{base:"fyvr11pd",active:"fyvr11pe",disabled:"fyvr11pf",focus:"fyvr11pg",hover:"fyvr11ph",checked:"fyvr11pi"},defaultClass:"fyvr11pd"},gradientSecondary:{conditions:{base:"fyvr11pj",active:"fyvr11pk",disabled:"fyvr11pl",focus:"fyvr11pm",hover:"fyvr11pn",checked:"fyvr11po"},defaultClass:"fyvr11pj"},arbitrumDark:{conditions:{base:"fyvr11pp",active:"fyvr11pq",disabled:"fyvr11pr",focus:"fyvr11ps",hover:"fyvr11pt",checked:"fyvr11pu"},defaultClass:"fyvr11pp"},arbitrumLight:{conditions:{base:"fyvr11pv",active:"fyvr11pw",disabled:"fyvr11px",focus:"fyvr11py",hover:"fyvr11pz",checked:"fyvr11q0"},defaultClass:"fyvr11pv"},avalanceDark:{conditions:{base:"fyvr11q1",active:"fyvr11q2",disabled:"fyvr11q3",focus:"fyvr11q4",hover:"fyvr11q5",checked:"fyvr11q6"},defaultClass:"fyvr11q1"},avalanceLight:{conditions:{base:"fyvr11q7",active:"fyvr11q8",disabled:"fyvr11q9",focus:"fyvr11qa",hover:"fyvr11qb",checked:"fyvr11qc"},defaultClass:"fyvr11q7"},bscDark:{conditions:{base:"fyvr11qd",active:"fyvr11qe",disabled:"fyvr11qf",focus:"fyvr11qg",hover:"fyvr11qh",checked:"fyvr11qi"},defaultClass:"fyvr11qd"},bscLight:{conditions:{base:"fyvr11qj",active:"fyvr11qk",disabled:"fyvr11ql",focus:"fyvr11qm",hover:"fyvr11qn",checked:"fyvr11qo"},defaultClass:"fyvr11qj"},ethereumDark:{conditions:{base:"fyvr11qp",active:"fyvr11qq",disabled:"fyvr11qr",focus:"fyvr11qs",hover:"fyvr11qt",checked:"fyvr11qu"},defaultClass:"fyvr11qp"},ethereumLight:{conditions:{base:"fyvr11qv",active:"fyvr11qw",disabled:"fyvr11qx",focus:"fyvr11qy",hover:"fyvr11qz",checked:"fyvr11r0"},defaultClass:"fyvr11qv"},gnosisDark:{conditions:{base:"fyvr11r1",active:"fyvr11r2",disabled:"fyvr11r3",focus:"fyvr11r4",hover:"fyvr11r5",checked:"fyvr11r6"},defaultClass:"fyvr11r1"},gnosisLight:{conditions:{base:"fyvr11r7",active:"fyvr11r8",disabled:"fyvr11r9",focus:"fyvr11ra",hover:"fyvr11rb",checked:"fyvr11rc"},defaultClass:"fyvr11r7"},polygonDark:{conditions:{base:"fyvr11rd",active:"fyvr11re",disabled:"fyvr11rf",focus:"fyvr11rg",hover:"fyvr11rh",checked:"fyvr11ri"},defaultClass:"fyvr11rd"},polygonLight:{conditions:{base:"fyvr11rj",active:"fyvr11rk",disabled:"fyvr11rl",focus:"fyvr11rm",hover:"fyvr11rn",checked:"fyvr11ro"},defaultClass:"fyvr11rj"},text100:{conditions:{base:"fyvr11rp",active:"fyvr11rq",disabled:"fyvr11rr",focus:"fyvr11rs",hover:"fyvr11rt",checked:"fyvr11ru"},defaultClass:"fyvr11rp"},text80:{conditions:{base:"fyvr11rv",active:"fyvr11rw",disabled:"fyvr11rx",focus:"fyvr11ry",hover:"fyvr11rz",checked:"fyvr11s0"},defaultClass:"fyvr11rv"},text50:{conditions:{base:"fyvr11s1",active:"fyvr11s2",disabled:"fyvr11s3",focus:"fyvr11s4",hover:"fyvr11s5",checked:"fyvr11s6"},defaultClass:"fyvr11s1"},textInverse100:{conditions:{base:"fyvr11s7",active:"fyvr11s8",disabled:"fyvr11s9",focus:"fyvr11sa",hover:"fyvr11sb",checked:"fyvr11sc"},defaultClass:"fyvr11s7"},backgroundPrimary:{conditions:{base:"fyvr11sd",active:"fyvr11se",disabled:"fyvr11sf",focus:"fyvr11sg",hover:"fyvr11sh",checked:"fyvr11si"},defaultClass:"fyvr11sd"},backgroundSecondary:{conditions:{base:"fyvr11sj",active:"fyvr11sk",disabled:"fyvr11sl",focus:"fyvr11sm",hover:"fyvr11sn",checked:"fyvr11so"},defaultClass:"fyvr11sj"},backgroundContrast:{conditions:{base:"fyvr11sp",active:"fyvr11sq",disabled:"fyvr11sr",focus:"fyvr11ss",hover:"fyvr11st",checked:"fyvr11su"},defaultClass:"fyvr11sp"},backgroundMuted:{conditions:{base:"fyvr11sv",active:"fyvr11sw",disabled:"fyvr11sx",focus:"fyvr11sy",hover:"fyvr11sz",checked:"fyvr11t0"},defaultClass:"fyvr11sv"},backgroundControl:{conditions:{base:"fyvr11t1",active:"fyvr11t2",disabled:"fyvr11t3",focus:"fyvr11t4",hover:"fyvr11t5",checked:"fyvr11t6"},defaultClass:"fyvr11t1"},backgroundInverse:{conditions:{base:"fyvr11t7",active:"fyvr11t8",disabled:"fyvr11t9",focus:"fyvr11ta",hover:"fyvr11tb",checked:"fyvr11tc"},defaultClass:"fyvr11t7"},backgroundBackdrop:{conditions:{base:"fyvr11td",active:"fyvr11te",disabled:"fyvr11tf",focus:"fyvr11tg",hover:"fyvr11th",checked:"fyvr11ti"},defaultClass:"fyvr11td"},backgroundOverlay:{conditions:{base:"fyvr11tj",active:"fyvr11tk",disabled:"fyvr11tl",focus:"fyvr11tm",hover:"fyvr11tn",checked:"fyvr11to"},defaultClass:"fyvr11tj"},backgroundRaised:{conditions:{base:"fyvr11tp",active:"fyvr11tq",disabled:"fyvr11tr",focus:"fyvr11ts",hover:"fyvr11tt",checked:"fyvr11tu"},defaultClass:"fyvr11tp"},buttonGlass:{conditions:{base:"fyvr11tv",active:"fyvr11tw",disabled:"fyvr11tx",focus:"fyvr11ty",hover:"fyvr11tz",checked:"fyvr11u0"},defaultClass:"fyvr11tv"},buttonEmphasis:{conditions:{base:"fyvr11u1",active:"fyvr11u2",disabled:"fyvr11u3",focus:"fyvr11u4",hover:"fyvr11u5",checked:"fyvr11u6"},defaultClass:"fyvr11u1"},buttonInverse:{conditions:{base:"fyvr11u7",active:"fyvr11u8",disabled:"fyvr11u9",focus:"fyvr11ua",hover:"fyvr11ub",checked:"fyvr11uc"},defaultClass:"fyvr11u7"},borderNormal:{conditions:{base:"fyvr11ud",active:"fyvr11ue",disabled:"fyvr11uf",focus:"fyvr11ug",hover:"fyvr11uh",checked:"fyvr11ui"},defaultClass:"fyvr11ud"},borderFocus:{conditions:{base:"fyvr11uj",active:"fyvr11uk",disabled:"fyvr11ul",focus:"fyvr11um",hover:"fyvr11un",checked:"fyvr11uo"},defaultClass:"fyvr11uj"}}},borderBottomColor:{values:{black:{conditions:{base:"fyvr11up",active:"fyvr11uq",disabled:"fyvr11ur",focus:"fyvr11us",hover:"fyvr11ut",checked:"fyvr11uu"},defaultClass:"fyvr11up"},white:{conditions:{base:"fyvr11uv",active:"fyvr11uw",disabled:"fyvr11ux",focus:"fyvr11uy",hover:"fyvr11uz",checked:"fyvr11v0"},defaultClass:"fyvr11uv"},inherit:{conditions:{base:"fyvr11v1",active:"fyvr11v2",disabled:"fyvr11v3",focus:"fyvr11v4",hover:"fyvr11v5",checked:"fyvr11v6"},defaultClass:"fyvr11v1"},transparent:{conditions:{base:"fyvr11v7",active:"fyvr11v8",disabled:"fyvr11v9",focus:"fyvr11va",hover:"fyvr11vb",checked:"fyvr11vc"},defaultClass:"fyvr11v7"},positive:{conditions:{base:"fyvr11vd",active:"fyvr11ve",disabled:"fyvr11vf",focus:"fyvr11vg",hover:"fyvr11vh",checked:"fyvr11vi"},defaultClass:"fyvr11vd"},negative:{conditions:{base:"fyvr11vj",active:"fyvr11vk",disabled:"fyvr11vl",focus:"fyvr11vm",hover:"fyvr11vn",checked:"fyvr11vo"},defaultClass:"fyvr11vj"},info:{conditions:{base:"fyvr11vp",active:"fyvr11vq",disabled:"fyvr11vr",focus:"fyvr11vs",hover:"fyvr11vt",checked:"fyvr11vu"},defaultClass:"fyvr11vp"},warning:{conditions:{base:"fyvr11vv",active:"fyvr11vw",disabled:"fyvr11vx",focus:"fyvr11vy",hover:"fyvr11vz",checked:"fyvr11w0"},defaultClass:"fyvr11vv"},gradientBackdrop:{conditions:{base:"fyvr11w1",active:"fyvr11w2",disabled:"fyvr11w3",focus:"fyvr11w4",hover:"fyvr11w5",checked:"fyvr11w6"},defaultClass:"fyvr11w1"},gradientPrimary:{conditions:{base:"fyvr11w7",active:"fyvr11w8",disabled:"fyvr11w9",focus:"fyvr11wa",hover:"fyvr11wb",checked:"fyvr11wc"},defaultClass:"fyvr11w7"},gradientSecondary:{conditions:{base:"fyvr11wd",active:"fyvr11we",disabled:"fyvr11wf",focus:"fyvr11wg",hover:"fyvr11wh",checked:"fyvr11wi"},defaultClass:"fyvr11wd"},arbitrumDark:{conditions:{base:"fyvr11wj",active:"fyvr11wk",disabled:"fyvr11wl",focus:"fyvr11wm",hover:"fyvr11wn",checked:"fyvr11wo"},defaultClass:"fyvr11wj"},arbitrumLight:{conditions:{base:"fyvr11wp",active:"fyvr11wq",disabled:"fyvr11wr",focus:"fyvr11ws",hover:"fyvr11wt",checked:"fyvr11wu"},defaultClass:"fyvr11wp"},avalanceDark:{conditions:{base:"fyvr11wv",active:"fyvr11ww",disabled:"fyvr11wx",focus:"fyvr11wy",hover:"fyvr11wz",checked:"fyvr11x0"},defaultClass:"fyvr11wv"},avalanceLight:{conditions:{base:"fyvr11x1",active:"fyvr11x2",disabled:"fyvr11x3",focus:"fyvr11x4",hover:"fyvr11x5",checked:"fyvr11x6"},defaultClass:"fyvr11x1"},bscDark:{conditions:{base:"fyvr11x7",active:"fyvr11x8",disabled:"fyvr11x9",focus:"fyvr11xa",hover:"fyvr11xb",checked:"fyvr11xc"},defaultClass:"fyvr11x7"},bscLight:{conditions:{base:"fyvr11xd",active:"fyvr11xe",disabled:"fyvr11xf",focus:"fyvr11xg",hover:"fyvr11xh",checked:"fyvr11xi"},defaultClass:"fyvr11xd"},ethereumDark:{conditions:{base:"fyvr11xj",active:"fyvr11xk",disabled:"fyvr11xl",focus:"fyvr11xm",hover:"fyvr11xn",checked:"fyvr11xo"},defaultClass:"fyvr11xj"},ethereumLight:{conditions:{base:"fyvr11xp",active:"fyvr11xq",disabled:"fyvr11xr",focus:"fyvr11xs",hover:"fyvr11xt",checked:"fyvr11xu"},defaultClass:"fyvr11xp"},gnosisDark:{conditions:{base:"fyvr11xv",active:"fyvr11xw",disabled:"fyvr11xx",focus:"fyvr11xy",hover:"fyvr11xz",checked:"fyvr11y0"},defaultClass:"fyvr11xv"},gnosisLight:{conditions:{base:"fyvr11y1",active:"fyvr11y2",disabled:"fyvr11y3",focus:"fyvr11y4",hover:"fyvr11y5",checked:"fyvr11y6"},defaultClass:"fyvr11y1"},polygonDark:{conditions:{base:"fyvr11y7",active:"fyvr11y8",disabled:"fyvr11y9",focus:"fyvr11ya",hover:"fyvr11yb",checked:"fyvr11yc"},defaultClass:"fyvr11y7"},polygonLight:{conditions:{base:"fyvr11yd",active:"fyvr11ye",disabled:"fyvr11yf",focus:"fyvr11yg",hover:"fyvr11yh",checked:"fyvr11yi"},defaultClass:"fyvr11yd"},text100:{conditions:{base:"fyvr11yj",active:"fyvr11yk",disabled:"fyvr11yl",focus:"fyvr11ym",hover:"fyvr11yn",checked:"fyvr11yo"},defaultClass:"fyvr11yj"},text80:{conditions:{base:"fyvr11yp",active:"fyvr11yq",disabled:"fyvr11yr",focus:"fyvr11ys",hover:"fyvr11yt",checked:"fyvr11yu"},defaultClass:"fyvr11yp"},text50:{conditions:{base:"fyvr11yv",active:"fyvr11yw",disabled:"fyvr11yx",focus:"fyvr11yy",hover:"fyvr11yz",checked:"fyvr11z0"},defaultClass:"fyvr11yv"},textInverse100:{conditions:{base:"fyvr11z1",active:"fyvr11z2",disabled:"fyvr11z3",focus:"fyvr11z4",hover:"fyvr11z5",checked:"fyvr11z6"},defaultClass:"fyvr11z1"},backgroundPrimary:{conditions:{base:"fyvr11z7",active:"fyvr11z8",disabled:"fyvr11z9",focus:"fyvr11za",hover:"fyvr11zb",checked:"fyvr11zc"},defaultClass:"fyvr11z7"},backgroundSecondary:{conditions:{base:"fyvr11zd",active:"fyvr11ze",disabled:"fyvr11zf",focus:"fyvr11zg",hover:"fyvr11zh",checked:"fyvr11zi"},defaultClass:"fyvr11zd"},backgroundContrast:{conditions:{base:"fyvr11zj",active:"fyvr11zk",disabled:"fyvr11zl",focus:"fyvr11zm",hover:"fyvr11zn",checked:"fyvr11zo"},defaultClass:"fyvr11zj"},backgroundMuted:{conditions:{base:"fyvr11zp",active:"fyvr11zq",disabled:"fyvr11zr",focus:"fyvr11zs",hover:"fyvr11zt",checked:"fyvr11zu"},defaultClass:"fyvr11zp"},backgroundControl:{conditions:{base:"fyvr11zv",active:"fyvr11zw",disabled:"fyvr11zx",focus:"fyvr11zy",hover:"fyvr11zz",checked:"fyvr1200"},defaultClass:"fyvr11zv"},backgroundInverse:{conditions:{base:"fyvr1201",active:"fyvr1202",disabled:"fyvr1203",focus:"fyvr1204",hover:"fyvr1205",checked:"fyvr1206"},defaultClass:"fyvr1201"},backgroundBackdrop:{conditions:{base:"fyvr1207",active:"fyvr1208",disabled:"fyvr1209",focus:"fyvr120a",hover:"fyvr120b",checked:"fyvr120c"},defaultClass:"fyvr1207"},backgroundOverlay:{conditions:{base:"fyvr120d",active:"fyvr120e",disabled:"fyvr120f",focus:"fyvr120g",hover:"fyvr120h",checked:"fyvr120i"},defaultClass:"fyvr120d"},backgroundRaised:{conditions:{base:"fyvr120j",active:"fyvr120k",disabled:"fyvr120l",focus:"fyvr120m",hover:"fyvr120n",checked:"fyvr120o"},defaultClass:"fyvr120j"},buttonGlass:{conditions:{base:"fyvr120p",active:"fyvr120q",disabled:"fyvr120r",focus:"fyvr120s",hover:"fyvr120t",checked:"fyvr120u"},defaultClass:"fyvr120p"},buttonEmphasis:{conditions:{base:"fyvr120v",active:"fyvr120w",disabled:"fyvr120x",focus:"fyvr120y",hover:"fyvr120z",checked:"fyvr1210"},defaultClass:"fyvr120v"},buttonInverse:{conditions:{base:"fyvr1211",active:"fyvr1212",disabled:"fyvr1213",focus:"fyvr1214",hover:"fyvr1215",checked:"fyvr1216"},defaultClass:"fyvr1211"},borderNormal:{conditions:{base:"fyvr1217",active:"fyvr1218",disabled:"fyvr1219",focus:"fyvr121a",hover:"fyvr121b",checked:"fyvr121c"},defaultClass:"fyvr1217"},borderFocus:{conditions:{base:"fyvr121d",active:"fyvr121e",disabled:"fyvr121f",focus:"fyvr121g",hover:"fyvr121h",checked:"fyvr121i"},defaultClass:"fyvr121d"}}},borderBottomStyle:{values:{solid:{conditions:{base:"fyvr121j",active:"fyvr121k",disabled:"fyvr121l",focus:"fyvr121m",hover:"fyvr121n",checked:"fyvr121o"},defaultClass:"fyvr121j"},dashed:{conditions:{base:"fyvr121p",active:"fyvr121q",disabled:"fyvr121r",focus:"fyvr121s",hover:"fyvr121t",checked:"fyvr121u"},defaultClass:"fyvr121p"},dotted:{conditions:{base:"fyvr121v",active:"fyvr121w",disabled:"fyvr121x",focus:"fyvr121y",hover:"fyvr121z",checked:"fyvr1220"},defaultClass:"fyvr121v"}}},borderLeftColor:{values:{black:{conditions:{base:"fyvr1221",active:"fyvr1222",disabled:"fyvr1223",focus:"fyvr1224",hover:"fyvr1225",checked:"fyvr1226"},defaultClass:"fyvr1221"},white:{conditions:{base:"fyvr1227",active:"fyvr1228",disabled:"fyvr1229",focus:"fyvr122a",hover:"fyvr122b",checked:"fyvr122c"},defaultClass:"fyvr1227"},inherit:{conditions:{base:"fyvr122d",active:"fyvr122e",disabled:"fyvr122f",focus:"fyvr122g",hover:"fyvr122h",checked:"fyvr122i"},defaultClass:"fyvr122d"},transparent:{conditions:{base:"fyvr122j",active:"fyvr122k",disabled:"fyvr122l",focus:"fyvr122m",hover:"fyvr122n",checked:"fyvr122o"},defaultClass:"fyvr122j"},positive:{conditions:{base:"fyvr122p",active:"fyvr122q",disabled:"fyvr122r",focus:"fyvr122s",hover:"fyvr122t",checked:"fyvr122u"},defaultClass:"fyvr122p"},negative:{conditions:{base:"fyvr122v",active:"fyvr122w",disabled:"fyvr122x",focus:"fyvr122y",hover:"fyvr122z",checked:"fyvr1230"},defaultClass:"fyvr122v"},info:{conditions:{base:"fyvr1231",active:"fyvr1232",disabled:"fyvr1233",focus:"fyvr1234",hover:"fyvr1235",checked:"fyvr1236"},defaultClass:"fyvr1231"},warning:{conditions:{base:"fyvr1237",active:"fyvr1238",disabled:"fyvr1239",focus:"fyvr123a",hover:"fyvr123b",checked:"fyvr123c"},defaultClass:"fyvr1237"},gradientBackdrop:{conditions:{base:"fyvr123d",active:"fyvr123e",disabled:"fyvr123f",focus:"fyvr123g",hover:"fyvr123h",checked:"fyvr123i"},defaultClass:"fyvr123d"},gradientPrimary:{conditions:{base:"fyvr123j",active:"fyvr123k",disabled:"fyvr123l",focus:"fyvr123m",hover:"fyvr123n",checked:"fyvr123o"},defaultClass:"fyvr123j"},gradientSecondary:{conditions:{base:"fyvr123p",active:"fyvr123q",disabled:"fyvr123r",focus:"fyvr123s",hover:"fyvr123t",checked:"fyvr123u"},defaultClass:"fyvr123p"},arbitrumDark:{conditions:{base:"fyvr123v",active:"fyvr123w",disabled:"fyvr123x",focus:"fyvr123y",hover:"fyvr123z",checked:"fyvr1240"},defaultClass:"fyvr123v"},arbitrumLight:{conditions:{base:"fyvr1241",active:"fyvr1242",disabled:"fyvr1243",focus:"fyvr1244",hover:"fyvr1245",checked:"fyvr1246"},defaultClass:"fyvr1241"},avalanceDark:{conditions:{base:"fyvr1247",active:"fyvr1248",disabled:"fyvr1249",focus:"fyvr124a",hover:"fyvr124b",checked:"fyvr124c"},defaultClass:"fyvr1247"},avalanceLight:{conditions:{base:"fyvr124d",active:"fyvr124e",disabled:"fyvr124f",focus:"fyvr124g",hover:"fyvr124h",checked:"fyvr124i"},defaultClass:"fyvr124d"},bscDark:{conditions:{base:"fyvr124j",active:"fyvr124k",disabled:"fyvr124l",focus:"fyvr124m",hover:"fyvr124n",checked:"fyvr124o"},defaultClass:"fyvr124j"},bscLight:{conditions:{base:"fyvr124p",active:"fyvr124q",disabled:"fyvr124r",focus:"fyvr124s",hover:"fyvr124t",checked:"fyvr124u"},defaultClass:"fyvr124p"},ethereumDark:{conditions:{base:"fyvr124v",active:"fyvr124w",disabled:"fyvr124x",focus:"fyvr124y",hover:"fyvr124z",checked:"fyvr1250"},defaultClass:"fyvr124v"},ethereumLight:{conditions:{base:"fyvr1251",active:"fyvr1252",disabled:"fyvr1253",focus:"fyvr1254",hover:"fyvr1255",checked:"fyvr1256"},defaultClass:"fyvr1251"},gnosisDark:{conditions:{base:"fyvr1257",active:"fyvr1258",disabled:"fyvr1259",focus:"fyvr125a",hover:"fyvr125b",checked:"fyvr125c"},defaultClass:"fyvr1257"},gnosisLight:{conditions:{base:"fyvr125d",active:"fyvr125e",disabled:"fyvr125f",focus:"fyvr125g",hover:"fyvr125h",checked:"fyvr125i"},defaultClass:"fyvr125d"},polygonDark:{conditions:{base:"fyvr125j",active:"fyvr125k",disabled:"fyvr125l",focus:"fyvr125m",hover:"fyvr125n",checked:"fyvr125o"},defaultClass:"fyvr125j"},polygonLight:{conditions:{base:"fyvr125p",active:"fyvr125q",disabled:"fyvr125r",focus:"fyvr125s",hover:"fyvr125t",checked:"fyvr125u"},defaultClass:"fyvr125p"},text100:{conditions:{base:"fyvr125v",active:"fyvr125w",disabled:"fyvr125x",focus:"fyvr125y",hover:"fyvr125z",checked:"fyvr1260"},defaultClass:"fyvr125v"},text80:{conditions:{base:"fyvr1261",active:"fyvr1262",disabled:"fyvr1263",focus:"fyvr1264",hover:"fyvr1265",checked:"fyvr1266"},defaultClass:"fyvr1261"},text50:{conditions:{base:"fyvr1267",active:"fyvr1268",disabled:"fyvr1269",focus:"fyvr126a",hover:"fyvr126b",checked:"fyvr126c"},defaultClass:"fyvr1267"},textInverse100:{conditions:{base:"fyvr126d",active:"fyvr126e",disabled:"fyvr126f",focus:"fyvr126g",hover:"fyvr126h",checked:"fyvr126i"},defaultClass:"fyvr126d"},backgroundPrimary:{conditions:{base:"fyvr126j",active:"fyvr126k",disabled:"fyvr126l",focus:"fyvr126m",hover:"fyvr126n",checked:"fyvr126o"},defaultClass:"fyvr126j"},backgroundSecondary:{conditions:{base:"fyvr126p",active:"fyvr126q",disabled:"fyvr126r",focus:"fyvr126s",hover:"fyvr126t",checked:"fyvr126u"},defaultClass:"fyvr126p"},backgroundContrast:{conditions:{base:"fyvr126v",active:"fyvr126w",disabled:"fyvr126x",focus:"fyvr126y",hover:"fyvr126z",checked:"fyvr1270"},defaultClass:"fyvr126v"},backgroundMuted:{conditions:{base:"fyvr1271",active:"fyvr1272",disabled:"fyvr1273",focus:"fyvr1274",hover:"fyvr1275",checked:"fyvr1276"},defaultClass:"fyvr1271"},backgroundControl:{conditions:{base:"fyvr1277",active:"fyvr1278",disabled:"fyvr1279",focus:"fyvr127a",hover:"fyvr127b",checked:"fyvr127c"},defaultClass:"fyvr1277"},backgroundInverse:{conditions:{base:"fyvr127d",active:"fyvr127e",disabled:"fyvr127f",focus:"fyvr127g",hover:"fyvr127h",checked:"fyvr127i"},defaultClass:"fyvr127d"},backgroundBackdrop:{conditions:{base:"fyvr127j",active:"fyvr127k",disabled:"fyvr127l",focus:"fyvr127m",hover:"fyvr127n",checked:"fyvr127o"},defaultClass:"fyvr127j"},backgroundOverlay:{conditions:{base:"fyvr127p",active:"fyvr127q",disabled:"fyvr127r",focus:"fyvr127s",hover:"fyvr127t",checked:"fyvr127u"},defaultClass:"fyvr127p"},backgroundRaised:{conditions:{base:"fyvr127v",active:"fyvr127w",disabled:"fyvr127x",focus:"fyvr127y",hover:"fyvr127z",checked:"fyvr1280"},defaultClass:"fyvr127v"},buttonGlass:{conditions:{base:"fyvr1281",active:"fyvr1282",disabled:"fyvr1283",focus:"fyvr1284",hover:"fyvr1285",checked:"fyvr1286"},defaultClass:"fyvr1281"},buttonEmphasis:{conditions:{base:"fyvr1287",active:"fyvr1288",disabled:"fyvr1289",focus:"fyvr128a",hover:"fyvr128b",checked:"fyvr128c"},defaultClass:"fyvr1287"},buttonInverse:{conditions:{base:"fyvr128d",active:"fyvr128e",disabled:"fyvr128f",focus:"fyvr128g",hover:"fyvr128h",checked:"fyvr128i"},defaultClass:"fyvr128d"},borderNormal:{conditions:{base:"fyvr128j",active:"fyvr128k",disabled:"fyvr128l",focus:"fyvr128m",hover:"fyvr128n",checked:"fyvr128o"},defaultClass:"fyvr128j"},borderFocus:{conditions:{base:"fyvr128p",active:"fyvr128q",disabled:"fyvr128r",focus:"fyvr128s",hover:"fyvr128t",checked:"fyvr128u"},defaultClass:"fyvr128p"}}},borderLeftStyle:{values:{solid:{conditions:{base:"fyvr128v",active:"fyvr128w",disabled:"fyvr128x",focus:"fyvr128y",hover:"fyvr128z",checked:"fyvr1290"},defaultClass:"fyvr128v"},dashed:{conditions:{base:"fyvr1291",active:"fyvr1292",disabled:"fyvr1293",focus:"fyvr1294",hover:"fyvr1295",checked:"fyvr1296"},defaultClass:"fyvr1291"},dotted:{conditions:{base:"fyvr1297",active:"fyvr1298",disabled:"fyvr1299",focus:"fyvr129a",hover:"fyvr129b",checked:"fyvr129c"},defaultClass:"fyvr1297"}}},borderRightColor:{values:{black:{conditions:{base:"fyvr129d",active:"fyvr129e",disabled:"fyvr129f",focus:"fyvr129g",hover:"fyvr129h",checked:"fyvr129i"},defaultClass:"fyvr129d"},white:{conditions:{base:"fyvr129j",active:"fyvr129k",disabled:"fyvr129l",focus:"fyvr129m",hover:"fyvr129n",checked:"fyvr129o"},defaultClass:"fyvr129j"},inherit:{conditions:{base:"fyvr129p",active:"fyvr129q",disabled:"fyvr129r",focus:"fyvr129s",hover:"fyvr129t",checked:"fyvr129u"},defaultClass:"fyvr129p"},transparent:{conditions:{base:"fyvr129v",active:"fyvr129w",disabled:"fyvr129x",focus:"fyvr129y",hover:"fyvr129z",checked:"fyvr12a0"},defaultClass:"fyvr129v"},positive:{conditions:{base:"fyvr12a1",active:"fyvr12a2",disabled:"fyvr12a3",focus:"fyvr12a4",hover:"fyvr12a5",checked:"fyvr12a6"},defaultClass:"fyvr12a1"},negative:{conditions:{base:"fyvr12a7",active:"fyvr12a8",disabled:"fyvr12a9",focus:"fyvr12aa",hover:"fyvr12ab",checked:"fyvr12ac"},defaultClass:"fyvr12a7"},info:{conditions:{base:"fyvr12ad",active:"fyvr12ae",disabled:"fyvr12af",focus:"fyvr12ag",hover:"fyvr12ah",checked:"fyvr12ai"},defaultClass:"fyvr12ad"},warning:{conditions:{base:"fyvr12aj",active:"fyvr12ak",disabled:"fyvr12al",focus:"fyvr12am",hover:"fyvr12an",checked:"fyvr12ao"},defaultClass:"fyvr12aj"},gradientBackdrop:{conditions:{base:"fyvr12ap",active:"fyvr12aq",disabled:"fyvr12ar",focus:"fyvr12as",hover:"fyvr12at",checked:"fyvr12au"},defaultClass:"fyvr12ap"},gradientPrimary:{conditions:{base:"fyvr12av",active:"fyvr12aw",disabled:"fyvr12ax",focus:"fyvr12ay",hover:"fyvr12az",checked:"fyvr12b0"},defaultClass:"fyvr12av"},gradientSecondary:{conditions:{base:"fyvr12b1",active:"fyvr12b2",disabled:"fyvr12b3",focus:"fyvr12b4",hover:"fyvr12b5",checked:"fyvr12b6"},defaultClass:"fyvr12b1"},arbitrumDark:{conditions:{base:"fyvr12b7",active:"fyvr12b8",disabled:"fyvr12b9",focus:"fyvr12ba",hover:"fyvr12bb",checked:"fyvr12bc"},defaultClass:"fyvr12b7"},arbitrumLight:{conditions:{base:"fyvr12bd",active:"fyvr12be",disabled:"fyvr12bf",focus:"fyvr12bg",hover:"fyvr12bh",checked:"fyvr12bi"},defaultClass:"fyvr12bd"},avalanceDark:{conditions:{base:"fyvr12bj",active:"fyvr12bk",disabled:"fyvr12bl",focus:"fyvr12bm",hover:"fyvr12bn",checked:"fyvr12bo"},defaultClass:"fyvr12bj"},avalanceLight:{conditions:{base:"fyvr12bp",active:"fyvr12bq",disabled:"fyvr12br",focus:"fyvr12bs",hover:"fyvr12bt",checked:"fyvr12bu"},defaultClass:"fyvr12bp"},bscDark:{conditions:{base:"fyvr12bv",active:"fyvr12bw",disabled:"fyvr12bx",focus:"fyvr12by",hover:"fyvr12bz",checked:"fyvr12c0"},defaultClass:"fyvr12bv"},bscLight:{conditions:{base:"fyvr12c1",active:"fyvr12c2",disabled:"fyvr12c3",focus:"fyvr12c4",hover:"fyvr12c5",checked:"fyvr12c6"},defaultClass:"fyvr12c1"},ethereumDark:{conditions:{base:"fyvr12c7",active:"fyvr12c8",disabled:"fyvr12c9",focus:"fyvr12ca",hover:"fyvr12cb",checked:"fyvr12cc"},defaultClass:"fyvr12c7"},ethereumLight:{conditions:{base:"fyvr12cd",active:"fyvr12ce",disabled:"fyvr12cf",focus:"fyvr12cg",hover:"fyvr12ch",checked:"fyvr12ci"},defaultClass:"fyvr12cd"},gnosisDark:{conditions:{base:"fyvr12cj",active:"fyvr12ck",disabled:"fyvr12cl",focus:"fyvr12cm",hover:"fyvr12cn",checked:"fyvr12co"},defaultClass:"fyvr12cj"},gnosisLight:{conditions:{base:"fyvr12cp",active:"fyvr12cq",disabled:"fyvr12cr",focus:"fyvr12cs",hover:"fyvr12ct",checked:"fyvr12cu"},defaultClass:"fyvr12cp"},polygonDark:{conditions:{base:"fyvr12cv",active:"fyvr12cw",disabled:"fyvr12cx",focus:"fyvr12cy",hover:"fyvr12cz",checked:"fyvr12d0"},defaultClass:"fyvr12cv"},polygonLight:{conditions:{base:"fyvr12d1",active:"fyvr12d2",disabled:"fyvr12d3",focus:"fyvr12d4",hover:"fyvr12d5",checked:"fyvr12d6"},defaultClass:"fyvr12d1"},text100:{conditions:{base:"fyvr12d7",active:"fyvr12d8",disabled:"fyvr12d9",focus:"fyvr12da",hover:"fyvr12db",checked:"fyvr12dc"},defaultClass:"fyvr12d7"},text80:{conditions:{base:"fyvr12dd",active:"fyvr12de",disabled:"fyvr12df",focus:"fyvr12dg",hover:"fyvr12dh",checked:"fyvr12di"},defaultClass:"fyvr12dd"},text50:{conditions:{base:"fyvr12dj",active:"fyvr12dk",disabled:"fyvr12dl",focus:"fyvr12dm",hover:"fyvr12dn",checked:"fyvr12do"},defaultClass:"fyvr12dj"},textInverse100:{conditions:{base:"fyvr12dp",active:"fyvr12dq",disabled:"fyvr12dr",focus:"fyvr12ds",hover:"fyvr12dt",checked:"fyvr12du"},defaultClass:"fyvr12dp"},backgroundPrimary:{conditions:{base:"fyvr12dv",active:"fyvr12dw",disabled:"fyvr12dx",focus:"fyvr12dy",hover:"fyvr12dz",checked:"fyvr12e0"},defaultClass:"fyvr12dv"},backgroundSecondary:{conditions:{base:"fyvr12e1",active:"fyvr12e2",disabled:"fyvr12e3",focus:"fyvr12e4",hover:"fyvr12e5",checked:"fyvr12e6"},defaultClass:"fyvr12e1"},backgroundContrast:{conditions:{base:"fyvr12e7",active:"fyvr12e8",disabled:"fyvr12e9",focus:"fyvr12ea",hover:"fyvr12eb",checked:"fyvr12ec"},defaultClass:"fyvr12e7"},backgroundMuted:{conditions:{base:"fyvr12ed",active:"fyvr12ee",disabled:"fyvr12ef",focus:"fyvr12eg",hover:"fyvr12eh",checked:"fyvr12ei"},defaultClass:"fyvr12ed"},backgroundControl:{conditions:{base:"fyvr12ej",active:"fyvr12ek",disabled:"fyvr12el",focus:"fyvr12em",hover:"fyvr12en",checked:"fyvr12eo"},defaultClass:"fyvr12ej"},backgroundInverse:{conditions:{base:"fyvr12ep",active:"fyvr12eq",disabled:"fyvr12er",focus:"fyvr12es",hover:"fyvr12et",checked:"fyvr12eu"},defaultClass:"fyvr12ep"},backgroundBackdrop:{conditions:{base:"fyvr12ev",active:"fyvr12ew",disabled:"fyvr12ex",focus:"fyvr12ey",hover:"fyvr12ez",checked:"fyvr12f0"},defaultClass:"fyvr12ev"},backgroundOverlay:{conditions:{base:"fyvr12f1",active:"fyvr12f2",disabled:"fyvr12f3",focus:"fyvr12f4",hover:"fyvr12f5",checked:"fyvr12f6"},defaultClass:"fyvr12f1"},backgroundRaised:{conditions:{base:"fyvr12f7",active:"fyvr12f8",disabled:"fyvr12f9",focus:"fyvr12fa",hover:"fyvr12fb",checked:"fyvr12fc"},defaultClass:"fyvr12f7"},buttonGlass:{conditions:{base:"fyvr12fd",active:"fyvr12fe",disabled:"fyvr12ff",focus:"fyvr12fg",hover:"fyvr12fh",checked:"fyvr12fi"},defaultClass:"fyvr12fd"},buttonEmphasis:{conditions:{base:"fyvr12fj",active:"fyvr12fk",disabled:"fyvr12fl",focus:"fyvr12fm",hover:"fyvr12fn",checked:"fyvr12fo"},defaultClass:"fyvr12fj"},buttonInverse:{conditions:{base:"fyvr12fp",active:"fyvr12fq",disabled:"fyvr12fr",focus:"fyvr12fs",hover:"fyvr12ft",checked:"fyvr12fu"},defaultClass:"fyvr12fp"},borderNormal:{conditions:{base:"fyvr12fv",active:"fyvr12fw",disabled:"fyvr12fx",focus:"fyvr12fy",hover:"fyvr12fz",checked:"fyvr12g0"},defaultClass:"fyvr12fv"},borderFocus:{conditions:{base:"fyvr12g1",active:"fyvr12g2",disabled:"fyvr12g3",focus:"fyvr12g4",hover:"fyvr12g5",checked:"fyvr12g6"},defaultClass:"fyvr12g1"}}},borderRightStyle:{values:{solid:{conditions:{base:"fyvr12g7",active:"fyvr12g8",disabled:"fyvr12g9",focus:"fyvr12ga",hover:"fyvr12gb",checked:"fyvr12gc"},defaultClass:"fyvr12g7"},dashed:{conditions:{base:"fyvr12gd",active:"fyvr12ge",disabled:"fyvr12gf",focus:"fyvr12gg",hover:"fyvr12gh",checked:"fyvr12gi"},defaultClass:"fyvr12gd"},dotted:{conditions:{base:"fyvr12gj",active:"fyvr12gk",disabled:"fyvr12gl",focus:"fyvr12gm",hover:"fyvr12gn",checked:"fyvr12go"},defaultClass:"fyvr12gj"}}},borderTopColor:{values:{black:{conditions:{base:"fyvr12gp",active:"fyvr12gq",disabled:"fyvr12gr",focus:"fyvr12gs",hover:"fyvr12gt",checked:"fyvr12gu"},defaultClass:"fyvr12gp"},white:{conditions:{base:"fyvr12gv",active:"fyvr12gw",disabled:"fyvr12gx",focus:"fyvr12gy",hover:"fyvr12gz",checked:"fyvr12h0"},defaultClass:"fyvr12gv"},inherit:{conditions:{base:"fyvr12h1",active:"fyvr12h2",disabled:"fyvr12h3",focus:"fyvr12h4",hover:"fyvr12h5",checked:"fyvr12h6"},defaultClass:"fyvr12h1"},transparent:{conditions:{base:"fyvr12h7",active:"fyvr12h8",disabled:"fyvr12h9",focus:"fyvr12ha",hover:"fyvr12hb",checked:"fyvr12hc"},defaultClass:"fyvr12h7"},positive:{conditions:{base:"fyvr12hd",active:"fyvr12he",disabled:"fyvr12hf",focus:"fyvr12hg",hover:"fyvr12hh",checked:"fyvr12hi"},defaultClass:"fyvr12hd"},negative:{conditions:{base:"fyvr12hj",active:"fyvr12hk",disabled:"fyvr12hl",focus:"fyvr12hm",hover:"fyvr12hn",checked:"fyvr12ho"},defaultClass:"fyvr12hj"},info:{conditions:{base:"fyvr12hp",active:"fyvr12hq",disabled:"fyvr12hr",focus:"fyvr12hs",hover:"fyvr12ht",checked:"fyvr12hu"},defaultClass:"fyvr12hp"},warning:{conditions:{base:"fyvr12hv",active:"fyvr12hw",disabled:"fyvr12hx",focus:"fyvr12hy",hover:"fyvr12hz",checked:"fyvr12i0"},defaultClass:"fyvr12hv"},gradientBackdrop:{conditions:{base:"fyvr12i1",active:"fyvr12i2",disabled:"fyvr12i3",focus:"fyvr12i4",hover:"fyvr12i5",checked:"fyvr12i6"},defaultClass:"fyvr12i1"},gradientPrimary:{conditions:{base:"fyvr12i7",active:"fyvr12i8",disabled:"fyvr12i9",focus:"fyvr12ia",hover:"fyvr12ib",checked:"fyvr12ic"},defaultClass:"fyvr12i7"},gradientSecondary:{conditions:{base:"fyvr12id",active:"fyvr12ie",disabled:"fyvr12if",focus:"fyvr12ig",hover:"fyvr12ih",checked:"fyvr12ii"},defaultClass:"fyvr12id"},arbitrumDark:{conditions:{base:"fyvr12ij",active:"fyvr12ik",disabled:"fyvr12il",focus:"fyvr12im",hover:"fyvr12in",checked:"fyvr12io"},defaultClass:"fyvr12ij"},arbitrumLight:{conditions:{base:"fyvr12ip",active:"fyvr12iq",disabled:"fyvr12ir",focus:"fyvr12is",hover:"fyvr12it",checked:"fyvr12iu"},defaultClass:"fyvr12ip"},avalanceDark:{conditions:{base:"fyvr12iv",active:"fyvr12iw",disabled:"fyvr12ix",focus:"fyvr12iy",hover:"fyvr12iz",checked:"fyvr12j0"},defaultClass:"fyvr12iv"},avalanceLight:{conditions:{base:"fyvr12j1",active:"fyvr12j2",disabled:"fyvr12j3",focus:"fyvr12j4",hover:"fyvr12j5",checked:"fyvr12j6"},defaultClass:"fyvr12j1"},bscDark:{conditions:{base:"fyvr12j7",active:"fyvr12j8",disabled:"fyvr12j9",focus:"fyvr12ja",hover:"fyvr12jb",checked:"fyvr12jc"},defaultClass:"fyvr12j7"},bscLight:{conditions:{base:"fyvr12jd",active:"fyvr12je",disabled:"fyvr12jf",focus:"fyvr12jg",hover:"fyvr12jh",checked:"fyvr12ji"},defaultClass:"fyvr12jd"},ethereumDark:{conditions:{base:"fyvr12jj",active:"fyvr12jk",disabled:"fyvr12jl",focus:"fyvr12jm",hover:"fyvr12jn",checked:"fyvr12jo"},defaultClass:"fyvr12jj"},ethereumLight:{conditions:{base:"fyvr12jp",active:"fyvr12jq",disabled:"fyvr12jr",focus:"fyvr12js",hover:"fyvr12jt",checked:"fyvr12ju"},defaultClass:"fyvr12jp"},gnosisDark:{conditions:{base:"fyvr12jv",active:"fyvr12jw",disabled:"fyvr12jx",focus:"fyvr12jy",hover:"fyvr12jz",checked:"fyvr12k0"},defaultClass:"fyvr12jv"},gnosisLight:{conditions:{base:"fyvr12k1",active:"fyvr12k2",disabled:"fyvr12k3",focus:"fyvr12k4",hover:"fyvr12k5",checked:"fyvr12k6"},defaultClass:"fyvr12k1"},polygonDark:{conditions:{base:"fyvr12k7",active:"fyvr12k8",disabled:"fyvr12k9",focus:"fyvr12ka",hover:"fyvr12kb",checked:"fyvr12kc"},defaultClass:"fyvr12k7"},polygonLight:{conditions:{base:"fyvr12kd",active:"fyvr12ke",disabled:"fyvr12kf",focus:"fyvr12kg",hover:"fyvr12kh",checked:"fyvr12ki"},defaultClass:"fyvr12kd"},text100:{conditions:{base:"fyvr12kj",active:"fyvr12kk",disabled:"fyvr12kl",focus:"fyvr12km",hover:"fyvr12kn",checked:"fyvr12ko"},defaultClass:"fyvr12kj"},text80:{conditions:{base:"fyvr12kp",active:"fyvr12kq",disabled:"fyvr12kr",focus:"fyvr12ks",hover:"fyvr12kt",checked:"fyvr12ku"},defaultClass:"fyvr12kp"},text50:{conditions:{base:"fyvr12kv",active:"fyvr12kw",disabled:"fyvr12kx",focus:"fyvr12ky",hover:"fyvr12kz",checked:"fyvr12l0"},defaultClass:"fyvr12kv"},textInverse100:{conditions:{base:"fyvr12l1",active:"fyvr12l2",disabled:"fyvr12l3",focus:"fyvr12l4",hover:"fyvr12l5",checked:"fyvr12l6"},defaultClass:"fyvr12l1"},backgroundPrimary:{conditions:{base:"fyvr12l7",active:"fyvr12l8",disabled:"fyvr12l9",focus:"fyvr12la",hover:"fyvr12lb",checked:"fyvr12lc"},defaultClass:"fyvr12l7"},backgroundSecondary:{conditions:{base:"fyvr12ld",active:"fyvr12le",disabled:"fyvr12lf",focus:"fyvr12lg",hover:"fyvr12lh",checked:"fyvr12li"},defaultClass:"fyvr12ld"},backgroundContrast:{conditions:{base:"fyvr12lj",active:"fyvr12lk",disabled:"fyvr12ll",focus:"fyvr12lm",hover:"fyvr12ln",checked:"fyvr12lo"},defaultClass:"fyvr12lj"},backgroundMuted:{conditions:{base:"fyvr12lp",active:"fyvr12lq",disabled:"fyvr12lr",focus:"fyvr12ls",hover:"fyvr12lt",checked:"fyvr12lu"},defaultClass:"fyvr12lp"},backgroundControl:{conditions:{base:"fyvr12lv",active:"fyvr12lw",disabled:"fyvr12lx",focus:"fyvr12ly",hover:"fyvr12lz",checked:"fyvr12m0"},defaultClass:"fyvr12lv"},backgroundInverse:{conditions:{base:"fyvr12m1",active:"fyvr12m2",disabled:"fyvr12m3",focus:"fyvr12m4",hover:"fyvr12m5",checked:"fyvr12m6"},defaultClass:"fyvr12m1"},backgroundBackdrop:{conditions:{base:"fyvr12m7",active:"fyvr12m8",disabled:"fyvr12m9",focus:"fyvr12ma",hover:"fyvr12mb",checked:"fyvr12mc"},defaultClass:"fyvr12m7"},backgroundOverlay:{conditions:{base:"fyvr12md",active:"fyvr12me",disabled:"fyvr12mf",focus:"fyvr12mg",hover:"fyvr12mh",checked:"fyvr12mi"},defaultClass:"fyvr12md"},backgroundRaised:{conditions:{base:"fyvr12mj",active:"fyvr12mk",disabled:"fyvr12ml",focus:"fyvr12mm",hover:"fyvr12mn",checked:"fyvr12mo"},defaultClass:"fyvr12mj"},buttonGlass:{conditions:{base:"fyvr12mp",active:"fyvr12mq",disabled:"fyvr12mr",focus:"fyvr12ms",hover:"fyvr12mt",checked:"fyvr12mu"},defaultClass:"fyvr12mp"},buttonEmphasis:{conditions:{base:"fyvr12mv",active:"fyvr12mw",disabled:"fyvr12mx",focus:"fyvr12my",hover:"fyvr12mz",checked:"fyvr12n0"},defaultClass:"fyvr12mv"},buttonInverse:{conditions:{base:"fyvr12n1",active:"fyvr12n2",disabled:"fyvr12n3",focus:"fyvr12n4",hover:"fyvr12n5",checked:"fyvr12n6"},defaultClass:"fyvr12n1"},borderNormal:{conditions:{base:"fyvr12n7",active:"fyvr12n8",disabled:"fyvr12n9",focus:"fyvr12na",hover:"fyvr12nb",checked:"fyvr12nc"},defaultClass:"fyvr12n7"},borderFocus:{conditions:{base:"fyvr12nd",active:"fyvr12ne",disabled:"fyvr12nf",focus:"fyvr12ng",hover:"fyvr12nh",checked:"fyvr12ni"},defaultClass:"fyvr12nd"}}},borderTopStyle:{values:{solid:{conditions:{base:"fyvr12nj",active:"fyvr12nk",disabled:"fyvr12nl",focus:"fyvr12nm",hover:"fyvr12nn",checked:"fyvr12no"},defaultClass:"fyvr12nj"},dashed:{conditions:{base:"fyvr12np",active:"fyvr12nq",disabled:"fyvr12nr",focus:"fyvr12ns",hover:"fyvr12nt",checked:"fyvr12nu"},defaultClass:"fyvr12np"},dotted:{conditions:{base:"fyvr12nv",active:"fyvr12nw",disabled:"fyvr12nx",focus:"fyvr12ny",hover:"fyvr12nz",checked:"fyvr12o0"},defaultClass:"fyvr12nv"}}},border:{values:{none:{conditions:{base:"fyvr12o1",active:"fyvr12o2",disabled:"fyvr12o3",focus:"fyvr12o4",hover:"fyvr12o5",checked:"fyvr12o6"},defaultClass:"fyvr12o1"}}},color:{values:{black:{conditions:{base:"fyvr12o7",active:"fyvr12o8",disabled:"fyvr12o9",focus:"fyvr12oa",hover:"fyvr12ob",checked:"fyvr12oc"},defaultClass:"fyvr12o7"},white:{conditions:{base:"fyvr12od",active:"fyvr12oe",disabled:"fyvr12of",focus:"fyvr12og",hover:"fyvr12oh",checked:"fyvr12oi"},defaultClass:"fyvr12od"},inherit:{conditions:{base:"fyvr12oj",active:"fyvr12ok",disabled:"fyvr12ol",focus:"fyvr12om",hover:"fyvr12on",checked:"fyvr12oo"},defaultClass:"fyvr12oj"},transparent:{conditions:{base:"fyvr12op",active:"fyvr12oq",disabled:"fyvr12or",focus:"fyvr12os",hover:"fyvr12ot",checked:"fyvr12ou"},defaultClass:"fyvr12op"},positive:{conditions:{base:"fyvr12ov",active:"fyvr12ow",disabled:"fyvr12ox",focus:"fyvr12oy",hover:"fyvr12oz",checked:"fyvr12p0"},defaultClass:"fyvr12ov"},negative:{conditions:{base:"fyvr12p1",active:"fyvr12p2",disabled:"fyvr12p3",focus:"fyvr12p4",hover:"fyvr12p5",checked:"fyvr12p6"},defaultClass:"fyvr12p1"},info:{conditions:{base:"fyvr12p7",active:"fyvr12p8",disabled:"fyvr12p9",focus:"fyvr12pa",hover:"fyvr12pb",checked:"fyvr12pc"},defaultClass:"fyvr12p7"},warning:{conditions:{base:"fyvr12pd",active:"fyvr12pe",disabled:"fyvr12pf",focus:"fyvr12pg",hover:"fyvr12ph",checked:"fyvr12pi"},defaultClass:"fyvr12pd"},gradientBackdrop:{conditions:{base:"fyvr12pj",active:"fyvr12pk",disabled:"fyvr12pl",focus:"fyvr12pm",hover:"fyvr12pn",checked:"fyvr12po"},defaultClass:"fyvr12pj"},gradientPrimary:{conditions:{base:"fyvr12pp",active:"fyvr12pq",disabled:"fyvr12pr",focus:"fyvr12ps",hover:"fyvr12pt",checked:"fyvr12pu"},defaultClass:"fyvr12pp"},gradientSecondary:{conditions:{base:"fyvr12pv",active:"fyvr12pw",disabled:"fyvr12px",focus:"fyvr12py",hover:"fyvr12pz",checked:"fyvr12q0"},defaultClass:"fyvr12pv"},arbitrumDark:{conditions:{base:"fyvr12q1",active:"fyvr12q2",disabled:"fyvr12q3",focus:"fyvr12q4",hover:"fyvr12q5",checked:"fyvr12q6"},defaultClass:"fyvr12q1"},arbitrumLight:{conditions:{base:"fyvr12q7",active:"fyvr12q8",disabled:"fyvr12q9",focus:"fyvr12qa",hover:"fyvr12qb",checked:"fyvr12qc"},defaultClass:"fyvr12q7"},avalanceDark:{conditions:{base:"fyvr12qd",active:"fyvr12qe",disabled:"fyvr12qf",focus:"fyvr12qg",hover:"fyvr12qh",checked:"fyvr12qi"},defaultClass:"fyvr12qd"},avalanceLight:{conditions:{base:"fyvr12qj",active:"fyvr12qk",disabled:"fyvr12ql",focus:"fyvr12qm",hover:"fyvr12qn",checked:"fyvr12qo"},defaultClass:"fyvr12qj"},bscDark:{conditions:{base:"fyvr12qp",active:"fyvr12qq",disabled:"fyvr12qr",focus:"fyvr12qs",hover:"fyvr12qt",checked:"fyvr12qu"},defaultClass:"fyvr12qp"},bscLight:{conditions:{base:"fyvr12qv",active:"fyvr12qw",disabled:"fyvr12qx",focus:"fyvr12qy",hover:"fyvr12qz",checked:"fyvr12r0"},defaultClass:"fyvr12qv"},ethereumDark:{conditions:{base:"fyvr12r1",active:"fyvr12r2",disabled:"fyvr12r3",focus:"fyvr12r4",hover:"fyvr12r5",checked:"fyvr12r6"},defaultClass:"fyvr12r1"},ethereumLight:{conditions:{base:"fyvr12r7",active:"fyvr12r8",disabled:"fyvr12r9",focus:"fyvr12ra",hover:"fyvr12rb",checked:"fyvr12rc"},defaultClass:"fyvr12r7"},gnosisDark:{conditions:{base:"fyvr12rd",active:"fyvr12re",disabled:"fyvr12rf",focus:"fyvr12rg",hover:"fyvr12rh",checked:"fyvr12ri"},defaultClass:"fyvr12rd"},gnosisLight:{conditions:{base:"fyvr12rj",active:"fyvr12rk",disabled:"fyvr12rl",focus:"fyvr12rm",hover:"fyvr12rn",checked:"fyvr12ro"},defaultClass:"fyvr12rj"},polygonDark:{conditions:{base:"fyvr12rp",active:"fyvr12rq",disabled:"fyvr12rr",focus:"fyvr12rs",hover:"fyvr12rt",checked:"fyvr12ru"},defaultClass:"fyvr12rp"},polygonLight:{conditions:{base:"fyvr12rv",active:"fyvr12rw",disabled:"fyvr12rx",focus:"fyvr12ry",hover:"fyvr12rz",checked:"fyvr12s0"},defaultClass:"fyvr12rv"},text100:{conditions:{base:"fyvr12s1",active:"fyvr12s2",disabled:"fyvr12s3",focus:"fyvr12s4",hover:"fyvr12s5",checked:"fyvr12s6"},defaultClass:"fyvr12s1"},text80:{conditions:{base:"fyvr12s7",active:"fyvr12s8",disabled:"fyvr12s9",focus:"fyvr12sa",hover:"fyvr12sb",checked:"fyvr12sc"},defaultClass:"fyvr12s7"},text50:{conditions:{base:"fyvr12sd",active:"fyvr12se",disabled:"fyvr12sf",focus:"fyvr12sg",hover:"fyvr12sh",checked:"fyvr12si"},defaultClass:"fyvr12sd"},textInverse100:{conditions:{base:"fyvr12sj",active:"fyvr12sk",disabled:"fyvr12sl",focus:"fyvr12sm",hover:"fyvr12sn",checked:"fyvr12so"},defaultClass:"fyvr12sj"},backgroundPrimary:{conditions:{base:"fyvr12sp",active:"fyvr12sq",disabled:"fyvr12sr",focus:"fyvr12ss",hover:"fyvr12st",checked:"fyvr12su"},defaultClass:"fyvr12sp"},backgroundSecondary:{conditions:{base:"fyvr12sv",active:"fyvr12sw",disabled:"fyvr12sx",focus:"fyvr12sy",hover:"fyvr12sz",checked:"fyvr12t0"},defaultClass:"fyvr12sv"},backgroundContrast:{conditions:{base:"fyvr12t1",active:"fyvr12t2",disabled:"fyvr12t3",focus:"fyvr12t4",hover:"fyvr12t5",checked:"fyvr12t6"},defaultClass:"fyvr12t1"},backgroundMuted:{conditions:{base:"fyvr12t7",active:"fyvr12t8",disabled:"fyvr12t9",focus:"fyvr12ta",hover:"fyvr12tb",checked:"fyvr12tc"},defaultClass:"fyvr12t7"},backgroundControl:{conditions:{base:"fyvr12td",active:"fyvr12te",disabled:"fyvr12tf",focus:"fyvr12tg",hover:"fyvr12th",checked:"fyvr12ti"},defaultClass:"fyvr12td"},backgroundInverse:{conditions:{base:"fyvr12tj",active:"fyvr12tk",disabled:"fyvr12tl",focus:"fyvr12tm",hover:"fyvr12tn",checked:"fyvr12to"},defaultClass:"fyvr12tj"},backgroundBackdrop:{conditions:{base:"fyvr12tp",active:"fyvr12tq",disabled:"fyvr12tr",focus:"fyvr12ts",hover:"fyvr12tt",checked:"fyvr12tu"},defaultClass:"fyvr12tp"},backgroundOverlay:{conditions:{base:"fyvr12tv",active:"fyvr12tw",disabled:"fyvr12tx",focus:"fyvr12ty",hover:"fyvr12tz",checked:"fyvr12u0"},defaultClass:"fyvr12tv"},backgroundRaised:{conditions:{base:"fyvr12u1",active:"fyvr12u2",disabled:"fyvr12u3",focus:"fyvr12u4",hover:"fyvr12u5",checked:"fyvr12u6"},defaultClass:"fyvr12u1"},buttonGlass:{conditions:{base:"fyvr12u7",active:"fyvr12u8",disabled:"fyvr12u9",focus:"fyvr12ua",hover:"fyvr12ub",checked:"fyvr12uc"},defaultClass:"fyvr12u7"},buttonEmphasis:{conditions:{base:"fyvr12ud",active:"fyvr12ue",disabled:"fyvr12uf",focus:"fyvr12ug",hover:"fyvr12uh",checked:"fyvr12ui"},defaultClass:"fyvr12ud"},buttonInverse:{conditions:{base:"fyvr12uj",active:"fyvr12uk",disabled:"fyvr12ul",focus:"fyvr12um",hover:"fyvr12un",checked:"fyvr12uo"},defaultClass:"fyvr12uj"},borderNormal:{conditions:{base:"fyvr12up",active:"fyvr12uq",disabled:"fyvr12ur",focus:"fyvr12us",hover:"fyvr12ut",checked:"fyvr12uu"},defaultClass:"fyvr12up"},borderFocus:{conditions:{base:"fyvr12uv",active:"fyvr12uw",disabled:"fyvr12ux",focus:"fyvr12uy",hover:"fyvr12uz",checked:"fyvr12v0"},defaultClass:"fyvr12uv"}}},cursor:{values:{default:{conditions:{base:"fyvr12v1",active:"fyvr12v2",disabled:"fyvr12v3",focus:"fyvr12v4",hover:"fyvr12v5",checked:"fyvr12v6"},defaultClass:"fyvr12v1"},pointer:{conditions:{base:"fyvr12v7",active:"fyvr12v8",disabled:"fyvr12v9",focus:"fyvr12va",hover:"fyvr12vb",checked:"fyvr12vc"},defaultClass:"fyvr12v7"},text:{conditions:{base:"fyvr12vd",active:"fyvr12ve",disabled:"fyvr12vf",focus:"fyvr12vg",hover:"fyvr12vh",checked:"fyvr12vi"},defaultClass:"fyvr12vd"}}},opacity:{values:{0:{conditions:{base:"fyvr12vj",active:"fyvr12vk",disabled:"fyvr12vl",focus:"fyvr12vm",hover:"fyvr12vn",checked:"fyvr12vo"},defaultClass:"fyvr12vj"},50:{conditions:{base:"fyvr12vp",active:"fyvr12vq",disabled:"fyvr12vr",focus:"fyvr12vs",hover:"fyvr12vt",checked:"fyvr12vu"},defaultClass:"fyvr12vp"},80:{conditions:{base:"fyvr12vv",active:"fyvr12vw",disabled:"fyvr12vx",focus:"fyvr12vy",hover:"fyvr12vz",checked:"fyvr12w0"},defaultClass:"fyvr12vv"},100:{conditions:{base:"fyvr12w1",active:"fyvr12w2",disabled:"fyvr12w3",focus:"fyvr12w4",hover:"fyvr12w5",checked:"fyvr12w6"},defaultClass:"fyvr12w1"}}},pointerEvents:{values:{none:{conditions:{base:"fyvr12w7",active:"fyvr12w8",disabled:"fyvr12w9",focus:"fyvr12wa",hover:"fyvr12wb",checked:"fyvr12wc"},defaultClass:"fyvr12w7"},auto:{conditions:{base:"fyvr12wd",active:"fyvr12we",disabled:"fyvr12wf",focus:"fyvr12wg",hover:"fyvr12wh",checked:"fyvr12wi"},defaultClass:"fyvr12wd"}}},outline:{values:{none:{conditions:{base:"fyvr12wj",active:"fyvr12wk",disabled:"fyvr12wl",focus:"fyvr12wm",hover:"fyvr12wn",checked:"fyvr12wo"},defaultClass:"fyvr12wj"}}},boxShadow:{values:{none:{conditions:{base:"fyvr12wp",active:"fyvr12wq",disabled:"fyvr12wr",focus:"fyvr12ws",hover:"fyvr12wt",checked:"fyvr12wu"},defaultClass:"fyvr12wp"}}}}});const WG=["alignItems","alignSelf","flexDirection","gap","justifyContent","justifySelf","placeItems"],aw=t=>(t.display||(t.display=Object.keys(t).some(e=>WG.includes(e))?"flex":void 0),fI(t));aw.properties=fI.properties;const VG="https://assets.sequence.info/",HG=5,zG={xs:"small",sm:"small",md:"medium",lg:"large",xl:"large"},dI=t=>t?zG[t]||t:"medium",GG=(t,e)=>t.replace(/\/(small|medium|large)\//,`/${dI(e)}/`),qG=(t,e)=>VG+`images/networks/${dI(e)}/${t}.webp?v${HG}`;function hI(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e{const{as:r="div",sx:n={},className:s,...i}=t,o={},a={};for(const l in i)aw.properties.has(l)?o[l]=i[l]:a[l]=i[l];const c=aw({...o,...n});return m.createElement(r,{className:Mr(c,s),...a,ref:e})});var pI={exports:{}},jd={};/** * @license React * react-jsx-runtime.production.min.js * @@ -58,12 +58,12 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var sS;function GG(){if(sS)return Ld;sS=1;var t=$r,e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,c,l){var u,f={},d=null,h=null;l!==void 0&&(d=""+l),c.key!==void 0&&(d=""+c.key),c.ref!==void 0&&(h=c.ref);for(u in c)n.call(c,u)&&!i.hasOwnProperty(u)&&(f[u]=c[u]);if(a&&a.defaultProps)for(u in c=a.defaultProps,c)f[u]===void 0&&(f[u]=c[u]);return{$$typeof:e,type:a,key:d,ref:h,props:f,_owner:s.current}}return Ld.Fragment=r,Ld.jsx=o,Ld.jsxs=o,Ld}dI.exports=GG();var E=dI.exports;function qG(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function KG(t){var e=qG(t,"string");return typeof e=="symbol"?e:String(e)}function QG(t,e,r){return e=KG(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function iS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function oS(t){for(var e=1;e{for(var n of Object.keys(t)){var s;if(t[n]!==((s=e[n])!==null&&s!==void 0?s:r[n]))return!1}return!0},At=t=>{var e=r=>{var n=t.defaultClassName,s=oS(oS({},t.defaultVariants),r);for(var i in s){var o,a=(o=s[i])!==null&&o!==void 0?o:t.defaultVariants[i];if(a!=null){var c=a;typeof c=="boolean"&&(c=c===!0?"true":"false");var l=t.variantClassNames[i][c];l&&(n+=" "+l)}}for(var[u,f]of t.compoundVariants)JG(u,s,t.defaultVariants)&&(n+=" "+f);return n};return e.variants=()=>Object.keys(t.variantClassNames),e.classNames={get base(){return t.defaultClassName.split(" ")[0]},get variants(){return aS(t.variantClassNames,r=>aS(r,n=>n.split(" ")[0]))}},e};At({defaultClassName:"_2q9vfj7",variantClassNames:{variant:{info:"_2q9vfj8 _2q9vfj0 fyvr11ov",warning:"_2q9vfj9 _2q9vfj1 fyvr11p1",success:"_2q9vfja _2q9vfj2 fyvr11oj",error:"_2q9vfjb _2q9vfj3 fyvr11op"},size:{sm:"_2q9vfjc _1qxj1ib9 _1qxj1ibf _1qxj1ib5 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 _2q9vfj4 fyvr1wo fyvr1yk fyvr13w fyvr1e8",md:"_2q9vfjd _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _2q9vfj5 fyvr1ws fyvr1yo fyvr140 fyvr1ec",lg:"_2q9vfje _1qxj1ib9 _1qxj1ibd _1qxj1ib3 fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc _2q9vfj6 fyvr1ww fyvr1ys fyvr144 fyvr1eg"}},defaultVariants:{},compoundVariants:[]});const cS=t=>{const{color:e="borderNormal",marginY:r="4",...n}=t;return E.jsx(me,{as:"hr",marginY:r,background:e,height:"px",borderWidth:"none",...n})};var YG=At({defaultClassName:"_1qxj1ib9",variantClassNames:{variant:{inherit:"_1qxj1iba _1qxj1ib0 fyvr11mu fyvr11e4 fyvr11gg fyvr11fg fyvr11ew",xlarge:"_1qxj1ibb _1qxj1ib1 fyvr11mv fyvr11es fyvr11gc fyvr11fk fyvr11fc",large:"_1qxj1ibc _1qxj1ib2 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8",medium:"_1qxj1ibd _1qxj1ib3 fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc",normal:"_1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",small:"_1qxj1ibf _1qxj1ib5 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4",xsmall:"_1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc",code:"_1qxj1ibh _1qxj1ib7 fyvr11mw fyvr11eg fyvr11g0 fyvr11fk fyvr11f0"},ellipsis:{true:"_1qxj1ibi _1qxj1ib8 fyvr11ls fyvr11m8 fyvr11n9 fyvr11mx"},italic:{true:"_1qxj1ibj"},underline:{true:"_1qxj1ibk"},uppercase:{true:"_1qxj1ibl"},capitalize:{true:"_1qxj1ibm"},hidden:{true:"_1qxj1ibn"}},defaultVariants:{},compoundVariants:[]});const Tt=m.forwardRef((t,e)=>{const{as:r="span",variant:n="inherit",className:s,hidden:i,italic:o,underline:a,children:c,ellipsis:l,uppercase:u,capitalize:f,...d}=t,h=_G[n];return E.jsx(me,{as:r,className:Yr(s,YG({hidden:i,ellipsis:l,italic:o,underline:a,uppercase:u,capitalize:f})),ref:e,...h,...d,children:c})});var XG=At({defaultClassName:"_140wn8ni _140wn8n0 fyvr11ls fyvr11m8 fyvr11n9 fyvr11ko fyvr12o1 fyvr11n2 fyvr11h0 _4efw240",variantClassNames:{variant:{base:"_140wn8nj _140wn8n1 fyvr11od fyvr12s1",ghost:"_140wn8nk _140wn8n2 fyvr11od fyvr12s1",feature:"_140wn8nl _140wn8n3 fyvr11pj fyvr12od",primary:"_140wn8nm _140wn8n4 fyvr11pd fyvr12od",glass:"_140wn8nn _140wn8n5 fyvr11tv fyvr12s1",emphasis:"_140wn8no _140wn8n6 fyvr11u1 fyvr12s1",raised:"_140wn8np _140wn8n7 fyvr11tp fyvr12s1",danger:"_140wn8nq _140wn8n8 fyvr11op fyvr12od",text:"_140wn8nr _1qxj1ib9 _1qxj1ibf _1qxj1ib5 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 _140wn8n9 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr11od fyvr12sd"},shape:{circle:"_140wn8ns _140wn8na fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",square:"_140wn8nt _140wn8nb fyvr11d0 fyvr11do fyvr11bo fyvr11cc"},disabled:{true:"_140wn8nu _140wn8nc fyvr12v1 fyvr12vp",false:"_140wn8nv _140wn8nd fyvr12v7 fyvr12w1 fyvr12vz"},size:{xs:"_140wn8nw _1qxj1ib9 _1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc _140wn8ne fyvr1ws fyvr1yo",sm:"_140wn8nx _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _140wn8nf fyvr1ww fyvr1ys",md:"_140wn8ny _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _140wn8ng fyvr1x0 fyvr1yw",lg:"_140wn8nz _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _140wn8nh fyvr1x0 fyvr1yw"},iconOnly:{true:"_140wn8n10"},hasLeftIcon:{true:"_140wn8n11"},hasRightIcon:{true:"_140wn8n12"},activeOutline:{light:"_140wn8n13",bold:"_140wn8n14"}},defaultVariants:{},compoundVariants:[[{iconOnly:!0,size:"xs"},"_140wn8n15"],[{iconOnly:!0,size:"sm"},"_140wn8n16"],[{iconOnly:!0,size:"md"},"_140wn8n17"],[{iconOnly:!0,size:"lg"},"_140wn8n18"],[{iconOnly:!1,hasLeftIcon:!0,size:"xs"},"_140wn8n19"],[{iconOnly:!1,hasLeftIcon:!0,size:"sm"},"_140wn8n1a"],[{iconOnly:!1,hasLeftIcon:!0,size:"md"},"_140wn8n1b"],[{iconOnly:!1,hasRightIcon:!0,size:"xs"},"_140wn8n1c"],[{iconOnly:!1,hasRightIcon:!0,size:"sm"},"_140wn8n1d"],[{iconOnly:!1,hasRightIcon:!0,size:"md"},"_140wn8n1e"]]});const We=m.forwardRef((t,e)=>{const{as:r="button",activeOutline:n,className:s,disabled:i=!1,display:o="inline-flex",fontWeight:a="bold",pending:c=!1,label:l,leftIcon:u,rightIcon:f,size:d="md",variant:h="glass",width:y="fit",shape:p="circle",type:b="button",...v}=t,g=u!==void 0&&l!==void 0,x=f!==void 0&&l!==void 0,k=u!==void 0&&l===void 0,S=d==="xs"?"xs":"sm";return E.jsx(me,{as:r,className:Yr(s,XG({activeOutline:n,disabled:i||c,hasLeftIcon:g,hasRightIcon:x,iconOnly:k,size:h==="text"?void 0:d,shape:h==="text"?void 0:p,variant:h})),disabled:i||c,display:o,fontWeight:a,ref:e,type:b,width:y,...v,children:k?E.jsx(u,{size:S}):E.jsxs(me,{width:"full",height:"full",justifyContent:"space-between",alignItems:"center",gap:d==="xs"?"1":"2",children:[E.jsxs(me,{justifyContent:"flex-start",alignItems:"center",gap:d==="xs"?"1":"2",children:[u&&E.jsx(u,{size:S}),E.jsx(Tt,{children:l})]}),f&&E.jsx(f,{size:S})]})})});var ZG=At({defaultClassName:"rhmai63",variantClassNames:{clickable:{true:"rhmai64 rhmai60 fyvr11a4 fyvr11ag fyvr11as fyvr11b4 fyvr12vz fyvr12v7 _4efw240"},disabled:{true:"rhmai65"},outlined:{true:"rhmai66 rhmai61 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr12n7 fyvr12fv fyvr1217 fyvr128j fyvr12nj fyvr12g7 fyvr121j fyvr128v"},blur:{true:"rhmai67 rhmai62 fyvr11ms"}},defaultVariants:{},compoundVariants:[]});const eq=m.forwardRef((t,e)=>{const{className:r,children:n,clickable:s,outlined:i,disabled:o,blur:a,width:c="full",...l}=t;return E.jsx(me,{className:Yr(r,ZG({clickable:s,outlined:i,disabled:o,blur:a})),background:i?"transparent":"backgroundSecondary",overflow:"hidden",borderRadius:"md",padding:"4",width:c,ref:e,...l,children:n})});function tq(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function cg(...t){return e=>t.forEach(r=>tq(r,e))}function $e(...t){return m.useCallback(cg(...t),t)}function rq(t,e){const r=m.createContext(e);function n(i){const{children:o,...a}=i,c=m.useMemo(()=>a,Object.values(a));return E.jsx(r.Provider,{value:c,children:o})}function s(i){const o=m.useContext(r);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${i}\` must be used within \`${t}\``)}return n.displayName=t+"Provider",[n,s]}function Mr(t,e=[]){let r=[];function n(i,o){const a=m.createContext(o),c=r.length;r=[...r,o];function l(f){const{scope:d,children:h,...y}=f,p=(d==null?void 0:d[t][c])||a,b=m.useMemo(()=>y,Object.values(y));return E.jsx(p.Provider,{value:b,children:h})}function u(f,d){const h=(d==null?void 0:d[t][c])||a,y=m.useContext(h);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const s=()=>{const i=r.map(o=>m.createContext(o));return function(a){const c=(a==null?void 0:a[t])||i;return m.useMemo(()=>({[`__scope${t}`]:{...a,[t]:c}}),[a,c])}};return s.scopeName=t,[n,nq(s,...e)]}function nq(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=n.reduce((a,{useScope:c,scopeName:l})=>{const f=c(i)[`__scope${l}`];return{...a,...f}},{});return m.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}function ce(t,e,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}function _r(t){const e=m.useRef(t);return m.useEffect(()=>{e.current=t}),m.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function is({prop:t,defaultProp:e,onChange:r=()=>{}}){const[n,s]=sq({defaultProp:e,onChange:r}),i=t!==void 0,o=i?t:n,a=_r(r),c=m.useCallback(l=>{if(i){const f=typeof l=="function"?l(t):l;f!==t&&a(f)}else s(l)},[i,t,s,a]);return[o,c]}function sq({defaultProp:t,onChange:e}){const r=m.useState(t),[n]=r,s=m.useRef(n),i=_r(e);return m.useEffect(()=>{s.current!==n&&(i(n),s.current=n)},[n,s,i]),r}function lg(t){const e=m.useRef({value:t,previous:t});return m.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var xr=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{};function ug(t){const[e,r]=m.useState(void 0);return xr(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;o=l.inlineSize,a=l.blockSize}else o=t.offsetWidth,a=t.offsetHeight;r({width:o,height:a})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}function iq(t,e){return m.useReducer((r,n)=>e[r][n]??r,t)}var Xr=t=>{const{present:e,children:r}=t,n=oq(e),s=typeof r=="function"?r({present:n.isPresent}):m.Children.only(r),i=$e(n.ref,aq(s));return typeof r=="function"||n.isPresent?m.cloneElement(s,{ref:i}):null};Xr.displayName="Presence";function oq(t){const[e,r]=m.useState(),n=m.useRef({}),s=m.useRef(t),i=m.useRef("none"),o=t?"mounted":"unmounted",[a,c]=iq(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const l=X1(n.current);i.current=a==="mounted"?l:"none"},[a]),xr(()=>{const l=n.current,u=s.current;if(u!==t){const d=i.current,h=X1(l);t?c("MOUNT"):h==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&d!==h?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,c]),xr(()=>{if(e){const l=f=>{const h=X1(n.current).includes(f.animationName);f.target===e&&h&&ja.flushSync(()=>c("ANIMATION_END"))},u=f=>{f.target===e&&(i.current=X1(n.current))};return e.addEventListener("animationstart",u),e.addEventListener("animationcancel",l),e.addEventListener("animationend",l),()=>{e.removeEventListener("animationstart",u),e.removeEventListener("animationcancel",l),e.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(l=>{l&&(n.current=getComputedStyle(l)),r(l)},[])}}function X1(t){return(t==null?void 0:t.animationName)||"none"}function aq(t){var e,r;let n=(e=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:e.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:r.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var ll=m.forwardRef((t,e)=>{const{children:r,...n}=t,s=m.Children.toArray(r),i=s.find(cq);if(i){const o=i.props.children,a=s.map(c=>c===i?m.Children.count(o)>1?m.Children.only(null):m.isValidElement(o)?o.props.children:null:c);return E.jsx(ow,{...n,ref:e,children:m.isValidElement(o)?m.cloneElement(o,void 0,a):null})}return E.jsx(ow,{...n,ref:e,children:r})});ll.displayName="Slot";var ow=m.forwardRef((t,e)=>{const{children:r,...n}=t;if(m.isValidElement(r)){const s=uq(r);return m.cloneElement(r,{...lq(n,r.props),ref:e?cg(e,s):s})}return m.Children.count(r)>1?m.Children.only(null):null});ow.displayName="SlotClone";var hI=({children:t})=>E.jsx(E.Fragment,{children:t});function cq(t){return m.isValidElement(t)&&t.type===hI}function lq(t,e){const r={...e};for(const n in e){const s=t[n],i=e[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...a)=>{i(...a),s(...a)}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...t,...r}}function uq(t){var e,r;let n=(e=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:e.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:r.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var fq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ae=fq.reduce((t,e)=>{const r=m.forwardRef((n,s)=>{const{asChild:i,...o}=n,a=i?ll:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(a,{...o,ref:s})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function hE(t,e){t&&ja.flushSync(()=>t.dispatchEvent(e))}var pE="Checkbox",[dq,Nde]=Mr(pE),[hq,pq]=dq(pE),pI=m.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:s,defaultChecked:i,required:o,disabled:a,value:c="on",onCheckedChange:l,...u}=t,[f,d]=m.useState(null),h=$e(e,x=>d(x)),y=m.useRef(!1),p=f?!!f.closest("form"):!0,[b=!1,v]=is({prop:s,defaultProp:i,onChange:l}),g=m.useRef(b);return m.useEffect(()=>{const x=f==null?void 0:f.form;if(x){const k=()=>v(g.current);return x.addEventListener("reset",k),()=>x.removeEventListener("reset",k)}},[f,v]),E.jsxs(hq,{scope:r,state:b,disabled:a,children:[E.jsx(Ae.button,{type:"button",role:"checkbox","aria-checked":Yc(b)?"mixed":b,"aria-required":o,"data-state":gI(b),"data-disabled":a?"":void 0,disabled:a,value:c,...u,ref:h,onKeyDown:ce(t.onKeyDown,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:ce(t.onClick,x=>{v(k=>Yc(k)?!0:!k),p&&(y.current=x.isPropagationStopped(),y.current||x.stopPropagation())})}),p&&E.jsx(yq,{control:f,bubbles:!y.current,name:n,value:c,checked:b,required:o,disabled:a,style:{transform:"translateX(-100%)"}})]})});pI.displayName=pE;var yI="CheckboxIndicator",vI=m.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...s}=t,i=pq(yI,r);return E.jsx(Xr,{present:n||Yc(i.state)||i.state===!0,children:E.jsx(Ae.span,{"data-state":gI(i.state),"data-disabled":i.disabled?"":void 0,...s,ref:e,style:{pointerEvents:"none",...t.style}})})});vI.displayName=yI;var yq=t=>{const{control:e,checked:r,bubbles:n=!0,...s}=t,i=m.useRef(null),o=lg(r),a=ug(e);return m.useEffect(()=>{const c=i.current,l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"checked").set;if(o!==r&&f){const d=new Event("click",{bubbles:n});c.indeterminate=Yc(r),f.call(c,Yc(r)?!1:r),c.dispatchEvent(d)}},[o,r,n]),E.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:Yc(r)?!1:r,...s,tabIndex:-1,ref:i,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Yc(t){return t==="indeterminate"}function gI(t){return Yc(t)?"indeterminate":t?"checked":"unchecked"}var vq=pI,gq=vI,mq=At({defaultClassName:"_43lu9r4",variantClassNames:{labelLocation:{top:"_43lu9r5 _43lu9r0 fyvr11kw fyvr11i4 fyvr118k fyvr11h0",left:"_43lu9r6 _43lu9r1 fyvr11ko fyvr11ic fyvr118k fyvr11h0",right:"_43lu9r7 _43lu9r2 fyvr11ko fyvr11ic fyvr118k fyvr11h0",hidden:"_43lu9r8 _43lu9r3 fyvr1188 fyvr11h0"}},defaultVariants:{},compoundVariants:[]});const ud=t=>{const{id:e,label:r,description:n,labelLocation:s="top",children:i,...o}=t,a=()=>r||n?E.jsxs(me,{flexDirection:"column",gap:"0.5",children:[r&&E.jsx(Tt,{variant:"small",color:"text100",hidden:s==="hidden",children:r}),n&&E.jsx(Tt,{variant:"small",color:"text50",hidden:s==="hidden",children:n})]}):null;return E.jsxs(me,{as:"label",className:mq({labelLocation:s}),htmlFor:e,...o,children:[["left","top","hidden"].includes(s)&&a(),i,s==="right"&&a()]})};var fd=At({defaultClassName:"_1dizidw0",variantClassNames:{size:{xs:"_1dizidw1",sm:"_1dizidw2",md:"_1dizidw3",lg:"_1dizidw4",xl:"_1dizidw5"}},defaultVariants:{},compoundVariants:[]});const xq=t=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:E.jsx("path",{stroke:"currentColor",strokeWidth:1.5,d:"m4.304 10.232 4.263 4.79 7.13-11.238"})}),mI=({size:t="sm",...e})=>E.jsx(me,{as:xq,className:fd({size:t}),...e}),bq=t=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m3.888 7.53 1.06-1.06 5.47 5.47 5.47-5.47 1.06 1.06-6.53 6.53-6.53-6.53Z",clipRule:"evenodd"})}),xI=({size:t="sm",...e})=>E.jsx(me,{as:bq,className:fd({size:t}),...e}),wq=t=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m10.418 11.06 4.47 4.47 1.06-1.06L11.48 10l4.47-4.47-1.06-1.06-4.47 4.47-4.47-4.47-1.06 1.06L9.357 10l-4.47 4.47 1.06 1.06 4.47-4.47Z",clipRule:"evenodd"})}),yE=({size:t="sm",...e})=>E.jsx(me,{as:wq,className:fd({size:t}),...e}),Cq=t=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.608 6.75h-5.19v-1.5h7.75V13h-1.5V7.81l-7.72 7.72-1.06-1.06 7.72-7.72Z",clipRule:"evenodd"})}),Eq=({size:t="sm",...e})=>E.jsx(me,{as:Cq,className:fd({size:t}),...e}),kq=t=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.918 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-.677 4.383a5.5 5.5 0 1 1 1.06-1.06l2.648 2.647-1.061 1.06-2.647-2.647Z",clipRule:"evenodd"})}),Aq=({size:t="sm",...e})=>E.jsx(me,{as:kq,className:fd({size:t}),...e}),Sq=t=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m12.28 2.856-6.71 8.887h4.134l-1.424 6.2 6.887-8.71h-4.322l1.435-6.377Z",clipRule:"evenodd"})}),Tq=({size:t="sm",...e})=>E.jsx(me,{as:Sq,className:fd({size:t}),...e});var Pq=At({defaultClassName:"_1c9x66f1 _1c9x66f0 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12nd fyvr12g1 fyvr121d fyvr128p fyvr12nj fyvr12g7 fyvr121j fyvr128v fyvr11h0 fyvr11ko fyvr11jg fyvr11od fyvr12w1 fyvr12vz fyvr12vr fyvr12v7 fyvr12v3 _4efw240",variantClassNames:{size:{sm:"_1c9x66f2",lg:"_1c9x66f3"}},defaultVariants:{},compoundVariants:[]}),Iq="_1c9x66f4 fyvr12s1 fyvr11h0 fyvr11ko fyvr11jg fyvr128 fyvr15o";const Oq=({size:t="sm"})=>E.jsx(gq,{className:Iq,children:E.jsx(mI,{size:t==="lg"?"sm":"xs"})});m.forwardRef((t,e)=>{const{disabled:r=!1,id:n,name:s,label:i="",labelLocation:o="left",size:a="sm",...c}=t;return E.jsx(ud,{disabled:r,display:"flex",id:n??s,label:i,labelLocation:o,whiteSpace:"nowrap",children:E.jsx(vq,{className:Pq({size:a}),disabled:r,id:n??s,name:s,ref:e,...c,children:E.jsx(Oq,{size:a})})})});$r.createContext(null);var Rq=rU.useId||(()=>{}),Nq=0;function es(t){const[e,r]=m.useState(Rq());return xr(()=>{t||r(n=>n??String(Nq++))},[t]),t||(e?`radix-${e}`:"")}var vE="Collapsible",[_q,_de]=Mr(vE),[Mq,gE]=_q(vE),bI=m.forwardRef((t,e)=>{const{__scopeCollapsible:r,open:n,defaultOpen:s,disabled:i,onOpenChange:o,...a}=t,[c=!1,l]=is({prop:n,defaultProp:s,onChange:o});return E.jsx(Mq,{scope:r,disabled:i,contentId:es(),open:c,onOpenToggle:m.useCallback(()=>l(u=>!u),[l]),children:E.jsx(Ae.div,{"data-state":xE(c),"data-disabled":i?"":void 0,...a,ref:e})})});bI.displayName=vE;var wI="CollapsibleTrigger",CI=m.forwardRef((t,e)=>{const{__scopeCollapsible:r,...n}=t,s=gE(wI,r);return E.jsx(Ae.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":xE(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:e,onClick:ce(t.onClick,s.onOpenToggle)})});CI.displayName=wI;var mE="CollapsibleContent",EI=m.forwardRef((t,e)=>{const{forceMount:r,...n}=t,s=gE(mE,t.__scopeCollapsible);return E.jsx(Xr,{present:r||s.open,children:({present:i})=>E.jsx(Dq,{...n,ref:e,present:i})})});EI.displayName=mE;var Dq=m.forwardRef((t,e)=>{const{__scopeCollapsible:r,present:n,children:s,...i}=t,o=gE(mE,r),[a,c]=m.useState(n),l=m.useRef(null),u=$e(e,l),f=m.useRef(0),d=f.current,h=m.useRef(0),y=h.current,p=o.open||a,b=m.useRef(p),v=m.useRef();return m.useEffect(()=>{const g=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(g)},[]),xr(()=>{const g=l.current;if(g){v.current=v.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const x=g.getBoundingClientRect();f.current=x.height,h.current=x.width,b.current||(g.style.transitionDuration=v.current.transitionDuration,g.style.animationName=v.current.animationName),c(n)}},[o.open,n]),E.jsx(Ae.div,{"data-state":xE(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!p,...i,ref:u,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...t.style},children:p&&s})});function xE(t){return t?"open":"closed"}var Bq=bI,Lq=CI,jq=EI,lS="64px",Fq="_4j62fl0",Uq="_4j62fl2 _4j62fl1 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11h0 fyvr11ko fyvr11od fyvr128 fyvr12v7 fyvr11n4 _4efw240",$q="_4j62fl4 _4j62fl3 fyvr1ww fyvr1ys fyvr1so fyvr1v0 fyvr128",Wq="_4j62fl5";const Vq=t=>{const{className:e,children:r,defaultOpen:n,open:s,onOpenChange:i,label:o,...a}=t,[c,l]=m.useState(n),u=s??c,f=h=>{s===void 0&&l(h)},d=h=>{f(h),i==null||i(h)};return E.jsx(Bq,{open:u,defaultOpen:n,onOpenChange:d,asChild:!0,children:E.jsxs(me,{as:Au.div,className:Yr(e,Fq),initial:{height:u?"auto":lS},animate:{height:u?"auto":lS},transition:{ease:"easeOut",duration:.3},borderRadius:"md",background:"backgroundSecondary",position:"relative",overflow:"hidden",width:"full",...a,children:[E.jsxs(Lq,{className:Uq,children:[E.jsx(Tt,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:o}),E.jsx(me,{as:Au.div,position:"absolute",right:"0",marginRight:"4",initial:{rotate:u?180:0},animate:{rotate:u?180:0},transition:{ease:"linear",duration:.1},children:E.jsx(xI,{className:Wq,color:"text50"})})]}),E.jsx(aI,{children:u&&E.jsx(jq,{className:$q,asChild:!0,forceMount:!0,children:E.jsx(Au.div,{initial:{opacity:u?1:0},animate:{opacity:1},exit:{opacity:0},transition:{ease:"easeOut",duration:.3},children:r})})})]})})};function fg(t){const e=t+"CollectionProvider",[r,n]=Mr(e),[s,i]=r(e,{collectionRef:{current:null},itemMap:new Map}),o=h=>{const{scope:y,children:p}=h,b=$r.useRef(null),v=$r.useRef(new Map).current;return E.jsx(s,{scope:y,itemMap:v,collectionRef:b,children:p})};o.displayName=e;const a=t+"CollectionSlot",c=$r.forwardRef((h,y)=>{const{scope:p,children:b}=h,v=i(a,p),g=$e(y,v.collectionRef);return E.jsx(ll,{ref:g,children:b})});c.displayName=a;const l=t+"CollectionItemSlot",u="data-radix-collection-item",f=$r.forwardRef((h,y)=>{const{scope:p,children:b,...v}=h,g=$r.useRef(null),x=$e(y,g),k=i(l,p);return $r.useEffect(()=>(k.itemMap.set(g,{ref:g,...v}),()=>void k.itemMap.delete(g))),E.jsx(ll,{[u]:"",ref:x,children:b})});f.displayName=l;function d(h){const y=i(t+"CollectionConsumer",h);return $r.useCallback(()=>{const b=y.collectionRef.current;if(!b)return[];const v=Array.from(b.querySelectorAll(`[${u}]`));return Array.from(y.itemMap.values()).sort((k,S)=>v.indexOf(k.ref.current)-v.indexOf(S.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:o,Slot:c,ItemSlot:f},d,n]}var Hq=m.createContext(void 0);function a1(t){const e=m.useContext(Hq);return t||e||"ltr"}function zq(t,e=globalThis==null?void 0:globalThis.document){const r=_r(t);m.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var Gq="DismissableLayer",aw="dismissableLayer.update",qq="dismissableLayer.pointerDownOutside",Kq="dismissableLayer.focusOutside",uS,kI=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),dd=m.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=t,l=m.useContext(kI),[u,f]=m.useState(null),d=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=m.useState({}),y=$e(e,R=>f(R)),p=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(b),g=u?p.indexOf(u):-1,x=l.layersWithOutsidePointerEventsDisabled.size>0,k=g>=v,S=Jq(R=>{const _=R.target,V=[...l.branches].some(F=>F.contains(_));!k||V||(s==null||s(R),o==null||o(R),R.defaultPrevented||a==null||a())},d),I=Yq(R=>{const _=R.target;[...l.branches].some(F=>F.contains(_))||(i==null||i(R),o==null||o(R),R.defaultPrevented||a==null||a())},d);return zq(R=>{g===l.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},d),m.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(uS=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),fS(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=uS)}},[u,d,r,l]),m.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),fS())},[u,l]),m.useEffect(()=>{const R=()=>h({});return document.addEventListener(aw,R),()=>document.removeEventListener(aw,R)},[]),E.jsx(Ae.div,{...c,ref:y,style:{pointerEvents:x?k?"auto":"none":void 0,...t.style},onFocusCapture:ce(t.onFocusCapture,I.onFocusCapture),onBlurCapture:ce(t.onBlurCapture,I.onBlurCapture),onPointerDownCapture:ce(t.onPointerDownCapture,S.onPointerDownCapture)})});dd.displayName=Gq;var Qq="DismissableLayerBranch",AI=m.forwardRef((t,e)=>{const r=m.useContext(kI),n=m.useRef(null),s=$e(e,n);return m.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),E.jsx(Ae.div,{...t,ref:s})});AI.displayName=Qq;function Jq(t,e=globalThis==null?void 0:globalThis.document){const r=_r(t),n=m.useRef(!1),s=m.useRef(()=>{});return m.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let c=function(){SI(qq,r,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=c,e.addEventListener("click",s.current,{once:!0})):c()}else e.removeEventListener("click",s.current);n.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",s.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function Yq(t,e=globalThis==null?void 0:globalThis.document){const r=_r(t),n=m.useRef(!1);return m.useEffect(()=>{const s=i=>{i.target&&!n.current&&SI(Kq,r,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function fS(){const t=new CustomEvent(aw);document.dispatchEvent(t)}function SI(t,e,r,{discrete:n}){const s=r.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&s.addEventListener(t,e,{once:!0}),n?hE(s,i):s.dispatchEvent(i)}var Xq=dd,Zq=AI,nx=0;function bE(){m.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??dS()),document.body.insertAdjacentElement("beforeend",t[1]??dS()),nx++,()=>{nx===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),nx--}},[])}function dS(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",t}var sx="focusScope.autoFocusOnMount",ix="focusScope.autoFocusOnUnmount",hS={bubbles:!1,cancelable:!0},eK="FocusScope",dg=m.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=t,[a,c]=m.useState(null),l=_r(s),u=_r(i),f=m.useRef(null),d=$e(e,p=>c(p)),h=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(n){let p=function(x){if(h.paused||!a)return;const k=x.target;a.contains(k)?f.current=k:Io(f.current,{select:!0})},b=function(x){if(h.paused||!a)return;const k=x.relatedTarget;k!==null&&(a.contains(k)||Io(f.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Io(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",b);const g=new MutationObserver(v);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",b),g.disconnect()}}},[n,a,h.paused]),m.useEffect(()=>{if(a){yS.add(h);const p=document.activeElement;if(!a.contains(p)){const v=new CustomEvent(sx,hS);a.addEventListener(sx,l),a.dispatchEvent(v),v.defaultPrevented||(tK(oK(TI(a)),{select:!0}),document.activeElement===p&&Io(a))}return()=>{a.removeEventListener(sx,l),setTimeout(()=>{const v=new CustomEvent(ix,hS);a.addEventListener(ix,u),a.dispatchEvent(v),v.defaultPrevented||Io(p??document.body,{select:!0}),a.removeEventListener(ix,u),yS.remove(h)},0)}}},[a,l,u,h]);const y=m.useCallback(p=>{if(!r&&!n||h.paused)return;const b=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(b&&v){const g=p.currentTarget,[x,k]=rK(g);x&&k?!p.shiftKey&&v===k?(p.preventDefault(),r&&Io(x,{select:!0})):p.shiftKey&&v===x&&(p.preventDefault(),r&&Io(k,{select:!0})):v===g&&p.preventDefault()}},[r,n,h.paused]);return E.jsx(Ae.div,{tabIndex:-1,...o,ref:d,onKeyDown:y})});dg.displayName=eK;function tK(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(Io(n,{select:e}),document.activeElement!==r)return}function rK(t){const e=TI(t),r=pS(e,t),n=pS(e.reverse(),t);return[r,n]}function TI(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function pS(t,e){for(const r of t)if(!nK(r,{upTo:e}))return r}function nK(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function sK(t){return t instanceof HTMLInputElement&&"select"in t}function Io(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&sK(t)&&e&&t.select()}}var yS=iK();function iK(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=vS(t,e),t.unshift(e)},remove(e){var r;t=vS(t,e),(r=t[0])==null||r.resume()}}}function vS(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function oK(t){return t.filter(e=>e.tagName!=="A")}const aK=["top","right","bottom","left"],oi=Math.min,kn=Math.max,Gy=Math.round,Z1=Math.floor,Pa=t=>({x:t,y:t}),cK={left:"right",right:"left",bottom:"top",top:"bottom"},lK={start:"end",end:"start"};function cw(t,e,r){return kn(t,oi(e,r))}function io(t,e){return typeof t=="function"?t(e):t}function oo(t){return t.split("-")[0]}function hd(t){return t.split("-")[1]}function wE(t){return t==="x"?"y":"x"}function CE(t){return t==="y"?"height":"width"}function Ia(t){return["top","bottom"].includes(oo(t))?"y":"x"}function EE(t){return wE(Ia(t))}function uK(t,e,r){r===void 0&&(r=!1);const n=hd(t),s=EE(t),i=CE(s);let o=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=qy(o)),[o,qy(o)]}function fK(t){const e=qy(t);return[lw(t),e,lw(e)]}function lw(t){return t.replace(/start|end/g,e=>lK[e])}function dK(t,e,r){const n=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return r?e?s:n:e?n:s;case"left":case"right":return e?i:o;default:return[]}}function hK(t,e,r,n){const s=hd(t);let i=dK(oo(t),r==="start",n);return s&&(i=i.map(o=>o+"-"+s),e&&(i=i.concat(i.map(lw)))),i}function qy(t){return t.replace(/left|right|bottom|top/g,e=>cK[e])}function pK(t){return{top:0,right:0,bottom:0,left:0,...t}}function PI(t){return typeof t!="number"?pK(t):{top:t,right:t,bottom:t,left:t}}function Ky(t){const{x:e,y:r,width:n,height:s}=t;return{width:n,height:s,top:r,left:e,right:e+n,bottom:r+s,x:e,y:r}}function gS(t,e,r){let{reference:n,floating:s}=t;const i=Ia(e),o=EE(e),a=CE(o),c=oo(e),l=i==="y",u=n.x+n.width/2-s.width/2,f=n.y+n.height/2-s.height/2,d=n[a]/2-s[a]/2;let h;switch(c){case"top":h={x:u,y:n.y-s.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-s.width,y:f};break;default:h={x:n.x,y:n.y}}switch(hd(e)){case"start":h[o]-=d*(r&&l?-1:1);break;case"end":h[o]+=d*(r&&l?-1:1);break}return h}const yK=async(t,e,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:o}=r,a=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(e));let l=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:u,y:f}=gS(l,n,c),d=n,h={},y=0;for(let p=0;p({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:s,rects:i,platform:o,elements:a,middlewareData:c}=e,{element:l,padding:u=0}=io(t,e)||{};if(l==null)return{};const f=PI(u),d={x:r,y:n},h=EE(s),y=CE(h),p=await o.getDimensions(l),b=h==="y",v=b?"top":"left",g=b?"bottom":"right",x=b?"clientHeight":"clientWidth",k=i.reference[y]+i.reference[h]-d[h]-i.floating[y],S=d[h]-i.reference[h],I=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let R=I?I[x]:0;(!R||!await(o.isElement==null?void 0:o.isElement(I)))&&(R=a.floating[x]||i.floating[y]);const _=k/2-S/2,V=R/2-p[y]/2-1,F=oi(f[v],V),X=oi(f[g],V),re=F,le=R-p[y]-X,ee=R/2-p[y]/2+_,D=cw(re,ee,le),G=!c.arrow&&hd(s)!=null&&ee!==D&&i.reference[y]/2-(eeee<=0)){var X,re;const ee=(((X=i.flip)==null?void 0:X.index)||0)+1,D=R[ee];if(D)return{data:{index:ee,overflows:F},reset:{placement:D}};let G=(re=F.filter(Z=>Z.overflows[0]<=0).sort((Z,C)=>Z.overflows[1]-C.overflows[1])[0])==null?void 0:re.placement;if(!G)switch(h){case"bestFit":{var le;const Z=(le=F.filter(C=>{if(I){const A=Ia(C.placement);return A===g||A==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(A=>A>0).reduce((A,O)=>A+O,0)]).sort((C,A)=>C[1]-A[1])[0])==null?void 0:le[0];Z&&(G=Z);break}case"initialPlacement":G=a;break}if(s!==G)return{reset:{placement:G}}}return{}}}};function mS(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function xS(t){return aK.some(e=>t[e]>=0)}const mK=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...s}=io(t,e);switch(n){case"referenceHidden":{const i=await l0(e,{...s,elementContext:"reference"}),o=mS(i,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:xS(o)}}}case"escaped":{const i=await l0(e,{...s,altBoundary:!0}),o=mS(i,r.floating);return{data:{escapedOffsets:o,escaped:xS(o)}}}default:return{}}}}};async function xK(t,e){const{placement:r,platform:n,elements:s}=t,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),o=oo(r),a=hd(r),c=Ia(r)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,f=io(e,t);let{mainAxis:d,crossAxis:h,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof y=="number"&&(h=a==="end"?y*-1:y),c?{x:h*u,y:d*l}:{x:d*l,y:h*u}}const bK=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:s,y:i,placement:o,middlewareData:a}=e,c=await xK(e,t);return o===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:o}}}}},wK=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:s}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:b=>{let{x:v,y:g}=b;return{x:v,y:g}}},...c}=io(t,e),l={x:r,y:n},u=await l0(e,c),f=Ia(oo(s)),d=wE(f);let h=l[d],y=l[f];if(i){const b=d==="y"?"top":"left",v=d==="y"?"bottom":"right",g=h+u[b],x=h-u[v];h=cw(g,h,x)}if(o){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",g=y+u[b],x=y-u[v];y=cw(g,y,x)}const p=a.fn({...e,[d]:h,[f]:y});return{...p,data:{x:p.x-r,y:p.y-n}}}}},CK=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:s,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=io(t,e),u={x:r,y:n},f=Ia(s),d=wE(f);let h=u[d],y=u[f];const p=io(a,e),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const x=d==="y"?"height":"width",k=i.reference[d]-i.floating[x]+b.mainAxis,S=i.reference[d]+i.reference[x]-b.mainAxis;hS&&(h=S)}if(l){var v,g;const x=d==="y"?"width":"height",k=["top","left"].includes(oo(s)),S=i.reference[f]-i.floating[x]+(k&&((v=o.offset)==null?void 0:v[f])||0)+(k?0:b.crossAxis),I=i.reference[f]+i.reference[x]+(k?0:((g=o.offset)==null?void 0:g[f])||0)-(k?b.crossAxis:0);yI&&(y=I)}return{[d]:h,[f]:y}}}},EK=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:n,platform:s,elements:i}=e,{apply:o=()=>{},...a}=io(t,e),c=await l0(e,a),l=oo(r),u=hd(r),f=Ia(r)==="y",{width:d,height:h}=n.floating;let y,p;l==="top"||l==="bottom"?(y=l,p=u===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(p=l,y=u==="end"?"top":"bottom");const b=h-c.top-c.bottom,v=d-c.left-c.right,g=oi(h-c[y],b),x=oi(d-c[p],v),k=!e.middlewareData.shift;let S=g,I=x;if(f?I=u||k?oi(x,v):v:S=u||k?oi(g,b):b,k&&!u){const _=kn(c.left,0),V=kn(c.right,0),F=kn(c.top,0),X=kn(c.bottom,0);f?I=d-2*(_!==0||V!==0?_+V:kn(c.left,c.right)):S=h-2*(F!==0||X!==0?F+X:kn(c.top,c.bottom))}await o({...e,availableWidth:I,availableHeight:S});const R=await s.getDimensions(i.floating);return d!==R.width||h!==R.height?{reset:{rects:!0}}:{}}}};function pd(t){return II(t)?(t.nodeName||"").toLowerCase():"#document"}function Pn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ho(t){var e;return(e=(II(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function II(t){return t instanceof Node||t instanceof Pn(t).Node}function yi(t){return t instanceof Element||t instanceof Pn(t).Element}function vi(t){return t instanceof HTMLElement||t instanceof Pn(t).HTMLElement}function bS(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Pn(t).ShadowRoot}function c1(t){const{overflow:e,overflowX:r,overflowY:n,display:s}=_s(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(s)}function kK(t){return["table","td","th"].includes(pd(t))}function hg(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function kE(t){const e=AE(),r=_s(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function AK(t){let e=Oa(t);for(;vi(e)&&!Uf(e);){if(hg(e))return null;if(kE(e))return e;e=Oa(e)}return null}function AE(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Uf(t){return["html","body","#document"].includes(pd(t))}function _s(t){return Pn(t).getComputedStyle(t)}function pg(t){return yi(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Oa(t){if(pd(t)==="html")return t;const e=t.assignedSlot||t.parentNode||bS(t)&&t.host||ho(t);return bS(e)?e.host:e}function OI(t){const e=Oa(t);return Uf(e)?t.ownerDocument?t.ownerDocument.body:t.body:vi(e)&&c1(e)?e:OI(e)}function u0(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const s=OI(t),i=s===((n=t.ownerDocument)==null?void 0:n.body),o=Pn(s);return i?e.concat(o,o.visualViewport||[],c1(s)?s:[],o.frameElement&&r?u0(o.frameElement):[]):e.concat(s,u0(s,[],r))}function RI(t){const e=_s(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const s=vi(t),i=s?t.offsetWidth:r,o=s?t.offsetHeight:n,a=Gy(r)!==i||Gy(n)!==o;return a&&(r=i,n=o),{width:r,height:n,$:a}}function SE(t){return yi(t)?t:t.contextElement}function Su(t){const e=SE(t);if(!vi(e))return Pa(1);const r=e.getBoundingClientRect(),{width:n,height:s,$:i}=RI(e);let o=(i?Gy(r.width):r.width)/n,a=(i?Gy(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const SK=Pa(0);function NI(t){const e=Pn(t);return!AE()||!e.visualViewport?SK:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function TK(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Pn(t)?!1:e}function ul(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),i=SE(t);let o=Pa(1);e&&(n?yi(n)&&(o=Su(n)):o=Su(t));const a=TK(i,r,n)?NI(i):Pa(0);let c=(s.left+a.x)/o.x,l=(s.top+a.y)/o.y,u=s.width/o.x,f=s.height/o.y;if(i){const d=Pn(i),h=n&&yi(n)?Pn(n):n;let y=d,p=y.frameElement;for(;p&&n&&h!==y;){const b=Su(p),v=p.getBoundingClientRect(),g=_s(p),x=v.left+(p.clientLeft+parseFloat(g.paddingLeft))*b.x,k=v.top+(p.clientTop+parseFloat(g.paddingTop))*b.y;c*=b.x,l*=b.y,u*=b.x,f*=b.y,c+=x,l+=k,y=Pn(p),p=y.frameElement}}return Ky({width:u,height:f,x:c,y:l})}function PK(t){let{elements:e,rect:r,offsetParent:n,strategy:s}=t;const i=s==="fixed",o=ho(n),a=e?hg(e.floating):!1;if(n===o||a&&i)return r;let c={scrollLeft:0,scrollTop:0},l=Pa(1);const u=Pa(0),f=vi(n);if((f||!f&&!i)&&((pd(n)!=="body"||c1(o))&&(c=pg(n)),vi(n))){const d=ul(n);l=Su(n),u.x=d.x+n.clientLeft,u.y=d.y+n.clientTop}return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+u.x,y:r.y*l.y-c.scrollTop*l.y+u.y}}function IK(t){return Array.from(t.getClientRects())}function _I(t){return ul(ho(t)).left+pg(t).scrollLeft}function OK(t){const e=ho(t),r=pg(t),n=t.ownerDocument.body,s=kn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=kn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+_I(t);const a=-r.scrollTop;return _s(n).direction==="rtl"&&(o+=kn(e.clientWidth,n.clientWidth)-s),{width:s,height:i,x:o,y:a}}function RK(t,e){const r=Pn(t),n=ho(t),s=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,a=0,c=0;if(s){i=s.width,o=s.height;const l=AE();(!l||l&&e==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:i,height:o,x:a,y:c}}function NK(t,e){const r=ul(t,!0,e==="fixed"),n=r.top+t.clientTop,s=r.left+t.clientLeft,i=vi(t)?Su(t):Pa(1),o=t.clientWidth*i.x,a=t.clientHeight*i.y,c=s*i.x,l=n*i.y;return{width:o,height:a,x:c,y:l}}function wS(t,e,r){let n;if(e==="viewport")n=RK(t,r);else if(e==="document")n=OK(ho(t));else if(yi(e))n=NK(e,r);else{const s=NI(t);n={...e,x:e.x-s.x,y:e.y-s.y}}return Ky(n)}function MI(t,e){const r=Oa(t);return r===e||!yi(r)||Uf(r)?!1:_s(r).position==="fixed"||MI(r,e)}function _K(t,e){const r=e.get(t);if(r)return r;let n=u0(t,[],!1).filter(a=>yi(a)&&pd(a)!=="body"),s=null;const i=_s(t).position==="fixed";let o=i?Oa(t):t;for(;yi(o)&&!Uf(o);){const a=_s(o),c=kE(o);!c&&a.position==="fixed"&&(s=null),(i?!c&&!s:!c&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||c1(o)&&!c&&MI(t,o))?n=n.filter(u=>u!==o):s=a,o=Oa(o)}return e.set(t,n),n}function MK(t){let{element:e,boundary:r,rootBoundary:n,strategy:s}=t;const o=[...r==="clippingAncestors"?hg(e)?[]:_K(e,this._c):[].concat(r),n],a=o[0],c=o.reduce((l,u)=>{const f=wS(e,u,s);return l.top=kn(f.top,l.top),l.right=oi(f.right,l.right),l.bottom=oi(f.bottom,l.bottom),l.left=kn(f.left,l.left),l},wS(e,a,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function DK(t){const{width:e,height:r}=RI(t);return{width:e,height:r}}function BK(t,e,r){const n=vi(e),s=ho(e),i=r==="fixed",o=ul(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=Pa(0);if(n||!n&&!i)if((pd(e)!=="body"||c1(s))&&(a=pg(e)),n){const f=ul(e,!0,i,e);c.x=f.x+e.clientLeft,c.y=f.y+e.clientTop}else s&&(c.x=_I(s));const l=o.left+a.scrollLeft-c.x,u=o.top+a.scrollTop-c.y;return{x:l,y:u,width:o.width,height:o.height}}function ox(t){return _s(t).position==="static"}function CS(t,e){return!vi(t)||_s(t).position==="fixed"?null:e?e(t):t.offsetParent}function DI(t,e){const r=Pn(t);if(hg(t))return r;if(!vi(t)){let s=Oa(t);for(;s&&!Uf(s);){if(yi(s)&&!ox(s))return s;s=Oa(s)}return r}let n=CS(t,e);for(;n&&kK(n)&&ox(n);)n=CS(n,e);return n&&Uf(n)&&ox(n)&&!kE(n)?r:n||AK(t)||r}const LK=async function(t){const e=this.getOffsetParent||DI,r=this.getDimensions,n=await r(t.floating);return{reference:BK(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function jK(t){return _s(t).direction==="rtl"}const FK={convertOffsetParentRelativeRectToViewportRelativeRect:PK,getDocumentElement:ho,getClippingRect:MK,getOffsetParent:DI,getElementRects:LK,getClientRects:IK,getDimensions:DK,getScale:Su,isElement:yi,isRTL:jK};function UK(t,e){let r=null,n;const s=ho(t);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:u,width:f,height:d}=t.getBoundingClientRect();if(a||e(),!f||!d)return;const h=Z1(u),y=Z1(s.clientWidth-(l+f)),p=Z1(s.clientHeight-(u+d)),b=Z1(l),g={rootMargin:-h+"px "+-y+"px "+-p+"px "+-b+"px",threshold:kn(0,oi(1,c))||1};let x=!0;function k(S){const I=S[0].intersectionRatio;if(I!==c){if(!x)return o();I?o(!1,I):n=setTimeout(()=>{o(!1,1e-7)},1e3)}x=!1}try{r=new IntersectionObserver(k,{...g,root:s.ownerDocument})}catch{r=new IntersectionObserver(k,g)}r.observe(t)}return o(!0),i}function $K(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=SE(t),u=s||i?[...l?u0(l):[],...u0(e)]:[];u.forEach(v=>{s&&v.addEventListener("scroll",r,{passive:!0}),i&&v.addEventListener("resize",r)});const f=l&&a?UK(l,r):null;let d=-1,h=null;o&&(h=new ResizeObserver(v=>{let[g]=v;g&&g.target===l&&h&&(h.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(e)})),r()}),l&&!c&&h.observe(l),h.observe(e));let y,p=c?ul(t):null;c&&b();function b(){const v=ul(t);p&&(v.x!==p.x||v.y!==p.y||v.width!==p.width||v.height!==p.height)&&r(),p=v,y=requestAnimationFrame(b)}return r(),()=>{var v;u.forEach(g=>{s&&g.removeEventListener("scroll",r),i&&g.removeEventListener("resize",r)}),f==null||f(),(v=h)==null||v.disconnect(),h=null,c&&cancelAnimationFrame(y)}}const WK=bK,VK=wK,HK=gK,zK=EK,GK=mK,ES=vK,qK=CK,KK=(t,e,r)=>{const n=new Map,s={platform:FK,...r},i={...s.platform,_c:n};return yK(t,e,{...s,platform:i})};var Up=typeof document<"u"?m.useLayoutEffect:m.useEffect;function Qy(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!Qy(t[n],e[n]))return!1;return!0}if(s=Object.keys(t),r=s.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,s[n]))return!1;for(n=r;n--!==0;){const i=s[n];if(!(i==="_owner"&&t.$$typeof)&&!Qy(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function BI(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function kS(t,e){const r=BI(t);return Math.round(e*r)/r}function AS(t){const e=m.useRef(t);return Up(()=>{e.current=t}),e}function QK(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=t,[u,f]=m.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[d,h]=m.useState(n);Qy(d,n)||h(n);const[y,p]=m.useState(null),[b,v]=m.useState(null),g=m.useCallback(Z=>{Z!==I.current&&(I.current=Z,p(Z))},[]),x=m.useCallback(Z=>{Z!==R.current&&(R.current=Z,v(Z))},[]),k=i||y,S=o||b,I=m.useRef(null),R=m.useRef(null),_=m.useRef(u),V=c!=null,F=AS(c),X=AS(s),re=m.useCallback(()=>{if(!I.current||!R.current)return;const Z={placement:e,strategy:r,middleware:d};X.current&&(Z.platform=X.current),KK(I.current,R.current,Z).then(C=>{const A={...C,isPositioned:!0};le.current&&!Qy(_.current,A)&&(_.current=A,ja.flushSync(()=>{f(A)}))})},[d,e,r,X]);Up(()=>{l===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,f(Z=>({...Z,isPositioned:!1})))},[l]);const le=m.useRef(!1);Up(()=>(le.current=!0,()=>{le.current=!1}),[]),Up(()=>{if(k&&(I.current=k),S&&(R.current=S),k&&S){if(F.current)return F.current(k,S,re);re()}},[k,S,re,F,V]);const ee=m.useMemo(()=>({reference:I,floating:R,setReference:g,setFloating:x}),[g,x]),D=m.useMemo(()=>({reference:k,floating:S}),[k,S]),G=m.useMemo(()=>{const Z={position:r,left:0,top:0};if(!D.floating)return Z;const C=kS(D.floating,u.x),A=kS(D.floating,u.y);return a?{...Z,transform:"translate("+C+"px, "+A+"px)",...BI(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:C,top:A}},[r,a,D.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:re,refs:ee,elements:D,floatingStyles:G}),[u,re,ee,D,G])}const JK=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:s}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?ES({element:n.current,padding:s}).fn(r):{}:n?ES({element:n,padding:s}).fn(r):{}}}},YK=(t,e)=>({...WK(t),options:[t,e]}),XK=(t,e)=>({...VK(t),options:[t,e]}),ZK=(t,e)=>({...qK(t),options:[t,e]}),eQ=(t,e)=>({...HK(t),options:[t,e]}),tQ=(t,e)=>({...zK(t),options:[t,e]}),rQ=(t,e)=>({...GK(t),options:[t,e]}),nQ=(t,e)=>({...JK(t),options:[t,e]});var sQ="Arrow",LI=m.forwardRef((t,e)=>{const{children:r,width:n=10,height:s=5,...i}=t;return E.jsx(Ae.svg,{...i,ref:e,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:E.jsx("polygon",{points:"0,0 30,0 15,10"})})});LI.displayName=sQ;var iQ=LI,TE="Popper",[jI,yd]=Mr(TE),[oQ,FI]=jI(TE),UI=t=>{const{__scopePopper:e,children:r}=t,[n,s]=m.useState(null);return E.jsx(oQ,{scope:e,anchor:n,onAnchorChange:s,children:r})};UI.displayName=TE;var $I="PopperAnchor",WI=m.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...s}=t,i=FI($I,r),o=m.useRef(null),a=$e(e,o);return m.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:E.jsx(Ae.div,{...s,ref:a})});WI.displayName=$I;var PE="PopperContent",[aQ,cQ]=jI(PE),VI=m.forwardRef((t,e)=>{var r,n,s,i,o,a;const{__scopePopper:c,side:l="bottom",sideOffset:u=0,align:f="center",alignOffset:d=0,arrowPadding:h=0,avoidCollisions:y=!0,collisionBoundary:p=[],collisionPadding:b=0,sticky:v="partial",hideWhenDetached:g=!1,updatePositionStrategy:x="optimized",onPlaced:k,...S}=t,I=FI(PE,c),[R,_]=m.useState(null),V=$e(e,Re=>_(Re)),[F,X]=m.useState(null),re=ug(F),le=(re==null?void 0:re.width)??0,ee=(re==null?void 0:re.height)??0,D=l+(f!=="center"?"-"+f:""),G=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},Z=Array.isArray(p)?p:[p],C=Z.length>0,A={padding:G,boundary:Z.filter(uQ),altBoundary:C},{refs:O,floatingStyles:M,placement:B,isPositioned:W,middlewareData:q}=QK({strategy:"fixed",placement:D,whileElementsMounted:(...Re)=>$K(...Re,{animationFrame:x==="always"}),elements:{reference:I.anchor},middleware:[YK({mainAxis:u+ee,alignmentAxis:d}),y&&XK({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?ZK():void 0,...A}),y&&eQ({...A}),tQ({...A,apply:({elements:Re,rects:xt,availableWidth:tn,availableHeight:br})=>{const{width:U,height:se}=xt.reference,ae=Re.floating.style;ae.setProperty("--radix-popper-available-width",`${tn}px`),ae.setProperty("--radix-popper-available-height",`${br}px`),ae.setProperty("--radix-popper-anchor-width",`${U}px`),ae.setProperty("--radix-popper-anchor-height",`${se}px`)}}),F&&nQ({element:F,padding:h}),fQ({arrowWidth:le,arrowHeight:ee}),g&&rQ({strategy:"referenceHidden",...A})]}),[te,J]=GI(B),$=_r(k);xr(()=>{W&&($==null||$())},[W,$]);const K=(r=q.arrow)==null?void 0:r.x,ue=(n=q.arrow)==null?void 0:n.y,de=((s=q.arrow)==null?void 0:s.centerOffset)!==0,[oe,Ce]=m.useState();return xr(()=>{R&&Ce(window.getComputedStyle(R).zIndex)},[R]),E.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:W?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[(i=q.transformOrigin)==null?void 0:i.x,(o=q.transformOrigin)==null?void 0:o.y].join(" "),...((a=q.hide)==null?void 0:a.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:E.jsx(aQ,{scope:c,placedSide:te,onArrowChange:X,arrowX:K,arrowY:ue,shouldHideArrow:de,children:E.jsx(Ae.div,{"data-side":te,"data-align":J,...S,ref:V,style:{...S.style,animation:W?void 0:"none"}})})})});VI.displayName=PE;var HI="PopperArrow",lQ={top:"bottom",right:"left",bottom:"top",left:"right"},zI=m.forwardRef(function(e,r){const{__scopePopper:n,...s}=e,i=cQ(HI,n),o=lQ[i.placedSide];return E.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:E.jsx(iQ,{...s,ref:r,style:{...s.style,display:"block"}})})});zI.displayName=HI;function uQ(t){return t!==null}var fQ=t=>({name:"transformOrigin",options:t,fn(e){var r,n,s;const{placement:i,rects:o,middlewareData:a}=e,l=((r=a.arrow)==null?void 0:r.centerOffset)!==0,u=l?0:t.arrowWidth,f=l?0:t.arrowHeight,[d,h]=GI(i),y={start:"0%",center:"50%",end:"100%"}[h],p=(((n=a.arrow)==null?void 0:n.x)??0)+u/2,b=(((s=a.arrow)==null?void 0:s.y)??0)+f/2;let v="",g="";return d==="bottom"?(v=l?y:`${p}px`,g=`${-f}px`):d==="top"?(v=l?y:`${p}px`,g=`${o.floating.height+f}px`):d==="right"?(v=`${-f}px`,g=l?y:`${b}px`):d==="left"&&(v=`${o.floating.width+f}px`,g=l?y:`${b}px`),{data:{x:v,y:g}}}});function GI(t){const[e,r="center"]=t.split("-");return[e,r]}var IE=UI,OE=WI,RE=VI,NE=zI,dQ="Portal",l1=m.forwardRef((t,e)=>{var r;const{container:n,...s}=t,[i,o]=m.useState(!1);xr(()=>o(!0),[]);const a=n||i&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return a?hW.createPortal(E.jsx(Ae.div,{...s,ref:e}),a):null});l1.displayName=dQ;var ax="rovingFocusGroup.onEntryFocus",hQ={bubbles:!1,cancelable:!0},yg="RovingFocusGroup",[uw,qI,pQ]=fg(yg),[yQ,vd]=Mr(yg,[pQ]),[vQ,gQ]=yQ(yg),KI=m.forwardRef((t,e)=>E.jsx(uw.Provider,{scope:t.__scopeRovingFocusGroup,children:E.jsx(uw.Slot,{scope:t.__scopeRovingFocusGroup,children:E.jsx(mQ,{...t,ref:e})})}));KI.displayName=yg;var mQ=m.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:s=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...f}=t,d=m.useRef(null),h=$e(e,d),y=a1(i),[p=null,b]=is({prop:o,defaultProp:a,onChange:c}),[v,g]=m.useState(!1),x=_r(l),k=qI(r),S=m.useRef(!1),[I,R]=m.useState(0);return m.useEffect(()=>{const _=d.current;if(_)return _.addEventListener(ax,x),()=>_.removeEventListener(ax,x)},[x]),E.jsx(vQ,{scope:r,orientation:n,dir:y,loop:s,currentTabStopId:p,onItemFocus:m.useCallback(_=>b(_),[b]),onItemShiftTab:m.useCallback(()=>g(!0),[]),onFocusableItemAdd:m.useCallback(()=>R(_=>_+1),[]),onFocusableItemRemove:m.useCallback(()=>R(_=>_-1),[]),children:E.jsx(Ae.div,{tabIndex:v||I===0?-1:0,"data-orientation":n,...f,ref:h,style:{outline:"none",...t.style},onMouseDown:ce(t.onMouseDown,()=>{S.current=!0}),onFocus:ce(t.onFocus,_=>{const V=!S.current;if(_.target===_.currentTarget&&V&&!v){const F=new CustomEvent(ax,hQ);if(_.currentTarget.dispatchEvent(F),!F.defaultPrevented){const X=k().filter(G=>G.focusable),re=X.find(G=>G.active),le=X.find(G=>G.id===p),D=[re,le,...X].filter(Boolean).map(G=>G.ref.current);YI(D,u)}}S.current=!1}),onBlur:ce(t.onBlur,()=>g(!1))})})}),QI="RovingFocusGroupItem",JI=m.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:s=!1,tabStopId:i,...o}=t,a=es(),c=i||a,l=gQ(QI,r),u=l.currentTabStopId===c,f=qI(r),{onFocusableItemAdd:d,onFocusableItemRemove:h}=l;return m.useEffect(()=>{if(n)return d(),()=>h()},[n,d,h]),E.jsx(uw.ItemSlot,{scope:r,id:c,focusable:n,active:s,children:E.jsx(Ae.span,{tabIndex:u?0:-1,"data-orientation":l.orientation,...o,ref:e,onMouseDown:ce(t.onMouseDown,y=>{n?l.onItemFocus(c):y.preventDefault()}),onFocus:ce(t.onFocus,()=>l.onItemFocus(c)),onKeyDown:ce(t.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){l.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const p=wQ(y,l.orientation,l.dir);if(p!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let v=f().filter(g=>g.focusable).map(g=>g.ref.current);if(p==="last")v.reverse();else if(p==="prev"||p==="next"){p==="prev"&&v.reverse();const g=v.indexOf(y.currentTarget);v=l.loop?CQ(v,g+1):v.slice(g+1)}setTimeout(()=>YI(v))}})})})});JI.displayName=QI;var xQ={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function bQ(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function wQ(t,e,r){const n=bQ(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return xQ[n]}function YI(t,e=!1){const r=document.activeElement;for(const n of t)if(n===r||(n.focus({preventScroll:e}),document.activeElement!==r))return}function CQ(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var _E=KI,ME=JI,EQ=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Rl=new WeakMap,ep=new WeakMap,tp={},cx=0,XI=function(t){return t&&(t.host||XI(t.parentNode))},kQ=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=XI(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},AQ=function(t,e,r,n){var s=kQ(e,Array.isArray(t)?t:[t]);tp[r]||(tp[r]=new WeakMap);var i=tp[r],o=[],a=new Set,c=new Set(s),l=function(f){!f||a.has(f)||(a.add(f),l(f.parentNode))};s.forEach(l);var u=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(d){if(a.has(d))u(d);else try{var h=d.getAttribute(n),y=h!==null&&h!=="false",p=(Rl.get(d)||0)+1,b=(i.get(d)||0)+1;Rl.set(d,p),i.set(d,b),o.push(d),p===1&&y&&ep.set(d,!0),b===1&&d.setAttribute(r,"true"),y||d.setAttribute(n,"true")}catch(v){console.error("aria-hidden: cannot operate on ",d,v)}})};return u(e),a.clear(),cx++,function(){o.forEach(function(f){var d=Rl.get(f)-1,h=i.get(f)-1;Rl.set(f,d),i.set(f,h),d||(ep.has(f)||f.removeAttribute(n),ep.delete(f)),h||f.removeAttribute(r)}),cx--,cx||(Rl=new WeakMap,Rl=new WeakMap,ep=new WeakMap,tp={})}},DE=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),s=EQ(t);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live]"))),AQ(n,s,r,"aria-hidden")):function(){return null}},ii=function(){return ii=Object.assign||function(e){for(var r,n=1,s=arguments.length;n"u")return WQ;var e=VQ(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},zQ=rO(),Tu="data-scroll-locked",GQ=function(t,e,r,n){var s=t.left,i=t.top,o=t.right,a=t.gap;return r===void 0&&(r="margin"),` - .`.concat(TQ,` { + */var oS;function KG(){if(oS)return jd;oS=1;var t=Wr,e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,c,l){var u,f={},d=null,h=null;l!==void 0&&(d=""+l),c.key!==void 0&&(d=""+c.key),c.ref!==void 0&&(h=c.ref);for(u in c)n.call(c,u)&&!i.hasOwnProperty(u)&&(f[u]=c[u]);if(a&&a.defaultProps)for(u in c=a.defaultProps,c)f[u]===void 0&&(f[u]=c[u]);return{$$typeof:e,type:a,key:d,ref:h,props:f,_owner:s.current}}return jd.Fragment=r,jd.jsx=o,jd.jsxs=o,jd}pI.exports=KG();var E=pI.exports;function QG(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function JG(t){var e=QG(t,"string");return typeof e=="symbol"?e:String(e)}function YG(t,e,r){return e=JG(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function aS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function cS(t){for(var e=1;e{for(var n of Object.keys(t)){var s;if(t[n]!==((s=e[n])!==null&&s!==void 0?s:r[n]))return!1}return!0},At=t=>{var e=r=>{var n=t.defaultClassName,s=cS(cS({},t.defaultVariants),r);for(var i in s){var o,a=(o=s[i])!==null&&o!==void 0?o:t.defaultVariants[i];if(a!=null){var c=a;typeof c=="boolean"&&(c=c===!0?"true":"false");var l=t.variantClassNames[i][c];l&&(n+=" "+l)}}for(var[u,f]of t.compoundVariants)XG(u,s,t.defaultVariants)&&(n+=" "+f);return n};return e.variants=()=>Object.keys(t.variantClassNames),e.classNames={get base(){return t.defaultClassName.split(" ")[0]},get variants(){return lS(t.variantClassNames,r=>lS(r,n=>n.split(" ")[0]))}},e};At({defaultClassName:"_2q9vfj7",variantClassNames:{variant:{info:"_2q9vfj8 _2q9vfj0 fyvr11ov",warning:"_2q9vfj9 _2q9vfj1 fyvr11p1",success:"_2q9vfja _2q9vfj2 fyvr11oj",error:"_2q9vfjb _2q9vfj3 fyvr11op"},size:{sm:"_2q9vfjc _1qxj1ib9 _1qxj1ibf _1qxj1ib5 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 _2q9vfj4 fyvr1wo fyvr1yk fyvr13w fyvr1e8",md:"_2q9vfjd _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _2q9vfj5 fyvr1ws fyvr1yo fyvr140 fyvr1ec",lg:"_2q9vfje _1qxj1ib9 _1qxj1ibd _1qxj1ib3 fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc _2q9vfj6 fyvr1ww fyvr1ys fyvr144 fyvr1eg"}},defaultVariants:{},compoundVariants:[]});const uS=t=>{const{color:e="borderNormal",marginY:r="4",...n}=t;return E.jsx(me,{as:"hr",marginY:r,background:e,height:"px",borderWidth:"none",...n})};var ZG=At({defaultClassName:"_1qxj1ib9",variantClassNames:{variant:{inherit:"_1qxj1iba _1qxj1ib0 fyvr11mu fyvr11e4 fyvr11gg fyvr11fg fyvr11ew",xlarge:"_1qxj1ibb _1qxj1ib1 fyvr11mv fyvr11es fyvr11gc fyvr11fk fyvr11fc",large:"_1qxj1ibc _1qxj1ib2 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8",medium:"_1qxj1ibd _1qxj1ib3 fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc",normal:"_1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",small:"_1qxj1ibf _1qxj1ib5 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4",xsmall:"_1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc",code:"_1qxj1ibh _1qxj1ib7 fyvr11mw fyvr11eg fyvr11g0 fyvr11fk fyvr11f0"},ellipsis:{true:"_1qxj1ibi _1qxj1ib8 fyvr11ls fyvr11m8 fyvr11n9 fyvr11mx"},italic:{true:"_1qxj1ibj"},underline:{true:"_1qxj1ibk"},uppercase:{true:"_1qxj1ibl"},capitalize:{true:"_1qxj1ibm"},hidden:{true:"_1qxj1ibn"}},defaultVariants:{},compoundVariants:[]});const Tt=m.forwardRef((t,e)=>{const{as:r="span",variant:n="inherit",className:s,hidden:i,italic:o,underline:a,children:c,ellipsis:l,uppercase:u,capitalize:f,...d}=t,h=DG[n];return E.jsx(me,{as:r,className:Mr(s,ZG({hidden:i,ellipsis:l,italic:o,underline:a,uppercase:u,capitalize:f})),ref:e,...h,...d,children:c})});var eq=At({defaultClassName:"_140wn8ni _140wn8n0 fyvr11ls fyvr11m8 fyvr11n9 fyvr11ko fyvr12o1 fyvr11n2 fyvr11h0 _4efw240",variantClassNames:{variant:{base:"_140wn8nj _140wn8n1 fyvr11od fyvr12s1",ghost:"_140wn8nk _140wn8n2 fyvr11od fyvr12s1",feature:"_140wn8nl _140wn8n3 fyvr11pj fyvr12od",primary:"_140wn8nm _140wn8n4 fyvr11pd fyvr12od",glass:"_140wn8nn _140wn8n5 fyvr11tv fyvr12s1",emphasis:"_140wn8no _140wn8n6 fyvr11u1 fyvr12s1",raised:"_140wn8np _140wn8n7 fyvr11tp fyvr12s1",danger:"_140wn8nq _140wn8n8 fyvr11op fyvr12od",text:"_140wn8nr _1qxj1ib9 _1qxj1ibf _1qxj1ib5 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 _140wn8n9 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr11od fyvr12sd"},shape:{circle:"_140wn8ns _140wn8na fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",square:"_140wn8nt _140wn8nb fyvr11d0 fyvr11do fyvr11bo fyvr11cc"},disabled:{true:"_140wn8nu _140wn8nc fyvr12v1 fyvr12vp",false:"_140wn8nv _140wn8nd fyvr12v7 fyvr12w1 fyvr12vz"},size:{xs:"_140wn8nw _1qxj1ib9 _1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc _140wn8ne fyvr1ws fyvr1yo",sm:"_140wn8nx _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _140wn8nf fyvr1ww fyvr1ys",md:"_140wn8ny _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _140wn8ng fyvr1x0 fyvr1yw",lg:"_140wn8nz _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _140wn8nh fyvr1x0 fyvr1yw"},iconOnly:{true:"_140wn8n10"},hasLeftIcon:{true:"_140wn8n11"},hasRightIcon:{true:"_140wn8n12"},activeOutline:{light:"_140wn8n13",bold:"_140wn8n14"}},defaultVariants:{},compoundVariants:[[{iconOnly:!0,size:"xs"},"_140wn8n15"],[{iconOnly:!0,size:"sm"},"_140wn8n16"],[{iconOnly:!0,size:"md"},"_140wn8n17"],[{iconOnly:!0,size:"lg"},"_140wn8n18"],[{iconOnly:!1,hasLeftIcon:!0,size:"xs"},"_140wn8n19"],[{iconOnly:!1,hasLeftIcon:!0,size:"sm"},"_140wn8n1a"],[{iconOnly:!1,hasLeftIcon:!0,size:"md"},"_140wn8n1b"],[{iconOnly:!1,hasRightIcon:!0,size:"xs"},"_140wn8n1c"],[{iconOnly:!1,hasRightIcon:!0,size:"sm"},"_140wn8n1d"],[{iconOnly:!1,hasRightIcon:!0,size:"md"},"_140wn8n1e"]]});const We=m.forwardRef((t,e)=>{const{as:r="button",activeOutline:n,className:s,disabled:i=!1,display:o="inline-flex",fontWeight:a="bold",pending:c=!1,label:l,leftIcon:u,rightIcon:f,size:d="md",variant:h="glass",width:y="fit",shape:p="circle",type:b="button",...v}=t,g=u!==void 0&&l!==void 0,x=f!==void 0&&l!==void 0,k=u!==void 0&&l===void 0,S=d==="xs"?"xs":"sm";return E.jsx(me,{as:r,className:Mr(s,eq({activeOutline:n,disabled:i||c,hasLeftIcon:g,hasRightIcon:x,iconOnly:k,size:h==="text"?void 0:d,shape:h==="text"?void 0:p,variant:h})),disabled:i||c,display:o,fontWeight:a,ref:e,type:b,width:y,...v,children:k?E.jsx(u,{size:S}):E.jsxs(me,{width:"full",height:"full",justifyContent:"space-between",alignItems:"center",gap:d==="xs"?"1":"2",children:[E.jsxs(me,{justifyContent:"flex-start",alignItems:"center",gap:d==="xs"?"1":"2",children:[u&&E.jsx(u,{size:S}),E.jsx(Tt,{children:l})]}),f&&E.jsx(f,{size:S})]})})});var tq=At({defaultClassName:"rhmai63",variantClassNames:{clickable:{true:"rhmai64 rhmai60 fyvr11a4 fyvr11ag fyvr11as fyvr11b4 fyvr12vz fyvr12v7 _4efw240"},disabled:{true:"rhmai65"},outlined:{true:"rhmai66 rhmai61 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr12n7 fyvr12fv fyvr1217 fyvr128j fyvr12nj fyvr12g7 fyvr121j fyvr128v"},blur:{true:"rhmai67 rhmai62 fyvr11ms"}},defaultVariants:{},compoundVariants:[]});const rq=m.forwardRef((t,e)=>{const{className:r,children:n,clickable:s,outlined:i,disabled:o,blur:a,width:c="full",...l}=t;return E.jsx(me,{className:Mr(r,tq({clickable:s,outlined:i,disabled:o,blur:a})),background:i?"transparent":"backgroundSecondary",overflow:"hidden",borderRadius:"md",padding:"4",width:c,ref:e,...l,children:n})});function nq(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function lg(...t){return e=>t.forEach(r=>nq(r,e))}function $e(...t){return m.useCallback(lg(...t),t)}function sq(t,e){const r=m.createContext(e);function n(i){const{children:o,...a}=i,c=m.useMemo(()=>a,Object.values(a));return E.jsx(r.Provider,{value:c,children:o})}function s(i){const o=m.useContext(r);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${i}\` must be used within \`${t}\``)}return n.displayName=t+"Provider",[n,s]}function Dr(t,e=[]){let r=[];function n(i,o){const a=m.createContext(o),c=r.length;r=[...r,o];function l(f){const{scope:d,children:h,...y}=f,p=(d==null?void 0:d[t][c])||a,b=m.useMemo(()=>y,Object.values(y));return E.jsx(p.Provider,{value:b,children:h})}function u(f,d){const h=(d==null?void 0:d[t][c])||a,y=m.useContext(h);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const s=()=>{const i=r.map(o=>m.createContext(o));return function(a){const c=(a==null?void 0:a[t])||i;return m.useMemo(()=>({[`__scope${t}`]:{...a,[t]:c}}),[a,c])}};return s.scopeName=t,[n,iq(s,...e)]}function iq(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=n.reduce((a,{useScope:c,scopeName:l})=>{const f=c(i)[`__scope${l}`];return{...a,...f}},{});return m.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}function ce(t,e,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}function _r(t){const e=m.useRef(t);return m.useEffect(()=>{e.current=t}),m.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function is({prop:t,defaultProp:e,onChange:r=()=>{}}){const[n,s]=oq({defaultProp:e,onChange:r}),i=t!==void 0,o=i?t:n,a=_r(r),c=m.useCallback(l=>{if(i){const f=typeof l=="function"?l(t):l;f!==t&&a(f)}else s(l)},[i,t,s,a]);return[o,c]}function oq({defaultProp:t,onChange:e}){const r=m.useState(t),[n]=r,s=m.useRef(n),i=_r(e);return m.useEffect(()=>{s.current!==n&&(i(n),s.current=n)},[n,s,i]),r}function ug(t){const e=m.useRef({value:t,previous:t});return m.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var xr=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{};function fg(t){const[e,r]=m.useState(void 0);return xr(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;o=l.inlineSize,a=l.blockSize}else o=t.offsetWidth,a=t.offsetHeight;r({width:o,height:a})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}function aq(t,e){return m.useReducer((r,n)=>e[r][n]??r,t)}var Xr=t=>{const{present:e,children:r}=t,n=cq(e),s=typeof r=="function"?r({present:n.isPresent}):m.Children.only(r),i=$e(n.ref,lq(s));return typeof r=="function"||n.isPresent?m.cloneElement(s,{ref:i}):null};Xr.displayName="Presence";function cq(t){const[e,r]=m.useState(),n=m.useRef({}),s=m.useRef(t),i=m.useRef("none"),o=t?"mounted":"unmounted",[a,c]=aq(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const l=Z1(n.current);i.current=a==="mounted"?l:"none"},[a]),xr(()=>{const l=n.current,u=s.current;if(u!==t){const d=i.current,h=Z1(l);t?c("MOUNT"):h==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&d!==h?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,c]),xr(()=>{if(e){const l=f=>{const h=Z1(n.current).includes(f.animationName);f.target===e&&h&&Fa.flushSync(()=>c("ANIMATION_END"))},u=f=>{f.target===e&&(i.current=Z1(n.current))};return e.addEventListener("animationstart",u),e.addEventListener("animationcancel",l),e.addEventListener("animationend",l),()=>{e.removeEventListener("animationstart",u),e.removeEventListener("animationcancel",l),e.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(l=>{l&&(n.current=getComputedStyle(l)),r(l)},[])}}function Z1(t){return(t==null?void 0:t.animationName)||"none"}function lq(t){var e,r;let n=(e=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:e.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:r.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var ul=m.forwardRef((t,e)=>{const{children:r,...n}=t,s=m.Children.toArray(r),i=s.find(uq);if(i){const o=i.props.children,a=s.map(c=>c===i?m.Children.count(o)>1?m.Children.only(null):m.isValidElement(o)?o.props.children:null:c);return E.jsx(cw,{...n,ref:e,children:m.isValidElement(o)?m.cloneElement(o,void 0,a):null})}return E.jsx(cw,{...n,ref:e,children:r})});ul.displayName="Slot";var cw=m.forwardRef((t,e)=>{const{children:r,...n}=t;if(m.isValidElement(r)){const s=dq(r);return m.cloneElement(r,{...fq(n,r.props),ref:e?lg(e,s):s})}return m.Children.count(r)>1?m.Children.only(null):null});cw.displayName="SlotClone";var yI=({children:t})=>E.jsx(E.Fragment,{children:t});function uq(t){return m.isValidElement(t)&&t.type===yI}function fq(t,e){const r={...e};for(const n in e){const s=t[n],i=e[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...a)=>{i(...a),s(...a)}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...t,...r}}function dq(t){var e,r;let n=(e=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:e.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:r.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var hq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ae=hq.reduce((t,e)=>{const r=m.forwardRef((n,s)=>{const{asChild:i,...o}=n,a=i?ul:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(a,{...o,ref:s})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function yE(t,e){t&&Fa.flushSync(()=>t.dispatchEvent(e))}var vE="Checkbox",[pq,Mde]=Dr(vE),[yq,vq]=pq(vE),vI=m.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:s,defaultChecked:i,required:o,disabled:a,value:c="on",onCheckedChange:l,...u}=t,[f,d]=m.useState(null),h=$e(e,x=>d(x)),y=m.useRef(!1),p=f?!!f.closest("form"):!0,[b=!1,v]=is({prop:s,defaultProp:i,onChange:l}),g=m.useRef(b);return m.useEffect(()=>{const x=f==null?void 0:f.form;if(x){const k=()=>v(g.current);return x.addEventListener("reset",k),()=>x.removeEventListener("reset",k)}},[f,v]),E.jsxs(yq,{scope:r,state:b,disabled:a,children:[E.jsx(Ae.button,{type:"button",role:"checkbox","aria-checked":Xc(b)?"mixed":b,"aria-required":o,"data-state":xI(b),"data-disabled":a?"":void 0,disabled:a,value:c,...u,ref:h,onKeyDown:ce(t.onKeyDown,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:ce(t.onClick,x=>{v(k=>Xc(k)?!0:!k),p&&(y.current=x.isPropagationStopped(),y.current||x.stopPropagation())})}),p&&E.jsx(gq,{control:f,bubbles:!y.current,name:n,value:c,checked:b,required:o,disabled:a,style:{transform:"translateX(-100%)"}})]})});vI.displayName=vE;var gI="CheckboxIndicator",mI=m.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...s}=t,i=vq(gI,r);return E.jsx(Xr,{present:n||Xc(i.state)||i.state===!0,children:E.jsx(Ae.span,{"data-state":xI(i.state),"data-disabled":i.disabled?"":void 0,...s,ref:e,style:{pointerEvents:"none",...t.style}})})});mI.displayName=gI;var gq=t=>{const{control:e,checked:r,bubbles:n=!0,...s}=t,i=m.useRef(null),o=ug(r),a=fg(e);return m.useEffect(()=>{const c=i.current,l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"checked").set;if(o!==r&&f){const d=new Event("click",{bubbles:n});c.indeterminate=Xc(r),f.call(c,Xc(r)?!1:r),c.dispatchEvent(d)}},[o,r,n]),E.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:Xc(r)?!1:r,...s,tabIndex:-1,ref:i,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Xc(t){return t==="indeterminate"}function xI(t){return Xc(t)?"indeterminate":t?"checked":"unchecked"}var mq=vI,xq=mI,bq=At({defaultClassName:"_43lu9r4",variantClassNames:{labelLocation:{top:"_43lu9r5 _43lu9r0 fyvr11kw fyvr11i4 fyvr118k fyvr11h0",left:"_43lu9r6 _43lu9r1 fyvr11ko fyvr11ic fyvr118k fyvr11h0",right:"_43lu9r7 _43lu9r2 fyvr11ko fyvr11ic fyvr118k fyvr11h0",hidden:"_43lu9r8 _43lu9r3 fyvr1188 fyvr11h0"}},defaultVariants:{},compoundVariants:[]});const fd=t=>{const{id:e,label:r,description:n,labelLocation:s="top",children:i,...o}=t,a=()=>r||n?E.jsxs(me,{flexDirection:"column",gap:"0.5",children:[r&&E.jsx(Tt,{variant:"small",color:"text100",hidden:s==="hidden",children:r}),n&&E.jsx(Tt,{variant:"small",color:"text50",hidden:s==="hidden",children:n})]}):null;return E.jsxs(me,{as:"label",className:bq({labelLocation:s}),htmlFor:e,...o,children:[["left","top","hidden"].includes(s)&&a(),i,s==="right"&&a()]})};var dd=At({defaultClassName:"_1dizidw0",variantClassNames:{size:{xs:"_1dizidw1",sm:"_1dizidw2",md:"_1dizidw3",lg:"_1dizidw4",xl:"_1dizidw5"}},defaultVariants:{},compoundVariants:[]});const wq=t=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:E.jsx("path",{stroke:"currentColor",strokeWidth:1.5,d:"m4.304 10.232 4.263 4.79 7.13-11.238"})}),bI=({size:t="sm",...e})=>E.jsx(me,{as:wq,className:dd({size:t}),...e}),Cq=t=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m3.888 7.53 1.06-1.06 5.47 5.47 5.47-5.47 1.06 1.06-6.53 6.53-6.53-6.53Z",clipRule:"evenodd"})}),wI=({size:t="sm",...e})=>E.jsx(me,{as:Cq,className:dd({size:t}),...e}),Eq=t=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m10.418 11.06 4.47 4.47 1.06-1.06L11.48 10l4.47-4.47-1.06-1.06-4.47 4.47-4.47-4.47-1.06 1.06L9.357 10l-4.47 4.47 1.06 1.06 4.47-4.47Z",clipRule:"evenodd"})}),gE=({size:t="sm",...e})=>E.jsx(me,{as:Eq,className:dd({size:t}),...e}),kq=t=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.608 6.75h-5.19v-1.5h7.75V13h-1.5V7.81l-7.72 7.72-1.06-1.06 7.72-7.72Z",clipRule:"evenodd"})}),Aq=({size:t="sm",...e})=>E.jsx(me,{as:kq,className:dd({size:t}),...e}),Sq=t=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.918 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-.677 4.383a5.5 5.5 0 1 1 1.06-1.06l2.648 2.647-1.061 1.06-2.647-2.647Z",clipRule:"evenodd"})}),Tq=({size:t="sm",...e})=>E.jsx(me,{as:Sq,className:dd({size:t}),...e}),Pq=t=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m12.28 2.856-6.71 8.887h4.134l-1.424 6.2 6.887-8.71h-4.322l1.435-6.377Z",clipRule:"evenodd"})}),Iq=({size:t="sm",...e})=>E.jsx(me,{as:Pq,className:dd({size:t}),...e});var Oq=At({defaultClassName:"_1c9x66f1 _1c9x66f0 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12nd fyvr12g1 fyvr121d fyvr128p fyvr12nj fyvr12g7 fyvr121j fyvr128v fyvr11h0 fyvr11ko fyvr11jg fyvr11od fyvr12w1 fyvr12vz fyvr12vr fyvr12v7 fyvr12v3 _4efw240",variantClassNames:{size:{sm:"_1c9x66f2",lg:"_1c9x66f3"}},defaultVariants:{},compoundVariants:[]}),Rq="_1c9x66f4 fyvr12s1 fyvr11h0 fyvr11ko fyvr11jg fyvr128 fyvr15o";const Nq=({size:t="sm"})=>E.jsx(xq,{className:Rq,children:E.jsx(bI,{size:t==="lg"?"sm":"xs"})});m.forwardRef((t,e)=>{const{disabled:r=!1,id:n,name:s,label:i="",labelLocation:o="left",size:a="sm",...c}=t;return E.jsx(fd,{disabled:r,display:"flex",id:n??s,label:i,labelLocation:o,whiteSpace:"nowrap",children:E.jsx(mq,{className:Oq({size:a}),disabled:r,id:n??s,name:s,ref:e,...c,children:E.jsx(Nq,{size:a})})})});Wr.createContext(null);var _q=sU.useId||(()=>{}),Mq=0;function es(t){const[e,r]=m.useState(_q());return xr(()=>{t||r(n=>n??String(Mq++))},[t]),t||(e?`radix-${e}`:"")}var mE="Collapsible",[Dq,Dde]=Dr(mE),[Bq,xE]=Dq(mE),CI=m.forwardRef((t,e)=>{const{__scopeCollapsible:r,open:n,defaultOpen:s,disabled:i,onOpenChange:o,...a}=t,[c=!1,l]=is({prop:n,defaultProp:s,onChange:o});return E.jsx(Bq,{scope:r,disabled:i,contentId:es(),open:c,onOpenToggle:m.useCallback(()=>l(u=>!u),[l]),children:E.jsx(Ae.div,{"data-state":wE(c),"data-disabled":i?"":void 0,...a,ref:e})})});CI.displayName=mE;var EI="CollapsibleTrigger",kI=m.forwardRef((t,e)=>{const{__scopeCollapsible:r,...n}=t,s=xE(EI,r);return E.jsx(Ae.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":wE(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:e,onClick:ce(t.onClick,s.onOpenToggle)})});kI.displayName=EI;var bE="CollapsibleContent",AI=m.forwardRef((t,e)=>{const{forceMount:r,...n}=t,s=xE(bE,t.__scopeCollapsible);return E.jsx(Xr,{present:r||s.open,children:({present:i})=>E.jsx(Lq,{...n,ref:e,present:i})})});AI.displayName=bE;var Lq=m.forwardRef((t,e)=>{const{__scopeCollapsible:r,present:n,children:s,...i}=t,o=xE(bE,r),[a,c]=m.useState(n),l=m.useRef(null),u=$e(e,l),f=m.useRef(0),d=f.current,h=m.useRef(0),y=h.current,p=o.open||a,b=m.useRef(p),v=m.useRef();return m.useEffect(()=>{const g=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(g)},[]),xr(()=>{const g=l.current;if(g){v.current=v.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const x=g.getBoundingClientRect();f.current=x.height,h.current=x.width,b.current||(g.style.transitionDuration=v.current.transitionDuration,g.style.animationName=v.current.animationName),c(n)}},[o.open,n]),E.jsx(Ae.div,{"data-state":wE(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!p,...i,ref:u,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...t.style},children:p&&s})});function wE(t){return t?"open":"closed"}var jq=CI,Fq=kI,Uq=AI,fS="64px",$q="_4j62fl0",Wq="_4j62fl2 _4j62fl1 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11h0 fyvr11ko fyvr11od fyvr128 fyvr12v7 fyvr11n4 _4efw240",Vq="_4j62fl4 _4j62fl3 fyvr1ww fyvr1ys fyvr1so fyvr1v0 fyvr128",Hq="_4j62fl5";const zq=t=>{const{className:e,children:r,defaultOpen:n,open:s,onOpenChange:i,label:o,...a}=t,[c,l]=m.useState(n),u=s??c,f=h=>{s===void 0&&l(h)},d=h=>{f(h),i==null||i(h)};return E.jsx(jq,{open:u,defaultOpen:n,onOpenChange:d,asChild:!0,children:E.jsxs(me,{as:Su.div,className:Mr(e,$q),initial:{height:u?"auto":fS},animate:{height:u?"auto":fS},transition:{ease:"easeOut",duration:.3},borderRadius:"md",background:"backgroundSecondary",position:"relative",overflow:"hidden",width:"full",...a,children:[E.jsxs(Fq,{className:Wq,children:[E.jsx(Tt,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:o}),E.jsx(me,{as:Su.div,position:"absolute",right:"0",marginRight:"4",initial:{rotate:u?180:0},animate:{rotate:u?180:0},transition:{ease:"linear",duration:.1},children:E.jsx(wI,{className:Hq,color:"text50"})})]}),E.jsx(lI,{children:u&&E.jsx(Uq,{className:Vq,asChild:!0,forceMount:!0,children:E.jsx(Su.div,{initial:{opacity:u?1:0},animate:{opacity:1},exit:{opacity:0},transition:{ease:"easeOut",duration:.3},children:r})})})]})})};function dg(t){const e=t+"CollectionProvider",[r,n]=Dr(e),[s,i]=r(e,{collectionRef:{current:null},itemMap:new Map}),o=h=>{const{scope:y,children:p}=h,b=Wr.useRef(null),v=Wr.useRef(new Map).current;return E.jsx(s,{scope:y,itemMap:v,collectionRef:b,children:p})};o.displayName=e;const a=t+"CollectionSlot",c=Wr.forwardRef((h,y)=>{const{scope:p,children:b}=h,v=i(a,p),g=$e(y,v.collectionRef);return E.jsx(ul,{ref:g,children:b})});c.displayName=a;const l=t+"CollectionItemSlot",u="data-radix-collection-item",f=Wr.forwardRef((h,y)=>{const{scope:p,children:b,...v}=h,g=Wr.useRef(null),x=$e(y,g),k=i(l,p);return Wr.useEffect(()=>(k.itemMap.set(g,{ref:g,...v}),()=>void k.itemMap.delete(g))),E.jsx(ul,{[u]:"",ref:x,children:b})});f.displayName=l;function d(h){const y=i(t+"CollectionConsumer",h);return Wr.useCallback(()=>{const b=y.collectionRef.current;if(!b)return[];const v=Array.from(b.querySelectorAll(`[${u}]`));return Array.from(y.itemMap.values()).sort((k,S)=>v.indexOf(k.ref.current)-v.indexOf(S.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:o,Slot:c,ItemSlot:f},d,n]}var Gq=m.createContext(void 0);function c1(t){const e=m.useContext(Gq);return t||e||"ltr"}function qq(t,e=globalThis==null?void 0:globalThis.document){const r=_r(t);m.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var Kq="DismissableLayer",lw="dismissableLayer.update",Qq="dismissableLayer.pointerDownOutside",Jq="dismissableLayer.focusOutside",dS,SI=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hd=m.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=t,l=m.useContext(SI),[u,f]=m.useState(null),d=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=m.useState({}),y=$e(e,R=>f(R)),p=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(b),g=u?p.indexOf(u):-1,x=l.layersWithOutsidePointerEventsDisabled.size>0,k=g>=v,S=Xq(R=>{const _=R.target,V=[...l.branches].some(F=>F.contains(_));!k||V||(s==null||s(R),o==null||o(R),R.defaultPrevented||a==null||a())},d),I=Zq(R=>{const _=R.target;[...l.branches].some(F=>F.contains(_))||(i==null||i(R),o==null||o(R),R.defaultPrevented||a==null||a())},d);return qq(R=>{g===l.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},d),m.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(dS=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),hS(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=dS)}},[u,d,r,l]),m.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),hS())},[u,l]),m.useEffect(()=>{const R=()=>h({});return document.addEventListener(lw,R),()=>document.removeEventListener(lw,R)},[]),E.jsx(Ae.div,{...c,ref:y,style:{pointerEvents:x?k?"auto":"none":void 0,...t.style},onFocusCapture:ce(t.onFocusCapture,I.onFocusCapture),onBlurCapture:ce(t.onBlurCapture,I.onBlurCapture),onPointerDownCapture:ce(t.onPointerDownCapture,S.onPointerDownCapture)})});hd.displayName=Kq;var Yq="DismissableLayerBranch",TI=m.forwardRef((t,e)=>{const r=m.useContext(SI),n=m.useRef(null),s=$e(e,n);return m.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),E.jsx(Ae.div,{...t,ref:s})});TI.displayName=Yq;function Xq(t,e=globalThis==null?void 0:globalThis.document){const r=_r(t),n=m.useRef(!1),s=m.useRef(()=>{});return m.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let c=function(){PI(Qq,r,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=c,e.addEventListener("click",s.current,{once:!0})):c()}else e.removeEventListener("click",s.current);n.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",s.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function Zq(t,e=globalThis==null?void 0:globalThis.document){const r=_r(t),n=m.useRef(!1);return m.useEffect(()=>{const s=i=>{i.target&&!n.current&&PI(Jq,r,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function hS(){const t=new CustomEvent(lw);document.dispatchEvent(t)}function PI(t,e,r,{discrete:n}){const s=r.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&s.addEventListener(t,e,{once:!0}),n?yE(s,i):s.dispatchEvent(i)}var eK=hd,tK=TI,ix=0;function CE(){m.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??pS()),document.body.insertAdjacentElement("beforeend",t[1]??pS()),ix++,()=>{ix===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),ix--}},[])}function pS(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",t}var ox="focusScope.autoFocusOnMount",ax="focusScope.autoFocusOnUnmount",yS={bubbles:!1,cancelable:!0},rK="FocusScope",hg=m.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=t,[a,c]=m.useState(null),l=_r(s),u=_r(i),f=m.useRef(null),d=$e(e,p=>c(p)),h=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(n){let p=function(x){if(h.paused||!a)return;const k=x.target;a.contains(k)?f.current=k:Oo(f.current,{select:!0})},b=function(x){if(h.paused||!a)return;const k=x.relatedTarget;k!==null&&(a.contains(k)||Oo(f.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Oo(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",b);const g=new MutationObserver(v);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",b),g.disconnect()}}},[n,a,h.paused]),m.useEffect(()=>{if(a){gS.add(h);const p=document.activeElement;if(!a.contains(p)){const v=new CustomEvent(ox,yS);a.addEventListener(ox,l),a.dispatchEvent(v),v.defaultPrevented||(nK(cK(II(a)),{select:!0}),document.activeElement===p&&Oo(a))}return()=>{a.removeEventListener(ox,l),setTimeout(()=>{const v=new CustomEvent(ax,yS);a.addEventListener(ax,u),a.dispatchEvent(v),v.defaultPrevented||Oo(p??document.body,{select:!0}),a.removeEventListener(ax,u),gS.remove(h)},0)}}},[a,l,u,h]);const y=m.useCallback(p=>{if(!r&&!n||h.paused)return;const b=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(b&&v){const g=p.currentTarget,[x,k]=sK(g);x&&k?!p.shiftKey&&v===k?(p.preventDefault(),r&&Oo(x,{select:!0})):p.shiftKey&&v===x&&(p.preventDefault(),r&&Oo(k,{select:!0})):v===g&&p.preventDefault()}},[r,n,h.paused]);return E.jsx(Ae.div,{tabIndex:-1,...o,ref:d,onKeyDown:y})});hg.displayName=rK;function nK(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(Oo(n,{select:e}),document.activeElement!==r)return}function sK(t){const e=II(t),r=vS(e,t),n=vS(e.reverse(),t);return[r,n]}function II(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function vS(t,e){for(const r of t)if(!iK(r,{upTo:e}))return r}function iK(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function oK(t){return t instanceof HTMLInputElement&&"select"in t}function Oo(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&oK(t)&&e&&t.select()}}var gS=aK();function aK(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=mS(t,e),t.unshift(e)},remove(e){var r;t=mS(t,e),(r=t[0])==null||r.resume()}}}function mS(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function cK(t){return t.filter(e=>e.tagName!=="A")}const lK=["top","right","bottom","left"],ai=Math.min,kn=Math.max,qy=Math.round,ep=Math.floor,Ia=t=>({x:t,y:t}),uK={left:"right",right:"left",bottom:"top",top:"bottom"},fK={start:"end",end:"start"};function uw(t,e,r){return kn(t,ai(e,r))}function oo(t,e){return typeof t=="function"?t(e):t}function ao(t){return t.split("-")[0]}function pd(t){return t.split("-")[1]}function EE(t){return t==="x"?"y":"x"}function kE(t){return t==="y"?"height":"width"}function Oa(t){return["top","bottom"].includes(ao(t))?"y":"x"}function AE(t){return EE(Oa(t))}function dK(t,e,r){r===void 0&&(r=!1);const n=pd(t),s=AE(t),i=kE(s);let o=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=Ky(o)),[o,Ky(o)]}function hK(t){const e=Ky(t);return[fw(t),e,fw(e)]}function fw(t){return t.replace(/start|end/g,e=>fK[e])}function pK(t,e,r){const n=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return r?e?s:n:e?n:s;case"left":case"right":return e?i:o;default:return[]}}function yK(t,e,r,n){const s=pd(t);let i=pK(ao(t),r==="start",n);return s&&(i=i.map(o=>o+"-"+s),e&&(i=i.concat(i.map(fw)))),i}function Ky(t){return t.replace(/left|right|bottom|top/g,e=>uK[e])}function vK(t){return{top:0,right:0,bottom:0,left:0,...t}}function OI(t){return typeof t!="number"?vK(t):{top:t,right:t,bottom:t,left:t}}function Qy(t){const{x:e,y:r,width:n,height:s}=t;return{width:n,height:s,top:r,left:e,right:e+n,bottom:r+s,x:e,y:r}}function xS(t,e,r){let{reference:n,floating:s}=t;const i=Oa(e),o=AE(e),a=kE(o),c=ao(e),l=i==="y",u=n.x+n.width/2-s.width/2,f=n.y+n.height/2-s.height/2,d=n[a]/2-s[a]/2;let h;switch(c){case"top":h={x:u,y:n.y-s.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-s.width,y:f};break;default:h={x:n.x,y:n.y}}switch(pd(e)){case"start":h[o]-=d*(r&&l?-1:1);break;case"end":h[o]+=d*(r&&l?-1:1);break}return h}const gK=async(t,e,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:o}=r,a=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(e));let l=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:u,y:f}=xS(l,n,c),d=n,h={},y=0;for(let p=0;p({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:s,rects:i,platform:o,elements:a,middlewareData:c}=e,{element:l,padding:u=0}=oo(t,e)||{};if(l==null)return{};const f=OI(u),d={x:r,y:n},h=AE(s),y=kE(h),p=await o.getDimensions(l),b=h==="y",v=b?"top":"left",g=b?"bottom":"right",x=b?"clientHeight":"clientWidth",k=i.reference[y]+i.reference[h]-d[h]-i.floating[y],S=d[h]-i.reference[h],I=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let R=I?I[x]:0;(!R||!await(o.isElement==null?void 0:o.isElement(I)))&&(R=a.floating[x]||i.floating[y]);const _=k/2-S/2,V=R/2-p[y]/2-1,F=ai(f[v],V),X=ai(f[g],V),re=F,le=R-p[y]-X,ee=R/2-p[y]/2+_,D=uw(re,ee,le),G=!c.arrow&&pd(s)!=null&&ee!==D&&i.reference[y]/2-(eeee<=0)){var X,re;const ee=(((X=i.flip)==null?void 0:X.index)||0)+1,D=R[ee];if(D)return{data:{index:ee,overflows:F},reset:{placement:D}};let G=(re=F.filter(Z=>Z.overflows[0]<=0).sort((Z,C)=>Z.overflows[1]-C.overflows[1])[0])==null?void 0:re.placement;if(!G)switch(h){case"bestFit":{var le;const Z=(le=F.filter(C=>{if(I){const A=Oa(C.placement);return A===g||A==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(A=>A>0).reduce((A,O)=>A+O,0)]).sort((C,A)=>C[1]-A[1])[0])==null?void 0:le[0];Z&&(G=Z);break}case"initialPlacement":G=a;break}if(s!==G)return{reset:{placement:G}}}return{}}}};function bS(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function wS(t){return lK.some(e=>t[e]>=0)}const bK=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...s}=oo(t,e);switch(n){case"referenceHidden":{const i=await u0(e,{...s,elementContext:"reference"}),o=bS(i,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:wS(o)}}}case"escaped":{const i=await u0(e,{...s,altBoundary:!0}),o=bS(i,r.floating);return{data:{escapedOffsets:o,escaped:wS(o)}}}default:return{}}}}};async function wK(t,e){const{placement:r,platform:n,elements:s}=t,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),o=ao(r),a=pd(r),c=Oa(r)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,f=oo(e,t);let{mainAxis:d,crossAxis:h,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof y=="number"&&(h=a==="end"?y*-1:y),c?{x:h*u,y:d*l}:{x:d*l,y:h*u}}const CK=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:s,y:i,placement:o,middlewareData:a}=e,c=await wK(e,t);return o===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:o}}}}},EK=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:s}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:b=>{let{x:v,y:g}=b;return{x:v,y:g}}},...c}=oo(t,e),l={x:r,y:n},u=await u0(e,c),f=Oa(ao(s)),d=EE(f);let h=l[d],y=l[f];if(i){const b=d==="y"?"top":"left",v=d==="y"?"bottom":"right",g=h+u[b],x=h-u[v];h=uw(g,h,x)}if(o){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",g=y+u[b],x=y-u[v];y=uw(g,y,x)}const p=a.fn({...e,[d]:h,[f]:y});return{...p,data:{x:p.x-r,y:p.y-n}}}}},kK=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:s,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=oo(t,e),u={x:r,y:n},f=Oa(s),d=EE(f);let h=u[d],y=u[f];const p=oo(a,e),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const x=d==="y"?"height":"width",k=i.reference[d]-i.floating[x]+b.mainAxis,S=i.reference[d]+i.reference[x]-b.mainAxis;hS&&(h=S)}if(l){var v,g;const x=d==="y"?"width":"height",k=["top","left"].includes(ao(s)),S=i.reference[f]-i.floating[x]+(k&&((v=o.offset)==null?void 0:v[f])||0)+(k?0:b.crossAxis),I=i.reference[f]+i.reference[x]+(k?0:((g=o.offset)==null?void 0:g[f])||0)-(k?b.crossAxis:0);yI&&(y=I)}return{[d]:h,[f]:y}}}},AK=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:n,platform:s,elements:i}=e,{apply:o=()=>{},...a}=oo(t,e),c=await u0(e,a),l=ao(r),u=pd(r),f=Oa(r)==="y",{width:d,height:h}=n.floating;let y,p;l==="top"||l==="bottom"?(y=l,p=u===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(p=l,y=u==="end"?"top":"bottom");const b=h-c.top-c.bottom,v=d-c.left-c.right,g=ai(h-c[y],b),x=ai(d-c[p],v),k=!e.middlewareData.shift;let S=g,I=x;if(f?I=u||k?ai(x,v):v:S=u||k?ai(g,b):b,k&&!u){const _=kn(c.left,0),V=kn(c.right,0),F=kn(c.top,0),X=kn(c.bottom,0);f?I=d-2*(_!==0||V!==0?_+V:kn(c.left,c.right)):S=h-2*(F!==0||X!==0?F+X:kn(c.top,c.bottom))}await o({...e,availableWidth:I,availableHeight:S});const R=await s.getDimensions(i.floating);return d!==R.width||h!==R.height?{reset:{rects:!0}}:{}}}};function yd(t){return RI(t)?(t.nodeName||"").toLowerCase():"#document"}function Pn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function po(t){var e;return(e=(RI(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function RI(t){return t instanceof Node||t instanceof Pn(t).Node}function vi(t){return t instanceof Element||t instanceof Pn(t).Element}function gi(t){return t instanceof HTMLElement||t instanceof Pn(t).HTMLElement}function CS(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Pn(t).ShadowRoot}function l1(t){const{overflow:e,overflowX:r,overflowY:n,display:s}=Ms(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(s)}function SK(t){return["table","td","th"].includes(yd(t))}function pg(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function SE(t){const e=TE(),r=Ms(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function TK(t){let e=Ra(t);for(;gi(e)&&!$f(e);){if(pg(e))return null;if(SE(e))return e;e=Ra(e)}return null}function TE(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $f(t){return["html","body","#document"].includes(yd(t))}function Ms(t){return Pn(t).getComputedStyle(t)}function yg(t){return vi(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ra(t){if(yd(t)==="html")return t;const e=t.assignedSlot||t.parentNode||CS(t)&&t.host||po(t);return CS(e)?e.host:e}function NI(t){const e=Ra(t);return $f(e)?t.ownerDocument?t.ownerDocument.body:t.body:gi(e)&&l1(e)?e:NI(e)}function f0(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const s=NI(t),i=s===((n=t.ownerDocument)==null?void 0:n.body),o=Pn(s);return i?e.concat(o,o.visualViewport||[],l1(s)?s:[],o.frameElement&&r?f0(o.frameElement):[]):e.concat(s,f0(s,[],r))}function _I(t){const e=Ms(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const s=gi(t),i=s?t.offsetWidth:r,o=s?t.offsetHeight:n,a=qy(r)!==i||qy(n)!==o;return a&&(r=i,n=o),{width:r,height:n,$:a}}function PE(t){return vi(t)?t:t.contextElement}function Tu(t){const e=PE(t);if(!gi(e))return Ia(1);const r=e.getBoundingClientRect(),{width:n,height:s,$:i}=_I(e);let o=(i?qy(r.width):r.width)/n,a=(i?qy(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const PK=Ia(0);function MI(t){const e=Pn(t);return!TE()||!e.visualViewport?PK:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function IK(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Pn(t)?!1:e}function fl(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),i=PE(t);let o=Ia(1);e&&(n?vi(n)&&(o=Tu(n)):o=Tu(t));const a=IK(i,r,n)?MI(i):Ia(0);let c=(s.left+a.x)/o.x,l=(s.top+a.y)/o.y,u=s.width/o.x,f=s.height/o.y;if(i){const d=Pn(i),h=n&&vi(n)?Pn(n):n;let y=d,p=y.frameElement;for(;p&&n&&h!==y;){const b=Tu(p),v=p.getBoundingClientRect(),g=Ms(p),x=v.left+(p.clientLeft+parseFloat(g.paddingLeft))*b.x,k=v.top+(p.clientTop+parseFloat(g.paddingTop))*b.y;c*=b.x,l*=b.y,u*=b.x,f*=b.y,c+=x,l+=k,y=Pn(p),p=y.frameElement}}return Qy({width:u,height:f,x:c,y:l})}function OK(t){let{elements:e,rect:r,offsetParent:n,strategy:s}=t;const i=s==="fixed",o=po(n),a=e?pg(e.floating):!1;if(n===o||a&&i)return r;let c={scrollLeft:0,scrollTop:0},l=Ia(1);const u=Ia(0),f=gi(n);if((f||!f&&!i)&&((yd(n)!=="body"||l1(o))&&(c=yg(n)),gi(n))){const d=fl(n);l=Tu(n),u.x=d.x+n.clientLeft,u.y=d.y+n.clientTop}return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+u.x,y:r.y*l.y-c.scrollTop*l.y+u.y}}function RK(t){return Array.from(t.getClientRects())}function DI(t){return fl(po(t)).left+yg(t).scrollLeft}function NK(t){const e=po(t),r=yg(t),n=t.ownerDocument.body,s=kn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=kn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+DI(t);const a=-r.scrollTop;return Ms(n).direction==="rtl"&&(o+=kn(e.clientWidth,n.clientWidth)-s),{width:s,height:i,x:o,y:a}}function _K(t,e){const r=Pn(t),n=po(t),s=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,a=0,c=0;if(s){i=s.width,o=s.height;const l=TE();(!l||l&&e==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:i,height:o,x:a,y:c}}function MK(t,e){const r=fl(t,!0,e==="fixed"),n=r.top+t.clientTop,s=r.left+t.clientLeft,i=gi(t)?Tu(t):Ia(1),o=t.clientWidth*i.x,a=t.clientHeight*i.y,c=s*i.x,l=n*i.y;return{width:o,height:a,x:c,y:l}}function ES(t,e,r){let n;if(e==="viewport")n=_K(t,r);else if(e==="document")n=NK(po(t));else if(vi(e))n=MK(e,r);else{const s=MI(t);n={...e,x:e.x-s.x,y:e.y-s.y}}return Qy(n)}function BI(t,e){const r=Ra(t);return r===e||!vi(r)||$f(r)?!1:Ms(r).position==="fixed"||BI(r,e)}function DK(t,e){const r=e.get(t);if(r)return r;let n=f0(t,[],!1).filter(a=>vi(a)&&yd(a)!=="body"),s=null;const i=Ms(t).position==="fixed";let o=i?Ra(t):t;for(;vi(o)&&!$f(o);){const a=Ms(o),c=SE(o);!c&&a.position==="fixed"&&(s=null),(i?!c&&!s:!c&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||l1(o)&&!c&&BI(t,o))?n=n.filter(u=>u!==o):s=a,o=Ra(o)}return e.set(t,n),n}function BK(t){let{element:e,boundary:r,rootBoundary:n,strategy:s}=t;const o=[...r==="clippingAncestors"?pg(e)?[]:DK(e,this._c):[].concat(r),n],a=o[0],c=o.reduce((l,u)=>{const f=ES(e,u,s);return l.top=kn(f.top,l.top),l.right=ai(f.right,l.right),l.bottom=ai(f.bottom,l.bottom),l.left=kn(f.left,l.left),l},ES(e,a,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function LK(t){const{width:e,height:r}=_I(t);return{width:e,height:r}}function jK(t,e,r){const n=gi(e),s=po(e),i=r==="fixed",o=fl(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=Ia(0);if(n||!n&&!i)if((yd(e)!=="body"||l1(s))&&(a=yg(e)),n){const f=fl(e,!0,i,e);c.x=f.x+e.clientLeft,c.y=f.y+e.clientTop}else s&&(c.x=DI(s));const l=o.left+a.scrollLeft-c.x,u=o.top+a.scrollTop-c.y;return{x:l,y:u,width:o.width,height:o.height}}function cx(t){return Ms(t).position==="static"}function kS(t,e){return!gi(t)||Ms(t).position==="fixed"?null:e?e(t):t.offsetParent}function LI(t,e){const r=Pn(t);if(pg(t))return r;if(!gi(t)){let s=Ra(t);for(;s&&!$f(s);){if(vi(s)&&!cx(s))return s;s=Ra(s)}return r}let n=kS(t,e);for(;n&&SK(n)&&cx(n);)n=kS(n,e);return n&&$f(n)&&cx(n)&&!SE(n)?r:n||TK(t)||r}const FK=async function(t){const e=this.getOffsetParent||LI,r=this.getDimensions,n=await r(t.floating);return{reference:jK(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function UK(t){return Ms(t).direction==="rtl"}const $K={convertOffsetParentRelativeRectToViewportRelativeRect:OK,getDocumentElement:po,getClippingRect:BK,getOffsetParent:LI,getElementRects:FK,getClientRects:RK,getDimensions:LK,getScale:Tu,isElement:vi,isRTL:UK};function WK(t,e){let r=null,n;const s=po(t);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:u,width:f,height:d}=t.getBoundingClientRect();if(a||e(),!f||!d)return;const h=ep(u),y=ep(s.clientWidth-(l+f)),p=ep(s.clientHeight-(u+d)),b=ep(l),g={rootMargin:-h+"px "+-y+"px "+-p+"px "+-b+"px",threshold:kn(0,ai(1,c))||1};let x=!0;function k(S){const I=S[0].intersectionRatio;if(I!==c){if(!x)return o();I?o(!1,I):n=setTimeout(()=>{o(!1,1e-7)},1e3)}x=!1}try{r=new IntersectionObserver(k,{...g,root:s.ownerDocument})}catch{r=new IntersectionObserver(k,g)}r.observe(t)}return o(!0),i}function VK(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=PE(t),u=s||i?[...l?f0(l):[],...f0(e)]:[];u.forEach(v=>{s&&v.addEventListener("scroll",r,{passive:!0}),i&&v.addEventListener("resize",r)});const f=l&&a?WK(l,r):null;let d=-1,h=null;o&&(h=new ResizeObserver(v=>{let[g]=v;g&&g.target===l&&h&&(h.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(e)})),r()}),l&&!c&&h.observe(l),h.observe(e));let y,p=c?fl(t):null;c&&b();function b(){const v=fl(t);p&&(v.x!==p.x||v.y!==p.y||v.width!==p.width||v.height!==p.height)&&r(),p=v,y=requestAnimationFrame(b)}return r(),()=>{var v;u.forEach(g=>{s&&g.removeEventListener("scroll",r),i&&g.removeEventListener("resize",r)}),f==null||f(),(v=h)==null||v.disconnect(),h=null,c&&cancelAnimationFrame(y)}}const HK=CK,zK=EK,GK=xK,qK=AK,KK=bK,AS=mK,QK=kK,JK=(t,e,r)=>{const n=new Map,s={platform:$K,...r},i={...s.platform,_c:n};return gK(t,e,{...s,platform:i})};var $p=typeof document<"u"?m.useLayoutEffect:m.useEffect;function Jy(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!Jy(t[n],e[n]))return!1;return!0}if(s=Object.keys(t),r=s.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,s[n]))return!1;for(n=r;n--!==0;){const i=s[n];if(!(i==="_owner"&&t.$$typeof)&&!Jy(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function jI(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function SS(t,e){const r=jI(t);return Math.round(e*r)/r}function TS(t){const e=m.useRef(t);return $p(()=>{e.current=t}),e}function YK(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=t,[u,f]=m.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[d,h]=m.useState(n);Jy(d,n)||h(n);const[y,p]=m.useState(null),[b,v]=m.useState(null),g=m.useCallback(Z=>{Z!==I.current&&(I.current=Z,p(Z))},[]),x=m.useCallback(Z=>{Z!==R.current&&(R.current=Z,v(Z))},[]),k=i||y,S=o||b,I=m.useRef(null),R=m.useRef(null),_=m.useRef(u),V=c!=null,F=TS(c),X=TS(s),re=m.useCallback(()=>{if(!I.current||!R.current)return;const Z={placement:e,strategy:r,middleware:d};X.current&&(Z.platform=X.current),JK(I.current,R.current,Z).then(C=>{const A={...C,isPositioned:!0};le.current&&!Jy(_.current,A)&&(_.current=A,Fa.flushSync(()=>{f(A)}))})},[d,e,r,X]);$p(()=>{l===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,f(Z=>({...Z,isPositioned:!1})))},[l]);const le=m.useRef(!1);$p(()=>(le.current=!0,()=>{le.current=!1}),[]),$p(()=>{if(k&&(I.current=k),S&&(R.current=S),k&&S){if(F.current)return F.current(k,S,re);re()}},[k,S,re,F,V]);const ee=m.useMemo(()=>({reference:I,floating:R,setReference:g,setFloating:x}),[g,x]),D=m.useMemo(()=>({reference:k,floating:S}),[k,S]),G=m.useMemo(()=>{const Z={position:r,left:0,top:0};if(!D.floating)return Z;const C=SS(D.floating,u.x),A=SS(D.floating,u.y);return a?{...Z,transform:"translate("+C+"px, "+A+"px)",...jI(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:C,top:A}},[r,a,D.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:re,refs:ee,elements:D,floatingStyles:G}),[u,re,ee,D,G])}const XK=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:s}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?AS({element:n.current,padding:s}).fn(r):{}:n?AS({element:n,padding:s}).fn(r):{}}}},ZK=(t,e)=>({...HK(t),options:[t,e]}),eQ=(t,e)=>({...zK(t),options:[t,e]}),tQ=(t,e)=>({...QK(t),options:[t,e]}),rQ=(t,e)=>({...GK(t),options:[t,e]}),nQ=(t,e)=>({...qK(t),options:[t,e]}),sQ=(t,e)=>({...KK(t),options:[t,e]}),iQ=(t,e)=>({...XK(t),options:[t,e]});var oQ="Arrow",FI=m.forwardRef((t,e)=>{const{children:r,width:n=10,height:s=5,...i}=t;return E.jsx(Ae.svg,{...i,ref:e,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:E.jsx("polygon",{points:"0,0 30,0 15,10"})})});FI.displayName=oQ;var aQ=FI,IE="Popper",[UI,vd]=Dr(IE),[cQ,$I]=UI(IE),WI=t=>{const{__scopePopper:e,children:r}=t,[n,s]=m.useState(null);return E.jsx(cQ,{scope:e,anchor:n,onAnchorChange:s,children:r})};WI.displayName=IE;var VI="PopperAnchor",HI=m.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...s}=t,i=$I(VI,r),o=m.useRef(null),a=$e(e,o);return m.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:E.jsx(Ae.div,{...s,ref:a})});HI.displayName=VI;var OE="PopperContent",[lQ,uQ]=UI(OE),zI=m.forwardRef((t,e)=>{var r,n,s,i,o,a;const{__scopePopper:c,side:l="bottom",sideOffset:u=0,align:f="center",alignOffset:d=0,arrowPadding:h=0,avoidCollisions:y=!0,collisionBoundary:p=[],collisionPadding:b=0,sticky:v="partial",hideWhenDetached:g=!1,updatePositionStrategy:x="optimized",onPlaced:k,...S}=t,I=$I(OE,c),[R,_]=m.useState(null),V=$e(e,Re=>_(Re)),[F,X]=m.useState(null),re=fg(F),le=(re==null?void 0:re.width)??0,ee=(re==null?void 0:re.height)??0,D=l+(f!=="center"?"-"+f:""),G=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},Z=Array.isArray(p)?p:[p],C=Z.length>0,A={padding:G,boundary:Z.filter(dQ),altBoundary:C},{refs:O,floatingStyles:M,placement:B,isPositioned:W,middlewareData:q}=YK({strategy:"fixed",placement:D,whileElementsMounted:(...Re)=>VK(...Re,{animationFrame:x==="always"}),elements:{reference:I.anchor},middleware:[ZK({mainAxis:u+ee,alignmentAxis:d}),y&&eQ({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?tQ():void 0,...A}),y&&rQ({...A}),nQ({...A,apply:({elements:Re,rects:xt,availableWidth:tn,availableHeight:br})=>{const{width:U,height:se}=xt.reference,ae=Re.floating.style;ae.setProperty("--radix-popper-available-width",`${tn}px`),ae.setProperty("--radix-popper-available-height",`${br}px`),ae.setProperty("--radix-popper-anchor-width",`${U}px`),ae.setProperty("--radix-popper-anchor-height",`${se}px`)}}),F&&iQ({element:F,padding:h}),hQ({arrowWidth:le,arrowHeight:ee}),g&&sQ({strategy:"referenceHidden",...A})]}),[te,J]=KI(B),$=_r(k);xr(()=>{W&&($==null||$())},[W,$]);const K=(r=q.arrow)==null?void 0:r.x,ue=(n=q.arrow)==null?void 0:n.y,de=((s=q.arrow)==null?void 0:s.centerOffset)!==0,[oe,Ce]=m.useState();return xr(()=>{R&&Ce(window.getComputedStyle(R).zIndex)},[R]),E.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:W?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[(i=q.transformOrigin)==null?void 0:i.x,(o=q.transformOrigin)==null?void 0:o.y].join(" "),...((a=q.hide)==null?void 0:a.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:E.jsx(lQ,{scope:c,placedSide:te,onArrowChange:X,arrowX:K,arrowY:ue,shouldHideArrow:de,children:E.jsx(Ae.div,{"data-side":te,"data-align":J,...S,ref:V,style:{...S.style,animation:W?void 0:"none"}})})})});zI.displayName=OE;var GI="PopperArrow",fQ={top:"bottom",right:"left",bottom:"top",left:"right"},qI=m.forwardRef(function(e,r){const{__scopePopper:n,...s}=e,i=uQ(GI,n),o=fQ[i.placedSide];return E.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:E.jsx(aQ,{...s,ref:r,style:{...s.style,display:"block"}})})});qI.displayName=GI;function dQ(t){return t!==null}var hQ=t=>({name:"transformOrigin",options:t,fn(e){var r,n,s;const{placement:i,rects:o,middlewareData:a}=e,l=((r=a.arrow)==null?void 0:r.centerOffset)!==0,u=l?0:t.arrowWidth,f=l?0:t.arrowHeight,[d,h]=KI(i),y={start:"0%",center:"50%",end:"100%"}[h],p=(((n=a.arrow)==null?void 0:n.x)??0)+u/2,b=(((s=a.arrow)==null?void 0:s.y)??0)+f/2;let v="",g="";return d==="bottom"?(v=l?y:`${p}px`,g=`${-f}px`):d==="top"?(v=l?y:`${p}px`,g=`${o.floating.height+f}px`):d==="right"?(v=`${-f}px`,g=l?y:`${b}px`):d==="left"&&(v=`${o.floating.width+f}px`,g=l?y:`${b}px`),{data:{x:v,y:g}}}});function KI(t){const[e,r="center"]=t.split("-");return[e,r]}var RE=WI,NE=HI,_E=zI,ME=qI,pQ="Portal",u1=m.forwardRef((t,e)=>{var r;const{container:n,...s}=t,[i,o]=m.useState(!1);xr(()=>o(!0),[]);const a=n||i&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return a?yW.createPortal(E.jsx(Ae.div,{...s,ref:e}),a):null});u1.displayName=pQ;var lx="rovingFocusGroup.onEntryFocus",yQ={bubbles:!1,cancelable:!0},vg="RovingFocusGroup",[dw,QI,vQ]=dg(vg),[gQ,gd]=Dr(vg,[vQ]),[mQ,xQ]=gQ(vg),JI=m.forwardRef((t,e)=>E.jsx(dw.Provider,{scope:t.__scopeRovingFocusGroup,children:E.jsx(dw.Slot,{scope:t.__scopeRovingFocusGroup,children:E.jsx(bQ,{...t,ref:e})})}));JI.displayName=vg;var bQ=m.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:s=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...f}=t,d=m.useRef(null),h=$e(e,d),y=c1(i),[p=null,b]=is({prop:o,defaultProp:a,onChange:c}),[v,g]=m.useState(!1),x=_r(l),k=QI(r),S=m.useRef(!1),[I,R]=m.useState(0);return m.useEffect(()=>{const _=d.current;if(_)return _.addEventListener(lx,x),()=>_.removeEventListener(lx,x)},[x]),E.jsx(mQ,{scope:r,orientation:n,dir:y,loop:s,currentTabStopId:p,onItemFocus:m.useCallback(_=>b(_),[b]),onItemShiftTab:m.useCallback(()=>g(!0),[]),onFocusableItemAdd:m.useCallback(()=>R(_=>_+1),[]),onFocusableItemRemove:m.useCallback(()=>R(_=>_-1),[]),children:E.jsx(Ae.div,{tabIndex:v||I===0?-1:0,"data-orientation":n,...f,ref:h,style:{outline:"none",...t.style},onMouseDown:ce(t.onMouseDown,()=>{S.current=!0}),onFocus:ce(t.onFocus,_=>{const V=!S.current;if(_.target===_.currentTarget&&V&&!v){const F=new CustomEvent(lx,yQ);if(_.currentTarget.dispatchEvent(F),!F.defaultPrevented){const X=k().filter(G=>G.focusable),re=X.find(G=>G.active),le=X.find(G=>G.id===p),D=[re,le,...X].filter(Boolean).map(G=>G.ref.current);ZI(D,u)}}S.current=!1}),onBlur:ce(t.onBlur,()=>g(!1))})})}),YI="RovingFocusGroupItem",XI=m.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:s=!1,tabStopId:i,...o}=t,a=es(),c=i||a,l=xQ(YI,r),u=l.currentTabStopId===c,f=QI(r),{onFocusableItemAdd:d,onFocusableItemRemove:h}=l;return m.useEffect(()=>{if(n)return d(),()=>h()},[n,d,h]),E.jsx(dw.ItemSlot,{scope:r,id:c,focusable:n,active:s,children:E.jsx(Ae.span,{tabIndex:u?0:-1,"data-orientation":l.orientation,...o,ref:e,onMouseDown:ce(t.onMouseDown,y=>{n?l.onItemFocus(c):y.preventDefault()}),onFocus:ce(t.onFocus,()=>l.onItemFocus(c)),onKeyDown:ce(t.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){l.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const p=EQ(y,l.orientation,l.dir);if(p!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let v=f().filter(g=>g.focusable).map(g=>g.ref.current);if(p==="last")v.reverse();else if(p==="prev"||p==="next"){p==="prev"&&v.reverse();const g=v.indexOf(y.currentTarget);v=l.loop?kQ(v,g+1):v.slice(g+1)}setTimeout(()=>ZI(v))}})})})});XI.displayName=YI;var wQ={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function CQ(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function EQ(t,e,r){const n=CQ(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return wQ[n]}function ZI(t,e=!1){const r=document.activeElement;for(const n of t)if(n===r||(n.focus({preventScroll:e}),document.activeElement!==r))return}function kQ(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var DE=JI,BE=XI,AQ=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Nl=new WeakMap,tp=new WeakMap,rp={},ux=0,eO=function(t){return t&&(t.host||eO(t.parentNode))},SQ=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=eO(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},TQ=function(t,e,r,n){var s=SQ(e,Array.isArray(t)?t:[t]);rp[r]||(rp[r]=new WeakMap);var i=rp[r],o=[],a=new Set,c=new Set(s),l=function(f){!f||a.has(f)||(a.add(f),l(f.parentNode))};s.forEach(l);var u=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(d){if(a.has(d))u(d);else try{var h=d.getAttribute(n),y=h!==null&&h!=="false",p=(Nl.get(d)||0)+1,b=(i.get(d)||0)+1;Nl.set(d,p),i.set(d,b),o.push(d),p===1&&y&&tp.set(d,!0),b===1&&d.setAttribute(r,"true"),y||d.setAttribute(n,"true")}catch(v){console.error("aria-hidden: cannot operate on ",d,v)}})};return u(e),a.clear(),ux++,function(){o.forEach(function(f){var d=Nl.get(f)-1,h=i.get(f)-1;Nl.set(f,d),i.set(f,h),d||(tp.has(f)||f.removeAttribute(n),tp.delete(f)),h||f.removeAttribute(r)}),ux--,ux||(Nl=new WeakMap,Nl=new WeakMap,tp=new WeakMap,rp={})}},LE=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),s=AQ(t);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live]"))),TQ(n,s,r,"aria-hidden")):function(){return null}},oi=function(){return oi=Object.assign||function(e){for(var r,n=1,s=arguments.length;n"u")return HQ;var e=zQ(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},qQ=sO(),Pu="data-scroll-locked",KQ=function(t,e,r,n){var s=t.left,i=t.top,o=t.right,a=t.gap;return r===void 0&&(r="margin"),` + .`.concat(IQ,` { overflow: hidden `).concat(n,`; padding-right: `).concat(a,"px ").concat(n,`; } - body[`).concat(Tu,`] { + body[`).concat(Pu,`] { overflow: hidden `).concat(n,`; overscroll-behavior: contain; `).concat([e&&"position: relative ".concat(n,";"),r==="margin"&&` @@ -76,67 +76,67 @@ Error generating stack: `+i.message+` `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),` } - .`).concat($p,` { + .`).concat(Wp,` { right: `).concat(a,"px ").concat(n,`; } - .`).concat(Wp,` { + .`).concat(Vp,` { margin-right: `).concat(a,"px ").concat(n,`; } - .`).concat($p," .").concat($p,` { + .`).concat(Wp," .").concat(Wp,` { right: 0 `).concat(n,`; } - .`).concat(Wp," .").concat(Wp,` { + .`).concat(Vp," .").concat(Vp,` { margin-right: 0 `).concat(n,`; } - body[`).concat(Tu,`] { - `).concat(PQ,": ").concat(a,`px; + body[`).concat(Pu,`] { + `).concat(OQ,": ").concat(a,`px; } -`)},TS=function(){var t=parseInt(document.body.getAttribute(Tu)||"0",10);return isFinite(t)?t:0},qQ=function(){m.useEffect(function(){return document.body.setAttribute(Tu,(TS()+1).toString()),function(){var t=TS()-1;t<=0?document.body.removeAttribute(Tu):document.body.setAttribute(Tu,t.toString())}},[])},KQ=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,s=n===void 0?"margin":n;qQ();var i=m.useMemo(function(){return HQ(s)},[s]);return m.createElement(zQ,{styles:GQ(i,!e,s,r?"":"!important")})},fw=!1;if(typeof window<"u")try{var rp=Object.defineProperty({},"passive",{get:function(){return fw=!0,!0}});window.addEventListener("test",rp,rp),window.removeEventListener("test",rp,rp)}catch{fw=!1}var Nl=fw?{passive:!1}:!1,QQ=function(t){return t.tagName==="TEXTAREA"},nO=function(t,e){var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!QQ(t)&&r[e]==="visible")},JQ=function(t){return nO(t,"overflowY")},YQ=function(t){return nO(t,"overflowX")},PS=function(t,e){var r=e.ownerDocument,n=e;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var s=sO(t,n);if(s){var i=iO(t,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},XQ=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},ZQ=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},sO=function(t,e){return t==="v"?JQ(e):YQ(e)},iO=function(t,e){return t==="v"?XQ(e):ZQ(e)},eJ=function(t,e){return t==="h"&&e==="rtl"?-1:1},tJ=function(t,e,r,n,s){var i=eJ(t,window.getComputedStyle(e).direction),o=i*n,a=r.target,c=e.contains(a),l=!1,u=o>0,f=0,d=0;do{var h=iO(t,a),y=h[0],p=h[1],b=h[2],v=p-b-i*y;(y||v)&&sO(t,a)&&(f+=v,d+=y),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(e.contains(a)||e===a));return(u&&(Math.abs(f)<1||!s)||!u&&(Math.abs(d)<1||!s))&&(l=!0),l},np=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},IS=function(t){return[t.deltaX,t.deltaY]},OS=function(t){return t&&"current"in t?t.current:t},rJ=function(t,e){return t[0]===e[0]&&t[1]===e[1]},nJ=function(t){return` +`)},IS=function(){var t=parseInt(document.body.getAttribute(Pu)||"0",10);return isFinite(t)?t:0},QQ=function(){m.useEffect(function(){return document.body.setAttribute(Pu,(IS()+1).toString()),function(){var t=IS()-1;t<=0?document.body.removeAttribute(Pu):document.body.setAttribute(Pu,t.toString())}},[])},JQ=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,s=n===void 0?"margin":n;QQ();var i=m.useMemo(function(){return GQ(s)},[s]);return m.createElement(qQ,{styles:KQ(i,!e,s,r?"":"!important")})},hw=!1;if(typeof window<"u")try{var np=Object.defineProperty({},"passive",{get:function(){return hw=!0,!0}});window.addEventListener("test",np,np),window.removeEventListener("test",np,np)}catch{hw=!1}var _l=hw?{passive:!1}:!1,YQ=function(t){return t.tagName==="TEXTAREA"},iO=function(t,e){var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!YQ(t)&&r[e]==="visible")},XQ=function(t){return iO(t,"overflowY")},ZQ=function(t){return iO(t,"overflowX")},OS=function(t,e){var r=e.ownerDocument,n=e;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var s=oO(t,n);if(s){var i=aO(t,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},eJ=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},tJ=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},oO=function(t,e){return t==="v"?XQ(e):ZQ(e)},aO=function(t,e){return t==="v"?eJ(e):tJ(e)},rJ=function(t,e){return t==="h"&&e==="rtl"?-1:1},nJ=function(t,e,r,n,s){var i=rJ(t,window.getComputedStyle(e).direction),o=i*n,a=r.target,c=e.contains(a),l=!1,u=o>0,f=0,d=0;do{var h=aO(t,a),y=h[0],p=h[1],b=h[2],v=p-b-i*y;(y||v)&&oO(t,a)&&(f+=v,d+=y),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(e.contains(a)||e===a));return(u&&(Math.abs(f)<1||!s)||!u&&(Math.abs(d)<1||!s))&&(l=!0),l},sp=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},RS=function(t){return[t.deltaX,t.deltaY]},NS=function(t){return t&&"current"in t?t.current:t},sJ=function(t,e){return t[0]===e[0]&&t[1]===e[1]},iJ=function(t){return` .block-interactivity-`.concat(t,` {pointer-events: none;} .allow-interactivity-`).concat(t,` {pointer-events: all;} -`)},sJ=0,_l=[];function iJ(t){var e=m.useRef([]),r=m.useRef([0,0]),n=m.useRef(),s=m.useState(sJ++)[0],i=m.useState(rO)[0],o=m.useRef(t);m.useEffect(function(){o.current=t},[t]),m.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var p=SQ([t.lockRef.current],(t.shards||[]).map(OS)).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var a=m.useCallback(function(p,b){if("touches"in p&&p.touches.length===2)return!o.current.allowPinchZoom;var v=np(p),g=r.current,x="deltaX"in p?p.deltaX:g[0]-v[0],k="deltaY"in p?p.deltaY:g[1]-v[1],S,I=p.target,R=Math.abs(x)>Math.abs(k)?"h":"v";if("touches"in p&&R==="h"&&I.type==="range")return!1;var _=PS(R,I);if(!_)return!0;if(_?S=R:(S=R==="v"?"h":"v",_=PS(R,I)),!_)return!1;if(!n.current&&"changedTouches"in p&&(x||k)&&(n.current=S),!S)return!0;var V=n.current||S;return tJ(V,b,p,V==="h"?x:k,!0)},[]),c=m.useCallback(function(p){var b=p;if(!(!_l.length||_l[_l.length-1]!==i)){var v="deltaY"in b?IS(b):np(b),g=e.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&rJ(S.delta,v)})[0];if(g&&g.should){b.cancelable&&b.preventDefault();return}if(!g){var x=(o.current.shards||[]).map(OS).filter(Boolean).filter(function(S){return S.contains(b.target)}),k=x.length>0?a(b,x[0]):!o.current.noIsolation;k&&b.cancelable&&b.preventDefault()}}},[]),l=m.useCallback(function(p,b,v,g){var x={name:p,delta:b,target:v,should:g,shadowParent:oJ(v)};e.current.push(x),setTimeout(function(){e.current=e.current.filter(function(k){return k!==x})},1)},[]),u=m.useCallback(function(p){r.current=np(p),n.current=void 0},[]),f=m.useCallback(function(p){l(p.type,IS(p),p.target,a(p,t.lockRef.current))},[]),d=m.useCallback(function(p){l(p.type,np(p),p.target,a(p,t.lockRef.current))},[]);m.useEffect(function(){return _l.push(i),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",c,Nl),document.addEventListener("touchmove",c,Nl),document.addEventListener("touchstart",u,Nl),function(){_l=_l.filter(function(p){return p!==i}),document.removeEventListener("wheel",c,Nl),document.removeEventListener("touchmove",c,Nl),document.removeEventListener("touchstart",u,Nl)}},[]);var h=t.removeScrollBar,y=t.inert;return m.createElement(m.Fragment,null,y?m.createElement(i,{styles:nJ(s)}):null,h?m.createElement(KQ,{gapMode:t.gapMode}):null)}function oJ(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const aJ=DQ(tO,iJ);var gg=m.forwardRef(function(t,e){return m.createElement(vg,ii({},t,{ref:e,sideCar:aJ}))});gg.classNames=vg.classNames;var dw=["Enter"," "],cJ=["ArrowDown","PageUp","Home"],oO=["ArrowUp","PageDown","End"],lJ=[...cJ,...oO],uJ={ltr:[...dw,"ArrowRight"],rtl:[...dw,"ArrowLeft"]},fJ={ltr:["ArrowLeft"],rtl:["ArrowRight"]},u1="Menu",[f0,dJ,hJ]=fg(u1),[Tl,aO]=Mr(u1,[hJ,yd,vd]),mg=yd(),cO=vd(),[pJ,Pl]=Tl(u1),[yJ,f1]=Tl(u1),lO=t=>{const{__scopeMenu:e,open:r=!1,children:n,dir:s,onOpenChange:i,modal:o=!0}=t,a=mg(e),[c,l]=m.useState(null),u=m.useRef(!1),f=_r(i),d=a1(s);return m.useEffect(()=>{const h=()=>{u.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>u.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),E.jsx(IE,{...a,children:E.jsx(pJ,{scope:e,open:r,onOpenChange:f,content:c,onContentChange:l,children:E.jsx(yJ,{scope:e,onClose:m.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:u,dir:d,modal:o,children:n})})})};lO.displayName=u1;var vJ="MenuAnchor",BE=m.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t,s=mg(r);return E.jsx(OE,{...s,...n,ref:e})});BE.displayName=vJ;var LE="MenuPortal",[gJ,uO]=Tl(LE,{forceMount:void 0}),fO=t=>{const{__scopeMenu:e,forceMount:r,children:n,container:s}=t,i=Pl(LE,e);return E.jsx(gJ,{scope:e,forceMount:r,children:E.jsx(Xr,{present:r||i.open,children:E.jsx(l1,{asChild:!0,container:s,children:n})})})};fO.displayName=LE;var ts="MenuContent",[mJ,jE]=Tl(ts),dO=m.forwardRef((t,e)=>{const r=uO(ts,t.__scopeMenu),{forceMount:n=r.forceMount,...s}=t,i=Pl(ts,t.__scopeMenu),o=f1(ts,t.__scopeMenu);return E.jsx(f0.Provider,{scope:t.__scopeMenu,children:E.jsx(Xr,{present:n||i.open,children:E.jsx(f0.Slot,{scope:t.__scopeMenu,children:o.modal?E.jsx(xJ,{...s,ref:e}):E.jsx(bJ,{...s,ref:e})})})})}),xJ=m.forwardRef((t,e)=>{const r=Pl(ts,t.__scopeMenu),n=m.useRef(null),s=$e(e,n);return m.useEffect(()=>{const i=n.current;if(i)return DE(i)},[]),E.jsx(FE,{...t,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ce(t.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),bJ=m.forwardRef((t,e)=>{const r=Pl(ts,t.__scopeMenu);return E.jsx(FE,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),FE=m.forwardRef((t,e)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:h,disableOutsideScroll:y,...p}=t,b=Pl(ts,r),v=f1(ts,r),g=mg(r),x=cO(r),k=dJ(r),[S,I]=m.useState(null),R=m.useRef(null),_=$e(e,R,b.onContentChange),V=m.useRef(0),F=m.useRef(""),X=m.useRef(0),re=m.useRef(null),le=m.useRef("right"),ee=m.useRef(0),D=y?gg:m.Fragment,G=y?{as:ll,allowPinchZoom:!0}:void 0,Z=A=>{var O,M;const B=F.current+A,W=k().filter(ue=>!ue.disabled),q=document.activeElement,te=(O=W.find(ue=>ue.ref.current===q))==null?void 0:O.textValue,J=W.map(ue=>ue.textValue),$=NJ(J,B,te),K=(M=W.find(ue=>ue.textValue===$))==null?void 0:M.ref.current;(function ue(de){F.current=de,window.clearTimeout(V.current),de!==""&&(V.current=window.setTimeout(()=>ue(""),1e3))})(B),K&&setTimeout(()=>K.focus())};m.useEffect(()=>()=>window.clearTimeout(V.current),[]),bE();const C=m.useCallback(A=>{var O,M;return le.current===((O=re.current)==null?void 0:O.side)&&MJ(A,(M=re.current)==null?void 0:M.area)},[]);return E.jsx(mJ,{scope:r,searchRef:F,onItemEnter:m.useCallback(A=>{C(A)&&A.preventDefault()},[C]),onItemLeave:m.useCallback(A=>{var O;C(A)||((O=R.current)==null||O.focus(),I(null))},[C]),onTriggerLeave:m.useCallback(A=>{C(A)&&A.preventDefault()},[C]),pointerGraceTimerRef:X,onPointerGraceIntentChange:m.useCallback(A=>{re.current=A},[]),children:E.jsx(D,{...G,children:E.jsx(dg,{asChild:!0,trapped:s,onMountAutoFocus:ce(i,A=>{var O;A.preventDefault(),(O=R.current)==null||O.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:E.jsx(dd,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:h,children:E.jsx(_E,{asChild:!0,...x,dir:v.dir,orientation:"vertical",loop:n,currentTabStopId:S,onCurrentTabStopIdChange:I,onEntryFocus:ce(c,A=>{v.isUsingKeyboardRef.current||A.preventDefault()}),preventScrollOnEntryFocus:!0,children:E.jsx(RE,{role:"menu","aria-orientation":"vertical","data-state":PO(b.open),"data-radix-menu-content":"",dir:v.dir,...g,...p,ref:_,style:{outline:"none",...p.style},onKeyDown:ce(p.onKeyDown,A=>{const M=A.target.closest("[data-radix-menu-content]")===A.currentTarget,B=A.ctrlKey||A.altKey||A.metaKey,W=A.key.length===1;M&&(A.key==="Tab"&&A.preventDefault(),!B&&W&&Z(A.key));const q=R.current;if(A.target!==q||!lJ.includes(A.key))return;A.preventDefault();const J=k().filter($=>!$.disabled).map($=>$.ref.current);oO.includes(A.key)&&J.reverse(),OJ(J)}),onBlur:ce(t.onBlur,A=>{A.currentTarget.contains(A.target)||(window.clearTimeout(V.current),F.current="")}),onPointerMove:ce(t.onPointerMove,d0(A=>{const O=A.target,M=ee.current!==A.clientX;if(A.currentTarget.contains(O)&&M){const B=A.clientX>ee.current?"right":"left";le.current=B,ee.current=A.clientX}}))})})})})})})});dO.displayName=ts;var wJ="MenuGroup",UE=m.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return E.jsx(Ae.div,{role:"group",...n,ref:e})});UE.displayName=wJ;var CJ="MenuLabel",hO=m.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return E.jsx(Ae.div,{...n,ref:e})});hO.displayName=CJ;var Jy="MenuItem",RS="menu.itemSelect",xg=m.forwardRef((t,e)=>{const{disabled:r=!1,onSelect:n,...s}=t,i=m.useRef(null),o=f1(Jy,t.__scopeMenu),a=jE(Jy,t.__scopeMenu),c=$e(e,i),l=m.useRef(!1),u=()=>{const f=i.current;if(!r&&f){const d=new CustomEvent(RS,{bubbles:!0,cancelable:!0});f.addEventListener(RS,h=>n==null?void 0:n(h),{once:!0}),hE(f,d),d.defaultPrevented?l.current=!1:o.onClose()}};return E.jsx(pO,{...s,ref:c,disabled:r,onClick:ce(t.onClick,u),onPointerDown:f=>{var d;(d=t.onPointerDown)==null||d.call(t,f),l.current=!0},onPointerUp:ce(t.onPointerUp,f=>{var d;l.current||(d=f.currentTarget)==null||d.click()}),onKeyDown:ce(t.onKeyDown,f=>{const d=a.searchRef.current!=="";r||d&&f.key===" "||dw.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});xg.displayName=Jy;var pO=m.forwardRef((t,e)=>{const{__scopeMenu:r,disabled:n=!1,textValue:s,...i}=t,o=jE(Jy,r),a=cO(r),c=m.useRef(null),l=$e(e,c),[u,f]=m.useState(!1),[d,h]=m.useState("");return m.useEffect(()=>{const y=c.current;y&&h((y.textContent??"").trim())},[i.children]),E.jsx(f0.ItemSlot,{scope:r,disabled:n,textValue:s??d,children:E.jsx(ME,{asChild:!0,...a,focusable:!n,children:E.jsx(Ae.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...i,ref:l,onPointerMove:ce(t.onPointerMove,d0(y=>{n?o.onItemLeave(y):(o.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ce(t.onPointerLeave,d0(y=>o.onItemLeave(y))),onFocus:ce(t.onFocus,()=>f(!0)),onBlur:ce(t.onBlur,()=>f(!1))})})})}),EJ="MenuCheckboxItem",yO=m.forwardRef((t,e)=>{const{checked:r=!1,onCheckedChange:n,...s}=t;return E.jsx(bO,{scope:t.__scopeMenu,checked:r,children:E.jsx(xg,{role:"menuitemcheckbox","aria-checked":Yy(r)?"mixed":r,...s,ref:e,"data-state":WE(r),onSelect:ce(s.onSelect,()=>n==null?void 0:n(Yy(r)?!0:!r),{checkForDefaultPrevented:!1})})})});yO.displayName=EJ;var vO="MenuRadioGroup",[kJ,AJ]=Tl(vO,{value:void 0,onValueChange:()=>{}}),gO=m.forwardRef((t,e)=>{const{value:r,onValueChange:n,...s}=t,i=_r(n);return E.jsx(kJ,{scope:t.__scopeMenu,value:r,onValueChange:i,children:E.jsx(UE,{...s,ref:e})})});gO.displayName=vO;var mO="MenuRadioItem",xO=m.forwardRef((t,e)=>{const{value:r,...n}=t,s=AJ(mO,t.__scopeMenu),i=r===s.value;return E.jsx(bO,{scope:t.__scopeMenu,checked:i,children:E.jsx(xg,{role:"menuitemradio","aria-checked":i,...n,ref:e,"data-state":WE(i),onSelect:ce(n.onSelect,()=>{var o;return(o=s.onValueChange)==null?void 0:o.call(s,r)},{checkForDefaultPrevented:!1})})})});xO.displayName=mO;var $E="MenuItemIndicator",[bO,SJ]=Tl($E,{checked:!1}),wO=m.forwardRef((t,e)=>{const{__scopeMenu:r,forceMount:n,...s}=t,i=SJ($E,r);return E.jsx(Xr,{present:n||Yy(i.checked)||i.checked===!0,children:E.jsx(Ae.span,{...s,ref:e,"data-state":WE(i.checked)})})});wO.displayName=$E;var TJ="MenuSeparator",CO=m.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return E.jsx(Ae.div,{role:"separator","aria-orientation":"horizontal",...n,ref:e})});CO.displayName=TJ;var PJ="MenuArrow",EO=m.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t,s=mg(r);return E.jsx(NE,{...s,...n,ref:e})});EO.displayName=PJ;var IJ="MenuSub",[Mde,kO]=Tl(IJ),Yd="MenuSubTrigger",AO=m.forwardRef((t,e)=>{const r=Pl(Yd,t.__scopeMenu),n=f1(Yd,t.__scopeMenu),s=kO(Yd,t.__scopeMenu),i=jE(Yd,t.__scopeMenu),o=m.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:c}=i,l={__scopeMenu:t.__scopeMenu},u=m.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return m.useEffect(()=>u,[u]),m.useEffect(()=>{const f=a.current;return()=>{window.clearTimeout(f),c(null)}},[a,c]),E.jsx(BE,{asChild:!0,...l,children:E.jsx(pO,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":PO(r.open),...t,ref:cg(e,s.onTriggerChange),onClick:f=>{var d;(d=t.onClick)==null||d.call(t,f),!(t.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ce(t.onPointerMove,d0(f=>{i.onItemEnter(f),!f.defaultPrevented&&!t.disabled&&!r.open&&!o.current&&(i.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{r.onOpenChange(!0),u()},100))})),onPointerLeave:ce(t.onPointerLeave,d0(f=>{var d,h;u();const y=(d=r.content)==null?void 0:d.getBoundingClientRect();if(y){const p=(h=r.content)==null?void 0:h.dataset.side,b=p==="right",v=b?-5:5,g=y[b?"left":"right"],x=y[b?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+v,y:f.clientY},{x:g,y:y.top},{x,y:y.top},{x,y:y.bottom},{x:g,y:y.bottom}],side:p}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:ce(t.onKeyDown,f=>{var d;const h=i.searchRef.current!=="";t.disabled||h&&f.key===" "||uJ[n.dir].includes(f.key)&&(r.onOpenChange(!0),(d=r.content)==null||d.focus(),f.preventDefault())})})})});AO.displayName=Yd;var SO="MenuSubContent",TO=m.forwardRef((t,e)=>{const r=uO(ts,t.__scopeMenu),{forceMount:n=r.forceMount,...s}=t,i=Pl(ts,t.__scopeMenu),o=f1(ts,t.__scopeMenu),a=kO(SO,t.__scopeMenu),c=m.useRef(null),l=$e(e,c);return E.jsx(f0.Provider,{scope:t.__scopeMenu,children:E.jsx(Xr,{present:n||i.open,children:E.jsx(f0.Slot,{scope:t.__scopeMenu,children:E.jsx(FE,{id:a.contentId,"aria-labelledby":a.triggerId,...s,ref:l,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var f;o.isUsingKeyboardRef.current&&((f=c.current)==null||f.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:ce(t.onFocusOutside,u=>{u.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:ce(t.onEscapeKeyDown,u=>{o.onClose(),u.preventDefault()}),onKeyDown:ce(t.onKeyDown,u=>{var f;const d=u.currentTarget.contains(u.target),h=fJ[o.dir].includes(u.key);d&&h&&(i.onOpenChange(!1),(f=a.trigger)==null||f.focus(),u.preventDefault())})})})})})});TO.displayName=SO;function PO(t){return t?"open":"closed"}function Yy(t){return t==="indeterminate"}function WE(t){return Yy(t)?"indeterminate":t?"checked":"unchecked"}function OJ(t){const e=document.activeElement;for(const r of t)if(r===e||(r.focus(),document.activeElement!==e))return}function RJ(t,e){return t.map((r,n)=>t[(e+n)%t.length])}function NJ(t,e,r){const s=e.length>1&&Array.from(e).every(l=>l===e[0])?e[0]:e,i=r?t.indexOf(r):-1;let o=RJ(t,Math.max(i,0));s.length===1&&(o=o.filter(l=>l!==r));const c=o.find(l=>l.toLowerCase().startsWith(s.toLowerCase()));return c!==r?c:void 0}function _J(t,e){const{x:r,y:n}=t;let s=!1;for(let i=0,o=e.length-1;in!=u>n&&r<(l-a)*(n-c)/(u-c)+a&&(s=!s)}return s}function MJ(t,e){if(!e)return!1;const r={x:t.clientX,y:t.clientY};return _J(r,e)}function d0(t){return e=>e.pointerType==="mouse"?t(e):void 0}var DJ=lO,BJ=BE,LJ=fO,jJ=dO,FJ=UE,UJ=hO,$J=xg,WJ=yO,VJ=gO,HJ=xO,zJ=wO,GJ=CO,qJ=EO,KJ=AO,QJ=TO,VE="DropdownMenu",[JJ,Dde]=Mr(VE,[aO]),Zr=aO(),[YJ,IO]=JJ(VE),XJ=t=>{const{__scopeDropdownMenu:e,children:r,dir:n,open:s,defaultOpen:i,onOpenChange:o,modal:a=!0}=t,c=Zr(e),l=m.useRef(null),[u=!1,f]=is({prop:s,defaultProp:i,onChange:o});return E.jsx(YJ,{scope:e,triggerId:es(),triggerRef:l,contentId:es(),open:u,onOpenChange:f,onOpenToggle:m.useCallback(()=>f(d=>!d),[f]),modal:a,children:E.jsx(DJ,{...c,open:u,onOpenChange:f,dir:n,modal:a,children:r})})};XJ.displayName=VE;var OO="DropdownMenuTrigger",ZJ=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...s}=t,i=IO(OO,r),o=Zr(r);return E.jsx(BJ,{asChild:!0,...o,children:E.jsx(Ae.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...s,ref:cg(e,i.triggerRef),onPointerDown:ce(t.onPointerDown,a=>{!n&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:ce(t.onKeyDown,a=>{n||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});ZJ.displayName=OO;var eY="DropdownMenuPortal",tY=t=>{const{__scopeDropdownMenu:e,...r}=t,n=Zr(e);return E.jsx(LJ,{...n,...r})};tY.displayName=eY;var RO="DropdownMenuContent",rY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=IO(RO,r),i=Zr(r),o=m.useRef(!1);return E.jsx(jJ,{id:s.contentId,"aria-labelledby":s.triggerId,...i,...n,ref:e,onCloseAutoFocus:ce(t.onCloseAutoFocus,a=>{var c;o.current||(c=s.triggerRef.current)==null||c.focus(),o.current=!1,a.preventDefault()}),onInteractOutside:ce(t.onInteractOutside,a=>{const c=a.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,u=c.button===2||l;(!s.modal||u)&&(o.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});rY.displayName=RO;var nY="DropdownMenuGroup",sY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(FJ,{...s,...n,ref:e})});sY.displayName=nY;var iY="DropdownMenuLabel",oY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(UJ,{...s,...n,ref:e})});oY.displayName=iY;var aY="DropdownMenuItem",cY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx($J,{...s,...n,ref:e})});cY.displayName=aY;var lY="DropdownMenuCheckboxItem",NO=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(WJ,{...s,...n,ref:e})});NO.displayName=lY;var uY="DropdownMenuRadioGroup",fY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(VJ,{...s,...n,ref:e})});fY.displayName=uY;var dY="DropdownMenuRadioItem",_O=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(HJ,{...s,...n,ref:e})});_O.displayName=dY;var hY="DropdownMenuItemIndicator",MO=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(zJ,{...s,...n,ref:e})});MO.displayName=hY;var pY="DropdownMenuSeparator",yY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(GJ,{...s,...n,ref:e})});yY.displayName=pY;var vY="DropdownMenuArrow",gY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(qJ,{...s,...n,ref:e})});gY.displayName=vY;var mY="DropdownMenuSubTrigger",xY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(KJ,{...s,...n,ref:e})});xY.displayName=mY;var bY="DropdownMenuSubContent",wY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(QJ,{...s,...n,ref:e,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});wY.displayName=bY;var CY=NO,EY=_O,DO=MO,BO="_1k2mbvi4 _1k2mbvi3 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1x4 fyvr1yk fyvr1ss fyvr1uo fyvr12ws fyvr12wm fyvr11h0 fyvr11ko fyvr11jw fyvr12v7 fyvr11n4 fyvr11hw fyvr12s7",LO="_1k2mbvi5";const kY=({children:t})=>E.jsx(DO,{className:LO,children:t});m.forwardRef(({className:t,children:e,...r},n)=>E.jsxs(CY,{className:Yr(BO,t),...r,ref:n,children:[E.jsx(kY,{children:E.jsx(mI,{size:"xs"})}),E.jsx(Tt,{variant:"small",children:e})]}));m.forwardRef(({className:t,children:e,...r},n)=>E.jsxs(EY,{className:Yr(BO,t),...r,ref:n,children:[E.jsx(DO,{className:LO,children:E.jsx(Tt,{children:"•"})}),E.jsx(Tt,{variant:"small",children:e})]}));const HE=m.forwardRef((t,e)=>{const{icon:r,size:n="md",...s}=t;return E.jsx(We,{leftIcon:r,size:n,flexShrink:"0",ref:e,...s})}),AY=(...t)=>e=>t.forEach(r=>{r&&(typeof r=="function"?r(e):r.current=e)});var SY="_1hq71vk1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _1hq71vk0 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr12n7 fyvr12fv fyvr1217 fyvr128j fyvr12np fyvr12gd fyvr121p fyvr1291 fyvr11ko fyvr11hc fyvr11ic fyvr11jc fyvr1g0 fyvr11hw",TY=At({defaultClassName:"_1hq71vk5",variantClassNames:{borderRadius:{xs:"_1hq71vk6 _1hq71vk2 fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"_1hq71vk7 _1hq71vk3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"_1hq71vk8 _1hq71vk4 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]}),PY="_1hq71vka _1hq71vk9 fyvr12wp fyvr12wj fyvr11ho fyvr12vj fyvr1ko fyvr1oo fyvr1mo fyvr1qo";const IY={png:".png,image/png",jpeg:".jpeg,image/jpeg",jpg:".jpg,image/jpg",images:"image/*, video/*",pdf:".pdf,application/pdf",mp4:".mp4,video/mp4",csv:".csv,text/csv",json:".json,application/json"};m.forwardRef((t,e)=>{const{borderRadius:r="md",description:n,disabled:s=!1,id:i,label:o="",labelLocation:a="hidden",name:c,onValueChange:l,placeholder:u="Upload a file",validExtensions:f,...d}=t,h=m.useRef(null),y=AY(h,e),[p,b]=m.useState(null),v=x=>{const k=x.currentTarget.files;if(!k||!k[0])return;const S=k[0],I=S.name,R=S.size/1e3;b({name:I,size:R,extension:I.split(".").pop()??""}),l==null||l(S)},g=f.map(x=>IY[x]).join(",");return E.jsx(ud,{description:n,disabled:s,display:"grid",id:i??c,label:o,labelLocation:a,children:E.jsxs(me,{width:"full",minWidth:"0",justifyContent:p?"space-between":"flex-start",gap:"2",color:p?"text100":"text50",className:Yr(SY,TY({borderRadius:r})),children:[p?E.jsxs(me,{flexDirection:"row",gap:"2",alignItems:"center",minWidth:"0",children:[E.jsx(Tt,{ellipsis:!0,children:p.name}),E.jsxs(Tt,{color:"text50",variant:"xsmall",whiteSpace:"nowrap",children:[p.size.toFixed(2)," kb"]})]}):E.jsx(Tt,{ellipsis:!0,children:u}),E.jsx(me,{accept:g,as:"input",className:PY,cursor:"pointer",disabled:s,id:i??c,name:c,onChange:v,ref:y,type:"file",...d}),p&&E.jsx(HE,{cursor:"pointer",icon:yE,size:"xs",onClick:x=>{var k;x.preventDefault(),x.stopPropagation(),(k=h.current)!=null&&k.value&&(h.current.value=""),l==null||l(null),b(null)},zIndex:"10"})]})})});var OY=At({defaultClassName:"_1bhyzin0",variantClassNames:{size:{xs:"_1bhyzin1",sm:"_1bhyzin2",md:"_1bhyzin3",lg:"_1bhyzin4",xl:"_1bhyzin5"}},defaultVariants:{},compoundVariants:[]});const hw=1e3,Pu=64,dx=Pu/2,hx=(t,e=hw)=>t%e/(hw/Pu),Ml=(t,e=0)=>{let r=3735928559^e,n=1103547991^e;for(let s=0,i;s>>16,2246822507)^Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)},RY=(t,e,r)=>{const n=t%360,s=(t+120)%360,i=r%360;return{a:`hsl(${n}deg 100% 40%)`,b:`hsl(${s}deg 100% 50%)`,c:`hsl(${i}deg 100% 50%)`}},NY=(t,e)=>{const r=[];for(let n=0;n{const i=Pu/10+hx(n.r,hw*1.5/(s+1));return{...RY(n.a,n.b,n.c),x:hx(n.x),y:hx(n.y),r:i}})};m.memo(t=>{const{className:e,address:r,size:n="md",complexity:s=1,...i}=t,o=NY(r,s);return E.jsxs(me,{as:"svg",className:Yr(e,OY({size:n})),viewBox:`0 0 ${Pu} ${Pu}`,version:"1.1",flexShrink:"0",borderRadius:"circle",overflow:"hidden",xmlns:"http://www.w3.org/2000/svg",...i,children:[E.jsxs("defs",{children:[E.jsx("clipPath",{id:"circle-clip",children:E.jsx("circle",{cx:dx,cy:dx,r:dx})}),E.jsxs("filter",{id:"blur",x:"-10%",y:"-10%",width:"120%",height:"120%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[E.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),E.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),E.jsx("feGaussianBlur",{stdDeviation:Pu/10,result:"effect1_foregroundBlur"})]}),E.jsxs("linearGradient",{id:`gradient-background-${r}`,x1:"0",y1:"0",x2:"1",y2:"1",children:[E.jsx("stop",{offset:"0",stopColor:o[0].c}),E.jsx("stop",{offset:"1",stopColor:o[0].a})]}),o.map((a,c)=>E.jsxs(m.Fragment,{children:[E.jsxs("radialGradient",{id:`gradient-primary-${r}-${c}`,children:[E.jsx("stop",{offset:"0",stopColor:a.a}),E.jsx("stop",{offset:"1",stopColor:a.b})]}),E.jsxs("radialGradient",{id:`gradient-secondary-${r}-${c}`,children:[E.jsx("stop",{offset:"0",stopColor:a.c}),E.jsx("stop",{offset:"1",stopColor:a.b})]})]},c))]}),E.jsxs("g",{clipPath:"url(#circle-clip)",children:[E.jsx("rect",{width:"100%",height:"100%",fill:`url(#gradient-background-${r})`}),E.jsx("g",{filter:"url(#blur)",children:o.map((a,c)=>E.jsxs(m.Fragment,{children:[E.jsx("circle",{fill:`url(#gradient-primary-${r}-${c})`,cx:a.x,cy:a.y,r:a.r}),E.jsx("circle",{fill:`url(#gradient-secondary-${r}-${c})`,cx:a.y,cy:a.x,r:a.r/2})]},c))})]})]})});const zE=t=>{const{disableAnimation:e=!1,onLoad:r,...n}=t,[s,i]=m.useState(!1),o=a=>{i(!0),r==null||r(a)};return E.jsx(me,{as:Au.img,initial:e?void 0:{opacity:0},animate:e?void 0:{opacity:s?1:0},transition:{duration:.2},onLoad:e?void 0:o,...n})};var GE="Dialog",[jO,Bde]=Mr(GE),[_Y,js]=jO(GE),FO=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:s,onOpenChange:i,modal:o=!0}=t,a=m.useRef(null),c=m.useRef(null),[l=!1,u]=is({prop:n,defaultProp:s,onChange:i});return E.jsx(_Y,{scope:e,triggerRef:a,contentRef:c,contentId:es(),titleId:es(),descriptionId:es(),open:l,onOpenChange:u,onOpenToggle:m.useCallback(()=>u(f=>!f),[u]),modal:o,children:r})};FO.displayName=GE;var UO="DialogTrigger",MY=m.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=js(UO,r),i=$e(e,s.triggerRef);return E.jsx(Ae.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":QE(s.open),...n,ref:i,onClick:ce(t.onClick,s.onOpenToggle)})});MY.displayName=UO;var qE="DialogPortal",[DY,$O]=jO(qE,{forceMount:void 0}),WO=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:s}=t,i=js(qE,e);return E.jsx(DY,{scope:e,forceMount:r,children:m.Children.map(n,o=>E.jsx(Xr,{present:r||i.open,children:E.jsx(l1,{asChild:!0,container:s,children:o})}))})};WO.displayName=qE;var Xy="DialogOverlay",VO=m.forwardRef((t,e)=>{const r=$O(Xy,t.__scopeDialog),{forceMount:n=r.forceMount,...s}=t,i=js(Xy,t.__scopeDialog);return i.modal?E.jsx(Xr,{present:n||i.open,children:E.jsx(BY,{...s,ref:e})}):null});VO.displayName=Xy;var BY=m.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=js(Xy,r);return E.jsx(gg,{as:ll,allowPinchZoom:!0,shards:[s.contentRef],children:E.jsx(Ae.div,{"data-state":QE(s.open),...n,ref:e,style:{pointerEvents:"auto",...n.style}})})}),fl="DialogContent",HO=m.forwardRef((t,e)=>{const r=$O(fl,t.__scopeDialog),{forceMount:n=r.forceMount,...s}=t,i=js(fl,t.__scopeDialog);return E.jsx(Xr,{present:n||i.open,children:i.modal?E.jsx(LY,{...s,ref:e}):E.jsx(jY,{...s,ref:e})})});HO.displayName=fl;var LY=m.forwardRef((t,e)=>{const r=js(fl,t.__scopeDialog),n=m.useRef(null),s=$e(e,r.contentRef,n);return m.useEffect(()=>{const i=n.current;if(i)return DE(i)},[]),E.jsx(zO,{...t,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ce(t.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:ce(t.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:ce(t.onFocusOutside,i=>i.preventDefault())})}),jY=m.forwardRef((t,e)=>{const r=js(fl,t.__scopeDialog),n=m.useRef(!1),s=m.useRef(!1);return E.jsx(zO,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=t.onCloseAutoFocus)==null||o.call(t,i),i.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),i.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:i=>{var o,a;(o=t.onInteractOutside)==null||o.call(t,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const c=i.target;((a=r.triggerRef.current)==null?void 0:a.contains(c))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),zO=m.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=t,a=js(fl,r),c=m.useRef(null),l=$e(e,c);return bE(),E.jsxs(E.Fragment,{children:[E.jsx(dg,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:i,children:E.jsx(dd,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":QE(a.open),...o,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),E.jsxs(E.Fragment,{children:[E.jsx($Y,{titleId:a.titleId}),E.jsx(VY,{contentRef:c,descriptionId:a.descriptionId})]})]})}),KE="DialogTitle",FY=m.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=js(KE,r);return E.jsx(Ae.h2,{id:s.titleId,...n,ref:e})});FY.displayName=KE;var GO="DialogDescription",UY=m.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=js(GO,r);return E.jsx(Ae.p,{id:s.descriptionId,...n,ref:e})});UY.displayName=GO;var qO="DialogClose",KO=m.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=js(qO,r);return E.jsx(Ae.button,{type:"button",...n,ref:e,onClick:ce(t.onClick,()=>s.onOpenChange(!1))})});KO.displayName=qO;function QE(t){return t?"open":"closed"}var QO="DialogTitleWarning",[Lde,JO]=rq(QO,{contentName:fl,titleName:KE,docsSlug:"dialog"}),$Y=({titleId:t})=>{const e=JO(QO),r=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users. +`)},oJ=0,Ml=[];function aJ(t){var e=m.useRef([]),r=m.useRef([0,0]),n=m.useRef(),s=m.useState(oJ++)[0],i=m.useState(sO)[0],o=m.useRef(t);m.useEffect(function(){o.current=t},[t]),m.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var p=PQ([t.lockRef.current],(t.shards||[]).map(NS)).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var a=m.useCallback(function(p,b){if("touches"in p&&p.touches.length===2)return!o.current.allowPinchZoom;var v=sp(p),g=r.current,x="deltaX"in p?p.deltaX:g[0]-v[0],k="deltaY"in p?p.deltaY:g[1]-v[1],S,I=p.target,R=Math.abs(x)>Math.abs(k)?"h":"v";if("touches"in p&&R==="h"&&I.type==="range")return!1;var _=OS(R,I);if(!_)return!0;if(_?S=R:(S=R==="v"?"h":"v",_=OS(R,I)),!_)return!1;if(!n.current&&"changedTouches"in p&&(x||k)&&(n.current=S),!S)return!0;var V=n.current||S;return nJ(V,b,p,V==="h"?x:k,!0)},[]),c=m.useCallback(function(p){var b=p;if(!(!Ml.length||Ml[Ml.length-1]!==i)){var v="deltaY"in b?RS(b):sp(b),g=e.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&sJ(S.delta,v)})[0];if(g&&g.should){b.cancelable&&b.preventDefault();return}if(!g){var x=(o.current.shards||[]).map(NS).filter(Boolean).filter(function(S){return S.contains(b.target)}),k=x.length>0?a(b,x[0]):!o.current.noIsolation;k&&b.cancelable&&b.preventDefault()}}},[]),l=m.useCallback(function(p,b,v,g){var x={name:p,delta:b,target:v,should:g,shadowParent:cJ(v)};e.current.push(x),setTimeout(function(){e.current=e.current.filter(function(k){return k!==x})},1)},[]),u=m.useCallback(function(p){r.current=sp(p),n.current=void 0},[]),f=m.useCallback(function(p){l(p.type,RS(p),p.target,a(p,t.lockRef.current))},[]),d=m.useCallback(function(p){l(p.type,sp(p),p.target,a(p,t.lockRef.current))},[]);m.useEffect(function(){return Ml.push(i),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",c,_l),document.addEventListener("touchmove",c,_l),document.addEventListener("touchstart",u,_l),function(){Ml=Ml.filter(function(p){return p!==i}),document.removeEventListener("wheel",c,_l),document.removeEventListener("touchmove",c,_l),document.removeEventListener("touchstart",u,_l)}},[]);var h=t.removeScrollBar,y=t.inert;return m.createElement(m.Fragment,null,y?m.createElement(i,{styles:iJ(s)}):null,h?m.createElement(JQ,{gapMode:t.gapMode}):null)}function cJ(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const lJ=LQ(nO,aJ);var mg=m.forwardRef(function(t,e){return m.createElement(gg,oi({},t,{ref:e,sideCar:lJ}))});mg.classNames=gg.classNames;var pw=["Enter"," "],uJ=["ArrowDown","PageUp","Home"],cO=["ArrowUp","PageDown","End"],fJ=[...uJ,...cO],dJ={ltr:[...pw,"ArrowRight"],rtl:[...pw,"ArrowLeft"]},hJ={ltr:["ArrowLeft"],rtl:["ArrowRight"]},f1="Menu",[d0,pJ,yJ]=dg(f1),[Pl,lO]=Dr(f1,[yJ,vd,gd]),xg=vd(),uO=gd(),[vJ,Il]=Pl(f1),[gJ,d1]=Pl(f1),fO=t=>{const{__scopeMenu:e,open:r=!1,children:n,dir:s,onOpenChange:i,modal:o=!0}=t,a=xg(e),[c,l]=m.useState(null),u=m.useRef(!1),f=_r(i),d=c1(s);return m.useEffect(()=>{const h=()=>{u.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>u.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),E.jsx(RE,{...a,children:E.jsx(vJ,{scope:e,open:r,onOpenChange:f,content:c,onContentChange:l,children:E.jsx(gJ,{scope:e,onClose:m.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:u,dir:d,modal:o,children:n})})})};fO.displayName=f1;var mJ="MenuAnchor",jE=m.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t,s=xg(r);return E.jsx(NE,{...s,...n,ref:e})});jE.displayName=mJ;var FE="MenuPortal",[xJ,dO]=Pl(FE,{forceMount:void 0}),hO=t=>{const{__scopeMenu:e,forceMount:r,children:n,container:s}=t,i=Il(FE,e);return E.jsx(xJ,{scope:e,forceMount:r,children:E.jsx(Xr,{present:r||i.open,children:E.jsx(u1,{asChild:!0,container:s,children:n})})})};hO.displayName=FE;var ts="MenuContent",[bJ,UE]=Pl(ts),pO=m.forwardRef((t,e)=>{const r=dO(ts,t.__scopeMenu),{forceMount:n=r.forceMount,...s}=t,i=Il(ts,t.__scopeMenu),o=d1(ts,t.__scopeMenu);return E.jsx(d0.Provider,{scope:t.__scopeMenu,children:E.jsx(Xr,{present:n||i.open,children:E.jsx(d0.Slot,{scope:t.__scopeMenu,children:o.modal?E.jsx(wJ,{...s,ref:e}):E.jsx(CJ,{...s,ref:e})})})})}),wJ=m.forwardRef((t,e)=>{const r=Il(ts,t.__scopeMenu),n=m.useRef(null),s=$e(e,n);return m.useEffect(()=>{const i=n.current;if(i)return LE(i)},[]),E.jsx($E,{...t,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ce(t.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),CJ=m.forwardRef((t,e)=>{const r=Il(ts,t.__scopeMenu);return E.jsx($E,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),$E=m.forwardRef((t,e)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:h,disableOutsideScroll:y,...p}=t,b=Il(ts,r),v=d1(ts,r),g=xg(r),x=uO(r),k=pJ(r),[S,I]=m.useState(null),R=m.useRef(null),_=$e(e,R,b.onContentChange),V=m.useRef(0),F=m.useRef(""),X=m.useRef(0),re=m.useRef(null),le=m.useRef("right"),ee=m.useRef(0),D=y?mg:m.Fragment,G=y?{as:ul,allowPinchZoom:!0}:void 0,Z=A=>{var O,M;const B=F.current+A,W=k().filter(ue=>!ue.disabled),q=document.activeElement,te=(O=W.find(ue=>ue.ref.current===q))==null?void 0:O.textValue,J=W.map(ue=>ue.textValue),$=MJ(J,B,te),K=(M=W.find(ue=>ue.textValue===$))==null?void 0:M.ref.current;(function ue(de){F.current=de,window.clearTimeout(V.current),de!==""&&(V.current=window.setTimeout(()=>ue(""),1e3))})(B),K&&setTimeout(()=>K.focus())};m.useEffect(()=>()=>window.clearTimeout(V.current),[]),CE();const C=m.useCallback(A=>{var O,M;return le.current===((O=re.current)==null?void 0:O.side)&&BJ(A,(M=re.current)==null?void 0:M.area)},[]);return E.jsx(bJ,{scope:r,searchRef:F,onItemEnter:m.useCallback(A=>{C(A)&&A.preventDefault()},[C]),onItemLeave:m.useCallback(A=>{var O;C(A)||((O=R.current)==null||O.focus(),I(null))},[C]),onTriggerLeave:m.useCallback(A=>{C(A)&&A.preventDefault()},[C]),pointerGraceTimerRef:X,onPointerGraceIntentChange:m.useCallback(A=>{re.current=A},[]),children:E.jsx(D,{...G,children:E.jsx(hg,{asChild:!0,trapped:s,onMountAutoFocus:ce(i,A=>{var O;A.preventDefault(),(O=R.current)==null||O.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:E.jsx(hd,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:h,children:E.jsx(DE,{asChild:!0,...x,dir:v.dir,orientation:"vertical",loop:n,currentTabStopId:S,onCurrentTabStopIdChange:I,onEntryFocus:ce(c,A=>{v.isUsingKeyboardRef.current||A.preventDefault()}),preventScrollOnEntryFocus:!0,children:E.jsx(_E,{role:"menu","aria-orientation":"vertical","data-state":OO(b.open),"data-radix-menu-content":"",dir:v.dir,...g,...p,ref:_,style:{outline:"none",...p.style},onKeyDown:ce(p.onKeyDown,A=>{const M=A.target.closest("[data-radix-menu-content]")===A.currentTarget,B=A.ctrlKey||A.altKey||A.metaKey,W=A.key.length===1;M&&(A.key==="Tab"&&A.preventDefault(),!B&&W&&Z(A.key));const q=R.current;if(A.target!==q||!fJ.includes(A.key))return;A.preventDefault();const J=k().filter($=>!$.disabled).map($=>$.ref.current);cO.includes(A.key)&&J.reverse(),NJ(J)}),onBlur:ce(t.onBlur,A=>{A.currentTarget.contains(A.target)||(window.clearTimeout(V.current),F.current="")}),onPointerMove:ce(t.onPointerMove,h0(A=>{const O=A.target,M=ee.current!==A.clientX;if(A.currentTarget.contains(O)&&M){const B=A.clientX>ee.current?"right":"left";le.current=B,ee.current=A.clientX}}))})})})})})})});pO.displayName=ts;var EJ="MenuGroup",WE=m.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return E.jsx(Ae.div,{role:"group",...n,ref:e})});WE.displayName=EJ;var kJ="MenuLabel",yO=m.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return E.jsx(Ae.div,{...n,ref:e})});yO.displayName=kJ;var Yy="MenuItem",_S="menu.itemSelect",bg=m.forwardRef((t,e)=>{const{disabled:r=!1,onSelect:n,...s}=t,i=m.useRef(null),o=d1(Yy,t.__scopeMenu),a=UE(Yy,t.__scopeMenu),c=$e(e,i),l=m.useRef(!1),u=()=>{const f=i.current;if(!r&&f){const d=new CustomEvent(_S,{bubbles:!0,cancelable:!0});f.addEventListener(_S,h=>n==null?void 0:n(h),{once:!0}),yE(f,d),d.defaultPrevented?l.current=!1:o.onClose()}};return E.jsx(vO,{...s,ref:c,disabled:r,onClick:ce(t.onClick,u),onPointerDown:f=>{var d;(d=t.onPointerDown)==null||d.call(t,f),l.current=!0},onPointerUp:ce(t.onPointerUp,f=>{var d;l.current||(d=f.currentTarget)==null||d.click()}),onKeyDown:ce(t.onKeyDown,f=>{const d=a.searchRef.current!=="";r||d&&f.key===" "||pw.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});bg.displayName=Yy;var vO=m.forwardRef((t,e)=>{const{__scopeMenu:r,disabled:n=!1,textValue:s,...i}=t,o=UE(Yy,r),a=uO(r),c=m.useRef(null),l=$e(e,c),[u,f]=m.useState(!1),[d,h]=m.useState("");return m.useEffect(()=>{const y=c.current;y&&h((y.textContent??"").trim())},[i.children]),E.jsx(d0.ItemSlot,{scope:r,disabled:n,textValue:s??d,children:E.jsx(BE,{asChild:!0,...a,focusable:!n,children:E.jsx(Ae.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...i,ref:l,onPointerMove:ce(t.onPointerMove,h0(y=>{n?o.onItemLeave(y):(o.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ce(t.onPointerLeave,h0(y=>o.onItemLeave(y))),onFocus:ce(t.onFocus,()=>f(!0)),onBlur:ce(t.onBlur,()=>f(!1))})})})}),AJ="MenuCheckboxItem",gO=m.forwardRef((t,e)=>{const{checked:r=!1,onCheckedChange:n,...s}=t;return E.jsx(CO,{scope:t.__scopeMenu,checked:r,children:E.jsx(bg,{role:"menuitemcheckbox","aria-checked":Xy(r)?"mixed":r,...s,ref:e,"data-state":HE(r),onSelect:ce(s.onSelect,()=>n==null?void 0:n(Xy(r)?!0:!r),{checkForDefaultPrevented:!1})})})});gO.displayName=AJ;var mO="MenuRadioGroup",[SJ,TJ]=Pl(mO,{value:void 0,onValueChange:()=>{}}),xO=m.forwardRef((t,e)=>{const{value:r,onValueChange:n,...s}=t,i=_r(n);return E.jsx(SJ,{scope:t.__scopeMenu,value:r,onValueChange:i,children:E.jsx(WE,{...s,ref:e})})});xO.displayName=mO;var bO="MenuRadioItem",wO=m.forwardRef((t,e)=>{const{value:r,...n}=t,s=TJ(bO,t.__scopeMenu),i=r===s.value;return E.jsx(CO,{scope:t.__scopeMenu,checked:i,children:E.jsx(bg,{role:"menuitemradio","aria-checked":i,...n,ref:e,"data-state":HE(i),onSelect:ce(n.onSelect,()=>{var o;return(o=s.onValueChange)==null?void 0:o.call(s,r)},{checkForDefaultPrevented:!1})})})});wO.displayName=bO;var VE="MenuItemIndicator",[CO,PJ]=Pl(VE,{checked:!1}),EO=m.forwardRef((t,e)=>{const{__scopeMenu:r,forceMount:n,...s}=t,i=PJ(VE,r);return E.jsx(Xr,{present:n||Xy(i.checked)||i.checked===!0,children:E.jsx(Ae.span,{...s,ref:e,"data-state":HE(i.checked)})})});EO.displayName=VE;var IJ="MenuSeparator",kO=m.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return E.jsx(Ae.div,{role:"separator","aria-orientation":"horizontal",...n,ref:e})});kO.displayName=IJ;var OJ="MenuArrow",AO=m.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t,s=xg(r);return E.jsx(ME,{...s,...n,ref:e})});AO.displayName=OJ;var RJ="MenuSub",[Bde,SO]=Pl(RJ),Xd="MenuSubTrigger",TO=m.forwardRef((t,e)=>{const r=Il(Xd,t.__scopeMenu),n=d1(Xd,t.__scopeMenu),s=SO(Xd,t.__scopeMenu),i=UE(Xd,t.__scopeMenu),o=m.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:c}=i,l={__scopeMenu:t.__scopeMenu},u=m.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return m.useEffect(()=>u,[u]),m.useEffect(()=>{const f=a.current;return()=>{window.clearTimeout(f),c(null)}},[a,c]),E.jsx(jE,{asChild:!0,...l,children:E.jsx(vO,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":OO(r.open),...t,ref:lg(e,s.onTriggerChange),onClick:f=>{var d;(d=t.onClick)==null||d.call(t,f),!(t.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ce(t.onPointerMove,h0(f=>{i.onItemEnter(f),!f.defaultPrevented&&!t.disabled&&!r.open&&!o.current&&(i.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{r.onOpenChange(!0),u()},100))})),onPointerLeave:ce(t.onPointerLeave,h0(f=>{var d,h;u();const y=(d=r.content)==null?void 0:d.getBoundingClientRect();if(y){const p=(h=r.content)==null?void 0:h.dataset.side,b=p==="right",v=b?-5:5,g=y[b?"left":"right"],x=y[b?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+v,y:f.clientY},{x:g,y:y.top},{x,y:y.top},{x,y:y.bottom},{x:g,y:y.bottom}],side:p}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:ce(t.onKeyDown,f=>{var d;const h=i.searchRef.current!=="";t.disabled||h&&f.key===" "||dJ[n.dir].includes(f.key)&&(r.onOpenChange(!0),(d=r.content)==null||d.focus(),f.preventDefault())})})})});TO.displayName=Xd;var PO="MenuSubContent",IO=m.forwardRef((t,e)=>{const r=dO(ts,t.__scopeMenu),{forceMount:n=r.forceMount,...s}=t,i=Il(ts,t.__scopeMenu),o=d1(ts,t.__scopeMenu),a=SO(PO,t.__scopeMenu),c=m.useRef(null),l=$e(e,c);return E.jsx(d0.Provider,{scope:t.__scopeMenu,children:E.jsx(Xr,{present:n||i.open,children:E.jsx(d0.Slot,{scope:t.__scopeMenu,children:E.jsx($E,{id:a.contentId,"aria-labelledby":a.triggerId,...s,ref:l,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var f;o.isUsingKeyboardRef.current&&((f=c.current)==null||f.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:ce(t.onFocusOutside,u=>{u.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:ce(t.onEscapeKeyDown,u=>{o.onClose(),u.preventDefault()}),onKeyDown:ce(t.onKeyDown,u=>{var f;const d=u.currentTarget.contains(u.target),h=hJ[o.dir].includes(u.key);d&&h&&(i.onOpenChange(!1),(f=a.trigger)==null||f.focus(),u.preventDefault())})})})})})});IO.displayName=PO;function OO(t){return t?"open":"closed"}function Xy(t){return t==="indeterminate"}function HE(t){return Xy(t)?"indeterminate":t?"checked":"unchecked"}function NJ(t){const e=document.activeElement;for(const r of t)if(r===e||(r.focus(),document.activeElement!==e))return}function _J(t,e){return t.map((r,n)=>t[(e+n)%t.length])}function MJ(t,e,r){const s=e.length>1&&Array.from(e).every(l=>l===e[0])?e[0]:e,i=r?t.indexOf(r):-1;let o=_J(t,Math.max(i,0));s.length===1&&(o=o.filter(l=>l!==r));const c=o.find(l=>l.toLowerCase().startsWith(s.toLowerCase()));return c!==r?c:void 0}function DJ(t,e){const{x:r,y:n}=t;let s=!1;for(let i=0,o=e.length-1;in!=u>n&&r<(l-a)*(n-c)/(u-c)+a&&(s=!s)}return s}function BJ(t,e){if(!e)return!1;const r={x:t.clientX,y:t.clientY};return DJ(r,e)}function h0(t){return e=>e.pointerType==="mouse"?t(e):void 0}var LJ=fO,jJ=jE,FJ=hO,UJ=pO,$J=WE,WJ=yO,VJ=bg,HJ=gO,zJ=xO,GJ=wO,qJ=EO,KJ=kO,QJ=AO,JJ=TO,YJ=IO,zE="DropdownMenu",[XJ,Lde]=Dr(zE,[lO]),Zr=lO(),[ZJ,RO]=XJ(zE),eY=t=>{const{__scopeDropdownMenu:e,children:r,dir:n,open:s,defaultOpen:i,onOpenChange:o,modal:a=!0}=t,c=Zr(e),l=m.useRef(null),[u=!1,f]=is({prop:s,defaultProp:i,onChange:o});return E.jsx(ZJ,{scope:e,triggerId:es(),triggerRef:l,contentId:es(),open:u,onOpenChange:f,onOpenToggle:m.useCallback(()=>f(d=>!d),[f]),modal:a,children:E.jsx(LJ,{...c,open:u,onOpenChange:f,dir:n,modal:a,children:r})})};eY.displayName=zE;var NO="DropdownMenuTrigger",tY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...s}=t,i=RO(NO,r),o=Zr(r);return E.jsx(jJ,{asChild:!0,...o,children:E.jsx(Ae.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...s,ref:lg(e,i.triggerRef),onPointerDown:ce(t.onPointerDown,a=>{!n&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:ce(t.onKeyDown,a=>{n||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});tY.displayName=NO;var rY="DropdownMenuPortal",nY=t=>{const{__scopeDropdownMenu:e,...r}=t,n=Zr(e);return E.jsx(FJ,{...n,...r})};nY.displayName=rY;var _O="DropdownMenuContent",sY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=RO(_O,r),i=Zr(r),o=m.useRef(!1);return E.jsx(UJ,{id:s.contentId,"aria-labelledby":s.triggerId,...i,...n,ref:e,onCloseAutoFocus:ce(t.onCloseAutoFocus,a=>{var c;o.current||(c=s.triggerRef.current)==null||c.focus(),o.current=!1,a.preventDefault()}),onInteractOutside:ce(t.onInteractOutside,a=>{const c=a.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,u=c.button===2||l;(!s.modal||u)&&(o.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});sY.displayName=_O;var iY="DropdownMenuGroup",oY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx($J,{...s,...n,ref:e})});oY.displayName=iY;var aY="DropdownMenuLabel",cY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(WJ,{...s,...n,ref:e})});cY.displayName=aY;var lY="DropdownMenuItem",uY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(VJ,{...s,...n,ref:e})});uY.displayName=lY;var fY="DropdownMenuCheckboxItem",MO=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(HJ,{...s,...n,ref:e})});MO.displayName=fY;var dY="DropdownMenuRadioGroup",hY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(zJ,{...s,...n,ref:e})});hY.displayName=dY;var pY="DropdownMenuRadioItem",DO=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(GJ,{...s,...n,ref:e})});DO.displayName=pY;var yY="DropdownMenuItemIndicator",BO=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(qJ,{...s,...n,ref:e})});BO.displayName=yY;var vY="DropdownMenuSeparator",gY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(KJ,{...s,...n,ref:e})});gY.displayName=vY;var mY="DropdownMenuArrow",xY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(QJ,{...s,...n,ref:e})});xY.displayName=mY;var bY="DropdownMenuSubTrigger",wY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(JJ,{...s,...n,ref:e})});wY.displayName=bY;var CY="DropdownMenuSubContent",EY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(YJ,{...s,...n,ref:e,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});EY.displayName=CY;var kY=MO,AY=DO,LO=BO,jO="_1k2mbvi4 _1k2mbvi3 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1x4 fyvr1yk fyvr1ss fyvr1uo fyvr12ws fyvr12wm fyvr11h0 fyvr11ko fyvr11jw fyvr12v7 fyvr11n4 fyvr11hw fyvr12s7",FO="_1k2mbvi5";const SY=({children:t})=>E.jsx(LO,{className:FO,children:t});m.forwardRef(({className:t,children:e,...r},n)=>E.jsxs(kY,{className:Mr(jO,t),...r,ref:n,children:[E.jsx(SY,{children:E.jsx(bI,{size:"xs"})}),E.jsx(Tt,{variant:"small",children:e})]}));m.forwardRef(({className:t,children:e,...r},n)=>E.jsxs(AY,{className:Mr(jO,t),...r,ref:n,children:[E.jsx(LO,{className:FO,children:E.jsx(Tt,{children:"•"})}),E.jsx(Tt,{variant:"small",children:e})]}));const GE=m.forwardRef((t,e)=>{const{icon:r,size:n="md",...s}=t;return E.jsx(We,{leftIcon:r,size:n,flexShrink:"0",ref:e,...s})}),TY=(...t)=>e=>t.forEach(r=>{r&&(typeof r=="function"?r(e):r.current=e)});var PY="_1hq71vk1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _1hq71vk0 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr12n7 fyvr12fv fyvr1217 fyvr128j fyvr12np fyvr12gd fyvr121p fyvr1291 fyvr11ko fyvr11hc fyvr11ic fyvr11jc fyvr1g0 fyvr11hw",IY=At({defaultClassName:"_1hq71vk5",variantClassNames:{borderRadius:{xs:"_1hq71vk6 _1hq71vk2 fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"_1hq71vk7 _1hq71vk3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"_1hq71vk8 _1hq71vk4 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]}),OY="_1hq71vka _1hq71vk9 fyvr12wp fyvr12wj fyvr11ho fyvr12vj fyvr1ko fyvr1oo fyvr1mo fyvr1qo";const RY={png:".png,image/png",jpeg:".jpeg,image/jpeg",jpg:".jpg,image/jpg",images:"image/*, video/*",pdf:".pdf,application/pdf",mp4:".mp4,video/mp4",csv:".csv,text/csv",json:".json,application/json"};m.forwardRef((t,e)=>{const{borderRadius:r="md",description:n,disabled:s=!1,id:i,label:o="",labelLocation:a="hidden",name:c,onValueChange:l,placeholder:u="Upload a file",validExtensions:f,...d}=t,h=m.useRef(null),y=TY(h,e),[p,b]=m.useState(null),v=x=>{const k=x.currentTarget.files;if(!k||!k[0])return;const S=k[0],I=S.name,R=S.size/1e3;b({name:I,size:R,extension:I.split(".").pop()??""}),l==null||l(S)},g=f.map(x=>RY[x]).join(",");return E.jsx(fd,{description:n,disabled:s,display:"grid",id:i??c,label:o,labelLocation:a,children:E.jsxs(me,{width:"full",minWidth:"0",justifyContent:p?"space-between":"flex-start",gap:"2",color:p?"text100":"text50",className:Mr(PY,IY({borderRadius:r})),children:[p?E.jsxs(me,{flexDirection:"row",gap:"2",alignItems:"center",minWidth:"0",children:[E.jsx(Tt,{ellipsis:!0,children:p.name}),E.jsxs(Tt,{color:"text50",variant:"xsmall",whiteSpace:"nowrap",children:[p.size.toFixed(2)," kb"]})]}):E.jsx(Tt,{ellipsis:!0,children:u}),E.jsx(me,{accept:g,as:"input",className:OY,cursor:"pointer",disabled:s,id:i??c,name:c,onChange:v,ref:y,type:"file",...d}),p&&E.jsx(GE,{cursor:"pointer",icon:gE,size:"xs",onClick:x=>{var k;x.preventDefault(),x.stopPropagation(),(k=h.current)!=null&&k.value&&(h.current.value=""),l==null||l(null),b(null)},zIndex:"10"})]})})});var NY=At({defaultClassName:"_1bhyzin0",variantClassNames:{size:{xs:"_1bhyzin1",sm:"_1bhyzin2",md:"_1bhyzin3",lg:"_1bhyzin4",xl:"_1bhyzin5"}},defaultVariants:{},compoundVariants:[]});const yw=1e3,Iu=64,px=Iu/2,yx=(t,e=yw)=>t%e/(yw/Iu),Dl=(t,e=0)=>{let r=3735928559^e,n=1103547991^e;for(let s=0,i;s>>16,2246822507)^Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)},_Y=(t,e,r)=>{const n=t%360,s=(t+120)%360,i=r%360;return{a:`hsl(${n}deg 100% 40%)`,b:`hsl(${s}deg 100% 50%)`,c:`hsl(${i}deg 100% 50%)`}},MY=(t,e)=>{const r=[];for(let n=0;n{const i=Iu/10+yx(n.r,yw*1.5/(s+1));return{..._Y(n.a,n.b,n.c),x:yx(n.x),y:yx(n.y),r:i}})};m.memo(t=>{const{className:e,address:r,size:n="md",complexity:s=1,...i}=t,o=MY(r,s);return E.jsxs(me,{as:"svg",className:Mr(e,NY({size:n})),viewBox:`0 0 ${Iu} ${Iu}`,version:"1.1",flexShrink:"0",borderRadius:"circle",overflow:"hidden",xmlns:"http://www.w3.org/2000/svg",...i,children:[E.jsxs("defs",{children:[E.jsx("clipPath",{id:"circle-clip",children:E.jsx("circle",{cx:px,cy:px,r:px})}),E.jsxs("filter",{id:"blur",x:"-10%",y:"-10%",width:"120%",height:"120%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[E.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),E.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),E.jsx("feGaussianBlur",{stdDeviation:Iu/10,result:"effect1_foregroundBlur"})]}),E.jsxs("linearGradient",{id:`gradient-background-${r}`,x1:"0",y1:"0",x2:"1",y2:"1",children:[E.jsx("stop",{offset:"0",stopColor:o[0].c}),E.jsx("stop",{offset:"1",stopColor:o[0].a})]}),o.map((a,c)=>E.jsxs(m.Fragment,{children:[E.jsxs("radialGradient",{id:`gradient-primary-${r}-${c}`,children:[E.jsx("stop",{offset:"0",stopColor:a.a}),E.jsx("stop",{offset:"1",stopColor:a.b})]}),E.jsxs("radialGradient",{id:`gradient-secondary-${r}-${c}`,children:[E.jsx("stop",{offset:"0",stopColor:a.c}),E.jsx("stop",{offset:"1",stopColor:a.b})]})]},c))]}),E.jsxs("g",{clipPath:"url(#circle-clip)",children:[E.jsx("rect",{width:"100%",height:"100%",fill:`url(#gradient-background-${r})`}),E.jsx("g",{filter:"url(#blur)",children:o.map((a,c)=>E.jsxs(m.Fragment,{children:[E.jsx("circle",{fill:`url(#gradient-primary-${r}-${c})`,cx:a.x,cy:a.y,r:a.r}),E.jsx("circle",{fill:`url(#gradient-secondary-${r}-${c})`,cx:a.y,cy:a.x,r:a.r/2})]},c))})]})]})});const qE=t=>{const{disableAnimation:e=!1,onLoad:r,...n}=t,[s,i]=m.useState(!1),o=a=>{i(!0),r==null||r(a)};return E.jsx(me,{as:Su.img,initial:e?void 0:{opacity:0},animate:e?void 0:{opacity:s?1:0},transition:{duration:.2},onLoad:e?void 0:o,...n})};var KE="Dialog",[UO,jde]=Dr(KE),[DY,Fs]=UO(KE),$O=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:s,onOpenChange:i,modal:o=!0}=t,a=m.useRef(null),c=m.useRef(null),[l=!1,u]=is({prop:n,defaultProp:s,onChange:i});return E.jsx(DY,{scope:e,triggerRef:a,contentRef:c,contentId:es(),titleId:es(),descriptionId:es(),open:l,onOpenChange:u,onOpenToggle:m.useCallback(()=>u(f=>!f),[u]),modal:o,children:r})};$O.displayName=KE;var WO="DialogTrigger",BY=m.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Fs(WO,r),i=$e(e,s.triggerRef);return E.jsx(Ae.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":YE(s.open),...n,ref:i,onClick:ce(t.onClick,s.onOpenToggle)})});BY.displayName=WO;var QE="DialogPortal",[LY,VO]=UO(QE,{forceMount:void 0}),HO=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:s}=t,i=Fs(QE,e);return E.jsx(LY,{scope:e,forceMount:r,children:m.Children.map(n,o=>E.jsx(Xr,{present:r||i.open,children:E.jsx(u1,{asChild:!0,container:s,children:o})}))})};HO.displayName=QE;var Zy="DialogOverlay",zO=m.forwardRef((t,e)=>{const r=VO(Zy,t.__scopeDialog),{forceMount:n=r.forceMount,...s}=t,i=Fs(Zy,t.__scopeDialog);return i.modal?E.jsx(Xr,{present:n||i.open,children:E.jsx(jY,{...s,ref:e})}):null});zO.displayName=Zy;var jY=m.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Fs(Zy,r);return E.jsx(mg,{as:ul,allowPinchZoom:!0,shards:[s.contentRef],children:E.jsx(Ae.div,{"data-state":YE(s.open),...n,ref:e,style:{pointerEvents:"auto",...n.style}})})}),dl="DialogContent",GO=m.forwardRef((t,e)=>{const r=VO(dl,t.__scopeDialog),{forceMount:n=r.forceMount,...s}=t,i=Fs(dl,t.__scopeDialog);return E.jsx(Xr,{present:n||i.open,children:i.modal?E.jsx(FY,{...s,ref:e}):E.jsx(UY,{...s,ref:e})})});GO.displayName=dl;var FY=m.forwardRef((t,e)=>{const r=Fs(dl,t.__scopeDialog),n=m.useRef(null),s=$e(e,r.contentRef,n);return m.useEffect(()=>{const i=n.current;if(i)return LE(i)},[]),E.jsx(qO,{...t,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ce(t.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:ce(t.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:ce(t.onFocusOutside,i=>i.preventDefault())})}),UY=m.forwardRef((t,e)=>{const r=Fs(dl,t.__scopeDialog),n=m.useRef(!1),s=m.useRef(!1);return E.jsx(qO,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=t.onCloseAutoFocus)==null||o.call(t,i),i.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),i.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:i=>{var o,a;(o=t.onInteractOutside)==null||o.call(t,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const c=i.target;((a=r.triggerRef.current)==null?void 0:a.contains(c))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),qO=m.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=t,a=Fs(dl,r),c=m.useRef(null),l=$e(e,c);return CE(),E.jsxs(E.Fragment,{children:[E.jsx(hg,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:i,children:E.jsx(hd,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":YE(a.open),...o,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),E.jsxs(E.Fragment,{children:[E.jsx(VY,{titleId:a.titleId}),E.jsx(zY,{contentRef:c,descriptionId:a.descriptionId})]})]})}),JE="DialogTitle",$Y=m.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Fs(JE,r);return E.jsx(Ae.h2,{id:s.titleId,...n,ref:e})});$Y.displayName=JE;var KO="DialogDescription",WY=m.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Fs(KO,r);return E.jsx(Ae.p,{id:s.descriptionId,...n,ref:e})});WY.displayName=KO;var QO="DialogClose",JO=m.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Fs(QO,r);return E.jsx(Ae.button,{type:"button",...n,ref:e,onClick:ce(t.onClick,()=>s.onOpenChange(!1))})});JO.displayName=QO;function YE(t){return t?"open":"closed"}var YO="DialogTitleWarning",[Fde,XO]=sq(YO,{contentName:dl,titleName:JE,docsSlug:"dialog"}),VY=({titleId:t})=>{const e=XO(YO),r=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component. -For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return m.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},WY="DialogDescriptionWarning",VY=({contentRef:t,descriptionId:e})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${JO(WY).contentName}}.`;return m.useEffect(()=>{var s;const i=(s=t.current)==null?void 0:s.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(n))},[n,t,e]),null},HY=FO,zY=WO,GY=VO,qY=HO,KY=KO,QY=At({defaultClassName:"_1vqx0w91 _1vqx0w90 fyvr128 fyvr15o",variantClassNames:{direction:{vertical:"_1vqx0w92",horizontal:"_1vqx0w93"}},defaultVariants:{},compoundVariants:[]}),JY=At({defaultClassName:"_1vqx0w94",variantClassNames:{shadows:{true:"_1vqx0w95",false:"_1vqx0w96"},direction:{vertical:"_1vqx0w97",horizontal:"_1vqx0w98"}},defaultVariants:{},compoundVariants:[]});const YY=t=>{const{children:e,shadows:r=!0,direction:n="vertical",contentProps:s,...i}=t;return E.jsx(me,{className:JY({direction:n,shadows:r}),position:"relative",width:"full",height:"full",...i,children:E.jsx(me,{className:QY({direction:n}),background:"backgroundPrimary",...s,children:e})})};function XY(t){var e=t.match(/^var\((.*)\)$/);return e?e[1]:t}function ZY(t,e){var r=t;for(var n of e){if(!(n in r))throw new Error("Path ".concat(e.join(" -> ")," does not exist in object"));r=r[n]}return r}function YO(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n={};for(var s in t){var i=t[s],o=[...r,s];typeof i=="string"||typeof i=="number"||i==null?n[s]=e(i,o):typeof i=="object"&&!Array.isArray(i)?n[s]=YO(i,e,o):console.warn('Skipping invalid key "'.concat(o.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"'))}return n}function NS(t,e,r){t.style.setProperty(XY(e),r)}function _S(t,e,r){if(typeof r=="object"){var n=e;YO(r,(a,c)=>{a!=null&&NS(t,ZY(n,c),String(a))})}else{var s=e;for(var i in s){var o=s[i];o!=null&&NS(t,i,s[i])}}}const JE=["dark","light"],XO="dark",eX="data-theme",MS="@sequence.theme",tX=t=>JE.includes(t),rX=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),ZO=t=>t?`${MS}.${t}`:MS,nX=t=>{const e=localStorage.getItem(ZO(t));return e&&JE.includes(e)?e:XO},e9=m.createContext(null),sX=t=>{const[e,r]=m.useState(t.theme||XO);m.useEffect(()=>{/Mac/.test(window.navigator.userAgent)&&window.document.documentElement.classList.add("is-apple")},[]),m.useEffect(()=>{t.theme||r(nX(t.scope))},[t.theme,t.scope]),m.useEffect(()=>{t.theme&&r(t.theme)},[t.theme]),m.useEffect(()=>{const s=document.querySelector(t.root||":root");s&&(tX(e)?(s.setAttribute(eX,e),_S(s,rS,{colors:NG[e]})):rX(e)&&_S(s,rS,{colors:e}))},[e,t.root]);const n=m.useMemo(()=>({theme:e,root:t.root,setTheme:s=>{JE.includes(s)&&(localStorage.setItem(ZO(t.scope),s),r(s))}}),[e,t.root,t.scope]);return E.jsx(e9.Provider,{value:n,children:t.children})},iX=()=>{const t=m.useContext(e9);if(!t)throw new Error("useTheme must be used within a ThemeProvider");return t};var oX="_5b32m91 _5b32m90 fyvr11jg fyvr11ko fyvr11h0 fyvr11hs fyvr11nk fyvr1ko fyvr1oo fyvr1qo fyvr1mo",aX="_5b32m93 _5b32m92 fyvr11hs fyvr1ko fyvr1oo fyvr1qo fyvr1mo",cX=At({defaultClassName:"_5b32m95 _5b32m94 fyvr11d8 fyvr11dw fyvr11bg fyvr11by fyvr11c4 fyvr11cm fyvr11ls fyvr11m8 fyvr12ws fyvr12wm fyvr11h0 fyvr11i4 fyvr11hs fyvr11sd fyvr1mo fyvr1om",variantClassNames:{size:{sm:"_5b32m96",lg:"_5b32m97"},autoHeight:{true:"_5b32m98"}},defaultVariants:{},compoundVariants:[[{autoHeight:!0,size:"lg"},"_5b32m99"]]}),lX="_5b32m9b _5b32m9a fyvr110o fyvr112o fyvr114o fyvr116o fyvr11ho fyvr1qo fyvr1ko fyvr11nk";const uX=t=>{const{autoHeight:e=!1,backdropColor:r="backgroundBackdrop",children:n,disableAnimation:s=!1,isDismissible:i=!0,onClose:o,scroll:a=!0,size:c="lg",overlayProps:l,contentProps:u}=t,{root:f}=iX(),[d,h]=m.useState(null);return m.useEffect(()=>{h(document.querySelector(f||"body"))},[f]),d?E.jsx(HY,{modal:!0,defaultOpen:!0,onOpenChange:o,children:E.jsx(zY,{forceMount:!0,container:d,children:E.jsxs(me,{className:oX,children:[E.jsx(me,{as:GY,asChild:!0,background:r,className:aX,forceMount:!0,children:E.jsx(Au.div,{initial:s?!1:{opacity:0},animate:s?!1:{opacity:1},exit:s?void 0:{opacity:0},transition:{type:"tween",ease:"linear"},...l},"modal-overlay")}),E.jsx(qY,{asChild:!0,className:cX({autoHeight:e,size:c}),forceMount:!0,onEscapeKeyDown:y=>{i?o==null||o():y.preventDefault()},onInteractOutside:y=>{i||y.preventDefault()},children:E.jsxs(Au.div,{initial:s?!1:{y:"100%",opacity:c==="sm"?0:1},animate:s?!1:{y:0,opacity:1},exit:s?void 0:{y:"100%",opacity:c==="sm"?0:1},transition:{type:"tween",ease:"easeOut"},...u,children:[a?E.jsx(YY,{children:n}):n,i&&E.jsx(KY,{asChild:!0,children:E.jsx(HE,{icon:yE,backdropFilter:"blur",size:"xs",className:lX,"aria-label":"Close"})})]},"modal-content")})]})})}):null};var fX="_1acm19y1 _1acm19y0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1ww fyvr1ys fyvr11hc fyvr11ko fyvr11od fyvr12s1 fyvr1g0 fyvr118g",dX=At({defaultClassName:"_1acm19y5",variantClassNames:{borderRadius:{xs:"_1acm19y6 _1acm19y2 fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"_1acm19y7 _1acm19y3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"_1acm19y8 _1acm19y4 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]}),hX=At({defaultClassName:"_1acm19ya _1acm19y9 fyvr1wg fyvr1yc fyvr1t4 fyvr1v0 fyvr12wp fyvr12wj fyvr11gw fyvr11od fyvr12s1 fyvr12o1 fyvr128 fyvr15o",variantClassNames:{numeric:{false:"_1acm19yb _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",true:"_1acm19yc _1qxj1ib9 _1qxj1ibc _1qxj1ib2 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8"}},defaultVariants:{},compoundVariants:[]});const YE=m.forwardRef((t,e)=>{const{as:r="input",autoComplete:n="off",borderRadius:s="md",description:i,disabled:o=!1,id:a,label:c="",labelLocation:l="hidden",leftIcon:u,rightIcon:f,name:d,controls:h,type:y="text",numeric:p=!1,...b}=t;return E.jsx(ud,{description:i,disabled:o,display:"grid",id:a??d,label:c,labelLocation:l,children:E.jsx(me,{width:"full",children:E.jsxs(me,{className:Yr(fX,dX({borderRadius:s})),children:[u&&E.jsx(u,{size:"sm"}),E.jsx(me,{as:r,autoComplete:n,spellCheck:"false",className:hX({numeric:p}),disabled:o,id:a??d,name:d,ref:e,type:y,...b}),f&&E.jsx(f,{size:"sm"}),h]})})})}),pX=RegExp("^\\d*(?:\\\\[.])?\\d*$");function yX(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}m.forwardRef((t,e)=>{const{name:r="amount",placeholder:n,onChange:s,onBlur:i,...o}=t,a=l=>{let{value:u}=l.target;u=u.replace(/,/g,"."),u.startsWith(".")&&(u="0"+u),u.startsWith("0")&&(u=u.replace(/^0+(?=\d)/,"")),(u===""||pX.test(yX(u)))&&(s==null||s({...l,target:{...l.target,value:u}}))},c=l=>{const{value:u}=l.target;let f=u;f.endsWith(".")&&(f=f.slice(0,-1)),f.endsWith(".0")&&(f=f.slice(0,-2)),f==="0"&&(f=""),i==null||i(l),f!==u&&(s==null||s({...l,target:{...l.target,value:f}}))};return E.jsx(YE,{name:r,onChange:a,onBlur:c,inputMode:"decimal",autoComplete:"off",autoCorrect:"off",type:"text",pattern:"^[0-9]*[.,]?[0-9]*$",placeholder:n||"0",minLength:1,maxLength:79,spellCheck:"false",numeric:!0,ref:e,...o})});At({defaultClassName:"_1jujggt1",variantClassNames:{size:{sm:"_1jujggt2",normal:"_1jujggt3",md:"_1jujggt4",lg:"_1jujggt5",xl:"_1jujggt6"}},defaultVariants:{},compoundVariants:[]});var XE="Progress",ZE=100,[vX,jde]=Mr(XE),[gX,mX]=vX(XE),xX=m.forwardRef((t,e)=>{const{__scopeProgress:r,value:n=null,max:s,getValueLabel:i=wX,...o}=t;(s||s===0)&&!DS(s)&&console.error(CX(`${s}`,"Progress"));const a=DS(s)?s:ZE;n!==null&&!BS(n,a)&&console.error(EX(`${n}`,"Progress"));const c=BS(n,a)?n:null,l=Zy(c)?i(c,a):void 0;return E.jsx(gX,{scope:r,value:c,max:a,children:E.jsx(Ae.div,{"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":Zy(c)?c:void 0,"aria-valuetext":l,role:"progressbar","data-state":r9(c,a),"data-value":c??void 0,"data-max":a,...o,ref:e})})});xX.displayName=XE;var t9="ProgressIndicator",bX=m.forwardRef((t,e)=>{const{__scopeProgress:r,...n}=t,s=mX(t9,r);return E.jsx(Ae.div,{"data-state":r9(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...n,ref:e})});bX.displayName=t9;function wX(t,e){return`${Math.round(t/e*100)}%`}function r9(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}function Zy(t){return typeof t=="number"}function DS(t){return Zy(t)&&!isNaN(t)&&t>0}function BS(t,e){return Zy(t)&&!isNaN(t)&&t<=e&&t>=0}function CX(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${ZE}\`.`}function EX(t,e){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${e}\`. The \`value\` prop must be: +For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return m.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},HY="DialogDescriptionWarning",zY=({contentRef:t,descriptionId:e})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${XO(HY).contentName}}.`;return m.useEffect(()=>{var s;const i=(s=t.current)==null?void 0:s.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(n))},[n,t,e]),null},GY=$O,qY=HO,KY=zO,QY=GO,JY=JO,YY=At({defaultClassName:"_1vqx0w91 _1vqx0w90 fyvr128 fyvr15o",variantClassNames:{direction:{vertical:"_1vqx0w92",horizontal:"_1vqx0w93"}},defaultVariants:{},compoundVariants:[]}),XY=At({defaultClassName:"_1vqx0w94",variantClassNames:{shadows:{true:"_1vqx0w95",false:"_1vqx0w96"},direction:{vertical:"_1vqx0w97",horizontal:"_1vqx0w98"}},defaultVariants:{},compoundVariants:[]});const ZY=t=>{const{children:e,shadows:r=!0,direction:n="vertical",contentProps:s,...i}=t;return E.jsx(me,{className:XY({direction:n,shadows:r}),position:"relative",width:"full",height:"full",...i,children:E.jsx(me,{className:YY({direction:n}),background:"backgroundPrimary",...s,children:e})})};function eX(t){var e=t.match(/^var\((.*)\)$/);return e?e[1]:t}function tX(t,e){var r=t;for(var n of e){if(!(n in r))throw new Error("Path ".concat(e.join(" -> ")," does not exist in object"));r=r[n]}return r}function ZO(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n={};for(var s in t){var i=t[s],o=[...r,s];typeof i=="string"||typeof i=="number"||i==null?n[s]=e(i,o):typeof i=="object"&&!Array.isArray(i)?n[s]=ZO(i,e,o):console.warn('Skipping invalid key "'.concat(o.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"'))}return n}function MS(t,e,r){t.style.setProperty(eX(e),r)}function DS(t,e,r){if(typeof r=="object"){var n=e;ZO(r,(a,c)=>{a!=null&&MS(t,tX(n,c),String(a))})}else{var s=e;for(var i in s){var o=s[i];o!=null&&MS(t,i,s[i])}}}const XE=["dark","light"],e9="dark",rX="data-theme",BS="@sequence.theme",nX=t=>XE.includes(t),sX=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),t9=t=>t?`${BS}.${t}`:BS,iX=t=>{const e=localStorage.getItem(t9(t));return e&&XE.includes(e)?e:e9},r9=m.createContext(null),oX=t=>{const[e,r]=m.useState(t.theme||e9);m.useEffect(()=>{/Mac/.test(window.navigator.userAgent)&&window.document.documentElement.classList.add("is-apple")},[]),m.useEffect(()=>{t.theme||r(iX(t.scope))},[t.theme,t.scope]),m.useEffect(()=>{t.theme&&r(t.theme)},[t.theme]),m.useEffect(()=>{const s=document.querySelector(t.root||":root");s&&(nX(e)?(s.setAttribute(rX,e),DS(s,sS,{colors:MG[e]})):sX(e)&&DS(s,sS,{colors:e}),t.root&&s.classList.add("seq-root"))},[e,t.root]);const n=m.useMemo(()=>({theme:e,root:t.root,setTheme:s=>{XE.includes(s)&&(localStorage.setItem(t9(t.scope),s),r(s))}}),[e,t.root,t.scope]);return E.jsx(r9.Provider,{value:n,children:t.children})},aX=()=>{const t=m.useContext(r9);if(!t)throw new Error("useTheme must be used within a ThemeProvider");return t};var cX="_5b32m91 _5b32m90 fyvr11jg fyvr11ko fyvr11h0 fyvr11hs fyvr11nk fyvr1ko fyvr1oo fyvr1qo fyvr1mo",lX="_5b32m93 _5b32m92 fyvr11hs fyvr1ko fyvr1oo fyvr1qo fyvr1mo",uX=At({defaultClassName:"_5b32m95 _5b32m94 fyvr11d8 fyvr11dw fyvr11bg fyvr11by fyvr11c4 fyvr11cm fyvr11ls fyvr11m8 fyvr12ws fyvr12wm fyvr11h0 fyvr11i4 fyvr11hs fyvr11sd fyvr1mo fyvr1om",variantClassNames:{size:{sm:"_5b32m96",lg:"_5b32m97"},autoHeight:{true:"_5b32m98"}},defaultVariants:{},compoundVariants:[[{autoHeight:!0,size:"lg"},"_5b32m99"]]}),fX="_5b32m9b _5b32m9a fyvr110o fyvr112o fyvr114o fyvr116o fyvr11ho fyvr1qo fyvr1ko fyvr11nk";const dX=t=>{const{autoHeight:e=!1,backdropColor:r="backgroundBackdrop",children:n,disableAnimation:s=!1,isDismissible:i=!0,onClose:o,scroll:a=!0,size:c="lg",overlayProps:l,contentProps:u,rootProps:f={}}=t,{root:d}=aX(),[h,y]=m.useState(null);return m.useEffect(()=>{y(document.querySelector(d||"body"))},[d]),h?E.jsx(GY,{modal:!0,defaultOpen:!0,onOpenChange:o,children:E.jsx(qY,{forceMount:!0,container:h,children:E.jsxs(me,{...f,className:Mr("seq-root",cX,f==null?void 0:f.className),children:[E.jsx(me,{as:KY,asChild:!0,background:r,className:lX,forceMount:!0,children:E.jsx(Su.div,{initial:s?!1:{opacity:0},animate:s?!1:{opacity:1},exit:s?void 0:{opacity:0},transition:{type:"tween",ease:"linear"},...l},"modal-overlay")}),E.jsx(QY,{asChild:!0,className:uX({autoHeight:e,size:c}),forceMount:!0,onEscapeKeyDown:p=>{i?o==null||o():p.preventDefault()},onInteractOutside:p=>{i||p.preventDefault()},children:E.jsxs(Su.div,{initial:s?!1:{y:"100%",opacity:c==="sm"?0:1},animate:s?!1:{y:0,opacity:1},exit:s?void 0:{y:"100%",opacity:c==="sm"?0:1},transition:{type:"tween",ease:"easeOut"},...u,children:[a?E.jsx(ZY,{children:n}):n,i&&E.jsx(JY,{asChild:!0,children:E.jsx(GE,{icon:gE,backdropFilter:"blur",size:"xs",className:fX,"aria-label":"Close"})})]},"modal-content")})]})})}):null};var hX="_1acm19y1 _1acm19y0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1ww fyvr1ys fyvr11hc fyvr11ko fyvr11od fyvr12s1 fyvr1g0 fyvr118g",pX=At({defaultClassName:"_1acm19y5",variantClassNames:{borderRadius:{xs:"_1acm19y6 _1acm19y2 fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"_1acm19y7 _1acm19y3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"_1acm19y8 _1acm19y4 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]}),yX=At({defaultClassName:"_1acm19ya _1acm19y9 fyvr1wg fyvr1yc fyvr1t4 fyvr1v0 fyvr12wp fyvr12wj fyvr11gw fyvr11od fyvr12s1 fyvr12o1 fyvr128 fyvr15o",variantClassNames:{numeric:{false:"_1acm19yb _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",true:"_1acm19yc _1qxj1ib9 _1qxj1ibc _1qxj1ib2 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8"}},defaultVariants:{},compoundVariants:[]});const ZE=m.forwardRef((t,e)=>{const{as:r="input",autoComplete:n="off",borderRadius:s="md",description:i,disabled:o=!1,id:a,label:c="",labelLocation:l="hidden",leftIcon:u,rightIcon:f,name:d,controls:h,type:y="text",numeric:p=!1,...b}=t;return E.jsx(fd,{description:i,disabled:o,display:"grid",id:a??d,label:c,labelLocation:l,children:E.jsx(me,{width:"full",children:E.jsxs(me,{className:Mr(hX,pX({borderRadius:s})),children:[u&&E.jsx(u,{size:"sm"}),E.jsx(me,{as:r,autoComplete:n,spellCheck:"false",className:yX({numeric:p}),disabled:o,id:a??d,name:d,ref:e,type:y,...b}),f&&E.jsx(f,{size:"sm"}),h]})})})}),vX=RegExp("^\\d*(?:\\\\[.])?\\d*$");function gX(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}m.forwardRef((t,e)=>{const{name:r="amount",placeholder:n,onChange:s,onBlur:i,...o}=t,a=l=>{let{value:u}=l.target;u=u.replace(/,/g,"."),u.startsWith(".")&&(u="0"+u),u.startsWith("0")&&(u=u.replace(/^0+(?=\d)/,"")),(u===""||vX.test(gX(u)))&&(s==null||s({...l,target:{...l.target,value:u}}))},c=l=>{const{value:u}=l.target;let f=u;f.endsWith(".")&&(f=f.slice(0,-1)),f.endsWith(".0")&&(f=f.slice(0,-2)),f==="0"&&(f=""),i==null||i(l),f!==u&&(s==null||s({...l,target:{...l.target,value:f}}))};return E.jsx(ZE,{name:r,onChange:a,onBlur:c,inputMode:"decimal",autoComplete:"off",autoCorrect:"off",type:"text",pattern:"^[0-9]*[.,]?[0-9]*$",placeholder:n||"0",minLength:1,maxLength:79,spellCheck:"false",numeric:!0,ref:e,...o})});At({defaultClassName:"_1jujggt1",variantClassNames:{size:{sm:"_1jujggt2",normal:"_1jujggt3",md:"_1jujggt4",lg:"_1jujggt5",xl:"_1jujggt6"}},defaultVariants:{},compoundVariants:[]});var e5="Progress",t5=100,[mX,Ude]=Dr(e5),[xX,bX]=mX(e5),wX=m.forwardRef((t,e)=>{const{__scopeProgress:r,value:n=null,max:s,getValueLabel:i=EX,...o}=t;(s||s===0)&&!LS(s)&&console.error(kX(`${s}`,"Progress"));const a=LS(s)?s:t5;n!==null&&!jS(n,a)&&console.error(AX(`${n}`,"Progress"));const c=jS(n,a)?n:null,l=ev(c)?i(c,a):void 0;return E.jsx(xX,{scope:r,value:c,max:a,children:E.jsx(Ae.div,{"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":ev(c)?c:void 0,"aria-valuetext":l,role:"progressbar","data-state":s9(c,a),"data-value":c??void 0,"data-max":a,...o,ref:e})})});wX.displayName=e5;var n9="ProgressIndicator",CX=m.forwardRef((t,e)=>{const{__scopeProgress:r,...n}=t,s=bX(n9,r);return E.jsx(Ae.div,{"data-state":s9(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...n,ref:e})});CX.displayName=n9;function EX(t,e){return`${Math.round(t/e*100)}%`}function s9(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}function ev(t){return typeof t=="number"}function LS(t){return ev(t)&&!isNaN(t)&&t>0}function jS(t,e){return ev(t)&&!isNaN(t)&&t<=e&&t>=0}function kX(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${t5}\`.`}function AX(t,e){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${e}\`. The \`value\` prop must be: - a positive number - - less than the value passed to \`max\` (or ${ZE} if no \`max\` prop is set) + - less than the value passed to \`max\` (or ${t5} if no \`max\` prop is set) - \`null\` or \`undefined\` if the progress is indeterminate. -Defaulting to \`null\`.`}var e5="Radio",[kX,n9]=Mr(e5),[AX,SX]=kX(e5),s9=m.forwardRef((t,e)=>{const{__scopeRadio:r,name:n,checked:s=!1,required:i,disabled:o,value:a="on",onCheck:c,...l}=t,[u,f]=m.useState(null),d=$e(e,p=>f(p)),h=m.useRef(!1),y=u?!!u.closest("form"):!0;return E.jsxs(AX,{scope:r,checked:s,disabled:o,children:[E.jsx(Ae.button,{type:"button",role:"radio","aria-checked":s,"data-state":a9(s),"data-disabled":o?"":void 0,disabled:o,value:a,...l,ref:d,onClick:ce(t.onClick,p=>{s||c==null||c(),y&&(h.current=p.isPropagationStopped(),h.current||p.stopPropagation())})}),y&&E.jsx(TX,{control:u,bubbles:!h.current,name:n,value:a,checked:s,required:i,disabled:o,style:{transform:"translateX(-100%)"}})]})});s9.displayName=e5;var i9="RadioIndicator",o9=m.forwardRef((t,e)=>{const{__scopeRadio:r,forceMount:n,...s}=t,i=SX(i9,r);return E.jsx(Xr,{present:n||i.checked,children:E.jsx(Ae.span,{"data-state":a9(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:e})})});o9.displayName=i9;var TX=t=>{const{control:e,checked:r,bubbles:n=!0,...s}=t,i=m.useRef(null),o=lg(r),a=ug(e);return m.useEffect(()=>{const c=i.current,l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"checked").set;if(o!==r&&f){const d=new Event("click",{bubbles:n});f.call(c,r),c.dispatchEvent(d)}},[o,r,n]),E.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:i,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function a9(t){return t?"checked":"unchecked"}var PX=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],t5="RadioGroup",[IX,Fde]=Mr(t5,[vd,n9]),c9=vd(),l9=n9(),[OX,RX]=IX(t5),u9=m.forwardRef((t,e)=>{const{__scopeRadioGroup:r,name:n,defaultValue:s,value:i,required:o=!1,disabled:a=!1,orientation:c,dir:l,loop:u=!0,onValueChange:f,...d}=t,h=c9(r),y=a1(l),[p,b]=is({prop:i,defaultProp:s,onChange:f});return E.jsx(OX,{scope:r,name:n,required:o,disabled:a,value:p,onValueChange:b,children:E.jsx(_E,{asChild:!0,...h,orientation:c,dir:y,loop:u,children:E.jsx(Ae.div,{role:"radiogroup","aria-required":o,"aria-orientation":c,"data-disabled":a?"":void 0,dir:y,...d,ref:e})})})});u9.displayName=t5;var f9="RadioGroupItem",d9=m.forwardRef((t,e)=>{const{__scopeRadioGroup:r,disabled:n,...s}=t,i=RX(f9,r),o=i.disabled||n,a=c9(r),c=l9(r),l=m.useRef(null),u=$e(e,l),f=i.value===s.value,d=m.useRef(!1);return m.useEffect(()=>{const h=p=>{PX.includes(p.key)&&(d.current=!0)},y=()=>d.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",y),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",y)}},[]),E.jsx(ME,{asChild:!0,...a,focusable:!o,active:f,children:E.jsx(s9,{disabled:o,required:i.required,checked:f,...c,...s,name:i.name,ref:u,onCheck:()=>i.onValueChange(s.value),onKeyDown:ce(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:ce(s.onFocus,()=>{var h;d.current&&((h=l.current)==null||h.click())})})})});d9.displayName=f9;var NX="RadioGroupIndicator",h9=m.forwardRef((t,e)=>{const{__scopeRadioGroup:r,...n}=t,s=l9(r);return E.jsx(o9,{...s,...n,ref:e})});h9.displayName=NX;var _X=u9,MX=d9,DX=h9,BX=At({defaultClassName:"io59uy3 io59uy0 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr1so fyvr1uk fyvr1wg fyvr1yc fyvr12nd fyvr12g1 fyvr121d fyvr128p fyvr12nj fyvr12g7 fyvr121j fyvr128v fyvr11od fyvr12v7 fyvr12v3 fyvr12vz fyvr12vr _4efw240",variantClassNames:{size:{sm:"io59uy4 io59uy1 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8",lg:"io59uy5 io59uy2 fyvr11ac fyvr11ao fyvr11b0 fyvr11bc"}},defaultVariants:{},compoundVariants:[]}),LX=At({defaultClassName:"io59uy8 io59uy7 io59uy6 fyvr11h0 fyvr11ko fyvr11jg fyvr11hw fyvr128 fyvr15o fyvr12s1",variantClassNames:{size:{sm:"io59uy9",lg:"io59uya"}},defaultVariants:{},compoundVariants:[]});const jX=t=>{const{id:e,label:r,size:n="sm",value:s,disabled:i}=t;return E.jsx(me,{alignItems:"center",children:E.jsx(ud,{disabled:i,display:"flex",id:e,label:r,labelLocation:"right",children:E.jsx(MX,{className:BX({size:n}),value:s,id:e,disabled:i,children:E.jsx(DX,{className:LX({size:n})})})})})};m.forwardRef((t,e)=>{const{flexDirection:r="column",disabled:n=!1,gap:s="2",name:i,options:o,size:a="sm",...c}=t;return E.jsx(_X,{disabled:n,name:i,ref:e,...c,children:E.jsx(me,{flexDirection:r,gap:s,children:o.map(({label:l,value:u,disabled:f})=>E.jsx(jX,{id:`${i}-${u}`,label:l,size:a,value:u,disabled:f},u))})})});function LS(t,[e,r]){return Math.min(r,Math.max(e,t))}var FX="VisuallyHidden",d1=m.forwardRef((t,e)=>E.jsx(Ae.span,{...t,ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}}));d1.displayName=FX;var UX=d1,$X=[" ","Enter","ArrowUp","ArrowDown"],WX=[" ","Enter"],h1="Select",[bg,wg,VX]=fg(h1),[gd,Ude]=Mr(h1,[VX,yd]),Cg=yd(),[HX,Ua]=gd(h1),[zX,GX]=gd(h1),p9=t=>{const{__scopeSelect:e,children:r,open:n,defaultOpen:s,onOpenChange:i,value:o,defaultValue:a,onValueChange:c,dir:l,name:u,autoComplete:f,disabled:d,required:h}=t,y=Cg(e),[p,b]=m.useState(null),[v,g]=m.useState(null),[x,k]=m.useState(!1),S=a1(l),[I=!1,R]=is({prop:n,defaultProp:s,onChange:i}),[_,V]=is({prop:o,defaultProp:a,onChange:c}),F=m.useRef(null),X=p?!!p.closest("form"):!0,[re,le]=m.useState(new Set),ee=Array.from(re).map(D=>D.props.value).join(";");return E.jsx(IE,{...y,children:E.jsxs(HX,{required:h,scope:e,trigger:p,onTriggerChange:b,valueNode:v,onValueNodeChange:g,valueNodeHasChildren:x,onValueNodeHasChildrenChange:k,contentId:es(),value:_,onValueChange:V,open:I,onOpenChange:R,dir:S,triggerPointerDownPosRef:F,disabled:d,children:[E.jsx(bg.Provider,{scope:e,children:E.jsx(zX,{scope:t.__scopeSelect,onNativeOptionAdd:m.useCallback(D=>{le(G=>new Set(G).add(D))},[]),onNativeOptionRemove:m.useCallback(D=>{le(G=>{const Z=new Set(G);return Z.delete(D),Z})},[]),children:r})}),X?E.jsxs(M9,{"aria-hidden":!0,required:h,tabIndex:-1,name:u,autoComplete:f,value:_,onChange:D=>V(D.target.value),disabled:d,children:[_===void 0?E.jsx("option",{value:""}):null,Array.from(re)]},ee):null]})})};p9.displayName=h1;var y9="SelectTrigger",v9=m.forwardRef((t,e)=>{const{__scopeSelect:r,disabled:n=!1,...s}=t,i=Cg(r),o=Ua(y9,r),a=o.disabled||n,c=$e(e,o.onTriggerChange),l=wg(r),[u,f,d]=D9(y=>{const p=l().filter(g=>!g.disabled),b=p.find(g=>g.value===o.value),v=B9(p,y,b);v!==void 0&&o.onValueChange(v.value)}),h=()=>{a||(o.onOpenChange(!0),d())};return E.jsx(OE,{asChild:!0,...i,children:E.jsx(Ae.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":_9(o.value)?"":void 0,...s,ref:c,onClick:ce(s.onClick,y=>{y.currentTarget.focus()}),onPointerDown:ce(s.onPointerDown,y=>{const p=y.target;p.hasPointerCapture(y.pointerId)&&p.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&(h(),o.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)},y.preventDefault())}),onKeyDown:ce(s.onKeyDown,y=>{const p=u.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&f(y.key),!(p&&y.key===" ")&&$X.includes(y.key)&&(h(),y.preventDefault())})})})});v9.displayName=y9;var g9="SelectValue",m9=m.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:s,children:i,placeholder:o="",...a}=t,c=Ua(g9,r),{onValueNodeHasChildrenChange:l}=c,u=i!==void 0,f=$e(e,c.onValueNodeChange);return xr(()=>{l(u)},[l,u]),E.jsx(Ae.span,{...a,ref:f,style:{pointerEvents:"none"},children:_9(c.value)?E.jsx(E.Fragment,{children:o}):i})});m9.displayName=g9;var qX="SelectIcon",x9=m.forwardRef((t,e)=>{const{__scopeSelect:r,children:n,...s}=t;return E.jsx(Ae.span,{"aria-hidden":!0,...s,ref:e,children:n||"▼"})});x9.displayName=qX;var dl="SelectContent",b9=m.forwardRef((t,e)=>{const r=Ua(dl,t.__scopeSelect),[n,s]=m.useState();if(xr(()=>{s(new DocumentFragment)},[]),!r.open){const i=n;return i?ja.createPortal(E.jsx(w9,{scope:t.__scopeSelect,children:E.jsx(bg.Slot,{scope:t.__scopeSelect,children:E.jsx("div",{children:t.children})})}),i):null}return E.jsx(C9,{...t,ref:e})});b9.displayName=dl;var ki=10,[w9,$a]=gd(dl),KX="SelectContentImpl",C9=m.forwardRef((t,e)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:o,side:a,sideOffset:c,align:l,alignOffset:u,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:y,hideWhenDetached:p,avoidCollisions:b,...v}=t,g=Ua(dl,r),[x,k]=m.useState(null),[S,I]=m.useState(null),R=$e(e,$=>k($)),[_,V]=m.useState(null),[F,X]=m.useState(null),re=wg(r),[le,ee]=m.useState(!1),D=m.useRef(!1);m.useEffect(()=>{if(x)return DE(x)},[x]),bE();const G=m.useCallback($=>{const[K,...ue]=re().map(Ce=>Ce.ref.current),[de]=ue.slice(-1),oe=document.activeElement;for(const Ce of $)if(Ce===oe||(Ce==null||Ce.scrollIntoView({block:"nearest"}),Ce===K&&S&&(S.scrollTop=0),Ce===de&&S&&(S.scrollTop=S.scrollHeight),Ce==null||Ce.focus(),document.activeElement!==oe))return},[re,S]),Z=m.useCallback(()=>G([_,x]),[G,_,x]);m.useEffect(()=>{le&&Z()},[le,Z]);const{onOpenChange:C,triggerPointerDownPosRef:A}=g;m.useEffect(()=>{if(x){let $={x:0,y:0};const K=de=>{var oe,Ce;$={x:Math.abs(Math.round(de.pageX)-(((oe=A.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(de.pageY)-(((Ce=A.current)==null?void 0:Ce.y)??0))}},ue=de=>{$.x<=10&&$.y<=10?de.preventDefault():x.contains(de.target)||C(!1),document.removeEventListener("pointermove",K),A.current=null};return A.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",ue,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",ue,{capture:!0})}}},[x,C,A]),m.useEffect(()=>{const $=()=>C(!1);return window.addEventListener("blur",$),window.addEventListener("resize",$),()=>{window.removeEventListener("blur",$),window.removeEventListener("resize",$)}},[C]);const[O,M]=D9($=>{const K=re().filter(oe=>!oe.disabled),ue=K.find(oe=>oe.ref.current===document.activeElement),de=B9(K,$,ue);de&&setTimeout(()=>de.ref.current.focus())}),B=m.useCallback(($,K,ue)=>{const de=!D.current&&!ue;(g.value!==void 0&&g.value===K||de)&&(V($),de&&(D.current=!0))},[g.value]),W=m.useCallback(()=>x==null?void 0:x.focus(),[x]),q=m.useCallback(($,K,ue)=>{const de=!D.current&&!ue;(g.value!==void 0&&g.value===K||de)&&X($)},[g.value]),te=n==="popper"?pw:E9,J=te===pw?{side:a,sideOffset:c,align:l,alignOffset:u,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:y,hideWhenDetached:p,avoidCollisions:b}:{};return E.jsx(w9,{scope:r,content:x,viewport:S,onViewportChange:I,itemRefCallback:B,selectedItem:_,onItemLeave:W,itemTextRefCallback:q,focusSelectedItem:Z,selectedItemText:F,position:n,isPositioned:le,searchRef:O,children:E.jsx(gg,{as:ll,allowPinchZoom:!0,children:E.jsx(dg,{asChild:!0,trapped:g.open,onMountAutoFocus:$=>{$.preventDefault()},onUnmountAutoFocus:ce(s,$=>{var K;(K=g.trigger)==null||K.focus({preventScroll:!0}),$.preventDefault()}),children:E.jsx(dd,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:$=>$.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:E.jsx(te,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:$=>$.preventDefault(),...v,...J,onPlaced:()=>ee(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:ce(v.onKeyDown,$=>{const K=$.ctrlKey||$.altKey||$.metaKey;if($.key==="Tab"&&$.preventDefault(),!K&&$.key.length===1&&M($.key),["ArrowUp","ArrowDown","Home","End"].includes($.key)){let de=re().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes($.key)&&(de=de.slice().reverse()),["ArrowUp","ArrowDown"].includes($.key)){const oe=$.target,Ce=de.indexOf(oe);de=de.slice(Ce+1)}setTimeout(()=>G(de)),$.preventDefault()}})})})})})})});C9.displayName=KX;var QX="SelectItemAlignedPosition",E9=m.forwardRef((t,e)=>{const{__scopeSelect:r,onPlaced:n,...s}=t,i=Ua(dl,r),o=$a(dl,r),[a,c]=m.useState(null),[l,u]=m.useState(null),f=$e(e,R=>u(R)),d=wg(r),h=m.useRef(!1),y=m.useRef(!0),{viewport:p,selectedItem:b,selectedItemText:v,focusSelectedItem:g}=o,x=m.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&l&&p&&b&&v){const R=i.trigger.getBoundingClientRect(),_=l.getBoundingClientRect(),V=i.valueNode.getBoundingClientRect(),F=v.getBoundingClientRect();if(i.dir!=="rtl"){const oe=F.left-_.left,Ce=V.left-oe,Re=R.left-Ce,xt=R.width+Re,tn=Math.max(xt,_.width),br=window.innerWidth-ki,U=LS(Ce,[ki,br-tn]);a.style.minWidth=xt+"px",a.style.left=U+"px"}else{const oe=_.right-F.right,Ce=window.innerWidth-V.right-oe,Re=window.innerWidth-R.right-Ce,xt=R.width+Re,tn=Math.max(xt,_.width),br=window.innerWidth-ki,U=LS(Ce,[ki,br-tn]);a.style.minWidth=xt+"px",a.style.right=U+"px"}const X=d(),re=window.innerHeight-ki*2,le=p.scrollHeight,ee=window.getComputedStyle(l),D=parseInt(ee.borderTopWidth,10),G=parseInt(ee.paddingTop,10),Z=parseInt(ee.borderBottomWidth,10),C=parseInt(ee.paddingBottom,10),A=D+G+le+C+Z,O=Math.min(b.offsetHeight*5,A),M=window.getComputedStyle(p),B=parseInt(M.paddingTop,10),W=parseInt(M.paddingBottom,10),q=R.top+R.height/2-ki,te=re-q,J=b.offsetHeight/2,$=b.offsetTop+J,K=D+G+$,ue=A-K;if(K<=q){const oe=b===X[X.length-1].ref.current;a.style.bottom="0px";const Ce=l.clientHeight-p.offsetTop-p.offsetHeight,Re=Math.max(te,J+(oe?W:0)+Ce+Z),xt=K+Re;a.style.height=xt+"px"}else{const oe=b===X[0].ref.current;a.style.top="0px";const Re=Math.max(q,D+p.offsetTop+(oe?B:0)+J)+ue;a.style.height=Re+"px",p.scrollTop=K-q+p.offsetTop}a.style.margin=`${ki}px 0`,a.style.minHeight=O+"px",a.style.maxHeight=re+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[d,i.trigger,i.valueNode,a,l,p,b,v,i.dir,n]);xr(()=>x(),[x]);const[k,S]=m.useState();xr(()=>{l&&S(window.getComputedStyle(l).zIndex)},[l]);const I=m.useCallback(R=>{R&&y.current===!0&&(x(),g==null||g(),y.current=!1)},[x,g]);return E.jsx(YX,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:h,onScrollButtonChange:I,children:E.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:E.jsx(Ae.div,{...s,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});E9.displayName=QX;var JX="SelectPopperPosition",pw=m.forwardRef((t,e)=>{const{__scopeSelect:r,align:n="start",collisionPadding:s=ki,...i}=t,o=Cg(r);return E.jsx(RE,{...o,...i,ref:e,align:n,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});pw.displayName=JX;var[YX,r5]=gd(dl,{}),yw="SelectViewport",k9=m.forwardRef((t,e)=>{const{__scopeSelect:r,nonce:n,...s}=t,i=$a(yw,r),o=r5(yw,r),a=$e(e,i.onViewportChange),c=m.useRef(0);return E.jsxs(E.Fragment,{children:[E.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),E.jsx(bg.Slot,{scope:r,children:E.jsx(Ae.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:a,style:{position:"relative",flex:1,overflow:"auto",...s.style},onScroll:ce(s.onScroll,l=>{const u=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=o;if(d!=null&&d.current&&f){const h=Math.abs(c.current-u.scrollTop);if(h>0){const y=window.innerHeight-ki*2,p=parseFloat(f.style.minHeight),b=parseFloat(f.style.height),v=Math.max(p,b);if(v0?k:0,f.style.justifyContent="flex-end")}}}c.current=u.scrollTop})})})]})});k9.displayName=yw;var A9="SelectGroup",[XX,ZX]=gd(A9),S9=m.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=es();return E.jsx(XX,{scope:r,id:s,children:E.jsx(Ae.div,{role:"group","aria-labelledby":s,...n,ref:e})})});S9.displayName=A9;var T9="SelectLabel",eZ=m.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=ZX(T9,r);return E.jsx(Ae.div,{id:s.id,...n,ref:e})});eZ.displayName=T9;var ev="SelectItem",[tZ,P9]=gd(ev),I9=m.forwardRef((t,e)=>{const{__scopeSelect:r,value:n,disabled:s=!1,textValue:i,...o}=t,a=Ua(ev,r),c=$a(ev,r),l=a.value===n,[u,f]=m.useState(i??""),[d,h]=m.useState(!1),y=$e(e,v=>{var g;return(g=c.itemRefCallback)==null?void 0:g.call(c,v,n,s)}),p=es(),b=()=>{s||(a.onValueChange(n),a.onOpenChange(!1))};if(n==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return E.jsx(tZ,{scope:r,value:n,disabled:s,textId:p,isSelected:l,onItemTextChange:m.useCallback(v=>{f(g=>g||((v==null?void 0:v.textContent)??"").trim())},[]),children:E.jsx(bg.ItemSlot,{scope:r,value:n,disabled:s,textValue:u,children:E.jsx(Ae.div,{role:"option","aria-labelledby":p,"data-highlighted":d?"":void 0,"aria-selected":l&&d,"data-state":l?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:y,onFocus:ce(o.onFocus,()=>h(!0)),onBlur:ce(o.onBlur,()=>h(!1)),onPointerUp:ce(o.onPointerUp,b),onPointerMove:ce(o.onPointerMove,v=>{var g;s?(g=c.onItemLeave)==null||g.call(c):v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ce(o.onPointerLeave,v=>{var g;v.currentTarget===document.activeElement&&((g=c.onItemLeave)==null||g.call(c))}),onKeyDown:ce(o.onKeyDown,v=>{var g;((g=c.searchRef)==null?void 0:g.current)!==""&&v.key===" "||(WX.includes(v.key)&&b(),v.key===" "&&v.preventDefault())})})})})});I9.displayName=ev;var Xd="SelectItemText",O9=m.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:s,...i}=t,o=Ua(Xd,r),a=$a(Xd,r),c=P9(Xd,r),l=GX(Xd,r),[u,f]=m.useState(null),d=$e(e,v=>f(v),c.onItemTextChange,v=>{var g;return(g=a.itemTextRefCallback)==null?void 0:g.call(a,v,c.value,c.disabled)}),h=u==null?void 0:u.textContent,y=m.useMemo(()=>E.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:p,onNativeOptionRemove:b}=l;return xr(()=>(p(y),()=>b(y)),[p,b,y]),E.jsxs(E.Fragment,{children:[E.jsx(Ae.span,{id:c.textId,...i,ref:d}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?ja.createPortal(i.children,o.valueNode):null]})});O9.displayName=Xd;var R9="SelectItemIndicator",rZ=m.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t;return P9(R9,r).isSelected?E.jsx(Ae.span,{"aria-hidden":!0,...n,ref:e}):null});rZ.displayName=R9;var vw="SelectScrollUpButton",nZ=m.forwardRef((t,e)=>{const r=$a(vw,t.__scopeSelect),n=r5(vw,t.__scopeSelect),[s,i]=m.useState(!1),o=$e(e,n.onScrollButtonChange);return xr(()=>{if(r.viewport&&r.isPositioned){let a=function(){const l=c.scrollTop>0;i(l)};const c=r.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),s?E.jsx(N9,{...t,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=r;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});nZ.displayName=vw;var gw="SelectScrollDownButton",sZ=m.forwardRef((t,e)=>{const r=$a(gw,t.__scopeSelect),n=r5(gw,t.__scopeSelect),[s,i]=m.useState(!1),o=$e(e,n.onScrollButtonChange);return xr(()=>{if(r.viewport&&r.isPositioned){let a=function(){const l=c.scrollHeight-c.clientHeight,u=Math.ceil(c.scrollTop)c.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),s?E.jsx(N9,{...t,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=r;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});sZ.displayName=gw;var N9=m.forwardRef((t,e)=>{const{__scopeSelect:r,onAutoScroll:n,...s}=t,i=$a("SelectScrollButton",r),o=m.useRef(null),a=wg(r),c=m.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return m.useEffect(()=>()=>c(),[c]),xr(()=>{var l;const u=a().find(f=>f.ref.current===document.activeElement);(l=u==null?void 0:u.ref.current)==null||l.scrollIntoView({block:"nearest"})},[a]),E.jsx(Ae.div,{"aria-hidden":!0,...s,ref:e,style:{flexShrink:0,...s.style},onPointerDown:ce(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:ce(s.onPointerMove,()=>{var l;(l=i.onItemLeave)==null||l.call(i),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:ce(s.onPointerLeave,()=>{c()})})}),iZ="SelectSeparator",oZ=m.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t;return E.jsx(Ae.div,{"aria-hidden":!0,...n,ref:e})});oZ.displayName=iZ;var mw="SelectArrow",aZ=m.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=Cg(r),i=Ua(mw,r),o=$a(mw,r);return i.open&&o.position==="popper"?E.jsx(NE,{...s,...n,ref:e}):null});aZ.displayName=mw;function _9(t){return t===""||t===void 0}var M9=m.forwardRef((t,e)=>{const{value:r,...n}=t,s=m.useRef(null),i=$e(e,s),o=lg(r);return m.useEffect(()=>{const a=s.current,c=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==r&&u){const f=new Event("change",{bubbles:!0});u.call(a,r),a.dispatchEvent(f)}},[o,r]),E.jsx(d1,{asChild:!0,children:E.jsx("select",{...n,ref:i,defaultValue:r})})});M9.displayName="BubbleSelect";function D9(t){const e=_r(t),r=m.useRef(""),n=m.useRef(0),s=m.useCallback(o=>{const a=r.current+o;e(a),function c(l){r.current=l,window.clearTimeout(n.current),l!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(a)},[e]),i=m.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return m.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,s,i]}function B9(t,e,r){const s=e.length>1&&Array.from(e).every(l=>l===e[0])?e[0]:e,i=r?t.indexOf(r):-1;let o=cZ(t,Math.max(i,0));s.length===1&&(o=o.filter(l=>l!==r));const c=o.find(l=>l.textValue.toLowerCase().startsWith(s.toLowerCase()));return c!==r?c:void 0}function cZ(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var lZ=p9,uZ=v9,fZ=m9,dZ=x9,hZ=b9,pZ=k9,yZ=S9,vZ=I9,gZ=O9,mZ="gohwum1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 gohwum0 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11od fyvr11hc fyvr11f4 fyvr12s1 fyvr118c fyvr11jw fyvr11n4 fyvr12v7 fyvr12o1",xZ=At({defaultClassName:"gohwum5",variantClassNames:{borderRadius:{xs:"gohwum6 gohwum2 fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"gohwum7 gohwum3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"gohwum8 gohwum4 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]}),bZ="gohwuma gohwum9 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr11ls fyvr11m8 fyvr11ms fyvr11tv fyvr12s1 fyvr11nl",wZ="gohwume _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 gohwumd fyvr1ww fyvr1ys fyvr1t0 fyvr1uw fyvr12ws fyvr12wt fyvr12wm fyvr12wn fyvr11h0 fyvr11jw fyvr11ko fyvr12v7 fyvr12v3 fyvr12s1 fyvr12w1 fyvr12vr";const CZ=m.forwardRef(({children:t,className:e,...r},n)=>E.jsx(vZ,{className:Yr(wZ,e),...r,ref:n,children:E.jsx(gZ,{children:t})})),jS=m.forwardRef((t,e)=>{const{borderRadius:r="md",disabled:n=!1,id:s,label:i="",description:o,labelLocation:a="hidden",name:c,options:l,placeholder:u,...f}=t;return E.jsx(ud,{disabled:n,display:"grid",id:s??c,label:i,labelLocation:a,description:o,whiteSpace:"nowrap",children:E.jsxs(lZ,{disabled:n,name:c,...f,children:[E.jsxs(uZ,{id:s??c,className:Yr(mZ,xZ({borderRadius:r})),ref:e,children:[E.jsx(fZ,{placeholder:u}),E.jsx(me,{as:dZ,display:"inline-flex",children:E.jsx(xI,{})})]}),E.jsx(hZ,{className:bZ,children:E.jsx(pZ,{children:E.jsx(yZ,{children:l.map(({value:d,label:h,...y})=>E.jsx(CZ,{value:d,...y,children:h},d))})})})]})})});m.forwardRef((t,e)=>{const{controls:r,onChange:n,placeholder:s="Search",name:i="search",value:o,...a}=t,c=o?E.jsx(HE,{icon:yE,size:"xs",onClick:()=>n==null?void 0:n({target:{value:""}})}):void 0;return E.jsx(YE,{ref:e,name:i,leftIcon:Aq,controls:r||c,placeholder:s,value:o,onChange:l=>n==null?void 0:n(l),...a})});var EZ=At({defaultClassName:"en4abt1",variantClassNames:{size:{sm:"en4abt2",md:"en4abt3",lg:"en4abt4"}},defaultVariants:{},compoundVariants:[]});m.forwardRef((t,e)=>{const{size:r="md",...n}=t;return E.jsx(me,{className:EZ({size:r}),color:"text50",ref:e,...n,children:E.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",children:[E.jsx("circle",{cx:"12",cy:"12",fill:"none",r:"10.5",strokeDasharray:"42",strokeLinecap:"round"}),E.jsx("circle",{cx:"12",cy:"12",fill:"none",opacity:"0.25",r:"10.5",strokeLinecap:"round"})]})})});m.forwardRef(({children:t},e)=>E.jsx(me,{ref:e,width:"fit",height:"fit",onClick:r=>{r.preventDefault(),r.stopPropagation()},onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),r.stopPropagation())},children:t}));var n5="Switch",[kZ,$de]=Mr(n5),[AZ,SZ]=kZ(n5),TZ=m.forwardRef((t,e)=>{const{__scopeSwitch:r,name:n,checked:s,defaultChecked:i,required:o,disabled:a,value:c="on",onCheckedChange:l,...u}=t,[f,d]=m.useState(null),h=$e(e,g=>d(g)),y=m.useRef(!1),p=f?!!f.closest("form"):!0,[b=!1,v]=is({prop:s,defaultProp:i,onChange:l});return E.jsxs(AZ,{scope:r,checked:b,disabled:a,children:[E.jsx(Ae.button,{type:"button",role:"switch","aria-checked":b,"aria-required":o,"data-state":j9(b),"data-disabled":a?"":void 0,disabled:a,value:c,...u,ref:h,onClick:ce(t.onClick,g=>{v(x=>!x),p&&(y.current=g.isPropagationStopped(),y.current||g.stopPropagation())})}),p&&E.jsx(IZ,{control:f,bubbles:!y.current,name:n,value:c,checked:b,required:o,disabled:a,style:{transform:"translateX(-100%)"}})]})});TZ.displayName=n5;var L9="SwitchThumb",PZ=m.forwardRef((t,e)=>{const{__scopeSwitch:r,...n}=t,s=SZ(L9,r);return E.jsx(Ae.span,{"data-state":j9(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:e})});PZ.displayName=L9;var IZ=t=>{const{control:e,checked:r,bubbles:n=!0,...s}=t,i=m.useRef(null),o=lg(r),a=ug(e);return m.useEffect(()=>{const c=i.current,l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"checked").set;if(o!==r&&f){const d=new Event("click",{bubbles:n});f.call(c,r),c.dispatchEvent(d)}},[o,r,n]),E.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:i,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function j9(t){return t?"checked":"unchecked"}At({defaultClassName:"nwwh3z8",variantClassNames:{variant:{pill:"nwwh3z9",line:"nwwh3za nwwh3z1 fyvr11g0"},active:{true:"nwwh3zb nwwh3z2 fyvr12w5",false:"nwwh3zc"},disabled:{true:"nwwh3zd nwwh3z3 fyvr12vp"}},defaultVariants:{},compoundVariants:[[{active:!0,variant:"pill"},"nwwh3z4 fyvr11u7 fyvr12sj"],[{active:!1,variant:"pill"},"nwwh3z5 fyvr11od fyvr12s7"],[{active:!0,variant:"line"},"nwwh3z6 fyvr12s1"],[{active:!1,variant:"line"},"nwwh3z7 fyvr12s7"]]});var s5="Tabs",[OZ,Wde]=Mr(s5,[vd]),F9=vd(),[RZ,i5]=OZ(s5),NZ=m.forwardRef((t,e)=>{const{__scopeTabs:r,value:n,onValueChange:s,defaultValue:i,orientation:o="horizontal",dir:a,activationMode:c="automatic",...l}=t,u=a1(a),[f,d]=is({prop:n,onChange:s,defaultProp:i});return E.jsx(RZ,{scope:r,baseId:es(),value:f,onValueChange:d,orientation:o,dir:u,activationMode:c,children:E.jsx(Ae.div,{dir:u,"data-orientation":o,...l,ref:e})})});NZ.displayName=s5;var U9="TabsList",_Z=m.forwardRef((t,e)=>{const{__scopeTabs:r,loop:n=!0,...s}=t,i=i5(U9,r),o=F9(r);return E.jsx(_E,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:n,children:E.jsx(Ae.div,{role:"tablist","aria-orientation":i.orientation,...s,ref:e})})});_Z.displayName=U9;var $9="TabsTrigger",MZ=m.forwardRef((t,e)=>{const{__scopeTabs:r,value:n,disabled:s=!1,...i}=t,o=i5($9,r),a=F9(r),c=V9(o.baseId,n),l=H9(o.baseId,n),u=n===o.value;return E.jsx(ME,{asChild:!0,...a,focusable:!s,active:u,children:E.jsx(Ae.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:c,...i,ref:e,onMouseDown:ce(t.onMouseDown,f=>{!s&&f.button===0&&f.ctrlKey===!1?o.onValueChange(n):f.preventDefault()}),onKeyDown:ce(t.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&o.onValueChange(n)}),onFocus:ce(t.onFocus,()=>{const f=o.activationMode!=="manual";!u&&!s&&f&&o.onValueChange(n)})})})});MZ.displayName=$9;var W9="TabsContent",DZ=m.forwardRef((t,e)=>{const{__scopeTabs:r,value:n,forceMount:s,children:i,...o}=t,a=i5(W9,r),c=V9(a.baseId,n),l=H9(a.baseId,n),u=n===a.value,f=m.useRef(u);return m.useEffect(()=>{const d=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(d)},[]),E.jsx(Xr,{present:s||u,children:({present:d})=>E.jsx(Ae.div,{"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":c,hidden:!d,id:l,tabIndex:0,...o,ref:e,style:{...t.style,animationDuration:f.current?"0s":void 0},children:d&&i})})});DZ.displayName=W9;function V9(t,e){return`${t}-trigger-${e}`}function H9(t,e){return`${t}-content-${e}`}var BZ="_1ppqbnx1 _1qxj1ib9 _1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc _1ppqbnx0 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1wo fyvr1yk fyvr1ss fyvr1uo fyvr11hc fyvr118c fyvr11n9";m.forwardRef((t,e)=>{const{icon:r,label:n,...s}=t;return E.jsxs(me,{className:BZ,ref:e,background:"buttonGlass",color:"text80",...s,children:[r&&E.jsx(r,{size:"xs"}),E.jsx(Tt,{children:n})]})});var LZ="ToastProvider",[z9,jZ,FZ]=fg("Toast"),[G9,Vde]=Mr("Toast",[FZ]),[Hde,Eg]=G9(LZ),q9="ToastViewport",UZ=["F8"],xw="toast.viewportPause",bw="toast.viewportResume",$Z=m.forwardRef((t,e)=>{const{__scopeToast:r,hotkey:n=UZ,label:s="Notifications ({hotkey})",...i}=t,o=Eg(q9,r),a=jZ(r),c=m.useRef(null),l=m.useRef(null),u=m.useRef(null),f=m.useRef(null),d=$e(e,f,o.onViewportChange),h=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=o.toastCount>0;m.useEffect(()=>{const b=v=>{var g;n.every(k=>v[k]||v.code===k)&&((g=f.current)==null||g.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[n]),m.useEffect(()=>{const b=c.current,v=f.current;if(y&&b&&v){const g=()=>{if(!o.isClosePausedRef.current){const I=new CustomEvent(xw);v.dispatchEvent(I),o.isClosePausedRef.current=!0}},x=()=>{if(o.isClosePausedRef.current){const I=new CustomEvent(bw);v.dispatchEvent(I),o.isClosePausedRef.current=!1}},k=I=>{!b.contains(I.relatedTarget)&&x()},S=()=>{b.contains(document.activeElement)||x()};return b.addEventListener("focusin",g),b.addEventListener("focusout",k),b.addEventListener("pointermove",g),b.addEventListener("pointerleave",S),window.addEventListener("blur",g),window.addEventListener("focus",x),()=>{b.removeEventListener("focusin",g),b.removeEventListener("focusout",k),b.removeEventListener("pointermove",g),b.removeEventListener("pointerleave",S),window.removeEventListener("blur",g),window.removeEventListener("focus",x)}}},[y,o.isClosePausedRef]);const p=m.useCallback(({tabbingDirection:b})=>{const g=a().map(x=>{const k=x.ref.current,S=[k,...see(k)];return b==="forwards"?S:S.reverse()});return(b==="forwards"?g.reverse():g).flat()},[a]);return m.useEffect(()=>{const b=f.current;if(b){const v=g=>{var x,k,S;const I=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!I){const _=document.activeElement,V=g.shiftKey;if(g.target===b&&V){(x=l.current)==null||x.focus();return}const re=p({tabbingDirection:V?"backwards":"forwards"}),le=re.findIndex(ee=>ee===_);px(re.slice(le+1))?g.preventDefault():V?(k=l.current)==null||k.focus():(S=u.current)==null||S.focus()}};return b.addEventListener("keydown",v),()=>b.removeEventListener("keydown",v)}},[a,p]),E.jsxs(Zq,{ref:c,role:"region","aria-label":s.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&E.jsx(ww,{ref:l,onFocusFromOutsideViewport:()=>{const b=p({tabbingDirection:"forwards"});px(b)}}),E.jsx(z9.Slot,{scope:r,children:E.jsx(Ae.ol,{tabIndex:-1,...i,ref:d})}),y&&E.jsx(ww,{ref:u,onFocusFromOutsideViewport:()=>{const b=p({tabbingDirection:"backwards"});px(b)}})]})});$Z.displayName=q9;var K9="ToastFocusProxy",ww=m.forwardRef((t,e)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...s}=t,i=Eg(K9,r);return E.jsx(d1,{"aria-hidden":!0,tabIndex:0,...s,ref:e,style:{position:"fixed"},onFocus:o=>{var a;const c=o.relatedTarget;!((a=i.viewport)!=null&&a.contains(c))&&n()}})});ww.displayName=K9;var kg="Toast",WZ="toast.swipeStart",VZ="toast.swipeMove",HZ="toast.swipeCancel",zZ="toast.swipeEnd",GZ=m.forwardRef((t,e)=>{const{forceMount:r,open:n,defaultOpen:s,onOpenChange:i,...o}=t,[a=!0,c]=is({prop:n,defaultProp:s,onChange:i});return E.jsx(Xr,{present:r||a,children:E.jsx(QZ,{open:a,...o,ref:e,onClose:()=>c(!1),onPause:_r(t.onPause),onResume:_r(t.onResume),onSwipeStart:ce(t.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ce(t.onSwipeMove,l=>{const{x:u,y:f}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","move"),l.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:ce(t.onSwipeCancel,l=>{l.currentTarget.setAttribute("data-swipe","cancel"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ce(t.onSwipeEnd,l=>{const{x:u,y:f}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","end"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),c(!1)})})})});GZ.displayName=kg;var[qZ,KZ]=G9(kg,{onClose(){}}),QZ=m.forwardRef((t,e)=>{const{__scopeToast:r,type:n="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:c,onResume:l,onSwipeStart:u,onSwipeMove:f,onSwipeCancel:d,onSwipeEnd:h,...y}=t,p=Eg(kg,r),[b,v]=m.useState(null),g=$e(e,ee=>v(ee)),x=m.useRef(null),k=m.useRef(null),S=s||p.duration,I=m.useRef(0),R=m.useRef(S),_=m.useRef(0),{onToastAdd:V,onToastRemove:F}=p,X=_r(()=>{var ee;(b==null?void 0:b.contains(document.activeElement))&&((ee=p.viewport)==null||ee.focus()),o()}),re=m.useCallback(ee=>{!ee||ee===1/0||(window.clearTimeout(_.current),I.current=new Date().getTime(),_.current=window.setTimeout(X,ee))},[X]);m.useEffect(()=>{const ee=p.viewport;if(ee){const D=()=>{re(R.current),l==null||l()},G=()=>{const Z=new Date().getTime()-I.current;R.current=R.current-Z,window.clearTimeout(_.current),c==null||c()};return ee.addEventListener(xw,G),ee.addEventListener(bw,D),()=>{ee.removeEventListener(xw,G),ee.removeEventListener(bw,D)}}},[p.viewport,S,c,l,re]),m.useEffect(()=>{i&&!p.isClosePausedRef.current&&re(S)},[i,S,p.isClosePausedRef,re]),m.useEffect(()=>(V(),()=>F()),[V,F]);const le=m.useMemo(()=>b?Z9(b):null,[b]);return p.viewport?E.jsxs(E.Fragment,{children:[le&&E.jsx(JZ,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:le}),E.jsx(qZ,{scope:r,onClose:X,children:ja.createPortal(E.jsx(z9.ItemSlot,{scope:r,children:E.jsx(Xq,{asChild:!0,onEscapeKeyDown:ce(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||X(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:E.jsx(Ae.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":p.swipeDirection,...y,ref:g,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:ce(t.onKeyDown,ee=>{ee.key==="Escape"&&(a==null||a(ee.nativeEvent),ee.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,X()))}),onPointerDown:ce(t.onPointerDown,ee=>{ee.button===0&&(x.current={x:ee.clientX,y:ee.clientY})}),onPointerMove:ce(t.onPointerMove,ee=>{if(!x.current)return;const D=ee.clientX-x.current.x,G=ee.clientY-x.current.y,Z=!!k.current,C=["left","right"].includes(p.swipeDirection),A=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,O=C?A(0,D):0,M=C?0:A(0,G),B=ee.pointerType==="touch"?10:2,W={x:O,y:M},q={originalEvent:ee,delta:W};Z?(k.current=W,sp(VZ,f,q,{discrete:!1})):FS(W,p.swipeDirection,B)?(k.current=W,sp(WZ,u,q,{discrete:!1}),ee.target.setPointerCapture(ee.pointerId)):(Math.abs(D)>B||Math.abs(G)>B)&&(x.current=null)}),onPointerUp:ce(t.onPointerUp,ee=>{const D=k.current,G=ee.target;if(G.hasPointerCapture(ee.pointerId)&&G.releasePointerCapture(ee.pointerId),k.current=null,x.current=null,D){const Z=ee.currentTarget,C={originalEvent:ee,delta:D};FS(D,p.swipeDirection,p.swipeThreshold)?sp(zZ,h,C,{discrete:!0}):sp(HZ,d,C,{discrete:!0}),Z.addEventListener("click",A=>A.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),JZ=t=>{const{__scopeToast:e,children:r,...n}=t,s=Eg(kg,e),[i,o]=m.useState(!1),[a,c]=m.useState(!1);return ree(()=>o(!0)),m.useEffect(()=>{const l=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(l)},[]),a?null:E.jsx(l1,{asChild:!0,children:E.jsx(d1,{...n,children:i&&E.jsxs(E.Fragment,{children:[s.label," ",r]})})})},YZ="ToastTitle",XZ=m.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return E.jsx(Ae.div,{...n,ref:e})});XZ.displayName=YZ;var ZZ="ToastDescription",eee=m.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return E.jsx(Ae.div,{...n,ref:e})});eee.displayName=ZZ;var Q9="ToastAction",tee=m.forwardRef((t,e)=>{const{altText:r,...n}=t;return r.trim()?E.jsx(X9,{altText:r,asChild:!0,children:E.jsx(Y9,{...n,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${Q9}\`. Expected non-empty \`string\`.`),null)});tee.displayName=Q9;var J9="ToastClose",Y9=m.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t,s=KZ(J9,r);return E.jsx(X9,{asChild:!0,children:E.jsx(Ae.button,{type:"button",...n,ref:e,onClick:ce(t.onClick,s.onClose)})})});Y9.displayName=J9;var X9=m.forwardRef((t,e)=>{const{__scopeToast:r,altText:n,...s}=t;return E.jsx(Ae.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:e})});function Z9(t){const e=[];return Array.from(t.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&e.push(n.textContent),nee(n)){const s=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=n.dataset.radixToastAnnounceAlt;o&&e.push(o)}else e.push(...Z9(n))}}),e}function sp(t,e,r,{discrete:n}){const s=r.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r});e&&s.addEventListener(t,e,{once:!0}),n?hE(s,i):s.dispatchEvent(i)}var FS=(t,e,r=0)=>{const n=Math.abs(t.x),s=Math.abs(t.y),i=n>s;return e==="left"||e==="right"?i&&n>r:!i&&s>r};function ree(t=()=>{}){const e=_r(t);xr(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[e])}function nee(t){return t.nodeType===t.ELEMENT_NODE}function see(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function px(t){const e=document.activeElement;return t.some(r=>r===e?!0:(r.focus(),document.activeElement!==e))}At({defaultClassName:"_6wut8v3",variantClassNames:{variant:{normal:"_6wut8v4",success:"_6wut8v5",error:"_6wut8v6"}},defaultVariants:{},compoundVariants:[]});m.createContext(null);var iee="_15pztn1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _15pztn0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11od fyvr12s1 fyvr12o1 fyvr12wj fyvr128 fyvr11h0",oee="_15pztn2";m.forwardRef((t,e)=>{const{as:r="textarea",autoComplete:n="off",borderRadius:s="md",description:i,disabled:o=!1,id:a,label:c="",labelLocation:l="hidden",name:u,rows:f,resize:d=!1,...h}=t;return E.jsx(ud,{description:i,disabled:o,display:"grid",id:a??u,label:c,labelLocation:l,children:E.jsx(me,{as:r,autoComplete:n,spellCheck:"false",className:Yr(iee,d&&oee),disabled:o,id:a??u,name:u,ref:e,rows:f,borderRadius:s,...h})})});var aee=At({defaultClassName:"_18h918k5 _18h918k0 fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11h0",variantClassNames:{size:{xs:"_18h918k6",sm:"_18h918k7",md:"_18h918k8",lg:"_18h918k9",xl:"_18h918ka"},borderRadius:{circle:"_18h918kb _18h918k1 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",lg:"_18h918kc _18h918k2 fyvr11d8 fyvr11dw fyvr11bw fyvr11ck",md:"_18h918kd _18h918k3 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg",sm:"_18h918ke _18h918k4 fyvr11d0 fyvr11do fyvr11bo fyvr11cc"}},defaultVariants:{},compoundVariants:[]}),cee="_18h918kf";const lee=m.memo(t=>{const{chainId:e,borderRadius:r="circle",className:n,disableAnimation:s=!1,style:i,src:o,size:a="md",...c}=t,l=o||HG(zG(e),a);return E.jsx(me,{className:Yr(n,aee({borderRadius:r,size:a})),style:i,flexShrink:"0",...c,children:E.jsx(zE,{className:cee,disableAnimation:s,src:l})})});var uee=At({defaultClassName:"bnrreb1 bnrreb0 fyvr11jg fyvr11ko fyvr11hw fyvr11h0",variantClassNames:{size:{xs:"bnrreb2",sm:"bnrreb3",md:"bnrreb4",lg:"bnrreb5",xl:"bnrreb6"}},defaultVariants:{},compoundVariants:[]}),fee="bnrreb7",dee="bnrreb9 bnrreb8 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11sj fyvr128 fyvr15o fyvr11h0";const hee=m.memo(t=>{const{borderRadius:e="circle",className:r,disableAnimation:n=!1,style:s,src:i,symbol:o,size:a="md",withNetwork:c,...l}=t;return E.jsxs(me,{className:Yr(r,uee({size:a})),style:s,flexShrink:"0",...l,children:[i?E.jsx(zE,{className:fee,disableAnimation:n,borderRadius:e,overflow:"hidden",src:i}):E.jsx(Tt,{className:dee,variant:"normal",fontWeight:"medium",color:"text50",borderRadius:e,overflow:"hidden",uppercase:!0,children:o==null?void 0:o.replace(/\s/,"").slice(0,4)}),c&&E.jsx(me,{position:"absolute",zIndex:"1",borderRadius:"circle",borderWidth:"thin",borderStyle:"solid",borderColor:"backgroundPrimary",background:"backgroundPrimary",placeItems:"center",style:{width:18,height:18,right:-2,bottom:-2},children:E.jsx(lee,{chainId:c,style:{width:16,height:16}})})]})});var[Ag,zde]=Mr("Tooltip",[yd]),Sg=yd(),eR="TooltipProvider",pee=700,Cw="tooltip.open",[yee,o5]=Ag(eR),vee=t=>{const{__scopeTooltip:e,delayDuration:r=pee,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:i}=t,[o,a]=m.useState(!0),c=m.useRef(!1),l=m.useRef(0);return m.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),E.jsx(yee,{scope:e,isOpenDelayed:o,delayDuration:r,onOpen:m.useCallback(()=>{window.clearTimeout(l.current),a(!1)},[]),onClose:m.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a(!0),n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:m.useCallback(u=>{c.current=u},[]),disableHoverableContent:s,children:i})};vee.displayName=eR;var Tg="Tooltip",[gee,p1]=Ag(Tg),mee=t=>{const{__scopeTooltip:e,children:r,open:n,defaultOpen:s=!1,onOpenChange:i,disableHoverableContent:o,delayDuration:a}=t,c=o5(Tg,t.__scopeTooltip),l=Sg(e),[u,f]=m.useState(null),d=es(),h=m.useRef(0),y=o??c.disableHoverableContent,p=a??c.delayDuration,b=m.useRef(!1),[v=!1,g]=is({prop:n,defaultProp:s,onChange:R=>{R?(c.onOpen(),document.dispatchEvent(new CustomEvent(Cw))):c.onClose(),i==null||i(R)}}),x=m.useMemo(()=>v?b.current?"delayed-open":"instant-open":"closed",[v]),k=m.useCallback(()=>{window.clearTimeout(h.current),b.current=!1,g(!0)},[g]),S=m.useCallback(()=>{window.clearTimeout(h.current),g(!1)},[g]),I=m.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,g(!0)},p)},[p,g]);return m.useEffect(()=>()=>window.clearTimeout(h.current),[]),E.jsx(IE,{...l,children:E.jsx(gee,{scope:e,contentId:d,open:v,stateAttribute:x,trigger:u,onTriggerChange:f,onTriggerEnter:m.useCallback(()=>{c.isOpenDelayed?I():k()},[c.isOpenDelayed,I,k]),onTriggerLeave:m.useCallback(()=>{y?S():window.clearTimeout(h.current)},[S,y]),onOpen:k,onClose:S,disableHoverableContent:y,children:r})})};mee.displayName=Tg;var Ew="TooltipTrigger",xee=m.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,s=p1(Ew,r),i=o5(Ew,r),o=Sg(r),a=m.useRef(null),c=$e(e,a,s.onTriggerChange),l=m.useRef(!1),u=m.useRef(!1),f=m.useCallback(()=>l.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),E.jsx(OE,{asChild:!0,...o,children:E.jsx(Ae.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:c,onPointerMove:ce(t.onPointerMove,d=>{d.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:ce(t.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:ce(t.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ce(t.onFocus,()=>{l.current||s.onOpen()}),onBlur:ce(t.onBlur,s.onClose),onClick:ce(t.onClick,s.onClose)})})});xee.displayName=Ew;var a5="TooltipPortal",[bee,wee]=Ag(a5,{forceMount:void 0}),Cee=t=>{const{__scopeTooltip:e,forceMount:r,children:n,container:s}=t,i=p1(a5,e);return E.jsx(bee,{scope:e,forceMount:r,children:E.jsx(Xr,{present:r||i.open,children:E.jsx(l1,{asChild:!0,container:s,children:n})})})};Cee.displayName=a5;var $f="TooltipContent",Eee=m.forwardRef((t,e)=>{const r=wee($f,t.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...i}=t,o=p1($f,t.__scopeTooltip);return E.jsx(Xr,{present:n||o.open,children:o.disableHoverableContent?E.jsx(tR,{side:s,...i,ref:e}):E.jsx(kee,{side:s,...i,ref:e})})}),kee=m.forwardRef((t,e)=>{const r=p1($f,t.__scopeTooltip),n=o5($f,t.__scopeTooltip),s=m.useRef(null),i=$e(e,s),[o,a]=m.useState(null),{trigger:c,onClose:l}=r,u=s.current,{onPointerInTransitChange:f}=n,d=m.useCallback(()=>{a(null),f(!1)},[f]),h=m.useCallback((y,p)=>{const b=y.currentTarget,v={x:y.clientX,y:y.clientY},g=Pee(v,b.getBoundingClientRect()),x=Iee(v,g),k=Oee(p.getBoundingClientRect()),S=Nee([...x,...k]);a(S),f(!0)},[f]);return m.useEffect(()=>()=>d(),[d]),m.useEffect(()=>{if(c&&u){const y=b=>h(b,u),p=b=>h(b,c);return c.addEventListener("pointerleave",y),u.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",y),u.removeEventListener("pointerleave",p)}}},[c,u,h,d]),m.useEffect(()=>{if(o){const y=p=>{const b=p.target,v={x:p.clientX,y:p.clientY},g=(c==null?void 0:c.contains(b))||(u==null?void 0:u.contains(b)),x=!Ree(v,o);g?d():x&&(d(),l())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[c,u,o,l,d]),E.jsx(tR,{...t,ref:i})}),[Aee,See]=Ag(Tg,{isInside:!1}),tR=m.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=t,c=p1($f,r),l=Sg(r),{onClose:u}=c;return m.useEffect(()=>(document.addEventListener(Cw,u),()=>document.removeEventListener(Cw,u)),[u]),m.useEffect(()=>{if(c.trigger){const f=d=>{const h=d.target;h!=null&&h.contains(c.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,u]),E.jsx(dd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:E.jsxs(RE,{"data-state":c.stateAttribute,...l,...a,ref:e,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[E.jsx(hI,{children:n}),E.jsx(Aee,{scope:r,isInside:!0,children:E.jsx(UX,{id:c.contentId,role:"tooltip",children:s||n})})]})})});Eee.displayName=$f;var rR="TooltipArrow",Tee=m.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,s=Sg(r);return See(rR,r).isInside?null:E.jsx(NE,{...s,...n,ref:e})});Tee.displayName=rR;function Pee(t,e){const r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),s=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(r,n,s,i)){case i:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Iee(t,e,r=5){const n=[];switch(e){case"top":n.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":n.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":n.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":n.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return n}function Oee(t){const{top:e,right:r,bottom:n,left:s}=t;return[{x:s,y:e},{x:r,y:e},{x:r,y:n},{x:s,y:n}]}function Ree(t,e){const{x:r,y:n}=t;let s=!1;for(let i=0,o=e.length-1;in!=u>n&&r<(l-a)*(n-c)/(u-c)+a&&(s=!s)}return s}function Nee(t){const e=t.slice();return e.sort((r,n)=>r.xn.x?1:r.yn.y?1:0),_ee(e)}function _ee(t){if(t.length<=1)return t.slice();const e=[];for(let n=0;n=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))e.pop();else break}e.push(s)}e.pop();const r=[];for(let n=t.length-1;n>=0;n--){const s=t[n];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))r.pop();else break}r.push(s)}return r.pop(),e.length===1&&r.length===1&&e[0].x===r[0].x&&e[0].y===r[0].y?e:e.concat(r)}var nR,US=ja;nR=US.createRoot,US.hydrateRoot;const c5="6.13.2";function Mee(t,e,r){const n=e.split("|").map(i=>i.trim());for(let i=0;iPromise.resolve(t[n])))).reduce((n,s,i)=>(n[e[i]]=s,n),{})}function fe(t,e,r){for(let n in e){let s=e[n];const i=r?r[n]:null;i&&Mee(s,i,n),Object.defineProperty(t,n,{enumerable:!0,value:s,writable:!1})}}function fu(t){if(t==null)return"null";if(Array.isArray(t))return"[ "+t.map(fu).join(", ")+" ]";if(t instanceof Uint8Array){const e="0123456789abcdef";let r="0x";for(let n=0;n>4],r+=e[t[n]&15];return r}if(typeof t=="object"&&typeof t.toJSON=="function")return fu(t.toJSON());switch(typeof t){case"boolean":case"symbol":return t.toString();case"bigint":return BigInt(t).toString();case"number":return t.toString();case"string":return JSON.stringify(t);case"object":{const e=Object.keys(t);return e.sort(),"{ "+e.map(r=>`${fu(r)}: ${fu(t[r])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function Ht(t,e){return t&&t.code===e}function Pg(t){return Ht(t,"CALL_EXCEPTION")}function ft(t,e,r){let n=t;{const i=[];if(r){if("message"in r||"code"in r||"name"in r)throw new Error(`value will overwrite populated values: ${fu(r)}`);for(const o in r){if(o==="shortMessage")continue;const a=r[o];i.push(o+"="+fu(a))}}i.push(`code=${e}`),i.push(`version=${c5}`),i.length&&(t+=" ("+i.join(", ")+")")}let s;switch(e){case"INVALID_ARGUMENT":s=new TypeError(t);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":s=new RangeError(t);break;default:s=new Error(t)}return fe(s,{code:e}),r&&Object.assign(s,r),s.shortMessage==null&&fe(s,{shortMessage:n}),s}function z(t,e,r,n){if(!t)throw ft(e,r,n)}function P(t,e,r,n){z(t,e,"INVALID_ARGUMENT",{argument:r,value:n})}function l5(t,e,r){r==null&&(r=""),r&&(r=": "+r),z(t>=e,"missing arguemnt"+r,"MISSING_ARGUMENT",{count:t,expectedCount:e}),z(t<=e,"too many arguments"+r,"UNEXPECTED_ARGUMENT",{count:t,expectedCount:e})}const Dee=["NFD","NFC","NFKD","NFKC"].reduce((t,e)=>{try{if("test".normalize(e)!=="test")throw new Error("bad");if(e==="NFD"&&"é".normalize("NFD")!=="é")throw new Error("broken");t.push(e)}catch{}return t},[]);function u5(t){z(Dee.indexOf(t)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:t}})}function po(t,e,r){if(r==null&&(r=""),t!==e){let n=r,s="new";r&&(n+=".",s+=" "+r),z(!1,`private constructor; use ${n}from* methods`,"UNSUPPORTED_OPERATION",{operation:s})}}function sR(t,e,r){if(t instanceof Uint8Array)return r?new Uint8Array(t):t;if(typeof t=="string"&&t.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)){const n=new Uint8Array((t.length-2)/2);let s=2;for(let i=0;i>4]+$S[s&15]}return r}function Le(t){return"0x"+t.map(e=>H(e).substring(2)).join("")}function xa(t){return et(t,!0)?(t.length-2)/2:Q(t).length}function st(t,e,r){const n=Q(t);return r!=null&&r>n.length&&z(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:n,length:n.length,offset:r}),H(n.slice(e??0,r??n.length))}function Bee(t){let e=H(t).substring(2);for(;e.startsWith("00");)e=e.substring(2);return"0x"+e}function iR(t,e,r){const n=Q(t);z(e>=n.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(n),length:e,offset:e+1});const s=new Uint8Array(e);return s.fill(0),r?s.set(n,e-n.length):s.set(n,0),H(s)}function rs(t,e){return iR(t,e,!0)}function Ig(t,e){return iR(t,e,!1)}const Og=BigInt(0),ks=BigInt(1),du=9007199254740991;function h0(t,e){const r=y1(t,"value"),n=BigInt(Pe(e,"width"));if(z(r>>n===Og,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:t}),r>>n-ks){const s=(ks<=-du&&t<=du,"overflow",e||"value",t),BigInt(t);case"string":try{if(t==="")throw new Error("empty string");return t[0]==="-"&&t[1]!=="-"?-BigInt(t.substring(1)):BigInt(t)}catch(r){P(!1,`invalid BigNumberish string: ${r.message}`,e||"value",t)}}P(!1,"invalid BigNumberish value",e||"value",t)}function y1(t,e){const r=ve(t,e);return z(r>=Og,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:t}),r}const WS="0123456789abcdef";function md(t){if(t instanceof Uint8Array){let e="0x0";for(const r of t)e+=WS[r>>4],e+=WS[r&15];return BigInt(e)}return ve(t)}function Pe(t,e){switch(typeof t){case"bigint":return P(t>=-du&&t<=du,"overflow",e||"value",t),Number(t);case"number":return P(Number.isInteger(t),"underflow",e||"value",t),P(t>=-du&&t<=du,"overflow",e||"value",t),t;case"string":try{if(t==="")throw new Error("empty string");return Pe(BigInt(t),e)}catch(r){P(!1,`invalid numeric string: ${r.message}`,e||"value",t)}}P(!1,"invalid numeric value",e||"value",t)}function oR(t){return Pe(md(t))}function In(t,e){let n=y1(t,"value").toString(16);if(e==null)n.length%2&&(n="0"+n);else{const s=Pe(e,"width");for(z(s*2>=n.length,`value exceeds width (${s} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:t});n.length>6===2;o++)i++;return i}return t==="OVERRUN"?r.length-e-1:0}function Uee(t,e,r,n,s){return t==="OVERLONG"?(P(typeof s=="number","invalid bad code point for replacement","badCodepoint",s),n.push(s),0):(n.push(65533),uR(t,e,r))}const fR=Object.freeze({error:Fee,ignore:uR,replace:Uee});function dR(t,e){e==null&&(e=fR.error);const r=Q(t,"bytes"),n=[];let s=0;for(;s>7)){n.push(i);continue}let o=null,a=null;if((i&224)===192)o=1,a=127;else if((i&240)===224)o=2,a=2047;else if((i&248)===240)o=3,a=65535;else{(i&192)===128?s+=e("UNEXPECTED_CONTINUE",s-1,r,n):s+=e("BAD_PREFIX",s-1,r,n);continue}if(s-1+o>=r.length){s+=e("OVERRUN",s-1,r,n);continue}let c=i&(1<<8-o-1)-1;for(let l=0;l1114111){s+=e("OUT_OF_RANGE",s-1-o,r,n,c);continue}if(c>=55296&&c<=57343){s+=e("UTF16_SURROGATE",s-1-o,r,n,c);continue}if(c<=a){s+=e("OVERLONG",s-1-o,r,n,c);continue}n.push(c)}}return n}function mt(t,e){P(typeof t=="string","invalid string value","str",t),e!=null&&(u5(e),t=t.normalize(e));let r=[];for(let n=0;n>6|192),r.push(s&63|128);else if((s&64512)==55296){n++;const i=t.charCodeAt(n);P(n>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(o&63|128)}else r.push(s>>12|224),r.push(s>>6&63|128),r.push(s&63|128)}return new Uint8Array(r)}function $ee(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function Ms(t,e){return $ee(dR(t,e))}function Wee(t,e){return dR(mt(t,e))}function hR(t){async function e(r,n){z(n==null||!n.cancelled,"request cancelled before sending","CANCELLED");const s=r.url.split(":")[0].toLowerCase();z(s==="http"||s==="https",`unsupported protocol ${s}`,"UNSUPPORTED_OPERATION",{info:{protocol:s},operation:"request"}),z(s==="https"||!r.credentials||r.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let i=null;const o=new AbortController,a=setTimeout(()=>{i=ft("request timeout","TIMEOUT"),o.abort()},r.timeout);n&&n.addListener(()=>{i=ft("request cancelled","CANCELLED"),o.abort()});const c={method:r.method,headers:new Headers(Array.from(r)),body:r.body||void 0,signal:o.signal};let l;try{l=await fetch(r.url,c)}catch(h){throw clearTimeout(a),i||h}clearTimeout(a);const u={};l.headers.forEach((h,y)=>{u[y.toLowerCase()]=h});const f=await l.arrayBuffer(),d=f==null?null:new Uint8Array(f);return{statusCode:l.status,statusMessage:l.statusText,headers:u,body:d}}return e}const Vee=12,Hee=250;let VS=hR();const zee=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),Gee=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let yx=!1;async function pR(t,e){try{const r=t.match(zee);if(!r)throw new Error("invalid data");return new Xi(200,"OK",{"content-type":r[1]||"text/plain"},r[2]?cR(r[3]):qee(r[3]))}catch{return new Xi(599,"BAD REQUEST (invalid data: URI)",{},null,new qt(t))}}function yR(t){async function e(r,n){try{const s=r.match(Gee);if(!s)throw new Error("invalid link");return new qt(`${t}${s[2]}`)}catch{return new Xi(599,"BAD REQUEST (invalid IPFS URI)",{},null,new qt(r))}}return e}const op={data:pR,ipfs:yR("https://gateway.ipfs.io/ipfs/")},vR=new WeakMap;var Cc,jo;class gR{constructor(e){j(this,Cc);j(this,jo);T(this,Cc,[]),T(this,jo,!1),vR.set(e,()=>{if(!w(this,jo)){T(this,jo,!0);for(const r of w(this,Cc))setTimeout(()=>{r()},0);T(this,Cc,[])}})}addListener(e){z(!w(this,jo),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),w(this,Cc).push(e)}get cancelled(){return w(this,jo)}checkSignal(){z(!this.cancelled,"cancelled","CANCELLED",{})}}Cc=new WeakMap,jo=new WeakMap;function ap(t){if(t==null)throw new Error("missing signal; should not happen");return t.checkSignal(),t}var Fu,Uu,vs,Ii,$u,Wu,Jt,xn,Oi,Ec,kc,Ac,Ks,gs,Fo,Sc,Zd;const Ov=class Ov{constructor(e){j(this,Sc);j(this,Fu);j(this,Uu);j(this,vs);j(this,Ii);j(this,$u);j(this,Wu);j(this,Jt);j(this,xn);j(this,Oi);j(this,Ec);j(this,kc);j(this,Ac);j(this,Ks);j(this,gs);j(this,Fo);T(this,Wu,String(e)),T(this,Fu,!1),T(this,Uu,!0),T(this,vs,{}),T(this,Ii,""),T(this,$u,3e5),T(this,gs,{slotInterval:Hee,maxAttempts:Vee}),T(this,Fo,null)}get url(){return w(this,Wu)}set url(e){T(this,Wu,String(e))}get body(){return w(this,Jt)==null?null:new Uint8Array(w(this,Jt))}set body(e){if(e==null)T(this,Jt,void 0),T(this,xn,void 0);else if(typeof e=="string")T(this,Jt,mt(e)),T(this,xn,"text/plain");else if(e instanceof Uint8Array)T(this,Jt,e),T(this,xn,"application/octet-stream");else if(typeof e=="object")T(this,Jt,mt(JSON.stringify(e))),T(this,xn,"application/json");else throw new Error("invalid body")}hasBody(){return w(this,Jt)!=null}get method(){return w(this,Ii)?w(this,Ii):this.hasBody()?"POST":"GET"}set method(e){e==null&&(e=""),T(this,Ii,String(e).toUpperCase())}get headers(){const e=Object.assign({},w(this,vs));return w(this,Oi)&&(e.authorization=`Basic ${lR(mt(w(this,Oi)))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),e["content-type"]==null&&w(this,xn)&&(e["content-type"]=w(this,xn)),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,r){w(this,vs)[String(e).toLowerCase()]=String(r)}clearHeaders(){T(this,vs,{})}[Symbol.iterator](){const e=this.headers,r=Object.keys(e);let n=0;return{next:()=>{if(n=0,"timeout must be non-zero","timeout",e),T(this,$u,e)}get preflightFunc(){return w(this,Ec)||null}set preflightFunc(e){T(this,Ec,e)}get processFunc(){return w(this,kc)||null}set processFunc(e){T(this,kc,e)}get retryFunc(){return w(this,Ac)||null}set retryFunc(e){T(this,Ac,e)}get getUrlFunc(){return w(this,Fo)||VS}set getUrlFunc(e){T(this,Fo,e)}toString(){return``}setThrottleParams(e){e.slotInterval!=null&&(w(this,gs).slotInterval=e.slotInterval),e.maxAttempts!=null&&(w(this,gs).maxAttempts=e.maxAttempts)}send(){return z(w(this,Ks)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),T(this,Ks,new gR(this)),Y(this,Sc,Zd).call(this,0,HS()+this.timeout,0,this,new Xi(0,"",{},null,this))}cancel(){z(w(this,Ks)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=vR.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const r=this.url.split(":")[0].toLowerCase(),n=e.split(":")[0].toLowerCase();z(this.method==="GET"&&(r!=="https"||n!=="http")&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});const s=new Ov(e);return s.method="GET",s.allowGzip=this.allowGzip,s.timeout=this.timeout,T(s,vs,Object.assign({},w(this,vs))),w(this,Jt)&&T(s,Jt,new Uint8Array(w(this,Jt))),T(s,xn,w(this,xn)),s}clone(){const e=new Ov(this.url);return T(e,Ii,w(this,Ii)),w(this,Jt)&&T(e,Jt,w(this,Jt)),T(e,xn,w(this,xn)),T(e,vs,Object.assign({},w(this,vs))),T(e,Oi,w(this,Oi)),this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),T(e,Ec,w(this,Ec)),T(e,kc,w(this,kc)),T(e,Ac,w(this,Ac)),T(e,gs,Object.assign({},w(this,gs))),T(e,Fo,w(this,Fo)),e}static lockConfig(){yx=!0}static getGateway(e){return op[e.toLowerCase()]||null}static registerGateway(e,r){if(e=e.toLowerCase(),e==="http"||e==="https")throw new Error(`cannot intercept ${e}; use registerGetUrl`);if(yx)throw new Error("gateways locked");op[e]=r}static registerGetUrl(e){if(yx)throw new Error("gateways locked");VS=e}static createGetUrlFunc(e){return hR()}static createDataGateway(){return pR}static createIpfsGatewayFunc(e){return yR(e)}};Fu=new WeakMap,Uu=new WeakMap,vs=new WeakMap,Ii=new WeakMap,$u=new WeakMap,Wu=new WeakMap,Jt=new WeakMap,xn=new WeakMap,Oi=new WeakMap,Ec=new WeakMap,kc=new WeakMap,Ac=new WeakMap,Ks=new WeakMap,gs=new WeakMap,Fo=new WeakMap,Sc=new WeakSet,Zd=async function(e,r,n,s,i){var u,f,d;if(e>=w(this,gs).maxAttempts)return i.makeServerError("exceeded maximum retry limit");z(HS()<=r,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:s}),n>0&&await Kee(n);let o=this.clone();const a=(o.url.split(":")[0]||"").toLowerCase();if(a in op){const h=await op[a](o.url,ap(w(s,Ks)));if(h instanceof Xi){let y=h;if(this.processFunc){ap(w(s,Ks));try{y=await this.processFunc(o,y)}catch(p){(p.throttle==null||typeof p.stall!="number")&&y.makeServerError("error in post-processing function",p).assertOk()}}return y}o=h}this.preflightFunc&&(o=await this.preflightFunc(o));const c=await this.getUrlFunc(o,ap(w(s,Ks)));let l=new Xi(c.statusCode,c.statusMessage,c.headers,c.body,s);if(l.statusCode===301||l.statusCode===302){try{const h=l.headers.location||"";return Y(u=o.redirect(h),Sc,Zd).call(u,e+1,r,0,s,l)}catch{}return l}else if(l.statusCode===429&&(this.retryFunc==null||await this.retryFunc(o,l,e))){const h=l.headers["retry-after"];let y=w(this,gs).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return typeof h=="string"&&h.match(/^[1-9][0-9]*$/)&&(y=parseInt(h)),Y(f=o.clone(),Sc,Zd).call(f,e+1,r,y,s,l)}if(this.processFunc){ap(w(s,Ks));try{l=await this.processFunc(o,l)}catch(h){(h.throttle==null||typeof h.stall!="number")&&l.makeServerError("error in post-processing function",h).assertOk();let y=w(this,gs).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return h.stall>=0&&(y=h.stall),Y(d=o.clone(),Sc,Zd).call(d,e+1,r,y,s,l)}}return l};let qt=Ov;var M0,D0,B0,bn,Vu,Tc;const Fk=class Fk{constructor(e,r,n,s,i){j(this,M0);j(this,D0);j(this,B0);j(this,bn);j(this,Vu);j(this,Tc);T(this,M0,e),T(this,D0,r),T(this,B0,Object.keys(n).reduce((o,a)=>(o[a.toLowerCase()]=String(n[a]),o),{})),T(this,bn,s==null?null:new Uint8Array(s)),T(this,Vu,i||null),T(this,Tc,{message:""})}toString(){return``}get statusCode(){return w(this,M0)}get statusMessage(){return w(this,D0)}get headers(){return Object.assign({},w(this,B0))}get body(){return w(this,bn)==null?null:new Uint8Array(w(this,bn))}get bodyText(){try{return w(this,bn)==null?"":Ms(w(this,bn))}catch{z(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch{z(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const e=this.headers,r=Object.keys(e);let n=0;return{next:()=>{if(n=0,"invalid stall timeout","stall",r);const n=new Error(e||"throttling requests");throw fe(n,{stall:r,throttle:!0}),n}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return w(this,bn)!=null}get request(){return w(this,Vu)}ok(){return w(this,Tc).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:r}=w(this,Tc);e===""&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let n=null;this.request&&(n=this.request.url);let s=null;try{w(this,bn)&&(s=Ms(w(this,bn)))}catch{}z(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:r,info:{requestUrl:n,responseBody:s,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}};M0=new WeakMap,D0=new WeakMap,B0=new WeakMap,bn=new WeakMap,Vu=new WeakMap,Tc=new WeakMap;let Xi=Fk;function HS(){return new Date().getTime()}function qee(t){return mt(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,r)=>String.fromCharCode(parseInt(r,16))))}function Kee(t){return new Promise(e=>setTimeout(e,t))}const Qee=BigInt(-1),fs=BigInt(0),hu=BigInt(1),Jee=BigInt(5),Dl={};let Iu="0000";for(;Iu.length<80;)Iu+=Iu;function Ja(t){let e=Iu;for(;e.length=-s&&tfs?t=h0(aa(t,n),n):t=-h0(aa(-t,n),n)}else{const s=hu<=0&&ti[a]==null?l:(P(typeof i[a]===c,"invalid fixed format ("+a+" not "+c+")","format."+a,i[a]),i[a]);e=o("signed","boolean",e),r=o("width","number",r),n=o("decimals","number",n)}P(r%8===0,"invalid FixedNumber width (not byte aligned)","format.width",r),P(n<=80,"invalid FixedNumber decimals (too large)","format.decimals",n);const s=(e?"":"u")+"fixed"+String(r)+"x"+String(n);return{signed:e,width:r,decimals:n,name:s}}function Yee(t,e){let r="";t0?n*=Ja(s):s<0&&(r*=Ja(-s)),rn?1:0}eq(e){return this.cmp(e)===0}lt(e){return this.cmp(e)<0}lte(e){return this.cmp(e)<=0}gt(e){return this.cmp(e)>0}gte(e){return this.cmp(e)>=0}floor(){let e=w(this,nt);return w(this,nt)fs&&(e+=w(this,Br)-hu),e=w(this,nt)/w(this,Br)*w(this,Br),Y(this,Xe,wi).call(this,e,"ceiling")}round(e){if(e==null&&(e=0),e>=this.decimals)return this;const r=this.decimals-e,n=Jee*Ja(r-1);let s=this.value+n;const i=Ja(r);return s=s/i*i,jd(s,w(this,ms),"round"),new Do(Dl,s,w(this,ms))}isZero(){return w(this,nt)===fs}isNegative(){return w(this,nt)0){const c=Ja(a);z(o%c===fs,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),o/=c}else a<0&&(o*=Ja(-a));return jd(o,i,"fromValue"),new Do(Dl,o,i)}static fromString(e,r){const n=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);P(n&&n[2].length+n[3].length>0,"invalid FixedNumber string value","value",e);const s=vx(r);let i=n[2]||"0",o=n[3]||"";for(;o.length{z(n<=t.length,"data short segment too short","BUFFER_OVERRUN",{buffer:t,length:t.length,offset:n})};if(t[e]>=248){const n=t[e]-247;r(e+1+n);const s=zS(t,e+1,n);return r(e+1+n+s),GS(t,e,e+1+n,n+s)}else if(t[e]>=192){const n=t[e]-192;return r(e+1+n),GS(t,e,e+1,n)}else if(t[e]>=184){const n=t[e]-183;r(e+1+n);const s=zS(t,e+1,n);r(e+1+n+s);const i=H(t.slice(e+1+n,e+1+n+s));return{consumed:1+n+s,result:i}}else if(t[e]>=128){const n=t[e]-128;r(e+1+n);const s=H(t.slice(e+1,e+1+n));return{consumed:1+n,result:s}}return{consumed:1,result:Xee(t[e])}}function v1(t){const e=Q(t,"data"),r=mR(e,0);return P(r.consumed===e.length,"unexpected junk after rlp payload","data",t),r.result}function qS(t){const e=[];for(;t;)e.unshift(t&255),t>>=8;return e}function xR(t){if(Array.isArray(t)){let n=[];if(t.forEach(function(i){n=n.concat(xR(i))}),n.length<=55)return n.unshift(192+n.length),n;const s=qS(n.length);return s.unshift(247+s.length),s.concat(n)}const e=Array.prototype.slice.call(Q(t,"object"));if(e.length===1&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const r=qS(e.length);return r.unshift(183+r.length),r.concat(e)}const KS="0123456789abcdef";function Ra(t){let e="0x";for(const r of xR(t))e+=KS[r>>4],e+=KS[r&15];return e}const bR=["wei","kwei","mwei","gwei","szabo","finney","ether"];function wR(t,e){let r=18;if(typeof e=="string"){const n=bR.indexOf(e);P(n>=0,"invalid unit","unit",e),r=3*n}else e!=null&&(r=Pe(e,"unit"));return p0.fromValue(t,r,{decimals:r,width:512}).toString()}function rv(t,e){P(typeof t=="string","value must be a string","value",t);let r=18;if(typeof e=="string"){const n=bR.indexOf(e);P(n>=0,"invalid unit","unit",e),r=3*n}else e!=null&&(r=Pe(e,"unit"));return p0.fromString(t,{decimals:r,width:512}).value}function Zee(t){return wR(t,18)}function Iw(t){return rv(t,18)}function CR(t){const e=Q(t,"randomBytes");e[6]=e[6]&15|64,e[8]=e[8]&63|128;const r=H(e);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}const Vr=32,Ow=new Uint8Array(Vr),ete=["then"],cp={},ER=new WeakMap;function oc(t){return ER.get(t)}function QS(t,e){ER.set(t,e)}function Fd(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);throw r.error=e,r}function Rw(t,e,r){return t.indexOf(null)>=0?e.map((n,s)=>n instanceof hl?Rw(oc(n),n,r):n):t.reduce((n,s,i)=>{let o=e.getValue(s);return s in n||(r&&o instanceof hl&&(o=Rw(oc(o),o,r)),n[s]=o),n},{})}var Hu;const vu=class vu extends Array{constructor(...r){const n=r[0];let s=r[1],i=(r[2]||[]).slice(),o=!0;n!==cp&&(s=r,i=[],o=!1);super(s.length);j(this,Hu);s.forEach((l,u)=>{this[u]=l});const a=i.reduce((l,u)=>(typeof u=="string"&&l.set(u,(l.get(u)||0)+1),l),new Map);if(QS(this,Object.freeze(s.map((l,u)=>{const f=i[u];return f!=null&&a.get(f)===1?f:null}))),T(this,Hu,[]),w(this,Hu)==null&&w(this,Hu),!o)return;Object.freeze(this);const c=new Proxy(this,{get:(l,u,f)=>{if(typeof u=="string"){if(u.match(/^[0-9]+$/)){const h=Pe(u,"%index");if(h<0||h>=this.length)throw new RangeError("out of result range");const y=l[h];return y instanceof Error&&Fd(`index ${h}`,y),y}if(ete.indexOf(u)>=0)return Reflect.get(l,u,f);const d=l[u];if(d instanceof Function)return function(...h){return d.apply(this===f?l:this,h)};if(!(u in l))return l.getValue.apply(this===f?l:this,[u])}return Reflect.get(l,u,f)}});return QS(c,oc(this)),c}toArray(r){const n=[];return this.forEach((s,i)=>{s instanceof Error&&Fd(`index ${i}`,s),r&&s instanceof vu&&(s=s.toArray(r)),n.push(s)}),n}toObject(r){const n=oc(this);return n.reduce((s,i,o)=>(z(i!=null,`value at index ${o} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),Rw(n,this,r)),{})}slice(r,n){r==null&&(r=0),r<0&&(r+=this.length,r<0&&(r=0)),n==null&&(n=this.length),n<0&&(n+=this.length,n<0&&(n=0)),n>this.length&&(n=this.length);const s=oc(this),i=[],o=[];for(let a=r;a{w(this,Ri)[e]=JS(r)}}}Ri=new WeakMap,Pc=new WeakMap,zu=new WeakSet,Vp=function(e){return w(this,Ri).push(e),T(this,Pc,w(this,Pc)+e.length),e.length};var rn,wn,Ic,Oc,Uo,Cl,Mw,kR;const Uk=class Uk{constructor(e,r,n){j(this,Cl);N(this,"allowLoose");j(this,rn);j(this,wn);j(this,Ic);j(this,Oc);j(this,Uo);fe(this,{allowLoose:!!r}),T(this,rn,tr(e)),T(this,Ic,0),T(this,Oc,null),T(this,Uo,n??1024),T(this,wn,0)}get data(){return H(w(this,rn))}get dataLength(){return w(this,rn).length}get consumed(){return w(this,wn)}get bytes(){return new Uint8Array(w(this,rn))}subReader(e){const r=new Uk(w(this,rn).slice(w(this,wn)+e),this.allowLoose,w(this,Uo));return T(r,Oc,this),r}readBytes(e,r){let n=Y(this,Cl,kR).call(this,0,e,!!r);return Y(this,Cl,Mw).call(this,e),T(this,wn,w(this,wn)+n.length),n.slice(0,e)}readValue(){return md(this.readBytes(Vr))}readIndex(){return oR(this.readBytes(Vr))}};rn=new WeakMap,wn=new WeakMap,Ic=new WeakMap,Oc=new WeakMap,Uo=new WeakMap,Cl=new WeakSet,Mw=function(e){var r;if(w(this,Oc))return Y(r=w(this,Oc),Cl,Mw).call(r,e);T(this,Ic,w(this,Ic)+e),z(w(this,Uo)<1||w(this,Ic)<=w(this,Uo)*this.dataLength,`compressed ABI data exceeds inflation ratio of ${w(this,Uo)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:tr(w(this,rn)),offset:w(this,wn),length:e,info:{bytesRead:w(this,Ic),dataLength:this.dataLength}})},kR=function(e,r,n){let s=Math.ceil(r/Vr)*Vr;return w(this,wn)+s>w(this,rn).length&&(this.allowLoose&&n&&w(this,wn)+r<=w(this,rn).length?s=r:z(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:tr(w(this,rn)),length:w(this,rn).length,offset:w(this,wn)+s})),w(this,rn).slice(w(this,wn),w(this,wn)+s)};let _w=Uk;function An(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function h5(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function AR(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");An(t.outputLen),An(t.blockLen)}function Wf(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function SR(t,e){h5(t);const r=e.outputLen;if(t.lengtht instanceof Uint8Array,Hp=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),zp=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),$s=(t,e)=>t<<32-e|t>>>e,rte=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!rte)throw new Error("Non little-endian hardware is not supported");const nte=async()=>{};async function YS(t,e,r){let n=Date.now();for(let s=0;s=0&&in+s.length,0));let r=0;return t.forEach(n=>{if(!TR(n))throw new Error("Uint8Array expected");e.set(n,r),r+=n.length}),e}let p5=class{clone(){return this._cloneInto()}};const ote={}.toString;function PR(t,e){if(e!==void 0&&ote.call(e)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(t,e)}function Ng(t){const e=n=>t().update(Vf(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function ate(t=32){if(gx&&typeof gx.getRandomValues=="function")return gx.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}class IR extends p5{constructor(e,r){super(),this.finished=!1,this.destroyed=!1,AR(e);const n=Vf(r);if(this.iHash=e.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;const s=this.blockLen,i=new Uint8Array(s);i.set(n.length>s?e.create().update(n).digest():n);for(let o=0;onew IR(t,e).update(r).digest();_g.create=(t,e)=>new IR(t,e);function cte(t,e,r,n){AR(t);const s=PR({dkLen:32,asyncTick:10},n),{c:i,dkLen:o,asyncTick:a}=s;if(An(i),An(o),An(a),i<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const c=Vf(e),l=Vf(r),u=new Uint8Array(o),f=_g.create(t,c),d=f._cloneInto().update(l);return{c:i,dkLen:o,asyncTick:a,DK:u,PRF:f,PRFSalt:d}}function lte(t,e,r,n,s){return t.destroy(),e.destroy(),n&&n.destroy(),s.fill(0),r}function y5(t,e,r,n){const{c:s,dkLen:i,DK:o,PRF:a,PRFSalt:c}=cte(t,e,r,n);let l;const u=new Uint8Array(4),f=zp(u),d=new Uint8Array(a.outputLen);for(let h=1,y=0;y>s&i),a=Number(r&i),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}class v5 extends p5{constructor(e,r,n,s){super(),this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=s,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=zp(this.buffer)}update(e){Wf(this);const{view:r,buffer:n,blockLen:s}=this;e=Vf(e);const i=e.length;for(let o=0;os-o&&(this.process(n,0),o=0);for(let f=o;fu.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;ft&e^~t&r,dte=(t,e,r)=>t&e^t&r^e&r,hte=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]),wo=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Co=new Uint32Array(64);let pte=class extends v5{constructor(){super(64,32,8,!1),this.A=wo[0]|0,this.B=wo[1]|0,this.C=wo[2]|0,this.D=wo[3]|0,this.E=wo[4]|0,this.F=wo[5]|0,this.G=wo[6]|0,this.H=wo[7]|0}get(){const{A:e,B:r,C:n,D:s,E:i,F:o,G:a,H:c}=this;return[e,r,n,s,i,o,a,c]}set(e,r,n,s,i,o,a,c){this.A=e|0,this.B=r|0,this.C=n|0,this.D=s|0,this.E=i|0,this.F=o|0,this.G=a|0,this.H=c|0}process(e,r){for(let f=0;f<16;f++,r+=4)Co[f]=e.getUint32(r,!1);for(let f=16;f<64;f++){const d=Co[f-15],h=Co[f-2],y=$s(d,7)^$s(d,18)^d>>>3,p=$s(h,17)^$s(h,19)^h>>>10;Co[f]=p+Co[f-7]+y+Co[f-16]|0}let{A:n,B:s,C:i,D:o,E:a,F:c,G:l,H:u}=this;for(let f=0;f<64;f++){const d=$s(a,6)^$s(a,11)^$s(a,25),h=u+d+fte(a,c,l)+hte[f]+Co[f]|0,p=($s(n,2)^$s(n,13)^$s(n,22))+dte(n,s,i)|0;u=l,l=c,c=a,a=o+h|0,o=i,i=s,s=n,n=h+p|0}n=n+this.A|0,s=s+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(n,s,i,o,a,c,l,u)}roundClean(){Co.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};const xd=Ng(()=>new pte),lp=BigInt(2**32-1),Dw=BigInt(32);function OR(t,e=!1){return e?{h:Number(t&lp),l:Number(t>>Dw&lp)}:{h:Number(t>>Dw&lp)|0,l:Number(t&lp)|0}}function RR(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let s=0;sBigInt(t>>>0)<>>0),vte=(t,e,r)=>t>>>r,gte=(t,e,r)=>t<<32-r|e>>>r,mte=(t,e,r)=>t>>>r|e<<32-r,xte=(t,e,r)=>t<<32-r|e>>>r,bte=(t,e,r)=>t<<64-r|e>>>r-32,wte=(t,e,r)=>t>>>r-32|e<<64-r,Cte=(t,e)=>e,Ete=(t,e)=>t,NR=(t,e,r)=>t<>>32-r,_R=(t,e,r)=>e<>>32-r,MR=(t,e,r)=>e<>>64-r,DR=(t,e,r)=>t<>>64-r;function kte(t,e,r,n){const s=(e>>>0)+(n>>>0);return{h:t+r+(s/2**32|0)|0,l:s|0}}const Ate=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),Ste=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,Tte=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),Pte=(t,e,r,n,s)=>e+r+n+s+(t/2**32|0)|0,Ite=(t,e,r,n,s)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(s>>>0),Ote=(t,e,r,n,s,i)=>e+r+n+s+i+(t/2**32|0)|0,Me={fromBig:OR,split:RR,toBig:yte,shrSH:vte,shrSL:gte,rotrSH:mte,rotrSL:xte,rotrBH:bte,rotrBL:wte,rotr32H:Cte,rotr32L:Ete,rotlSH:NR,rotlSL:_R,rotlBH:MR,rotlBL:DR,add:kte,add3L:Ate,add3H:Ste,add4L:Tte,add4H:Pte,add5H:Ote,add5L:Ite},[Rte,Nte]=Me.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(t=>BigInt(t))),Eo=new Uint32Array(80),ko=new Uint32Array(80);class _te extends v5{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(){const{Ah:e,Al:r,Bh:n,Bl:s,Ch:i,Cl:o,Dh:a,Dl:c,Eh:l,El:u,Fh:f,Fl:d,Gh:h,Gl:y,Hh:p,Hl:b}=this;return[e,r,n,s,i,o,a,c,l,u,f,d,h,y,p,b]}set(e,r,n,s,i,o,a,c,l,u,f,d,h,y,p,b){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=s|0,this.Ch=i|0,this.Cl=o|0,this.Dh=a|0,this.Dl=c|0,this.Eh=l|0,this.El=u|0,this.Fh=f|0,this.Fl=d|0,this.Gh=h|0,this.Gl=y|0,this.Hh=p|0,this.Hl=b|0}process(e,r){for(let x=0;x<16;x++,r+=4)Eo[x]=e.getUint32(r),ko[x]=e.getUint32(r+=4);for(let x=16;x<80;x++){const k=Eo[x-15]|0,S=ko[x-15]|0,I=Me.rotrSH(k,S,1)^Me.rotrSH(k,S,8)^Me.shrSH(k,S,7),R=Me.rotrSL(k,S,1)^Me.rotrSL(k,S,8)^Me.shrSL(k,S,7),_=Eo[x-2]|0,V=ko[x-2]|0,F=Me.rotrSH(_,V,19)^Me.rotrBH(_,V,61)^Me.shrSH(_,V,6),X=Me.rotrSL(_,V,19)^Me.rotrBL(_,V,61)^Me.shrSL(_,V,6),re=Me.add4L(R,X,ko[x-7],ko[x-16]),le=Me.add4H(re,I,F,Eo[x-7],Eo[x-16]);Eo[x]=le|0,ko[x]=re|0}let{Ah:n,Al:s,Bh:i,Bl:o,Ch:a,Cl:c,Dh:l,Dl:u,Eh:f,El:d,Fh:h,Fl:y,Gh:p,Gl:b,Hh:v,Hl:g}=this;for(let x=0;x<80;x++){const k=Me.rotrSH(f,d,14)^Me.rotrSH(f,d,18)^Me.rotrBH(f,d,41),S=Me.rotrSL(f,d,14)^Me.rotrSL(f,d,18)^Me.rotrBL(f,d,41),I=f&h^~f&p,R=d&y^~d&b,_=Me.add5L(g,S,R,Nte[x],ko[x]),V=Me.add5H(_,v,k,I,Rte[x],Eo[x]),F=_|0,X=Me.rotrSH(n,s,28)^Me.rotrBH(n,s,34)^Me.rotrBH(n,s,39),re=Me.rotrSL(n,s,28)^Me.rotrBL(n,s,34)^Me.rotrBL(n,s,39),le=n&i^n&a^i&a,ee=s&o^s&c^o&c;v=p|0,g=b|0,p=h|0,b=y|0,h=f|0,y=d|0,{h:f,l:d}=Me.add(l|0,u|0,V|0,F|0),l=a|0,u=c|0,a=i|0,c=o|0,i=n|0,o=s|0;const D=Me.add3L(F,re,ee);n=Me.add3H(D,V,X,le),s=D|0}({h:n,l:s}=Me.add(this.Ah|0,this.Al|0,n|0,s|0)),{h:i,l:o}=Me.add(this.Bh|0,this.Bl|0,i|0,o|0),{h:a,l:c}=Me.add(this.Ch|0,this.Cl|0,a|0,c|0),{h:l,l:u}=Me.add(this.Dh|0,this.Dl|0,l|0,u|0),{h:f,l:d}=Me.add(this.Eh|0,this.El|0,f|0,d|0),{h,l:y}=Me.add(this.Fh|0,this.Fl|0,h|0,y|0),{h:p,l:b}=Me.add(this.Gh|0,this.Gl|0,p|0,b|0),{h:v,l:g}=Me.add(this.Hh|0,this.Hl|0,v|0,g|0),this.set(n,s,i,o,a,c,l,u,f,d,h,y,p,b,v,g)}roundClean(){Eo.fill(0),ko.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)}}const g5=Ng(()=>new _te);function Mte(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}const XS=Mte(),ZS=XS.crypto||XS.msCrypto;function BR(t){switch(t){case"sha256":return xd.create();case"sha512":return g5.create()}P(!1,"invalid hashing algorithm name","algorithm",t)}function Dte(t,e){const r={sha256:xd,sha512:g5}[t];return P(r!=null,"invalid hmac algorithm","algorithm",t),_g.create(r,e)}function Bte(t,e,r,n,s){const i={sha256:xd,sha512:g5}[s];return P(i!=null,"invalid pbkdf2 algorithm","algorithm",s),y5(i,t,e,{c:r,dkLen:n})}function Lte(t){z(ZS!=null,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),P(Number.isInteger(t)&&t>0&&t<=1024,"invalid length","length",t);const e=new Uint8Array(t);return ZS.getRandomValues(e),e}let LR=!1;const jR=function(t,e,r){return Dte(t,e).update(r).digest()};let FR=jR;function Wa(t,e,r){const n=Q(e,"key"),s=Q(r,"data");return H(FR(t,n,s))}Wa._=jR;Wa.lock=function(){LR=!0};Wa.register=function(t){if(LR)throw new Error("computeHmac is locked");FR=t};Object.freeze(Wa);const[UR,$R,WR]=[[],[],[]],jte=BigInt(0),Ud=BigInt(1),Fte=BigInt(2),Ute=BigInt(7),$te=BigInt(256),Wte=BigInt(113);for(let t=0,e=Ud,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],UR.push(2*(5*n+r)),$R.push((t+1)*(t+2)/2%64);let s=jte;for(let i=0;i<7;i++)e=(e<>Ute)*Wte)%$te,e&Fte&&(s^=Ud<<(Ud<r>32?MR(t,e,r):NR(t,e,r),t8=(t,e,r)=>r>32?DR(t,e,r):_R(t,e,r);function zte(t,e=24){const r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let o=0;o<10;o++)r[o]=t[o]^t[o+10]^t[o+20]^t[o+30]^t[o+40];for(let o=0;o<10;o+=2){const a=(o+8)%10,c=(o+2)%10,l=r[c],u=r[c+1],f=e8(l,u,1)^r[a],d=t8(l,u,1)^r[a+1];for(let h=0;h<50;h+=10)t[o+h]^=f,t[o+h+1]^=d}let s=t[2],i=t[3];for(let o=0;o<24;o++){const a=$R[o],c=e8(s,i,a),l=t8(s,i,a),u=UR[o];s=t[u],i=t[u+1],t[u]=c,t[u+1]=l}for(let o=0;o<50;o+=10){for(let a=0;a<10;a++)r[a]=t[o+a];for(let a=0;a<10;a++)t[o+a]^=~r[(a+2)%10]&r[(a+4)%10]}t[0]^=Vte[n],t[1]^=Hte[n]}r.fill(0)}class m5 extends p5{constructor(e,r,n,s=!1,i=24){if(super(),this.blockLen=e,this.suffix=r,this.outputLen=n,this.enableXOF=s,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,An(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=Hp(this.state)}keccak(){zte(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){Wf(this);const{blockLen:r,state:n}=this;e=Vf(e);const s=e.length;for(let i=0;i=n&&this.keccak();const o=Math.min(n-this.posOut,i-s);e.set(r.subarray(this.posOut,this.posOut+o),s),this.posOut+=o,s+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return An(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(SR(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:r,suffix:n,outputLen:s,rounds:i,enableXOF:o}=this;return e||(e=new m5(r,n,s,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=s,e.enableXOF=o,e.destroyed=this.destroyed,e}}const Gte=(t,e,r)=>Ng(()=>new m5(e,t,r)),qte=Gte(1,136,256/8);let VR=!1;const HR=function(t){return qte(t)};let zR=HR;function Ne(t){const e=Q(t,"data");return H(zR(e))}Ne._=HR;Ne.lock=function(){VR=!0};Ne.register=function(t){if(VR)throw new TypeError("keccak256 is locked");zR=t};Object.freeze(Ne);const Kte=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),GR=Uint8Array.from({length:16},(t,e)=>e),Qte=GR.map(t=>(9*t+5)%16);let x5=[GR],b5=[Qte];for(let t=0;t<4;t++)for(let e of[x5,b5])e.push(e[t].map(r=>Kte[r]));const qR=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>new Uint8Array(t)),Jte=x5.map((t,e)=>t.map(r=>qR[e][r])),Yte=b5.map((t,e)=>t.map(r=>qR[e][r])),Xte=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Zte=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),up=(t,e)=>t<>>32-e;function r8(t,e,r,n){return t===0?e^r^n:t===1?e&r|~e&n:t===2?(e|~r)^n:t===3?e&n|r&~n:e^(r|~n)}const fp=new Uint32Array(16);class ere extends v5{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:r,h2:n,h3:s,h4:i}=this;return[e,r,n,s,i]}set(e,r,n,s,i){this.h0=e|0,this.h1=r|0,this.h2=n|0,this.h3=s|0,this.h4=i|0}process(e,r){for(let h=0;h<16;h++,r+=4)fp[h]=e.getUint32(r,!0);let n=this.h0|0,s=n,i=this.h1|0,o=i,a=this.h2|0,c=a,l=this.h3|0,u=l,f=this.h4|0,d=f;for(let h=0;h<5;h++){const y=4-h,p=Xte[h],b=Zte[h],v=x5[h],g=b5[h],x=Jte[h],k=Yte[h];for(let S=0;S<16;S++){const I=up(n+r8(h,i,a,l)+fp[v[S]]+p,x[S])+f|0;n=f,f=l,l=up(a,10)|0,a=i,i=I}for(let S=0;S<16;S++){const I=up(s+r8(y,o,c,u)+fp[g[S]]+b,k[S])+d|0;s=d,d=u,u=up(c,10)|0,c=o,o=I}}this.set(this.h1+a+u|0,this.h2+l+d|0,this.h3+f+s|0,this.h4+n+o|0,this.h0+i+c|0)}roundClean(){fp.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const tre=Ng(()=>new ere);let KR=!1;const QR=function(t){return tre(t)};let JR=QR;function Va(t){const e=Q(t,"data");return H(JR(e))}Va._=QR;Va.lock=function(){KR=!0};Va.register=function(t){if(KR)throw new TypeError("ripemd160 is locked");JR=t};Object.freeze(Va);let YR=!1;const XR=function(t,e,r,n,s){return Bte(t,e,r,n,s)};let ZR=XR;function xi(t,e,r,n,s){const i=Q(t,"password"),o=Q(e,"salt");return H(ZR(i,o,r,n,s))}xi._=XR;xi.lock=function(){YR=!0};xi.register=function(t){if(YR)throw new Error("pbkdf2 is locked");ZR=t};Object.freeze(xi);let eN=!1;const tN=function(t){return new Uint8Array(Lte(t))};let rN=tN;function Rr(t){return rN(t)}Rr._=tN;Rr.lock=function(){eN=!0};Rr.register=function(t){if(eN)throw new Error("randomBytes is locked");rN=t};Object.freeze(Rr);const qe=(t,e)=>t<>>32-e;function n8(t,e,r,n,s,i){let o=t[e++]^r[n++],a=t[e++]^r[n++],c=t[e++]^r[n++],l=t[e++]^r[n++],u=t[e++]^r[n++],f=t[e++]^r[n++],d=t[e++]^r[n++],h=t[e++]^r[n++],y=t[e++]^r[n++],p=t[e++]^r[n++],b=t[e++]^r[n++],v=t[e++]^r[n++],g=t[e++]^r[n++],x=t[e++]^r[n++],k=t[e++]^r[n++],S=t[e++]^r[n++],I=o,R=a,_=c,V=l,F=u,X=f,re=d,le=h,ee=y,D=p,G=b,Z=v,C=g,A=x,O=k,M=S;for(let B=0;B<8;B+=2)F^=qe(I+C|0,7),ee^=qe(F+I|0,9),C^=qe(ee+F|0,13),I^=qe(C+ee|0,18),D^=qe(X+R|0,7),A^=qe(D+X|0,9),R^=qe(A+D|0,13),X^=qe(R+A|0,18),O^=qe(G+re|0,7),_^=qe(O+G|0,9),re^=qe(_+O|0,13),G^=qe(re+_|0,18),V^=qe(M+Z|0,7),le^=qe(V+M|0,9),Z^=qe(le+V|0,13),M^=qe(Z+le|0,18),R^=qe(I+V|0,7),_^=qe(R+I|0,9),V^=qe(_+R|0,13),I^=qe(V+_|0,18),re^=qe(X+F|0,7),le^=qe(re+X|0,9),F^=qe(le+re|0,13),X^=qe(F+le|0,18),Z^=qe(G+D|0,7),ee^=qe(Z+G|0,9),D^=qe(ee+Z|0,13),G^=qe(D+ee|0,18),C^=qe(M+O|0,7),A^=qe(C+M|0,9),O^=qe(A+C|0,13),M^=qe(O+A|0,18);s[i++]=o+I|0,s[i++]=a+R|0,s[i++]=c+_|0,s[i++]=l+V|0,s[i++]=u+F|0,s[i++]=f+X|0,s[i++]=d+re|0,s[i++]=h+le|0,s[i++]=y+ee|0,s[i++]=p+D|0,s[i++]=b+G|0,s[i++]=v+Z|0,s[i++]=g+C|0,s[i++]=x+A|0,s[i++]=k+O|0,s[i++]=S+M|0}function Ou(t,e,r,n,s){let i=n+0,o=n+16*s;for(let a=0;a<16;a++)r[o+a]=t[e+(2*s-1)*16+a];for(let a=0;a0&&(o+=16),n8(r,i,t,e+=16,r,o)}function nN(t,e,r){const n=PR({dkLen:32,asyncTick:10,maxmem:1073742848},r),{N:s,r:i,p:o,dkLen:a,asyncTick:c,maxmem:l,onProgress:u}=n;if(An(s),An(i),An(o),An(a),An(c),An(l),u!==void 0&&typeof u!="function")throw new Error("progressCb should be function");const f=128*i,d=f/4;if(s<=1||s&s-1||s>=2**(f/8)||s>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(o<0||o>(2**32-1)*32/f)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(a<0||a>(2**32-1)*32)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const h=f*(s+o);if(h>l)throw new Error(`Scrypt: parameters too large, ${h} (128 * r * (N + p)) > ${l} (maxmem)`);const y=y5(xd,t,e,{c:1,dkLen:f*o}),p=Hp(y),b=Hp(new Uint8Array(f*s)),v=Hp(new Uint8Array(f));let g=()=>{};if(u){const x=2*s*o,k=Math.max(Math.floor(x/1e4),1);let S=0;g=()=>{S++,u&&(!(S%k)||S===x)&&u(S/x)}}return{N:s,r:i,p:o,dkLen:a,blockSize32:d,V:b,B32:p,B:y,tmp:v,blockMixCb:g,asyncTick:c}}function sN(t,e,r,n,s){const i=y5(xd,t,r,{c:1,dkLen:e});return r.fill(0),n.fill(0),s.fill(0),i}function rre(t,e,r){const{N:n,r:s,p:i,dkLen:o,blockSize32:a,V:c,B32:l,B:u,tmp:f,blockMixCb:d}=nN(t,e,r);for(let h=0;h{Ou(c,b,c,b+=a,s),d()}),Ou(c,(n-1)*a,l,p,s),d(),await YS(n,h,()=>{const v=l[p+a-16]%n;for(let g=0;gt instanceof Uint8Array,ire=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function Hf(t){if(!Dg(t))throw new Error("Uint8Array expected");let e="";for(let r=0;rn+s.length,0));let r=0;return t.forEach(n=>{if(!Dg(n))throw new Error("Uint8Array expected");e.set(n,r),r+=n.length}),e}function are(t,e){if(t.length!==e.length)return!1;for(let r=0;rgN;t>>=Mg,e+=1);return e}function ure(t,e){return t>>BigInt(e)&Mg}const fre=(t,e,r)=>t|(r?Mg:gN)<(sre<new Uint8Array(t),s8=t=>Uint8Array.from(t);function xN(t,e,r){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let n=mx(t),s=mx(t),i=0;const o=()=>{n.fill(1),s.fill(0),i=0},a=(...f)=>r(s,n,...f),c=(f=mx())=>{s=a(s8([0]),f),n=a(),f.length!==0&&(s=a(s8([1]),f),n=a())},l=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let f=0;const d=[];for(;f{o(),c(f);let h;for(;!(h=d(l()));)c();return o(),h}}const dre={bigint:t=>typeof t=="bigint",function:t=>typeof t=="function",boolean:t=>typeof t=="boolean",string:t=>typeof t=="string",stringOrUint8Array:t=>typeof t=="string"||t instanceof Uint8Array,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t=="function"&&Number.isSafeInteger(t.outputLen)};function m1(t,e,r={}){const n=(s,i,o)=>{const a=dre[i];if(typeof a!="function")throw new Error(`Invalid validator "${i}", expected function`);const c=t[s];if(!(o&&c===void 0)&&!a(c,t))throw new Error(`Invalid param ${String(s)}=${c} (${typeof c}), expected ${i}`)};for(const[s,i]of Object.entries(e))n(s,i,!1);for(const[s,i]of Object.entries(r))n(s,i,!0);return t}const hre=Object.freeze(Object.defineProperty({__proto__:null,bitGet:ure,bitLen:lre,bitMask:k5,bitSet:fre,bytesToHex:Hf,bytesToNumberBE:Xc,bytesToNumberLE:C5,concatBytes:y0,createHmacDrbg:xN,ensureBytes:ys,equalBytes:are,hexToBytes:zf,hexToNumber:w5,numberToBytesBE:Gf,numberToBytesLE:E5,numberToHexUnpadded:mN,numberToVarBytesBE:ore,utf8ToBytes:cre,validateObject:m1},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const nr=BigInt(0),Mt=BigInt(1),ac=BigInt(2),pre=BigInt(3),Bw=BigInt(4),i8=BigInt(5),o8=BigInt(8);BigInt(9);BigInt(16);function on(t,e){const r=t%e;return r>=nr?r:e+r}function yre(t,e,r){if(r<=nr||e 0");if(r===Mt)return nr;let n=Mt;for(;e>nr;)e&Mt&&(n=n*t%r),t=t*t%r,e>>=Mt;return n}function Dn(t,e,r){let n=t;for(;e-- >nr;)n*=n,n%=r;return n}function Lw(t,e){if(t===nr||e<=nr)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let r=on(t,e),n=e,s=nr,i=Mt;for(;r!==nr;){const a=n/r,c=n%r,l=s-i*a;n=r,r=c,s=i,i=l}if(n!==Mt)throw new Error("invert: does not exist");return on(s,e)}function vre(t){const e=(t-Mt)/ac;let r,n,s;for(r=t-Mt,n=0;r%ac===nr;r/=ac,n++);for(s=ac;s(n[s]="function",n),e);return m1(t,r)}function bre(t,e,r){if(r 0");if(r===nr)return t.ONE;if(r===Mt)return e;let n=t.ONE,s=e;for(;r>nr;)r&Mt&&(n=t.mul(n,s)),s=t.sqr(s),r>>=Mt;return n}function wre(t,e){const r=new Array(e.length),n=e.reduce((i,o,a)=>t.is0(o)?i:(r[a]=i,t.mul(i,o)),t.ONE),s=t.inv(n);return e.reduceRight((i,o,a)=>t.is0(o)?i:(r[a]=t.mul(i,r[a]),t.mul(i,o)),s),r}function bN(t,e){const r=e!==void 0?e:t.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function Cre(t,e,r=!1,n={}){if(t<=nr)throw new Error(`Expected Field ORDER > 0, got ${t}`);const{nBitLength:s,nByteLength:i}=bN(t,e);if(i>2048)throw new Error("Field lengths over 2048 bytes are not supported");const o=gre(t),a=Object.freeze({ORDER:t,BITS:s,BYTES:i,MASK:k5(s),ZERO:nr,ONE:Mt,create:c=>on(c,t),isValid:c=>{if(typeof c!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof c}`);return nr<=c&&cc===nr,isOdd:c=>(c&Mt)===Mt,neg:c=>on(-c,t),eql:(c,l)=>c===l,sqr:c=>on(c*c,t),add:(c,l)=>on(c+l,t),sub:(c,l)=>on(c-l,t),mul:(c,l)=>on(c*l,t),pow:(c,l)=>bre(a,c,l),div:(c,l)=>on(c*Lw(l,t),t),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>Lw(c,t),sqrt:n.sqrt||(c=>o(a,c)),invertBatch:c=>wre(a,c),cmov:(c,l,u)=>u?l:c,toBytes:c=>r?E5(c,i):Gf(c,i),fromBytes:c=>{if(c.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${c.length}`);return r?C5(c):Xc(c)}});return Object.freeze(a)}function wN(t){if(typeof t!="bigint")throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}function CN(t){const e=wN(t);return e+Math.ceil(e/2)}function Ere(t,e,r=!1){const n=t.length,s=wN(e),i=CN(e);if(n<16||n1024)throw new Error(`expected ${i}-1024 bytes of input, got ${n}`);const o=r?Xc(t):C5(t),a=on(o,e-Mt)+Mt;return r?E5(a,s):Gf(a,s)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const kre=BigInt(0),xx=BigInt(1);function Are(t,e){const r=(s,i)=>{const o=i.negate();return s?o:i},n=s=>{const i=Math.ceil(e/s)+1,o=2**(s-1);return{windows:i,windowSize:o}};return{constTimeNegate:r,unsafeLadder(s,i){let o=t.ZERO,a=s;for(;i>kre;)i&xx&&(o=o.add(a)),a=a.double(),i>>=xx;return o},precomputeWindow(s,i){const{windows:o,windowSize:a}=n(i),c=[];let l=s,u=l;for(let f=0;f>=h,b>c&&(b-=d,o+=xx);const v=p,g=p+Math.abs(b)-1,x=y%2!==0,k=b<0;b===0?u=u.add(r(x,i[v])):l=l.add(r(k,i[g]))}return{p:l,f:u}},wNAFCached(s,i,o,a){const c=s._WINDOW_SIZE||1;let l=i.get(s);return l||(l=this.precomputeWindow(s,c),c!==1&&i.set(s,a(l))),this.wNAF(c,l,o)}}}function EN(t){return xre(t.Fp),m1(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...bN(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Sre(t){const e=EN(t);m1(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a:s}=e;if(r){if(!n.eql(s,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof r!="object"||typeof r.beta!="bigint"||typeof r.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:Tre,hexToBytes:Pre}=hre,gc={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(t){const{Err:e}=gc;if(t.length<2||t[0]!==2)throw new e("Invalid signature integer tag");const r=t[1],n=t.subarray(2,r+2);if(!r||n.length!==r)throw new e("Invalid signature integer: wrong length");if(n[0]&128)throw new e("Invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new e("Invalid signature integer: unnecessary leading zero");return{d:Tre(n),l:t.subarray(r+2)}},toSig(t){const{Err:e}=gc,r=typeof t=="string"?Pre(t):t;if(!(r instanceof Uint8Array))throw new Error("ui8a expected");let n=r.length;if(n<2||r[0]!=48)throw new e("Invalid signature tag");if(r[1]!==n-2)throw new e("Invalid signature: incorrect length");const{d:s,l:i}=gc._parseInt(r.subarray(2)),{d:o,l:a}=gc._parseInt(i);if(a.length)throw new e("Invalid signature: left bytes after parsing");return{r:s,s:o}},hexFromSig(t){const e=l=>Number.parseInt(l[0],16)&8?"00"+l:l,r=l=>{const u=l.toString(16);return u.length&1?`0${u}`:u},n=e(r(t.s)),s=e(r(t.r)),i=n.length/2,o=s.length/2,a=r(i),c=r(o);return`30${r(o+i+4)}02${c}${s}02${a}${n}`}},Wi=BigInt(0),qn=BigInt(1);BigInt(2);const a8=BigInt(3);BigInt(4);function Ire(t){const e=Sre(t),{Fp:r}=e,n=e.toBytes||((y,p,b)=>{const v=p.toAffine();return y0(Uint8Array.from([4]),r.toBytes(v.x),r.toBytes(v.y))}),s=e.fromBytes||(y=>{const p=y.subarray(1),b=r.fromBytes(p.subarray(0,r.BYTES)),v=r.fromBytes(p.subarray(r.BYTES,2*r.BYTES));return{x:b,y:v}});function i(y){const{a:p,b}=e,v=r.sqr(y),g=r.mul(v,y);return r.add(r.add(g,r.mul(y,p)),b)}if(!r.eql(r.sqr(e.Gy),i(e.Gx)))throw new Error("bad generator point: equation left != right");function o(y){return typeof y=="bigint"&&Wir.eql(x,r.ZERO);return g(b)&&g(v)?f.ZERO:new f(b,v,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(p){const b=r.invertBatch(p.map(v=>v.pz));return p.map((v,g)=>v.toAffine(b[g])).map(f.fromAffine)}static fromHex(p){const b=f.fromAffine(s(ys("pointHex",p)));return b.assertValidity(),b}static fromPrivateKey(p){return f.BASE.multiply(c(p))}_setWindowSize(p){this._WINDOW_SIZE=p,l.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:p,y:b}=this.toAffine();if(!r.isValid(p)||!r.isValid(b))throw new Error("bad point: x or y not FE");const v=r.sqr(b),g=i(p);if(!r.eql(v,g))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:p}=this.toAffine();if(r.isOdd)return!r.isOdd(p);throw new Error("Field doesn't support isOdd")}equals(p){u(p);const{px:b,py:v,pz:g}=this,{px:x,py:k,pz:S}=p,I=r.eql(r.mul(b,S),r.mul(x,g)),R=r.eql(r.mul(v,S),r.mul(k,g));return I&&R}negate(){return new f(this.px,r.neg(this.py),this.pz)}double(){const{a:p,b}=e,v=r.mul(b,a8),{px:g,py:x,pz:k}=this;let S=r.ZERO,I=r.ZERO,R=r.ZERO,_=r.mul(g,g),V=r.mul(x,x),F=r.mul(k,k),X=r.mul(g,x);return X=r.add(X,X),R=r.mul(g,k),R=r.add(R,R),S=r.mul(p,R),I=r.mul(v,F),I=r.add(S,I),S=r.sub(V,I),I=r.add(V,I),I=r.mul(S,I),S=r.mul(X,S),R=r.mul(v,R),F=r.mul(p,F),X=r.sub(_,F),X=r.mul(p,X),X=r.add(X,R),R=r.add(_,_),_=r.add(R,_),_=r.add(_,F),_=r.mul(_,X),I=r.add(I,_),F=r.mul(x,k),F=r.add(F,F),_=r.mul(F,X),S=r.sub(S,_),R=r.mul(F,V),R=r.add(R,R),R=r.add(R,R),new f(S,I,R)}add(p){u(p);const{px:b,py:v,pz:g}=this,{px:x,py:k,pz:S}=p;let I=r.ZERO,R=r.ZERO,_=r.ZERO;const V=e.a,F=r.mul(e.b,a8);let X=r.mul(b,x),re=r.mul(v,k),le=r.mul(g,S),ee=r.add(b,v),D=r.add(x,k);ee=r.mul(ee,D),D=r.add(X,re),ee=r.sub(ee,D),D=r.add(b,g);let G=r.add(x,S);return D=r.mul(D,G),G=r.add(X,le),D=r.sub(D,G),G=r.add(v,g),I=r.add(k,S),G=r.mul(G,I),I=r.add(re,le),G=r.sub(G,I),_=r.mul(V,D),I=r.mul(F,le),_=r.add(I,_),I=r.sub(re,_),_=r.add(re,_),R=r.mul(I,_),re=r.add(X,X),re=r.add(re,X),le=r.mul(V,le),D=r.mul(F,D),re=r.add(re,le),le=r.sub(X,le),le=r.mul(V,le),D=r.add(D,le),X=r.mul(re,D),R=r.add(R,X),X=r.mul(G,D),I=r.mul(ee,I),I=r.sub(I,X),X=r.mul(ee,re),_=r.mul(G,_),_=r.add(_,X),new f(I,R,_)}subtract(p){return this.add(p.negate())}is0(){return this.equals(f.ZERO)}wNAF(p){return h.wNAFCached(this,l,p,b=>{const v=r.invertBatch(b.map(g=>g.pz));return b.map((g,x)=>g.toAffine(v[x])).map(f.fromAffine)})}multiplyUnsafe(p){const b=f.ZERO;if(p===Wi)return b;if(a(p),p===qn)return this;const{endo:v}=e;if(!v)return h.unsafeLadder(this,p);let{k1neg:g,k1:x,k2neg:k,k2:S}=v.splitScalar(p),I=b,R=b,_=this;for(;x>Wi||S>Wi;)x&qn&&(I=I.add(_)),S&qn&&(R=R.add(_)),_=_.double(),x>>=qn,S>>=qn;return g&&(I=I.negate()),k&&(R=R.negate()),R=new f(r.mul(R.px,v.beta),R.py,R.pz),I.add(R)}multiply(p){a(p);let b=p,v,g;const{endo:x}=e;if(x){const{k1neg:k,k1:S,k2neg:I,k2:R}=x.splitScalar(b);let{p:_,f:V}=this.wNAF(S),{p:F,f:X}=this.wNAF(R);_=h.constTimeNegate(k,_),F=h.constTimeNegate(I,F),F=new f(r.mul(F.px,x.beta),F.py,F.pz),v=_.add(F),g=V.add(X)}else{const{p:k,f:S}=this.wNAF(b);v=k,g=S}return f.normalizeZ([v,g])[0]}multiplyAndAddUnsafe(p,b,v){const g=f.BASE,x=(S,I)=>I===Wi||I===qn||!S.equals(g)?S.multiplyUnsafe(I):S.multiply(I),k=x(this,b).add(x(p,v));return k.is0()?void 0:k}toAffine(p){const{px:b,py:v,pz:g}=this,x=this.is0();p==null&&(p=x?r.ONE:r.inv(g));const k=r.mul(b,p),S=r.mul(v,p),I=r.mul(g,p);if(x)return{x:r.ZERO,y:r.ZERO};if(!r.eql(I,r.ONE))throw new Error("invZ was invalid");return{x:k,y:S}}isTorsionFree(){const{h:p,isTorsionFree:b}=e;if(p===qn)return!0;if(b)return b(f,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:p,clearCofactor:b}=e;return p===qn?this:b?b(f,this):this.multiplyUnsafe(e.h)}toRawBytes(p=!0){return this.assertValidity(),n(f,this,p)}toHex(p=!0){return Hf(this.toRawBytes(p))}}f.BASE=new f(e.Gx,e.Gy,r.ONE),f.ZERO=new f(r.ZERO,r.ONE,r.ZERO);const d=e.nBitLength,h=Are(f,e.endo?Math.ceil(d/2):d);return{CURVE:e,ProjectivePoint:f,normPrivateKeyToScalar:c,weierstrassEquation:i,isWithinCurveOrder:o}}function Ore(t){const e=EN(t);return m1(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function Rre(t){const e=Ore(t),{Fp:r,n}=e,s=r.BYTES+1,i=2*r.BYTES+1;function o(D){return WiHf(Gf(D,e.nByteLength));function y(D){const G=n>>qn;return D>G}function p(D){return y(D)?a(-D):D}const b=(D,G,Z)=>Xc(D.slice(G,Z));class v{constructor(G,Z,C){this.r=G,this.s=Z,this.recovery=C,this.assertValidity()}static fromCompact(G){const Z=e.nByteLength;return G=ys("compactSignature",G,Z*2),new v(b(G,0,Z),b(G,Z,2*Z))}static fromDER(G){const{r:Z,s:C}=gc.toSig(ys("DER",G));return new v(Z,C)}assertValidity(){if(!d(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!d(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(G){return new v(this.r,this.s,G)}recoverPublicKey(G){const{r:Z,s:C,recovery:A}=this,O=R(ys("msgHash",G));if(A==null||![0,1,2,3].includes(A))throw new Error("recovery id invalid");const M=A===2||A===3?Z+e.n:Z;if(M>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const B=A&1?"03":"02",W=l.fromHex(B+h(M)),q=c(M),te=a(-O*q),J=a(C*q),$=l.BASE.multiplyAndAddUnsafe(W,te,J);if(!$)throw new Error("point at infinify");return $.assertValidity(),$}hasHighS(){return y(this.s)}normalizeS(){return this.hasHighS()?new v(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return zf(this.toDERHex())}toDERHex(){return gc.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return zf(this.toCompactHex())}toCompactHex(){return h(this.r)+h(this.s)}}const g={isValidPrivateKey(D){try{return u(D),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const D=CN(e.n);return Ere(e.randomBytes(D),e.n)},precompute(D=8,G=l.BASE){return G._setWindowSize(D),G.multiply(BigInt(3)),G}};function x(D,G=!0){return l.fromPrivateKey(D).toRawBytes(G)}function k(D){const G=D instanceof Uint8Array,Z=typeof D=="string",C=(G||Z)&&D.length;return G?C===s||C===i:Z?C===2*s||C===2*i:D instanceof l}function S(D,G,Z=!0){if(k(D))throw new Error("first arg must be private key");if(!k(G))throw new Error("second arg must be public key");return l.fromHex(G).multiply(u(D)).toRawBytes(Z)}const I=e.bits2int||function(D){const G=Xc(D),Z=D.length*8-e.nBitLength;return Z>0?G>>BigInt(Z):G},R=e.bits2int_modN||function(D){return a(I(D))},_=k5(e.nBitLength);function V(D){if(typeof D!="bigint")throw new Error("bigint expected");if(!(Wi<=D&&D<_))throw new Error(`bigint expected < 2^${e.nBitLength}`);return Gf(D,e.nByteLength)}function F(D,G,Z=X){if(["recovered","canonical"].some(ue=>ue in Z))throw new Error("sign() legacy options not supported");const{hash:C,randomBytes:A}=e;let{lowS:O,prehash:M,extraEntropy:B}=Z;O==null&&(O=!0),D=ys("msgHash",D),M&&(D=ys("prehashed msgHash",C(D)));const W=R(D),q=u(G),te=[V(q),V(W)];if(B!=null){const ue=B===!0?A(r.BYTES):B;te.push(ys("extraEntropy",ue))}const J=y0(...te),$=W;function K(ue){const de=I(ue);if(!d(de))return;const oe=c(de),Ce=l.BASE.multiply(de).toAffine(),Re=a(Ce.x);if(Re===Wi)return;const xt=a(oe*a($+Re*q));if(xt===Wi)return;let tn=(Ce.x===Re?0:2)|Number(Ce.y&qn),br=xt;return O&&y(xt)&&(br=p(xt),tn^=1),new v(Re,br,tn)}return{seed:J,k2sig:K}}const X={lowS:e.lowS,prehash:!1},re={lowS:e.lowS,prehash:!1};function le(D,G,Z=X){const{seed:C,k2sig:A}=F(D,G,Z),O=e;return xN(O.hash.outputLen,O.nByteLength,O.hmac)(C,A)}l.BASE._setWindowSize(8);function ee(D,G,Z,C=re){var Ce;const A=D;if(G=ys("msgHash",G),Z=ys("publicKey",Z),"strict"in C)throw new Error("options.strict was renamed to lowS");const{lowS:O,prehash:M}=C;let B,W;try{if(typeof A=="string"||A instanceof Uint8Array)try{B=v.fromDER(A)}catch(Re){if(!(Re instanceof gc.Err))throw Re;B=v.fromCompact(A)}else if(typeof A=="object"&&typeof A.r=="bigint"&&typeof A.s=="bigint"){const{r:Re,s:xt}=A;B=new v(Re,xt)}else throw new Error("PARSE");W=l.fromHex(Z)}catch(Re){if(Re.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(O&&B.hasHighS())return!1;M&&(G=e.hash(G));const{r:q,s:te}=B,J=R(G),$=c(te),K=a(J*$),ue=a(q*$),de=(Ce=l.BASE.multiplyAndAddUnsafe(W,K,ue))==null?void 0:Ce.toAffine();return de?a(de.x)===q:!1}return{CURVE:e,getPublicKey:x,getSharedSecret:S,sign:le,verify:ee,ProjectivePoint:l,Signature:v,utils:g}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Nre(t){return{hash:t,hmac:(e,...r)=>_g(t,e,ite(...r)),randomBytes:ate}}function _re(t,e){const r=n=>Rre({...t,...Nre(n)});return Object.freeze({...r(e),create:r})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const kN=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),c8=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Mre=BigInt(1),jw=BigInt(2),l8=(t,e)=>(t+e/jw)/e;function Dre(t){const e=kN,r=BigInt(3),n=BigInt(6),s=BigInt(11),i=BigInt(22),o=BigInt(23),a=BigInt(44),c=BigInt(88),l=t*t*t%e,u=l*l*t%e,f=Dn(u,r,e)*u%e,d=Dn(f,r,e)*u%e,h=Dn(d,jw,e)*l%e,y=Dn(h,s,e)*h%e,p=Dn(y,i,e)*y%e,b=Dn(p,a,e)*p%e,v=Dn(b,c,e)*b%e,g=Dn(v,a,e)*p%e,x=Dn(g,r,e)*u%e,k=Dn(x,o,e)*y%e,S=Dn(k,n,e)*l%e,I=Dn(S,jw,e);if(!Fw.eql(Fw.sqr(I),t))throw new Error("Cannot find square root");return I}const Fw=Cre(kN,void 0,void 0,{sqrt:Dre}),Oo=_re({a:BigInt(0),b:BigInt(7),Fp:Fw,n:c8,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=c8,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-Mre*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=r,o=BigInt("0x100000000000000000000000000000000"),a=l8(i*t,e),c=l8(-n*t,e);let l=on(t-a*r-c*s,e),u=on(-a*n-c*i,e);const f=l>o,d=u>o;if(f&&(l=e-l),d&&(u=e-u),l>o||u>o)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:f,k1:l,k2neg:d,k2:u}}}},xd);BigInt(0);Oo.ProjectivePoint;const mi="0x0000000000000000000000000000000000000000",pl="0x0000000000000000000000000000000000000000000000000000000000000000",Bre=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Lre=BigInt("1000000000000000000"),AN=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),jre=BigInt("0x8000000000000000000000000000000000000000000000000000000000000000")*BigInt(-1),Fre=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Ure="Ξ",SN=`Ethereum Signed Message: -`,u8=BigInt(0),f8=BigInt(1),d8=BigInt(2),h8=BigInt(27),p8=BigInt(28),dp=BigInt(35),Bl={};function y8(t){return rs(rr(t),32)}var Gu,qu,Ku,Rc;const ds=class ds{constructor(e,r,n,s){j(this,Gu);j(this,qu);j(this,Ku);j(this,Rc);po(e,Bl,"Signature"),T(this,Gu,r),T(this,qu,n),T(this,Ku,s),T(this,Rc,null)}get r(){return w(this,Gu)}set r(e){P(xa(e)===32,"invalid r","value",e),T(this,Gu,H(e))}get s(){return w(this,qu)}set s(e){P(xa(e)===32,"invalid s","value",e);const r=H(e);P(parseInt(r.substring(0,3))<8,"non-canonical s","value",r),T(this,qu,r)}get v(){return w(this,Ku)}set v(e){const r=Pe(e,"value");P(r===27||r===28,"invalid v","v",e),T(this,Ku,r)}get networkV(){return w(this,Rc)}get legacyChainId(){const e=this.networkV;return e==null?null:ds.getChainId(e)}get yParity(){return this.v===27?0:1}get yParityAndS(){const e=Q(this.s);return this.yParity&&(e[0]|=128),H(e)}get compactSerialized(){return Le([this.r,this.yParityAndS])}get serialized(){return Le([this.r,this.s,this.yParity?"0x1c":"0x1b"])}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const e=new ds(Bl,this.r,this.s,this.v);return this.networkV&&T(e,Rc,this.networkV),e}toJSON(){const e=this.networkV;return{_type:"signature",networkV:e!=null?e.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(e){const r=ve(e,"v");return r==h8||r==p8?u8:(P(r>=dp,"invalid EIP-155 v","v",e),(r-dp)/d8)}static getChainIdV(e,r){return ve(e)*d8+BigInt(35+r-27)}static getNormalizedV(e){const r=ve(e);return r===u8||r===h8?27:r===f8||r===p8?28:(P(r>=dp,"invalid v","v",e),r&f8?27:28)}static from(e){function r(l,u){P(l,u,"signature",e)}if(e==null)return new ds(Bl,pl,pl,27);if(typeof e=="string"){const l=Q(e,"signature");if(l.length===64){const u=H(l.slice(0,32)),f=l.slice(32,64),d=f[0]&128?28:27;return f[0]&=127,new ds(Bl,u,H(f),d)}if(l.length===65){const u=H(l.slice(0,32)),f=l.slice(32,64);r((f[0]&128)===0,"non-canonical s");const d=ds.getNormalizedV(l[64]);return new ds(Bl,u,H(f),d)}r(!1,"invalid raw signature length")}if(e instanceof ds)return e.clone();const n=e.r;r(n!=null,"missing r");const s=y8(n),i=function(l,u){if(l!=null)return y8(l);if(u!=null){r(et(u,32),"invalid yParityAndS");const f=Q(u);return f[0]&=127,H(f)}r(!1,"missing s")}(e.s,e.yParityAndS);r((Q(i)[0]&128)==0,"non-canonical s");const{networkV:o,v:a}=function(l,u,f){if(l!=null){const d=ve(l);return{networkV:d>=dp?d:void 0,v:ds.getNormalizedV(d)}}if(u!=null)return r(et(u,32),"invalid yParityAndS"),{v:Q(u)[0]&128?28:27};if(f!=null){switch(Pe(f,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}r(!1,"invalid yParity")}r(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),c=new ds(Bl,s,i,a);return o&&T(c,Rc,o),r(e.yParity==null||Pe(e.yParity,"sig.yParity")===c.yParity,"yParity mismatch"),r(e.yParityAndS==null||e.yParityAndS===c.yParityAndS,"yParityAndS mismatch"),c}};Gu=new WeakMap,qu=new WeakMap,Ku=new WeakMap,Rc=new WeakMap;let os=ds;var Ni;const fc=class fc{constructor(e){j(this,Ni);P(xa(e)===32,"invalid private key","privateKey","[REDACTED]"),T(this,Ni,H(e))}get privateKey(){return w(this,Ni)}get publicKey(){return fc.computePublicKey(w(this,Ni))}get compressedPublicKey(){return fc.computePublicKey(w(this,Ni),!0)}sign(e){P(xa(e)===32,"invalid digest length","digest",e);const r=Oo.sign(tr(e),tr(w(this,Ni)),{lowS:!0});return os.from({r:In(r.r,32),s:In(r.s,32),v:r.recovery?28:27})}computeSharedSecret(e){const r=fc.computePublicKey(e);return H(Oo.getSharedSecret(tr(w(this,Ni)),Q(r),!1))}static computePublicKey(e,r){let n=Q(e,"key");if(n.length===32){const i=Oo.getPublicKey(n,!!r);return H(i)}if(n.length===64){const i=new Uint8Array(65);i[0]=4,i.set(n,1),n=i}const s=Oo.ProjectivePoint.fromHex(n);return H(s.toRawBytes(r))}static recoverPublicKey(e,r){P(xa(e)===32,"invalid digest length","digest",e);const n=os.from(r);let s=Oo.Signature.fromCompact(tr(Le([n.r,n.s])));s=s.addRecoveryBit(n.yParity);const i=s.recoverPublicKey(tr(e));return P(i!=null,"invalid signautre for digest","signature",r),"0x"+i.toHex(!1)}static addPoints(e,r,n){const s=Oo.ProjectivePoint.fromHex(fc.computePublicKey(e).substring(2)),i=Oo.ProjectivePoint.fromHex(fc.computePublicKey(r).substring(2));return"0x"+s.add(i).toHex(!!n)}};Ni=new WeakMap;let Os=fc;function $re(){Wa.lock(),Ne.lock(),xi.lock(),Rr.lock(),Va.lock(),Ha.lock(),za.lock(),qr.lock(),g1.lock(),Rr.lock()}const Wre=BigInt(0),Vre=BigInt(36);function v8(t){t=t.toLowerCase();const e=t.substring(2).split(""),r=new Uint8Array(40);for(let s=0;s<40;s++)r[s]=e[s].charCodeAt(0);const n=Q(Ne(r));for(let s=0;s<40;s+=2)n[s>>1]>>4>=8&&(e[s]=e[s].toUpperCase()),(n[s>>1]&15)>=8&&(e[s+1]=e[s+1].toUpperCase());return"0x"+e.join("")}const A5={};for(let t=0;t<10;t++)A5[String(t)]=String(t);for(let t=0;t<26;t++)A5[String.fromCharCode(65+t)]=String(10+t);const g8=15;function TN(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(n=>A5[n]).join("");for(;e.length>=g8;){let n=e.substring(0,g8);e=parseInt(n,10)%97+e.substring(n.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}const Hre=function(){const t={};for(let e=0;e<36;e++){const r="0123456789abcdefghijklmnopqrstuvwxyz"[e];t[r]=BigInt(e)}return t}();function zre(t){t=t.toLowerCase();let e=Wre;for(let r=0;re.format()).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return this.type==="string"}get tupleName(){if(this.type!=="tuple")throw TypeError("not a tuple");return w(this,Nc)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return w(this,Nc)===!0?-1:w(this,Nc)===!1?this.value.length:null}static from(e,r){return new Si(Ai,e,r)}static uint8(e){return he(e,8)}static uint16(e){return he(e,16)}static uint24(e){return he(e,24)}static uint32(e){return he(e,32)}static uint40(e){return he(e,40)}static uint48(e){return he(e,48)}static uint56(e){return he(e,56)}static uint64(e){return he(e,64)}static uint72(e){return he(e,72)}static uint80(e){return he(e,80)}static uint88(e){return he(e,88)}static uint96(e){return he(e,96)}static uint104(e){return he(e,104)}static uint112(e){return he(e,112)}static uint120(e){return he(e,120)}static uint128(e){return he(e,128)}static uint136(e){return he(e,136)}static uint144(e){return he(e,144)}static uint152(e){return he(e,152)}static uint160(e){return he(e,160)}static uint168(e){return he(e,168)}static uint176(e){return he(e,176)}static uint184(e){return he(e,184)}static uint192(e){return he(e,192)}static uint200(e){return he(e,200)}static uint208(e){return he(e,208)}static uint216(e){return he(e,216)}static uint224(e){return he(e,224)}static uint232(e){return he(e,232)}static uint240(e){return he(e,240)}static uint248(e){return he(e,248)}static uint256(e){return he(e,256)}static uint(e){return he(e,256)}static int8(e){return he(e,-8)}static int16(e){return he(e,-16)}static int24(e){return he(e,-24)}static int32(e){return he(e,-32)}static int40(e){return he(e,-40)}static int48(e){return he(e,-48)}static int56(e){return he(e,-56)}static int64(e){return he(e,-64)}static int72(e){return he(e,-72)}static int80(e){return he(e,-80)}static int88(e){return he(e,-88)}static int96(e){return he(e,-96)}static int104(e){return he(e,-104)}static int112(e){return he(e,-112)}static int120(e){return he(e,-120)}static int128(e){return he(e,-128)}static int136(e){return he(e,-136)}static int144(e){return he(e,-144)}static int152(e){return he(e,-152)}static int160(e){return he(e,-160)}static int168(e){return he(e,-168)}static int176(e){return he(e,-176)}static int184(e){return he(e,-184)}static int192(e){return he(e,-192)}static int200(e){return he(e,-200)}static int208(e){return he(e,-208)}static int216(e){return he(e,-216)}static int224(e){return he(e,-224)}static int232(e){return he(e,-232)}static int240(e){return he(e,-240)}static int248(e){return he(e,-248)}static int256(e){return he(e,-256)}static int(e){return he(e,-256)}static bytes1(e){return Ke(e,1)}static bytes2(e){return Ke(e,2)}static bytes3(e){return Ke(e,3)}static bytes4(e){return Ke(e,4)}static bytes5(e){return Ke(e,5)}static bytes6(e){return Ke(e,6)}static bytes7(e){return Ke(e,7)}static bytes8(e){return Ke(e,8)}static bytes9(e){return Ke(e,9)}static bytes10(e){return Ke(e,10)}static bytes11(e){return Ke(e,11)}static bytes12(e){return Ke(e,12)}static bytes13(e){return Ke(e,13)}static bytes14(e){return Ke(e,14)}static bytes15(e){return Ke(e,15)}static bytes16(e){return Ke(e,16)}static bytes17(e){return Ke(e,17)}static bytes18(e){return Ke(e,18)}static bytes19(e){return Ke(e,19)}static bytes20(e){return Ke(e,20)}static bytes21(e){return Ke(e,21)}static bytes22(e){return Ke(e,22)}static bytes23(e){return Ke(e,23)}static bytes24(e){return Ke(e,24)}static bytes25(e){return Ke(e,25)}static bytes26(e){return Ke(e,26)}static bytes27(e){return Ke(e,27)}static bytes28(e){return Ke(e,28)}static bytes29(e){return Ke(e,29)}static bytes30(e){return Ke(e,30)}static bytes31(e){return Ke(e,31)}static bytes32(e){return Ke(e,32)}static address(e){return new Si(Ai,"address",e)}static bool(e){return new Si(Ai,"bool",!!e)}static bytes(e){return new Si(Ai,"bytes",e)}static string(e){return new Si(Ai,"string",e)}static array(e,r){throw new Error("not implemented yet")}static tuple(e,r){throw new Error("not implemented yet")}static overrides(e){return new Si(Ai,"overrides",Object.assign({},e))}static isTyped(e){return e&&typeof e=="object"&&"_typedSymbol"in e&&e._typedSymbol===m8}static dereference(e,r){if(Si.isTyped(e)){if(e.type!==r)throw new Error(`invalid type: expecetd ${r}, got ${e.type}`);return e.value}return e}};Nc=new WeakMap;let gr=Si;class Kre extends yo{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,r){let n=gr.dereference(r,"string");try{n=Te(n)}catch(s){return this._throwError(s.message,r)}return e.writeValue(n)}decode(e){return Te(In(e.readValue(),20))}}class Qre extends yo{constructor(r){super(r.name,r.type,"_",r.dynamic);N(this,"coder");this.coder=r}defaultValue(){return this.coder.defaultValue()}encode(r,n){return this.coder.encode(r,n)}decode(r){return this.coder.decode(r)}}function IN(t,e,r){let n=[];if(Array.isArray(r))n=r;else if(r&&typeof r=="object"){let c={};n=e.map(l=>{const u=l.localName;return z(u,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:l},value:r}),z(!c[u],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:l},value:r}),c[u]=!0,r[u]})}else P(!1,"invalid tuple value","tuple",r);P(e.length===n.length,"types/value length mismatch","tuple",r);let s=new Nw,i=new Nw,o=[];e.forEach((c,l)=>{let u=n[l];if(c.dynamic){let f=i.length;c.encode(i,u);let d=s.writeUpdatableValue();o.push(h=>{d(h+f)})}else c.encode(s,u)}),o.forEach(c=>{c(s.length)});let a=t.appendWriter(s);return a+=t.appendWriter(i),a}function ON(t,e){let r=[],n=[],s=t.subReader(0);return e.forEach(i=>{let o=null;if(i.dynamic){let a=t.readIndex(),c=s.subReader(a);try{o=i.decode(c)}catch(l){if(Ht(l,"BUFFER_OVERRUN"))throw l;o=l,o.baseType=i.name,o.name=i.localName,o.type=i.type}}else try{o=i.decode(t)}catch(a){if(Ht(a,"BUFFER_OVERRUN"))throw a;o=a,o.baseType=i.name,o.name=i.localName,o.type=i.type}if(o==null)throw new Error("investigate");r.push(o),n.push(i.localName||null)}),hl.fromItems(r,n)}class Jre extends yo{constructor(r,n,s){const i=r.type+"["+(n>=0?n:"")+"]",o=n===-1||r.dynamic;super("array",i,s,o);N(this,"coder");N(this,"length");fe(this,{coder:r,length:n})}defaultValue(){const r=this.coder.defaultValue(),n=[];for(let s=0;so||s<-(o+nne))&&this._throwError("value out-of-bounds",n),s=Rg(s,8*Vr)}else(saa(i,this.size*8))&&this._throwError("value out-of-bounds",n);return r.writeValue(s)}decode(r){let n=aa(r.readValue(),this.size*8);return this.signed&&(n=h0(n,this.size*8)),n}}class one extends RN{constructor(e){super("string",e)}defaultValue(){return""}encode(e,r){return super.encode(e,mt(gr.dereference(r,"string")))}decode(e){return Ms(super.decode(e))}}class hp extends yo{constructor(r,n){let s=!1;const i=[];r.forEach(a=>{a.dynamic&&(s=!0),i.push(a.type)});const o="tuple("+i.join(",")+")";super("tuple",o,n,s);N(this,"coders");fe(this,{coders:Object.freeze(r.slice())})}defaultValue(){const r=[];this.coders.forEach(s=>{r.push(s.defaultValue())});const n=this.coders.reduce((s,i)=>{const o=i.localName;return o&&(s[o]||(s[o]=0),s[o]++),s},{});return this.coders.forEach((s,i)=>{let o=s.localName;!o||n[o]!==1||(o==="length"&&(o="_length"),r[o]==null&&(r[o]=r[i]))}),Object.freeze(r)}encode(r,n){const s=gr.dereference(n,"tuple");return IN(r,this.coders,s)}decode(r){return ON(r,this.coders)}}function Kr(t){return Ne(mt(t))}var ane="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const x8=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),b8=4;function cne(t){let e=0;function r(){return t[e++]<<8|t[e++]}let n=r(),s=1,i=[0,1];for(let S=1;S>--c&1}const f=31,d=2**f,h=d>>>1,y=h>>1,p=d-1;let b=0;for(let S=0;S1;){let F=I+R>>>1;S>>1|u(),_=_<<1^h,V=(V^h)<<1|h|1;g=_,x=1+V-_}let k=n-4;return v.map(S=>{switch(S-k){case 3:return k+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return k+256+(t[a++]<<8|t[a++]);case 1:return k+t[a++];default:return S-1}})}function lne(t){let e=0;return()=>t[e++]}function NN(t){return lne(cne(une(t)))}function une(t){let e=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((s,i)=>e[s.charCodeAt(0)]=i);let r=t.length,n=new Uint8Array(6*r>>3);for(let s=0,i=0,o=0,a=0;s=8&&(n[i++]=a>>(o-=8));return n}function fne(t){return t&1?~t>>1:t>>1}function dne(t,e){let r=Array(t);for(let n=0,s=0;n{let e=v0(t);if(e.length)return e})}function MN(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(hne(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(pne(r,t))}return e.flat()}function g0(t){let e=[];for(;;){let r=t(e.length);if(!r)break;e.push(r)}return e}function DN(t,e,r){let n=Array(t).fill().map(()=>[]);for(let s=0;sn[o].push(i));return n}function hne(t,e){let r=1+e(),n=e(),s=g0(e);return DN(s.length,1+t,e).flatMap((o,a)=>{let[c,...l]=o;return Array(s[a]).fill().map((u,f)=>{let d=f*n;return[c+f*r,l.map(h=>h+d)]})})}function pne(t,e){let r=1+e();return DN(r,1+t,e).map(s=>[s[0],s.slice(1)])}function yne(t){let e=[],r=v0(t);return s(n([]),[]),e;function n(i){let o=t(),a=g0(()=>{let c=v0(t).map(l=>r[l]);if(c.length)return n(c)});return{S:o,B:a,Q:i}}function s({S:i,B:o},a,c){if(!(i&4&&c===a[a.length-1])){i&2&&(c=a[a.length-1]),i&1&&e.push(a);for(let l of o)for(let u of l.Q)s(l,[...a,u],c)}}}function vne(t){return t.toString(16).toUpperCase().padStart(2,"0")}function BN(t){return`{${vne(t)}}`}function gne(t){let e=[];for(let r=0,n=t.length;r>24&255}function FN(t){return t&16777215}let Uw,w8,$w,Gp;function Ane(){let t=NN(xne);Uw=new Map(_N(t).flatMap((e,r)=>e.map(n=>[n,r+1<<24]))),w8=new Set(v0(t)),$w=new Map,Gp=new Map;for(let[e,r]of MN(t)){if(!w8.has(e)&&r.length==2){let[n,s]=r,i=Gp.get(n);i||(i=new Map,Gp.set(n,i)),i.set(s,e)}$w.set(e,r.reverse())}}function UN(t){return t>=m0&&t=nv&&t=sv&&eiv&&e0&&s(iv+l)}else{let o=$w.get(i);o?r.push(...o):s(i)}if(!r.length)break;i=r.pop()}if(n&&e.length>1){let i=eh(e[0]);for(let o=1;o0&&s>=o)o==0?(e.push(n,...r),r.length=0,n=a):r.push(a),s=o;else{let c=Sne(n,a);c>=0?n=c:s==0&&o==0?(e.push(n),n=a):(r.push(a),s=o)}}return n>=0&&e.push(n,...r),e}function WN(t){return $N(t).map(FN)}function Pne(t){return Tne($N(t))}const C8=45,VN=".",HN=65039,zN=1,av=t=>Array.from(t);function x0(t,e){return t.P.has(e)||t.Q.has(e)}class Ine extends Array{get is_emoji(){return!0}}let Ww,GN,mc,Vw,qN,Ru,wx,Gl,sc,E8,Hw;function P5(){if(Ww)return;let t=NN(ane);const e=()=>v0(t),r=()=>new Set(e()),n=(u,f)=>f.forEach(d=>u.add(d));Ww=new Map(MN(t)),GN=r(),mc=e(),Vw=new Set(e().map(u=>mc[u])),mc=new Set(mc),qN=r(),r();let s=_N(t),i=t();const o=()=>{let u=new Set;return e().forEach(f=>n(u,s[f])),n(u,e()),u};Ru=g0(u=>{let f=g0(t).map(d=>d+96);if(f.length){let d=u>=i;f[0]-=32,f=qf(f),d&&(f=`Restricted[${f}]`);let h=o(),y=o(),p=!t();return{N:f,P:h,Q:y,M:p,R:d}}}),wx=r(),Gl=new Map;let a=e().concat(av(wx)).sort((u,f)=>u-f);a.forEach((u,f)=>{let d=t(),h=a[f]=d?a[f-d]:{V:[],M:new Map};h.V.push(u),wx.has(u)||Gl.set(u,h)});for(let{V:u,M:f}of new Set(Gl.values())){let d=[];for(let y of u){let p=Ru.filter(v=>x0(v,y)),b=d.find(({G:v})=>p.some(g=>v.has(g)));b||(b={G:new Set,V:[]},d.push(b)),b.V.push(y),n(b.G,p)}let h=d.flatMap(y=>av(y.G));for(let{G:y,V:p}of d){let b=new Set(h.filter(v=>!y.has(v)));for(let v of p)f.set(v,b)}}sc=new Set;let c=new Set;const l=u=>sc.has(u)?c.add(u):sc.add(u);for(let u of Ru){for(let f of u.P)l(f);for(let f of u.Q)l(f)}for(let u of sc)!Gl.has(u)&&!c.has(u)&&Gl.set(u,zN);n(sc,WN(sc)),E8=yne(t).map(u=>Ine.from(u)).sort(mne),Hw=new Map;for(let u of E8){let f=[Hw];for(let d of u){let h=f.map(y=>{let p=y.get(d);return p||(p=new Map,y.set(d,p)),p});d===HN?f.push(...h):f=h}for(let d of f)d.V=u}}function I5(t){return(KN(t)?"":`${O5(Bg([t]))} `)+BN(t)}function O5(t){return`"${t}"‎`}function One(t){if(t.length>=4&&t[2]==C8&&t[3]==C8)throw new Error(`invalid label extension: "${qf(t.slice(0,4))}"`)}function Rne(t){for(let r=t.lastIndexOf(95);r>0;)if(t[--r]!==95)throw new Error("underscore allowed only at start")}function Nne(t){let e=t[0],r=x8.get(e);if(r)throw Ah(`leading ${r}`);let n=t.length,s=-1;for(let i=1;ie&&(e>>=1,t=[...t.slice(0,e),8230,...t.slice(-e)]);let s=0,i=t.length;for(let o=0;o{let i=gne(s),o={input:i,offset:n};n+=i.length+1;try{let a=o.tokens=Une(i,e,r),c=a.length,l;if(!c)throw new Error("empty label");let u=o.output=a.flat();if(Rne(u),!(o.emoji=c>1||a[0].is_emoji)&&u.every(d=>d<128))One(u),l="ASCII";else{let d=a.flatMap(h=>h.is_emoji?[]:h);if(!d.length)l="Emoji";else{if(mc.has(u[0]))throw Ah("leading combining mark");for(let p=1;po.has(a)):av(o),!r.length)return}else n.push(s)}if(r){for(let s of r)if(n.every(i=>x0(s,i)))throw new Error(`whole-script confusable: ${t.N}/${s.N}`)}}function Lne(t){let e=Ru;for(let r of t){let n=e.filter(s=>x0(s,r));if(!n.length)throw Ru.some(s=>x0(s,r))?JN(e[0],r):QN(r);if(e=n,n.length==1)break}return e}function jne(t){return t.map(({input:e,error:r,output:n})=>{if(r){let s=r.message;throw new Error(t.length==1?s:`Invalid label ${O5(Bg(e,63))}: ${s}`)}return qf(n)}).join(VN)}function QN(t){return new Error(`disallowed character: ${I5(t)}`)}function JN(t,e){let r=I5(e),n=Ru.find(s=>s.P.has(e));return n&&(r=`${n.N} ${r}`),new Error(`illegal mixture: ${t.N} + ${r}`)}function Ah(t){return new Error(`illegal placement: ${t}`)}function Fne(t,e){for(let r of e)if(!x0(t,r))throw JN(t,r);if(t.M){let r=WN(e);for(let n=1,s=r.length;nb8)throw new Error(`excessive non-spacing marks: ${O5(Bg(r.slice(n-1,i)))} (${i-n}/${b8})`);n=i}}}function Une(t,e,r){let n=[],s=[];for(t=t.slice().reverse();t.length;){let i=Wne(t);if(i)s.length&&(n.push(e(s)),s=[]),n.push(r(i));else{let o=t.pop();if(sc.has(o))s.push(o);else{let a=Ww.get(o);if(a)s.push(...a);else if(!GN.has(o))throw QN(o)}}}return s.length&&n.push(e(s)),n}function $ne(t){return t.filter(e=>e!=HN)}function Wne(t,e){let r=Hw,n,s=t.length;for(;s&&(r=r.get(t[--s]),!!r);){let{V:i}=r;i&&(n=i,t.length=s)}return n}const YN=new Uint8Array(32);YN.fill(0);function k8(t){return P(t.length!==0,"invalid ENS name; empty component","comp",t),t}function R5(t){const e=mt(XN(t)),r=[];if(t.length===0)return r;let n=0;for(let s=0;s{P(n.length<=r,`label ${JSON.stringify(t)} exceeds ${r} bytes`,"name",t);const s=new Uint8Array(n.length+1);return s.set(n,1),s[0]=s.length-1,s})))+"00"}function Cx(t,e){return{address:Te(t),storageKeys:e.map((r,n)=>(P(et(r,32),"invalid slot",`storageKeys[${n}]`,r),r.toLowerCase()))}}function vo(t){if(Array.isArray(t))return t.map((r,n)=>Array.isArray(r)?(P(r.length===2,"invalid slot set",`value[${n}]`,r),Cx(r[0],r[1])):(P(r!=null&&typeof r=="object","invalid address-slot set","value",t),Cx(r.address,r.storageKeys)));P(t!=null&&typeof t=="object","invalid access list","value",t);const e=Object.keys(t).map(r=>{const n=t[r].reduce((s,i)=>(s[i]=!0,s),{});return Cx(r,Object.keys(n).sort())});return e.sort((r,n)=>r.address.localeCompare(n.address)),e}function bd(t){let e;return typeof t=="string"?e=Os.computePublicKey(t,!1):e=t.publicKey,Te(Ne("0x"+e.substring(4)).substring(26))}function Qf(t,e){return bd(Os.recoverPublicKey(t,e))}const Xt=BigInt(0),Hne=BigInt(2),zne=BigInt(27),Gne=BigInt(28),qne=BigInt(35),Kne=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Ex=4096*32;function A8(t,e){let r=t.toString(16);for(;r.length<2;)r="0"+r;return r+=qr(e).substring(4),"0x"+r}function Lg(t){return t==="0x"?null:Te(t)}function N5(t,e){try{return vo(t)}catch(r){P(!1,r.message,e,t)}}function x1(t,e){return t==="0x"?0:Pe(t,e)}function Dt(t,e){if(t==="0x")return Xt;const r=ve(t,e);return P(r<=Kne,"value exceeds uint size",e,r),r}function ht(t,e){const r=ve(t,"value"),n=rr(r);return P(n.length<=32,"value too large",`tx.${e}`,r),n}function _5(t){return vo(t).map(e=>[e.address,e.storageKeys])}function Qne(t,e){P(Array.isArray(t),`invalid ${e}`,"value",t);for(let r=0;rs.data),r.map(s=>s.commitment),r.map(s=>s.proof)])]):Le(["0x03",Ra(n)])}var Qs,Qu,Ju,Yu,Xu,Zu,ef,tf,rf,nf,sf,of,_c,$o,_i,Wo,af,qp;const Ti=class Ti{constructor(){j(this,af);j(this,Qs);j(this,Qu);j(this,Ju);j(this,Yu);j(this,Xu);j(this,Zu);j(this,ef);j(this,tf);j(this,rf);j(this,nf);j(this,sf);j(this,of);j(this,_c);j(this,$o);j(this,_i);j(this,Wo);T(this,Qs,null),T(this,Qu,null),T(this,Yu,0),T(this,Xu,Xt),T(this,Zu,null),T(this,ef,null),T(this,tf,null),T(this,Ju,"0x"),T(this,rf,Xt),T(this,nf,Xt),T(this,sf,null),T(this,of,null),T(this,_c,null),T(this,$o,null),T(this,Wo,null),T(this,_i,null)}get type(){return w(this,Qs)}set type(e){switch(e){case null:T(this,Qs,null);break;case 0:case"legacy":T(this,Qs,0);break;case 1:case"berlin":case"eip-2930":T(this,Qs,1);break;case 2:case"london":case"eip-1559":T(this,Qs,2);break;case 3:case"cancun":case"eip-4844":T(this,Qs,3);break;default:P(!1,"unsupported transaction type","type",e)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844"}return null}get to(){const e=w(this,Qu);return e==null&&this.type===3?mi:e}set to(e){T(this,Qu,e==null?null:Te(e))}get nonce(){return w(this,Yu)}set nonce(e){T(this,Yu,Pe(e,"value"))}get gasLimit(){return w(this,Xu)}set gasLimit(e){T(this,Xu,ve(e))}get gasPrice(){const e=w(this,Zu);return e==null&&(this.type===0||this.type===1)?Xt:e}set gasPrice(e){T(this,Zu,e==null?null:ve(e,"gasPrice"))}get maxPriorityFeePerGas(){const e=w(this,ef);return e??(this.type===2||this.type===3?Xt:null)}set maxPriorityFeePerGas(e){T(this,ef,e==null?null:ve(e,"maxPriorityFeePerGas"))}get maxFeePerGas(){const e=w(this,tf);return e??(this.type===2||this.type===3?Xt:null)}set maxFeePerGas(e){T(this,tf,e==null?null:ve(e,"maxFeePerGas"))}get data(){return w(this,Ju)}set data(e){T(this,Ju,H(e))}get value(){return w(this,rf)}set value(e){T(this,rf,ve(e,"value"))}get chainId(){return w(this,nf)}set chainId(e){T(this,nf,ve(e))}get signature(){return w(this,sf)||null}set signature(e){T(this,sf,e==null?null:os.from(e))}get accessList(){const e=w(this,of)||null;return e??(this.type===1||this.type===2||this.type===3?[]:null)}set accessList(e){T(this,of,e==null?null:vo(e))}get maxFeePerBlobGas(){const e=w(this,_c);return e==null&&this.type===3?Xt:e}set maxFeePerBlobGas(e){T(this,_c,e==null?null:ve(e,"maxFeePerBlobGas"))}get blobVersionedHashes(){let e=w(this,$o);return e==null&&this.type===3?[]:e}set blobVersionedHashes(e){if(e!=null){P(Array.isArray(e),"blobVersionedHashes must be an Array","value",e),e=e.slice();for(let r=0;rObject.assign({},e))}set blobs(e){if(e==null){T(this,Wo,null);return}const r=[],n=[];for(let s=0;s=0?2:e.pop()}inferTypes(){const e=this.gasPrice!=null,r=this.maxFeePerGas!=null||this.maxPriorityFeePerGas!=null,n=this.accessList!=null,s=w(this,_c)!=null||w(this,$o);this.maxFeePerGas!=null&&this.maxPriorityFeePerGas!=null&&z(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),z(!r||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),z(this.type!==0||!n,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const i=[];return this.type!=null?i.push(this.type):r?i.push(2):e?(i.push(1),n||i.push(0)):n?(i.push(1),i.push(2)):(s&&this.to||(i.push(0),i.push(1),i.push(2)),i.push(3)),i.sort(),i}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}clone(){return Ti.from(this)}toJSON(){const e=r=>r==null?null:r.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(e){if(e==null)return new Ti;if(typeof e=="string"){const n=Q(e);if(n[0]>=127)return Ti.from(Jne(n));switch(n[0]){case 1:return Ti.from(ese(n));case 2:return Ti.from(Xne(n));case 3:return Ti.from(rse(n))}z(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const r=new Ti;return e.type!=null&&(r.type=e.type),e.to!=null&&(r.to=e.to),e.nonce!=null&&(r.nonce=e.nonce),e.gasLimit!=null&&(r.gasLimit=e.gasLimit),e.gasPrice!=null&&(r.gasPrice=e.gasPrice),e.maxPriorityFeePerGas!=null&&(r.maxPriorityFeePerGas=e.maxPriorityFeePerGas),e.maxFeePerGas!=null&&(r.maxFeePerGas=e.maxFeePerGas),e.maxFeePerBlobGas!=null&&(r.maxFeePerBlobGas=e.maxFeePerBlobGas),e.data!=null&&(r.data=e.data),e.value!=null&&(r.value=e.value),e.chainId!=null&&(r.chainId=e.chainId),e.signature!=null&&(r.signature=os.from(e.signature)),e.accessList!=null&&(r.accessList=e.accessList),e.blobVersionedHashes!=null&&(r.blobVersionedHashes=e.blobVersionedHashes),e.kzg!=null&&(r.kzg=e.kzg),e.blobs!=null&&(r.blobs=e.blobs),e.hash!=null&&(P(r.isSigned(),"unsigned transaction cannot define '.hash'","tx",e),P(r.hash===e.hash,"hash mismatch","tx",e)),e.from!=null&&(P(r.isSigned(),"unsigned transaction cannot define '.from'","tx",e),P(r.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),r}};Qs=new WeakMap,Qu=new WeakMap,Ju=new WeakMap,Yu=new WeakMap,Xu=new WeakMap,Zu=new WeakMap,ef=new WeakMap,tf=new WeakMap,rf=new WeakMap,nf=new WeakMap,sf=new WeakMap,of=new WeakMap,_c=new WeakMap,$o=new WeakMap,_i=new WeakMap,Wo=new WeakMap,af=new WeakSet,qp=function(e,r){z(!e||this.signature!=null,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});const n=e?this.signature:null;switch(this.inferType()){case 0:return Yne(this,n);case 1:return tse(this,n);case 2:return Zne(this,n);case 3:return nse(this,n,r?this.blobs:null)}z(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})};let yl=Ti;function jg(t){return typeof t=="string"&&(t=mt(t)),Ne(Le([mt(SN),mt(String(t.length)),t]))}function e7(t,e){const r=jg(t);return Qf(r,e)}const sse=new RegExp("^bytes([0-9]+)$"),ise=new RegExp("^(u?int)([0-9]*)$"),ose=new RegExp("^(.*)\\[([0-9]*)\\]$");function t7(t,e,r){switch(t){case"address":return Q(r?rs(e,32):Te(e));case"string":return mt(e);case"bytes":return Q(e);case"bool":return e=e?"0x01":"0x00",Q(r?rs(e,32):e)}let n=t.match(ise);if(n){let s=n[1]==="int",i=parseInt(n[2]||"256");return P((!n[2]||n[2]===String(i))&&i%8===0&&i!==0&&i<=256,"invalid number type","type",t),r&&(i=256),s&&(e=Rg(e,i)),Q(rs(rr(e),i/8))}if(n=t.match(sse),n){const s=parseInt(n[1]);return P(String(s)===n[1]&&s!==0&&s<=32,"invalid bytes type","type",t),P(xa(e)===s,`invalid value for ${t}`,"value",e),r?Q(Ig(e,32)):e}if(n=t.match(ose),n&&Array.isArray(e)){const s=n[1],i=parseInt(n[2]||String(e.length));P(i===e.length,`invalid array length for ${t}`,"value",e);const o=[];return e.forEach(function(a){o.push(t7(s,a,!0))}),Q(Le(o))}P(!1,"invalid type","type",t)}function De(t,e){P(t.length===e.length,"wrong number of values; expected ${ types.length }","values",e);const r=[];return t.forEach(function(n,s){r.push(t7(n,e[s]))}),H(Le(r))}function Zi(t,e){return Ne(De(t,e))}function ase(t,e){return qr(De(t,e))}const r7=new Uint8Array(32);r7.fill(0);const cse=BigInt(-1),n7=BigInt(0),s7=BigInt(1),lse=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function use(t){const e=Q(t),r=e.length%32;return r?Le([e,r7.slice(r)]):H(e)}const fse=In(s7,32),dse=In(n7,32),S8={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},kx=["name","version","chainId","verifyingContract","salt"];function T8(t){return function(e){return P(typeof e=="string",`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const hse={name:T8("name"),version:T8("version"),chainId:function(t){const e=ve(t,"domain.chainId");return P(e>=0,"invalid chain ID","domain.chainId",t),Number.isSafeInteger(e)?Number(e):pr(e)},verifyingContract:function(t){try{return Te(t).toLowerCase()}catch{}P(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){const e=Q(t,"domain.salt");return P(e.length===32,'invalid domain value "salt"',"domain.salt",t),H(e)}};function Ax(t){{const e=t.match(/^(u?)int(\d+)$/);if(e){const r=e[1]==="",n=parseInt(e[2]);P(n%8===0&&n!==0&&n<=256&&e[2]===String(n),"invalid numeric width","type",t);const s=aa(lse,r?n-1:n),i=r?(s+s7)*cse:n7;return function(o){const a=ve(o,"value");return P(a>=i&&a<=s,`value out-of-bounds for ${t}`,"value",a),In(r?Rg(a,256):a,32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return P(r!==0&&r<=32&&e[1]===String(r),"invalid bytes width","type",t),function(n){const s=Q(n);return P(s.length===r,`invalid length for ${t}`,"value",n),use(n)}}}switch(t){case"address":return function(e){return rs(Te(e),32)};case"bool":return function(e){return e?fse:dse};case"bytes":return function(e){return Ne(e)};case"string":return function(e){return Kr(e)}}return null}function P8(t,e){return`${t}(${e.map(({name:r,type:n})=>n+" "+r).join(",")})`}function pp(t){const e=t.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return e?{base:e[1],index:e[2]+e[4],array:{base:e[1],prefix:e[1]+e[2],count:e[5]?parseInt(e[5]):-1}}:{base:t}}var L0,Mi,cf,Rv,i7;const $n=class $n{constructor(e){j(this,Rv);N(this,"primaryType");j(this,L0);j(this,Mi);j(this,cf);T(this,Mi,new Map),T(this,cf,new Map);const r=new Map,n=new Map,s=new Map,i={};Object.keys(e).forEach(c=>{i[c]=e[c].map(({name:l,type:u})=>{let{base:f,index:d}=pp(u);return f==="int"&&!e.int&&(f="int256"),f==="uint"&&!e.uint&&(f="uint256"),{name:l,type:f+(d||"")}}),r.set(c,new Set),n.set(c,[]),s.set(c,new Set)}),T(this,L0,JSON.stringify(i));for(const c in i){const l=new Set;for(const u of i[c]){P(!l.has(u.name),`duplicate variable name ${JSON.stringify(u.name)} in ${JSON.stringify(c)}`,"types",e),l.add(u.name);const f=pp(u.type).base;P(f!==c,`circular type reference to ${JSON.stringify(f)}`,"types",e),!Ax(f)&&(P(n.has(f),`unknown type ${JSON.stringify(f)}`,"types",e),n.get(f).push(c),r.get(c).add(f))}}const o=Array.from(n.keys()).filter(c=>n.get(c).length===0);P(o.length!==0,"missing primary type","types",e),P(o.length===1,`ambiguous primary types or unused types: ${o.map(c=>JSON.stringify(c)).join(", ")}`,"types",e),fe(this,{primaryType:o[0]});function a(c,l){P(!l.has(c),`circular type reference to ${JSON.stringify(c)}`,"types",e),l.add(c);for(const u of r.get(c))if(n.has(u)){a(u,l);for(const f of l)s.get(f).add(u)}l.delete(c)}a(this.primaryType,new Set);for(const[c,l]of s){const u=Array.from(l);u.sort(),w(this,Mi).set(c,P8(c,i[c])+u.map(f=>P8(f,i[f])).join(""))}}get types(){return JSON.parse(w(this,L0))}getEncoder(e){let r=w(this,cf).get(e);return r||(r=Y(this,Rv,i7).call(this,e),w(this,cf).set(e,r)),r}encodeType(e){const r=w(this,Mi).get(e);return P(r,`unknown type: ${JSON.stringify(e)}`,"name",e),r}encodeData(e,r){return this.getEncoder(e)(r)}hashStruct(e,r){return Ne(this.encodeData(e,r))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,r,n){if(Ax(e))return n(e,r);const s=pp(e).array;if(s)return P(s.count===-1||s.count===r.length,`array length mismatch; expected length ${s.count}`,"value",r),r.map(o=>this._visit(s.prefix,o,n));const i=this.types[e];if(i)return i.reduce((o,{name:a,type:c})=>(o[a]=this._visit(c,r[a],n),o),{});P(!1,`unknown type: ${e}`,"type",e)}visit(e,r){return this._visit(this.primaryType,e,r)}static from(e){return new $n(e)}static getPrimaryType(e){return $n.from(e).primaryType}static hashStruct(e,r,n){return $n.from(r).hashStruct(e,n)}static hashDomain(e){const r=[];for(const n in e){if(e[n]==null)continue;const s=S8[n];P(s,`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),r.push({name:n,type:s})}return r.sort((n,s)=>kx.indexOf(n.name)-kx.indexOf(s.name)),$n.hashStruct("EIP712Domain",{EIP712Domain:r},e)}static encode(e,r,n){return Le(["0x1901",$n.hashDomain(e),$n.from(r).hash(n)])}static hash(e,r,n){return Ne($n.encode(e,r,n))}static async resolveNames(e,r,n,s){e=Object.assign({},e);for(const a in e)e[a]==null&&delete e[a];const i={};e.verifyingContract&&!et(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const o=$n.from(r);o.visit(n,(a,c)=>(a==="address"&&!et(c,20)&&(i[c]="0x"),c));for(const a in i)i[a]=await s(a);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),n=o.visit(n,(a,c)=>a==="address"&&i[c]?i[c]:c),{domain:e,value:n}}static getPayload(e,r,n){$n.hashDomain(e);const s={},i=[];kx.forEach(c=>{const l=e[c];l!=null&&(s[c]=hse[c](l),i.push({name:c,type:S8[c]}))});const o=$n.from(r);r=o.types;const a=Object.assign({},r);return P(a.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",r),a.EIP712Domain=i,o.encode(n),{types:a,domain:s,primaryType:o.primaryType,message:o.visit(n,(c,l)=>{if(c.match(/^bytes(\d*)/))return H(Q(l));if(c.match(/^u?int/))return ve(l).toString();switch(c){case"address":return l.toLowerCase();case"bool":return!!l;case"string":return P(typeof l=="string","invalid string","value",l),l}P(!1,"unsupported type","type",c)})}}};L0=new WeakMap,Mi=new WeakMap,cf=new WeakMap,Rv=new WeakSet,i7=function(e){{const s=Ax(e);if(s)return s}const r=pp(e).array;if(r){const s=r.prefix,i=this.getEncoder(s);return o=>{P(r.count===-1||r.count===o.length,`array length mismatch; expected length ${r.count}`,"value",o);let a=o.map(i);return w(this,Mi).has(s)&&(a=a.map(Ne)),Ne(Le(a))}}const n=this.types[e];if(n){const s=Kr(w(this,Mi).get(e));return i=>{const o=n.map(({name:a,type:c})=>{const l=this.getEncoder(c)(i[a]);return w(this,Mi).has(c)?Ne(l):l});return o.unshift(s),Le(o)}}P(!1,`unknown type: ${e}`,"type",e)};let Ds=$n;function pse(t,e,r,n){return Qf(Ds.hash(t,e,r),n)}function Hr(t){const e=new Set;return t.forEach(r=>e.add(r)),Object.freeze(e)}const yse="external public payable override",vse=Hr(yse.split(" ")),o7="constant external internal payable private public pure view override",gse=Hr(o7.split(" ")),a7="constructor error event fallback function receive struct",c7=Hr(a7.split(" ")),l7="calldata memory storage payable indexed",mse=Hr(l7.split(" ")),xse="tuple returns",bse=[a7,l7,xse,o7].join(" "),wse=Hr(bse.split(" ")),Cse={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},Ese=new RegExp("^(\\s*)"),kse=new RegExp("^([0-9]+)"),Ase=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),u7=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),f7=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");var lr,xs,j0,zw;const Nv=class Nv{constructor(e){j(this,j0);j(this,lr);j(this,xs);T(this,lr,0),T(this,xs,e.slice())}get offset(){return w(this,lr)}get length(){return w(this,xs).length-w(this,lr)}clone(){return new Nv(w(this,xs))}reset(){T(this,lr,0)}popKeyword(e){const r=this.peek();if(r.type!=="KEYWORD"||!e.has(r.text))throw new Error(`expected keyword ${r.text}`);return this.pop().text}popType(e){if(this.peek().type!==e){const r=this.peek();throw new Error(`expected ${e}; got ${r.type} ${JSON.stringify(r.text)}`)}return this.pop().text}popParen(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const r=Y(this,j0,zw).call(this,w(this,lr)+1,e.match+1);return T(this,lr,e.match+1),r}popParams(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const r=[];for(;w(this,lr)=w(this,xs).length)throw new Error("out-of-bounds");return w(this,xs)[w(this,lr)]}peekKeyword(e){const r=this.peekType("KEYWORD");return r!=null&&e.has(r)?r:null}peekType(e){if(this.length===0)return null;const r=this.peek();return r.type===e?r.text:null}pop(){const e=this.peek();return Il(this,lr)._++,e}toString(){const e=[];for(let r=w(this,lr);r`}};lr=new WeakMap,xs=new WeakMap,j0=new WeakSet,zw=function(e=0,r=0){return new Nv(w(this,xs).slice(e,r).map(n=>Object.freeze(Object.assign({},n,{match:n.match-e,linkBack:n.linkBack-e,linkNext:n.linkNext-e}))))};let Bs=Nv;function Ga(t){const e=[],r=o=>{const a=i0&&e[e.length-1].type==="NUMBER"){const f=e.pop().text;u=f+u,e[e.length-1].value=Pe(f)}if(e.length===0||e[e.length-1].type!=="BRACKET")throw new Error("missing opening bracket");e[e.length-1].text+=u}continue}if(a=o.match(Ase),a){if(c.text=a[1],i+=c.text.length,wse.has(c.text)){c.type="KEYWORD";continue}if(c.text.match(f7)){c.type="TYPE";continue}c.type="ID";continue}if(a=o.match(kse),a){c.text=a[1],c.type="NUMBER",i+=c.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(o[0])} at position ${i}`)}return new Bs(e.map(o=>Object.freeze(o)))}function I8(t,e){let r=[];for(const n in e.keys())t.has(n)&&r.push(n);if(r.length>1)throw new Error(`conflicting types: ${r.join(", ")}`)}function Fg(t,e){if(e.peekKeyword(c7)){const r=e.pop().text;if(r!==t)throw new Error(`expected ${t}, got ${r}`)}return e.popType("ID")}function ao(t,e){const r=new Set;for(;;){const n=t.peekType("KEYWORD");if(n==null||e&&!e.has(n))break;if(t.pop(),r.has(n))throw new Error(`duplicate keywords: ${JSON.stringify(n)}`);r.add(n)}return Object.freeze(r)}function d7(t){let e=ao(t,gse);return I8(e,Hr("constant payable nonpayable".split(" "))),I8(e,Hr("pure view payable nonpayable".split(" "))),e.has("view")?"view":e.has("pure")?"pure":e.has("payable")?"payable":e.has("nonpayable")?"nonpayable":e.has("constant")?"view":"nonpayable"}function eo(t,e){return t.popParams().map(r=>or.from(r,e))}function h7(t){if(t.peekType("AT")){if(t.pop(),t.peekType("NUMBER"))return ve(t.pop().text);throw new Error("invalid gas")}return null}function vl(t){if(t.length)throw new Error(`unexpected tokens at offset ${t.offset}: ${t.toString()}`)}const Sse=new RegExp(/^(.*)\[([0-9]*)\]$/);function O8(t){const e=t.match(f7);if(P(e,"invalid type","type",t),t==="uint")return"uint256";if(t==="int")return"int256";if(e[2]){const r=parseInt(e[2]);P(r!==0&&r<=32,"invalid bytes length","type",t)}else if(e[3]){const r=parseInt(e[3]);P(r!==0&&r<=256&&r%8===0,"invalid numeric width","type",t)}return t}const wt={},pn=Symbol.for("_ethers_internal"),R8="_ParamTypeInternal",N8="_ErrorInternal",_8="_EventInternal",M8="_ConstructorInternal",D8="_FallbackInternal",B8="_FunctionInternal",L8="_StructInternal";var lf,Kp;const Wn=class Wn{constructor(e,r,n,s,i,o,a,c){j(this,lf);N(this,"name");N(this,"type");N(this,"baseType");N(this,"indexed");N(this,"components");N(this,"arrayLength");N(this,"arrayChildren");if(po(e,wt,"ParamType"),Object.defineProperty(this,pn,{value:R8}),o&&(o=Object.freeze(o.slice())),s==="array"){if(a==null||c==null)throw new Error("")}else if(a!=null||c!=null)throw new Error("");if(s==="tuple"){if(o==null)throw new Error("")}else if(o!=null)throw new Error("");fe(this,{name:r,type:n,baseType:s,indexed:i,components:o,arrayLength:a,arrayChildren:c})}format(e){if(e==null&&(e="sighash"),e==="json"){const n=this.name||"";if(this.isArray()){const i=JSON.parse(this.arrayChildren.format("json"));return i.name=n,i.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(i)}const s={type:this.baseType==="tuple"?"tuple":this.type,name:n};return typeof this.indexed=="boolean"&&(s.indexed=this.indexed),this.isTuple()&&(s.components=this.components.map(i=>JSON.parse(i.format(e)))),JSON.stringify(s)}let r="";return this.isArray()?(r+=this.arrayChildren.format(e),r+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?r+="("+this.components.map(n=>n.format(e)).join(e==="full"?", ":",")+")":r+=this.type,e!=="sighash"&&(this.indexed===!0&&(r+=" indexed"),e==="full"&&this.name&&(r+=" "+this.name)),r}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(e,r){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(this.arrayLength!==-1&&e.length!==this.arrayLength)throw new Error("array is wrong length");const n=this;return e.map(s=>n.arrayChildren.walk(s,r))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const n=this;return e.map((s,i)=>n.components[i].walk(s,r))}return r(this.type,e)}async walkAsync(e,r){const n=[],s=[e];return Y(this,lf,Kp).call(this,n,e,r,i=>{s[0]=i}),n.length&&await Promise.all(n),s[0]}static from(e,r){if(Wn.isParamType(e))return e;if(typeof e=="string")try{return Wn.from(Ga(e),r)}catch{P(!1,"invalid param type","obj",e)}else if(e instanceof Bs){let a="",c="",l=null;ao(e,Hr(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(c="tuple",l=e.popParams().map(p=>Wn.from(p)),a=`tuple(${l.map(p=>p.format()).join(",")})`):(a=O8(e.popType("TYPE")),c=a);let u=null,f=null;for(;e.length&&e.peekType("BRACKET");){const p=e.pop();u=new Wn(wt,"",a,c,null,l,f,u),f=p.value,a+=p.text,c="array",l=null}let d=null;if(ao(e,mse).has("indexed")){if(!r)throw new Error("");d=!0}const y=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new Wn(wt,y,a,c,d,l,f,u)}const n=e.name;P(!n||typeof n=="string"&&n.match(u7),"invalid name","obj.name",n);let s=e.indexed;s!=null&&(P(r,"parameter cannot be indexed","obj.indexed",e.indexed),s=!!s);let i=e.type,o=i.match(Sse);if(o){const a=parseInt(o[2]||"-1"),c=Wn.from({type:o[1],components:e.components});return new Wn(wt,n||"",i,"array",s,null,a,c)}if(i==="tuple"||i.startsWith("tuple(")||i.startsWith("(")){const a=e.components!=null?e.components.map(l=>Wn.from(l)):null;return new Wn(wt,n||"",i,"tuple",s,a,null,null)}return i=O8(e.type),new Wn(wt,n||"",i,i,s,null,null,null)}static isParamType(e){return e&&e[pn]===R8}};lf=new WeakSet,Kp=function(e,r,n,s){if(this.isArray()){if(!Array.isArray(r))throw new Error("invalid array value");if(this.arrayLength!==-1&&r.length!==this.arrayLength)throw new Error("array is wrong length");const o=this.arrayChildren,a=r.slice();a.forEach((c,l)=>{var u;Y(u=o,lf,Kp).call(u,e,c,n,f=>{a[l]=f})}),s(a);return}if(this.isTuple()){const o=this.components;let a;if(Array.isArray(r))a=r.slice();else{if(r==null||typeof r!="object")throw new Error("invalid tuple value");a=o.map(c=>{if(!c.name)throw new Error("cannot use object value with unnamed components");if(!(c.name in r))throw new Error(`missing value for component ${c.name}`);return r[c.name]})}if(a.length!==this.components.length)throw new Error("array is wrong length");a.forEach((c,l)=>{var u;Y(u=o[l],lf,Kp).call(u,e,c,n,f=>{a[l]=f})}),s(a);return}const i=n(this.type,r);i.then?e.push(async function(){s(await i)}()):s(i)};let or=Wn;class Na{constructor(e,r,n){N(this,"type");N(this,"inputs");po(e,wt,"Fragment"),n=Object.freeze(n.slice()),fe(this,{type:r,inputs:n})}static from(e){if(typeof e=="string"){try{Na.from(JSON.parse(e))}catch{}return Na.from(Ga(e))}if(e instanceof Bs)switch(e.peekKeyword(c7)){case"constructor":return ai.from(e);case"error":return Wr.from(e);case"event":return As.from(e);case"fallback":case"receive":return ni.from(e);case"function":return Ss.from(e);case"struct":return ba.from(e)}else if(typeof e=="object"){switch(e.type){case"constructor":return ai.from(e);case"error":return Wr.from(e);case"event":return As.from(e);case"fallback":case"receive":return ni.from(e);case"function":return Ss.from(e);case"struct":return ba.from(e)}z(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}P(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return ai.isFragment(e)}static isError(e){return Wr.isFragment(e)}static isEvent(e){return As.isFragment(e)}static isFunction(e){return Ss.isFragment(e)}static isStruct(e){return ba.isFragment(e)}}class b1 extends Na{constructor(r,n,s,i){super(r,n,i);N(this,"name");P(typeof s=="string"&&s.match(u7),"invalid identifier","name",s),i=Object.freeze(i.slice()),fe(this,{name:s})}}function b0(t,e){return"("+e.map(r=>r.format(t)).join(t==="full"?", ":",")+")"}class Wr extends b1{constructor(e,r,n){super(e,"error",r,n),Object.defineProperty(this,pn,{value:N8})}get selector(){return Kr(this.format("sighash")).substring(0,10)}format(e){if(e==null&&(e="sighash"),e==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});const r=[];return e!=="sighash"&&r.push("error"),r.push(this.name+b0(e,this.inputs)),r.join(" ")}static from(e){if(Wr.isFragment(e))return e;if(typeof e=="string")return Wr.from(Ga(e));if(e instanceof Bs){const r=Fg("error",e),n=eo(e);return vl(e),new Wr(wt,r,n)}return new Wr(wt,e.name,e.inputs?e.inputs.map(or.from):[])}static isFragment(e){return e&&e[pn]===N8}}class As extends b1{constructor(r,n,s,i){super(r,"event",n,s);N(this,"anonymous");Object.defineProperty(this,pn,{value:_8}),fe(this,{anonymous:i})}get topicHash(){return Kr(this.format("sighash"))}format(r){if(r==null&&(r="sighash"),r==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(s=>JSON.parse(s.format(r)))});const n=[];return r!=="sighash"&&n.push("event"),n.push(this.name+b0(r,this.inputs)),r!=="sighash"&&this.anonymous&&n.push("anonymous"),n.join(" ")}static getTopicHash(r,n){return n=(n||[]).map(i=>or.from(i)),new As(wt,r,n,!1).topicHash}static from(r){if(As.isFragment(r))return r;if(typeof r=="string")try{return As.from(Ga(r))}catch{P(!1,"invalid event fragment","obj",r)}else if(r instanceof Bs){const n=Fg("event",r),s=eo(r,!0),i=!!ao(r,Hr(["anonymous"])).has("anonymous");return vl(r),new As(wt,n,s,i)}return new As(wt,r.name,r.inputs?r.inputs.map(n=>or.from(n,!0)):[],!!r.anonymous)}static isFragment(r){return r&&r[pn]===_8}}class ai extends Na{constructor(r,n,s,i,o){super(r,n,s);N(this,"payable");N(this,"gas");Object.defineProperty(this,pn,{value:M8}),fe(this,{payable:i,gas:o})}format(r){if(z(r!=null&&r!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),r==="json")return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(s=>JSON.parse(s.format(r)))});const n=[`constructor${b0(r,this.inputs)}`];return this.payable&&n.push("payable"),this.gas!=null&&n.push(`@${this.gas.toString()}`),n.join(" ")}static from(r){if(ai.isFragment(r))return r;if(typeof r=="string")try{return ai.from(Ga(r))}catch{P(!1,"invalid constuctor fragment","obj",r)}else if(r instanceof Bs){ao(r,Hr(["constructor"]));const n=eo(r),s=!!ao(r,vse).has("payable"),i=h7(r);return vl(r),new ai(wt,"constructor",n,s,i)}return new ai(wt,"constructor",r.inputs?r.inputs.map(or.from):[],!!r.payable,r.gas!=null?r.gas:null)}static isFragment(r){return r&&r[pn]===M8}}class ni extends Na{constructor(r,n,s){super(r,"fallback",n);N(this,"payable");Object.defineProperty(this,pn,{value:D8}),fe(this,{payable:s})}format(r){const n=this.inputs.length===0?"receive":"fallback";if(r==="json"){const s=this.payable?"payable":"nonpayable";return JSON.stringify({type:n,stateMutability:s})}return`${n}()${this.payable?" payable":""}`}static from(r){if(ni.isFragment(r))return r;if(typeof r=="string")try{return ni.from(Ga(r))}catch{P(!1,"invalid fallback fragment","obj",r)}else if(r instanceof Bs){const n=r.toString(),s=r.peekKeyword(Hr(["fallback","receive"]));if(P(s,"type must be fallback or receive","obj",n),r.popKeyword(Hr(["fallback","receive"]))==="receive"){const c=eo(r);return P(c.length===0,"receive cannot have arguments","obj.inputs",c),ao(r,Hr(["payable"])),vl(r),new ni(wt,[],!0)}let o=eo(r);o.length?P(o.length===1&&o[0].type==="bytes","invalid fallback inputs","obj.inputs",o.map(c=>c.format("minimal")).join(", ")):o=[or.from("bytes")];const a=d7(r);if(P(a==="nonpayable"||a==="payable","fallback cannot be constants","obj.stateMutability",a),ao(r,Hr(["returns"])).has("returns")){const c=eo(r);P(c.length===1&&c[0].type==="bytes","invalid fallback outputs","obj.outputs",c.map(l=>l.format("minimal")).join(", "))}return vl(r),new ni(wt,o,a==="payable")}if(r.type==="receive")return new ni(wt,[],!0);if(r.type==="fallback"){const n=[or.from("bytes")],s=r.stateMutability==="payable";return new ni(wt,n,s)}P(!1,"invalid fallback description","obj",r)}static isFragment(r){return r&&r[pn]===D8}}class Ss extends b1{constructor(r,n,s,i,o,a){super(r,"function",n,i);N(this,"constant");N(this,"outputs");N(this,"stateMutability");N(this,"payable");N(this,"gas");Object.defineProperty(this,pn,{value:B8}),o=Object.freeze(o.slice()),fe(this,{constant:s==="view"||s==="pure",gas:a,outputs:o,payable:s==="payable",stateMutability:s})}get selector(){return Kr(this.format("sighash")).substring(0,10)}format(r){if(r==null&&(r="sighash"),r==="json")return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(s=>JSON.parse(s.format(r))),outputs:this.outputs.map(s=>JSON.parse(s.format(r)))});const n=[];return r!=="sighash"&&n.push("function"),n.push(this.name+b0(r,this.inputs)),r!=="sighash"&&(this.stateMutability!=="nonpayable"&&n.push(this.stateMutability),this.outputs&&this.outputs.length&&(n.push("returns"),n.push(b0(r,this.outputs))),this.gas!=null&&n.push(`@${this.gas.toString()}`)),n.join(" ")}static getSelector(r,n){return n=(n||[]).map(i=>or.from(i)),new Ss(wt,r,"view",n,[],null).selector}static from(r){if(Ss.isFragment(r))return r;if(typeof r=="string")try{return Ss.from(Ga(r))}catch{P(!1,"invalid function fragment","obj",r)}else if(r instanceof Bs){const s=Fg("function",r),i=eo(r),o=d7(r);let a=[];ao(r,Hr(["returns"])).has("returns")&&(a=eo(r));const c=h7(r);return vl(r),new Ss(wt,s,o,i,a,c)}let n=r.stateMutability;return n==null&&(n="payable",typeof r.constant=="boolean"?(n="view",r.constant||(n="payable",typeof r.payable=="boolean"&&!r.payable&&(n="nonpayable"))):typeof r.payable=="boolean"&&!r.payable&&(n="nonpayable")),new Ss(wt,r.name,n,r.inputs?r.inputs.map(or.from):[],r.outputs?r.outputs.map(or.from):[],r.gas!=null?r.gas:null)}static isFragment(r){return r&&r[pn]===B8}}class ba extends b1{constructor(e,r,n){super(e,"struct",r,n),Object.defineProperty(this,pn,{value:L8})}format(){throw new Error("@TODO")}static from(e){if(typeof e=="string")try{return ba.from(Ga(e))}catch{P(!1,"invalid struct fragment","obj",e)}else if(e instanceof Bs){const r=Fg("struct",e),n=eo(e);return vl(e),new ba(wt,r,n)}return new ba(wt,e.name,e.inputs?e.inputs.map(or.from):[])}static isFragment(e){return e&&e[pn]===L8}}const Fs=new Map;Fs.set(0,"GENERIC_PANIC");Fs.set(1,"ASSERT_FALSE");Fs.set(17,"OVERFLOW");Fs.set(18,"DIVIDE_BY_ZERO");Fs.set(33,"ENUM_RANGE_ERROR");Fs.set(34,"BAD_STORAGE_DATA");Fs.set(49,"STACK_UNDERFLOW");Fs.set(50,"ARRAY_RANGE_ERROR");Fs.set(65,"OUT_OF_MEMORY");Fs.set(81,"UNINITIALIZED_FUNCTION_CALL");const Tse=new RegExp(/^bytes([0-9]*)$/),Pse=new RegExp(/^(u?int)([0-9]*)$/);let Sx=null,j8=1024;function Ise(t,e,r,n){let s="missing revert data",i=null;const o=null;let a=null;if(r){s="execution reverted";const l=Q(r);if(r=H(r),l.length===0)s+=" (no data present; likely require(false) occurred",i="require(false)";else if(l.length%32!==4)s+=" (could not decode reason; invalid data length)";else if(H(l.slice(0,4))==="0x08c379a0")try{i=n.decode(["string"],l.slice(4))[0],a={signature:"Error(string)",name:"Error",args:[i]},s+=`: ${JSON.stringify(i)}`}catch{s+=" (could not decode reason; invalid string data)"}else if(H(l.slice(0,4))==="0x4e487b71")try{const u=Number(n.decode(["uint256"],l.slice(4))[0]);a={signature:"Panic(uint256)",name:"Panic",args:[u]},i=`Panic due to ${Fs.get(u)||"UNKNOWN"}(${u})`,s+=`: ${i}`}catch{s+=" (could not decode panic code)"}else s+=" (unknown custom error)"}const c={to:e.to?Te(e.to):null,data:e.data||"0x"};return e.from&&(c.from=Te(e.from)),ft(s,"CALL_EXCEPTION",{action:t,data:r,reason:i,transaction:c,invocation:o,revert:a})}var Vo,ql;const _v=class _v{constructor(){j(this,Vo)}getDefaultValue(e){const r=e.map(s=>Y(this,Vo,ql).call(this,or.from(s)));return new hp(r,"_").defaultValue()}encode(e,r){l5(r.length,e.length,"types/values length mismatch");const n=e.map(o=>Y(this,Vo,ql).call(this,or.from(o))),s=new hp(n,"_"),i=new Nw;return s.encode(i,r),i.data}decode(e,r,n){const s=e.map(o=>Y(this,Vo,ql).call(this,or.from(o)));return new hp(s,"_").decode(new _w(r,n,j8))}static _setDefaultMaxInflation(e){P(typeof e=="number"&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),j8=e}static defaultAbiCoder(){return Sx==null&&(Sx=new _v),Sx}static getBuiltinCallException(e,r,n){return Ise(e,r,n,_v.defaultAbiCoder())}};Vo=new WeakSet,ql=function(e){if(e.isArray())return new Jre(Y(this,Vo,ql).call(this,e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new hp(e.components.map(n=>Y(this,Vo,ql).call(this,n)),e.name);switch(e.baseType){case"address":return new Kre(e.name);case"bool":return new Yre(e.name);case"string":return new one(e.name);case"bytes":return new Xre(e.name);case"":return new tne(e.name)}let r=e.type.match(Pse);if(r){let n=parseInt(r[2]||"256");return P(n!==0&&n<=256&&n%8===0,"invalid "+r[1]+" bit length","param",e),new ine(n/8,r[1]==="int",e.name)}if(r=e.type.match(Tse),r){let n=parseInt(r[1]);return P(n!==0&&n<=32,"invalid bytes length","param",e),new Zre(n,e.name)}P(!1,"invalid type","type",e.type)};let Kt=_v;function Ose(t){const e=mt(t);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return Ig(e,32)}function Rse(t){const e=Q(t,"bytes");if(e.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(e[31]!==0)throw new Error("invalid bytes32 string - no null terminator");let r=31;for(;e[r-1]===0;)r--;return Ms(e.slice(0,r))}class p7{constructor(e,r,n){N(this,"fragment");N(this,"name");N(this,"signature");N(this,"topic");N(this,"args");const s=e.name,i=e.format();fe(this,{fragment:e,name:s,signature:i,topic:r,args:n})}}class y7{constructor(e,r,n,s){N(this,"fragment");N(this,"name");N(this,"args");N(this,"signature");N(this,"selector");N(this,"value");const i=e.name,o=e.format();fe(this,{fragment:e,name:i,args:n,signature:o,selector:r,value:s})}}class v7{constructor(e,r,n){N(this,"fragment");N(this,"name");N(this,"args");N(this,"signature");N(this,"selector");const s=e.name,i=e.format();fe(this,{fragment:e,name:s,args:n,signature:i,selector:r})}}class Gw{constructor(e){N(this,"hash");N(this,"_isIndexed");fe(this,{hash:e,_isIndexed:!0})}static isIndexed(e){return!!(e&&e._isIndexed)}}const F8={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},U8={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:t=>`reverted with reason string ${JSON.stringify(t)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:t=>{let e="unknown panic code";return t>=0&&t<=255&&F8[t.toString()]&&(e=F8[t.toString()]),`reverted with panic code 0x${t.toString(16)} (${e})`}}};var Js,Ys,Xs,Sr,pi,Qp,Jp;const dc=class dc{constructor(e){j(this,pi);N(this,"fragments");N(this,"deploy");N(this,"fallback");N(this,"receive");j(this,Js);j(this,Ys);j(this,Xs);j(this,Sr);let r=[];typeof e=="string"?r=JSON.parse(e):r=e,T(this,Xs,new Map),T(this,Js,new Map),T(this,Ys,new Map);const n=[];for(const o of r)try{n.push(Na.from(o))}catch(a){console.log(`[Warning] Invalid Fragment ${JSON.stringify(o)}:`,a.message)}fe(this,{fragments:Object.freeze(n)});let s=null,i=!1;T(this,Sr,this.getAbiCoder()),this.fragments.forEach((o,a)=>{let c;switch(o.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}fe(this,{deploy:o});return;case"fallback":o.inputs.length===0?i=!0:(P(!s||o.payable!==s.payable,"conflicting fallback fragments",`fragments[${a}]`,o),s=o,i=s.payable);return;case"function":c=w(this,Xs);break;case"event":c=w(this,Ys);break;case"error":c=w(this,Js);break;default:return}const l=o.format();c.has(l)||c.set(l,o)}),this.deploy||fe(this,{deploy:ai.from("constructor()")}),fe(this,{fallback:s,receive:i})}format(e){const r=e?"minimal":"full";return this.fragments.map(s=>s.format(r))}formatJson(){const e=this.fragments.map(r=>r.format("json"));return JSON.stringify(e.map(r=>JSON.parse(r)))}getAbiCoder(){return Kt.defaultAbiCoder()}getFunctionName(e){const r=Y(this,pi,Qp).call(this,e,null,!1);return P(r,"no matching function","key",e),r.name}hasFunction(e){return!!Y(this,pi,Qp).call(this,e,null,!1)}getFunction(e,r){return Y(this,pi,Qp).call(this,e,r||null,!0)}forEachFunction(e){const r=Array.from(w(this,Xs).keys());r.sort((n,s)=>n.localeCompare(s));for(let n=0;nn.localeCompare(s));for(let n=0;n1){const i=s.map(o=>JSON.stringify(o.format())).join(", ");P(!1,`ambiguous error description (i.e. ${i})`,"name",e)}return s[0]}if(e=Wr.from(e).format(),e==="Error(string)")return Wr.from("error Error(string)");if(e==="Panic(uint256)")return Wr.from("error Panic(uint256)");const n=w(this,Js).get(e);return n||null}forEachError(e){const r=Array.from(w(this,Js).keys());r.sort((n,s)=>n.localeCompare(s));for(let n=0;ni.type==="string"?Kr(o):i.type==="bytes"?Ne(H(o)):(i.type==="bool"&&typeof o=="boolean"?o=o?"0x01":"0x00":i.type.match(/^u?int/)?o=In(o):i.type.match(/^bytes/)?o=Ig(o,32):i.type==="address"&&w(this,Sr).encode(["address"],[o]),rs(H(o),32));for(r.forEach((i,o)=>{const a=e.inputs[o];if(!a.indexed){P(i==null,"cannot filter non-indexed parameters; must be null","contract."+a.name,i);return}i==null?n.push(null):a.baseType==="array"||a.baseType==="tuple"?P(!1,"filtering with tuples or arrays not supported","contract."+a.name,i):Array.isArray(i)?n.push(i.map(c=>s(a,c))):n.push(s(a,i))});n.length&&n[n.length-1]===null;)n.pop();return n}encodeEventLog(e,r){if(typeof e=="string"){const o=this.getEvent(e);P(o,"unknown event","eventFragment",e),e=o}const n=[],s=[],i=[];return e.anonymous||n.push(e.topicHash),P(r.length===e.inputs.length,"event arguments/values mismatch","values",r),e.inputs.forEach((o,a)=>{const c=r[a];if(o.indexed)if(o.type==="string")n.push(Kr(c));else if(o.type==="bytes")n.push(Ne(c));else{if(o.baseType==="tuple"||o.baseType==="array")throw new Error("not implemented");n.push(w(this,Sr).encode([o.type],[c]))}else s.push(o),i.push(c)}),{data:w(this,Sr).encode(s,i),topics:n}}decodeEventLog(e,r,n){if(typeof e=="string"){const h=this.getEvent(e);P(h,"unknown event","eventFragment",e),e=h}if(n!=null&&!e.anonymous){const h=e.topicHash;P(et(n[0],32)&&n[0].toLowerCase()===h,"fragment/topic mismatch","topics[0]",n[0]),n=n.slice(1)}const s=[],i=[],o=[];e.inputs.forEach((h,y)=>{h.indexed?h.type==="string"||h.type==="bytes"||h.baseType==="tuple"||h.baseType==="array"?(s.push(or.from({type:"bytes32",name:h.name})),o.push(!0)):(s.push(h),o.push(!1)):(i.push(h),o.push(!1))});const a=n!=null?w(this,Sr).decode(s,Le(n)):null,c=w(this,Sr).decode(i,r,!0),l=[],u=[];let f=0,d=0;return e.inputs.forEach((h,y)=>{let p=null;if(h.indexed)if(a==null)p=new Gw(null);else if(o[y])p=new Gw(a[d++]);else try{p=a[d++]}catch(b){p=b}else try{p=c[f++]}catch(b){p=b}l.push(p),u.push(h.name||null)}),hl.fromItems(l,u)}parseTransaction(e){const r=Q(e.data,"tx.data"),n=ve(e.value!=null?e.value:0,"tx.value"),s=this.getFunction(H(r.slice(0,4)));if(!s)return null;const i=w(this,Sr).decode(s.inputs,r.slice(4));return new y7(s,s.selector,i,n)}parseCallResult(e){throw new Error("@TODO")}parseLog(e){const r=this.getEvent(e.topics[0]);return!r||r.anonymous?null:new p7(r,r.topicHash,this.decodeEventLog(r,e.data,e.topics))}parseError(e){const r=H(e),n=this.getError(st(r,0,4));if(!n)return null;const s=w(this,Sr).decode(n.inputs,st(r,4));return new v7(n,n.selector,s)}static from(e){return e instanceof dc?e:typeof e=="string"?new dc(JSON.parse(e)):typeof e.formatJson=="function"?new dc(e.formatJson()):typeof e.format=="function"?new dc(e.format("json")):new dc(e)}};Js=new WeakMap,Ys=new WeakMap,Xs=new WeakMap,Sr=new WeakMap,pi=new WeakSet,Qp=function(e,r,n){if(et(e)){const i=e.toLowerCase();for(const o of w(this,Xs).values())if(i===o.selector)return o;return null}if(e.indexOf("(")===-1){const i=[];for(const[o,a]of w(this,Xs))o.split("(")[0]===e&&i.push(a);if(r){const o=r.length>0?r[r.length-1]:null;let a=r.length,c=!0;gr.isTyped(o)&&o.type==="overrides"&&(c=!1,a--);for(let l=i.length-1;l>=0;l--){const u=i[l].inputs.length;u!==a&&(!c||u!==a-1)&&i.splice(l,1)}for(let l=i.length-1;l>=0;l--){const u=i[l].inputs;for(let f=0;f=u.length){if(r[f].type==="overrides")continue;i.splice(l,1);break}if(r[f].type!==u[f].baseType){i.splice(l,1);break}}}}if(i.length===1&&r&&r.length!==i[0].inputs.length){const o=r[r.length-1];(o==null||Array.isArray(o)||typeof o!="object")&&i.splice(0,1)}if(i.length===0)return null;if(i.length>1&&n){const o=i.map(a=>JSON.stringify(a.format())).join(", ");P(!1,`ambiguous function description (i.e. matches ${o})`,"key",e)}return i[0]}const s=w(this,Xs).get(Ss.from(e).format());return s||null},Jp=function(e,r,n){if(et(e)){const i=e.toLowerCase();for(const o of w(this,Ys).values())if(i===o.topicHash)return o;return null}if(e.indexOf("(")===-1){const i=[];for(const[o,a]of w(this,Ys))o.split("(")[0]===e&&i.push(a);if(r){for(let o=i.length-1;o>=0;o--)i[o].inputs.length=0;o--){const a=i[o].inputs;for(let c=0;c1&&n){const o=i.map(a=>JSON.stringify(a.format())).join(", ");P(!1,`ambiguous event description (i.e. matches ${o})`,"key",e)}return i[0]}const s=w(this,Ys).get(As.from(e).format());return s||null};let pt=dc;const g7=BigInt(0);function Nu(t){return t??null}function Nt(t){return t==null?null:t.toString()}class qw{constructor(e,r,n){N(this,"gasPrice");N(this,"maxFeePerGas");N(this,"maxPriorityFeePerGas");fe(this,{gasPrice:Nu(e),maxFeePerGas:Nu(r),maxPriorityFeePerGas:Nu(n)})}toJSON(){const{gasPrice:e,maxFeePerGas:r,maxPriorityFeePerGas:n}=this;return{_type:"FeeData",gasPrice:Nt(e),maxFeePerGas:Nt(r),maxPriorityFeePerGas:Nt(n)}}}function Jf(t){const e={};t.to&&(e.to=t.to),t.from&&(e.from=t.from),t.data&&(e.data=H(t.data));const r="chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const s of r)!(s in t)||t[s]==null||(e[s]=ve(t[s],`request.${s}`));const n="type,nonce".split(/,/);for(const s of n)!(s in t)||t[s]==null||(e[s]=Pe(t[s],`request.${s}`));return t.accessList&&(e.accessList=vo(t.accessList)),"blockTag"in t&&(e.blockTag=t.blockTag),"enableCcipRead"in t&&(e.enableCcipRead=!!t.enableCcipRead),"customData"in t&&(e.customData=t.customData),"blobVersionedHashes"in t&&t.blobVersionedHashes&&(e.blobVersionedHashes=t.blobVersionedHashes.slice()),"kzg"in t&&(e.kzg=t.kzg),"blobs"in t&&t.blobs&&(e.blobs=t.blobs.map(s=>gi(s)?H(s):Object.assign({},s))),e}var Di;class m7{constructor(e,r){N(this,"provider");N(this,"number");N(this,"hash");N(this,"timestamp");N(this,"parentHash");N(this,"parentBeaconBlockRoot");N(this,"nonce");N(this,"difficulty");N(this,"gasLimit");N(this,"gasUsed");N(this,"stateRoot");N(this,"receiptsRoot");N(this,"blobGasUsed");N(this,"excessBlobGas");N(this,"miner");N(this,"prevRandao");N(this,"extraData");N(this,"baseFeePerGas");j(this,Di);T(this,Di,e.transactions.map(n=>typeof n!="string"?new Yf(n,r):n)),fe(this,{provider:r,hash:Nu(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,parentBeaconBlockRoot:e.parentBeaconBlockRoot,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,blobGasUsed:e.blobGasUsed,excessBlobGas:e.excessBlobGas,miner:e.miner,prevRandao:Nu(e.prevRandao),extraData:e.extraData,baseFeePerGas:Nu(e.baseFeePerGas),stateRoot:e.stateRoot,receiptsRoot:e.receiptsRoot})}get transactions(){return w(this,Di).map(e=>typeof e=="string"?e:e.hash)}get prefetchedTransactions(){const e=w(this,Di).slice();return e.length===0?[]:(z(typeof e[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){const{baseFeePerGas:e,difficulty:r,extraData:n,gasLimit:s,gasUsed:i,hash:o,miner:a,prevRandao:c,nonce:l,number:u,parentHash:f,parentBeaconBlockRoot:d,stateRoot:h,receiptsRoot:y,timestamp:p,transactions:b}=this;return{_type:"Block",baseFeePerGas:Nt(e),difficulty:Nt(r),extraData:n,gasLimit:Nt(s),gasUsed:Nt(i),blobGasUsed:Nt(this.blobGasUsed),excessBlobGas:Nt(this.excessBlobGas),hash:o,miner:a,prevRandao:c,nonce:l,number:u,parentHash:f,timestamp:p,parentBeaconBlockRoot:d,stateRoot:h,receiptsRoot:y,transactions:b}}[Symbol.iterator](){let e=0;const r=this.transactions;return{next:()=>enew wd(s,r))));let n=g7;e.effectiveGasPrice!=null?n=e.effectiveGasPrice:e.gasPrice!=null&&(n=e.gasPrice),fe(this,{provider:r,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,blobGasUsed:e.blobGasUsed,gasPrice:n,blobGasPrice:e.blobGasPrice,type:e.type,status:e.status,root:e.root})}get logs(){return w(this,F0)}toJSON(){const{to:e,from:r,contractAddress:n,hash:s,index:i,blockHash:o,blockNumber:a,logsBloom:c,logs:l,status:u,root:f}=this;return{_type:"TransactionReceipt",blockHash:o,blockNumber:a,contractAddress:n,cumulativeGasUsed:Nt(this.cumulativeGasUsed),from:r,gasPrice:Nt(this.gasPrice),blobGasUsed:Nt(this.blobGasUsed),blobGasPrice:Nt(this.blobGasPrice),gasUsed:Nt(this.gasUsed),hash:s,index:i,logs:l,logsBloom:c,root:f,status:u,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e{if(a)return null;const{blockNumber:d,nonce:h}=await Pt({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(h{if(d==null||d.status!==0)return d;z(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:d.to,from:d.from,data:""},receipt:d})},u=await this.provider.getTransactionReceipt(this.hash);if(n===0)return l(u);if(u){if(await u.confirmations()>=n)return l(u)}else if(await c(),n===0)return null;return await new Promise((d,h)=>{const y=[],p=()=>{y.forEach(v=>v())};if(y.push(()=>{a=!0}),s>0){const v=setTimeout(()=>{p(),h(ft("wait for transaction timeout","TIMEOUT"))},s);y.push(()=>{clearTimeout(v)})}const b=async v=>{if(await v.confirmations()>=n){p();try{d(l(v))}catch(g){h(g)}}};if(y.push(()=>{this.provider.off(this.hash,b)}),this.provider.on(this.hash,b),i>=0){const v=async()=>{try{await c()}catch(g){if(Ht(g,"TRANSACTION_REPLACED")){p(),h(g);return}}a||this.provider.once("block",v)};y.push(()=>{this.provider.off("block",v)}),this.provider.once("block",v)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}removedEvent(){return z(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),b7(this)}reorderedEvent(e){return z(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),z(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),x7(this,e)}replaceableTransaction(e){P(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const r=new $k(this,this.provider);return T(r,Ho,e),r}};Ho=new WeakMap;let Yf=$k;function Nse(t){return{orphan:"drop-block",hash:t.hash,number:t.number}}function x7(t,e){return{orphan:"reorder-transaction",tx:t,other:e}}function b7(t){return{orphan:"drop-transaction",tx:t}}function _se(t){return{orphan:"drop-log",log:{transactionHash:t.transactionHash,blockHash:t.blockHash,blockNumber:t.blockNumber,address:t.address,data:t.data,topics:Object.freeze(t.topics.slice()),index:t.index}}}class Ug extends wd{constructor(r,n,s){super(r,r.provider);N(this,"interface");N(this,"fragment");N(this,"args");const i=n.decodeEventLog(s,r.data,r.topics);fe(this,{args:i,fragment:s,interface:n})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class B5 extends wd{constructor(r,n){super(r,r.provider);N(this,"error");fe(this,{error:n})}}var uf;class w7 extends D5{constructor(r,n,s){super(s,n);j(this,uf);T(this,uf,r)}get logs(){return super.logs.map(r=>{const n=r.topics.length?w(this,uf).getEvent(r.topics[0]):null;if(n)try{return new Ug(r,w(this,uf),n)}catch(s){return new B5(r,s)}return r})}}uf=new WeakMap;var U0;class $g extends Yf{constructor(r,n,s){super(s,n);j(this,U0);T(this,U0,r)}async wait(r,n){const s=await super.wait(r,n);return s==null?null:new w7(w(this,U0),this.provider,s)}}U0=new WeakMap;class L5 extends d5{constructor(r,n,s,i){super(r,n,s);N(this,"log");fe(this,{log:i})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class C7 extends L5{constructor(e,r,n,s,i){super(e,r,n,new Ug(i,e.interface,s));const o=e.interface.decodeEventLog(s,this.log.data,this.log.topics);fe(this,{args:o,fragment:s})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const $8=BigInt(0);function E7(t){return t&&typeof t.call=="function"}function k7(t){return t&&typeof t.estimateGas=="function"}function Wg(t){return t&&typeof t.resolveName=="function"}function A7(t){return t&&typeof t.sendTransaction=="function"}function S7(t){if(t!=null){if(Wg(t))return t;if(t.provider)return t.provider}}var $0;class Mse{constructor(e,r,n){j(this,$0);N(this,"fragment");if(fe(this,{fragment:r}),r.inputs.lengthn[c]==null?null:a.walkAsync(n[c],(u,f)=>u==="address"?Array.isArray(f)?Promise.all(f.map(d=>sr(d,i))):sr(f,i):f)));return e.interface.encodeFilterTopics(r,o)}())}getTopicFilter(){return w(this,$0)}}$0=new WeakMap;function gl(t,e){return t==null?null:typeof t[e]=="function"?t:t.provider&&typeof t.provider[e]=="function"?t.provider:null}function xc(t){return t==null?null:t.provider||null}async function j5(t,e){const r=gr.dereference(t,"overrides");P(typeof r=="object","invalid overrides parameter","overrides",t);const n=Jf(r);return P(n.to==null||(e||[]).indexOf("to")>=0,"cannot override to","overrides.to",n.to),P(n.data==null||(e||[]).indexOf("data")>=0,"cannot override data","overrides.data",n.data),n.from&&(n.from=n.from),n}async function T7(t,e,r){const n=gl(t,"resolveName"),s=Wg(n)?n:null;return await Promise.all(e.map((i,o)=>i.walkAsync(r[o],(a,c)=>(c=gr.dereference(c,a),a==="address"?sr(c,s):c))))}function Dse(t){const e=async function(o){const a=await j5(o,["data"]);a.to=await t.getAddress(),a.from&&(a.from=await sr(a.from,S7(t.runner)));const c=t.interface,l=ve(a.value||$8,"overrides.value")===$8,u=(a.data||"0x")==="0x";c.fallback&&!c.fallback.payable&&c.receive&&!u&&!l&&P(!1,"cannot send data to receive or send value to non-payable fallback","overrides",o),P(c.fallback||u,"cannot send data to receive-only contract","overrides.data",a.data);const f=c.receive||c.fallback&&c.fallback.payable;return P(f||l,"cannot send value to non-payable fallback","overrides.value",a.value),P(c.fallback||u,"cannot send data to receive-only contract","overrides.data",a.data),a},r=async function(o){const a=gl(t.runner,"call");z(E7(a),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const c=await e(o);try{return await a.call(c)}catch(l){throw Pg(l)&&l.data?t.interface.makeError(l.data,c):l}},n=async function(o){const a=t.runner;z(A7(a),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const c=await a.sendTransaction(await e(o)),l=xc(t.runner);return new $g(t.interface,l,c)},s=async function(o){const a=gl(t.runner,"estimateGas");return z(k7(a),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await a.estimateGas(await e(o))},i=async o=>await n(o);return fe(i,{_contract:t,estimateGas:s,populateTransaction:e,send:n,staticCall:r}),i}function Bse(t,e){const r=function(...l){const u=t.interface.getFunction(e,l);return z(u,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:l}}),u},n=async function(...l){const u=r(...l);let f={};if(u.inputs.length+1===l.length&&(f=await j5(l.pop()),f.from&&(f.from=await sr(f.from,S7(t.runner)))),u.inputs.length!==l.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const d=await T7(t.runner,u.inputs,l);return Object.assign({},f,await Pt({to:t.getAddress(),data:t.interface.encodeFunctionData(u,d)}))},s=async function(...l){const u=await a(...l);return u.length===1?u[0]:u},i=async function(...l){const u=t.runner;z(A7(u),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const f=await u.sendTransaction(await n(...l)),d=xc(t.runner);return new $g(t.interface,d,f)},o=async function(...l){const u=gl(t.runner,"estimateGas");return z(k7(u),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await u.estimateGas(await n(...l))},a=async function(...l){const u=gl(t.runner,"call");z(E7(u),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const f=await n(...l);let d="0x";try{d=await u.call(f)}catch(y){throw Pg(y)&&y.data?t.interface.makeError(y.data,f):y}const h=r(...l);return t.interface.decodeFunctionResult(h,d)},c=async(...l)=>r(...l).constant?await s(...l):await i(...l);return fe(c,{name:t.interface.getFunctionName(e),_contract:t,_key:e,getFragment:r,estimateGas:o,populateTransaction:n,send:i,staticCall:s,staticCallResult:a}),Object.defineProperty(c,"fragment",{configurable:!1,enumerable:!0,get:()=>{const l=t.interface.getFunction(e);return z(l,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),l}}),c}function Lse(t,e){const r=function(...s){const i=t.interface.getEvent(e,s);return z(i,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:s}}),i},n=function(...s){return new Mse(t,r(...s),s)};return fe(n,{name:t.interface.getEventName(e),_contract:t,_key:e,getFragment:r}),Object.defineProperty(n,"fragment",{configurable:!1,enumerable:!0,get:()=>{const s=t.interface.getEvent(e);return z(s,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),s}}),n}const lv=Symbol.for("_ethersInternal_contract"),P7=new WeakMap;function jse(t,e){P7.set(t[lv],e)}function mn(t){return P7.get(t[lv])}function Fse(t){return t&&typeof t=="object"&&"getTopicFilter"in t&&typeof t.getTopicFilter=="function"&&t.fragment}async function F5(t,e){let r,n=null;if(Array.isArray(e)){const i=function(o){if(et(o,32))return o;const a=t.interface.getEvent(o);return P(a,"unknown fragment","name",o),a.topicHash};r=e.map(o=>o==null?null:Array.isArray(o)?o.map(i):i(o))}else e==="*"?r=[null]:typeof e=="string"?et(e,32)?r=[e]:(n=t.interface.getEvent(e),P(n,"unknown fragment","event",e),r=[n.topicHash]):Fse(e)?r=await e.getTopicFilter():"fragment"in e?(n=e.fragment,r=[n.topicHash]):P(!1,"unknown event name","event",e);r=r.map(i=>{if(i==null)return null;if(Array.isArray(i)){const o=Array.from(new Set(i.map(a=>a.toLowerCase())).values());return o.length===1?o[0]:(o.sort(),o)}return i.toLowerCase()});const s=r.map(i=>i==null?"null":Array.isArray(i)?i.join("|"):i).join("&");return{fragment:n,tag:s,topics:r}}async function th(t,e){const{subs:r}=mn(t);return r.get((await F5(t,e)).tag)||null}async function W8(t,e,r){const n=xc(t.runner);z(n,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:e});const{fragment:s,tag:i,topics:o}=await F5(t,r),{addr:a,subs:c}=mn(t);let l=c.get(i);if(!l){const f={address:a||t,topics:o},d=b=>{let v=s;if(v==null)try{v=t.interface.getEvent(b.topics[0])}catch{}if(v){const g=v,x=s?t.interface.decodeEventLog(s,b.data,b.topics):[];Qw(t,r,x,k=>new C7(t,k,r,g,b))}else Qw(t,r,[],g=>new L5(t,g,r,b))};let h=[];l={tag:i,listeners:[],start:()=>{h.length||h.push(n.on(f,d))},stop:async()=>{if(h.length==0)return;let b=h;h=[],await Promise.all(b),n.off(f,d)}},c.set(i,l)}return l}let Kw=Promise.resolve();async function Use(t,e,r,n){await Kw;const s=await th(t,e);if(!s)return!1;const i=s.listeners.length;return s.listeners=s.listeners.filter(({listener:o,once:a})=>{const c=Array.from(r);n&&c.push(n(a?null:o));try{o.call(t,...c)}catch{}return!a}),s.listeners.length===0&&(s.stop(),mn(t).subs.delete(s.tag)),i>0}async function Qw(t,e,r,n){try{await Kw}catch{}const s=Use(t,e,r,n);return Kw=s,await s}const yp=["then"];var _3;_3=lv;const Fh=class Fh{constructor(e,r,n,s){N(this,"target");N(this,"interface");N(this,"runner");N(this,"filters");N(this,_3);N(this,"fallback");P(typeof e=="string"||T5(e),"invalid value for Contract target","target",e),n==null&&(n=null);const i=pt.from(r);fe(this,{target:e,runner:n,interface:i}),Object.defineProperty(this,lv,{value:{}});let o,a=null,c=null;if(s){const f=xc(n);c=new $g(this.interface,f,s)}let l=new Map;if(typeof e=="string")if(et(e))a=e,o=Promise.resolve(e);else{const f=gl(n,"resolveName");if(!Wg(f))throw ft("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});o=f.resolveName(e).then(d=>{if(d==null)throw ft("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return mn(this).addr=d,d})}else o=e.getAddress().then(f=>{if(f==null)throw new Error("TODO");return mn(this).addr=f,f});jse(this,{addrPromise:o,addr:a,deployTx:c,subs:l});const u=new Proxy({},{get:(f,d,h)=>{if(typeof d=="symbol"||yp.indexOf(d)>=0)return Reflect.get(f,d,h);try{return this.getEvent(d)}catch(y){if(!Ht(y,"INVALID_ARGUMENT")||y.argument!=="key")throw y}},has:(f,d)=>yp.indexOf(d)>=0?Reflect.has(f,d):Reflect.has(f,d)||this.interface.hasEvent(String(d))});return fe(this,{filters:u}),fe(this,{fallback:i.receive||i.fallback?Dse(this):null}),new Proxy(this,{get:(f,d,h)=>{if(typeof d=="symbol"||d in f||yp.indexOf(d)>=0)return Reflect.get(f,d,h);try{return f.getFunction(d)}catch(y){if(!Ht(y,"INVALID_ARGUMENT")||y.argument!=="key")throw y}},has:(f,d)=>typeof d=="symbol"||d in f||yp.indexOf(d)>=0?Reflect.has(f,d):f.interface.hasFunction(d)})}connect(e){return new Fh(this.target,this.interface,e)}attach(e){return new Fh(e,this.interface,this.runner)}async getAddress(){return await mn(this).addrPromise}async getDeployedCode(){const e=xc(this.runner);z(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const r=await e.getCode(await this.getAddress());return r==="0x"?null:r}async waitForDeployment(){const e=this.deploymentTransaction();if(e)return await e.wait(),this;if(await this.getDeployedCode()!=null)return this;const n=xc(this.runner);return z(n!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((s,i)=>{const o=async()=>{try{if(await this.getDeployedCode()!=null)return s(this);n.once("block",o)}catch(a){i(a)}};o()})}deploymentTransaction(){return mn(this).deployTx}getFunction(e){return typeof e!="string"&&(e=e.format()),Bse(this,e)}getEvent(e){return typeof e!="string"&&(e=e.format()),Lse(this,e)}async queryTransaction(e){throw new Error("@TODO")}async queryFilter(e,r,n){r==null&&(r=0),n==null&&(n="latest");const{addr:s,addrPromise:i}=mn(this),o=s||await i,{fragment:a,topics:c}=await F5(this,e),l={address:o,topics:c,fromBlock:r,toBlock:n},u=xc(this.runner);return z(u,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await u.getLogs(l)).map(f=>{let d=a;if(d==null)try{d=this.interface.getEvent(f.topics[0])}catch{}if(d)try{return new Ug(f,this.interface,d)}catch(h){return new B5(f,h)}return new wd(f,u)})}async on(e,r){const n=await W8(this,"on",e);return n.listeners.push({listener:r,once:!1}),n.start(),this}async once(e,r){const n=await W8(this,"once",e);return n.listeners.push({listener:r,once:!0}),n.start(),this}async emit(e,...r){return await Qw(this,e,r,null)}async listenerCount(e){if(e){const s=await th(this,e);return s?s.listeners.length:0}const{subs:r}=mn(this);let n=0;for(const{listeners:s}of r.values())n+=s.length;return n}async listeners(e){if(e){const s=await th(this,e);return s?s.listeners.map(({listener:i})=>i):[]}const{subs:r}=mn(this);let n=[];for(const{listeners:s}of r.values())n=n.concat(s.map(({listener:i})=>i));return n}async off(e,r){const n=await th(this,e);if(!n)return this;if(r){const s=n.listeners.map(({listener:i})=>i).indexOf(r);s>=0&&n.listeners.splice(s,1)}return(r==null||n.listeners.length===0)&&(n.stop(),mn(this).subs.delete(n.tag)),this}async removeAllListeners(e){if(e){const r=await th(this,e);if(!r)return this;r.stop(),mn(this).subs.delete(r.tag)}else{const{subs:r}=mn(this);for(const{tag:n,stop:s}of r.values())s(),r.delete(n)}return this}async addListener(e,r){return await this.on(e,r)}async removeListener(e,r){return await this.off(e,r)}static buildClass(e){class r extends Fh{constructor(s,i=null){super(s,e,i)}}return r}static from(e,r,n){return n==null&&(n=null),new this(e,r,n)}};let Xf=Fh;function $se(){return Xf}class dn extends $se(){}class U5{constructor(e,r,n){N(this,"interface");N(this,"bytecode");N(this,"runner");const s=pt.from(e);r instanceof Uint8Array||(typeof r=="object"&&(r=r.object),r.startsWith("0x")||(r="0x"+r)),r=H(Q(r)),fe(this,{bytecode:r,interface:s,runner:n||null})}attach(e){return new Xf(e,this.interface,this.runner)}async getDeployTransaction(...e){let r={};const n=this.interface.deploy;if(n.inputs.length+1===e.length&&(r=await j5(e.pop())),n.inputs.length!==e.length)throw new Error("incorrect number of arguments to constructor");const s=await T7(this.runner,n.inputs,e),i=Le([this.bytecode,this.interface.encodeDeploy(s)]);return Object.assign({},r,{data:i})}async deploy(...e){const r=await this.getDeployTransaction(...e);z(this.runner&&typeof this.runner.sendTransaction=="function","factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const n=await this.runner.sendTransaction(r),s=S5(n);return new Xf(s,this.interface,this.runner,n)}connect(e){return new U5(this.interface,this.bytecode,e)}static fromSolidity(e,r){P(e!=null,"bad compiler output","output",e),typeof e=="string"&&(e=JSON.parse(e));const n=e.abi;let s="";return e.bytecode?s=e.bytecode:e.evm&&e.evm.bytecode&&(s=e.evm.bytecode),new this(n,s,r)}}function Tx(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):P(!1,"unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}class I7{constructor(e){N(this,"name");fe(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,r){throw new Error("unsupported coin")}async decodeAddress(e,r){throw new Error("unsupported coin")}}const O7=new RegExp("^(ipfs)://(.*)$","i"),V8=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),O7,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];var zo,Mc,Go,Kl,Mv,R7;const gu=class gu{constructor(e,r,n){j(this,Go);N(this,"provider");N(this,"address");N(this,"name");j(this,zo);j(this,Mc);fe(this,{provider:e,address:r,name:n}),T(this,zo,null),T(this,Mc,new dn(r,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],e))}async supportsWildcard(){return w(this,zo)==null&&T(this,zo,(async()=>{try{return await w(this,Mc).supportsInterface("0x9061b923")}catch(e){if(Ht(e,"CALL_EXCEPTION"))return!1;throw T(this,zo,null),e}})()),await w(this,zo)}async getAddress(e){if(e==null&&(e=60),e===60)try{const i=await Y(this,Go,Kl).call(this,"addr(bytes32)");return i==null||i===mi?null:i}catch(i){if(Ht(i,"CALL_EXCEPTION"))return null;throw i}if(e>=0&&e<2147483648){let i=e+2147483648;const o=await Y(this,Go,Kl).call(this,"addr(bytes32,uint)",[i]);if(et(o,20))return Te(o)}let r=null;for(const i of this.provider.plugins)if(i instanceof I7&&i.supportsCoinType(e)){r=i;break}if(r==null)return null;const n=await Y(this,Go,Kl).call(this,"addr(bytes32,uint)",[e]);if(n==null||n==="0x")return null;const s=await r.decodeAddress(e,n);if(s!=null)return s;z(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:n}})}async getText(e){const r=await Y(this,Go,Kl).call(this,"text(bytes32,string)",[e]);return r==null||r==="0x"?null:r}async getContentHash(){const e=await Y(this,Go,Kl).call(this,"contenthash(bytes32)");if(e==null||e==="0x")return null;const r=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(r){const s=r[1]==="e3010170"?"ipfs":"ipns",i=parseInt(r[4],16);if(r[5].length===i*2)return`${s}://${f5("0x"+r[2])}`}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&n[1].length===64)return`bzz://${n[1]}`;z(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const e=[{type:"name",value:this.name}];try{const r=await this.getText("avatar");if(r==null)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:r});for(let n=0;n{if(e&&r==null)return null;if(!Array.isArray(r))throw new Error("not an array");return r.map(n=>t(n))}}function w1(t,e){return r=>{const n={};for(const s in t){let i=s;if(e&&s in e&&!(i in r)){for(const o of e[s])if(o in r){i=o;break}}try{const o=t[s](r[i]);o!==void 0&&(n[s]=o)}catch(o){const a=o instanceof Error?o.message:"not-an-error";z(!1,`invalid value for value.${s} (${a})`,"BAD_DATA",{value:r})}}return n}}function Wse(t){switch(t){case!0:case"true":return!0;case!1:case"false":return!1}P(!1,`invalid boolean; ${JSON.stringify(t)}`,"value",t)}function Zf(t){return P(et(t,!0),"invalid data","value",t),t}function hr(t){return P(et(t,32),"invalid hash","value",t),t}const Vse=w1({address:Te,blockHash:hr,blockNumber:Pe,data:Zf,index:Pe,removed:Ve(Wse,!1),topics:Vg(hr),transactionHash:hr,transactionIndex:Pe},{index:["logIndex"]});function Hse(t){return Vse(t)}const zse=w1({hash:Ve(hr),parentHash:hr,parentBeaconBlockRoot:Ve(hr,null),number:Pe,timestamp:Pe,nonce:Ve(Zf),difficulty:ve,gasLimit:ve,gasUsed:ve,stateRoot:Ve(hr,null),receiptsRoot:Ve(hr,null),blobGasUsed:Ve(ve,null),excessBlobGas:Ve(ve,null),miner:Ve(Te),prevRandao:Ve(hr,null),extraData:Zf,baseFeePerGas:Ve(ve)},{prevRandao:["mixHash"]});function Gse(t){const e=zse(t);return e.transactions=t.transactions.map(r=>typeof r=="string"?r:N7(r)),e}const qse=w1({transactionIndex:Pe,blockNumber:Pe,transactionHash:hr,address:Te,topics:Vg(hr),data:Zf,index:Pe,blockHash:hr},{index:["logIndex"]});function Kse(t){return qse(t)}const Qse=w1({to:Ve(Te,null),from:Ve(Te,null),contractAddress:Ve(Te,null),index:Pe,root:Ve(H),gasUsed:ve,blobGasUsed:Ve(ve,null),logsBloom:Ve(Zf),blockHash:hr,hash:hr,logs:Vg(Kse),blockNumber:Pe,cumulativeGasUsed:ve,effectiveGasPrice:Ve(ve),blobGasPrice:Ve(ve,null),status:Ve(Pe),type:Ve(Pe,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function Jse(t){return Qse(t)}function N7(t){t.to&&ve(t.to)===H8&&(t.to="0x0000000000000000000000000000000000000000");const e=w1({hash:hr,index:Ve(Pe,void 0),type:r=>r==="0x"||r==null?0:Pe(r),accessList:Ve(vo,null),blobVersionedHashes:Ve(Vg(hr,!0),null),blockHash:Ve(hr,null),blockNumber:Ve(Pe,null),transactionIndex:Ve(Pe,null),from:Te,gasPrice:Ve(ve),maxPriorityFeePerGas:Ve(ve),maxFeePerGas:Ve(ve),maxFeePerBlobGas:Ve(ve,null),gasLimit:ve,to:Ve(Te,null),value:ve,nonce:Pe,data:Zf,creates:Ve(Te,null),chainId:Ve(ve,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(t);if(e.to==null&&e.creates==null&&(e.creates=S5(e)),(t.type===1||t.type===2)&&t.accessList==null&&(e.accessList=[]),t.signature?e.signature=os.from(t.signature):e.signature=os.from(t),e.chainId==null){const r=e.signature.legacyChainId;r!=null&&(e.chainId=r)}return e.blockHash&&ve(e.blockHash)===H8&&(e.blockHash=null),e}const Yse="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class qa{constructor(e){N(this,"name");fe(this,{name:e})}clone(){return new qa(this.name)}}class C1 extends qa{constructor(r,n){r==null&&(r=0);super(`org.ethers.network.plugins.GasCost#${r||0}`);N(this,"effectiveBlock");N(this,"txBase");N(this,"txCreate");N(this,"txDataZero");N(this,"txDataNonzero");N(this,"txAccessListStorageKey");N(this,"txAccessListAddress");const s={effectiveBlock:r};function i(o,a){let c=(n||{})[o];c==null&&(c=a),P(typeof c=="number",`invalud value for ${o}`,"costs",n),s[o]=c}i("txBase",21e3),i("txCreate",32e3),i("txDataZero",4),i("txDataNonzero",16),i("txAccessListStorageKey",1900),i("txAccessListAddress",2400),fe(this,s)}clone(){return new C1(this.effectiveBlock,this)}}class E1 extends qa{constructor(r,n){super("org.ethers.plugins.network.Ens");N(this,"address");N(this,"targetNetwork");fe(this,{address:r||Yse,targetNetwork:n??1})}clone(){return new E1(this.address,this.targetNetwork)}}var Dc;const Wk=class Wk extends qa{constructor(r){super("org.ethers.plugins.network.FeeData");j(this,Dc);T(this,Dc,r)}get feeDataFunc(){return w(this,Dc)}async getFeeData(r){return await w(this,Dc).call(this,r)}clone(){return new Wk(w(this,Dc))}};Dc=new WeakMap;let Jw=Wk;var W0,V0;class _7 extends qa{constructor(r,n){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin");j(this,W0);j(this,V0);T(this,W0,r),T(this,V0,n)}get url(){return w(this,W0)}get processFunc(){return w(this,V0)}clone(){return this}}W0=new WeakMap,V0=new WeakMap;const Px=new Map;var ff,df,qo;const mu=class mu{constructor(e,r){j(this,ff);j(this,df);j(this,qo);T(this,ff,e),T(this,df,ve(r)),T(this,qo,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return w(this,ff)}set name(e){T(this,ff,e)}get chainId(){return w(this,df)}set chainId(e){T(this,df,ve(e,"chainId"))}matches(e){if(e==null)return!1;if(typeof e=="string"){try{return this.chainId===ve(e)}catch{}return this.name===e}if(typeof e=="number"||typeof e=="bigint"){try{return this.chainId===ve(e)}catch{}return!1}if(typeof e=="object"){if(e.chainId!=null){try{return this.chainId===ve(e.chainId)}catch{}return!1}return e.name!=null?this.name===e.name:!1}return!1}get plugins(){return Array.from(w(this,qo).values())}attachPlugin(e){if(w(this,qo).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return w(this,qo).set(e.name,e.clone()),this}getPlugin(e){return w(this,qo).get(e)||null}getPlugins(e){return this.plugins.filter(r=>r.name.split("#")[0]===e)}clone(){const e=new mu(this.name,this.chainId);return this.plugins.forEach(r=>{e.attachPlugin(r.clone())}),e}computeIntrinsicGas(e){const r=this.getPlugin("org.ethers.plugins.network.GasCost")||new C1;let n=r.txBase;if(e.to==null&&(n+=r.txCreate),e.data)for(let s=2;s9){let s=BigInt(n[1].substring(0,9));n[1].substring(9).match(/^0+$/)||s++,n[1]=s.toString()}return BigInt(n[0]+n[1])}function G8(t){return new _7(t,async(e,r,n)=>{n.setHeader("User-Agent","ethers");let s;try{const[i,o]=await Promise.all([n.send(),e()]);s=i;const a=s.bodyJson.standard;return{gasPrice:o.gasPrice,maxFeePerGas:z8(a.maxFee,9),maxPriorityFeePerGas:z8(a.maxPriorityFee,9)}}catch(i){z(!1,`error encountered with polygon gas station (${JSON.stringify(n.url)})`,"SERVER_ERROR",{request:n,response:s,error:i})}})}let q8=!1;function Xse(){if(q8)return;q8=!0;function t(e,r,n){const s=function(){const i=new ot(e,r);return n.ensNetwork!=null&&i.attachPlugin(new E1(null,n.ensNetwork)),i.attachPlugin(new C1),(n.plugins||[]).forEach(o=>{i.attachPlugin(o)}),i};ot.register(e,s),ot.register(r,s),n.altNames&&n.altNames.forEach(i=>{ot.register(i,s)})}t("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),t("ropsten",3,{ensNetwork:3}),t("rinkeby",4,{ensNetwork:4}),t("goerli",5,{ensNetwork:5}),t("kovan",42,{ensNetwork:42}),t("sepolia",11155111,{ensNetwork:11155111}),t("holesky",17e3,{ensNetwork:17e3}),t("classic",61,{}),t("classicKotti",6,{}),t("arbitrum",42161,{ensNetwork:1}),t("arbitrum-goerli",421613,{}),t("arbitrum-sepolia",421614,{}),t("base",8453,{ensNetwork:1}),t("base-goerli",84531,{}),t("base-sepolia",84532,{}),t("bnb",56,{ensNetwork:1}),t("bnbt",97,{}),t("linea",59144,{ensNetwork:1}),t("linea-goerli",59140,{}),t("linea-sepolia",59141,{}),t("matic",137,{ensNetwork:1,plugins:[G8("https://gasstation.polygon.technology/v2")]}),t("matic-amoy",80002,{}),t("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[G8("https://gasstation-testnet.polygon.technology/v2")]}),t("optimism",10,{ensNetwork:1,plugins:[]}),t("optimism-goerli",420,{}),t("optimism-sepolia",11155420,{}),t("xdai",100,{ensNetwork:1})}function Yw(t){return JSON.parse(JSON.stringify(t))}var Bi,Vn,Ko,Zs,hf,Yp;class Zse{constructor(e){j(this,hf);j(this,Bi);j(this,Vn);j(this,Ko);j(this,Zs);T(this,Bi,e),T(this,Vn,null),T(this,Ko,4e3),T(this,Zs,-2)}get pollingInterval(){return w(this,Ko)}set pollingInterval(e){T(this,Ko,e)}start(){w(this,Vn)||(T(this,Vn,w(this,Bi)._setTimeout(Y(this,hf,Yp).bind(this),w(this,Ko))),Y(this,hf,Yp).call(this))}stop(){w(this,Vn)&&(w(this,Bi)._clearTimeout(w(this,Vn)),T(this,Vn,null))}pause(e){this.stop(),e&&T(this,Zs,-2)}resume(){this.start()}}Bi=new WeakMap,Vn=new WeakMap,Ko=new WeakMap,Zs=new WeakMap,hf=new WeakSet,Yp=async function(){try{const e=await w(this,Bi).getBlockNumber();if(w(this,Zs)===-2){T(this,Zs,e);return}if(e!==w(this,Zs)){for(let r=w(this,Zs)+1;r<=e;r++){if(w(this,Vn)==null)return;await w(this,Bi).emit("block",r)}T(this,Zs,e)}}catch{}w(this,Vn)!=null&&T(this,Vn,w(this,Bi)._setTimeout(Y(this,hf,Yp).bind(this),w(this,Ko)))};var Bc,Lc,Qo;class $5{constructor(e){j(this,Bc);j(this,Lc);j(this,Qo);T(this,Bc,e),T(this,Qo,!1),T(this,Lc,r=>{this._poll(r,w(this,Bc))})}async _poll(e,r){throw new Error("sub-classes must override this")}start(){w(this,Qo)||(T(this,Qo,!0),w(this,Lc).call(this,-2),w(this,Bc).on("block",w(this,Lc)))}stop(){w(this,Qo)&&(T(this,Qo,!1),w(this,Bc).off("block",w(this,Lc)))}pause(e){this.stop()}resume(){this.start()}}Bc=new WeakMap,Lc=new WeakMap,Qo=new WeakMap;var pf,Li;class eie extends $5{constructor(r,n){super(r);j(this,pf);j(this,Li);T(this,pf,n),T(this,Li,-2)}pause(r){r&&T(this,Li,-2),super.pause(r)}async _poll(r,n){const s=await n.getBlock(w(this,pf));s!=null&&(w(this,Li)===-2?T(this,Li,s.number):s.number>w(this,Li)&&(n.emit(w(this,pf),s.number),T(this,Li,s.number)))}}pf=new WeakMap,Li=new WeakMap;var Dv;class tie extends $5{constructor(r,n){super(r);j(this,Dv);T(this,Dv,Yw(n))}async _poll(r,n){throw new Error("@TODO")}}Dv=new WeakMap;var yf;class rie extends $5{constructor(r,n){super(r);j(this,yf);T(this,yf,n)}async _poll(r,n){const s=await n.getTransactionReceipt(w(this,yf));s&&n.emit(w(this,yf),s)}}yf=new WeakMap;var ji,vf,gf,Jo,Hn,Bv,M7;class W5{constructor(e,r){j(this,Bv);j(this,ji);j(this,vf);j(this,gf);j(this,Jo);j(this,Hn);T(this,ji,e),T(this,vf,Yw(r)),T(this,gf,Y(this,Bv,M7).bind(this)),T(this,Jo,!1),T(this,Hn,-2)}start(){w(this,Jo)||(T(this,Jo,!0),w(this,Hn)===-2&&w(this,ji).getBlockNumber().then(e=>{T(this,Hn,e)}),w(this,ji).on("block",w(this,gf)))}stop(){w(this,Jo)&&(T(this,Jo,!1),w(this,ji).off("block",w(this,gf)))}pause(e){this.stop(),e&&T(this,Hn,-2)}resume(){this.start()}}ji=new WeakMap,vf=new WeakMap,gf=new WeakMap,Jo=new WeakMap,Hn=new WeakMap,Bv=new WeakSet,M7=async function(e){if(w(this,Hn)===-2)return;const r=Yw(w(this,vf));r.fromBlock=w(this,Hn)+1,r.toBlock=e;const n=await w(this,ji).getLogs(r);if(n.length===0){w(this,Hn){if(n==null)return"null";if(typeof n=="bigint")return`bigint:${n.toString()}`;if(typeof n=="string")return n.toLowerCase();if(typeof n=="object"&&!Array.isArray(n)){const s=Object.keys(n);return s.sort(),s.reduce((i,o)=>(i[o]=n[o],i),{})}return n})}class C0{constructor(e){N(this,"name");fe(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function iie(t){return JSON.parse(JSON.stringify(t))}function Xw(t){return t=Array.from(new Set(t).values()),t.sort(),t}async function Ix(t,e){if(t==null)throw new Error("invalid event");if(Array.isArray(t)&&(t={topics:t}),typeof t=="string")switch(t){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:t,tag:t}}if(et(t,32)){const r=t.toLowerCase();return{type:"transaction",tag:Xp("tx",{hash:r}),hash:r}}if(t.orphan){const r=t;return{type:"orphan",tag:Xp("orphan",r),filter:iie(r)}}if(t.address||t.topics){const r=t,n={topics:(r.topics||[]).map(s=>s==null?null:Array.isArray(s)?Xw(s.map(i=>i.toLowerCase())):s.toLowerCase())};if(r.address){const s=[],i=[],o=a=>{et(a)?s.push(a):i.push((async()=>{s.push(await sr(a,e))})())};Array.isArray(r.address)?r.address.forEach(o):o(r.address),i.length&&await Promise.all(i),n.address=Xw(s.map(a=>a.toLowerCase()))}return{filter:n,tag:Xp("event",n),type:"event"}}P(!1,"unknown ProviderEvent","event",t)}function Ox(){return new Date().getTime()}const oie={cacheTimeout:250,pollingInterval:4e3};var Tr,Yo,Pr,mf,Cn,jc,Xo,Fi,H0,zn,xf,bf,Be,gn,Zw,e2,rh,t2,nh,Zp;class co{constructor(e,r){j(this,Be);j(this,Tr);j(this,Yo);j(this,Pr);j(this,mf);j(this,Cn);j(this,jc);j(this,Xo);j(this,Fi);j(this,H0);j(this,zn);j(this,xf);j(this,bf);if(T(this,bf,Object.assign({},oie,r||{})),e==="any")T(this,jc,!0),T(this,Cn,null);else if(e){const n=ot.from(e);T(this,jc,!1),T(this,Cn,Promise.resolve(n)),setTimeout(()=>{this.emit("network",n,null)},0)}else T(this,jc,!1),T(this,Cn,null);T(this,Fi,-1),T(this,Xo,new Map),T(this,Tr,new Map),T(this,Yo,new Map),T(this,Pr,null),T(this,mf,!1),T(this,H0,1),T(this,zn,new Map),T(this,xf,!1)}get pollingInterval(){return w(this,bf).pollingInterval}get provider(){return this}get plugins(){return Array.from(w(this,Yo).values())}attachPlugin(e){if(w(this,Yo).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return w(this,Yo).set(e.name,e.connect(this)),this}getPlugin(e){return w(this,Yo).get(e)||null}get disableCcipRead(){return w(this,xf)}set disableCcipRead(e){T(this,xf,!!e)}async ccipReadFetch(e,r,n){if(this.disableCcipRead||n.length===0||e.to==null)return null;const s=e.to.toLowerCase(),i=r.toLowerCase(),o=[];for(let a=0;a=500,`response not found during CCIP fetch: ${f}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:c,errorMessage:f}}),o.push(f)}z(!1,`error encountered during CCIP fetch: ${o.map(a=>JSON.stringify(a)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:n,errorMessages:o}})}_wrapBlock(e,r){return new m7(Gse(e),this)}_wrapLog(e,r){return new wd(Hse(e),this)}_wrapTransactionReceipt(e,r){return new D5(Jse(e),this)}_wrapTransactionResponse(e,r){return new Yf(N7(e),this)}_detectNetwork(){z(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){z(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){const e=Pe(await Y(this,Be,gn).call(this,{method:"getBlockNumber"}),"%response");return w(this,Fi)>=0&&T(this,Fi,e),e}_getAddress(e){return sr(e,this)}_getBlockTag(e){if(e==null)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}if(et(e))return et(e,32)?e:pr(e);if(typeof e=="bigint"&&(e=Pe(e,"blockTag")),typeof e=="number")return e>=0?pr(e):w(this,Fi)>=0?pr(w(this,Fi)+e):this.getBlockNumber().then(r=>pr(r+e));P(!1,"invalid blockTag","blockTag",e)}_getFilter(e){const r=(e.topics||[]).map(c=>c==null?null:Array.isArray(c)?Xw(c.map(l=>l.toLowerCase())):c.toLowerCase()),n="blockHash"in e?e.blockHash:void 0,s=(c,l,u)=>{let f;switch(c.length){case 0:break;case 1:f=c[0];break;default:c.sort(),f=c}if(n&&(l!=null||u!=null))throw new Error("invalid filter");const d={};return f&&(d.address=f),r.length&&(d.topics=r),l&&(d.fromBlock=l),u&&(d.toBlock=u),n&&(d.blockHash=n),d};let i=[];if(e.address)if(Array.isArray(e.address))for(const c of e.address)i.push(this._getAddress(c));else i.push(this._getAddress(e.address));let o;"fromBlock"in e&&(o=this._getBlockTag(e.fromBlock));let a;return"toBlock"in e&&(a=this._getBlockTag(e.toBlock)),i.filter(c=>typeof c!="string").length||o!=null&&typeof o!="string"||a!=null&&typeof a!="string"?Promise.all([Promise.all(i),o,a]).then(c=>s(c[0],c[1],c[2])):s(i,o,a)}_getTransactionRequest(e){const r=Jf(e),n=[];if(["to","from"].forEach(s=>{if(r[s]==null)return;const i=sr(r[s],this);vp(i)?n.push(async function(){r[s]=await i}()):r[s]=i}),r.blockTag!=null){const s=this._getBlockTag(r.blockTag);vp(s)?n.push(async function(){r.blockTag=await s}()):r.blockTag=s}return n.length?async function(){return await Promise.all(n),r}():r}async getNetwork(){if(w(this,Cn)==null){const s=(async()=>{try{const i=await this._detectNetwork();return this.emit("network",i,null),i}catch(i){throw w(this,Cn)===s&&T(this,Cn,null),i}})();return T(this,Cn,s),(await s).clone()}const e=w(this,Cn),[r,n]=await Promise.all([e,this._detectNetwork()]);return r.chainId!==n.chainId&&(w(this,jc)?(this.emit("network",n,r),w(this,Cn)===e&&T(this,Cn,Promise.resolve(n))):z(!1,`network changed: ${r.chainId} => ${n.chainId} `,"NETWORK_ERROR",{event:"changed"})),r.clone()}async getFeeData(){const e=await this.getNetwork(),r=async()=>{const{_block:s,gasPrice:i,priorityFee:o}=await Pt({_block:Y(this,Be,t2).call(this,"latest",!1),gasPrice:(async()=>{try{const u=await Y(this,Be,gn).call(this,{method:"getGasPrice"});return ve(u,"%response")}catch{}return null})(),priorityFee:(async()=>{try{const u=await Y(this,Be,gn).call(this,{method:"getPriorityFee"});return ve(u,"%response")}catch{}return null})()});let a=null,c=null;const l=this._wrapBlock(s,e);return l&&l.baseFeePerGas&&(c=o??BigInt("1000000000"),a=l.baseFeePerGas*nie+c),new qw(i,a,c)},n=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(n){const s=new qt(n.url),i=await n.processFunc(r,this,s);return new qw(i.gasPrice,i.maxFeePerGas,i.maxPriorityFeePerGas)}return await r()}async estimateGas(e){let r=this._getTransactionRequest(e);return vp(r)&&(r=await r),ve(await Y(this,Be,gn).call(this,{method:"estimateGas",transaction:r}),"%response")}async call(e){const{tx:r,blockTag:n}=await Pt({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await Y(this,Be,e2).call(this,Y(this,Be,Zw).call(this,r,n,e.enableCcipRead?0:-1))}async getBalance(e,r){return ve(await Y(this,Be,rh).call(this,{method:"getBalance"},e,r),"%response")}async getTransactionCount(e,r){return Pe(await Y(this,Be,rh).call(this,{method:"getTransactionCount"},e,r),"%response")}async getCode(e,r){return H(await Y(this,Be,rh).call(this,{method:"getCode"},e,r))}async getStorage(e,r,n){const s=ve(r,"position");return H(await Y(this,Be,rh).call(this,{method:"getStorage",position:s},e,n))}async broadcastTransaction(e){const{blockNumber:r,hash:n,network:s}=await Pt({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),i=yl.from(e);if(i.hash!==n)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(i,s).replaceableTransaction(r)}async getBlock(e,r){const{network:n,params:s}=await Pt({network:this.getNetwork(),params:Y(this,Be,t2).call(this,e,!!r)});return s==null?null:this._wrapBlock(s,n)}async getTransaction(e){const{network:r,params:n}=await Pt({network:this.getNetwork(),params:Y(this,Be,gn).call(this,{method:"getTransaction",hash:e})});return n==null?null:this._wrapTransactionResponse(n,r)}async getTransactionReceipt(e){const{network:r,params:n}=await Pt({network:this.getNetwork(),params:Y(this,Be,gn).call(this,{method:"getTransactionReceipt",hash:e})});if(n==null)return null;if(n.gasPrice==null&&n.effectiveGasPrice==null){const s=await Y(this,Be,gn).call(this,{method:"getTransaction",hash:e});if(s==null)throw new Error("report this; could not find tx or effectiveGasPrice");n.effectiveGasPrice=s.gasPrice}return this._wrapTransactionReceipt(n,r)}async getTransactionResult(e){const{result:r}=await Pt({network:this.getNetwork(),result:Y(this,Be,gn).call(this,{method:"getTransactionResult",hash:e})});return r==null?null:H(r)}async getLogs(e){let r=this._getFilter(e);vp(r)&&(r=await r);const{network:n,params:s}=await Pt({network:this.getNetwork(),params:Y(this,Be,gn).call(this,{method:"getLogs",filter:r})});return s.map(i=>this._wrapLog(i,n))}_getProvider(e){z(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await w0.fromName(this,e)}async getAvatar(e){const r=await this.getResolver(e);return r?await r.getAvatar():null}async resolveName(e){const r=await this.getResolver(e);return r?await r.getAddress():null}async lookupAddress(e){e=Te(e);const r=cv(e.substring(2).toLowerCase()+".addr.reverse");try{const n=await w0.getEnsAddress(this),i=await new dn(n,["function resolver(bytes32) view returns (address)"],this).resolver(r);if(i==null||i===mi)return null;const a=await new dn(i,["function name(bytes32) view returns (string)"],this).name(r);return await this.resolveName(a)!==e?null:a}catch(n){if(Ht(n,"BAD_DATA")&&n.value==="0x"||Ht(n,"CALL_EXCEPTION"))return null;throw n}return null}async waitForTransaction(e,r,n){const s=r??1;return s===0?this.getTransactionReceipt(e):new Promise(async(i,o)=>{let a=null;const c=async l=>{try{const u=await this.getTransactionReceipt(e);if(u!=null&&l-u.blockNumber+1>=s){i(u),a&&(clearTimeout(a),a=null);return}}catch(u){console.log("EEE",u)}this.once("block",c)};n!=null&&(a=setTimeout(()=>{a!=null&&(a=null,this.off("block",c),o(ft("timeout","TIMEOUT",{reason:"timeout"})))},n)),c(await this.getBlockNumber())})}async waitForBlock(e){z(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){const r=w(this,zn).get(e);r&&(r.timer&&clearTimeout(r.timer),w(this,zn).delete(e))}_setTimeout(e,r){r==null&&(r=0);const n=Il(this,H0)._++,s=()=>{w(this,zn).delete(n),e()};if(this.paused)w(this,zn).set(n,{timer:null,func:s,time:r});else{const i=setTimeout(s,r);w(this,zn).set(n,{timer:i,func:s,time:Ox()})}return n}_forEachSubscriber(e){for(const r of w(this,Tr).values())e(r.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new C0(e.type);case"block":{const r=new Zse(this);return r.pollingInterval=this.pollingInterval,r}case"safe":case"finalized":return new eie(this,e.type);case"event":return new W5(this,e.filter);case"transaction":return new rie(this,e.hash);case"orphan":return new tie(this,e.filter)}throw new Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,r){for(const n of w(this,Tr).values())if(n.subscriber===e){n.started&&n.subscriber.stop(),n.subscriber=r,n.started&&r.start(),w(this,Pr)!=null&&r.pause(w(this,Pr));break}}async on(e,r){const n=await Y(this,Be,Zp).call(this,e);return n.listeners.push({listener:r,once:!1}),n.started||(n.subscriber.start(),n.started=!0,w(this,Pr)!=null&&n.subscriber.pause(w(this,Pr))),this}async once(e,r){const n=await Y(this,Be,Zp).call(this,e);return n.listeners.push({listener:r,once:!0}),n.started||(n.subscriber.start(),n.started=!0,w(this,Pr)!=null&&n.subscriber.pause(w(this,Pr))),this}async emit(e,...r){const n=await Y(this,Be,nh).call(this,e,r);if(!n||n.listeners.length===0)return!1;const s=n.listeners.length;return n.listeners=n.listeners.filter(({listener:i,once:o})=>{const a=new d5(this,o?null:i,e);try{i.call(this,...r,a)}catch{}return!o}),n.listeners.length===0&&(n.started&&n.subscriber.stop(),w(this,Tr).delete(n.tag)),s>0}async listenerCount(e){if(e){const n=await Y(this,Be,nh).call(this,e);return n?n.listeners.length:0}let r=0;for(const{listeners:n}of w(this,Tr).values())r+=n.length;return r}async listeners(e){if(e){const n=await Y(this,Be,nh).call(this,e);return n?n.listeners.map(({listener:s})=>s):[]}let r=[];for(const{listeners:n}of w(this,Tr).values())r=r.concat(n.map(({listener:s})=>s));return r}async off(e,r){const n=await Y(this,Be,nh).call(this,e);if(!n)return this;if(r){const s=n.listeners.map(({listener:i})=>i).indexOf(r);s>=0&&n.listeners.splice(s,1)}return(!r||n.listeners.length===0)&&(n.started&&n.subscriber.stop(),w(this,Tr).delete(n.tag)),this}async removeAllListeners(e){if(e){const{tag:r,started:n,subscriber:s}=await Y(this,Be,Zp).call(this,e);n&&s.stop(),w(this,Tr).delete(r)}else for(const[r,{started:n,subscriber:s}]of w(this,Tr))n&&s.stop(),w(this,Tr).delete(r);return this}async addListener(e,r){return await this.on(e,r)}async removeListener(e,r){return this.off(e,r)}get destroyed(){return w(this,mf)}destroy(){this.removeAllListeners();for(const e of w(this,zn).keys())this._clearTimeout(e);T(this,mf,!0)}get paused(){return w(this,Pr)!=null}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(T(this,Fi,-1),w(this,Pr)!=null){if(w(this,Pr)==!!e)return;z(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(r=>r.pause(e)),T(this,Pr,!!e);for(const r of w(this,zn).values())r.timer&&clearTimeout(r.timer),r.time=Ox()-r.time}resume(){if(w(this,Pr)!=null){this._forEachSubscriber(e=>e.resume()),T(this,Pr,null);for(const e of w(this,zn).values()){let r=e.time;r<0&&(r=0),e.time=Ox(),setTimeout(e.func,r)}}}}Tr=new WeakMap,Yo=new WeakMap,Pr=new WeakMap,mf=new WeakMap,Cn=new WeakMap,jc=new WeakMap,Xo=new WeakMap,Fi=new WeakMap,H0=new WeakMap,zn=new WeakMap,xf=new WeakMap,bf=new WeakMap,Be=new WeakSet,gn=async function(e){const r=w(this,bf).cacheTimeout;if(r<0)return await this._perform(e);const n=Xp(e.method,e);let s=w(this,Xo).get(n);return s||(s=this._perform(e),w(this,Xo).set(n,s),setTimeout(()=>{w(this,Xo).get(n)===s&&w(this,Xo).delete(n)},r)),await s},Zw=async function(e,r,n){z(n=0&&r==="latest"&&s.to!=null&&st(i.data,0,4)==="0x556f1830"){const o=i.data,a=await sr(s.to,this);let c;try{c=fie(st(i.data,4))}catch(f){z(!1,f.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:s,info:{data:o}})}z(c.sender.toLowerCase()===a.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:o,reason:"OffchainLookup",transaction:s,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:c.errorArgs}});const l=await this.ccipReadFetch(s,c.calldata,c.urls);z(l!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:s,info:{data:i.data,errorArgs:c.errorArgs}});const u={to:a,data:Le([c.selector,uie([l,c.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:u});try{const f=await Y(this,Be,Zw).call(this,u,r,n+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},u),result:f}),f}catch(f){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},u),error:f}),f}}throw i}},e2=async function(e){const{value:r}=await Pt({network:this.getNetwork(),value:e});return r},rh=async function(e,r,n){let s=this._getAddress(r),i=this._getBlockTag(n);return(typeof s!="string"||typeof i!="string")&&([s,i]=await Promise.all([s,i])),await Y(this,Be,e2).call(this,Y(this,Be,gn).call(this,Object.assign(e,{address:s,blockTag:i})))},t2=async function(e,r){if(et(e,32))return await Y(this,Be,gn).call(this,{method:"getBlock",blockHash:e,includeTransactions:r});let n=this._getBlockTag(e);return typeof n!="string"&&(n=await n),await Y(this,Be,gn).call(this,{method:"getBlock",blockTag:n,includeTransactions:r})},nh=async function(e,r){let n=await Ix(e,this);return n.type==="event"&&r&&r.length>0&&r[0].removed===!0&&(n=await Ix({orphan:"drop-log",log:r[0]},this)),w(this,Tr).get(n.tag)||null},Zp=async function(e){const r=await Ix(e,this),n=r.tag;let s=w(this,Tr).get(n);return s||(s={subscriber:this._getSubscriber(r),tag:n,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},w(this,Tr).set(n,s)),s};function aie(t,e){try{const r=r2(t,e);if(r)return Ms(r)}catch{}return null}function r2(t,e){if(t==="0x")return null;try{const r=Pe(st(t,e,e+32)),n=Pe(st(t,r,r+32));return st(t,r+32,r+32+n)}catch{}return null}function K8(t){const e=rr(t);if(e.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(e,32-e.length),r}function cie(t){if(t.length%32===0)return t;const e=new Uint8Array(Math.ceil(t.length/32)*32);return e.set(t),e}const lie=new Uint8Array([]);function uie(t){const e=[];let r=0;for(let n=0;n=5*32,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const r=st(t,0,32);z(st(r,0,12)===st(Q8,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),e.sender=st(r,12);try{const n=[],s=Pe(st(t,32,64)),i=Pe(st(t,s,s+32)),o=st(t,s+32);for(let a=0;ae[n]),e}function Ll(t,e){if(t.provider)return t.provider;z(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:e})}async function J8(t,e){let r=Jf(e);if(r.to!=null&&(r.to=sr(r.to,t)),r.from!=null){const n=r.from;r.from=Promise.all([t.getAddress(),sr(n,t)]).then(([s,i])=>(P(s.toLowerCase()===i.toLowerCase(),"transaction from mismatch","tx.from",i),s))}else r.from=t.getAddress();return await Pt(r)}class lo{constructor(e){N(this,"provider");fe(this,{provider:e||null})}async getNonce(e){return Ll(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await J8(this,e)}async populateTransaction(e){const r=Ll(this,"populateTransaction"),n=await J8(this,e);n.nonce==null&&(n.nonce=await this.getNonce("pending")),n.gasLimit==null&&(n.gasLimit=await this.estimateGas(n));const s=await this.provider.getNetwork();if(n.chainId!=null){const o=ve(n.chainId);P(o===s.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else n.chainId=s.chainId;const i=n.maxFeePerGas!=null||n.maxPriorityFeePerGas!=null;if(n.gasPrice!=null&&(n.type===2||i)?P(!1,"eip-1559 transaction do not support gasPrice","tx",e):(n.type===0||n.type===1)&&i&&P(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e),(n.type===2||n.type==null)&&n.maxFeePerGas!=null&&n.maxPriorityFeePerGas!=null)n.type=2;else if(n.type===0||n.type===1){const o=await r.getFeeData();z(o.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),n.gasPrice==null&&(n.gasPrice=o.gasPrice)}else{const o=await r.getFeeData();if(n.type==null)if(o.maxFeePerGas!=null&&o.maxPriorityFeePerGas!=null)if(n.type=2,n.gasPrice!=null){const a=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=a,n.maxPriorityFeePerGas=a}else n.maxFeePerGas==null&&(n.maxFeePerGas=o.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=o.maxPriorityFeePerGas);else o.gasPrice!=null?(z(!i,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),n.gasPrice==null&&(n.gasPrice=o.gasPrice),n.type=0):z(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else(n.type===2||n.type===3)&&(n.maxFeePerGas==null&&(n.maxFeePerGas=o.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=o.maxPriorityFeePerGas))}return await Pt(n)}async estimateGas(e){return Ll(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return Ll(this,"call").call(await this.populateCall(e))}async resolveName(e){return await Ll(this,"resolveName").resolveName(e)}async sendTransaction(e){const r=Ll(this,"sendTransaction"),n=await this.populateTransaction(e);delete n.from;const s=yl.from(n);return await r.broadcastTransaction(await this.signTransaction(s))}}var wf,ey;const Vk=class Vk extends lo{constructor(r,n){super(n);j(this,wf);N(this,"address");fe(this,{address:r})}async getAddress(){return this.address}connect(r){return new Vk(this.address,r)}async signTransaction(r){Y(this,wf,ey).call(this,"transactions","signTransaction")}async signMessage(r){Y(this,wf,ey).call(this,"messages","signMessage")}async signTypedData(r,n,s){Y(this,wf,ey).call(this,"typed-data","signTypedData")}};wf=new WeakSet,ey=function(r,n){z(!1,`VoidSigner cannot sign ${r}`,"UNSUPPORTED_OPERATION",{operation:n})};let uv=Vk;const Y8=new Set;function Ka(t){Y8.has(t)||(Y8.add(t),console.log("========= NOTICE ========="),console.log(`Request-Rate Exceeded for ${t} (this message will not be repeated)`),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.org/api-keys/"),console.log("=========================="))}function die(t){return JSON.parse(JSON.stringify(t))}var Lr,ei,Fc,Zo,Uc,Cf,Ma,n2,s2;class D7{constructor(e){j(this,Ma);j(this,Lr);j(this,ei);j(this,Fc);j(this,Zo);j(this,Uc);j(this,Cf);T(this,Lr,e),T(this,ei,null),T(this,Fc,Y(this,Ma,n2).bind(this)),T(this,Zo,!1),T(this,Uc,null),T(this,Cf,!1)}_subscribe(e){throw new Error("subclasses must override this")}_emitResults(e,r){throw new Error("subclasses must override this")}_recover(e){throw new Error("subclasses must override this")}start(){w(this,Zo)||(T(this,Zo,!0),Y(this,Ma,n2).call(this,-2))}stop(){w(this,Zo)&&(T(this,Zo,!1),T(this,Cf,!0),Y(this,Ma,s2).call(this),w(this,Lr).off("block",w(this,Fc)))}pause(e){e&&Y(this,Ma,s2).call(this),w(this,Lr).off("block",w(this,Fc))}resume(){this.start()}}Lr=new WeakMap,ei=new WeakMap,Fc=new WeakMap,Zo=new WeakMap,Uc=new WeakMap,Cf=new WeakMap,Ma=new WeakSet,n2=async function(e){try{w(this,ei)==null&&T(this,ei,this._subscribe(w(this,Lr)));let r=null;try{r=await w(this,ei)}catch(i){if(!Ht(i,"UNSUPPORTED_OPERATION")||i.operation!=="eth_newFilter")throw i}if(r==null){T(this,ei,null),w(this,Lr)._recoverSubscriber(this,this._recover(w(this,Lr)));return}const n=await w(this,Lr).getNetwork();if(w(this,Uc)||T(this,Uc,n),w(this,Uc).chainId!==n.chainId)throw new Error("chaid changed");if(w(this,Cf))return;const s=await w(this,Lr).send("eth_getFilterChanges",[r]);await this._emitResults(w(this,Lr),s)}catch(r){console.log("@TODO",r)}w(this,Lr).once("block",w(this,Fc))},s2=function(){const e=w(this,ei);e&&(T(this,ei,null),e.then(r=>{w(this,Lr).destroyed||w(this,Lr).send("eth_uninstallFilter",[r])}))};var $c;class hie extends D7{constructor(r,n){super(r);j(this,$c);T(this,$c,die(n))}_recover(r){return new W5(r,w(this,$c))}async _subscribe(r){return await r.send("eth_newFilter",[w(this,$c)])}async _emitResults(r,n){for(const s of n)r.emit(w(this,$c),r._wrapLog(s,r._network))}}$c=new WeakMap;class pie extends D7{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,r){for(const n of r)e.emit("pending",n)}}const yie="bigint,boolean,function,number,string,symbol".split(/,/g);function ty(t){if(t==null||yie.indexOf(typeof t)>=0||typeof t.getAddress=="function")return t;if(Array.isArray(t))return t.map(ty);if(typeof t=="object")return Object.keys(t).reduce((e,r)=>(e[r]=t[r],e),{});throw new Error(`should not happen: ${t} (${typeof t})`)}function vie(t){return new Promise(e=>{setTimeout(e,t)})}function jl(t){return t&&t.toLowerCase()}function X8(t){return t&&typeof t.pollingInterval=="number"}const B7={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class ry extends lo{constructor(r,n){super(r);N(this,"address");n=Te(n),fe(this,{address:n})}connect(r){z(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(r){return await this.populateCall(r)}async sendUncheckedTransaction(r){const n=ty(r),s=[];if(n.from){const o=n.from;s.push((async()=>{const a=await sr(o,this.provider);P(a!=null&&a.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",r),n.from=a})())}else n.from=this.address;if(n.gasLimit==null&&s.push((async()=>{n.gasLimit=await this.provider.estimateGas({...n,from:this.address})})()),n.to!=null){const o=n.to;s.push((async()=>{n.to=await sr(o,this.provider)})())}s.length&&await Promise.all(s);const i=this.provider.getRpcTransaction(n);return this.provider.send("eth_sendTransaction",[i])}async sendTransaction(r){const n=await this.provider.getBlockNumber(),s=await this.sendUncheckedTransaction(r);return await new Promise((i,o)=>{const a=[1e3,100];let c=0;const l=async()=>{try{const u=await this.provider.getTransaction(s);if(u!=null){i(u.replaceableTransaction(n));return}}catch(u){if(Ht(u,"CANCELLED")||Ht(u,"BAD_DATA")||Ht(u,"NETWORK_ERROR")){u.info==null&&(u.info={}),u.info.sendTransactionHash=s,o(u);return}if(Ht(u,"INVALID_ARGUMENT")&&(c++,u.info==null&&(u.info={}),u.info.sendTransactionHash=s,c>10)){o(u);return}this.provider.emit("error",ft("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:u}))}this.provider._setTimeout(()=>{l()},a.pop()||4e3)};l()})}async signTransaction(r){const n=ty(r);if(n.from){const i=await sr(n.from,this.provider);P(i!=null&&i.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",r),n.from=i}else n.from=this.address;const s=this.provider.getRpcTransaction(n);return await this.provider.send("eth_signTransaction",[s])}async signMessage(r){const n=typeof r=="string"?mt(r):r;return await this.provider.send("personal_sign",[H(n),this.address.toLowerCase()])}async signTypedData(r,n,s){const i=ty(s),o=await Ds.resolveNames(r,n,i,async a=>{const c=await sr(a);return P(c!=null,"TypedData does not support null address","value",a),c});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(Ds.getPayload(o.domain,n,o.value))])}async unlock(r){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),r,null])}async _legacySignMessage(r){const n=typeof r=="string"?mt(r):r;return await this.provider.send("eth_sign",[this.address.toLowerCase(),H(n)])}}var Wc,Ef,Ui,ti,bs,Gn,nn,z0,i2;class V5 extends co{constructor(r,n){super(r,n);j(this,z0);j(this,Wc);j(this,Ef);j(this,Ui);j(this,ti);j(this,bs);j(this,Gn);j(this,nn);T(this,Ef,1),T(this,Wc,Object.assign({},B7,n||{})),T(this,Ui,[]),T(this,ti,null),T(this,Gn,null),T(this,nn,null);{let i=null;const o=new Promise(a=>{i=a});T(this,bs,{promise:o,resolve:i})}const s=this._getOption("staticNetwork");typeof s=="boolean"?(P(!s||r!=="any","staticNetwork cannot be used on special network 'any'","options",n),s&&r!=null&&T(this,Gn,ot.from(r))):s&&(P(r==null||s.matches(r),"staticNetwork MUST match network object","options",n),T(this,Gn,s))}_getOption(r){return w(this,Wc)[r]}get _network(){return z(w(this,Gn),"network is not available yet","NETWORK_ERROR"),w(this,Gn)}async _perform(r){if(r.method==="call"||r.method==="estimateGas"){let s=r.transaction;if(s&&s.type!=null&&ve(s.type)&&s.maxFeePerGas==null&&s.maxPriorityFeePerGas==null){const i=await this.getFeeData();i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(r=Object.assign({},r,{transaction:Object.assign({},s,{type:void 0})}))}}const n=this.getRpcRequest(r);return n!=null?await this.send(n.method,n.args):super._perform(r)}async _detectNetwork(){const r=this._getOption("staticNetwork");if(r)if(r===!0){if(w(this,Gn))return w(this,Gn)}else return r;return w(this,nn)?await w(this,nn):this.ready?(T(this,nn,(async()=>{try{const n=ot.from(ve(await this.send("eth_chainId",[])));return T(this,nn,null),n}catch(n){throw T(this,nn,null),n}})()),await w(this,nn)):(T(this,nn,(async()=>{const n={id:Il(this,Ef)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:n});let s;try{s=(await this._send(n))[0],T(this,nn,null)}catch(i){throw T(this,nn,null),this.emit("debug",{action:"receiveRpcError",error:i}),i}if(this.emit("debug",{action:"receiveRpcResult",result:s}),"result"in s)return ot.from(ve(s.result));throw this.getRpcError(n,s)})()),await w(this,nn))}_start(){w(this,bs)==null||w(this,bs).resolve==null||(w(this,bs).resolve(),T(this,bs,null),(async()=>{for(;w(this,Gn)==null&&!this.destroyed;)try{T(this,Gn,await this._detectNetwork())}catch(r){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",ft("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:r}})),await vie(1e3)}Y(this,z0,i2).call(this)})())}async _waitUntilReady(){if(w(this,bs)!=null)return await w(this,bs).promise}_getSubscriber(r){return r.type==="pending"?new pie(this):r.type==="event"?this._getOption("polling")?new W5(this,r.filter):new hie(this,r.filter):r.type==="orphan"&&r.filter.orphan==="drop-log"?new C0("orphan"):super._getSubscriber(r)}get ready(){return w(this,bs)==null}getRpcTransaction(r){const n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(s=>{if(r[s]==null)return;let i=s;s==="gasLimit"&&(i="gas"),n[i]=pr(ve(r[s],`tx.${s}`))}),["from","to","data"].forEach(s=>{r[s]!=null&&(n[s]=H(r[s]))}),r.accessList&&(n.accessList=vo(r.accessList)),r.blobVersionedHashes&&(n.blobVersionedHashes=r.blobVersionedHashes.map(s=>s.toLowerCase())),n}getRpcRequest(r){switch(r.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[jl(r.address),r.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[jl(r.address),r.blockTag]};case"getCode":return{method:"eth_getCode",args:[jl(r.address),r.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[jl(r.address),"0x"+r.position.toString(16),r.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[r.signedTransaction]};case"getBlock":if("blockTag"in r)return{method:"eth_getBlockByNumber",args:[r.blockTag,!!r.includeTransactions]};if("blockHash"in r)return{method:"eth_getBlockByHash",args:[r.blockHash,!!r.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[r.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[r.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(r.transaction),r.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(r.transaction)]};case"getLogs":return r.filter&&r.filter.address!=null&&(Array.isArray(r.filter.address)?r.filter.address=r.filter.address.map(jl):r.filter.address=jl(r.filter.address)),{method:"eth_getLogs",args:[r.filter]}}return null}getRpcError(r,n){const{method:s}=r,{error:i}=n;if(s==="eth_estimateGas"&&i.message){const c=i.message;if(!c.match(/revert/i)&&c.match(/insufficient funds/i))return ft("insufficient funds","INSUFFICIENT_FUNDS",{transaction:r.params[0],info:{payload:r,error:i}})}if(s==="eth_call"||s==="eth_estimateGas"){const c=o2(i),l=Kt.getBuiltinCallException(s==="eth_call"?"call":"estimateGas",r.params[0],c?c.data:null);return l.info={error:i,payload:r},l}const o=JSON.stringify(gie(i));if(typeof i.message=="string"&&i.message.match(/user denied|ethers-user-denied/i))return ft("user rejected action","ACTION_REJECTED",{action:{eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"}[s]||"unknown",reason:"rejected",info:{payload:r,error:i}});if(s==="eth_sendRawTransaction"||s==="eth_sendTransaction"){const c=r.params[0];if(o.match(/insufficient funds|base fee exceeds gas limit/i))return ft("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:c,info:{error:i}});if(o.match(/nonce/i)&&o.match(/too low/i))return ft("nonce has already been used","NONCE_EXPIRED",{transaction:c,info:{error:i}});if(o.match(/replacement transaction/i)&&o.match(/underpriced/i))return ft("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:c,info:{error:i}});if(o.match(/only replay-protected/i))return ft("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:s,info:{transaction:c,info:{error:i}}})}let a=!!o.match(/the method .* does not exist/i);return a||i&&i.details&&i.details.startsWith("Unauthorized method:")&&(a=!0),a?ft("unsupported operation","UNSUPPORTED_OPERATION",{operation:r.method,info:{error:i,payload:r}}):ft("could not coalesce error","UNKNOWN_ERROR",{error:i,payload:r})}send(r,n){if(this.destroyed)return Promise.reject(ft("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:r}));const s=Il(this,Ef)._++,i=new Promise((o,a)=>{w(this,Ui).push({resolve:o,reject:a,payload:{method:r,params:n,id:s,jsonrpc:"2.0"}})});return Y(this,z0,i2).call(this),i}async getSigner(r){r==null&&(r=0);const n=this.send("eth_accounts",[]);if(typeof r=="number"){const i=await n;if(r>=i.length)throw new Error("no such account");return new ry(this,i[r])}const{accounts:s}=await Pt({network:this.getNetwork(),accounts:n});r=Te(r);for(const i of s)if(Te(i)===r)return new ry(this,r);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(n=>new ry(this,n))}destroy(){w(this,ti)&&(clearTimeout(w(this,ti)),T(this,ti,null));for(const{payload:r,reject:n}of w(this,Ui))n(ft("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:r.method}));T(this,Ui,[]),super.destroy()}}Wc=new WeakMap,Ef=new WeakMap,Ui=new WeakMap,ti=new WeakMap,bs=new WeakMap,Gn=new WeakMap,nn=new WeakMap,z0=new WeakSet,i2=function(){if(w(this,ti))return;const r=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");T(this,ti,setTimeout(()=>{T(this,ti,null);const n=w(this,Ui);for(T(this,Ui,[]);n.length;){const s=[n.shift()];for(;n.length&&s.length!==w(this,Wc).batchMaxCount;)if(s.push(n.shift()),JSON.stringify(s.map(o=>o.payload)).length>w(this,Wc).batchMaxSize){n.unshift(s.pop());break}(async()=>{const i=s.length===1?s[0].payload:s.map(o=>o.payload);this.emit("debug",{action:"sendRpcPayload",payload:i});try{const o=await this._send(i);this.emit("debug",{action:"receiveRpcResult",result:o});for(const{resolve:a,reject:c,payload:l}of s){if(this.destroyed){c(ft("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:l.method}));continue}const u=o.filter(f=>f.id===l.id)[0];if(u==null){const f=ft("missing response for request","BAD_DATA",{value:o,info:{payload:l}});this.emit("error",f),c(f);continue}if("error"in u){c(this.getRpcError(l,u));continue}a(u.result)}}catch(o){this.emit("debug",{action:"receiveRpcError",error:o});for(const{reject:a}of s)a(o)}})()}},r))};var ea;class L7 extends V5{constructor(r,n){super(r,n);j(this,ea);let s=this._getOption("pollingInterval");s==null&&(s=B7.pollingInterval),T(this,ea,s)}_getSubscriber(r){const n=super._getSubscriber(r);return X8(n)&&(n.pollingInterval=w(this,ea)),n}get pollingInterval(){return w(this,ea)}set pollingInterval(r){if(!Number.isInteger(r)||r<0)throw new Error("invalid interval");T(this,ea,r),this._forEachSubscriber(n=>{X8(n)&&(n.pollingInterval=w(this,ea))})}}ea=new WeakMap;var kf,M3;let zt=(M3=class extends L7{constructor(r,n,s){r==null&&(r="http://localhost:8545");super(n,s);j(this,kf);typeof r=="string"?T(this,kf,new qt(r)):T(this,kf,r.clone())}_getConnection(){return w(this,kf).clone()}async send(r,n){return await this._start(),await super.send(r,n)}async _send(r){const n=this._getConnection();n.body=JSON.stringify(r),n.setHeader("content-type","application/json");const s=await n.send();s.assertOk();let i=s.bodyJson;return Array.isArray(i)||(i=[i]),i}},kf=new WeakMap,M3);function o2(t){if(t==null)return null;if(typeof t.message=="string"&&t.message.match(/revert/i)&&et(t.data))return{message:t.message,data:t.data};if(typeof t=="object"){for(const e in t){const r=o2(t[e]);if(r)return r}return null}if(typeof t=="string")try{return o2(JSON.parse(t))}catch{}return null}function a2(t,e){if(t!=null){if(typeof t.message=="string"&&e.push(t.message),typeof t=="object")for(const r in t)a2(t[r],e);if(typeof t=="string")try{return a2(JSON.parse(t),e)}catch{}}}function gie(t){const e=[];return a2(t,e),e}const gp="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function mie(t){switch(t){case"mainnet":return"rpc.ankr.com/eth";case"goerli":return"rpc.ankr.com/eth_goerli";case"sepolia":return"rpc.ankr.com/eth_sepolia";case"arbitrum":return"rpc.ankr.com/arbitrum";case"base":return"rpc.ankr.com/base";case"base-goerli":return"rpc.ankr.com/base_goerli";case"base-sepolia":return"rpc.ankr.com/base_sepolia";case"bnb":return"rpc.ankr.com/bsc";case"bnbt":return"rpc.ankr.com/bsc_testnet_chapel";case"matic":return"rpc.ankr.com/polygon";case"matic-mumbai":return"rpc.ankr.com/polygon_mumbai";case"optimism":return"rpc.ankr.com/optimism";case"optimism-goerli":return"rpc.ankr.com/optimism_testnet";case"optimism-sepolia":return"rpc.ankr.com/optimism_sepolia"}P(!1,"unsupported network","network",t)}class E0 extends zt{constructor(r,n){r==null&&(r="mainnet");const s=ot.from(r);n==null&&(n=gp);const i={polling:!0,staticNetwork:s},o=E0.getRequest(s,n);super(o,s,i);N(this,"apiKey");fe(this,{apiKey:n})}_getProvider(r){try{return new E0(r,this.apiKey)}catch{}return super._getProvider(r)}static getRequest(r,n){n==null&&(n=gp);const s=new qt(`https://${mie(r.name)}/${n}`);return s.allowGzip=!0,n===gp&&(s.retryFunc=async(i,o,a)=>(Ka("AnkrProvider"),!0)),s}getRpcError(r,n){return r.method==="eth_sendRawTransaction"&&n&&n.error&&n.error.message==="INTERNAL_ERROR: could not replace existing tx"&&(n.error.message="replacement transaction underpriced"),super.getRpcError(r,n)}isCommunityResource(){return this.apiKey===gp}}const mp="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";function xie(t){switch(t){case"mainnet":return"eth-mainnet.alchemyapi.io";case"goerli":return"eth-goerli.g.alchemy.com";case"sepolia":return"eth-sepolia.g.alchemy.com";case"arbitrum":return"arb-mainnet.g.alchemy.com";case"arbitrum-goerli":return"arb-goerli.g.alchemy.com";case"arbitrum-sepolia":return"arb-sepolia.g.alchemy.com";case"base":return"base-mainnet.g.alchemy.com";case"base-goerli":return"base-goerli.g.alchemy.com";case"base-sepolia":return"base-sepolia.g.alchemy.com";case"matic":return"polygon-mainnet.g.alchemy.com";case"matic-amoy":return"polygon-amoy.g.alchemy.com";case"matic-mumbai":return"polygon-mumbai.g.alchemy.com";case"optimism":return"opt-mainnet.g.alchemy.com";case"optimism-goerli":return"opt-goerli.g.alchemy.com";case"optimism-sepolia":return"opt-sepolia.g.alchemy.com"}P(!1,"unsupported network","network",t)}class k0 extends zt{constructor(r,n){r==null&&(r="mainnet");const s=ot.from(r);n==null&&(n=mp);const i=k0.getRequest(s,n);super(i,s,{staticNetwork:s});N(this,"apiKey");fe(this,{apiKey:n})}_getProvider(r){try{return new k0(r,this.apiKey)}catch{}return super._getProvider(r)}async _perform(r){if(r.method==="getTransactionResult"){const{trace:n,tx:s}=await Pt({trace:this.send("trace_transaction",[r.hash]),tx:this.getTransaction(r.hash)});if(n==null||s==null)return null;let i,o=!1;try{i=n[0].result.output,o=n[0].error==="Reverted"}catch{}if(i)return z(!o,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:i,reason:null,transaction:s,invocation:null,revert:null}),i;z(!1,"could not parse trace result","BAD_DATA",{value:n})}return await super._perform(r)}isCommunityResource(){return this.apiKey===mp}static getRequest(r,n){n==null&&(n=mp);const s=new qt(`https://${xie(r.name)}/v2/${n}`);return s.allowGzip=!0,n===mp&&(s.retryFunc=async(i,o,a)=>(Ka("alchemy"),!0)),s}}function xp(t){switch(t){case"mainnet":return"39f1d67cedf8b7831010a665328c9197";case"arbitrum":return"0550c209db33c3abf4cc927e1e18cea1";case"bnb":return"98b5a77e531614387366f6fc5da097f8";case"matic":return"cd9d4d70377471aa7c142ec4a4205249"}P(!1,"unsupported network","network",t)}function bie(t){switch(t){case"mainnet":return"ethereum-mainnet.core.chainstack.com";case"arbitrum":return"arbitrum-mainnet.core.chainstack.com";case"bnb":return"bsc-mainnet.core.chainstack.com";case"matic":return"polygon-mainnet.core.chainstack.com"}P(!1,"unsupported network","network",t)}class A0 extends zt{constructor(r,n){r==null&&(r="mainnet");const s=ot.from(r);n==null&&(n=xp(s.name));const i=A0.getRequest(s,n);super(i,s,{staticNetwork:s});N(this,"apiKey");fe(this,{apiKey:n})}_getProvider(r){try{return new A0(r,this.apiKey)}catch{}return super._getProvider(r)}isCommunityResource(){return this.apiKey===xp(this._network.name)}static getRequest(r,n){n==null&&(n=xp(r.name));const s=new qt(`https://${bie(r.name)}/${n}`);return s.allowGzip=!0,n===xp(r.name)&&(s.retryFunc=async(i,o,a)=>(Ka("ChainstackProvider"),!0)),s}}class j7 extends zt{constructor(e){e==null&&(e="mainnet");const r=ot.from(e);P(r.name==="mainnet","unsupported network","network",e),super("https://cloudflare-eth.com/",r,{staticNetwork:r})}}const Z8=2e3;function wie(t){return t&&typeof t.then=="function"}const F7="org.ethers.plugins.provider.Etherscan";class H5 extends qa{constructor(r){super(F7);N(this,"baseUrl");fe(this,{baseUrl:r})}clone(){return new H5(this.baseUrl)}}const Cie=["enableCcipRead"];let Eie=1;var Af;class U7 extends co{constructor(r,n){const s=n??null;super();N(this,"network");N(this,"apiKey");j(this,Af);const i=ot.from(r);T(this,Af,i.getPlugin(F7)),fe(this,{apiKey:s,network:i}),this.getBaseUrl()}getBaseUrl(){if(w(this,Af))return w(this,Af).baseUrl;switch(this.network.name){case"mainnet":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"holesky":return"https://api-holesky.etherscan.io";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"base":return"https://api.basescan.org";case"base-sepolia":return"https://api-sepolia.basescan.org";case"bnb":return"https://api.bscscan.com";case"bnbt":return"https://api-testnet.bscscan.com";case"matic":return"https://api.polygonscan.com";case"matic-amoy":return"https://api-amoy.polygonscan.com";case"matic-mumbai":return"https://api-testnet.polygonscan.com";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}P(!1,"unsupported network","network",this.network)}getUrl(r,n){const s=Object.keys(n).reduce((o,a)=>{const c=n[a];return c!=null&&(o+=`&${a}=${c}`),o},""),i=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.getBaseUrl()}/api?module=${r}${s}${i}`}getPostUrl(){return`${this.getBaseUrl()}/api`}getPostData(r,n){return n.module=r,n.apikey=this.apiKey,n}async detectNetwork(){return this.network}async fetch(r,n,s){const i=Eie++,o=s?this.getPostUrl():this.getUrl(r,n),a=s?this.getPostData(r,n):null;this.emit("debug",{action:"sendRequest",id:i,url:o,payload:a});const c=new qt(o);c.setThrottleParams({slotInterval:1e3}),c.retryFunc=(f,d,h)=>(this.isCommunityResource()&&Ka("Etherscan"),Promise.resolve(!0)),c.processFunc=async(f,d)=>{const h=d.hasBody()?JSON.parse(Ms(d.body)):{},y=(typeof h.result=="string"?h.result:"").toLowerCase().indexOf("rate limit")>=0;return r==="proxy"?h&&h.status==0&&h.message=="NOTOK"&&y&&(this.emit("debug",{action:"receiveError",id:i,reason:"proxy-NOTOK",error:h}),d.throwThrottleError(h.result,Z8)):y&&(this.emit("debug",{action:"receiveError",id:i,reason:"null result",error:h.result}),d.throwThrottleError(h.result,Z8)),d},a&&(c.setHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),c.body=Object.keys(a).map(f=>`${f}=${a[f]}`).join("&"));const l=await c.send();try{l.assertOk()}catch(f){this.emit("debug",{action:"receiveError",id:i,error:f,reason:"assertOk"}),z(!1,"response error","SERVER_ERROR",{request:c,response:l})}l.hasBody()||(this.emit("debug",{action:"receiveError",id:i,error:"missing body",reason:"null body"}),z(!1,"missing response","SERVER_ERROR",{request:c,response:l}));const u=JSON.parse(Ms(l.body));return r==="proxy"?(u.jsonrpc!="2.0"&&(this.emit("debug",{action:"receiveError",id:i,result:u,reason:"invalid JSON-RPC"}),z(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:c,response:l,info:{result:u}})),u.error&&(this.emit("debug",{action:"receiveError",id:i,result:u,reason:"JSON-RPC error"}),z(!1,"error response","SERVER_ERROR",{request:c,response:l,info:{result:u}})),this.emit("debug",{action:"receiveRequest",id:i,result:u}),u.result):u.status==0&&(u.message==="No records found"||u.message==="No transactions found")?(this.emit("debug",{action:"receiveRequest",id:i,result:u}),u.result):((u.status!=1||typeof u.message=="string"&&!u.message.match(/^OK/))&&(this.emit("debug",{action:"receiveError",id:i,result:u}),z(!1,"error response","SERVER_ERROR",{request:c,response:l,info:{result:u}})),this.emit("debug",{action:"receiveRequest",id:i,result:u}),u.result)}_getTransactionPostData(r){const n={};for(let s in r){if(Cie.indexOf(s)>=0||r[s]==null)continue;let i=r[s];if(!(s==="type"&&i===0)&&!(s==="blockTag"&&i==="latest")){if({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[s])i=pr(i);else if(s==="accessList")i="["+vo(i).map(o=>`{address:"${o.address}",storageKeys:["${o.storageKeys.join('","')}"]}`).join(",")+"]";else if(s==="blobVersionedHashes"){if(i.length===0)continue;z(!1,"Etherscan API does not support blobVersionedHashes","UNSUPPORTED_OPERATION",{operation:"_getTransactionPostData",info:{transaction:r}})}else i=H(i);n[s]=i}}return n}_checkError(r,n,s){let i="";if(Ht(n,"SERVER_ERROR")){try{i=n.info.result.error.message}catch{}if(!i)try{i=n.info.message}catch{}}if(r.method==="estimateGas"&&!i.match(/revert/i)&&i.match(/insufficient funds/i)&&z(!1,"insufficient funds","INSUFFICIENT_FUNDS",{transaction:r.transaction}),(r.method==="call"||r.method==="estimateGas")&&i.match(/execution reverted/i)){let o="";try{o=n.info.result.error.data}catch{}const a=Kt.getBuiltinCallException(r.method,r.transaction,o);throw a.info={request:r,error:n},a}if(i&&r.method==="broadcastTransaction"){const o=yl.from(r.signedTransaction);i.match(/replacement/i)&&i.match(/underpriced/i)&&z(!1,"replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:o}),i.match(/insufficient funds/)&&z(!1,"insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:o}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&z(!1,"nonce has already been used","NONCE_EXPIRED",{transaction:o})}throw n}async _detectNetwork(){return this.network}async _perform(r){switch(r.method){case"chainId":return this.network.chainId;case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getPriorityFee":if(this.network.name==="mainnet")return"1000000000";if(this.network.name==="optimism")return"1000000";throw new Error("fallback onto the AbstractProvider default");case"getBalance":return this.fetch("account",{action:"balance",address:r.address,tag:r.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:r.address,tag:r.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:r.address,tag:r.blockTag});case"getStorage":return this.fetch("proxy",{action:"eth_getStorageAt",address:r.address,position:r.position,tag:r.blockTag});case"broadcastTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:r.signedTransaction},!0).catch(n=>this._checkError(r,n,r.signedTransaction));case"getBlock":if("blockTag"in r)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:r.blockTag,boolean:r.includeTransactions?"true":"false"});z(!1,"getBlock by blockHash not supported by Etherscan","UNSUPPORTED_OPERATION",{operation:"getBlock(blockHash)"});case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:r.hash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:r.hash});case"call":{if(r.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");const n=this._getTransactionPostData(r.transaction);n.module="proxy",n.action="eth_call";try{return await this.fetch("proxy",n,!0)}catch(s){return this._checkError(r,s,r.transaction)}}case"estimateGas":{const n=this._getTransactionPostData(r.transaction);n.module="proxy",n.action="eth_estimateGas";try{return await this.fetch("proxy",n,!0)}catch(s){return this._checkError(r,s,r.transaction)}}}return super._perform(r)}async getNetwork(){return this.network}async getEtherPrice(){return this.network.name!=="mainnet"?0:parseFloat((await this.fetch("stats",{action:"ethprice"})).ethusd)}async getContract(r){let n=this._getAddress(r);wie(n)&&(n=await n);try{const s=await this.fetch("contract",{action:"getabi",address:n}),i=JSON.parse(s);return new dn(n,i,this)}catch{return null}}isCommunityResource(){return this.apiKey==null}}Af=new WeakMap;function kie(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}const Aie=kie().WebSocket;var ri,G0,ta,Vc,ra;class Hg{constructor(e,r){j(this,ri);j(this,G0);j(this,ta);j(this,Vc);j(this,ra);T(this,ri,e),T(this,G0,JSON.stringify(r)),T(this,ta,null),T(this,Vc,null),T(this,ra,null)}get filter(){return JSON.parse(w(this,G0))}start(){T(this,ta,w(this,ri).send("eth_subscribe",this.filter).then(e=>(w(this,ri)._register(e,this),e)))}stop(){w(this,ta).then(e=>{w(this,ri).destroyed||w(this,ri).send("eth_unsubscribe",[e])}),T(this,ta,null)}pause(e){z(e,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),T(this,Vc,!!e)}resume(){T(this,Vc,null)}_handleMessage(e){if(w(this,ta)!=null&&w(this,Vc)===null){let r=w(this,ra);r==null?r=this._emit(w(this,ri),e):r=r.then(async()=>{await this._emit(w(this,ri),e)}),T(this,ra,r.then(()=>{w(this,ra)===r&&T(this,ra,null)}))}}async _emit(e,r){throw new Error("sub-classes must implemente this; _emit")}}ri=new WeakMap,G0=new WeakMap,ta=new WeakMap,Vc=new WeakMap,ra=new WeakMap;class $7 extends Hg{constructor(e){super(e,["newHeads"])}async _emit(e,r){e.emit("block",parseInt(r.number))}}class W7 extends Hg{constructor(e){super(e,["newPendingTransactions"])}async _emit(e,r){e.emit("pending",r)}}var q0;class V7 extends Hg{constructor(r,n){super(r,["logs",n]);j(this,q0);T(this,q0,JSON.stringify(n))}get logFilter(){return JSON.parse(w(this,q0))}async _emit(r,n){r.emit(this.logFilter,r._wrapLog(n,r._network))}}q0=new WeakMap;var Hc,Sf,na;class H7 extends V5{constructor(r,n){const s=Object.assign({},n??{});P(s.batchMaxCount==null||s.batchMaxCount===1,"sockets-based providers do not support batches","options.batchMaxCount",n),s.batchMaxCount=1,s.staticNetwork==null&&(s.staticNetwork=!0);super(r,s);j(this,Hc);j(this,Sf);j(this,na);T(this,Hc,new Map),T(this,Sf,new Map),T(this,na,new Map)}_getSubscriber(r){switch(r.type){case"close":return new C0("close");case"block":return new $7(this);case"pending":return new W7(this);case"event":return new V7(this,r.filter);case"orphan":if(r.filter.orphan==="drop-log")return new C0("drop-log")}return super._getSubscriber(r)}_register(r,n){w(this,Sf).set(r,n);const s=w(this,na).get(r);if(s){for(const i of s)n._handleMessage(i);w(this,na).delete(r)}}async _send(r){P(!Array.isArray(r),"WebSocket does not support batch send","payload",r);const n=new Promise((s,i)=>{w(this,Hc).set(r.id,{payload:r,resolve:s,reject:i})});return await this._waitUntilReady(),await this._write(JSON.stringify(r)),[await n]}async _processMessage(r){const n=JSON.parse(r);if(n&&typeof n=="object"&&"id"in n){const s=w(this,Hc).get(n.id);if(s==null){this.emit("error",ft("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:n}));return}w(this,Hc).delete(n.id),s.resolve(n)}else if(n&&n.method==="eth_subscription"){const s=n.params.subscription,i=w(this,Sf).get(s);if(i)i._handleMessage(n.params.result);else{let o=w(this,na).get(s);o==null&&(o=[],w(this,na).set(s,o)),o.push(n.params.result)}}else{this.emit("error",ft("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:n}));return}}async _write(r){throw new Error("sub-classes must override this")}}Hc=new WeakMap,Sf=new WeakMap,na=new WeakMap;var zc,ws;class z5 extends H7{constructor(r,n,s){super(n,s);j(this,zc);j(this,ws);typeof r=="string"?(T(this,zc,()=>new Aie(r)),T(this,ws,w(this,zc).call(this))):typeof r=="function"?(T(this,zc,r),T(this,ws,r())):(T(this,zc,null),T(this,ws,r)),this.websocket.onopen=async()=>{try{await this._start(),this.resume()}catch(i){console.log("failed to start WebsocketProvider",i)}},this.websocket.onmessage=i=>{this._processMessage(i.data)}}get websocket(){if(w(this,ws)==null)throw new Error("websocket closed");return w(this,ws)}async _write(r){this.websocket.send(r)}async destroy(){w(this,ws)!=null&&(w(this,ws).close(),T(this,ws,null)),super.destroy()}}zc=new WeakMap,ws=new WeakMap;const sh="84842078b09946638c03157f83405213";function Sie(t){switch(t){case"mainnet":return"mainnet.infura.io";case"goerli":return"goerli.infura.io";case"sepolia":return"sepolia.infura.io";case"arbitrum":return"arbitrum-mainnet.infura.io";case"arbitrum-goerli":return"arbitrum-goerli.infura.io";case"arbitrum-sepolia":return"arbitrum-sepolia.infura.io";case"base":return"base-mainnet.infura.io";case"base-goerlia":return"base-goerli.infura.io";case"base-sepolia":return"base-sepolia.infura.io";case"bnb":return"bnbsmartchain-mainnet.infura.io";case"bnbt":return"bnbsmartchain-testnet.infura.io";case"linea":return"linea-mainnet.infura.io";case"linea-goerli":return"linea-goerli.infura.io";case"linea-sepolia":return"linea-sepolia.infura.io";case"matic":return"polygon-mainnet.infura.io";case"matic-amoy":return"polygon-amoy.infura.io";case"matic-mumbai":return"polygon-mumbai.infura.io";case"optimism":return"optimism-mainnet.infura.io";case"optimism-goerli":return"optimism-goerli.infura.io";case"optimism-sepolia":return"optimism-sepolia.infura.io"}P(!1,"unsupported network","network",t)}class z7 extends z5{constructor(r,n){const s=new ed(r,n),i=s._getConnection();z(!i.credentials,"INFURA WebSocket project secrets unsupported","UNSUPPORTED_OPERATION",{operation:"InfuraProvider.getWebSocketProvider()"});const o=i.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(o,s._network);N(this,"projectId");N(this,"projectSecret");fe(this,{projectId:s.projectId,projectSecret:s.projectSecret})}isCommunityResource(){return this.projectId===sh}}class ed extends zt{constructor(r,n,s){r==null&&(r="mainnet");const i=ot.from(r);n==null&&(n=sh),s==null&&(s=null);const o=ed.getRequest(i,n,s);super(o,i,{staticNetwork:i});N(this,"projectId");N(this,"projectSecret");fe(this,{projectId:n,projectSecret:s})}_getProvider(r){try{return new ed(r,this.projectId,this.projectSecret)}catch{}return super._getProvider(r)}isCommunityResource(){return this.projectId===sh}static getWebSocketProvider(r,n){return new z7(r,n)}static getRequest(r,n,s){n==null&&(n=sh),s==null&&(s=null);const i=new qt(`https://${Sie(r.name)}/v3/${n}`);return i.allowGzip=!0,s&&i.setCredentials("",s),n===sh&&(i.retryFunc=async(o,a,c)=>(Ka("InfuraProvider"),!0)),i}}const bp="919b412a057b5e9c9b6dce193c5a60242d6efadb";function Tie(t){switch(t){case"mainnet":return"ethers.quiknode.pro";case"goerli":return"ethers.ethereum-goerli.quiknode.pro";case"sepolia":return"ethers.ethereum-sepolia.quiknode.pro";case"holesky":return"ethers.ethereum-holesky.quiknode.pro";case"arbitrum":return"ethers.arbitrum-mainnet.quiknode.pro";case"arbitrum-goerli":return"ethers.arbitrum-goerli.quiknode.pro";case"arbitrum-sepolia":return"ethers.arbitrum-sepolia.quiknode.pro";case"base":return"ethers.base-mainnet.quiknode.pro";case"base-goerli":return"ethers.base-goerli.quiknode.pro";case"base-spolia":return"ethers.base-sepolia.quiknode.pro";case"bnb":return"ethers.bsc.quiknode.pro";case"bnbt":return"ethers.bsc-testnet.quiknode.pro";case"matic":return"ethers.matic.quiknode.pro";case"matic-mumbai":return"ethers.matic-testnet.quiknode.pro";case"optimism":return"ethers.optimism.quiknode.pro";case"optimism-goerli":return"ethers.optimism-goerli.quiknode.pro";case"optimism-sepolia":return"ethers.optimism-sepolia.quiknode.pro";case"xdai":return"ethers.xdai.quiknode.pro"}P(!1,"unsupported network","network",t)}class S0 extends zt{constructor(r,n){r==null&&(r="mainnet");const s=ot.from(r);n==null&&(n=bp);const i=S0.getRequest(s,n);super(i,s,{staticNetwork:s});N(this,"token");fe(this,{token:n})}_getProvider(r){try{return new S0(r,this.token)}catch{}return super._getProvider(r)}isCommunityResource(){return this.token===bp}static getRequest(r,n){n==null&&(n=bp);const s=new qt(`https://${Tie(r.name)}/${n}`);return s.allowGzip=!0,n===bp&&(s.retryFunc=async(i,o,a)=>(Ka("QuickNodeProvider"),!0)),s}}const Pie=BigInt("1"),Iie=BigInt("2");function Oie(t){for(let e=t.length-1;e>0;e--){const r=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[r],t[r]=n}}function Rie(t){return new Promise(e=>{setTimeout(e,t)})}function c2(){return new Date().getTime()}function Rx(t){return JSON.stringify(t,(e,r)=>typeof r=="bigint"?{type:"bigint",value:r.toString()}:r)}const e3={stallTimeout:400,priority:1,weight:1},t3={blockNumber:-2,requests:0,lateResponses:0,errorResponses:0,outOfSync:-1,unsupportedEvents:0,rollingDuration:0,score:0,_network:null,_updateNumber:null,_totalTime:0,_lastFatalError:null,_lastFatalErrorTimestamp:0};async function Nie(t,e){for(;(t.blockNumber<0||t.blockNumber{try{const r=await t.provider.getBlockNumber();r>t.blockNumber&&(t.blockNumber=r)}catch(r){t.blockNumber=-2,t._lastFatalError=r,t._lastFatalErrorTimestamp=c2()}t._updateNumber=null})()),await t._updateNumber,t.outOfSync++,!t._lastFatalError););}function Sh(t){if(t==null)return"null";if(Array.isArray(t))return"["+t.map(Sh).join(",")+"]";if(typeof t=="object"&&typeof t.toJSON=="function")return Sh(t.toJSON());switch(typeof t){case"boolean":case"symbol":return t.toString();case"bigint":case"number":return BigInt(t).toString();case"string":return JSON.stringify(t);case"object":{const e=Object.keys(t);return e.sort(),"{"+e.map(r=>`${JSON.stringify(r)}:${Sh(t[r])}`).join(",")+"}"}}throw console.log("Could not serialize",t),new Error("Hmm...")}function Nx(t){if("error"in t){const r=t.error;return{tag:Sh(r),value:r}}const e=t.result;return{tag:Sh(e),value:e}}function ny(t,e){const r=new Map;for(const{value:s,tag:i,weight:o}of e){const a=r.get(i)||{value:s,weight:0};a.weight+=o,r.set(i,a)}let n=null;for(const s of r.values())s.weight>=t&&(!n||s.weight>n.weight)&&(n=s);if(n)return n.value}function l2(t,e){let r=0;const n=new Map;let s=null;const i=[];for(const{value:a,tag:c,weight:l}of e)if(a instanceof Error){const u=n.get(c)||{value:a,weight:0};u.weight+=l,n.set(c,u),(s==null||u.weight>s.weight)&&(s=u)}else i.push(BigInt(a)),r+=l;if(r=t?s.value:void 0;i.sort((a,c)=>aa?1:0);const o=Math.floor(i.length/2);return i.length%2?i[o]:(i[o-1]+i[o]+Pie)/Iie}function _x(t,e){const r=ny(t,e);if(r!==void 0)return r;for(const n of e)if(n.value)return n.value}function _ie(t,e){if(t===1)return Pe(l2(t,e),"%internal");const r=new Map,n=(o,a)=>{const c=r.get(o)||{result:o,weight:0};c.weight+=a,r.set(o,c)};for(const{weight:o,value:a}of e){const c=Pe(a);n(c-1,o),n(c,o),n(c+1,o)}let s=0,i;for(const{weight:o,result:a}of r.values())o>=t&&(o>s||i!=null&&o===s&&a>i)&&(s=o,i=a);return i}var sn,$i,Tf,yn,q7,u2,K7,Q7,f2;class G7 extends co{constructor(r,n,s){super(n,s);j(this,yn);N(this,"quorum");N(this,"eventQuorum");N(this,"eventWorkers");j(this,sn);j(this,$i);j(this,Tf);T(this,sn,r.map(i=>i instanceof co?Object.assign({provider:i},e3,t3):Object.assign({},e3,i,t3))),T(this,$i,-2),T(this,Tf,null),s&&s.quorum!=null?this.quorum=s.quorum:this.quorum=Math.ceil(w(this,sn).reduce((i,o)=>(i+=o.weight,i),0)/2),this.eventQuorum=1,this.eventWorkers=1,P(this.quorum<=w(this,sn).reduce((i,o)=>i+o.weight,0),"quorum exceed provider weight","quorum",this.quorum)}get providerConfigs(){return w(this,sn).map(r=>{const n=Object.assign({},r);for(const s in n)s[0]==="_"&&delete n[s];return n})}async _detectNetwork(){return ot.from(ve(await this._perform({method:"chainId"})))}async _translatePerform(r,n){switch(n.method){case"broadcastTransaction":return await r.broadcastTransaction(n.signedTransaction);case"call":return await r.call(Object.assign({},n.transaction,{blockTag:n.blockTag}));case"chainId":return(await r.getNetwork()).chainId;case"estimateGas":return await r.estimateGas(n.transaction);case"getBalance":return await r.getBalance(n.address,n.blockTag);case"getBlock":{const s="blockHash"in n?n.blockHash:n.blockTag;return await r.getBlock(s,n.includeTransactions)}case"getBlockNumber":return await r.getBlockNumber();case"getCode":return await r.getCode(n.address,n.blockTag);case"getGasPrice":return(await r.getFeeData()).gasPrice;case"getPriorityFee":return(await r.getFeeData()).maxPriorityFeePerGas;case"getLogs":return await r.getLogs(n.filter);case"getStorage":return await r.getStorage(n.address,n.position,n.blockTag);case"getTransaction":return await r.getTransaction(n.hash);case"getTransactionCount":return await r.getTransactionCount(n.address,n.blockTag);case"getTransactionReceipt":return await r.getTransactionReceipt(n.hash);case"getTransactionResult":return await r.getTransactionResult(n.hash)}}async _perform(r){if(r.method==="broadcastTransaction"){const o=w(this,sn).map(l=>null),a=w(this,sn).map(async({provider:l,weight:u},f)=>{try{const d=await l._perform(r);o[f]=Object.assign(Nx({result:d}),{weight:u})}catch(d){o[f]=Object.assign(Nx({error:d}),{weight:u})}});for(;;){const l=o.filter(d=>d!=null);for(const{value:d}of l)if(!(d instanceof Error))return d;const u=ny(this.quorum,o.filter(d=>d!=null));if(Ht(u,"INSUFFICIENT_FUNDS"))throw u;const f=a.filter((d,h)=>o[h]==null);if(f.length===0)break;await Promise.race(f)}const c=_x(this.quorum,o);if(z(c!==void 0,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:r,results:o.map(Rx)}}),c instanceof Error)throw c;return c}await Y(this,yn,K7).call(this);const n=new Set;let s=0;for(;;){const o=Y(this,yn,u2).call(this,n,r);if(o==null||(s+=o.config.weight,s>=this.quorum))break}const i=await Y(this,yn,f2).call(this,n,r);for(const o of n)o.perform&&o.result==null&&o.config.lateResponses++;return i}async destroy(){for(const{provider:r}of w(this,sn))r.destroy();super.destroy()}}sn=new WeakMap,$i=new WeakMap,Tf=new WeakMap,yn=new WeakSet,q7=function(r){const n=Array.from(r).map(i=>i.config),s=w(this,sn).slice();Oie(s),s.sort((i,o)=>i.priority-o.priority);for(const i of s)if(!i._lastFatalError&&n.indexOf(i)===-1)return i;return null},u2=function(r,n){const s=Y(this,yn,q7).call(this,r);if(s==null)return null;const i={config:s,result:null,didBump:!1,perform:null,staller:null},o=c2();return i.perform=(async()=>{try{s.requests++;const c=await this._translatePerform(s.provider,n);i.result={result:c}}catch(c){s.errorResponses++,i.result={error:c}}const a=c2()-o;s._totalTime+=a,s.rollingDuration=.95*s.rollingDuration+.05*a,i.perform=null})(),i.staller=(async()=>{await Rie(s.stallTimeout),i.staller=null})(),r.add(i),i},K7=async function(){let r=w(this,Tf);if(!r){const n=[];w(this,sn).forEach(s=>{n.push((async()=>{await Nie(s,0),s._lastFatalError||(s._network=await s.provider.getNetwork())})())}),T(this,Tf,r=(async()=>{await Promise.all(n);let s=null;for(const i of w(this,sn)){if(i._lastFatalError)continue;const o=i._network;s==null?s=o.chainId:o.chainId!==s&&z(!1,"cannot mix providers on different networks","UNSUPPORTED_OPERATION",{operation:"new FallbackProvider"})}})())}await r},Q7=async function(r,n){const s=[];for(const i of r)if(i.result!=null){const{tag:o,value:a}=Nx(i.result);s.push({tag:o,value:a,weight:i.config.weight})}if(!(s.reduce((i,o)=>i+o.weight,0)!o._lastFatalError).map(o=>({value:o.blockNumber,tag:Pe(o.blockNumber).toString(),weight:o.weight}))))));const i=_ie(this.quorum,s);return i===void 0?void 0:(i>w(this,$i)&&T(this,$i,i),w(this,$i))}case"getGasPrice":case"getPriorityFee":case"estimateGas":return l2(this.quorum,s);case"getBlock":return"blockTag"in n&&n.blockTag==="pending"?_x(this.quorum,s):ny(this.quorum,s);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return ny(this.quorum,s);case"broadcastTransaction":return _x(this.quorum,s)}z(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${Rx(n.method)})`})}},f2=async function(r,n){if(r.size===0)throw new Error("no runners?!");const s=[];let i=0;for(const a of r){if(a.perform&&s.push(a.perform),a.staller){s.push(a.staller);continue}a.didBump||(a.didBump=!0,i++)}const o=await Y(this,yn,Q7).call(this,r,n);if(o!==void 0){if(o instanceof Error)throw o;return o}for(let a=0;a0,"quorum not met","SERVER_ERROR",{request:"%sub-requests",info:{request:n,results:Array.from(r).map(a=>Rx(a.result))}}),await Promise.race(s),await Y(this,yn,f2).call(this,r,n)};function Mie(t){return t&&typeof t.send=="function"&&typeof t.close=="function"}const Die="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");function Bie(t,e){e==null&&(e={});const r=o=>e[o]==="-"?!1:typeof e.exclusive=="string"?o===e.exclusive:Array.isArray(e.exclusive)?e.exclusive.indexOf(o)!==-1:!0;if(typeof t=="string"&&t.match(/^https?:/))return new zt(t);if(typeof t=="string"&&t.match(/^wss?:/)||Mie(t))return new z5(t);let n=null;try{n=ot.from(t)}catch{}const s=[];if(r("publicPolygon")&&n&&(n.name==="matic"?s.push(new zt("https://polygon-rpc.com/",n,{staticNetwork:n})):n.name==="matic-amoy"&&s.push(new zt("https://rpc-amoy.polygon.technology/",n,{staticNetwork:n}))),r("alchemy"))try{s.push(new k0(t,e.alchemy))}catch{}if(r("ankr")&&e.ankr!=null)try{s.push(new E0(t,e.ankr))}catch{}if(r("chainstack"))try{s.push(new A0(t,e.chainstack))}catch{}if(r("cloudflare"))try{s.push(new j7(t))}catch{}if(r("etherscan"))try{s.push(new U7(t,e.etherscan))}catch{}if(r("infura"))try{let o=e.infura,a;typeof o=="object"&&(a=o.projectSecret,o=o.projectId),s.push(new ed(t,o,a))}catch{}if(r("quicknode"))try{let o=e.quicknode;s.push(new S0(t,o))}catch{}if(z(s.length,"unsupported default network","UNSUPPORTED_OPERATION",{operation:"getDefaultProvider"}),s.length===1)return s[0];let i=Math.floor(s.length/2);return i>2&&(i=2),n&&Die.indexOf(n.name)!==-1&&(i=1),e&&e.quorum&&(i=e.quorum),new G7(s,void 0,{quorum:i})}var sa,Gc;const Hk=class Hk extends lo{constructor(r){super(r.provider);N(this,"signer");j(this,sa);j(this,Gc);fe(this,{signer:r}),T(this,sa,null),T(this,Gc,0)}async getAddress(){return this.signer.getAddress()}connect(r){return new Hk(this.signer.connect(r))}async getNonce(r){if(r==="pending"){w(this,sa)==null&&T(this,sa,super.getNonce("pending"));const n=w(this,Gc);return await w(this,sa)+n}return super.getNonce(r)}increment(){Il(this,Gc)._++}reset(){T(this,Gc,0),T(this,sa,null)}async sendTransaction(r){const n=this.getNonce("pending");return this.increment(),r=await this.signer.populateTransaction(r),r.nonce=await n,await this.signer.sendTransaction(r)}signTransaction(r){return this.signer.signTransaction(r)}signMessage(r){return this.signer.signMessage(r)}signTypedData(r,n,s){return this.signer.signTypedData(r,n,s)}};sa=new WeakMap,Gc=new WeakMap;let d2=Hk;var Pf;class Lie extends L7{constructor(r,n,s){const i=Object.assign({},s??{},{batchMaxCount:1});P(r&&r.request,"invalid EIP-1193 provider","ethereum",r);super(n,i);j(this,Pf);T(this,Pf,async(o,a)=>{const c={method:o,params:a};this.emit("debug",{action:"sendEip1193Request",payload:c});try{const l=await r.request(c);return this.emit("debug",{action:"receiveEip1193Result",result:l}),l}catch(l){const u=new Error(l.message);throw u.code=l.code,u.data=l.data,u.payload=c,this.emit("debug",{action:"receiveEip1193Error",error:u}),u}})}async send(r,n){return await this._start(),await super.send(r,n)}async _send(r){P(!Array.isArray(r),"EIP-1193 does not support batch request","payload",r);try{const n=await w(this,Pf).call(this,r.method,r.params||[]);return[{id:r.id,result:n}]}catch(n){return[{id:r.id,error:{code:n.code,data:n.data,message:n.message}}]}}getRpcError(r,n){switch(n=JSON.parse(JSON.stringify(n)),n.error.code||-1){case 4001:n.error.message=`ethers-user-denied: ${n.error.message}`;break;case 4200:n.error.message=`ethers-unsupported: ${n.error.message}`;break}return super.getRpcError(r,n)}async hasSigner(r){r==null&&(r=0);const n=await this.send("eth_accounts",[]);return typeof r=="number"?n.length>r:(r=r.toLowerCase(),n.filter(s=>s.toLowerCase()===r).length!==0)}async getSigner(r){if(r==null&&(r=0),!await this.hasSigner(r))try{await w(this,Pf).call(this,"eth_requestAccounts",[])}catch(n){const s=n.payload;throw this.getRpcError(s,{id:s.id,error:n})}return await super.getSigner(r)}}Pf=new WeakMap;const wp="62e1ad51b37b8e00394bda3b";function jie(t){switch(t){case"mainnet":return"eth-mainnet.gateway.pokt.network";case"goerli":return"eth-goerli.gateway.pokt.network";case"matic":return"poly-mainnet.gateway.pokt.network";case"matic-mumbai":return"polygon-mumbai-rpc.gateway.pokt.network"}P(!1,"unsupported network","network",t)}class fv extends zt{constructor(r,n,s){r==null&&(r="mainnet");const i=ot.from(r);n==null&&(n=wp),s==null&&(s=null);const o={staticNetwork:i},a=fv.getRequest(i,n,s);super(a,i,o);N(this,"applicationId");N(this,"applicationSecret");fe(this,{applicationId:n,applicationSecret:s})}_getProvider(r){try{return new fv(r,this.applicationId,this.applicationSecret)}catch{}return super._getProvider(r)}static getRequest(r,n,s){n==null&&(n=wp);const i=new qt(`https://${jie(r.name)}/v1/lb/${n}`);return i.allowGzip=!0,s&&i.setCredentials("",s),n===wp&&(i.retryFunc=async(o,a,c)=>(Ka("PocketProvider"),!0)),i}isCommunityResource(){return this.applicationId===wp}}const Fie=void 0;var If;const zk=class zk extends lo{constructor(r,n){super(n);N(this,"address");j(this,If);P(r&&typeof r.sign=="function","invalid private key","privateKey","[ REDACTED ]"),T(this,If,r);const s=bd(this.signingKey.publicKey);fe(this,{address:s})}get signingKey(){return w(this,If)}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(r){return new zk(w(this,If),r)}async signTransaction(r){r=Jf(r);const{to:n,from:s}=await Pt({to:r.to?sr(r.to,this.provider):void 0,from:r.from?sr(r.from,this.provider):void 0});n!=null&&(r.to=n),s!=null&&(r.from=s),r.from!=null&&(P(Te(r.from)===this.address,"transaction from address mismatch","tx.from",r.from),delete r.from);const i=yl.from(r);return i.signature=this.signingKey.sign(i.unsignedHash),i.serialized}async signMessage(r){return this.signMessageSync(r)}signMessageSync(r){return this.signingKey.sign(jg(r)).serialized}async signTypedData(r,n,s){const i=await Ds.resolveNames(r,n,s,async o=>{z(this.provider!=null,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:o}});const a=await this.provider.resolveName(o);return z(a!=null,"unconfigured ENS name","UNCONFIGURED_NAME",{value:o}),a});return this.signingKey.sign(Ds.hash(i.domain,n,i.value)).serialized}};If=new WeakMap;let T0=zk;const dv=" !#$%&'()*+,-./<=>?@[]^_`{|}~",Uie=/^[a-z]*$/i;function r3(t,e){let r=97;return t.reduce((n,s)=>(s===e?r++:s.match(Uie)?n.push(String.fromCharCode(r)+s):(r=97,n.push(s)),n),[])}function $ie(t,e){for(let s=dv.length-1;s>=0;s--)t=t.split(dv[s]).join(e.substring(2*s,2*s+2));const r=[],n=t.replace(/(:|([0-9])|([A-Z][a-z]*))/g,(s,i,o,a)=>{if(o)for(let c=parseInt(o);c>=0;c--)r.push(";");else r.push(i.toLowerCase());return""});if(n)throw new Error(`leftovers: ${JSON.stringify(n)}`);return r3(r3(r,";"),":")}function J7(t){return P(t[0]==="0","unsupported auwl data","data",t),$ie(t.substring(1+2*dv.length),t.substring(1,1+2*dv.length))}class Y7{constructor(e){N(this,"locale");fe(this,{locale:e})}split(e){return e.toLowerCase().split(/\s+/g)}join(e){return e.join(" ")}}var Of,K0,qc,Q0,h2;class G5 extends Y7{constructor(r,n,s){super(r);j(this,Q0);j(this,Of);j(this,K0);j(this,qc);T(this,Of,n),T(this,K0,s),T(this,qc,null)}get _data(){return w(this,Of)}_decodeWords(){return J7(w(this,Of))}getWord(r){const n=Y(this,Q0,h2).call(this);return P(r>=0&&r{const{__scopeRadio:r,name:n,checked:s=!1,required:i,disabled:o,value:a="on",onCheck:c,...l}=t,[u,f]=m.useState(null),d=$e(e,p=>f(p)),h=m.useRef(!1),y=u?!!u.closest("form"):!0;return E.jsxs(TX,{scope:r,checked:s,disabled:o,children:[E.jsx(Ae.button,{type:"button",role:"radio","aria-checked":s,"data-state":l9(s),"data-disabled":o?"":void 0,disabled:o,value:a,...l,ref:d,onClick:ce(t.onClick,p=>{s||c==null||c(),y&&(h.current=p.isPropagationStopped(),h.current||p.stopPropagation())})}),y&&E.jsx(IX,{control:u,bubbles:!h.current,name:n,value:a,checked:s,required:i,disabled:o,style:{transform:"translateX(-100%)"}})]})});o9.displayName=r5;var a9="RadioIndicator",c9=m.forwardRef((t,e)=>{const{__scopeRadio:r,forceMount:n,...s}=t,i=PX(a9,r);return E.jsx(Xr,{present:n||i.checked,children:E.jsx(Ae.span,{"data-state":l9(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:e})})});c9.displayName=a9;var IX=t=>{const{control:e,checked:r,bubbles:n=!0,...s}=t,i=m.useRef(null),o=ug(r),a=fg(e);return m.useEffect(()=>{const c=i.current,l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"checked").set;if(o!==r&&f){const d=new Event("click",{bubbles:n});f.call(c,r),c.dispatchEvent(d)}},[o,r,n]),E.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:i,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function l9(t){return t?"checked":"unchecked"}var OX=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],n5="RadioGroup",[RX,$de]=Dr(n5,[gd,i9]),u9=gd(),f9=i9(),[NX,_X]=RX(n5),d9=m.forwardRef((t,e)=>{const{__scopeRadioGroup:r,name:n,defaultValue:s,value:i,required:o=!1,disabled:a=!1,orientation:c,dir:l,loop:u=!0,onValueChange:f,...d}=t,h=u9(r),y=c1(l),[p,b]=is({prop:i,defaultProp:s,onChange:f});return E.jsx(NX,{scope:r,name:n,required:o,disabled:a,value:p,onValueChange:b,children:E.jsx(DE,{asChild:!0,...h,orientation:c,dir:y,loop:u,children:E.jsx(Ae.div,{role:"radiogroup","aria-required":o,"aria-orientation":c,"data-disabled":a?"":void 0,dir:y,...d,ref:e})})})});d9.displayName=n5;var h9="RadioGroupItem",p9=m.forwardRef((t,e)=>{const{__scopeRadioGroup:r,disabled:n,...s}=t,i=_X(h9,r),o=i.disabled||n,a=u9(r),c=f9(r),l=m.useRef(null),u=$e(e,l),f=i.value===s.value,d=m.useRef(!1);return m.useEffect(()=>{const h=p=>{OX.includes(p.key)&&(d.current=!0)},y=()=>d.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",y),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",y)}},[]),E.jsx(BE,{asChild:!0,...a,focusable:!o,active:f,children:E.jsx(o9,{disabled:o,required:i.required,checked:f,...c,...s,name:i.name,ref:u,onCheck:()=>i.onValueChange(s.value),onKeyDown:ce(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:ce(s.onFocus,()=>{var h;d.current&&((h=l.current)==null||h.click())})})})});p9.displayName=h9;var MX="RadioGroupIndicator",y9=m.forwardRef((t,e)=>{const{__scopeRadioGroup:r,...n}=t,s=f9(r);return E.jsx(c9,{...s,...n,ref:e})});y9.displayName=MX;var DX=d9,BX=p9,LX=y9,jX=At({defaultClassName:"io59uy3 io59uy0 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr1so fyvr1uk fyvr1wg fyvr1yc fyvr12nd fyvr12g1 fyvr121d fyvr128p fyvr12nj fyvr12g7 fyvr121j fyvr128v fyvr11od fyvr12v7 fyvr12v3 fyvr12vz fyvr12vr _4efw240",variantClassNames:{size:{sm:"io59uy4 io59uy1 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8",lg:"io59uy5 io59uy2 fyvr11ac fyvr11ao fyvr11b0 fyvr11bc"}},defaultVariants:{},compoundVariants:[]}),FX=At({defaultClassName:"io59uy8 io59uy7 io59uy6 fyvr11h0 fyvr11ko fyvr11jg fyvr11hw fyvr128 fyvr15o fyvr12s1",variantClassNames:{size:{sm:"io59uy9",lg:"io59uya"}},defaultVariants:{},compoundVariants:[]});const UX=t=>{const{id:e,label:r,size:n="sm",value:s,disabled:i}=t;return E.jsx(me,{alignItems:"center",children:E.jsx(fd,{disabled:i,display:"flex",id:e,label:r,labelLocation:"right",children:E.jsx(BX,{className:jX({size:n}),value:s,id:e,disabled:i,children:E.jsx(LX,{className:FX({size:n})})})})})};m.forwardRef((t,e)=>{const{flexDirection:r="column",disabled:n=!1,gap:s="2",name:i,options:o,size:a="sm",...c}=t;return E.jsx(DX,{disabled:n,name:i,ref:e,...c,children:E.jsx(me,{flexDirection:r,gap:s,children:o.map(({label:l,value:u,disabled:f})=>E.jsx(UX,{id:`${i}-${u}`,label:l,size:a,value:u,disabled:f},u))})})});function FS(t,[e,r]){return Math.min(r,Math.max(e,t))}var $X="VisuallyHidden",h1=m.forwardRef((t,e)=>E.jsx(Ae.span,{...t,ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}}));h1.displayName=$X;var WX=h1,VX=[" ","Enter","ArrowUp","ArrowDown"],HX=[" ","Enter"],p1="Select",[wg,Cg,zX]=dg(p1),[md,Wde]=Dr(p1,[zX,vd]),Eg=vd(),[GX,$a]=md(p1),[qX,KX]=md(p1),v9=t=>{const{__scopeSelect:e,children:r,open:n,defaultOpen:s,onOpenChange:i,value:o,defaultValue:a,onValueChange:c,dir:l,name:u,autoComplete:f,disabled:d,required:h}=t,y=Eg(e),[p,b]=m.useState(null),[v,g]=m.useState(null),[x,k]=m.useState(!1),S=c1(l),[I=!1,R]=is({prop:n,defaultProp:s,onChange:i}),[_,V]=is({prop:o,defaultProp:a,onChange:c}),F=m.useRef(null),X=p?!!p.closest("form"):!0,[re,le]=m.useState(new Set),ee=Array.from(re).map(D=>D.props.value).join(";");return E.jsx(RE,{...y,children:E.jsxs(GX,{required:h,scope:e,trigger:p,onTriggerChange:b,valueNode:v,onValueNodeChange:g,valueNodeHasChildren:x,onValueNodeHasChildrenChange:k,contentId:es(),value:_,onValueChange:V,open:I,onOpenChange:R,dir:S,triggerPointerDownPosRef:F,disabled:d,children:[E.jsx(wg.Provider,{scope:e,children:E.jsx(qX,{scope:t.__scopeSelect,onNativeOptionAdd:m.useCallback(D=>{le(G=>new Set(G).add(D))},[]),onNativeOptionRemove:m.useCallback(D=>{le(G=>{const Z=new Set(G);return Z.delete(D),Z})},[]),children:r})}),X?E.jsxs(B9,{"aria-hidden":!0,required:h,tabIndex:-1,name:u,autoComplete:f,value:_,onChange:D=>V(D.target.value),disabled:d,children:[_===void 0?E.jsx("option",{value:""}):null,Array.from(re)]},ee):null]})})};v9.displayName=p1;var g9="SelectTrigger",m9=m.forwardRef((t,e)=>{const{__scopeSelect:r,disabled:n=!1,...s}=t,i=Eg(r),o=$a(g9,r),a=o.disabled||n,c=$e(e,o.onTriggerChange),l=Cg(r),[u,f,d]=L9(y=>{const p=l().filter(g=>!g.disabled),b=p.find(g=>g.value===o.value),v=j9(p,y,b);v!==void 0&&o.onValueChange(v.value)}),h=()=>{a||(o.onOpenChange(!0),d())};return E.jsx(NE,{asChild:!0,...i,children:E.jsx(Ae.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":D9(o.value)?"":void 0,...s,ref:c,onClick:ce(s.onClick,y=>{y.currentTarget.focus()}),onPointerDown:ce(s.onPointerDown,y=>{const p=y.target;p.hasPointerCapture(y.pointerId)&&p.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&(h(),o.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)},y.preventDefault())}),onKeyDown:ce(s.onKeyDown,y=>{const p=u.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&f(y.key),!(p&&y.key===" ")&&VX.includes(y.key)&&(h(),y.preventDefault())})})})});m9.displayName=g9;var x9="SelectValue",b9=m.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:s,children:i,placeholder:o="",...a}=t,c=$a(x9,r),{onValueNodeHasChildrenChange:l}=c,u=i!==void 0,f=$e(e,c.onValueNodeChange);return xr(()=>{l(u)},[l,u]),E.jsx(Ae.span,{...a,ref:f,style:{pointerEvents:"none"},children:D9(c.value)?E.jsx(E.Fragment,{children:o}):i})});b9.displayName=x9;var QX="SelectIcon",w9=m.forwardRef((t,e)=>{const{__scopeSelect:r,children:n,...s}=t;return E.jsx(Ae.span,{"aria-hidden":!0,...s,ref:e,children:n||"▼"})});w9.displayName=QX;var hl="SelectContent",C9=m.forwardRef((t,e)=>{const r=$a(hl,t.__scopeSelect),[n,s]=m.useState();if(xr(()=>{s(new DocumentFragment)},[]),!r.open){const i=n;return i?Fa.createPortal(E.jsx(E9,{scope:t.__scopeSelect,children:E.jsx(wg.Slot,{scope:t.__scopeSelect,children:E.jsx("div",{children:t.children})})}),i):null}return E.jsx(k9,{...t,ref:e})});C9.displayName=hl;var Ai=10,[E9,Wa]=md(hl),JX="SelectContentImpl",k9=m.forwardRef((t,e)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:o,side:a,sideOffset:c,align:l,alignOffset:u,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:y,hideWhenDetached:p,avoidCollisions:b,...v}=t,g=$a(hl,r),[x,k]=m.useState(null),[S,I]=m.useState(null),R=$e(e,$=>k($)),[_,V]=m.useState(null),[F,X]=m.useState(null),re=Cg(r),[le,ee]=m.useState(!1),D=m.useRef(!1);m.useEffect(()=>{if(x)return LE(x)},[x]),CE();const G=m.useCallback($=>{const[K,...ue]=re().map(Ce=>Ce.ref.current),[de]=ue.slice(-1),oe=document.activeElement;for(const Ce of $)if(Ce===oe||(Ce==null||Ce.scrollIntoView({block:"nearest"}),Ce===K&&S&&(S.scrollTop=0),Ce===de&&S&&(S.scrollTop=S.scrollHeight),Ce==null||Ce.focus(),document.activeElement!==oe))return},[re,S]),Z=m.useCallback(()=>G([_,x]),[G,_,x]);m.useEffect(()=>{le&&Z()},[le,Z]);const{onOpenChange:C,triggerPointerDownPosRef:A}=g;m.useEffect(()=>{if(x){let $={x:0,y:0};const K=de=>{var oe,Ce;$={x:Math.abs(Math.round(de.pageX)-(((oe=A.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(de.pageY)-(((Ce=A.current)==null?void 0:Ce.y)??0))}},ue=de=>{$.x<=10&&$.y<=10?de.preventDefault():x.contains(de.target)||C(!1),document.removeEventListener("pointermove",K),A.current=null};return A.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",ue,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",ue,{capture:!0})}}},[x,C,A]),m.useEffect(()=>{const $=()=>C(!1);return window.addEventListener("blur",$),window.addEventListener("resize",$),()=>{window.removeEventListener("blur",$),window.removeEventListener("resize",$)}},[C]);const[O,M]=L9($=>{const K=re().filter(oe=>!oe.disabled),ue=K.find(oe=>oe.ref.current===document.activeElement),de=j9(K,$,ue);de&&setTimeout(()=>de.ref.current.focus())}),B=m.useCallback(($,K,ue)=>{const de=!D.current&&!ue;(g.value!==void 0&&g.value===K||de)&&(V($),de&&(D.current=!0))},[g.value]),W=m.useCallback(()=>x==null?void 0:x.focus(),[x]),q=m.useCallback(($,K,ue)=>{const de=!D.current&&!ue;(g.value!==void 0&&g.value===K||de)&&X($)},[g.value]),te=n==="popper"?vw:A9,J=te===vw?{side:a,sideOffset:c,align:l,alignOffset:u,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:y,hideWhenDetached:p,avoidCollisions:b}:{};return E.jsx(E9,{scope:r,content:x,viewport:S,onViewportChange:I,itemRefCallback:B,selectedItem:_,onItemLeave:W,itemTextRefCallback:q,focusSelectedItem:Z,selectedItemText:F,position:n,isPositioned:le,searchRef:O,children:E.jsx(mg,{as:ul,allowPinchZoom:!0,children:E.jsx(hg,{asChild:!0,trapped:g.open,onMountAutoFocus:$=>{$.preventDefault()},onUnmountAutoFocus:ce(s,$=>{var K;(K=g.trigger)==null||K.focus({preventScroll:!0}),$.preventDefault()}),children:E.jsx(hd,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:$=>$.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:E.jsx(te,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:$=>$.preventDefault(),...v,...J,onPlaced:()=>ee(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:ce(v.onKeyDown,$=>{const K=$.ctrlKey||$.altKey||$.metaKey;if($.key==="Tab"&&$.preventDefault(),!K&&$.key.length===1&&M($.key),["ArrowUp","ArrowDown","Home","End"].includes($.key)){let de=re().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes($.key)&&(de=de.slice().reverse()),["ArrowUp","ArrowDown"].includes($.key)){const oe=$.target,Ce=de.indexOf(oe);de=de.slice(Ce+1)}setTimeout(()=>G(de)),$.preventDefault()}})})})})})})});k9.displayName=JX;var YX="SelectItemAlignedPosition",A9=m.forwardRef((t,e)=>{const{__scopeSelect:r,onPlaced:n,...s}=t,i=$a(hl,r),o=Wa(hl,r),[a,c]=m.useState(null),[l,u]=m.useState(null),f=$e(e,R=>u(R)),d=Cg(r),h=m.useRef(!1),y=m.useRef(!0),{viewport:p,selectedItem:b,selectedItemText:v,focusSelectedItem:g}=o,x=m.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&l&&p&&b&&v){const R=i.trigger.getBoundingClientRect(),_=l.getBoundingClientRect(),V=i.valueNode.getBoundingClientRect(),F=v.getBoundingClientRect();if(i.dir!=="rtl"){const oe=F.left-_.left,Ce=V.left-oe,Re=R.left-Ce,xt=R.width+Re,tn=Math.max(xt,_.width),br=window.innerWidth-Ai,U=FS(Ce,[Ai,br-tn]);a.style.minWidth=xt+"px",a.style.left=U+"px"}else{const oe=_.right-F.right,Ce=window.innerWidth-V.right-oe,Re=window.innerWidth-R.right-Ce,xt=R.width+Re,tn=Math.max(xt,_.width),br=window.innerWidth-Ai,U=FS(Ce,[Ai,br-tn]);a.style.minWidth=xt+"px",a.style.right=U+"px"}const X=d(),re=window.innerHeight-Ai*2,le=p.scrollHeight,ee=window.getComputedStyle(l),D=parseInt(ee.borderTopWidth,10),G=parseInt(ee.paddingTop,10),Z=parseInt(ee.borderBottomWidth,10),C=parseInt(ee.paddingBottom,10),A=D+G+le+C+Z,O=Math.min(b.offsetHeight*5,A),M=window.getComputedStyle(p),B=parseInt(M.paddingTop,10),W=parseInt(M.paddingBottom,10),q=R.top+R.height/2-Ai,te=re-q,J=b.offsetHeight/2,$=b.offsetTop+J,K=D+G+$,ue=A-K;if(K<=q){const oe=b===X[X.length-1].ref.current;a.style.bottom="0px";const Ce=l.clientHeight-p.offsetTop-p.offsetHeight,Re=Math.max(te,J+(oe?W:0)+Ce+Z),xt=K+Re;a.style.height=xt+"px"}else{const oe=b===X[0].ref.current;a.style.top="0px";const Re=Math.max(q,D+p.offsetTop+(oe?B:0)+J)+ue;a.style.height=Re+"px",p.scrollTop=K-q+p.offsetTop}a.style.margin=`${Ai}px 0`,a.style.minHeight=O+"px",a.style.maxHeight=re+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[d,i.trigger,i.valueNode,a,l,p,b,v,i.dir,n]);xr(()=>x(),[x]);const[k,S]=m.useState();xr(()=>{l&&S(window.getComputedStyle(l).zIndex)},[l]);const I=m.useCallback(R=>{R&&y.current===!0&&(x(),g==null||g(),y.current=!1)},[x,g]);return E.jsx(ZX,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:h,onScrollButtonChange:I,children:E.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:E.jsx(Ae.div,{...s,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});A9.displayName=YX;var XX="SelectPopperPosition",vw=m.forwardRef((t,e)=>{const{__scopeSelect:r,align:n="start",collisionPadding:s=Ai,...i}=t,o=Eg(r);return E.jsx(_E,{...o,...i,ref:e,align:n,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});vw.displayName=XX;var[ZX,s5]=md(hl,{}),gw="SelectViewport",S9=m.forwardRef((t,e)=>{const{__scopeSelect:r,nonce:n,...s}=t,i=Wa(gw,r),o=s5(gw,r),a=$e(e,i.onViewportChange),c=m.useRef(0);return E.jsxs(E.Fragment,{children:[E.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),E.jsx(wg.Slot,{scope:r,children:E.jsx(Ae.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:a,style:{position:"relative",flex:1,overflow:"auto",...s.style},onScroll:ce(s.onScroll,l=>{const u=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=o;if(d!=null&&d.current&&f){const h=Math.abs(c.current-u.scrollTop);if(h>0){const y=window.innerHeight-Ai*2,p=parseFloat(f.style.minHeight),b=parseFloat(f.style.height),v=Math.max(p,b);if(v0?k:0,f.style.justifyContent="flex-end")}}}c.current=u.scrollTop})})})]})});S9.displayName=gw;var T9="SelectGroup",[eZ,tZ]=md(T9),P9=m.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=es();return E.jsx(eZ,{scope:r,id:s,children:E.jsx(Ae.div,{role:"group","aria-labelledby":s,...n,ref:e})})});P9.displayName=T9;var I9="SelectLabel",rZ=m.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=tZ(I9,r);return E.jsx(Ae.div,{id:s.id,...n,ref:e})});rZ.displayName=I9;var tv="SelectItem",[nZ,O9]=md(tv),R9=m.forwardRef((t,e)=>{const{__scopeSelect:r,value:n,disabled:s=!1,textValue:i,...o}=t,a=$a(tv,r),c=Wa(tv,r),l=a.value===n,[u,f]=m.useState(i??""),[d,h]=m.useState(!1),y=$e(e,v=>{var g;return(g=c.itemRefCallback)==null?void 0:g.call(c,v,n,s)}),p=es(),b=()=>{s||(a.onValueChange(n),a.onOpenChange(!1))};if(n==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return E.jsx(nZ,{scope:r,value:n,disabled:s,textId:p,isSelected:l,onItemTextChange:m.useCallback(v=>{f(g=>g||((v==null?void 0:v.textContent)??"").trim())},[]),children:E.jsx(wg.ItemSlot,{scope:r,value:n,disabled:s,textValue:u,children:E.jsx(Ae.div,{role:"option","aria-labelledby":p,"data-highlighted":d?"":void 0,"aria-selected":l&&d,"data-state":l?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:y,onFocus:ce(o.onFocus,()=>h(!0)),onBlur:ce(o.onBlur,()=>h(!1)),onPointerUp:ce(o.onPointerUp,b),onPointerMove:ce(o.onPointerMove,v=>{var g;s?(g=c.onItemLeave)==null||g.call(c):v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ce(o.onPointerLeave,v=>{var g;v.currentTarget===document.activeElement&&((g=c.onItemLeave)==null||g.call(c))}),onKeyDown:ce(o.onKeyDown,v=>{var g;((g=c.searchRef)==null?void 0:g.current)!==""&&v.key===" "||(HX.includes(v.key)&&b(),v.key===" "&&v.preventDefault())})})})})});R9.displayName=tv;var Zd="SelectItemText",N9=m.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:s,...i}=t,o=$a(Zd,r),a=Wa(Zd,r),c=O9(Zd,r),l=KX(Zd,r),[u,f]=m.useState(null),d=$e(e,v=>f(v),c.onItemTextChange,v=>{var g;return(g=a.itemTextRefCallback)==null?void 0:g.call(a,v,c.value,c.disabled)}),h=u==null?void 0:u.textContent,y=m.useMemo(()=>E.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:p,onNativeOptionRemove:b}=l;return xr(()=>(p(y),()=>b(y)),[p,b,y]),E.jsxs(E.Fragment,{children:[E.jsx(Ae.span,{id:c.textId,...i,ref:d}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Fa.createPortal(i.children,o.valueNode):null]})});N9.displayName=Zd;var _9="SelectItemIndicator",sZ=m.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t;return O9(_9,r).isSelected?E.jsx(Ae.span,{"aria-hidden":!0,...n,ref:e}):null});sZ.displayName=_9;var mw="SelectScrollUpButton",iZ=m.forwardRef((t,e)=>{const r=Wa(mw,t.__scopeSelect),n=s5(mw,t.__scopeSelect),[s,i]=m.useState(!1),o=$e(e,n.onScrollButtonChange);return xr(()=>{if(r.viewport&&r.isPositioned){let a=function(){const l=c.scrollTop>0;i(l)};const c=r.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),s?E.jsx(M9,{...t,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=r;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});iZ.displayName=mw;var xw="SelectScrollDownButton",oZ=m.forwardRef((t,e)=>{const r=Wa(xw,t.__scopeSelect),n=s5(xw,t.__scopeSelect),[s,i]=m.useState(!1),o=$e(e,n.onScrollButtonChange);return xr(()=>{if(r.viewport&&r.isPositioned){let a=function(){const l=c.scrollHeight-c.clientHeight,u=Math.ceil(c.scrollTop)c.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),s?E.jsx(M9,{...t,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=r;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});oZ.displayName=xw;var M9=m.forwardRef((t,e)=>{const{__scopeSelect:r,onAutoScroll:n,...s}=t,i=Wa("SelectScrollButton",r),o=m.useRef(null),a=Cg(r),c=m.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return m.useEffect(()=>()=>c(),[c]),xr(()=>{var l;const u=a().find(f=>f.ref.current===document.activeElement);(l=u==null?void 0:u.ref.current)==null||l.scrollIntoView({block:"nearest"})},[a]),E.jsx(Ae.div,{"aria-hidden":!0,...s,ref:e,style:{flexShrink:0,...s.style},onPointerDown:ce(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:ce(s.onPointerMove,()=>{var l;(l=i.onItemLeave)==null||l.call(i),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:ce(s.onPointerLeave,()=>{c()})})}),aZ="SelectSeparator",cZ=m.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t;return E.jsx(Ae.div,{"aria-hidden":!0,...n,ref:e})});cZ.displayName=aZ;var bw="SelectArrow",lZ=m.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=Eg(r),i=$a(bw,r),o=Wa(bw,r);return i.open&&o.position==="popper"?E.jsx(ME,{...s,...n,ref:e}):null});lZ.displayName=bw;function D9(t){return t===""||t===void 0}var B9=m.forwardRef((t,e)=>{const{value:r,...n}=t,s=m.useRef(null),i=$e(e,s),o=ug(r);return m.useEffect(()=>{const a=s.current,c=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==r&&u){const f=new Event("change",{bubbles:!0});u.call(a,r),a.dispatchEvent(f)}},[o,r]),E.jsx(h1,{asChild:!0,children:E.jsx("select",{...n,ref:i,defaultValue:r})})});B9.displayName="BubbleSelect";function L9(t){const e=_r(t),r=m.useRef(""),n=m.useRef(0),s=m.useCallback(o=>{const a=r.current+o;e(a),function c(l){r.current=l,window.clearTimeout(n.current),l!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(a)},[e]),i=m.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return m.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,s,i]}function j9(t,e,r){const s=e.length>1&&Array.from(e).every(l=>l===e[0])?e[0]:e,i=r?t.indexOf(r):-1;let o=uZ(t,Math.max(i,0));s.length===1&&(o=o.filter(l=>l!==r));const c=o.find(l=>l.textValue.toLowerCase().startsWith(s.toLowerCase()));return c!==r?c:void 0}function uZ(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var fZ=v9,dZ=m9,hZ=b9,pZ=w9,yZ=C9,vZ=S9,gZ=P9,mZ=R9,xZ=N9,bZ="gohwum1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 gohwum0 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11od fyvr11hc fyvr11f4 fyvr12s1 fyvr118c fyvr11jw fyvr11n4 fyvr12v7 fyvr12o1",wZ=At({defaultClassName:"gohwum5",variantClassNames:{borderRadius:{xs:"gohwum6 gohwum2 fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"gohwum7 gohwum3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"gohwum8 gohwum4 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]}),CZ="gohwuma gohwum9 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr11ls fyvr11m8 fyvr11ms fyvr11tv fyvr12s1 fyvr11nl",EZ="gohwume _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 gohwumd fyvr1ww fyvr1ys fyvr1t0 fyvr1uw fyvr12ws fyvr12wt fyvr12wm fyvr12wn fyvr11h0 fyvr11jw fyvr11ko fyvr12v7 fyvr12v3 fyvr12s1 fyvr12w1 fyvr12vr";const kZ=m.forwardRef(({children:t,className:e,...r},n)=>E.jsx(mZ,{className:Mr(EZ,e),...r,ref:n,children:E.jsx(xZ,{children:t})})),US=m.forwardRef((t,e)=>{const{borderRadius:r="md",disabled:n=!1,id:s,label:i="",description:o,labelLocation:a="hidden",name:c,options:l,placeholder:u,...f}=t;return E.jsx(fd,{disabled:n,display:"grid",id:s??c,label:i,labelLocation:a,description:o,whiteSpace:"nowrap",children:E.jsxs(fZ,{disabled:n,name:c,...f,children:[E.jsxs(dZ,{id:s??c,className:Mr(bZ,wZ({borderRadius:r})),ref:e,children:[E.jsx(hZ,{placeholder:u}),E.jsx(me,{as:pZ,display:"inline-flex",children:E.jsx(wI,{})})]}),E.jsx(yZ,{className:CZ,children:E.jsx(vZ,{children:E.jsx(gZ,{children:l.map(({value:d,label:h,...y})=>E.jsx(kZ,{value:d,...y,children:h},d))})})})]})})});m.forwardRef((t,e)=>{const{controls:r,onChange:n,placeholder:s="Search",name:i="search",value:o,...a}=t,c=o?E.jsx(GE,{icon:gE,size:"xs",onClick:()=>n==null?void 0:n({target:{value:""}})}):void 0;return E.jsx(ZE,{ref:e,name:i,leftIcon:Tq,controls:r||c,placeholder:s,value:o,onChange:l=>n==null?void 0:n(l),...a})});var AZ=At({defaultClassName:"en4abt1",variantClassNames:{size:{sm:"en4abt2",md:"en4abt3",lg:"en4abt4"}},defaultVariants:{},compoundVariants:[]});m.forwardRef((t,e)=>{const{size:r="md",...n}=t;return E.jsx(me,{className:AZ({size:r}),color:"text50",ref:e,...n,children:E.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",children:[E.jsx("circle",{cx:"12",cy:"12",fill:"none",r:"10.5",strokeDasharray:"42",strokeLinecap:"round"}),E.jsx("circle",{cx:"12",cy:"12",fill:"none",opacity:"0.25",r:"10.5",strokeLinecap:"round"})]})})});m.forwardRef(({children:t},e)=>E.jsx(me,{ref:e,width:"fit",height:"fit",onClick:r=>{r.preventDefault(),r.stopPropagation()},onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),r.stopPropagation())},children:t}));var i5="Switch",[SZ,Vde]=Dr(i5),[TZ,PZ]=SZ(i5),IZ=m.forwardRef((t,e)=>{const{__scopeSwitch:r,name:n,checked:s,defaultChecked:i,required:o,disabled:a,value:c="on",onCheckedChange:l,...u}=t,[f,d]=m.useState(null),h=$e(e,g=>d(g)),y=m.useRef(!1),p=f?!!f.closest("form"):!0,[b=!1,v]=is({prop:s,defaultProp:i,onChange:l});return E.jsxs(TZ,{scope:r,checked:b,disabled:a,children:[E.jsx(Ae.button,{type:"button",role:"switch","aria-checked":b,"aria-required":o,"data-state":U9(b),"data-disabled":a?"":void 0,disabled:a,value:c,...u,ref:h,onClick:ce(t.onClick,g=>{v(x=>!x),p&&(y.current=g.isPropagationStopped(),y.current||g.stopPropagation())})}),p&&E.jsx(RZ,{control:f,bubbles:!y.current,name:n,value:c,checked:b,required:o,disabled:a,style:{transform:"translateX(-100%)"}})]})});IZ.displayName=i5;var F9="SwitchThumb",OZ=m.forwardRef((t,e)=>{const{__scopeSwitch:r,...n}=t,s=PZ(F9,r);return E.jsx(Ae.span,{"data-state":U9(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:e})});OZ.displayName=F9;var RZ=t=>{const{control:e,checked:r,bubbles:n=!0,...s}=t,i=m.useRef(null),o=ug(r),a=fg(e);return m.useEffect(()=>{const c=i.current,l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"checked").set;if(o!==r&&f){const d=new Event("click",{bubbles:n});f.call(c,r),c.dispatchEvent(d)}},[o,r,n]),E.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:i,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function U9(t){return t?"checked":"unchecked"}At({defaultClassName:"nwwh3z8",variantClassNames:{variant:{pill:"nwwh3z9",line:"nwwh3za nwwh3z1 fyvr11g0"},active:{true:"nwwh3zb nwwh3z2 fyvr12w5",false:"nwwh3zc"},disabled:{true:"nwwh3zd nwwh3z3 fyvr12vp"}},defaultVariants:{},compoundVariants:[[{active:!0,variant:"pill"},"nwwh3z4 fyvr11u7 fyvr12sj"],[{active:!1,variant:"pill"},"nwwh3z5 fyvr11od fyvr12s7"],[{active:!0,variant:"line"},"nwwh3z6 fyvr12s1"],[{active:!1,variant:"line"},"nwwh3z7 fyvr12s7"]]});var o5="Tabs",[NZ,Hde]=Dr(o5,[gd]),$9=gd(),[_Z,a5]=NZ(o5),MZ=m.forwardRef((t,e)=>{const{__scopeTabs:r,value:n,onValueChange:s,defaultValue:i,orientation:o="horizontal",dir:a,activationMode:c="automatic",...l}=t,u=c1(a),[f,d]=is({prop:n,onChange:s,defaultProp:i});return E.jsx(_Z,{scope:r,baseId:es(),value:f,onValueChange:d,orientation:o,dir:u,activationMode:c,children:E.jsx(Ae.div,{dir:u,"data-orientation":o,...l,ref:e})})});MZ.displayName=o5;var W9="TabsList",DZ=m.forwardRef((t,e)=>{const{__scopeTabs:r,loop:n=!0,...s}=t,i=a5(W9,r),o=$9(r);return E.jsx(DE,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:n,children:E.jsx(Ae.div,{role:"tablist","aria-orientation":i.orientation,...s,ref:e})})});DZ.displayName=W9;var V9="TabsTrigger",BZ=m.forwardRef((t,e)=>{const{__scopeTabs:r,value:n,disabled:s=!1,...i}=t,o=a5(V9,r),a=$9(r),c=z9(o.baseId,n),l=G9(o.baseId,n),u=n===o.value;return E.jsx(BE,{asChild:!0,...a,focusable:!s,active:u,children:E.jsx(Ae.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:c,...i,ref:e,onMouseDown:ce(t.onMouseDown,f=>{!s&&f.button===0&&f.ctrlKey===!1?o.onValueChange(n):f.preventDefault()}),onKeyDown:ce(t.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&o.onValueChange(n)}),onFocus:ce(t.onFocus,()=>{const f=o.activationMode!=="manual";!u&&!s&&f&&o.onValueChange(n)})})})});BZ.displayName=V9;var H9="TabsContent",LZ=m.forwardRef((t,e)=>{const{__scopeTabs:r,value:n,forceMount:s,children:i,...o}=t,a=a5(H9,r),c=z9(a.baseId,n),l=G9(a.baseId,n),u=n===a.value,f=m.useRef(u);return m.useEffect(()=>{const d=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(d)},[]),E.jsx(Xr,{present:s||u,children:({present:d})=>E.jsx(Ae.div,{"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":c,hidden:!d,id:l,tabIndex:0,...o,ref:e,style:{...t.style,animationDuration:f.current?"0s":void 0},children:d&&i})})});LZ.displayName=H9;function z9(t,e){return`${t}-trigger-${e}`}function G9(t,e){return`${t}-content-${e}`}var jZ="_1ppqbnx1 _1qxj1ib9 _1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc _1ppqbnx0 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1wo fyvr1yk fyvr1ss fyvr1uo fyvr11hc fyvr118c fyvr11n9";m.forwardRef((t,e)=>{const{icon:r,label:n,...s}=t;return E.jsxs(me,{className:jZ,ref:e,background:"buttonGlass",color:"text80",...s,children:[r&&E.jsx(r,{size:"xs"}),E.jsx(Tt,{children:n})]})});var FZ="ToastProvider",[q9,UZ,$Z]=dg("Toast"),[K9,zde]=Dr("Toast",[$Z]),[Gde,kg]=K9(FZ),Q9="ToastViewport",WZ=["F8"],ww="toast.viewportPause",Cw="toast.viewportResume",VZ=m.forwardRef((t,e)=>{const{__scopeToast:r,hotkey:n=WZ,label:s="Notifications ({hotkey})",...i}=t,o=kg(Q9,r),a=UZ(r),c=m.useRef(null),l=m.useRef(null),u=m.useRef(null),f=m.useRef(null),d=$e(e,f,o.onViewportChange),h=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=o.toastCount>0;m.useEffect(()=>{const b=v=>{var g;n.every(k=>v[k]||v.code===k)&&((g=f.current)==null||g.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[n]),m.useEffect(()=>{const b=c.current,v=f.current;if(y&&b&&v){const g=()=>{if(!o.isClosePausedRef.current){const I=new CustomEvent(ww);v.dispatchEvent(I),o.isClosePausedRef.current=!0}},x=()=>{if(o.isClosePausedRef.current){const I=new CustomEvent(Cw);v.dispatchEvent(I),o.isClosePausedRef.current=!1}},k=I=>{!b.contains(I.relatedTarget)&&x()},S=()=>{b.contains(document.activeElement)||x()};return b.addEventListener("focusin",g),b.addEventListener("focusout",k),b.addEventListener("pointermove",g),b.addEventListener("pointerleave",S),window.addEventListener("blur",g),window.addEventListener("focus",x),()=>{b.removeEventListener("focusin",g),b.removeEventListener("focusout",k),b.removeEventListener("pointermove",g),b.removeEventListener("pointerleave",S),window.removeEventListener("blur",g),window.removeEventListener("focus",x)}}},[y,o.isClosePausedRef]);const p=m.useCallback(({tabbingDirection:b})=>{const g=a().map(x=>{const k=x.ref.current,S=[k,...oee(k)];return b==="forwards"?S:S.reverse()});return(b==="forwards"?g.reverse():g).flat()},[a]);return m.useEffect(()=>{const b=f.current;if(b){const v=g=>{var x,k,S;const I=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!I){const _=document.activeElement,V=g.shiftKey;if(g.target===b&&V){(x=l.current)==null||x.focus();return}const re=p({tabbingDirection:V?"backwards":"forwards"}),le=re.findIndex(ee=>ee===_);vx(re.slice(le+1))?g.preventDefault():V?(k=l.current)==null||k.focus():(S=u.current)==null||S.focus()}};return b.addEventListener("keydown",v),()=>b.removeEventListener("keydown",v)}},[a,p]),E.jsxs(tK,{ref:c,role:"region","aria-label":s.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&E.jsx(Ew,{ref:l,onFocusFromOutsideViewport:()=>{const b=p({tabbingDirection:"forwards"});vx(b)}}),E.jsx(q9.Slot,{scope:r,children:E.jsx(Ae.ol,{tabIndex:-1,...i,ref:d})}),y&&E.jsx(Ew,{ref:u,onFocusFromOutsideViewport:()=>{const b=p({tabbingDirection:"backwards"});vx(b)}})]})});VZ.displayName=Q9;var J9="ToastFocusProxy",Ew=m.forwardRef((t,e)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...s}=t,i=kg(J9,r);return E.jsx(h1,{"aria-hidden":!0,tabIndex:0,...s,ref:e,style:{position:"fixed"},onFocus:o=>{var a;const c=o.relatedTarget;!((a=i.viewport)!=null&&a.contains(c))&&n()}})});Ew.displayName=J9;var Ag="Toast",HZ="toast.swipeStart",zZ="toast.swipeMove",GZ="toast.swipeCancel",qZ="toast.swipeEnd",KZ=m.forwardRef((t,e)=>{const{forceMount:r,open:n,defaultOpen:s,onOpenChange:i,...o}=t,[a=!0,c]=is({prop:n,defaultProp:s,onChange:i});return E.jsx(Xr,{present:r||a,children:E.jsx(YZ,{open:a,...o,ref:e,onClose:()=>c(!1),onPause:_r(t.onPause),onResume:_r(t.onResume),onSwipeStart:ce(t.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ce(t.onSwipeMove,l=>{const{x:u,y:f}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","move"),l.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:ce(t.onSwipeCancel,l=>{l.currentTarget.setAttribute("data-swipe","cancel"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ce(t.onSwipeEnd,l=>{const{x:u,y:f}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","end"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),c(!1)})})})});KZ.displayName=Ag;var[QZ,JZ]=K9(Ag,{onClose(){}}),YZ=m.forwardRef((t,e)=>{const{__scopeToast:r,type:n="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:c,onResume:l,onSwipeStart:u,onSwipeMove:f,onSwipeCancel:d,onSwipeEnd:h,...y}=t,p=kg(Ag,r),[b,v]=m.useState(null),g=$e(e,ee=>v(ee)),x=m.useRef(null),k=m.useRef(null),S=s||p.duration,I=m.useRef(0),R=m.useRef(S),_=m.useRef(0),{onToastAdd:V,onToastRemove:F}=p,X=_r(()=>{var ee;(b==null?void 0:b.contains(document.activeElement))&&((ee=p.viewport)==null||ee.focus()),o()}),re=m.useCallback(ee=>{!ee||ee===1/0||(window.clearTimeout(_.current),I.current=new Date().getTime(),_.current=window.setTimeout(X,ee))},[X]);m.useEffect(()=>{const ee=p.viewport;if(ee){const D=()=>{re(R.current),l==null||l()},G=()=>{const Z=new Date().getTime()-I.current;R.current=R.current-Z,window.clearTimeout(_.current),c==null||c()};return ee.addEventListener(ww,G),ee.addEventListener(Cw,D),()=>{ee.removeEventListener(ww,G),ee.removeEventListener(Cw,D)}}},[p.viewport,S,c,l,re]),m.useEffect(()=>{i&&!p.isClosePausedRef.current&&re(S)},[i,S,p.isClosePausedRef,re]),m.useEffect(()=>(V(),()=>F()),[V,F]);const le=m.useMemo(()=>b?tR(b):null,[b]);return p.viewport?E.jsxs(E.Fragment,{children:[le&&E.jsx(XZ,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:le}),E.jsx(QZ,{scope:r,onClose:X,children:Fa.createPortal(E.jsx(q9.ItemSlot,{scope:r,children:E.jsx(eK,{asChild:!0,onEscapeKeyDown:ce(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||X(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:E.jsx(Ae.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":p.swipeDirection,...y,ref:g,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:ce(t.onKeyDown,ee=>{ee.key==="Escape"&&(a==null||a(ee.nativeEvent),ee.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,X()))}),onPointerDown:ce(t.onPointerDown,ee=>{ee.button===0&&(x.current={x:ee.clientX,y:ee.clientY})}),onPointerMove:ce(t.onPointerMove,ee=>{if(!x.current)return;const D=ee.clientX-x.current.x,G=ee.clientY-x.current.y,Z=!!k.current,C=["left","right"].includes(p.swipeDirection),A=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,O=C?A(0,D):0,M=C?0:A(0,G),B=ee.pointerType==="touch"?10:2,W={x:O,y:M},q={originalEvent:ee,delta:W};Z?(k.current=W,ip(zZ,f,q,{discrete:!1})):$S(W,p.swipeDirection,B)?(k.current=W,ip(HZ,u,q,{discrete:!1}),ee.target.setPointerCapture(ee.pointerId)):(Math.abs(D)>B||Math.abs(G)>B)&&(x.current=null)}),onPointerUp:ce(t.onPointerUp,ee=>{const D=k.current,G=ee.target;if(G.hasPointerCapture(ee.pointerId)&&G.releasePointerCapture(ee.pointerId),k.current=null,x.current=null,D){const Z=ee.currentTarget,C={originalEvent:ee,delta:D};$S(D,p.swipeDirection,p.swipeThreshold)?ip(qZ,h,C,{discrete:!0}):ip(GZ,d,C,{discrete:!0}),Z.addEventListener("click",A=>A.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),XZ=t=>{const{__scopeToast:e,children:r,...n}=t,s=kg(Ag,e),[i,o]=m.useState(!1),[a,c]=m.useState(!1);return see(()=>o(!0)),m.useEffect(()=>{const l=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(l)},[]),a?null:E.jsx(u1,{asChild:!0,children:E.jsx(h1,{...n,children:i&&E.jsxs(E.Fragment,{children:[s.label," ",r]})})})},ZZ="ToastTitle",eee=m.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return E.jsx(Ae.div,{...n,ref:e})});eee.displayName=ZZ;var tee="ToastDescription",ree=m.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return E.jsx(Ae.div,{...n,ref:e})});ree.displayName=tee;var Y9="ToastAction",nee=m.forwardRef((t,e)=>{const{altText:r,...n}=t;return r.trim()?E.jsx(eR,{altText:r,asChild:!0,children:E.jsx(Z9,{...n,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${Y9}\`. Expected non-empty \`string\`.`),null)});nee.displayName=Y9;var X9="ToastClose",Z9=m.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t,s=JZ(X9,r);return E.jsx(eR,{asChild:!0,children:E.jsx(Ae.button,{type:"button",...n,ref:e,onClick:ce(t.onClick,s.onClose)})})});Z9.displayName=X9;var eR=m.forwardRef((t,e)=>{const{__scopeToast:r,altText:n,...s}=t;return E.jsx(Ae.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:e})});function tR(t){const e=[];return Array.from(t.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&e.push(n.textContent),iee(n)){const s=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=n.dataset.radixToastAnnounceAlt;o&&e.push(o)}else e.push(...tR(n))}}),e}function ip(t,e,r,{discrete:n}){const s=r.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r});e&&s.addEventListener(t,e,{once:!0}),n?yE(s,i):s.dispatchEvent(i)}var $S=(t,e,r=0)=>{const n=Math.abs(t.x),s=Math.abs(t.y),i=n>s;return e==="left"||e==="right"?i&&n>r:!i&&s>r};function see(t=()=>{}){const e=_r(t);xr(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[e])}function iee(t){return t.nodeType===t.ELEMENT_NODE}function oee(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function vx(t){const e=document.activeElement;return t.some(r=>r===e?!0:(r.focus(),document.activeElement!==e))}At({defaultClassName:"_6wut8v3",variantClassNames:{variant:{normal:"_6wut8v4",success:"_6wut8v5",error:"_6wut8v6"}},defaultVariants:{},compoundVariants:[]});m.createContext(null);var aee="_15pztn1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _15pztn0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11od fyvr12s1 fyvr12o1 fyvr12wj fyvr128 fyvr11h0",cee="_15pztn2";m.forwardRef((t,e)=>{const{as:r="textarea",autoComplete:n="off",borderRadius:s="md",description:i,disabled:o=!1,id:a,label:c="",labelLocation:l="hidden",name:u,rows:f,resize:d=!1,...h}=t;return E.jsx(fd,{description:i,disabled:o,display:"grid",id:a??u,label:c,labelLocation:l,children:E.jsx(me,{as:r,autoComplete:n,spellCheck:"false",className:Mr(aee,d&&cee),disabled:o,id:a??u,name:u,ref:e,rows:f,borderRadius:s,...h})})});var lee=At({defaultClassName:"_18h918k5 _18h918k0 fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11h0",variantClassNames:{size:{xs:"_18h918k6",sm:"_18h918k7",md:"_18h918k8",lg:"_18h918k9",xl:"_18h918ka"},borderRadius:{circle:"_18h918kb _18h918k1 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",lg:"_18h918kc _18h918k2 fyvr11d8 fyvr11dw fyvr11bw fyvr11ck",md:"_18h918kd _18h918k3 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg",sm:"_18h918ke _18h918k4 fyvr11d0 fyvr11do fyvr11bo fyvr11cc"}},defaultVariants:{},compoundVariants:[]}),uee="_18h918kf";const fee=m.memo(t=>{const{chainId:e,borderRadius:r="circle",className:n,disableAnimation:s=!1,style:i,src:o,size:a="md",...c}=t,l=o||GG(qG(e),a);return E.jsx(me,{className:Mr(n,lee({borderRadius:r,size:a})),style:i,flexShrink:"0",...c,children:E.jsx(qE,{className:uee,disableAnimation:s,src:l})})});var dee=At({defaultClassName:"bnrreb1 bnrreb0 fyvr11jg fyvr11ko fyvr11hw fyvr11h0",variantClassNames:{size:{xs:"bnrreb2",sm:"bnrreb3",md:"bnrreb4",lg:"bnrreb5",xl:"bnrreb6"}},defaultVariants:{},compoundVariants:[]}),hee="bnrreb7",pee="bnrreb9 bnrreb8 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11sj fyvr128 fyvr15o fyvr11h0";const yee=m.memo(t=>{const{borderRadius:e="circle",className:r,disableAnimation:n=!1,style:s,src:i,symbol:o,size:a="md",withNetwork:c,...l}=t;return E.jsxs(me,{className:Mr(r,dee({size:a})),style:s,flexShrink:"0",...l,children:[i?E.jsx(qE,{className:hee,disableAnimation:n,borderRadius:e,overflow:"hidden",src:i}):E.jsx(Tt,{className:pee,variant:"normal",fontWeight:"medium",color:"text50",borderRadius:e,overflow:"hidden",uppercase:!0,children:o==null?void 0:o.replace(/\s/,"").slice(0,4)}),c&&E.jsx(me,{position:"absolute",zIndex:"1",borderRadius:"circle",borderWidth:"thin",borderStyle:"solid",borderColor:"backgroundPrimary",background:"backgroundPrimary",placeItems:"center",style:{width:18,height:18,right:-2,bottom:-2},children:E.jsx(fee,{chainId:c,style:{width:16,height:16}})})]})});var[Sg,qde]=Dr("Tooltip",[vd]),Tg=vd(),rR="TooltipProvider",vee=700,kw="tooltip.open",[gee,c5]=Sg(rR),mee=t=>{const{__scopeTooltip:e,delayDuration:r=vee,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:i}=t,[o,a]=m.useState(!0),c=m.useRef(!1),l=m.useRef(0);return m.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),E.jsx(gee,{scope:e,isOpenDelayed:o,delayDuration:r,onOpen:m.useCallback(()=>{window.clearTimeout(l.current),a(!1)},[]),onClose:m.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a(!0),n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:m.useCallback(u=>{c.current=u},[]),disableHoverableContent:s,children:i})};mee.displayName=rR;var Pg="Tooltip",[xee,y1]=Sg(Pg),bee=t=>{const{__scopeTooltip:e,children:r,open:n,defaultOpen:s=!1,onOpenChange:i,disableHoverableContent:o,delayDuration:a}=t,c=c5(Pg,t.__scopeTooltip),l=Tg(e),[u,f]=m.useState(null),d=es(),h=m.useRef(0),y=o??c.disableHoverableContent,p=a??c.delayDuration,b=m.useRef(!1),[v=!1,g]=is({prop:n,defaultProp:s,onChange:R=>{R?(c.onOpen(),document.dispatchEvent(new CustomEvent(kw))):c.onClose(),i==null||i(R)}}),x=m.useMemo(()=>v?b.current?"delayed-open":"instant-open":"closed",[v]),k=m.useCallback(()=>{window.clearTimeout(h.current),b.current=!1,g(!0)},[g]),S=m.useCallback(()=>{window.clearTimeout(h.current),g(!1)},[g]),I=m.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,g(!0)},p)},[p,g]);return m.useEffect(()=>()=>window.clearTimeout(h.current),[]),E.jsx(RE,{...l,children:E.jsx(xee,{scope:e,contentId:d,open:v,stateAttribute:x,trigger:u,onTriggerChange:f,onTriggerEnter:m.useCallback(()=>{c.isOpenDelayed?I():k()},[c.isOpenDelayed,I,k]),onTriggerLeave:m.useCallback(()=>{y?S():window.clearTimeout(h.current)},[S,y]),onOpen:k,onClose:S,disableHoverableContent:y,children:r})})};bee.displayName=Pg;var Aw="TooltipTrigger",wee=m.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,s=y1(Aw,r),i=c5(Aw,r),o=Tg(r),a=m.useRef(null),c=$e(e,a,s.onTriggerChange),l=m.useRef(!1),u=m.useRef(!1),f=m.useCallback(()=>l.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),E.jsx(NE,{asChild:!0,...o,children:E.jsx(Ae.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:c,onPointerMove:ce(t.onPointerMove,d=>{d.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:ce(t.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:ce(t.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ce(t.onFocus,()=>{l.current||s.onOpen()}),onBlur:ce(t.onBlur,s.onClose),onClick:ce(t.onClick,s.onClose)})})});wee.displayName=Aw;var l5="TooltipPortal",[Cee,Eee]=Sg(l5,{forceMount:void 0}),kee=t=>{const{__scopeTooltip:e,forceMount:r,children:n,container:s}=t,i=y1(l5,e);return E.jsx(Cee,{scope:e,forceMount:r,children:E.jsx(Xr,{present:r||i.open,children:E.jsx(u1,{asChild:!0,container:s,children:n})})})};kee.displayName=l5;var Wf="TooltipContent",Aee=m.forwardRef((t,e)=>{const r=Eee(Wf,t.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...i}=t,o=y1(Wf,t.__scopeTooltip);return E.jsx(Xr,{present:n||o.open,children:o.disableHoverableContent?E.jsx(nR,{side:s,...i,ref:e}):E.jsx(See,{side:s,...i,ref:e})})}),See=m.forwardRef((t,e)=>{const r=y1(Wf,t.__scopeTooltip),n=c5(Wf,t.__scopeTooltip),s=m.useRef(null),i=$e(e,s),[o,a]=m.useState(null),{trigger:c,onClose:l}=r,u=s.current,{onPointerInTransitChange:f}=n,d=m.useCallback(()=>{a(null),f(!1)},[f]),h=m.useCallback((y,p)=>{const b=y.currentTarget,v={x:y.clientX,y:y.clientY},g=Oee(v,b.getBoundingClientRect()),x=Ree(v,g),k=Nee(p.getBoundingClientRect()),S=Mee([...x,...k]);a(S),f(!0)},[f]);return m.useEffect(()=>()=>d(),[d]),m.useEffect(()=>{if(c&&u){const y=b=>h(b,u),p=b=>h(b,c);return c.addEventListener("pointerleave",y),u.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",y),u.removeEventListener("pointerleave",p)}}},[c,u,h,d]),m.useEffect(()=>{if(o){const y=p=>{const b=p.target,v={x:p.clientX,y:p.clientY},g=(c==null?void 0:c.contains(b))||(u==null?void 0:u.contains(b)),x=!_ee(v,o);g?d():x&&(d(),l())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[c,u,o,l,d]),E.jsx(nR,{...t,ref:i})}),[Tee,Pee]=Sg(Pg,{isInside:!1}),nR=m.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=t,c=y1(Wf,r),l=Tg(r),{onClose:u}=c;return m.useEffect(()=>(document.addEventListener(kw,u),()=>document.removeEventListener(kw,u)),[u]),m.useEffect(()=>{if(c.trigger){const f=d=>{const h=d.target;h!=null&&h.contains(c.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,u]),E.jsx(hd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:E.jsxs(_E,{"data-state":c.stateAttribute,...l,...a,ref:e,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[E.jsx(yI,{children:n}),E.jsx(Tee,{scope:r,isInside:!0,children:E.jsx(WX,{id:c.contentId,role:"tooltip",children:s||n})})]})})});Aee.displayName=Wf;var sR="TooltipArrow",Iee=m.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,s=Tg(r);return Pee(sR,r).isInside?null:E.jsx(ME,{...s,...n,ref:e})});Iee.displayName=sR;function Oee(t,e){const r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),s=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(r,n,s,i)){case i:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Ree(t,e,r=5){const n=[];switch(e){case"top":n.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":n.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":n.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":n.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return n}function Nee(t){const{top:e,right:r,bottom:n,left:s}=t;return[{x:s,y:e},{x:r,y:e},{x:r,y:n},{x:s,y:n}]}function _ee(t,e){const{x:r,y:n}=t;let s=!1;for(let i=0,o=e.length-1;in!=u>n&&r<(l-a)*(n-c)/(u-c)+a&&(s=!s)}return s}function Mee(t){const e=t.slice();return e.sort((r,n)=>r.xn.x?1:r.yn.y?1:0),Dee(e)}function Dee(t){if(t.length<=1)return t.slice();const e=[];for(let n=0;n=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))e.pop();else break}e.push(s)}e.pop();const r=[];for(let n=t.length-1;n>=0;n--){const s=t[n];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))r.pop();else break}r.push(s)}return r.pop(),e.length===1&&r.length===1&&e[0].x===r[0].x&&e[0].y===r[0].y?e:e.concat(r)}var iR,WS=Fa;iR=WS.createRoot,WS.hydrateRoot;const u5="6.13.2";function Bee(t,e,r){const n=e.split("|").map(i=>i.trim());for(let i=0;iPromise.resolve(t[n])))).reduce((n,s,i)=>(n[e[i]]=s,n),{})}function fe(t,e,r){for(let n in e){let s=e[n];const i=r?r[n]:null;i&&Bee(s,i,n),Object.defineProperty(t,n,{enumerable:!0,value:s,writable:!1})}}function du(t){if(t==null)return"null";if(Array.isArray(t))return"[ "+t.map(du).join(", ")+" ]";if(t instanceof Uint8Array){const e="0123456789abcdef";let r="0x";for(let n=0;n>4],r+=e[t[n]&15];return r}if(typeof t=="object"&&typeof t.toJSON=="function")return du(t.toJSON());switch(typeof t){case"boolean":case"symbol":return t.toString();case"bigint":return BigInt(t).toString();case"number":return t.toString();case"string":return JSON.stringify(t);case"object":{const e=Object.keys(t);return e.sort(),"{ "+e.map(r=>`${du(r)}: ${du(t[r])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function Ht(t,e){return t&&t.code===e}function Ig(t){return Ht(t,"CALL_EXCEPTION")}function ft(t,e,r){let n=t;{const i=[];if(r){if("message"in r||"code"in r||"name"in r)throw new Error(`value will overwrite populated values: ${du(r)}`);for(const o in r){if(o==="shortMessage")continue;const a=r[o];i.push(o+"="+du(a))}}i.push(`code=${e}`),i.push(`version=${u5}`),i.length&&(t+=" ("+i.join(", ")+")")}let s;switch(e){case"INVALID_ARGUMENT":s=new TypeError(t);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":s=new RangeError(t);break;default:s=new Error(t)}return fe(s,{code:e}),r&&Object.assign(s,r),s.shortMessage==null&&fe(s,{shortMessage:n}),s}function z(t,e,r,n){if(!t)throw ft(e,r,n)}function P(t,e,r,n){z(t,e,"INVALID_ARGUMENT",{argument:r,value:n})}function f5(t,e,r){r==null&&(r=""),r&&(r=": "+r),z(t>=e,"missing arguemnt"+r,"MISSING_ARGUMENT",{count:t,expectedCount:e}),z(t<=e,"too many arguments"+r,"UNEXPECTED_ARGUMENT",{count:t,expectedCount:e})}const Lee=["NFD","NFC","NFKD","NFKC"].reduce((t,e)=>{try{if("test".normalize(e)!=="test")throw new Error("bad");if(e==="NFD"&&"é".normalize("NFD")!=="é")throw new Error("broken");t.push(e)}catch{}return t},[]);function d5(t){z(Lee.indexOf(t)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:t}})}function yo(t,e,r){if(r==null&&(r=""),t!==e){let n=r,s="new";r&&(n+=".",s+=" "+r),z(!1,`private constructor; use ${n}from* methods`,"UNSUPPORTED_OPERATION",{operation:s})}}function oR(t,e,r){if(t instanceof Uint8Array)return r?new Uint8Array(t):t;if(typeof t=="string"&&t.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)){const n=new Uint8Array((t.length-2)/2);let s=2;for(let i=0;i>4]+VS[s&15]}return r}function Le(t){return"0x"+t.map(e=>H(e).substring(2)).join("")}function ba(t){return et(t,!0)?(t.length-2)/2:Q(t).length}function st(t,e,r){const n=Q(t);return r!=null&&r>n.length&&z(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:n,length:n.length,offset:r}),H(n.slice(e??0,r??n.length))}function jee(t){let e=H(t).substring(2);for(;e.startsWith("00");)e=e.substring(2);return"0x"+e}function aR(t,e,r){const n=Q(t);z(e>=n.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(n),length:e,offset:e+1});const s=new Uint8Array(e);return s.fill(0),r?s.set(n,e-n.length):s.set(n,0),H(s)}function rs(t,e){return aR(t,e,!0)}function Og(t,e){return aR(t,e,!1)}const Rg=BigInt(0),ks=BigInt(1),hu=9007199254740991;function p0(t,e){const r=v1(t,"value"),n=BigInt(Pe(e,"width"));if(z(r>>n===Rg,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:t}),r>>n-ks){const s=(ks<=-hu&&t<=hu,"overflow",e||"value",t),BigInt(t);case"string":try{if(t==="")throw new Error("empty string");return t[0]==="-"&&t[1]!=="-"?-BigInt(t.substring(1)):BigInt(t)}catch(r){P(!1,`invalid BigNumberish string: ${r.message}`,e||"value",t)}}P(!1,"invalid BigNumberish value",e||"value",t)}function v1(t,e){const r=ve(t,e);return z(r>=Rg,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:t}),r}const HS="0123456789abcdef";function xd(t){if(t instanceof Uint8Array){let e="0x0";for(const r of t)e+=HS[r>>4],e+=HS[r&15];return BigInt(e)}return ve(t)}function Pe(t,e){switch(typeof t){case"bigint":return P(t>=-hu&&t<=hu,"overflow",e||"value",t),Number(t);case"number":return P(Number.isInteger(t),"underflow",e||"value",t),P(t>=-hu&&t<=hu,"overflow",e||"value",t),t;case"string":try{if(t==="")throw new Error("empty string");return Pe(BigInt(t),e)}catch(r){P(!1,`invalid numeric string: ${r.message}`,e||"value",t)}}P(!1,"invalid numeric value",e||"value",t)}function cR(t){return Pe(xd(t))}function In(t,e){let n=v1(t,"value").toString(16);if(e==null)n.length%2&&(n="0"+n);else{const s=Pe(e,"width");for(z(s*2>=n.length,`value exceeds width (${s} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:t});n.length>6===2;o++)i++;return i}return t==="OVERRUN"?r.length-e-1:0}function Wee(t,e,r,n,s){return t==="OVERLONG"?(P(typeof s=="number","invalid bad code point for replacement","badCodepoint",s),n.push(s),0):(n.push(65533),dR(t,e,r))}const hR=Object.freeze({error:$ee,ignore:dR,replace:Wee});function pR(t,e){e==null&&(e=hR.error);const r=Q(t,"bytes"),n=[];let s=0;for(;s>7)){n.push(i);continue}let o=null,a=null;if((i&224)===192)o=1,a=127;else if((i&240)===224)o=2,a=2047;else if((i&248)===240)o=3,a=65535;else{(i&192)===128?s+=e("UNEXPECTED_CONTINUE",s-1,r,n):s+=e("BAD_PREFIX",s-1,r,n);continue}if(s-1+o>=r.length){s+=e("OVERRUN",s-1,r,n);continue}let c=i&(1<<8-o-1)-1;for(let l=0;l1114111){s+=e("OUT_OF_RANGE",s-1-o,r,n,c);continue}if(c>=55296&&c<=57343){s+=e("UTF16_SURROGATE",s-1-o,r,n,c);continue}if(c<=a){s+=e("OVERLONG",s-1-o,r,n,c);continue}n.push(c)}}return n}function mt(t,e){P(typeof t=="string","invalid string value","str",t),e!=null&&(d5(e),t=t.normalize(e));let r=[];for(let n=0;n>6|192),r.push(s&63|128);else if((s&64512)==55296){n++;const i=t.charCodeAt(n);P(n>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(o&63|128)}else r.push(s>>12|224),r.push(s>>6&63|128),r.push(s&63|128)}return new Uint8Array(r)}function Vee(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function Ds(t,e){return Vee(pR(t,e))}function Hee(t,e){return pR(mt(t,e))}function yR(t){async function e(r,n){z(n==null||!n.cancelled,"request cancelled before sending","CANCELLED");const s=r.url.split(":")[0].toLowerCase();z(s==="http"||s==="https",`unsupported protocol ${s}`,"UNSUPPORTED_OPERATION",{info:{protocol:s},operation:"request"}),z(s==="https"||!r.credentials||r.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let i=null;const o=new AbortController,a=setTimeout(()=>{i=ft("request timeout","TIMEOUT"),o.abort()},r.timeout);n&&n.addListener(()=>{i=ft("request cancelled","CANCELLED"),o.abort()});const c={method:r.method,headers:new Headers(Array.from(r)),body:r.body||void 0,signal:o.signal};let l;try{l=await fetch(r.url,c)}catch(h){throw clearTimeout(a),i||h}clearTimeout(a);const u={};l.headers.forEach((h,y)=>{u[y.toLowerCase()]=h});const f=await l.arrayBuffer(),d=f==null?null:new Uint8Array(f);return{statusCode:l.status,statusMessage:l.statusText,headers:u,body:d}}return e}const zee=12,Gee=250;let zS=yR();const qee=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),Kee=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let gx=!1;async function vR(t,e){try{const r=t.match(qee);if(!r)throw new Error("invalid data");return new Zi(200,"OK",{"content-type":r[1]||"text/plain"},r[2]?uR(r[3]):Qee(r[3]))}catch{return new Zi(599,"BAD REQUEST (invalid data: URI)",{},null,new qt(t))}}function gR(t){async function e(r,n){try{const s=r.match(Kee);if(!s)throw new Error("invalid link");return new qt(`${t}${s[2]}`)}catch{return new Zi(599,"BAD REQUEST (invalid IPFS URI)",{},null,new qt(r))}}return e}const ap={data:vR,ipfs:gR("https://gateway.ipfs.io/ipfs/")},mR=new WeakMap;var Ec,Fo;class xR{constructor(e){j(this,Ec);j(this,Fo);T(this,Ec,[]),T(this,Fo,!1),mR.set(e,()=>{if(!w(this,Fo)){T(this,Fo,!0);for(const r of w(this,Ec))setTimeout(()=>{r()},0);T(this,Ec,[])}})}addListener(e){z(!w(this,Fo),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),w(this,Ec).push(e)}get cancelled(){return w(this,Fo)}checkSignal(){z(!this.cancelled,"cancelled","CANCELLED",{})}}Ec=new WeakMap,Fo=new WeakMap;function cp(t){if(t==null)throw new Error("missing signal; should not happen");return t.checkSignal(),t}var Uu,$u,vs,Oi,Wu,Vu,Jt,xn,Ri,kc,Ac,Sc,Qs,gs,Uo,Tc,eh;const Rv=class Rv{constructor(e){j(this,Tc);j(this,Uu);j(this,$u);j(this,vs);j(this,Oi);j(this,Wu);j(this,Vu);j(this,Jt);j(this,xn);j(this,Ri);j(this,kc);j(this,Ac);j(this,Sc);j(this,Qs);j(this,gs);j(this,Uo);T(this,Vu,String(e)),T(this,Uu,!1),T(this,$u,!0),T(this,vs,{}),T(this,Oi,""),T(this,Wu,3e5),T(this,gs,{slotInterval:Gee,maxAttempts:zee}),T(this,Uo,null)}get url(){return w(this,Vu)}set url(e){T(this,Vu,String(e))}get body(){return w(this,Jt)==null?null:new Uint8Array(w(this,Jt))}set body(e){if(e==null)T(this,Jt,void 0),T(this,xn,void 0);else if(typeof e=="string")T(this,Jt,mt(e)),T(this,xn,"text/plain");else if(e instanceof Uint8Array)T(this,Jt,e),T(this,xn,"application/octet-stream");else if(typeof e=="object")T(this,Jt,mt(JSON.stringify(e))),T(this,xn,"application/json");else throw new Error("invalid body")}hasBody(){return w(this,Jt)!=null}get method(){return w(this,Oi)?w(this,Oi):this.hasBody()?"POST":"GET"}set method(e){e==null&&(e=""),T(this,Oi,String(e).toUpperCase())}get headers(){const e=Object.assign({},w(this,vs));return w(this,Ri)&&(e.authorization=`Basic ${fR(mt(w(this,Ri)))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),e["content-type"]==null&&w(this,xn)&&(e["content-type"]=w(this,xn)),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,r){w(this,vs)[String(e).toLowerCase()]=String(r)}clearHeaders(){T(this,vs,{})}[Symbol.iterator](){const e=this.headers,r=Object.keys(e);let n=0;return{next:()=>{if(n=0,"timeout must be non-zero","timeout",e),T(this,Wu,e)}get preflightFunc(){return w(this,kc)||null}set preflightFunc(e){T(this,kc,e)}get processFunc(){return w(this,Ac)||null}set processFunc(e){T(this,Ac,e)}get retryFunc(){return w(this,Sc)||null}set retryFunc(e){T(this,Sc,e)}get getUrlFunc(){return w(this,Uo)||zS}set getUrlFunc(e){T(this,Uo,e)}toString(){return``}setThrottleParams(e){e.slotInterval!=null&&(w(this,gs).slotInterval=e.slotInterval),e.maxAttempts!=null&&(w(this,gs).maxAttempts=e.maxAttempts)}send(){return z(w(this,Qs)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),T(this,Qs,new xR(this)),Y(this,Tc,eh).call(this,0,GS()+this.timeout,0,this,new Zi(0,"",{},null,this))}cancel(){z(w(this,Qs)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=mR.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const r=this.url.split(":")[0].toLowerCase(),n=e.split(":")[0].toLowerCase();z(this.method==="GET"&&(r!=="https"||n!=="http")&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});const s=new Rv(e);return s.method="GET",s.allowGzip=this.allowGzip,s.timeout=this.timeout,T(s,vs,Object.assign({},w(this,vs))),w(this,Jt)&&T(s,Jt,new Uint8Array(w(this,Jt))),T(s,xn,w(this,xn)),s}clone(){const e=new Rv(this.url);return T(e,Oi,w(this,Oi)),w(this,Jt)&&T(e,Jt,w(this,Jt)),T(e,xn,w(this,xn)),T(e,vs,Object.assign({},w(this,vs))),T(e,Ri,w(this,Ri)),this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),T(e,kc,w(this,kc)),T(e,Ac,w(this,Ac)),T(e,Sc,w(this,Sc)),T(e,gs,Object.assign({},w(this,gs))),T(e,Uo,w(this,Uo)),e}static lockConfig(){gx=!0}static getGateway(e){return ap[e.toLowerCase()]||null}static registerGateway(e,r){if(e=e.toLowerCase(),e==="http"||e==="https")throw new Error(`cannot intercept ${e}; use registerGetUrl`);if(gx)throw new Error("gateways locked");ap[e]=r}static registerGetUrl(e){if(gx)throw new Error("gateways locked");zS=e}static createGetUrlFunc(e){return yR()}static createDataGateway(){return vR}static createIpfsGatewayFunc(e){return gR(e)}};Uu=new WeakMap,$u=new WeakMap,vs=new WeakMap,Oi=new WeakMap,Wu=new WeakMap,Vu=new WeakMap,Jt=new WeakMap,xn=new WeakMap,Ri=new WeakMap,kc=new WeakMap,Ac=new WeakMap,Sc=new WeakMap,Qs=new WeakMap,gs=new WeakMap,Uo=new WeakMap,Tc=new WeakSet,eh=async function(e,r,n,s,i){var u,f,d;if(e>=w(this,gs).maxAttempts)return i.makeServerError("exceeded maximum retry limit");z(GS()<=r,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:s}),n>0&&await Jee(n);let o=this.clone();const a=(o.url.split(":")[0]||"").toLowerCase();if(a in ap){const h=await ap[a](o.url,cp(w(s,Qs)));if(h instanceof Zi){let y=h;if(this.processFunc){cp(w(s,Qs));try{y=await this.processFunc(o,y)}catch(p){(p.throttle==null||typeof p.stall!="number")&&y.makeServerError("error in post-processing function",p).assertOk()}}return y}o=h}this.preflightFunc&&(o=await this.preflightFunc(o));const c=await this.getUrlFunc(o,cp(w(s,Qs)));let l=new Zi(c.statusCode,c.statusMessage,c.headers,c.body,s);if(l.statusCode===301||l.statusCode===302){try{const h=l.headers.location||"";return Y(u=o.redirect(h),Tc,eh).call(u,e+1,r,0,s,l)}catch{}return l}else if(l.statusCode===429&&(this.retryFunc==null||await this.retryFunc(o,l,e))){const h=l.headers["retry-after"];let y=w(this,gs).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return typeof h=="string"&&h.match(/^[1-9][0-9]*$/)&&(y=parseInt(h)),Y(f=o.clone(),Tc,eh).call(f,e+1,r,y,s,l)}if(this.processFunc){cp(w(s,Qs));try{l=await this.processFunc(o,l)}catch(h){(h.throttle==null||typeof h.stall!="number")&&l.makeServerError("error in post-processing function",h).assertOk();let y=w(this,gs).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return h.stall>=0&&(y=h.stall),Y(d=o.clone(),Tc,eh).call(d,e+1,r,y,s,l)}}return l};let qt=Rv;var D0,B0,L0,bn,Hu,Pc;const $k=class $k{constructor(e,r,n,s,i){j(this,D0);j(this,B0);j(this,L0);j(this,bn);j(this,Hu);j(this,Pc);T(this,D0,e),T(this,B0,r),T(this,L0,Object.keys(n).reduce((o,a)=>(o[a.toLowerCase()]=String(n[a]),o),{})),T(this,bn,s==null?null:new Uint8Array(s)),T(this,Hu,i||null),T(this,Pc,{message:""})}toString(){return``}get statusCode(){return w(this,D0)}get statusMessage(){return w(this,B0)}get headers(){return Object.assign({},w(this,L0))}get body(){return w(this,bn)==null?null:new Uint8Array(w(this,bn))}get bodyText(){try{return w(this,bn)==null?"":Ds(w(this,bn))}catch{z(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch{z(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const e=this.headers,r=Object.keys(e);let n=0;return{next:()=>{if(n=0,"invalid stall timeout","stall",r);const n=new Error(e||"throttling requests");throw fe(n,{stall:r,throttle:!0}),n}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return w(this,bn)!=null}get request(){return w(this,Hu)}ok(){return w(this,Pc).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:r}=w(this,Pc);e===""&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let n=null;this.request&&(n=this.request.url);let s=null;try{w(this,bn)&&(s=Ds(w(this,bn)))}catch{}z(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:r,info:{requestUrl:n,responseBody:s,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}};D0=new WeakMap,B0=new WeakMap,L0=new WeakMap,bn=new WeakMap,Hu=new WeakMap,Pc=new WeakMap;let Zi=$k;function GS(){return new Date().getTime()}function Qee(t){return mt(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,r)=>String.fromCharCode(parseInt(r,16))))}function Jee(t){return new Promise(e=>setTimeout(e,t))}const Yee=BigInt(-1),fs=BigInt(0),pu=BigInt(1),Xee=BigInt(5),Bl={};let Ou="0000";for(;Ou.length<80;)Ou+=Ou;function Ya(t){let e=Ou;for(;e.length=-s&&tfs?t=p0(ca(t,n),n):t=-p0(ca(-t,n),n)}else{const s=pu<=0&&ti[a]==null?l:(P(typeof i[a]===c,"invalid fixed format ("+a+" not "+c+")","format."+a,i[a]),i[a]);e=o("signed","boolean",e),r=o("width","number",r),n=o("decimals","number",n)}P(r%8===0,"invalid FixedNumber width (not byte aligned)","format.width",r),P(n<=80,"invalid FixedNumber decimals (too large)","format.decimals",n);const s=(e?"":"u")+"fixed"+String(r)+"x"+String(n);return{signed:e,width:r,decimals:n,name:s}}function Zee(t,e){let r="";t0?n*=Ya(s):s<0&&(r*=Ya(-s)),rn?1:0}eq(e){return this.cmp(e)===0}lt(e){return this.cmp(e)<0}lte(e){return this.cmp(e)<=0}gt(e){return this.cmp(e)>0}gte(e){return this.cmp(e)>=0}floor(){let e=w(this,nt);return w(this,nt)fs&&(e+=w(this,Lr)-pu),e=w(this,nt)/w(this,Lr)*w(this,Lr),Y(this,Xe,Ci).call(this,e,"ceiling")}round(e){if(e==null&&(e=0),e>=this.decimals)return this;const r=this.decimals-e,n=Xee*Ya(r-1);let s=this.value+n;const i=Ya(r);return s=s/i*i,Fd(s,w(this,ms),"round"),new Bo(Bl,s,w(this,ms))}isZero(){return w(this,nt)===fs}isNegative(){return w(this,nt)0){const c=Ya(a);z(o%c===fs,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),o/=c}else a<0&&(o*=Ya(-a));return Fd(o,i,"fromValue"),new Bo(Bl,o,i)}static fromString(e,r){const n=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);P(n&&n[2].length+n[3].length>0,"invalid FixedNumber string value","value",e);const s=mx(r);let i=n[2]||"0",o=n[3]||"";for(;o.length{z(n<=t.length,"data short segment too short","BUFFER_OVERRUN",{buffer:t,length:t.length,offset:n})};if(t[e]>=248){const n=t[e]-247;r(e+1+n);const s=qS(t,e+1,n);return r(e+1+n+s),KS(t,e,e+1+n,n+s)}else if(t[e]>=192){const n=t[e]-192;return r(e+1+n),KS(t,e,e+1,n)}else if(t[e]>=184){const n=t[e]-183;r(e+1+n);const s=qS(t,e+1,n);r(e+1+n+s);const i=H(t.slice(e+1+n,e+1+n+s));return{consumed:1+n+s,result:i}}else if(t[e]>=128){const n=t[e]-128;r(e+1+n);const s=H(t.slice(e+1,e+1+n));return{consumed:1+n,result:s}}return{consumed:1,result:ete(t[e])}}function g1(t){const e=Q(t,"data"),r=bR(e,0);return P(r.consumed===e.length,"unexpected junk after rlp payload","data",t),r.result}function QS(t){const e=[];for(;t;)e.unshift(t&255),t>>=8;return e}function wR(t){if(Array.isArray(t)){let n=[];if(t.forEach(function(i){n=n.concat(wR(i))}),n.length<=55)return n.unshift(192+n.length),n;const s=QS(n.length);return s.unshift(247+s.length),s.concat(n)}const e=Array.prototype.slice.call(Q(t,"object"));if(e.length===1&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const r=QS(e.length);return r.unshift(183+r.length),r.concat(e)}const JS="0123456789abcdef";function Na(t){let e="0x";for(const r of wR(t))e+=JS[r>>4],e+=JS[r&15];return e}const CR=["wei","kwei","mwei","gwei","szabo","finney","ether"];function ER(t,e){let r=18;if(typeof e=="string"){const n=CR.indexOf(e);P(n>=0,"invalid unit","unit",e),r=3*n}else e!=null&&(r=Pe(e,"unit"));return y0.fromValue(t,r,{decimals:r,width:512}).toString()}function nv(t,e){P(typeof t=="string","value must be a string","value",t);let r=18;if(typeof e=="string"){const n=CR.indexOf(e);P(n>=0,"invalid unit","unit",e),r=3*n}else e!=null&&(r=Pe(e,"unit"));return y0.fromString(t,{decimals:r,width:512}).value}function tte(t){return ER(t,18)}function Rw(t){return nv(t,18)}function kR(t){const e=Q(t,"randomBytes");e[6]=e[6]&15|64,e[8]=e[8]&63|128;const r=H(e);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}const Hr=32,Nw=new Uint8Array(Hr),rte=["then"],lp={},AR=new WeakMap;function ac(t){return AR.get(t)}function YS(t,e){AR.set(t,e)}function Ud(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);throw r.error=e,r}function _w(t,e,r){return t.indexOf(null)>=0?e.map((n,s)=>n instanceof pl?_w(ac(n),n,r):n):t.reduce((n,s,i)=>{let o=e.getValue(s);return s in n||(r&&o instanceof pl&&(o=_w(ac(o),o,r)),n[s]=o),n},{})}var zu;const gu=class gu extends Array{constructor(...r){const n=r[0];let s=r[1],i=(r[2]||[]).slice(),o=!0;n!==lp&&(s=r,i=[],o=!1);super(s.length);j(this,zu);s.forEach((l,u)=>{this[u]=l});const a=i.reduce((l,u)=>(typeof u=="string"&&l.set(u,(l.get(u)||0)+1),l),new Map);if(YS(this,Object.freeze(s.map((l,u)=>{const f=i[u];return f!=null&&a.get(f)===1?f:null}))),T(this,zu,[]),w(this,zu)==null&&w(this,zu),!o)return;Object.freeze(this);const c=new Proxy(this,{get:(l,u,f)=>{if(typeof u=="string"){if(u.match(/^[0-9]+$/)){const h=Pe(u,"%index");if(h<0||h>=this.length)throw new RangeError("out of result range");const y=l[h];return y instanceof Error&&Ud(`index ${h}`,y),y}if(rte.indexOf(u)>=0)return Reflect.get(l,u,f);const d=l[u];if(d instanceof Function)return function(...h){return d.apply(this===f?l:this,h)};if(!(u in l))return l.getValue.apply(this===f?l:this,[u])}return Reflect.get(l,u,f)}});return YS(c,ac(this)),c}toArray(r){const n=[];return this.forEach((s,i)=>{s instanceof Error&&Ud(`index ${i}`,s),r&&s instanceof gu&&(s=s.toArray(r)),n.push(s)}),n}toObject(r){const n=ac(this);return n.reduce((s,i,o)=>(z(i!=null,`value at index ${o} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),_w(n,this,r)),{})}slice(r,n){r==null&&(r=0),r<0&&(r+=this.length,r<0&&(r=0)),n==null&&(n=this.length),n<0&&(n+=this.length,n<0&&(n=0)),n>this.length&&(n=this.length);const s=ac(this),i=[],o=[];for(let a=r;a{w(this,Ni)[e]=XS(r)}}}Ni=new WeakMap,Ic=new WeakMap,Gu=new WeakSet,Hp=function(e){return w(this,Ni).push(e),T(this,Ic,w(this,Ic)+e.length),e.length};var rn,wn,Oc,Rc,$o,El,Bw,SR;const Wk=class Wk{constructor(e,r,n){j(this,El);N(this,"allowLoose");j(this,rn);j(this,wn);j(this,Oc);j(this,Rc);j(this,$o);fe(this,{allowLoose:!!r}),T(this,rn,tr(e)),T(this,Oc,0),T(this,Rc,null),T(this,$o,n??1024),T(this,wn,0)}get data(){return H(w(this,rn))}get dataLength(){return w(this,rn).length}get consumed(){return w(this,wn)}get bytes(){return new Uint8Array(w(this,rn))}subReader(e){const r=new Wk(w(this,rn).slice(w(this,wn)+e),this.allowLoose,w(this,$o));return T(r,Rc,this),r}readBytes(e,r){let n=Y(this,El,SR).call(this,0,e,!!r);return Y(this,El,Bw).call(this,e),T(this,wn,w(this,wn)+n.length),n.slice(0,e)}readValue(){return xd(this.readBytes(Hr))}readIndex(){return cR(this.readBytes(Hr))}};rn=new WeakMap,wn=new WeakMap,Oc=new WeakMap,Rc=new WeakMap,$o=new WeakMap,El=new WeakSet,Bw=function(e){var r;if(w(this,Rc))return Y(r=w(this,Rc),El,Bw).call(r,e);T(this,Oc,w(this,Oc)+e),z(w(this,$o)<1||w(this,Oc)<=w(this,$o)*this.dataLength,`compressed ABI data exceeds inflation ratio of ${w(this,$o)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:tr(w(this,rn)),offset:w(this,wn),length:e,info:{bytesRead:w(this,Oc),dataLength:this.dataLength}})},SR=function(e,r,n){let s=Math.ceil(r/Hr)*Hr;return w(this,wn)+s>w(this,rn).length&&(this.allowLoose&&n&&w(this,wn)+r<=w(this,rn).length?s=r:z(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:tr(w(this,rn)),length:w(this,rn).length,offset:w(this,wn)+s})),w(this,rn).slice(w(this,wn),w(this,wn)+s)};let Dw=Wk;function An(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function y5(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function TR(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");An(t.outputLen),An(t.blockLen)}function Vf(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function PR(t,e){y5(t);const r=e.outputLen;if(t.lengtht instanceof Uint8Array,zp=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),Gp=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Ws=(t,e)=>t<<32-e|t>>>e,ste=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!ste)throw new Error("Non little-endian hardware is not supported");const ite=async()=>{};async function ZS(t,e,r){let n=Date.now();for(let s=0;s=0&&in+s.length,0));let r=0;return t.forEach(n=>{if(!IR(n))throw new Error("Uint8Array expected");e.set(n,r),r+=n.length}),e}let v5=class{clone(){return this._cloneInto()}};const cte={}.toString;function OR(t,e){if(e!==void 0&&cte.call(e)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(t,e)}function _g(t){const e=n=>t().update(Hf(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function lte(t=32){if(xx&&typeof xx.getRandomValues=="function")return xx.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}class RR extends v5{constructor(e,r){super(),this.finished=!1,this.destroyed=!1,TR(e);const n=Hf(r);if(this.iHash=e.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;const s=this.blockLen,i=new Uint8Array(s);i.set(n.length>s?e.create().update(n).digest():n);for(let o=0;onew RR(t,e).update(r).digest();Mg.create=(t,e)=>new RR(t,e);function ute(t,e,r,n){TR(t);const s=OR({dkLen:32,asyncTick:10},n),{c:i,dkLen:o,asyncTick:a}=s;if(An(i),An(o),An(a),i<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const c=Hf(e),l=Hf(r),u=new Uint8Array(o),f=Mg.create(t,c),d=f._cloneInto().update(l);return{c:i,dkLen:o,asyncTick:a,DK:u,PRF:f,PRFSalt:d}}function fte(t,e,r,n,s){return t.destroy(),e.destroy(),n&&n.destroy(),s.fill(0),r}function g5(t,e,r,n){const{c:s,dkLen:i,DK:o,PRF:a,PRFSalt:c}=ute(t,e,r,n);let l;const u=new Uint8Array(4),f=Gp(u),d=new Uint8Array(a.outputLen);for(let h=1,y=0;y>s&i),a=Number(r&i),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}class m5 extends v5{constructor(e,r,n,s){super(),this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=s,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=Gp(this.buffer)}update(e){Vf(this);const{view:r,buffer:n,blockLen:s}=this;e=Hf(e);const i=e.length;for(let o=0;os-o&&(this.process(n,0),o=0);for(let f=o;fu.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;ft&e^~t&r,pte=(t,e,r)=>t&e^t&r^e&r,yte=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]),Co=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Eo=new Uint32Array(64);let vte=class extends m5{constructor(){super(64,32,8,!1),this.A=Co[0]|0,this.B=Co[1]|0,this.C=Co[2]|0,this.D=Co[3]|0,this.E=Co[4]|0,this.F=Co[5]|0,this.G=Co[6]|0,this.H=Co[7]|0}get(){const{A:e,B:r,C:n,D:s,E:i,F:o,G:a,H:c}=this;return[e,r,n,s,i,o,a,c]}set(e,r,n,s,i,o,a,c){this.A=e|0,this.B=r|0,this.C=n|0,this.D=s|0,this.E=i|0,this.F=o|0,this.G=a|0,this.H=c|0}process(e,r){for(let f=0;f<16;f++,r+=4)Eo[f]=e.getUint32(r,!1);for(let f=16;f<64;f++){const d=Eo[f-15],h=Eo[f-2],y=Ws(d,7)^Ws(d,18)^d>>>3,p=Ws(h,17)^Ws(h,19)^h>>>10;Eo[f]=p+Eo[f-7]+y+Eo[f-16]|0}let{A:n,B:s,C:i,D:o,E:a,F:c,G:l,H:u}=this;for(let f=0;f<64;f++){const d=Ws(a,6)^Ws(a,11)^Ws(a,25),h=u+d+hte(a,c,l)+yte[f]+Eo[f]|0,p=(Ws(n,2)^Ws(n,13)^Ws(n,22))+pte(n,s,i)|0;u=l,l=c,c=a,a=o+h|0,o=i,i=s,s=n,n=h+p|0}n=n+this.A|0,s=s+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(n,s,i,o,a,c,l,u)}roundClean(){Eo.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};const bd=_g(()=>new vte),up=BigInt(2**32-1),Lw=BigInt(32);function NR(t,e=!1){return e?{h:Number(t&up),l:Number(t>>Lw&up)}:{h:Number(t>>Lw&up)|0,l:Number(t&up)|0}}function _R(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let s=0;sBigInt(t>>>0)<>>0),mte=(t,e,r)=>t>>>r,xte=(t,e,r)=>t<<32-r|e>>>r,bte=(t,e,r)=>t>>>r|e<<32-r,wte=(t,e,r)=>t<<32-r|e>>>r,Cte=(t,e,r)=>t<<64-r|e>>>r-32,Ete=(t,e,r)=>t>>>r-32|e<<64-r,kte=(t,e)=>e,Ate=(t,e)=>t,MR=(t,e,r)=>t<>>32-r,DR=(t,e,r)=>e<>>32-r,BR=(t,e,r)=>e<>>64-r,LR=(t,e,r)=>t<>>64-r;function Ste(t,e,r,n){const s=(e>>>0)+(n>>>0);return{h:t+r+(s/2**32|0)|0,l:s|0}}const Tte=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),Pte=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,Ite=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),Ote=(t,e,r,n,s)=>e+r+n+s+(t/2**32|0)|0,Rte=(t,e,r,n,s)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(s>>>0),Nte=(t,e,r,n,s,i)=>e+r+n+s+i+(t/2**32|0)|0,Me={fromBig:NR,split:_R,toBig:gte,shrSH:mte,shrSL:xte,rotrSH:bte,rotrSL:wte,rotrBH:Cte,rotrBL:Ete,rotr32H:kte,rotr32L:Ate,rotlSH:MR,rotlSL:DR,rotlBH:BR,rotlBL:LR,add:Ste,add3L:Tte,add3H:Pte,add4L:Ite,add4H:Ote,add5H:Nte,add5L:Rte},[_te,Mte]=Me.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(t=>BigInt(t))),ko=new Uint32Array(80),Ao=new Uint32Array(80);class Dte extends m5{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(){const{Ah:e,Al:r,Bh:n,Bl:s,Ch:i,Cl:o,Dh:a,Dl:c,Eh:l,El:u,Fh:f,Fl:d,Gh:h,Gl:y,Hh:p,Hl:b}=this;return[e,r,n,s,i,o,a,c,l,u,f,d,h,y,p,b]}set(e,r,n,s,i,o,a,c,l,u,f,d,h,y,p,b){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=s|0,this.Ch=i|0,this.Cl=o|0,this.Dh=a|0,this.Dl=c|0,this.Eh=l|0,this.El=u|0,this.Fh=f|0,this.Fl=d|0,this.Gh=h|0,this.Gl=y|0,this.Hh=p|0,this.Hl=b|0}process(e,r){for(let x=0;x<16;x++,r+=4)ko[x]=e.getUint32(r),Ao[x]=e.getUint32(r+=4);for(let x=16;x<80;x++){const k=ko[x-15]|0,S=Ao[x-15]|0,I=Me.rotrSH(k,S,1)^Me.rotrSH(k,S,8)^Me.shrSH(k,S,7),R=Me.rotrSL(k,S,1)^Me.rotrSL(k,S,8)^Me.shrSL(k,S,7),_=ko[x-2]|0,V=Ao[x-2]|0,F=Me.rotrSH(_,V,19)^Me.rotrBH(_,V,61)^Me.shrSH(_,V,6),X=Me.rotrSL(_,V,19)^Me.rotrBL(_,V,61)^Me.shrSL(_,V,6),re=Me.add4L(R,X,Ao[x-7],Ao[x-16]),le=Me.add4H(re,I,F,ko[x-7],ko[x-16]);ko[x]=le|0,Ao[x]=re|0}let{Ah:n,Al:s,Bh:i,Bl:o,Ch:a,Cl:c,Dh:l,Dl:u,Eh:f,El:d,Fh:h,Fl:y,Gh:p,Gl:b,Hh:v,Hl:g}=this;for(let x=0;x<80;x++){const k=Me.rotrSH(f,d,14)^Me.rotrSH(f,d,18)^Me.rotrBH(f,d,41),S=Me.rotrSL(f,d,14)^Me.rotrSL(f,d,18)^Me.rotrBL(f,d,41),I=f&h^~f&p,R=d&y^~d&b,_=Me.add5L(g,S,R,Mte[x],Ao[x]),V=Me.add5H(_,v,k,I,_te[x],ko[x]),F=_|0,X=Me.rotrSH(n,s,28)^Me.rotrBH(n,s,34)^Me.rotrBH(n,s,39),re=Me.rotrSL(n,s,28)^Me.rotrBL(n,s,34)^Me.rotrBL(n,s,39),le=n&i^n&a^i&a,ee=s&o^s&c^o&c;v=p|0,g=b|0,p=h|0,b=y|0,h=f|0,y=d|0,{h:f,l:d}=Me.add(l|0,u|0,V|0,F|0),l=a|0,u=c|0,a=i|0,c=o|0,i=n|0,o=s|0;const D=Me.add3L(F,re,ee);n=Me.add3H(D,V,X,le),s=D|0}({h:n,l:s}=Me.add(this.Ah|0,this.Al|0,n|0,s|0)),{h:i,l:o}=Me.add(this.Bh|0,this.Bl|0,i|0,o|0),{h:a,l:c}=Me.add(this.Ch|0,this.Cl|0,a|0,c|0),{h:l,l:u}=Me.add(this.Dh|0,this.Dl|0,l|0,u|0),{h:f,l:d}=Me.add(this.Eh|0,this.El|0,f|0,d|0),{h,l:y}=Me.add(this.Fh|0,this.Fl|0,h|0,y|0),{h:p,l:b}=Me.add(this.Gh|0,this.Gl|0,p|0,b|0),{h:v,l:g}=Me.add(this.Hh|0,this.Hl|0,v|0,g|0),this.set(n,s,i,o,a,c,l,u,f,d,h,y,p,b,v,g)}roundClean(){ko.fill(0),Ao.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)}}const x5=_g(()=>new Dte);function Bte(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}const e8=Bte(),t8=e8.crypto||e8.msCrypto;function jR(t){switch(t){case"sha256":return bd.create();case"sha512":return x5.create()}P(!1,"invalid hashing algorithm name","algorithm",t)}function Lte(t,e){const r={sha256:bd,sha512:x5}[t];return P(r!=null,"invalid hmac algorithm","algorithm",t),Mg.create(r,e)}function jte(t,e,r,n,s){const i={sha256:bd,sha512:x5}[s];return P(i!=null,"invalid pbkdf2 algorithm","algorithm",s),g5(i,t,e,{c:r,dkLen:n})}function Fte(t){z(t8!=null,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),P(Number.isInteger(t)&&t>0&&t<=1024,"invalid length","length",t);const e=new Uint8Array(t);return t8.getRandomValues(e),e}let FR=!1;const UR=function(t,e,r){return Lte(t,e).update(r).digest()};let $R=UR;function Va(t,e,r){const n=Q(e,"key"),s=Q(r,"data");return H($R(t,n,s))}Va._=UR;Va.lock=function(){FR=!0};Va.register=function(t){if(FR)throw new Error("computeHmac is locked");$R=t};Object.freeze(Va);const[WR,VR,HR]=[[],[],[]],Ute=BigInt(0),$d=BigInt(1),$te=BigInt(2),Wte=BigInt(7),Vte=BigInt(256),Hte=BigInt(113);for(let t=0,e=$d,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],WR.push(2*(5*n+r)),VR.push((t+1)*(t+2)/2%64);let s=Ute;for(let i=0;i<7;i++)e=(e<<$d^(e>>Wte)*Hte)%Vte,e&$te&&(s^=$d<<($d<r>32?BR(t,e,r):MR(t,e,r),n8=(t,e,r)=>r>32?LR(t,e,r):DR(t,e,r);function qte(t,e=24){const r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let o=0;o<10;o++)r[o]=t[o]^t[o+10]^t[o+20]^t[o+30]^t[o+40];for(let o=0;o<10;o+=2){const a=(o+8)%10,c=(o+2)%10,l=r[c],u=r[c+1],f=r8(l,u,1)^r[a],d=n8(l,u,1)^r[a+1];for(let h=0;h<50;h+=10)t[o+h]^=f,t[o+h+1]^=d}let s=t[2],i=t[3];for(let o=0;o<24;o++){const a=VR[o],c=r8(s,i,a),l=n8(s,i,a),u=WR[o];s=t[u],i=t[u+1],t[u]=c,t[u+1]=l}for(let o=0;o<50;o+=10){for(let a=0;a<10;a++)r[a]=t[o+a];for(let a=0;a<10;a++)t[o+a]^=~r[(a+2)%10]&r[(a+4)%10]}t[0]^=zte[n],t[1]^=Gte[n]}r.fill(0)}class b5 extends v5{constructor(e,r,n,s=!1,i=24){if(super(),this.blockLen=e,this.suffix=r,this.outputLen=n,this.enableXOF=s,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,An(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=zp(this.state)}keccak(){qte(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){Vf(this);const{blockLen:r,state:n}=this;e=Hf(e);const s=e.length;for(let i=0;i=n&&this.keccak();const o=Math.min(n-this.posOut,i-s);e.set(r.subarray(this.posOut,this.posOut+o),s),this.posOut+=o,s+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return An(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(PR(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:r,suffix:n,outputLen:s,rounds:i,enableXOF:o}=this;return e||(e=new b5(r,n,s,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=s,e.enableXOF=o,e.destroyed=this.destroyed,e}}const Kte=(t,e,r)=>_g(()=>new b5(e,t,r)),Qte=Kte(1,136,256/8);let zR=!1;const GR=function(t){return Qte(t)};let qR=GR;function Ne(t){const e=Q(t,"data");return H(qR(e))}Ne._=GR;Ne.lock=function(){zR=!0};Ne.register=function(t){if(zR)throw new TypeError("keccak256 is locked");qR=t};Object.freeze(Ne);const Jte=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),KR=Uint8Array.from({length:16},(t,e)=>e),Yte=KR.map(t=>(9*t+5)%16);let w5=[KR],C5=[Yte];for(let t=0;t<4;t++)for(let e of[w5,C5])e.push(e[t].map(r=>Jte[r]));const QR=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>new Uint8Array(t)),Xte=w5.map((t,e)=>t.map(r=>QR[e][r])),Zte=C5.map((t,e)=>t.map(r=>QR[e][r])),ere=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),tre=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),fp=(t,e)=>t<>>32-e;function s8(t,e,r,n){return t===0?e^r^n:t===1?e&r|~e&n:t===2?(e|~r)^n:t===3?e&n|r&~n:e^(r|~n)}const dp=new Uint32Array(16);class rre extends m5{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:r,h2:n,h3:s,h4:i}=this;return[e,r,n,s,i]}set(e,r,n,s,i){this.h0=e|0,this.h1=r|0,this.h2=n|0,this.h3=s|0,this.h4=i|0}process(e,r){for(let h=0;h<16;h++,r+=4)dp[h]=e.getUint32(r,!0);let n=this.h0|0,s=n,i=this.h1|0,o=i,a=this.h2|0,c=a,l=this.h3|0,u=l,f=this.h4|0,d=f;for(let h=0;h<5;h++){const y=4-h,p=ere[h],b=tre[h],v=w5[h],g=C5[h],x=Xte[h],k=Zte[h];for(let S=0;S<16;S++){const I=fp(n+s8(h,i,a,l)+dp[v[S]]+p,x[S])+f|0;n=f,f=l,l=fp(a,10)|0,a=i,i=I}for(let S=0;S<16;S++){const I=fp(s+s8(y,o,c,u)+dp[g[S]]+b,k[S])+d|0;s=d,d=u,u=fp(c,10)|0,c=o,o=I}}this.set(this.h1+a+u|0,this.h2+l+d|0,this.h3+f+s|0,this.h4+n+o|0,this.h0+i+c|0)}roundClean(){dp.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const nre=_g(()=>new rre);let JR=!1;const YR=function(t){return nre(t)};let XR=YR;function Ha(t){const e=Q(t,"data");return H(XR(e))}Ha._=YR;Ha.lock=function(){JR=!0};Ha.register=function(t){if(JR)throw new TypeError("ripemd160 is locked");XR=t};Object.freeze(Ha);let ZR=!1;const eN=function(t,e,r,n,s){return jte(t,e,r,n,s)};let tN=eN;function bi(t,e,r,n,s){const i=Q(t,"password"),o=Q(e,"salt");return H(tN(i,o,r,n,s))}bi._=eN;bi.lock=function(){ZR=!0};bi.register=function(t){if(ZR)throw new Error("pbkdf2 is locked");tN=t};Object.freeze(bi);let rN=!1;const nN=function(t){return new Uint8Array(Fte(t))};let sN=nN;function Rr(t){return sN(t)}Rr._=nN;Rr.lock=function(){rN=!0};Rr.register=function(t){if(rN)throw new Error("randomBytes is locked");sN=t};Object.freeze(Rr);const qe=(t,e)=>t<>>32-e;function i8(t,e,r,n,s,i){let o=t[e++]^r[n++],a=t[e++]^r[n++],c=t[e++]^r[n++],l=t[e++]^r[n++],u=t[e++]^r[n++],f=t[e++]^r[n++],d=t[e++]^r[n++],h=t[e++]^r[n++],y=t[e++]^r[n++],p=t[e++]^r[n++],b=t[e++]^r[n++],v=t[e++]^r[n++],g=t[e++]^r[n++],x=t[e++]^r[n++],k=t[e++]^r[n++],S=t[e++]^r[n++],I=o,R=a,_=c,V=l,F=u,X=f,re=d,le=h,ee=y,D=p,G=b,Z=v,C=g,A=x,O=k,M=S;for(let B=0;B<8;B+=2)F^=qe(I+C|0,7),ee^=qe(F+I|0,9),C^=qe(ee+F|0,13),I^=qe(C+ee|0,18),D^=qe(X+R|0,7),A^=qe(D+X|0,9),R^=qe(A+D|0,13),X^=qe(R+A|0,18),O^=qe(G+re|0,7),_^=qe(O+G|0,9),re^=qe(_+O|0,13),G^=qe(re+_|0,18),V^=qe(M+Z|0,7),le^=qe(V+M|0,9),Z^=qe(le+V|0,13),M^=qe(Z+le|0,18),R^=qe(I+V|0,7),_^=qe(R+I|0,9),V^=qe(_+R|0,13),I^=qe(V+_|0,18),re^=qe(X+F|0,7),le^=qe(re+X|0,9),F^=qe(le+re|0,13),X^=qe(F+le|0,18),Z^=qe(G+D|0,7),ee^=qe(Z+G|0,9),D^=qe(ee+Z|0,13),G^=qe(D+ee|0,18),C^=qe(M+O|0,7),A^=qe(C+M|0,9),O^=qe(A+C|0,13),M^=qe(O+A|0,18);s[i++]=o+I|0,s[i++]=a+R|0,s[i++]=c+_|0,s[i++]=l+V|0,s[i++]=u+F|0,s[i++]=f+X|0,s[i++]=d+re|0,s[i++]=h+le|0,s[i++]=y+ee|0,s[i++]=p+D|0,s[i++]=b+G|0,s[i++]=v+Z|0,s[i++]=g+C|0,s[i++]=x+A|0,s[i++]=k+O|0,s[i++]=S+M|0}function Ru(t,e,r,n,s){let i=n+0,o=n+16*s;for(let a=0;a<16;a++)r[o+a]=t[e+(2*s-1)*16+a];for(let a=0;a0&&(o+=16),i8(r,i,t,e+=16,r,o)}function iN(t,e,r){const n=OR({dkLen:32,asyncTick:10,maxmem:1073742848},r),{N:s,r:i,p:o,dkLen:a,asyncTick:c,maxmem:l,onProgress:u}=n;if(An(s),An(i),An(o),An(a),An(c),An(l),u!==void 0&&typeof u!="function")throw new Error("progressCb should be function");const f=128*i,d=f/4;if(s<=1||s&s-1||s>=2**(f/8)||s>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(o<0||o>(2**32-1)*32/f)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(a<0||a>(2**32-1)*32)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const h=f*(s+o);if(h>l)throw new Error(`Scrypt: parameters too large, ${h} (128 * r * (N + p)) > ${l} (maxmem)`);const y=g5(bd,t,e,{c:1,dkLen:f*o}),p=zp(y),b=zp(new Uint8Array(f*s)),v=zp(new Uint8Array(f));let g=()=>{};if(u){const x=2*s*o,k=Math.max(Math.floor(x/1e4),1);let S=0;g=()=>{S++,u&&(!(S%k)||S===x)&&u(S/x)}}return{N:s,r:i,p:o,dkLen:a,blockSize32:d,V:b,B32:p,B:y,tmp:v,blockMixCb:g,asyncTick:c}}function oN(t,e,r,n,s){const i=g5(bd,t,r,{c:1,dkLen:e});return r.fill(0),n.fill(0),s.fill(0),i}function sre(t,e,r){const{N:n,r:s,p:i,dkLen:o,blockSize32:a,V:c,B32:l,B:u,tmp:f,blockMixCb:d}=iN(t,e,r);for(let h=0;h{Ru(c,b,c,b+=a,s),d()}),Ru(c,(n-1)*a,l,p,s),d(),await ZS(n,h,()=>{const v=l[p+a-16]%n;for(let g=0;gt instanceof Uint8Array,are=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function zf(t){if(!Bg(t))throw new Error("Uint8Array expected");let e="";for(let r=0;rn+s.length,0));let r=0;return t.forEach(n=>{if(!Bg(n))throw new Error("Uint8Array expected");e.set(n,r),r+=n.length}),e}function lre(t,e){if(t.length!==e.length)return!1;for(let r=0;rxN;t>>=Dg,e+=1);return e}function dre(t,e){return t>>BigInt(e)&Dg}const hre=(t,e,r)=>t|(r?Dg:xN)<(ore<new Uint8Array(t),o8=t=>Uint8Array.from(t);function wN(t,e,r){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let n=bx(t),s=bx(t),i=0;const o=()=>{n.fill(1),s.fill(0),i=0},a=(...f)=>r(s,n,...f),c=(f=bx())=>{s=a(o8([0]),f),n=a(),f.length!==0&&(s=a(o8([1]),f),n=a())},l=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let f=0;const d=[];for(;f{o(),c(f);let h;for(;!(h=d(l()));)c();return o(),h}}const pre={bigint:t=>typeof t=="bigint",function:t=>typeof t=="function",boolean:t=>typeof t=="boolean",string:t=>typeof t=="string",stringOrUint8Array:t=>typeof t=="string"||t instanceof Uint8Array,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t=="function"&&Number.isSafeInteger(t.outputLen)};function x1(t,e,r={}){const n=(s,i,o)=>{const a=pre[i];if(typeof a!="function")throw new Error(`Invalid validator "${i}", expected function`);const c=t[s];if(!(o&&c===void 0)&&!a(c,t))throw new Error(`Invalid param ${String(s)}=${c} (${typeof c}), expected ${i}`)};for(const[s,i]of Object.entries(e))n(s,i,!1);for(const[s,i]of Object.entries(r))n(s,i,!0);return t}const yre=Object.freeze(Object.defineProperty({__proto__:null,bitGet:dre,bitLen:fre,bitMask:S5,bitSet:hre,bytesToHex:zf,bytesToNumberBE:Zc,bytesToNumberLE:k5,concatBytes:v0,createHmacDrbg:wN,ensureBytes:ys,equalBytes:lre,hexToBytes:Gf,hexToNumber:E5,numberToBytesBE:qf,numberToBytesLE:A5,numberToHexUnpadded:bN,numberToVarBytesBE:cre,utf8ToBytes:ure,validateObject:x1},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const nr=BigInt(0),Mt=BigInt(1),cc=BigInt(2),vre=BigInt(3),jw=BigInt(4),a8=BigInt(5),c8=BigInt(8);BigInt(9);BigInt(16);function on(t,e){const r=t%e;return r>=nr?r:e+r}function gre(t,e,r){if(r<=nr||e 0");if(r===Mt)return nr;let n=Mt;for(;e>nr;)e&Mt&&(n=n*t%r),t=t*t%r,e>>=Mt;return n}function Dn(t,e,r){let n=t;for(;e-- >nr;)n*=n,n%=r;return n}function Fw(t,e){if(t===nr||e<=nr)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let r=on(t,e),n=e,s=nr,i=Mt;for(;r!==nr;){const a=n/r,c=n%r,l=s-i*a;n=r,r=c,s=i,i=l}if(n!==Mt)throw new Error("invert: does not exist");return on(s,e)}function mre(t){const e=(t-Mt)/cc;let r,n,s;for(r=t-Mt,n=0;r%cc===nr;r/=cc,n++);for(s=cc;s(n[s]="function",n),e);return x1(t,r)}function Cre(t,e,r){if(r 0");if(r===nr)return t.ONE;if(r===Mt)return e;let n=t.ONE,s=e;for(;r>nr;)r&Mt&&(n=t.mul(n,s)),s=t.sqr(s),r>>=Mt;return n}function Ere(t,e){const r=new Array(e.length),n=e.reduce((i,o,a)=>t.is0(o)?i:(r[a]=i,t.mul(i,o)),t.ONE),s=t.inv(n);return e.reduceRight((i,o,a)=>t.is0(o)?i:(r[a]=t.mul(i,r[a]),t.mul(i,o)),s),r}function CN(t,e){const r=e!==void 0?e:t.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function kre(t,e,r=!1,n={}){if(t<=nr)throw new Error(`Expected Field ORDER > 0, got ${t}`);const{nBitLength:s,nByteLength:i}=CN(t,e);if(i>2048)throw new Error("Field lengths over 2048 bytes are not supported");const o=xre(t),a=Object.freeze({ORDER:t,BITS:s,BYTES:i,MASK:S5(s),ZERO:nr,ONE:Mt,create:c=>on(c,t),isValid:c=>{if(typeof c!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof c}`);return nr<=c&&cc===nr,isOdd:c=>(c&Mt)===Mt,neg:c=>on(-c,t),eql:(c,l)=>c===l,sqr:c=>on(c*c,t),add:(c,l)=>on(c+l,t),sub:(c,l)=>on(c-l,t),mul:(c,l)=>on(c*l,t),pow:(c,l)=>Cre(a,c,l),div:(c,l)=>on(c*Fw(l,t),t),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>Fw(c,t),sqrt:n.sqrt||(c=>o(a,c)),invertBatch:c=>Ere(a,c),cmov:(c,l,u)=>u?l:c,toBytes:c=>r?A5(c,i):qf(c,i),fromBytes:c=>{if(c.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${c.length}`);return r?k5(c):Zc(c)}});return Object.freeze(a)}function EN(t){if(typeof t!="bigint")throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}function kN(t){const e=EN(t);return e+Math.ceil(e/2)}function Are(t,e,r=!1){const n=t.length,s=EN(e),i=kN(e);if(n<16||n1024)throw new Error(`expected ${i}-1024 bytes of input, got ${n}`);const o=r?Zc(t):k5(t),a=on(o,e-Mt)+Mt;return r?A5(a,s):qf(a,s)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Sre=BigInt(0),wx=BigInt(1);function Tre(t,e){const r=(s,i)=>{const o=i.negate();return s?o:i},n=s=>{const i=Math.ceil(e/s)+1,o=2**(s-1);return{windows:i,windowSize:o}};return{constTimeNegate:r,unsafeLadder(s,i){let o=t.ZERO,a=s;for(;i>Sre;)i&wx&&(o=o.add(a)),a=a.double(),i>>=wx;return o},precomputeWindow(s,i){const{windows:o,windowSize:a}=n(i),c=[];let l=s,u=l;for(let f=0;f>=h,b>c&&(b-=d,o+=wx);const v=p,g=p+Math.abs(b)-1,x=y%2!==0,k=b<0;b===0?u=u.add(r(x,i[v])):l=l.add(r(k,i[g]))}return{p:l,f:u}},wNAFCached(s,i,o,a){const c=s._WINDOW_SIZE||1;let l=i.get(s);return l||(l=this.precomputeWindow(s,c),c!==1&&i.set(s,a(l))),this.wNAF(c,l,o)}}}function AN(t){return wre(t.Fp),x1(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...CN(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Pre(t){const e=AN(t);x1(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a:s}=e;if(r){if(!n.eql(s,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof r!="object"||typeof r.beta!="bigint"||typeof r.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:Ire,hexToBytes:Ore}=yre,mc={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(t){const{Err:e}=mc;if(t.length<2||t[0]!==2)throw new e("Invalid signature integer tag");const r=t[1],n=t.subarray(2,r+2);if(!r||n.length!==r)throw new e("Invalid signature integer: wrong length");if(n[0]&128)throw new e("Invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new e("Invalid signature integer: unnecessary leading zero");return{d:Ire(n),l:t.subarray(r+2)}},toSig(t){const{Err:e}=mc,r=typeof t=="string"?Ore(t):t;if(!(r instanceof Uint8Array))throw new Error("ui8a expected");let n=r.length;if(n<2||r[0]!=48)throw new e("Invalid signature tag");if(r[1]!==n-2)throw new e("Invalid signature: incorrect length");const{d:s,l:i}=mc._parseInt(r.subarray(2)),{d:o,l:a}=mc._parseInt(i);if(a.length)throw new e("Invalid signature: left bytes after parsing");return{r:s,s:o}},hexFromSig(t){const e=l=>Number.parseInt(l[0],16)&8?"00"+l:l,r=l=>{const u=l.toString(16);return u.length&1?`0${u}`:u},n=e(r(t.s)),s=e(r(t.r)),i=n.length/2,o=s.length/2,a=r(i),c=r(o);return`30${r(o+i+4)}02${c}${s}02${a}${n}`}},Vi=BigInt(0),qn=BigInt(1);BigInt(2);const l8=BigInt(3);BigInt(4);function Rre(t){const e=Pre(t),{Fp:r}=e,n=e.toBytes||((y,p,b)=>{const v=p.toAffine();return v0(Uint8Array.from([4]),r.toBytes(v.x),r.toBytes(v.y))}),s=e.fromBytes||(y=>{const p=y.subarray(1),b=r.fromBytes(p.subarray(0,r.BYTES)),v=r.fromBytes(p.subarray(r.BYTES,2*r.BYTES));return{x:b,y:v}});function i(y){const{a:p,b}=e,v=r.sqr(y),g=r.mul(v,y);return r.add(r.add(g,r.mul(y,p)),b)}if(!r.eql(r.sqr(e.Gy),i(e.Gx)))throw new Error("bad generator point: equation left != right");function o(y){return typeof y=="bigint"&&Vir.eql(x,r.ZERO);return g(b)&&g(v)?f.ZERO:new f(b,v,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(p){const b=r.invertBatch(p.map(v=>v.pz));return p.map((v,g)=>v.toAffine(b[g])).map(f.fromAffine)}static fromHex(p){const b=f.fromAffine(s(ys("pointHex",p)));return b.assertValidity(),b}static fromPrivateKey(p){return f.BASE.multiply(c(p))}_setWindowSize(p){this._WINDOW_SIZE=p,l.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:p,y:b}=this.toAffine();if(!r.isValid(p)||!r.isValid(b))throw new Error("bad point: x or y not FE");const v=r.sqr(b),g=i(p);if(!r.eql(v,g))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:p}=this.toAffine();if(r.isOdd)return!r.isOdd(p);throw new Error("Field doesn't support isOdd")}equals(p){u(p);const{px:b,py:v,pz:g}=this,{px:x,py:k,pz:S}=p,I=r.eql(r.mul(b,S),r.mul(x,g)),R=r.eql(r.mul(v,S),r.mul(k,g));return I&&R}negate(){return new f(this.px,r.neg(this.py),this.pz)}double(){const{a:p,b}=e,v=r.mul(b,l8),{px:g,py:x,pz:k}=this;let S=r.ZERO,I=r.ZERO,R=r.ZERO,_=r.mul(g,g),V=r.mul(x,x),F=r.mul(k,k),X=r.mul(g,x);return X=r.add(X,X),R=r.mul(g,k),R=r.add(R,R),S=r.mul(p,R),I=r.mul(v,F),I=r.add(S,I),S=r.sub(V,I),I=r.add(V,I),I=r.mul(S,I),S=r.mul(X,S),R=r.mul(v,R),F=r.mul(p,F),X=r.sub(_,F),X=r.mul(p,X),X=r.add(X,R),R=r.add(_,_),_=r.add(R,_),_=r.add(_,F),_=r.mul(_,X),I=r.add(I,_),F=r.mul(x,k),F=r.add(F,F),_=r.mul(F,X),S=r.sub(S,_),R=r.mul(F,V),R=r.add(R,R),R=r.add(R,R),new f(S,I,R)}add(p){u(p);const{px:b,py:v,pz:g}=this,{px:x,py:k,pz:S}=p;let I=r.ZERO,R=r.ZERO,_=r.ZERO;const V=e.a,F=r.mul(e.b,l8);let X=r.mul(b,x),re=r.mul(v,k),le=r.mul(g,S),ee=r.add(b,v),D=r.add(x,k);ee=r.mul(ee,D),D=r.add(X,re),ee=r.sub(ee,D),D=r.add(b,g);let G=r.add(x,S);return D=r.mul(D,G),G=r.add(X,le),D=r.sub(D,G),G=r.add(v,g),I=r.add(k,S),G=r.mul(G,I),I=r.add(re,le),G=r.sub(G,I),_=r.mul(V,D),I=r.mul(F,le),_=r.add(I,_),I=r.sub(re,_),_=r.add(re,_),R=r.mul(I,_),re=r.add(X,X),re=r.add(re,X),le=r.mul(V,le),D=r.mul(F,D),re=r.add(re,le),le=r.sub(X,le),le=r.mul(V,le),D=r.add(D,le),X=r.mul(re,D),R=r.add(R,X),X=r.mul(G,D),I=r.mul(ee,I),I=r.sub(I,X),X=r.mul(ee,re),_=r.mul(G,_),_=r.add(_,X),new f(I,R,_)}subtract(p){return this.add(p.negate())}is0(){return this.equals(f.ZERO)}wNAF(p){return h.wNAFCached(this,l,p,b=>{const v=r.invertBatch(b.map(g=>g.pz));return b.map((g,x)=>g.toAffine(v[x])).map(f.fromAffine)})}multiplyUnsafe(p){const b=f.ZERO;if(p===Vi)return b;if(a(p),p===qn)return this;const{endo:v}=e;if(!v)return h.unsafeLadder(this,p);let{k1neg:g,k1:x,k2neg:k,k2:S}=v.splitScalar(p),I=b,R=b,_=this;for(;x>Vi||S>Vi;)x&qn&&(I=I.add(_)),S&qn&&(R=R.add(_)),_=_.double(),x>>=qn,S>>=qn;return g&&(I=I.negate()),k&&(R=R.negate()),R=new f(r.mul(R.px,v.beta),R.py,R.pz),I.add(R)}multiply(p){a(p);let b=p,v,g;const{endo:x}=e;if(x){const{k1neg:k,k1:S,k2neg:I,k2:R}=x.splitScalar(b);let{p:_,f:V}=this.wNAF(S),{p:F,f:X}=this.wNAF(R);_=h.constTimeNegate(k,_),F=h.constTimeNegate(I,F),F=new f(r.mul(F.px,x.beta),F.py,F.pz),v=_.add(F),g=V.add(X)}else{const{p:k,f:S}=this.wNAF(b);v=k,g=S}return f.normalizeZ([v,g])[0]}multiplyAndAddUnsafe(p,b,v){const g=f.BASE,x=(S,I)=>I===Vi||I===qn||!S.equals(g)?S.multiplyUnsafe(I):S.multiply(I),k=x(this,b).add(x(p,v));return k.is0()?void 0:k}toAffine(p){const{px:b,py:v,pz:g}=this,x=this.is0();p==null&&(p=x?r.ONE:r.inv(g));const k=r.mul(b,p),S=r.mul(v,p),I=r.mul(g,p);if(x)return{x:r.ZERO,y:r.ZERO};if(!r.eql(I,r.ONE))throw new Error("invZ was invalid");return{x:k,y:S}}isTorsionFree(){const{h:p,isTorsionFree:b}=e;if(p===qn)return!0;if(b)return b(f,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:p,clearCofactor:b}=e;return p===qn?this:b?b(f,this):this.multiplyUnsafe(e.h)}toRawBytes(p=!0){return this.assertValidity(),n(f,this,p)}toHex(p=!0){return zf(this.toRawBytes(p))}}f.BASE=new f(e.Gx,e.Gy,r.ONE),f.ZERO=new f(r.ZERO,r.ONE,r.ZERO);const d=e.nBitLength,h=Tre(f,e.endo?Math.ceil(d/2):d);return{CURVE:e,ProjectivePoint:f,normPrivateKeyToScalar:c,weierstrassEquation:i,isWithinCurveOrder:o}}function Nre(t){const e=AN(t);return x1(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function _re(t){const e=Nre(t),{Fp:r,n}=e,s=r.BYTES+1,i=2*r.BYTES+1;function o(D){return Vizf(qf(D,e.nByteLength));function y(D){const G=n>>qn;return D>G}function p(D){return y(D)?a(-D):D}const b=(D,G,Z)=>Zc(D.slice(G,Z));class v{constructor(G,Z,C){this.r=G,this.s=Z,this.recovery=C,this.assertValidity()}static fromCompact(G){const Z=e.nByteLength;return G=ys("compactSignature",G,Z*2),new v(b(G,0,Z),b(G,Z,2*Z))}static fromDER(G){const{r:Z,s:C}=mc.toSig(ys("DER",G));return new v(Z,C)}assertValidity(){if(!d(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!d(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(G){return new v(this.r,this.s,G)}recoverPublicKey(G){const{r:Z,s:C,recovery:A}=this,O=R(ys("msgHash",G));if(A==null||![0,1,2,3].includes(A))throw new Error("recovery id invalid");const M=A===2||A===3?Z+e.n:Z;if(M>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const B=A&1?"03":"02",W=l.fromHex(B+h(M)),q=c(M),te=a(-O*q),J=a(C*q),$=l.BASE.multiplyAndAddUnsafe(W,te,J);if(!$)throw new Error("point at infinify");return $.assertValidity(),$}hasHighS(){return y(this.s)}normalizeS(){return this.hasHighS()?new v(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return Gf(this.toDERHex())}toDERHex(){return mc.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Gf(this.toCompactHex())}toCompactHex(){return h(this.r)+h(this.s)}}const g={isValidPrivateKey(D){try{return u(D),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const D=kN(e.n);return Are(e.randomBytes(D),e.n)},precompute(D=8,G=l.BASE){return G._setWindowSize(D),G.multiply(BigInt(3)),G}};function x(D,G=!0){return l.fromPrivateKey(D).toRawBytes(G)}function k(D){const G=D instanceof Uint8Array,Z=typeof D=="string",C=(G||Z)&&D.length;return G?C===s||C===i:Z?C===2*s||C===2*i:D instanceof l}function S(D,G,Z=!0){if(k(D))throw new Error("first arg must be private key");if(!k(G))throw new Error("second arg must be public key");return l.fromHex(G).multiply(u(D)).toRawBytes(Z)}const I=e.bits2int||function(D){const G=Zc(D),Z=D.length*8-e.nBitLength;return Z>0?G>>BigInt(Z):G},R=e.bits2int_modN||function(D){return a(I(D))},_=S5(e.nBitLength);function V(D){if(typeof D!="bigint")throw new Error("bigint expected");if(!(Vi<=D&&D<_))throw new Error(`bigint expected < 2^${e.nBitLength}`);return qf(D,e.nByteLength)}function F(D,G,Z=X){if(["recovered","canonical"].some(ue=>ue in Z))throw new Error("sign() legacy options not supported");const{hash:C,randomBytes:A}=e;let{lowS:O,prehash:M,extraEntropy:B}=Z;O==null&&(O=!0),D=ys("msgHash",D),M&&(D=ys("prehashed msgHash",C(D)));const W=R(D),q=u(G),te=[V(q),V(W)];if(B!=null){const ue=B===!0?A(r.BYTES):B;te.push(ys("extraEntropy",ue))}const J=v0(...te),$=W;function K(ue){const de=I(ue);if(!d(de))return;const oe=c(de),Ce=l.BASE.multiply(de).toAffine(),Re=a(Ce.x);if(Re===Vi)return;const xt=a(oe*a($+Re*q));if(xt===Vi)return;let tn=(Ce.x===Re?0:2)|Number(Ce.y&qn),br=xt;return O&&y(xt)&&(br=p(xt),tn^=1),new v(Re,br,tn)}return{seed:J,k2sig:K}}const X={lowS:e.lowS,prehash:!1},re={lowS:e.lowS,prehash:!1};function le(D,G,Z=X){const{seed:C,k2sig:A}=F(D,G,Z),O=e;return wN(O.hash.outputLen,O.nByteLength,O.hmac)(C,A)}l.BASE._setWindowSize(8);function ee(D,G,Z,C=re){var Ce;const A=D;if(G=ys("msgHash",G),Z=ys("publicKey",Z),"strict"in C)throw new Error("options.strict was renamed to lowS");const{lowS:O,prehash:M}=C;let B,W;try{if(typeof A=="string"||A instanceof Uint8Array)try{B=v.fromDER(A)}catch(Re){if(!(Re instanceof mc.Err))throw Re;B=v.fromCompact(A)}else if(typeof A=="object"&&typeof A.r=="bigint"&&typeof A.s=="bigint"){const{r:Re,s:xt}=A;B=new v(Re,xt)}else throw new Error("PARSE");W=l.fromHex(Z)}catch(Re){if(Re.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(O&&B.hasHighS())return!1;M&&(G=e.hash(G));const{r:q,s:te}=B,J=R(G),$=c(te),K=a(J*$),ue=a(q*$),de=(Ce=l.BASE.multiplyAndAddUnsafe(W,K,ue))==null?void 0:Ce.toAffine();return de?a(de.x)===q:!1}return{CURVE:e,getPublicKey:x,getSharedSecret:S,sign:le,verify:ee,ProjectivePoint:l,Signature:v,utils:g}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Mre(t){return{hash:t,hmac:(e,...r)=>Mg(t,e,ate(...r)),randomBytes:lte}}function Dre(t,e){const r=n=>_re({...t,...Mre(n)});return Object.freeze({...r(e),create:r})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const SN=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),u8=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Bre=BigInt(1),Uw=BigInt(2),f8=(t,e)=>(t+e/Uw)/e;function Lre(t){const e=SN,r=BigInt(3),n=BigInt(6),s=BigInt(11),i=BigInt(22),o=BigInt(23),a=BigInt(44),c=BigInt(88),l=t*t*t%e,u=l*l*t%e,f=Dn(u,r,e)*u%e,d=Dn(f,r,e)*u%e,h=Dn(d,Uw,e)*l%e,y=Dn(h,s,e)*h%e,p=Dn(y,i,e)*y%e,b=Dn(p,a,e)*p%e,v=Dn(b,c,e)*b%e,g=Dn(v,a,e)*p%e,x=Dn(g,r,e)*u%e,k=Dn(x,o,e)*y%e,S=Dn(k,n,e)*l%e,I=Dn(S,Uw,e);if(!$w.eql($w.sqr(I),t))throw new Error("Cannot find square root");return I}const $w=kre(SN,void 0,void 0,{sqrt:Lre}),Ro=Dre({a:BigInt(0),b:BigInt(7),Fp:$w,n:u8,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=u8,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-Bre*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=r,o=BigInt("0x100000000000000000000000000000000"),a=f8(i*t,e),c=f8(-n*t,e);let l=on(t-a*r-c*s,e),u=on(-a*n-c*i,e);const f=l>o,d=u>o;if(f&&(l=e-l),d&&(u=e-u),l>o||u>o)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:f,k1:l,k2neg:d,k2:u}}}},bd);BigInt(0);Ro.ProjectivePoint;const xi="0x0000000000000000000000000000000000000000",yl="0x0000000000000000000000000000000000000000000000000000000000000000",jre=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Fre=BigInt("1000000000000000000"),TN=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Ure=BigInt("0x8000000000000000000000000000000000000000000000000000000000000000")*BigInt(-1),$re=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Wre="Ξ",PN=`Ethereum Signed Message: +`,d8=BigInt(0),h8=BigInt(1),p8=BigInt(2),y8=BigInt(27),v8=BigInt(28),hp=BigInt(35),Ll={};function g8(t){return rs(rr(t),32)}var qu,Ku,Qu,Nc;const ds=class ds{constructor(e,r,n,s){j(this,qu);j(this,Ku);j(this,Qu);j(this,Nc);yo(e,Ll,"Signature"),T(this,qu,r),T(this,Ku,n),T(this,Qu,s),T(this,Nc,null)}get r(){return w(this,qu)}set r(e){P(ba(e)===32,"invalid r","value",e),T(this,qu,H(e))}get s(){return w(this,Ku)}set s(e){P(ba(e)===32,"invalid s","value",e);const r=H(e);P(parseInt(r.substring(0,3))<8,"non-canonical s","value",r),T(this,Ku,r)}get v(){return w(this,Qu)}set v(e){const r=Pe(e,"value");P(r===27||r===28,"invalid v","v",e),T(this,Qu,r)}get networkV(){return w(this,Nc)}get legacyChainId(){const e=this.networkV;return e==null?null:ds.getChainId(e)}get yParity(){return this.v===27?0:1}get yParityAndS(){const e=Q(this.s);return this.yParity&&(e[0]|=128),H(e)}get compactSerialized(){return Le([this.r,this.yParityAndS])}get serialized(){return Le([this.r,this.s,this.yParity?"0x1c":"0x1b"])}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const e=new ds(Ll,this.r,this.s,this.v);return this.networkV&&T(e,Nc,this.networkV),e}toJSON(){const e=this.networkV;return{_type:"signature",networkV:e!=null?e.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(e){const r=ve(e,"v");return r==y8||r==v8?d8:(P(r>=hp,"invalid EIP-155 v","v",e),(r-hp)/p8)}static getChainIdV(e,r){return ve(e)*p8+BigInt(35+r-27)}static getNormalizedV(e){const r=ve(e);return r===d8||r===y8?27:r===h8||r===v8?28:(P(r>=hp,"invalid v","v",e),r&h8?27:28)}static from(e){function r(l,u){P(l,u,"signature",e)}if(e==null)return new ds(Ll,yl,yl,27);if(typeof e=="string"){const l=Q(e,"signature");if(l.length===64){const u=H(l.slice(0,32)),f=l.slice(32,64),d=f[0]&128?28:27;return f[0]&=127,new ds(Ll,u,H(f),d)}if(l.length===65){const u=H(l.slice(0,32)),f=l.slice(32,64);r((f[0]&128)===0,"non-canonical s");const d=ds.getNormalizedV(l[64]);return new ds(Ll,u,H(f),d)}r(!1,"invalid raw signature length")}if(e instanceof ds)return e.clone();const n=e.r;r(n!=null,"missing r");const s=g8(n),i=function(l,u){if(l!=null)return g8(l);if(u!=null){r(et(u,32),"invalid yParityAndS");const f=Q(u);return f[0]&=127,H(f)}r(!1,"missing s")}(e.s,e.yParityAndS);r((Q(i)[0]&128)==0,"non-canonical s");const{networkV:o,v:a}=function(l,u,f){if(l!=null){const d=ve(l);return{networkV:d>=hp?d:void 0,v:ds.getNormalizedV(d)}}if(u!=null)return r(et(u,32),"invalid yParityAndS"),{v:Q(u)[0]&128?28:27};if(f!=null){switch(Pe(f,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}r(!1,"invalid yParity")}r(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),c=new ds(Ll,s,i,a);return o&&T(c,Nc,o),r(e.yParity==null||Pe(e.yParity,"sig.yParity")===c.yParity,"yParity mismatch"),r(e.yParityAndS==null||e.yParityAndS===c.yParityAndS,"yParityAndS mismatch"),c}};qu=new WeakMap,Ku=new WeakMap,Qu=new WeakMap,Nc=new WeakMap;let os=ds;var _i;const dc=class dc{constructor(e){j(this,_i);P(ba(e)===32,"invalid private key","privateKey","[REDACTED]"),T(this,_i,H(e))}get privateKey(){return w(this,_i)}get publicKey(){return dc.computePublicKey(w(this,_i))}get compressedPublicKey(){return dc.computePublicKey(w(this,_i),!0)}sign(e){P(ba(e)===32,"invalid digest length","digest",e);const r=Ro.sign(tr(e),tr(w(this,_i)),{lowS:!0});return os.from({r:In(r.r,32),s:In(r.s,32),v:r.recovery?28:27})}computeSharedSecret(e){const r=dc.computePublicKey(e);return H(Ro.getSharedSecret(tr(w(this,_i)),Q(r),!1))}static computePublicKey(e,r){let n=Q(e,"key");if(n.length===32){const i=Ro.getPublicKey(n,!!r);return H(i)}if(n.length===64){const i=new Uint8Array(65);i[0]=4,i.set(n,1),n=i}const s=Ro.ProjectivePoint.fromHex(n);return H(s.toRawBytes(r))}static recoverPublicKey(e,r){P(ba(e)===32,"invalid digest length","digest",e);const n=os.from(r);let s=Ro.Signature.fromCompact(tr(Le([n.r,n.s])));s=s.addRecoveryBit(n.yParity);const i=s.recoverPublicKey(tr(e));return P(i!=null,"invalid signautre for digest","signature",r),"0x"+i.toHex(!1)}static addPoints(e,r,n){const s=Ro.ProjectivePoint.fromHex(dc.computePublicKey(e).substring(2)),i=Ro.ProjectivePoint.fromHex(dc.computePublicKey(r).substring(2));return"0x"+s.add(i).toHex(!!n)}};_i=new WeakMap;let Rs=dc;function Vre(){Va.lock(),Ne.lock(),bi.lock(),Rr.lock(),Ha.lock(),za.lock(),Ga.lock(),Kr.lock(),m1.lock(),Rr.lock()}const Hre=BigInt(0),zre=BigInt(36);function m8(t){t=t.toLowerCase();const e=t.substring(2).split(""),r=new Uint8Array(40);for(let s=0;s<40;s++)r[s]=e[s].charCodeAt(0);const n=Q(Ne(r));for(let s=0;s<40;s+=2)n[s>>1]>>4>=8&&(e[s]=e[s].toUpperCase()),(n[s>>1]&15)>=8&&(e[s+1]=e[s+1].toUpperCase());return"0x"+e.join("")}const T5={};for(let t=0;t<10;t++)T5[String(t)]=String(t);for(let t=0;t<26;t++)T5[String.fromCharCode(65+t)]=String(10+t);const x8=15;function IN(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(n=>T5[n]).join("");for(;e.length>=x8;){let n=e.substring(0,x8);e=parseInt(n,10)%97+e.substring(n.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}const Gre=function(){const t={};for(let e=0;e<36;e++){const r="0123456789abcdefghijklmnopqrstuvwxyz"[e];t[r]=BigInt(e)}return t}();function qre(t){t=t.toLowerCase();let e=Hre;for(let r=0;re.format()).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return this.type==="string"}get tupleName(){if(this.type!=="tuple")throw TypeError("not a tuple");return w(this,_c)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return w(this,_c)===!0?-1:w(this,_c)===!1?this.value.length:null}static from(e,r){return new Ti(Si,e,r)}static uint8(e){return he(e,8)}static uint16(e){return he(e,16)}static uint24(e){return he(e,24)}static uint32(e){return he(e,32)}static uint40(e){return he(e,40)}static uint48(e){return he(e,48)}static uint56(e){return he(e,56)}static uint64(e){return he(e,64)}static uint72(e){return he(e,72)}static uint80(e){return he(e,80)}static uint88(e){return he(e,88)}static uint96(e){return he(e,96)}static uint104(e){return he(e,104)}static uint112(e){return he(e,112)}static uint120(e){return he(e,120)}static uint128(e){return he(e,128)}static uint136(e){return he(e,136)}static uint144(e){return he(e,144)}static uint152(e){return he(e,152)}static uint160(e){return he(e,160)}static uint168(e){return he(e,168)}static uint176(e){return he(e,176)}static uint184(e){return he(e,184)}static uint192(e){return he(e,192)}static uint200(e){return he(e,200)}static uint208(e){return he(e,208)}static uint216(e){return he(e,216)}static uint224(e){return he(e,224)}static uint232(e){return he(e,232)}static uint240(e){return he(e,240)}static uint248(e){return he(e,248)}static uint256(e){return he(e,256)}static uint(e){return he(e,256)}static int8(e){return he(e,-8)}static int16(e){return he(e,-16)}static int24(e){return he(e,-24)}static int32(e){return he(e,-32)}static int40(e){return he(e,-40)}static int48(e){return he(e,-48)}static int56(e){return he(e,-56)}static int64(e){return he(e,-64)}static int72(e){return he(e,-72)}static int80(e){return he(e,-80)}static int88(e){return he(e,-88)}static int96(e){return he(e,-96)}static int104(e){return he(e,-104)}static int112(e){return he(e,-112)}static int120(e){return he(e,-120)}static int128(e){return he(e,-128)}static int136(e){return he(e,-136)}static int144(e){return he(e,-144)}static int152(e){return he(e,-152)}static int160(e){return he(e,-160)}static int168(e){return he(e,-168)}static int176(e){return he(e,-176)}static int184(e){return he(e,-184)}static int192(e){return he(e,-192)}static int200(e){return he(e,-200)}static int208(e){return he(e,-208)}static int216(e){return he(e,-216)}static int224(e){return he(e,-224)}static int232(e){return he(e,-232)}static int240(e){return he(e,-240)}static int248(e){return he(e,-248)}static int256(e){return he(e,-256)}static int(e){return he(e,-256)}static bytes1(e){return Ke(e,1)}static bytes2(e){return Ke(e,2)}static bytes3(e){return Ke(e,3)}static bytes4(e){return Ke(e,4)}static bytes5(e){return Ke(e,5)}static bytes6(e){return Ke(e,6)}static bytes7(e){return Ke(e,7)}static bytes8(e){return Ke(e,8)}static bytes9(e){return Ke(e,9)}static bytes10(e){return Ke(e,10)}static bytes11(e){return Ke(e,11)}static bytes12(e){return Ke(e,12)}static bytes13(e){return Ke(e,13)}static bytes14(e){return Ke(e,14)}static bytes15(e){return Ke(e,15)}static bytes16(e){return Ke(e,16)}static bytes17(e){return Ke(e,17)}static bytes18(e){return Ke(e,18)}static bytes19(e){return Ke(e,19)}static bytes20(e){return Ke(e,20)}static bytes21(e){return Ke(e,21)}static bytes22(e){return Ke(e,22)}static bytes23(e){return Ke(e,23)}static bytes24(e){return Ke(e,24)}static bytes25(e){return Ke(e,25)}static bytes26(e){return Ke(e,26)}static bytes27(e){return Ke(e,27)}static bytes28(e){return Ke(e,28)}static bytes29(e){return Ke(e,29)}static bytes30(e){return Ke(e,30)}static bytes31(e){return Ke(e,31)}static bytes32(e){return Ke(e,32)}static address(e){return new Ti(Si,"address",e)}static bool(e){return new Ti(Si,"bool",!!e)}static bytes(e){return new Ti(Si,"bytes",e)}static string(e){return new Ti(Si,"string",e)}static array(e,r){throw new Error("not implemented yet")}static tuple(e,r){throw new Error("not implemented yet")}static overrides(e){return new Ti(Si,"overrides",Object.assign({},e))}static isTyped(e){return e&&typeof e=="object"&&"_typedSymbol"in e&&e._typedSymbol===b8}static dereference(e,r){if(Ti.isTyped(e)){if(e.type!==r)throw new Error(`invalid type: expecetd ${r}, got ${e.type}`);return e.value}return e}};_c=new WeakMap;let gr=Ti;class Jre extends vo{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,r){let n=gr.dereference(r,"string");try{n=Te(n)}catch(s){return this._throwError(s.message,r)}return e.writeValue(n)}decode(e){return Te(In(e.readValue(),20))}}class Yre extends vo{constructor(r){super(r.name,r.type,"_",r.dynamic);N(this,"coder");this.coder=r}defaultValue(){return this.coder.defaultValue()}encode(r,n){return this.coder.encode(r,n)}decode(r){return this.coder.decode(r)}}function RN(t,e,r){let n=[];if(Array.isArray(r))n=r;else if(r&&typeof r=="object"){let c={};n=e.map(l=>{const u=l.localName;return z(u,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:l},value:r}),z(!c[u],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:l},value:r}),c[u]=!0,r[u]})}else P(!1,"invalid tuple value","tuple",r);P(e.length===n.length,"types/value length mismatch","tuple",r);let s=new Mw,i=new Mw,o=[];e.forEach((c,l)=>{let u=n[l];if(c.dynamic){let f=i.length;c.encode(i,u);let d=s.writeUpdatableValue();o.push(h=>{d(h+f)})}else c.encode(s,u)}),o.forEach(c=>{c(s.length)});let a=t.appendWriter(s);return a+=t.appendWriter(i),a}function NN(t,e){let r=[],n=[],s=t.subReader(0);return e.forEach(i=>{let o=null;if(i.dynamic){let a=t.readIndex(),c=s.subReader(a);try{o=i.decode(c)}catch(l){if(Ht(l,"BUFFER_OVERRUN"))throw l;o=l,o.baseType=i.name,o.name=i.localName,o.type=i.type}}else try{o=i.decode(t)}catch(a){if(Ht(a,"BUFFER_OVERRUN"))throw a;o=a,o.baseType=i.name,o.name=i.localName,o.type=i.type}if(o==null)throw new Error("investigate");r.push(o),n.push(i.localName||null)}),pl.fromItems(r,n)}class Xre extends vo{constructor(r,n,s){const i=r.type+"["+(n>=0?n:"")+"]",o=n===-1||r.dynamic;super("array",i,s,o);N(this,"coder");N(this,"length");fe(this,{coder:r,length:n})}defaultValue(){const r=this.coder.defaultValue(),n=[];for(let s=0;so||s<-(o+ine))&&this._throwError("value out-of-bounds",n),s=Ng(s,8*Hr)}else(sca(i,this.size*8))&&this._throwError("value out-of-bounds",n);return r.writeValue(s)}decode(r){let n=ca(r.readValue(),this.size*8);return this.signed&&(n=p0(n,this.size*8)),n}}class cne extends _N{constructor(e){super("string",e)}defaultValue(){return""}encode(e,r){return super.encode(e,mt(gr.dereference(r,"string")))}decode(e){return Ds(super.decode(e))}}class pp extends vo{constructor(r,n){let s=!1;const i=[];r.forEach(a=>{a.dynamic&&(s=!0),i.push(a.type)});const o="tuple("+i.join(",")+")";super("tuple",o,n,s);N(this,"coders");fe(this,{coders:Object.freeze(r.slice())})}defaultValue(){const r=[];this.coders.forEach(s=>{r.push(s.defaultValue())});const n=this.coders.reduce((s,i)=>{const o=i.localName;return o&&(s[o]||(s[o]=0),s[o]++),s},{});return this.coders.forEach((s,i)=>{let o=s.localName;!o||n[o]!==1||(o==="length"&&(o="_length"),r[o]==null&&(r[o]=r[i]))}),Object.freeze(r)}encode(r,n){const s=gr.dereference(n,"tuple");return RN(r,this.coders,s)}decode(r){return NN(r,this.coders)}}function Qr(t){return Ne(mt(t))}var lne="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const w8=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),C8=4;function une(t){let e=0;function r(){return t[e++]<<8|t[e++]}let n=r(),s=1,i=[0,1];for(let S=1;S>--c&1}const f=31,d=2**f,h=d>>>1,y=h>>1,p=d-1;let b=0;for(let S=0;S1;){let F=I+R>>>1;S>>1|u(),_=_<<1^h,V=(V^h)<<1|h|1;g=_,x=1+V-_}let k=n-4;return v.map(S=>{switch(S-k){case 3:return k+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return k+256+(t[a++]<<8|t[a++]);case 1:return k+t[a++];default:return S-1}})}function fne(t){let e=0;return()=>t[e++]}function MN(t){return fne(une(dne(t)))}function dne(t){let e=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((s,i)=>e[s.charCodeAt(0)]=i);let r=t.length,n=new Uint8Array(6*r>>3);for(let s=0,i=0,o=0,a=0;s=8&&(n[i++]=a>>(o-=8));return n}function hne(t){return t&1?~t>>1:t>>1}function pne(t,e){let r=Array(t);for(let n=0,s=0;n{let e=g0(t);if(e.length)return e})}function BN(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(yne(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(vne(r,t))}return e.flat()}function m0(t){let e=[];for(;;){let r=t(e.length);if(!r)break;e.push(r)}return e}function LN(t,e,r){let n=Array(t).fill().map(()=>[]);for(let s=0;sn[o].push(i));return n}function yne(t,e){let r=1+e(),n=e(),s=m0(e);return LN(s.length,1+t,e).flatMap((o,a)=>{let[c,...l]=o;return Array(s[a]).fill().map((u,f)=>{let d=f*n;return[c+f*r,l.map(h=>h+d)]})})}function vne(t,e){let r=1+e();return LN(r,1+t,e).map(s=>[s[0],s.slice(1)])}function gne(t){let e=[],r=g0(t);return s(n([]),[]),e;function n(i){let o=t(),a=m0(()=>{let c=g0(t).map(l=>r[l]);if(c.length)return n(c)});return{S:o,B:a,Q:i}}function s({S:i,B:o},a,c){if(!(i&4&&c===a[a.length-1])){i&2&&(c=a[a.length-1]),i&1&&e.push(a);for(let l of o)for(let u of l.Q)s(l,[...a,u],c)}}}function mne(t){return t.toString(16).toUpperCase().padStart(2,"0")}function jN(t){return`{${mne(t)}}`}function xne(t){let e=[];for(let r=0,n=t.length;r>24&255}function $N(t){return t&16777215}let Ww,E8,Vw,qp;function Tne(){let t=MN(wne);Ww=new Map(DN(t).flatMap((e,r)=>e.map(n=>[n,r+1<<24]))),E8=new Set(g0(t)),Vw=new Map,qp=new Map;for(let[e,r]of BN(t)){if(!E8.has(e)&&r.length==2){let[n,s]=r,i=qp.get(n);i||(i=new Map,qp.set(n,i)),i.set(s,e)}Vw.set(e,r.reverse())}}function WN(t){return t>=x0&&t=sv&&t=iv&&eov&&e0&&s(ov+l)}else{let o=Vw.get(i);o?r.push(...o):s(i)}if(!r.length)break;i=r.pop()}if(n&&e.length>1){let i=th(e[0]);for(let o=1;o0&&s>=o)o==0?(e.push(n,...r),r.length=0,n=a):r.push(a),s=o;else{let c=Pne(n,a);c>=0?n=c:s==0&&o==0?(e.push(n),n=a):(r.push(a),s=o)}}return n>=0&&e.push(n,...r),e}function HN(t){return VN(t).map($N)}function One(t){return Ine(VN(t))}const k8=45,zN=".",GN=65039,qN=1,cv=t=>Array.from(t);function b0(t,e){return t.P.has(e)||t.Q.has(e)}class Rne extends Array{get is_emoji(){return!0}}let Hw,KN,xc,zw,QN,Nu,Ex,ql,ic,A8,Gw;function O5(){if(Hw)return;let t=MN(lne);const e=()=>g0(t),r=()=>new Set(e()),n=(u,f)=>f.forEach(d=>u.add(d));Hw=new Map(BN(t)),KN=r(),xc=e(),zw=new Set(e().map(u=>xc[u])),xc=new Set(xc),QN=r(),r();let s=DN(t),i=t();const o=()=>{let u=new Set;return e().forEach(f=>n(u,s[f])),n(u,e()),u};Nu=m0(u=>{let f=m0(t).map(d=>d+96);if(f.length){let d=u>=i;f[0]-=32,f=Kf(f),d&&(f=`Restricted[${f}]`);let h=o(),y=o(),p=!t();return{N:f,P:h,Q:y,M:p,R:d}}}),Ex=r(),ql=new Map;let a=e().concat(cv(Ex)).sort((u,f)=>u-f);a.forEach((u,f)=>{let d=t(),h=a[f]=d?a[f-d]:{V:[],M:new Map};h.V.push(u),Ex.has(u)||ql.set(u,h)});for(let{V:u,M:f}of new Set(ql.values())){let d=[];for(let y of u){let p=Nu.filter(v=>b0(v,y)),b=d.find(({G:v})=>p.some(g=>v.has(g)));b||(b={G:new Set,V:[]},d.push(b)),b.V.push(y),n(b.G,p)}let h=d.flatMap(y=>cv(y.G));for(let{G:y,V:p}of d){let b=new Set(h.filter(v=>!y.has(v)));for(let v of p)f.set(v,b)}}ic=new Set;let c=new Set;const l=u=>ic.has(u)?c.add(u):ic.add(u);for(let u of Nu){for(let f of u.P)l(f);for(let f of u.Q)l(f)}for(let u of ic)!ql.has(u)&&!c.has(u)&&ql.set(u,qN);n(ic,HN(ic)),A8=gne(t).map(u=>Rne.from(u)).sort(bne),Gw=new Map;for(let u of A8){let f=[Gw];for(let d of u){let h=f.map(y=>{let p=y.get(d);return p||(p=new Map,y.set(d,p)),p});d===GN?f.push(...h):f=h}for(let d of f)d.V=u}}function R5(t){return(JN(t)?"":`${N5(Lg([t]))} `)+jN(t)}function N5(t){return`"${t}"‎`}function Nne(t){if(t.length>=4&&t[2]==k8&&t[3]==k8)throw new Error(`invalid label extension: "${Kf(t.slice(0,4))}"`)}function _ne(t){for(let r=t.lastIndexOf(95);r>0;)if(t[--r]!==95)throw new Error("underscore allowed only at start")}function Mne(t){let e=t[0],r=w8.get(e);if(r)throw Sh(`leading ${r}`);let n=t.length,s=-1;for(let i=1;ie&&(e>>=1,t=[...t.slice(0,e),8230,...t.slice(-e)]);let s=0,i=t.length;for(let o=0;o{let i=xne(s),o={input:i,offset:n};n+=i.length+1;try{let a=o.tokens=Wne(i,e,r),c=a.length,l;if(!c)throw new Error("empty label");let u=o.output=a.flat();if(_ne(u),!(o.emoji=c>1||a[0].is_emoji)&&u.every(d=>d<128))Nne(u),l="ASCII";else{let d=a.flatMap(h=>h.is_emoji?[]:h);if(!d.length)l="Emoji";else{if(xc.has(u[0]))throw Sh("leading combining mark");for(let p=1;po.has(a)):cv(o),!r.length)return}else n.push(s)}if(r){for(let s of r)if(n.every(i=>b0(s,i)))throw new Error(`whole-script confusable: ${t.N}/${s.N}`)}}function Fne(t){let e=Nu;for(let r of t){let n=e.filter(s=>b0(s,r));if(!n.length)throw Nu.some(s=>b0(s,r))?XN(e[0],r):YN(r);if(e=n,n.length==1)break}return e}function Une(t){return t.map(({input:e,error:r,output:n})=>{if(r){let s=r.message;throw new Error(t.length==1?s:`Invalid label ${N5(Lg(e,63))}: ${s}`)}return Kf(n)}).join(zN)}function YN(t){return new Error(`disallowed character: ${R5(t)}`)}function XN(t,e){let r=R5(e),n=Nu.find(s=>s.P.has(e));return n&&(r=`${n.N} ${r}`),new Error(`illegal mixture: ${t.N} + ${r}`)}function Sh(t){return new Error(`illegal placement: ${t}`)}function $ne(t,e){for(let r of e)if(!b0(t,r))throw XN(t,r);if(t.M){let r=HN(e);for(let n=1,s=r.length;nC8)throw new Error(`excessive non-spacing marks: ${N5(Lg(r.slice(n-1,i)))} (${i-n}/${C8})`);n=i}}}function Wne(t,e,r){let n=[],s=[];for(t=t.slice().reverse();t.length;){let i=Hne(t);if(i)s.length&&(n.push(e(s)),s=[]),n.push(r(i));else{let o=t.pop();if(ic.has(o))s.push(o);else{let a=Hw.get(o);if(a)s.push(...a);else if(!KN.has(o))throw YN(o)}}}return s.length&&n.push(e(s)),n}function Vne(t){return t.filter(e=>e!=GN)}function Hne(t,e){let r=Gw,n,s=t.length;for(;s&&(r=r.get(t[--s]),!!r);){let{V:i}=r;i&&(n=i,t.length=s)}return n}const ZN=new Uint8Array(32);ZN.fill(0);function S8(t){return P(t.length!==0,"invalid ENS name; empty component","comp",t),t}function _5(t){const e=mt(e7(t)),r=[];if(t.length===0)return r;let n=0;for(let s=0;s{P(n.length<=r,`label ${JSON.stringify(t)} exceeds ${r} bytes`,"name",t);const s=new Uint8Array(n.length+1);return s.set(n,1),s[0]=s.length-1,s})))+"00"}function kx(t,e){return{address:Te(t),storageKeys:e.map((r,n)=>(P(et(r,32),"invalid slot",`storageKeys[${n}]`,r),r.toLowerCase()))}}function go(t){if(Array.isArray(t))return t.map((r,n)=>Array.isArray(r)?(P(r.length===2,"invalid slot set",`value[${n}]`,r),kx(r[0],r[1])):(P(r!=null&&typeof r=="object","invalid address-slot set","value",t),kx(r.address,r.storageKeys)));P(t!=null&&typeof t=="object","invalid access list","value",t);const e=Object.keys(t).map(r=>{const n=t[r].reduce((s,i)=>(s[i]=!0,s),{});return kx(r,Object.keys(n).sort())});return e.sort((r,n)=>r.address.localeCompare(n.address)),e}function wd(t){let e;return typeof t=="string"?e=Rs.computePublicKey(t,!1):e=t.publicKey,Te(Ne("0x"+e.substring(4)).substring(26))}function Jf(t,e){return wd(Rs.recoverPublicKey(t,e))}const Xt=BigInt(0),Gne=BigInt(2),qne=BigInt(27),Kne=BigInt(28),Qne=BigInt(35),Jne=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Ax=4096*32;function T8(t,e){let r=t.toString(16);for(;r.length<2;)r="0"+r;return r+=Kr(e).substring(4),"0x"+r}function jg(t){return t==="0x"?null:Te(t)}function M5(t,e){try{return go(t)}catch(r){P(!1,r.message,e,t)}}function b1(t,e){return t==="0x"?0:Pe(t,e)}function Dt(t,e){if(t==="0x")return Xt;const r=ve(t,e);return P(r<=Jne,"value exceeds uint size",e,r),r}function ht(t,e){const r=ve(t,"value"),n=rr(r);return P(n.length<=32,"value too large",`tx.${e}`,r),n}function D5(t){return go(t).map(e=>[e.address,e.storageKeys])}function Yne(t,e){P(Array.isArray(t),`invalid ${e}`,"value",t);for(let r=0;rs.data),r.map(s=>s.commitment),r.map(s=>s.proof)])]):Le(["0x03",Na(n)])}var Js,Ju,Yu,Xu,Zu,ef,tf,rf,nf,sf,of,af,Mc,Wo,Mi,Vo,cf,Kp;const Pi=class Pi{constructor(){j(this,cf);j(this,Js);j(this,Ju);j(this,Yu);j(this,Xu);j(this,Zu);j(this,ef);j(this,tf);j(this,rf);j(this,nf);j(this,sf);j(this,of);j(this,af);j(this,Mc);j(this,Wo);j(this,Mi);j(this,Vo);T(this,Js,null),T(this,Ju,null),T(this,Xu,0),T(this,Zu,Xt),T(this,ef,null),T(this,tf,null),T(this,rf,null),T(this,Yu,"0x"),T(this,nf,Xt),T(this,sf,Xt),T(this,of,null),T(this,af,null),T(this,Mc,null),T(this,Wo,null),T(this,Vo,null),T(this,Mi,null)}get type(){return w(this,Js)}set type(e){switch(e){case null:T(this,Js,null);break;case 0:case"legacy":T(this,Js,0);break;case 1:case"berlin":case"eip-2930":T(this,Js,1);break;case 2:case"london":case"eip-1559":T(this,Js,2);break;case 3:case"cancun":case"eip-4844":T(this,Js,3);break;default:P(!1,"unsupported transaction type","type",e)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844"}return null}get to(){const e=w(this,Ju);return e==null&&this.type===3?xi:e}set to(e){T(this,Ju,e==null?null:Te(e))}get nonce(){return w(this,Xu)}set nonce(e){T(this,Xu,Pe(e,"value"))}get gasLimit(){return w(this,Zu)}set gasLimit(e){T(this,Zu,ve(e))}get gasPrice(){const e=w(this,ef);return e==null&&(this.type===0||this.type===1)?Xt:e}set gasPrice(e){T(this,ef,e==null?null:ve(e,"gasPrice"))}get maxPriorityFeePerGas(){const e=w(this,tf);return e??(this.type===2||this.type===3?Xt:null)}set maxPriorityFeePerGas(e){T(this,tf,e==null?null:ve(e,"maxPriorityFeePerGas"))}get maxFeePerGas(){const e=w(this,rf);return e??(this.type===2||this.type===3?Xt:null)}set maxFeePerGas(e){T(this,rf,e==null?null:ve(e,"maxFeePerGas"))}get data(){return w(this,Yu)}set data(e){T(this,Yu,H(e))}get value(){return w(this,nf)}set value(e){T(this,nf,ve(e,"value"))}get chainId(){return w(this,sf)}set chainId(e){T(this,sf,ve(e))}get signature(){return w(this,of)||null}set signature(e){T(this,of,e==null?null:os.from(e))}get accessList(){const e=w(this,af)||null;return e??(this.type===1||this.type===2||this.type===3?[]:null)}set accessList(e){T(this,af,e==null?null:go(e))}get maxFeePerBlobGas(){const e=w(this,Mc);return e==null&&this.type===3?Xt:e}set maxFeePerBlobGas(e){T(this,Mc,e==null?null:ve(e,"maxFeePerBlobGas"))}get blobVersionedHashes(){let e=w(this,Wo);return e==null&&this.type===3?[]:e}set blobVersionedHashes(e){if(e!=null){P(Array.isArray(e),"blobVersionedHashes must be an Array","value",e),e=e.slice();for(let r=0;rObject.assign({},e))}set blobs(e){if(e==null){T(this,Vo,null);return}const r=[],n=[];for(let s=0;s=0?2:e.pop()}inferTypes(){const e=this.gasPrice!=null,r=this.maxFeePerGas!=null||this.maxPriorityFeePerGas!=null,n=this.accessList!=null,s=w(this,Mc)!=null||w(this,Wo);this.maxFeePerGas!=null&&this.maxPriorityFeePerGas!=null&&z(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),z(!r||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),z(this.type!==0||!n,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const i=[];return this.type!=null?i.push(this.type):r?i.push(2):e?(i.push(1),n||i.push(0)):n?(i.push(1),i.push(2)):(s&&this.to||(i.push(0),i.push(1),i.push(2)),i.push(3)),i.sort(),i}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}clone(){return Pi.from(this)}toJSON(){const e=r=>r==null?null:r.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(e){if(e==null)return new Pi;if(typeof e=="string"){const n=Q(e);if(n[0]>=127)return Pi.from(Xne(n));switch(n[0]){case 1:return Pi.from(rse(n));case 2:return Pi.from(ese(n));case 3:return Pi.from(sse(n))}z(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const r=new Pi;return e.type!=null&&(r.type=e.type),e.to!=null&&(r.to=e.to),e.nonce!=null&&(r.nonce=e.nonce),e.gasLimit!=null&&(r.gasLimit=e.gasLimit),e.gasPrice!=null&&(r.gasPrice=e.gasPrice),e.maxPriorityFeePerGas!=null&&(r.maxPriorityFeePerGas=e.maxPriorityFeePerGas),e.maxFeePerGas!=null&&(r.maxFeePerGas=e.maxFeePerGas),e.maxFeePerBlobGas!=null&&(r.maxFeePerBlobGas=e.maxFeePerBlobGas),e.data!=null&&(r.data=e.data),e.value!=null&&(r.value=e.value),e.chainId!=null&&(r.chainId=e.chainId),e.signature!=null&&(r.signature=os.from(e.signature)),e.accessList!=null&&(r.accessList=e.accessList),e.blobVersionedHashes!=null&&(r.blobVersionedHashes=e.blobVersionedHashes),e.kzg!=null&&(r.kzg=e.kzg),e.blobs!=null&&(r.blobs=e.blobs),e.hash!=null&&(P(r.isSigned(),"unsigned transaction cannot define '.hash'","tx",e),P(r.hash===e.hash,"hash mismatch","tx",e)),e.from!=null&&(P(r.isSigned(),"unsigned transaction cannot define '.from'","tx",e),P(r.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),r}};Js=new WeakMap,Ju=new WeakMap,Yu=new WeakMap,Xu=new WeakMap,Zu=new WeakMap,ef=new WeakMap,tf=new WeakMap,rf=new WeakMap,nf=new WeakMap,sf=new WeakMap,of=new WeakMap,af=new WeakMap,Mc=new WeakMap,Wo=new WeakMap,Mi=new WeakMap,Vo=new WeakMap,cf=new WeakSet,Kp=function(e,r){z(!e||this.signature!=null,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});const n=e?this.signature:null;switch(this.inferType()){case 0:return Zne(this,n);case 1:return nse(this,n);case 2:return tse(this,n);case 3:return ise(this,n,r?this.blobs:null)}z(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})};let vl=Pi;function Fg(t){return typeof t=="string"&&(t=mt(t)),Ne(Le([mt(PN),mt(String(t.length)),t]))}function r7(t,e){const r=Fg(t);return Jf(r,e)}const ose=new RegExp("^bytes([0-9]+)$"),ase=new RegExp("^(u?int)([0-9]*)$"),cse=new RegExp("^(.*)\\[([0-9]*)\\]$");function n7(t,e,r){switch(t){case"address":return Q(r?rs(e,32):Te(e));case"string":return mt(e);case"bytes":return Q(e);case"bool":return e=e?"0x01":"0x00",Q(r?rs(e,32):e)}let n=t.match(ase);if(n){let s=n[1]==="int",i=parseInt(n[2]||"256");return P((!n[2]||n[2]===String(i))&&i%8===0&&i!==0&&i<=256,"invalid number type","type",t),r&&(i=256),s&&(e=Ng(e,i)),Q(rs(rr(e),i/8))}if(n=t.match(ose),n){const s=parseInt(n[1]);return P(String(s)===n[1]&&s!==0&&s<=32,"invalid bytes type","type",t),P(ba(e)===s,`invalid value for ${t}`,"value",e),r?Q(Og(e,32)):e}if(n=t.match(cse),n&&Array.isArray(e)){const s=n[1],i=parseInt(n[2]||String(e.length));P(i===e.length,`invalid array length for ${t}`,"value",e);const o=[];return e.forEach(function(a){o.push(n7(s,a,!0))}),Q(Le(o))}P(!1,"invalid type","type",t)}function De(t,e){P(t.length===e.length,"wrong number of values; expected ${ types.length }","values",e);const r=[];return t.forEach(function(n,s){r.push(n7(n,e[s]))}),H(Le(r))}function eo(t,e){return Ne(De(t,e))}function lse(t,e){return Kr(De(t,e))}const s7=new Uint8Array(32);s7.fill(0);const use=BigInt(-1),i7=BigInt(0),o7=BigInt(1),fse=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function dse(t){const e=Q(t),r=e.length%32;return r?Le([e,s7.slice(r)]):H(e)}const hse=In(o7,32),pse=In(i7,32),P8={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Sx=["name","version","chainId","verifyingContract","salt"];function I8(t){return function(e){return P(typeof e=="string",`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const yse={name:I8("name"),version:I8("version"),chainId:function(t){const e=ve(t,"domain.chainId");return P(e>=0,"invalid chain ID","domain.chainId",t),Number.isSafeInteger(e)?Number(e):pr(e)},verifyingContract:function(t){try{return Te(t).toLowerCase()}catch{}P(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){const e=Q(t,"domain.salt");return P(e.length===32,'invalid domain value "salt"',"domain.salt",t),H(e)}};function Tx(t){{const e=t.match(/^(u?)int(\d+)$/);if(e){const r=e[1]==="",n=parseInt(e[2]);P(n%8===0&&n!==0&&n<=256&&e[2]===String(n),"invalid numeric width","type",t);const s=ca(fse,r?n-1:n),i=r?(s+o7)*use:i7;return function(o){const a=ve(o,"value");return P(a>=i&&a<=s,`value out-of-bounds for ${t}`,"value",a),In(r?Ng(a,256):a,32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return P(r!==0&&r<=32&&e[1]===String(r),"invalid bytes width","type",t),function(n){const s=Q(n);return P(s.length===r,`invalid length for ${t}`,"value",n),dse(n)}}}switch(t){case"address":return function(e){return rs(Te(e),32)};case"bool":return function(e){return e?hse:pse};case"bytes":return function(e){return Ne(e)};case"string":return function(e){return Qr(e)}}return null}function O8(t,e){return`${t}(${e.map(({name:r,type:n})=>n+" "+r).join(",")})`}function yp(t){const e=t.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return e?{base:e[1],index:e[2]+e[4],array:{base:e[1],prefix:e[1]+e[2],count:e[5]?parseInt(e[5]):-1}}:{base:t}}var j0,Di,lf,Nv,a7;const $n=class $n{constructor(e){j(this,Nv);N(this,"primaryType");j(this,j0);j(this,Di);j(this,lf);T(this,Di,new Map),T(this,lf,new Map);const r=new Map,n=new Map,s=new Map,i={};Object.keys(e).forEach(c=>{i[c]=e[c].map(({name:l,type:u})=>{let{base:f,index:d}=yp(u);return f==="int"&&!e.int&&(f="int256"),f==="uint"&&!e.uint&&(f="uint256"),{name:l,type:f+(d||"")}}),r.set(c,new Set),n.set(c,[]),s.set(c,new Set)}),T(this,j0,JSON.stringify(i));for(const c in i){const l=new Set;for(const u of i[c]){P(!l.has(u.name),`duplicate variable name ${JSON.stringify(u.name)} in ${JSON.stringify(c)}`,"types",e),l.add(u.name);const f=yp(u.type).base;P(f!==c,`circular type reference to ${JSON.stringify(f)}`,"types",e),!Tx(f)&&(P(n.has(f),`unknown type ${JSON.stringify(f)}`,"types",e),n.get(f).push(c),r.get(c).add(f))}}const o=Array.from(n.keys()).filter(c=>n.get(c).length===0);P(o.length!==0,"missing primary type","types",e),P(o.length===1,`ambiguous primary types or unused types: ${o.map(c=>JSON.stringify(c)).join(", ")}`,"types",e),fe(this,{primaryType:o[0]});function a(c,l){P(!l.has(c),`circular type reference to ${JSON.stringify(c)}`,"types",e),l.add(c);for(const u of r.get(c))if(n.has(u)){a(u,l);for(const f of l)s.get(f).add(u)}l.delete(c)}a(this.primaryType,new Set);for(const[c,l]of s){const u=Array.from(l);u.sort(),w(this,Di).set(c,O8(c,i[c])+u.map(f=>O8(f,i[f])).join(""))}}get types(){return JSON.parse(w(this,j0))}getEncoder(e){let r=w(this,lf).get(e);return r||(r=Y(this,Nv,a7).call(this,e),w(this,lf).set(e,r)),r}encodeType(e){const r=w(this,Di).get(e);return P(r,`unknown type: ${JSON.stringify(e)}`,"name",e),r}encodeData(e,r){return this.getEncoder(e)(r)}hashStruct(e,r){return Ne(this.encodeData(e,r))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,r,n){if(Tx(e))return n(e,r);const s=yp(e).array;if(s)return P(s.count===-1||s.count===r.length,`array length mismatch; expected length ${s.count}`,"value",r),r.map(o=>this._visit(s.prefix,o,n));const i=this.types[e];if(i)return i.reduce((o,{name:a,type:c})=>(o[a]=this._visit(c,r[a],n),o),{});P(!1,`unknown type: ${e}`,"type",e)}visit(e,r){return this._visit(this.primaryType,e,r)}static from(e){return new $n(e)}static getPrimaryType(e){return $n.from(e).primaryType}static hashStruct(e,r,n){return $n.from(r).hashStruct(e,n)}static hashDomain(e){const r=[];for(const n in e){if(e[n]==null)continue;const s=P8[n];P(s,`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),r.push({name:n,type:s})}return r.sort((n,s)=>Sx.indexOf(n.name)-Sx.indexOf(s.name)),$n.hashStruct("EIP712Domain",{EIP712Domain:r},e)}static encode(e,r,n){return Le(["0x1901",$n.hashDomain(e),$n.from(r).hash(n)])}static hash(e,r,n){return Ne($n.encode(e,r,n))}static async resolveNames(e,r,n,s){e=Object.assign({},e);for(const a in e)e[a]==null&&delete e[a];const i={};e.verifyingContract&&!et(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const o=$n.from(r);o.visit(n,(a,c)=>(a==="address"&&!et(c,20)&&(i[c]="0x"),c));for(const a in i)i[a]=await s(a);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),n=o.visit(n,(a,c)=>a==="address"&&i[c]?i[c]:c),{domain:e,value:n}}static getPayload(e,r,n){$n.hashDomain(e);const s={},i=[];Sx.forEach(c=>{const l=e[c];l!=null&&(s[c]=yse[c](l),i.push({name:c,type:P8[c]}))});const o=$n.from(r);r=o.types;const a=Object.assign({},r);return P(a.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",r),a.EIP712Domain=i,o.encode(n),{types:a,domain:s,primaryType:o.primaryType,message:o.visit(n,(c,l)=>{if(c.match(/^bytes(\d*)/))return H(Q(l));if(c.match(/^u?int/))return ve(l).toString();switch(c){case"address":return l.toLowerCase();case"bool":return!!l;case"string":return P(typeof l=="string","invalid string","value",l),l}P(!1,"unsupported type","type",c)})}}};j0=new WeakMap,Di=new WeakMap,lf=new WeakMap,Nv=new WeakSet,a7=function(e){{const s=Tx(e);if(s)return s}const r=yp(e).array;if(r){const s=r.prefix,i=this.getEncoder(s);return o=>{P(r.count===-1||r.count===o.length,`array length mismatch; expected length ${r.count}`,"value",o);let a=o.map(i);return w(this,Di).has(s)&&(a=a.map(Ne)),Ne(Le(a))}}const n=this.types[e];if(n){const s=Qr(w(this,Di).get(e));return i=>{const o=n.map(({name:a,type:c})=>{const l=this.getEncoder(c)(i[a]);return w(this,Di).has(c)?Ne(l):l});return o.unshift(s),Le(o)}}P(!1,`unknown type: ${e}`,"type",e)};let Bs=$n;function vse(t,e,r,n){return Jf(Bs.hash(t,e,r),n)}function zr(t){const e=new Set;return t.forEach(r=>e.add(r)),Object.freeze(e)}const gse="external public payable override",mse=zr(gse.split(" ")),c7="constant external internal payable private public pure view override",xse=zr(c7.split(" ")),l7="constructor error event fallback function receive struct",u7=zr(l7.split(" ")),f7="calldata memory storage payable indexed",bse=zr(f7.split(" ")),wse="tuple returns",Cse=[l7,f7,wse,c7].join(" "),Ese=zr(Cse.split(" ")),kse={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},Ase=new RegExp("^(\\s*)"),Sse=new RegExp("^([0-9]+)"),Tse=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),d7=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),h7=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");var lr,xs,F0,qw;const _v=class _v{constructor(e){j(this,F0);j(this,lr);j(this,xs);T(this,lr,0),T(this,xs,e.slice())}get offset(){return w(this,lr)}get length(){return w(this,xs).length-w(this,lr)}clone(){return new _v(w(this,xs))}reset(){T(this,lr,0)}popKeyword(e){const r=this.peek();if(r.type!=="KEYWORD"||!e.has(r.text))throw new Error(`expected keyword ${r.text}`);return this.pop().text}popType(e){if(this.peek().type!==e){const r=this.peek();throw new Error(`expected ${e}; got ${r.type} ${JSON.stringify(r.text)}`)}return this.pop().text}popParen(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const r=Y(this,F0,qw).call(this,w(this,lr)+1,e.match+1);return T(this,lr,e.match+1),r}popParams(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const r=[];for(;w(this,lr)=w(this,xs).length)throw new Error("out-of-bounds");return w(this,xs)[w(this,lr)]}peekKeyword(e){const r=this.peekType("KEYWORD");return r!=null&&e.has(r)?r:null}peekType(e){if(this.length===0)return null;const r=this.peek();return r.type===e?r.text:null}pop(){const e=this.peek();return Ol(this,lr)._++,e}toString(){const e=[];for(let r=w(this,lr);r`}};lr=new WeakMap,xs=new WeakMap,F0=new WeakSet,qw=function(e=0,r=0){return new _v(w(this,xs).slice(e,r).map(n=>Object.freeze(Object.assign({},n,{match:n.match-e,linkBack:n.linkBack-e,linkNext:n.linkNext-e}))))};let Ls=_v;function qa(t){const e=[],r=o=>{const a=i0&&e[e.length-1].type==="NUMBER"){const f=e.pop().text;u=f+u,e[e.length-1].value=Pe(f)}if(e.length===0||e[e.length-1].type!=="BRACKET")throw new Error("missing opening bracket");e[e.length-1].text+=u}continue}if(a=o.match(Tse),a){if(c.text=a[1],i+=c.text.length,Ese.has(c.text)){c.type="KEYWORD";continue}if(c.text.match(h7)){c.type="TYPE";continue}c.type="ID";continue}if(a=o.match(Sse),a){c.text=a[1],c.type="NUMBER",i+=c.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(o[0])} at position ${i}`)}return new Ls(e.map(o=>Object.freeze(o)))}function R8(t,e){let r=[];for(const n in e.keys())t.has(n)&&r.push(n);if(r.length>1)throw new Error(`conflicting types: ${r.join(", ")}`)}function Ug(t,e){if(e.peekKeyword(u7)){const r=e.pop().text;if(r!==t)throw new Error(`expected ${t}, got ${r}`)}return e.popType("ID")}function co(t,e){const r=new Set;for(;;){const n=t.peekType("KEYWORD");if(n==null||e&&!e.has(n))break;if(t.pop(),r.has(n))throw new Error(`duplicate keywords: ${JSON.stringify(n)}`);r.add(n)}return Object.freeze(r)}function p7(t){let e=co(t,xse);return R8(e,zr("constant payable nonpayable".split(" "))),R8(e,zr("pure view payable nonpayable".split(" "))),e.has("view")?"view":e.has("pure")?"pure":e.has("payable")?"payable":e.has("nonpayable")?"nonpayable":e.has("constant")?"view":"nonpayable"}function to(t,e){return t.popParams().map(r=>or.from(r,e))}function y7(t){if(t.peekType("AT")){if(t.pop(),t.peekType("NUMBER"))return ve(t.pop().text);throw new Error("invalid gas")}return null}function gl(t){if(t.length)throw new Error(`unexpected tokens at offset ${t.offset}: ${t.toString()}`)}const Pse=new RegExp(/^(.*)\[([0-9]*)\]$/);function N8(t){const e=t.match(h7);if(P(e,"invalid type","type",t),t==="uint")return"uint256";if(t==="int")return"int256";if(e[2]){const r=parseInt(e[2]);P(r!==0&&r<=32,"invalid bytes length","type",t)}else if(e[3]){const r=parseInt(e[3]);P(r!==0&&r<=256&&r%8===0,"invalid numeric width","type",t)}return t}const wt={},pn=Symbol.for("_ethers_internal"),_8="_ParamTypeInternal",M8="_ErrorInternal",D8="_EventInternal",B8="_ConstructorInternal",L8="_FallbackInternal",j8="_FunctionInternal",F8="_StructInternal";var uf,Qp;const Wn=class Wn{constructor(e,r,n,s,i,o,a,c){j(this,uf);N(this,"name");N(this,"type");N(this,"baseType");N(this,"indexed");N(this,"components");N(this,"arrayLength");N(this,"arrayChildren");if(yo(e,wt,"ParamType"),Object.defineProperty(this,pn,{value:_8}),o&&(o=Object.freeze(o.slice())),s==="array"){if(a==null||c==null)throw new Error("")}else if(a!=null||c!=null)throw new Error("");if(s==="tuple"){if(o==null)throw new Error("")}else if(o!=null)throw new Error("");fe(this,{name:r,type:n,baseType:s,indexed:i,components:o,arrayLength:a,arrayChildren:c})}format(e){if(e==null&&(e="sighash"),e==="json"){const n=this.name||"";if(this.isArray()){const i=JSON.parse(this.arrayChildren.format("json"));return i.name=n,i.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(i)}const s={type:this.baseType==="tuple"?"tuple":this.type,name:n};return typeof this.indexed=="boolean"&&(s.indexed=this.indexed),this.isTuple()&&(s.components=this.components.map(i=>JSON.parse(i.format(e)))),JSON.stringify(s)}let r="";return this.isArray()?(r+=this.arrayChildren.format(e),r+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?r+="("+this.components.map(n=>n.format(e)).join(e==="full"?", ":",")+")":r+=this.type,e!=="sighash"&&(this.indexed===!0&&(r+=" indexed"),e==="full"&&this.name&&(r+=" "+this.name)),r}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(e,r){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(this.arrayLength!==-1&&e.length!==this.arrayLength)throw new Error("array is wrong length");const n=this;return e.map(s=>n.arrayChildren.walk(s,r))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const n=this;return e.map((s,i)=>n.components[i].walk(s,r))}return r(this.type,e)}async walkAsync(e,r){const n=[],s=[e];return Y(this,uf,Qp).call(this,n,e,r,i=>{s[0]=i}),n.length&&await Promise.all(n),s[0]}static from(e,r){if(Wn.isParamType(e))return e;if(typeof e=="string")try{return Wn.from(qa(e),r)}catch{P(!1,"invalid param type","obj",e)}else if(e instanceof Ls){let a="",c="",l=null;co(e,zr(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(c="tuple",l=e.popParams().map(p=>Wn.from(p)),a=`tuple(${l.map(p=>p.format()).join(",")})`):(a=N8(e.popType("TYPE")),c=a);let u=null,f=null;for(;e.length&&e.peekType("BRACKET");){const p=e.pop();u=new Wn(wt,"",a,c,null,l,f,u),f=p.value,a+=p.text,c="array",l=null}let d=null;if(co(e,bse).has("indexed")){if(!r)throw new Error("");d=!0}const y=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new Wn(wt,y,a,c,d,l,f,u)}const n=e.name;P(!n||typeof n=="string"&&n.match(d7),"invalid name","obj.name",n);let s=e.indexed;s!=null&&(P(r,"parameter cannot be indexed","obj.indexed",e.indexed),s=!!s);let i=e.type,o=i.match(Pse);if(o){const a=parseInt(o[2]||"-1"),c=Wn.from({type:o[1],components:e.components});return new Wn(wt,n||"",i,"array",s,null,a,c)}if(i==="tuple"||i.startsWith("tuple(")||i.startsWith("(")){const a=e.components!=null?e.components.map(l=>Wn.from(l)):null;return new Wn(wt,n||"",i,"tuple",s,a,null,null)}return i=N8(e.type),new Wn(wt,n||"",i,i,s,null,null,null)}static isParamType(e){return e&&e[pn]===_8}};uf=new WeakSet,Qp=function(e,r,n,s){if(this.isArray()){if(!Array.isArray(r))throw new Error("invalid array value");if(this.arrayLength!==-1&&r.length!==this.arrayLength)throw new Error("array is wrong length");const o=this.arrayChildren,a=r.slice();a.forEach((c,l)=>{var u;Y(u=o,uf,Qp).call(u,e,c,n,f=>{a[l]=f})}),s(a);return}if(this.isTuple()){const o=this.components;let a;if(Array.isArray(r))a=r.slice();else{if(r==null||typeof r!="object")throw new Error("invalid tuple value");a=o.map(c=>{if(!c.name)throw new Error("cannot use object value with unnamed components");if(!(c.name in r))throw new Error(`missing value for component ${c.name}`);return r[c.name]})}if(a.length!==this.components.length)throw new Error("array is wrong length");a.forEach((c,l)=>{var u;Y(u=o[l],uf,Qp).call(u,e,c,n,f=>{a[l]=f})}),s(a);return}const i=n(this.type,r);i.then?e.push(async function(){s(await i)}()):s(i)};let or=Wn;class _a{constructor(e,r,n){N(this,"type");N(this,"inputs");yo(e,wt,"Fragment"),n=Object.freeze(n.slice()),fe(this,{type:r,inputs:n})}static from(e){if(typeof e=="string"){try{_a.from(JSON.parse(e))}catch{}return _a.from(qa(e))}if(e instanceof Ls)switch(e.peekKeyword(u7)){case"constructor":return ci.from(e);case"error":return Vr.from(e);case"event":return As.from(e);case"fallback":case"receive":return si.from(e);case"function":return Ss.from(e);case"struct":return wa.from(e)}else if(typeof e=="object"){switch(e.type){case"constructor":return ci.from(e);case"error":return Vr.from(e);case"event":return As.from(e);case"fallback":case"receive":return si.from(e);case"function":return Ss.from(e);case"struct":return wa.from(e)}z(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}P(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return ci.isFragment(e)}static isError(e){return Vr.isFragment(e)}static isEvent(e){return As.isFragment(e)}static isFunction(e){return Ss.isFragment(e)}static isStruct(e){return wa.isFragment(e)}}class w1 extends _a{constructor(r,n,s,i){super(r,n,i);N(this,"name");P(typeof s=="string"&&s.match(d7),"invalid identifier","name",s),i=Object.freeze(i.slice()),fe(this,{name:s})}}function w0(t,e){return"("+e.map(r=>r.format(t)).join(t==="full"?", ":",")+")"}class Vr extends w1{constructor(e,r,n){super(e,"error",r,n),Object.defineProperty(this,pn,{value:M8})}get selector(){return Qr(this.format("sighash")).substring(0,10)}format(e){if(e==null&&(e="sighash"),e==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});const r=[];return e!=="sighash"&&r.push("error"),r.push(this.name+w0(e,this.inputs)),r.join(" ")}static from(e){if(Vr.isFragment(e))return e;if(typeof e=="string")return Vr.from(qa(e));if(e instanceof Ls){const r=Ug("error",e),n=to(e);return gl(e),new Vr(wt,r,n)}return new Vr(wt,e.name,e.inputs?e.inputs.map(or.from):[])}static isFragment(e){return e&&e[pn]===M8}}class As extends w1{constructor(r,n,s,i){super(r,"event",n,s);N(this,"anonymous");Object.defineProperty(this,pn,{value:D8}),fe(this,{anonymous:i})}get topicHash(){return Qr(this.format("sighash"))}format(r){if(r==null&&(r="sighash"),r==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(s=>JSON.parse(s.format(r)))});const n=[];return r!=="sighash"&&n.push("event"),n.push(this.name+w0(r,this.inputs)),r!=="sighash"&&this.anonymous&&n.push("anonymous"),n.join(" ")}static getTopicHash(r,n){return n=(n||[]).map(i=>or.from(i)),new As(wt,r,n,!1).topicHash}static from(r){if(As.isFragment(r))return r;if(typeof r=="string")try{return As.from(qa(r))}catch{P(!1,"invalid event fragment","obj",r)}else if(r instanceof Ls){const n=Ug("event",r),s=to(r,!0),i=!!co(r,zr(["anonymous"])).has("anonymous");return gl(r),new As(wt,n,s,i)}return new As(wt,r.name,r.inputs?r.inputs.map(n=>or.from(n,!0)):[],!!r.anonymous)}static isFragment(r){return r&&r[pn]===D8}}class ci extends _a{constructor(r,n,s,i,o){super(r,n,s);N(this,"payable");N(this,"gas");Object.defineProperty(this,pn,{value:B8}),fe(this,{payable:i,gas:o})}format(r){if(z(r!=null&&r!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),r==="json")return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(s=>JSON.parse(s.format(r)))});const n=[`constructor${w0(r,this.inputs)}`];return this.payable&&n.push("payable"),this.gas!=null&&n.push(`@${this.gas.toString()}`),n.join(" ")}static from(r){if(ci.isFragment(r))return r;if(typeof r=="string")try{return ci.from(qa(r))}catch{P(!1,"invalid constuctor fragment","obj",r)}else if(r instanceof Ls){co(r,zr(["constructor"]));const n=to(r),s=!!co(r,mse).has("payable"),i=y7(r);return gl(r),new ci(wt,"constructor",n,s,i)}return new ci(wt,"constructor",r.inputs?r.inputs.map(or.from):[],!!r.payable,r.gas!=null?r.gas:null)}static isFragment(r){return r&&r[pn]===B8}}class si extends _a{constructor(r,n,s){super(r,"fallback",n);N(this,"payable");Object.defineProperty(this,pn,{value:L8}),fe(this,{payable:s})}format(r){const n=this.inputs.length===0?"receive":"fallback";if(r==="json"){const s=this.payable?"payable":"nonpayable";return JSON.stringify({type:n,stateMutability:s})}return`${n}()${this.payable?" payable":""}`}static from(r){if(si.isFragment(r))return r;if(typeof r=="string")try{return si.from(qa(r))}catch{P(!1,"invalid fallback fragment","obj",r)}else if(r instanceof Ls){const n=r.toString(),s=r.peekKeyword(zr(["fallback","receive"]));if(P(s,"type must be fallback or receive","obj",n),r.popKeyword(zr(["fallback","receive"]))==="receive"){const c=to(r);return P(c.length===0,"receive cannot have arguments","obj.inputs",c),co(r,zr(["payable"])),gl(r),new si(wt,[],!0)}let o=to(r);o.length?P(o.length===1&&o[0].type==="bytes","invalid fallback inputs","obj.inputs",o.map(c=>c.format("minimal")).join(", ")):o=[or.from("bytes")];const a=p7(r);if(P(a==="nonpayable"||a==="payable","fallback cannot be constants","obj.stateMutability",a),co(r,zr(["returns"])).has("returns")){const c=to(r);P(c.length===1&&c[0].type==="bytes","invalid fallback outputs","obj.outputs",c.map(l=>l.format("minimal")).join(", "))}return gl(r),new si(wt,o,a==="payable")}if(r.type==="receive")return new si(wt,[],!0);if(r.type==="fallback"){const n=[or.from("bytes")],s=r.stateMutability==="payable";return new si(wt,n,s)}P(!1,"invalid fallback description","obj",r)}static isFragment(r){return r&&r[pn]===L8}}class Ss extends w1{constructor(r,n,s,i,o,a){super(r,"function",n,i);N(this,"constant");N(this,"outputs");N(this,"stateMutability");N(this,"payable");N(this,"gas");Object.defineProperty(this,pn,{value:j8}),o=Object.freeze(o.slice()),fe(this,{constant:s==="view"||s==="pure",gas:a,outputs:o,payable:s==="payable",stateMutability:s})}get selector(){return Qr(this.format("sighash")).substring(0,10)}format(r){if(r==null&&(r="sighash"),r==="json")return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(s=>JSON.parse(s.format(r))),outputs:this.outputs.map(s=>JSON.parse(s.format(r)))});const n=[];return r!=="sighash"&&n.push("function"),n.push(this.name+w0(r,this.inputs)),r!=="sighash"&&(this.stateMutability!=="nonpayable"&&n.push(this.stateMutability),this.outputs&&this.outputs.length&&(n.push("returns"),n.push(w0(r,this.outputs))),this.gas!=null&&n.push(`@${this.gas.toString()}`)),n.join(" ")}static getSelector(r,n){return n=(n||[]).map(i=>or.from(i)),new Ss(wt,r,"view",n,[],null).selector}static from(r){if(Ss.isFragment(r))return r;if(typeof r=="string")try{return Ss.from(qa(r))}catch{P(!1,"invalid function fragment","obj",r)}else if(r instanceof Ls){const s=Ug("function",r),i=to(r),o=p7(r);let a=[];co(r,zr(["returns"])).has("returns")&&(a=to(r));const c=y7(r);return gl(r),new Ss(wt,s,o,i,a,c)}let n=r.stateMutability;return n==null&&(n="payable",typeof r.constant=="boolean"?(n="view",r.constant||(n="payable",typeof r.payable=="boolean"&&!r.payable&&(n="nonpayable"))):typeof r.payable=="boolean"&&!r.payable&&(n="nonpayable")),new Ss(wt,r.name,n,r.inputs?r.inputs.map(or.from):[],r.outputs?r.outputs.map(or.from):[],r.gas!=null?r.gas:null)}static isFragment(r){return r&&r[pn]===j8}}class wa extends w1{constructor(e,r,n){super(e,"struct",r,n),Object.defineProperty(this,pn,{value:F8})}format(){throw new Error("@TODO")}static from(e){if(typeof e=="string")try{return wa.from(qa(e))}catch{P(!1,"invalid struct fragment","obj",e)}else if(e instanceof Ls){const r=Ug("struct",e),n=to(e);return gl(e),new wa(wt,r,n)}return new wa(wt,e.name,e.inputs?e.inputs.map(or.from):[])}static isFragment(e){return e&&e[pn]===F8}}const Us=new Map;Us.set(0,"GENERIC_PANIC");Us.set(1,"ASSERT_FALSE");Us.set(17,"OVERFLOW");Us.set(18,"DIVIDE_BY_ZERO");Us.set(33,"ENUM_RANGE_ERROR");Us.set(34,"BAD_STORAGE_DATA");Us.set(49,"STACK_UNDERFLOW");Us.set(50,"ARRAY_RANGE_ERROR");Us.set(65,"OUT_OF_MEMORY");Us.set(81,"UNINITIALIZED_FUNCTION_CALL");const Ise=new RegExp(/^bytes([0-9]*)$/),Ose=new RegExp(/^(u?int)([0-9]*)$/);let Px=null,U8=1024;function Rse(t,e,r,n){let s="missing revert data",i=null;const o=null;let a=null;if(r){s="execution reverted";const l=Q(r);if(r=H(r),l.length===0)s+=" (no data present; likely require(false) occurred",i="require(false)";else if(l.length%32!==4)s+=" (could not decode reason; invalid data length)";else if(H(l.slice(0,4))==="0x08c379a0")try{i=n.decode(["string"],l.slice(4))[0],a={signature:"Error(string)",name:"Error",args:[i]},s+=`: ${JSON.stringify(i)}`}catch{s+=" (could not decode reason; invalid string data)"}else if(H(l.slice(0,4))==="0x4e487b71")try{const u=Number(n.decode(["uint256"],l.slice(4))[0]);a={signature:"Panic(uint256)",name:"Panic",args:[u]},i=`Panic due to ${Us.get(u)||"UNKNOWN"}(${u})`,s+=`: ${i}`}catch{s+=" (could not decode panic code)"}else s+=" (unknown custom error)"}const c={to:e.to?Te(e.to):null,data:e.data||"0x"};return e.from&&(c.from=Te(e.from)),ft(s,"CALL_EXCEPTION",{action:t,data:r,reason:i,transaction:c,invocation:o,revert:a})}var Ho,Kl;const Mv=class Mv{constructor(){j(this,Ho)}getDefaultValue(e){const r=e.map(s=>Y(this,Ho,Kl).call(this,or.from(s)));return new pp(r,"_").defaultValue()}encode(e,r){f5(r.length,e.length,"types/values length mismatch");const n=e.map(o=>Y(this,Ho,Kl).call(this,or.from(o))),s=new pp(n,"_"),i=new Mw;return s.encode(i,r),i.data}decode(e,r,n){const s=e.map(o=>Y(this,Ho,Kl).call(this,or.from(o)));return new pp(s,"_").decode(new Dw(r,n,U8))}static _setDefaultMaxInflation(e){P(typeof e=="number"&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),U8=e}static defaultAbiCoder(){return Px==null&&(Px=new Mv),Px}static getBuiltinCallException(e,r,n){return Rse(e,r,n,Mv.defaultAbiCoder())}};Ho=new WeakSet,Kl=function(e){if(e.isArray())return new Xre(Y(this,Ho,Kl).call(this,e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new pp(e.components.map(n=>Y(this,Ho,Kl).call(this,n)),e.name);switch(e.baseType){case"address":return new Jre(e.name);case"bool":return new Zre(e.name);case"string":return new cne(e.name);case"bytes":return new ene(e.name);case"":return new nne(e.name)}let r=e.type.match(Ose);if(r){let n=parseInt(r[2]||"256");return P(n!==0&&n<=256&&n%8===0,"invalid "+r[1]+" bit length","param",e),new ane(n/8,r[1]==="int",e.name)}if(r=e.type.match(Ise),r){let n=parseInt(r[1]);return P(n!==0&&n<=32,"invalid bytes length","param",e),new tne(n,e.name)}P(!1,"invalid type","type",e.type)};let Kt=Mv;function Nse(t){const e=mt(t);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return Og(e,32)}function _se(t){const e=Q(t,"bytes");if(e.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(e[31]!==0)throw new Error("invalid bytes32 string - no null terminator");let r=31;for(;e[r-1]===0;)r--;return Ds(e.slice(0,r))}class v7{constructor(e,r,n){N(this,"fragment");N(this,"name");N(this,"signature");N(this,"topic");N(this,"args");const s=e.name,i=e.format();fe(this,{fragment:e,name:s,signature:i,topic:r,args:n})}}class g7{constructor(e,r,n,s){N(this,"fragment");N(this,"name");N(this,"args");N(this,"signature");N(this,"selector");N(this,"value");const i=e.name,o=e.format();fe(this,{fragment:e,name:i,args:n,signature:o,selector:r,value:s})}}class m7{constructor(e,r,n){N(this,"fragment");N(this,"name");N(this,"args");N(this,"signature");N(this,"selector");const s=e.name,i=e.format();fe(this,{fragment:e,name:s,args:n,signature:i,selector:r})}}class Kw{constructor(e){N(this,"hash");N(this,"_isIndexed");fe(this,{hash:e,_isIndexed:!0})}static isIndexed(e){return!!(e&&e._isIndexed)}}const $8={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},W8={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:t=>`reverted with reason string ${JSON.stringify(t)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:t=>{let e="unknown panic code";return t>=0&&t<=255&&$8[t.toString()]&&(e=$8[t.toString()]),`reverted with panic code 0x${t.toString(16)} (${e})`}}};var Ys,Xs,Zs,Sr,yi,Jp,Yp;const hc=class hc{constructor(e){j(this,yi);N(this,"fragments");N(this,"deploy");N(this,"fallback");N(this,"receive");j(this,Ys);j(this,Xs);j(this,Zs);j(this,Sr);let r=[];typeof e=="string"?r=JSON.parse(e):r=e,T(this,Zs,new Map),T(this,Ys,new Map),T(this,Xs,new Map);const n=[];for(const o of r)try{n.push(_a.from(o))}catch(a){console.log(`[Warning] Invalid Fragment ${JSON.stringify(o)}:`,a.message)}fe(this,{fragments:Object.freeze(n)});let s=null,i=!1;T(this,Sr,this.getAbiCoder()),this.fragments.forEach((o,a)=>{let c;switch(o.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}fe(this,{deploy:o});return;case"fallback":o.inputs.length===0?i=!0:(P(!s||o.payable!==s.payable,"conflicting fallback fragments",`fragments[${a}]`,o),s=o,i=s.payable);return;case"function":c=w(this,Zs);break;case"event":c=w(this,Xs);break;case"error":c=w(this,Ys);break;default:return}const l=o.format();c.has(l)||c.set(l,o)}),this.deploy||fe(this,{deploy:ci.from("constructor()")}),fe(this,{fallback:s,receive:i})}format(e){const r=e?"minimal":"full";return this.fragments.map(s=>s.format(r))}formatJson(){const e=this.fragments.map(r=>r.format("json"));return JSON.stringify(e.map(r=>JSON.parse(r)))}getAbiCoder(){return Kt.defaultAbiCoder()}getFunctionName(e){const r=Y(this,yi,Jp).call(this,e,null,!1);return P(r,"no matching function","key",e),r.name}hasFunction(e){return!!Y(this,yi,Jp).call(this,e,null,!1)}getFunction(e,r){return Y(this,yi,Jp).call(this,e,r||null,!0)}forEachFunction(e){const r=Array.from(w(this,Zs).keys());r.sort((n,s)=>n.localeCompare(s));for(let n=0;nn.localeCompare(s));for(let n=0;n1){const i=s.map(o=>JSON.stringify(o.format())).join(", ");P(!1,`ambiguous error description (i.e. ${i})`,"name",e)}return s[0]}if(e=Vr.from(e).format(),e==="Error(string)")return Vr.from("error Error(string)");if(e==="Panic(uint256)")return Vr.from("error Panic(uint256)");const n=w(this,Ys).get(e);return n||null}forEachError(e){const r=Array.from(w(this,Ys).keys());r.sort((n,s)=>n.localeCompare(s));for(let n=0;ni.type==="string"?Qr(o):i.type==="bytes"?Ne(H(o)):(i.type==="bool"&&typeof o=="boolean"?o=o?"0x01":"0x00":i.type.match(/^u?int/)?o=In(o):i.type.match(/^bytes/)?o=Og(o,32):i.type==="address"&&w(this,Sr).encode(["address"],[o]),rs(H(o),32));for(r.forEach((i,o)=>{const a=e.inputs[o];if(!a.indexed){P(i==null,"cannot filter non-indexed parameters; must be null","contract."+a.name,i);return}i==null?n.push(null):a.baseType==="array"||a.baseType==="tuple"?P(!1,"filtering with tuples or arrays not supported","contract."+a.name,i):Array.isArray(i)?n.push(i.map(c=>s(a,c))):n.push(s(a,i))});n.length&&n[n.length-1]===null;)n.pop();return n}encodeEventLog(e,r){if(typeof e=="string"){const o=this.getEvent(e);P(o,"unknown event","eventFragment",e),e=o}const n=[],s=[],i=[];return e.anonymous||n.push(e.topicHash),P(r.length===e.inputs.length,"event arguments/values mismatch","values",r),e.inputs.forEach((o,a)=>{const c=r[a];if(o.indexed)if(o.type==="string")n.push(Qr(c));else if(o.type==="bytes")n.push(Ne(c));else{if(o.baseType==="tuple"||o.baseType==="array")throw new Error("not implemented");n.push(w(this,Sr).encode([o.type],[c]))}else s.push(o),i.push(c)}),{data:w(this,Sr).encode(s,i),topics:n}}decodeEventLog(e,r,n){if(typeof e=="string"){const h=this.getEvent(e);P(h,"unknown event","eventFragment",e),e=h}if(n!=null&&!e.anonymous){const h=e.topicHash;P(et(n[0],32)&&n[0].toLowerCase()===h,"fragment/topic mismatch","topics[0]",n[0]),n=n.slice(1)}const s=[],i=[],o=[];e.inputs.forEach((h,y)=>{h.indexed?h.type==="string"||h.type==="bytes"||h.baseType==="tuple"||h.baseType==="array"?(s.push(or.from({type:"bytes32",name:h.name})),o.push(!0)):(s.push(h),o.push(!1)):(i.push(h),o.push(!1))});const a=n!=null?w(this,Sr).decode(s,Le(n)):null,c=w(this,Sr).decode(i,r,!0),l=[],u=[];let f=0,d=0;return e.inputs.forEach((h,y)=>{let p=null;if(h.indexed)if(a==null)p=new Kw(null);else if(o[y])p=new Kw(a[d++]);else try{p=a[d++]}catch(b){p=b}else try{p=c[f++]}catch(b){p=b}l.push(p),u.push(h.name||null)}),pl.fromItems(l,u)}parseTransaction(e){const r=Q(e.data,"tx.data"),n=ve(e.value!=null?e.value:0,"tx.value"),s=this.getFunction(H(r.slice(0,4)));if(!s)return null;const i=w(this,Sr).decode(s.inputs,r.slice(4));return new g7(s,s.selector,i,n)}parseCallResult(e){throw new Error("@TODO")}parseLog(e){const r=this.getEvent(e.topics[0]);return!r||r.anonymous?null:new v7(r,r.topicHash,this.decodeEventLog(r,e.data,e.topics))}parseError(e){const r=H(e),n=this.getError(st(r,0,4));if(!n)return null;const s=w(this,Sr).decode(n.inputs,st(r,4));return new m7(n,n.selector,s)}static from(e){return e instanceof hc?e:typeof e=="string"?new hc(JSON.parse(e)):typeof e.formatJson=="function"?new hc(e.formatJson()):typeof e.format=="function"?new hc(e.format("json")):new hc(e)}};Ys=new WeakMap,Xs=new WeakMap,Zs=new WeakMap,Sr=new WeakMap,yi=new WeakSet,Jp=function(e,r,n){if(et(e)){const i=e.toLowerCase();for(const o of w(this,Zs).values())if(i===o.selector)return o;return null}if(e.indexOf("(")===-1){const i=[];for(const[o,a]of w(this,Zs))o.split("(")[0]===e&&i.push(a);if(r){const o=r.length>0?r[r.length-1]:null;let a=r.length,c=!0;gr.isTyped(o)&&o.type==="overrides"&&(c=!1,a--);for(let l=i.length-1;l>=0;l--){const u=i[l].inputs.length;u!==a&&(!c||u!==a-1)&&i.splice(l,1)}for(let l=i.length-1;l>=0;l--){const u=i[l].inputs;for(let f=0;f=u.length){if(r[f].type==="overrides")continue;i.splice(l,1);break}if(r[f].type!==u[f].baseType){i.splice(l,1);break}}}}if(i.length===1&&r&&r.length!==i[0].inputs.length){const o=r[r.length-1];(o==null||Array.isArray(o)||typeof o!="object")&&i.splice(0,1)}if(i.length===0)return null;if(i.length>1&&n){const o=i.map(a=>JSON.stringify(a.format())).join(", ");P(!1,`ambiguous function description (i.e. matches ${o})`,"key",e)}return i[0]}const s=w(this,Zs).get(Ss.from(e).format());return s||null},Yp=function(e,r,n){if(et(e)){const i=e.toLowerCase();for(const o of w(this,Xs).values())if(i===o.topicHash)return o;return null}if(e.indexOf("(")===-1){const i=[];for(const[o,a]of w(this,Xs))o.split("(")[0]===e&&i.push(a);if(r){for(let o=i.length-1;o>=0;o--)i[o].inputs.length=0;o--){const a=i[o].inputs;for(let c=0;c1&&n){const o=i.map(a=>JSON.stringify(a.format())).join(", ");P(!1,`ambiguous event description (i.e. matches ${o})`,"key",e)}return i[0]}const s=w(this,Xs).get(As.from(e).format());return s||null};let pt=hc;const x7=BigInt(0);function _u(t){return t??null}function Nt(t){return t==null?null:t.toString()}class Qw{constructor(e,r,n){N(this,"gasPrice");N(this,"maxFeePerGas");N(this,"maxPriorityFeePerGas");fe(this,{gasPrice:_u(e),maxFeePerGas:_u(r),maxPriorityFeePerGas:_u(n)})}toJSON(){const{gasPrice:e,maxFeePerGas:r,maxPriorityFeePerGas:n}=this;return{_type:"FeeData",gasPrice:Nt(e),maxFeePerGas:Nt(r),maxPriorityFeePerGas:Nt(n)}}}function Yf(t){const e={};t.to&&(e.to=t.to),t.from&&(e.from=t.from),t.data&&(e.data=H(t.data));const r="chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const s of r)!(s in t)||t[s]==null||(e[s]=ve(t[s],`request.${s}`));const n="type,nonce".split(/,/);for(const s of n)!(s in t)||t[s]==null||(e[s]=Pe(t[s],`request.${s}`));return t.accessList&&(e.accessList=go(t.accessList)),"blockTag"in t&&(e.blockTag=t.blockTag),"enableCcipRead"in t&&(e.enableCcipRead=!!t.enableCcipRead),"customData"in t&&(e.customData=t.customData),"blobVersionedHashes"in t&&t.blobVersionedHashes&&(e.blobVersionedHashes=t.blobVersionedHashes.slice()),"kzg"in t&&(e.kzg=t.kzg),"blobs"in t&&t.blobs&&(e.blobs=t.blobs.map(s=>mi(s)?H(s):Object.assign({},s))),e}var Bi;class b7{constructor(e,r){N(this,"provider");N(this,"number");N(this,"hash");N(this,"timestamp");N(this,"parentHash");N(this,"parentBeaconBlockRoot");N(this,"nonce");N(this,"difficulty");N(this,"gasLimit");N(this,"gasUsed");N(this,"stateRoot");N(this,"receiptsRoot");N(this,"blobGasUsed");N(this,"excessBlobGas");N(this,"miner");N(this,"prevRandao");N(this,"extraData");N(this,"baseFeePerGas");j(this,Bi);T(this,Bi,e.transactions.map(n=>typeof n!="string"?new Xf(n,r):n)),fe(this,{provider:r,hash:_u(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,parentBeaconBlockRoot:e.parentBeaconBlockRoot,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,blobGasUsed:e.blobGasUsed,excessBlobGas:e.excessBlobGas,miner:e.miner,prevRandao:_u(e.prevRandao),extraData:e.extraData,baseFeePerGas:_u(e.baseFeePerGas),stateRoot:e.stateRoot,receiptsRoot:e.receiptsRoot})}get transactions(){return w(this,Bi).map(e=>typeof e=="string"?e:e.hash)}get prefetchedTransactions(){const e=w(this,Bi).slice();return e.length===0?[]:(z(typeof e[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){const{baseFeePerGas:e,difficulty:r,extraData:n,gasLimit:s,gasUsed:i,hash:o,miner:a,prevRandao:c,nonce:l,number:u,parentHash:f,parentBeaconBlockRoot:d,stateRoot:h,receiptsRoot:y,timestamp:p,transactions:b}=this;return{_type:"Block",baseFeePerGas:Nt(e),difficulty:Nt(r),extraData:n,gasLimit:Nt(s),gasUsed:Nt(i),blobGasUsed:Nt(this.blobGasUsed),excessBlobGas:Nt(this.excessBlobGas),hash:o,miner:a,prevRandao:c,nonce:l,number:u,parentHash:f,timestamp:p,parentBeaconBlockRoot:d,stateRoot:h,receiptsRoot:y,transactions:b}}[Symbol.iterator](){let e=0;const r=this.transactions;return{next:()=>enew Cd(s,r))));let n=x7;e.effectiveGasPrice!=null?n=e.effectiveGasPrice:e.gasPrice!=null&&(n=e.gasPrice),fe(this,{provider:r,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,blobGasUsed:e.blobGasUsed,gasPrice:n,blobGasPrice:e.blobGasPrice,type:e.type,status:e.status,root:e.root})}get logs(){return w(this,U0)}toJSON(){const{to:e,from:r,contractAddress:n,hash:s,index:i,blockHash:o,blockNumber:a,logsBloom:c,logs:l,status:u,root:f}=this;return{_type:"TransactionReceipt",blockHash:o,blockNumber:a,contractAddress:n,cumulativeGasUsed:Nt(this.cumulativeGasUsed),from:r,gasPrice:Nt(this.gasPrice),blobGasUsed:Nt(this.blobGasUsed),blobGasPrice:Nt(this.blobGasPrice),gasUsed:Nt(this.gasUsed),hash:s,index:i,logs:l,logsBloom:c,root:f,status:u,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e{if(a)return null;const{blockNumber:d,nonce:h}=await Pt({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(h{if(d==null||d.status!==0)return d;z(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:d.to,from:d.from,data:""},receipt:d})},u=await this.provider.getTransactionReceipt(this.hash);if(n===0)return l(u);if(u){if(await u.confirmations()>=n)return l(u)}else if(await c(),n===0)return null;return await new Promise((d,h)=>{const y=[],p=()=>{y.forEach(v=>v())};if(y.push(()=>{a=!0}),s>0){const v=setTimeout(()=>{p(),h(ft("wait for transaction timeout","TIMEOUT"))},s);y.push(()=>{clearTimeout(v)})}const b=async v=>{if(await v.confirmations()>=n){p();try{d(l(v))}catch(g){h(g)}}};if(y.push(()=>{this.provider.off(this.hash,b)}),this.provider.on(this.hash,b),i>=0){const v=async()=>{try{await c()}catch(g){if(Ht(g,"TRANSACTION_REPLACED")){p(),h(g);return}}a||this.provider.once("block",v)};y.push(()=>{this.provider.off("block",v)}),this.provider.once("block",v)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}removedEvent(){return z(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),C7(this)}reorderedEvent(e){return z(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),z(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),w7(this,e)}replaceableTransaction(e){P(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const r=new Vk(this,this.provider);return T(r,zo,e),r}};zo=new WeakMap;let Xf=Vk;function Mse(t){return{orphan:"drop-block",hash:t.hash,number:t.number}}function w7(t,e){return{orphan:"reorder-transaction",tx:t,other:e}}function C7(t){return{orphan:"drop-transaction",tx:t}}function Dse(t){return{orphan:"drop-log",log:{transactionHash:t.transactionHash,blockHash:t.blockHash,blockNumber:t.blockNumber,address:t.address,data:t.data,topics:Object.freeze(t.topics.slice()),index:t.index}}}class $g extends Cd{constructor(r,n,s){super(r,r.provider);N(this,"interface");N(this,"fragment");N(this,"args");const i=n.decodeEventLog(s,r.data,r.topics);fe(this,{args:i,fragment:s,interface:n})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class j5 extends Cd{constructor(r,n){super(r,r.provider);N(this,"error");fe(this,{error:n})}}var ff;class E7 extends L5{constructor(r,n,s){super(s,n);j(this,ff);T(this,ff,r)}get logs(){return super.logs.map(r=>{const n=r.topics.length?w(this,ff).getEvent(r.topics[0]):null;if(n)try{return new $g(r,w(this,ff),n)}catch(s){return new j5(r,s)}return r})}}ff=new WeakMap;var $0;class Wg extends Xf{constructor(r,n,s){super(s,n);j(this,$0);T(this,$0,r)}async wait(r,n){const s=await super.wait(r,n);return s==null?null:new E7(w(this,$0),this.provider,s)}}$0=new WeakMap;class F5 extends p5{constructor(r,n,s,i){super(r,n,s);N(this,"log");fe(this,{log:i})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class k7 extends F5{constructor(e,r,n,s,i){super(e,r,n,new $g(i,e.interface,s));const o=e.interface.decodeEventLog(s,this.log.data,this.log.topics);fe(this,{args:o,fragment:s})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const V8=BigInt(0);function A7(t){return t&&typeof t.call=="function"}function S7(t){return t&&typeof t.estimateGas=="function"}function Vg(t){return t&&typeof t.resolveName=="function"}function T7(t){return t&&typeof t.sendTransaction=="function"}function P7(t){if(t!=null){if(Vg(t))return t;if(t.provider)return t.provider}}var W0;class Bse{constructor(e,r,n){j(this,W0);N(this,"fragment");if(fe(this,{fragment:r}),r.inputs.lengthn[c]==null?null:a.walkAsync(n[c],(u,f)=>u==="address"?Array.isArray(f)?Promise.all(f.map(d=>sr(d,i))):sr(f,i):f)));return e.interface.encodeFilterTopics(r,o)}())}getTopicFilter(){return w(this,W0)}}W0=new WeakMap;function ml(t,e){return t==null?null:typeof t[e]=="function"?t:t.provider&&typeof t.provider[e]=="function"?t.provider:null}function bc(t){return t==null?null:t.provider||null}async function U5(t,e){const r=gr.dereference(t,"overrides");P(typeof r=="object","invalid overrides parameter","overrides",t);const n=Yf(r);return P(n.to==null||(e||[]).indexOf("to")>=0,"cannot override to","overrides.to",n.to),P(n.data==null||(e||[]).indexOf("data")>=0,"cannot override data","overrides.data",n.data),n.from&&(n.from=n.from),n}async function I7(t,e,r){const n=ml(t,"resolveName"),s=Vg(n)?n:null;return await Promise.all(e.map((i,o)=>i.walkAsync(r[o],(a,c)=>(c=gr.dereference(c,a),a==="address"?sr(c,s):c))))}function Lse(t){const e=async function(o){const a=await U5(o,["data"]);a.to=await t.getAddress(),a.from&&(a.from=await sr(a.from,P7(t.runner)));const c=t.interface,l=ve(a.value||V8,"overrides.value")===V8,u=(a.data||"0x")==="0x";c.fallback&&!c.fallback.payable&&c.receive&&!u&&!l&&P(!1,"cannot send data to receive or send value to non-payable fallback","overrides",o),P(c.fallback||u,"cannot send data to receive-only contract","overrides.data",a.data);const f=c.receive||c.fallback&&c.fallback.payable;return P(f||l,"cannot send value to non-payable fallback","overrides.value",a.value),P(c.fallback||u,"cannot send data to receive-only contract","overrides.data",a.data),a},r=async function(o){const a=ml(t.runner,"call");z(A7(a),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const c=await e(o);try{return await a.call(c)}catch(l){throw Ig(l)&&l.data?t.interface.makeError(l.data,c):l}},n=async function(o){const a=t.runner;z(T7(a),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const c=await a.sendTransaction(await e(o)),l=bc(t.runner);return new Wg(t.interface,l,c)},s=async function(o){const a=ml(t.runner,"estimateGas");return z(S7(a),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await a.estimateGas(await e(o))},i=async o=>await n(o);return fe(i,{_contract:t,estimateGas:s,populateTransaction:e,send:n,staticCall:r}),i}function jse(t,e){const r=function(...l){const u=t.interface.getFunction(e,l);return z(u,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:l}}),u},n=async function(...l){const u=r(...l);let f={};if(u.inputs.length+1===l.length&&(f=await U5(l.pop()),f.from&&(f.from=await sr(f.from,P7(t.runner)))),u.inputs.length!==l.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const d=await I7(t.runner,u.inputs,l);return Object.assign({},f,await Pt({to:t.getAddress(),data:t.interface.encodeFunctionData(u,d)}))},s=async function(...l){const u=await a(...l);return u.length===1?u[0]:u},i=async function(...l){const u=t.runner;z(T7(u),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const f=await u.sendTransaction(await n(...l)),d=bc(t.runner);return new Wg(t.interface,d,f)},o=async function(...l){const u=ml(t.runner,"estimateGas");return z(S7(u),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await u.estimateGas(await n(...l))},a=async function(...l){const u=ml(t.runner,"call");z(A7(u),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const f=await n(...l);let d="0x";try{d=await u.call(f)}catch(y){throw Ig(y)&&y.data?t.interface.makeError(y.data,f):y}const h=r(...l);return t.interface.decodeFunctionResult(h,d)},c=async(...l)=>r(...l).constant?await s(...l):await i(...l);return fe(c,{name:t.interface.getFunctionName(e),_contract:t,_key:e,getFragment:r,estimateGas:o,populateTransaction:n,send:i,staticCall:s,staticCallResult:a}),Object.defineProperty(c,"fragment",{configurable:!1,enumerable:!0,get:()=>{const l=t.interface.getFunction(e);return z(l,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),l}}),c}function Fse(t,e){const r=function(...s){const i=t.interface.getEvent(e,s);return z(i,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:s}}),i},n=function(...s){return new Bse(t,r(...s),s)};return fe(n,{name:t.interface.getEventName(e),_contract:t,_key:e,getFragment:r}),Object.defineProperty(n,"fragment",{configurable:!1,enumerable:!0,get:()=>{const s=t.interface.getEvent(e);return z(s,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),s}}),n}const uv=Symbol.for("_ethersInternal_contract"),O7=new WeakMap;function Use(t,e){O7.set(t[uv],e)}function mn(t){return O7.get(t[uv])}function $se(t){return t&&typeof t=="object"&&"getTopicFilter"in t&&typeof t.getTopicFilter=="function"&&t.fragment}async function $5(t,e){let r,n=null;if(Array.isArray(e)){const i=function(o){if(et(o,32))return o;const a=t.interface.getEvent(o);return P(a,"unknown fragment","name",o),a.topicHash};r=e.map(o=>o==null?null:Array.isArray(o)?o.map(i):i(o))}else e==="*"?r=[null]:typeof e=="string"?et(e,32)?r=[e]:(n=t.interface.getEvent(e),P(n,"unknown fragment","event",e),r=[n.topicHash]):$se(e)?r=await e.getTopicFilter():"fragment"in e?(n=e.fragment,r=[n.topicHash]):P(!1,"unknown event name","event",e);r=r.map(i=>{if(i==null)return null;if(Array.isArray(i)){const o=Array.from(new Set(i.map(a=>a.toLowerCase())).values());return o.length===1?o[0]:(o.sort(),o)}return i.toLowerCase()});const s=r.map(i=>i==null?"null":Array.isArray(i)?i.join("|"):i).join("&");return{fragment:n,tag:s,topics:r}}async function rh(t,e){const{subs:r}=mn(t);return r.get((await $5(t,e)).tag)||null}async function H8(t,e,r){const n=bc(t.runner);z(n,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:e});const{fragment:s,tag:i,topics:o}=await $5(t,r),{addr:a,subs:c}=mn(t);let l=c.get(i);if(!l){const f={address:a||t,topics:o},d=b=>{let v=s;if(v==null)try{v=t.interface.getEvent(b.topics[0])}catch{}if(v){const g=v,x=s?t.interface.decodeEventLog(s,b.data,b.topics):[];Yw(t,r,x,k=>new k7(t,k,r,g,b))}else Yw(t,r,[],g=>new F5(t,g,r,b))};let h=[];l={tag:i,listeners:[],start:()=>{h.length||h.push(n.on(f,d))},stop:async()=>{if(h.length==0)return;let b=h;h=[],await Promise.all(b),n.off(f,d)}},c.set(i,l)}return l}let Jw=Promise.resolve();async function Wse(t,e,r,n){await Jw;const s=await rh(t,e);if(!s)return!1;const i=s.listeners.length;return s.listeners=s.listeners.filter(({listener:o,once:a})=>{const c=Array.from(r);n&&c.push(n(a?null:o));try{o.call(t,...c)}catch{}return!a}),s.listeners.length===0&&(s.stop(),mn(t).subs.delete(s.tag)),i>0}async function Yw(t,e,r,n){try{await Jw}catch{}const s=Wse(t,e,r,n);return Jw=s,await s}const vp=["then"];var D3;D3=uv;const Uh=class Uh{constructor(e,r,n,s){N(this,"target");N(this,"interface");N(this,"runner");N(this,"filters");N(this,D3);N(this,"fallback");P(typeof e=="string"||I5(e),"invalid value for Contract target","target",e),n==null&&(n=null);const i=pt.from(r);fe(this,{target:e,runner:n,interface:i}),Object.defineProperty(this,uv,{value:{}});let o,a=null,c=null;if(s){const f=bc(n);c=new Wg(this.interface,f,s)}let l=new Map;if(typeof e=="string")if(et(e))a=e,o=Promise.resolve(e);else{const f=ml(n,"resolveName");if(!Vg(f))throw ft("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});o=f.resolveName(e).then(d=>{if(d==null)throw ft("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return mn(this).addr=d,d})}else o=e.getAddress().then(f=>{if(f==null)throw new Error("TODO");return mn(this).addr=f,f});Use(this,{addrPromise:o,addr:a,deployTx:c,subs:l});const u=new Proxy({},{get:(f,d,h)=>{if(typeof d=="symbol"||vp.indexOf(d)>=0)return Reflect.get(f,d,h);try{return this.getEvent(d)}catch(y){if(!Ht(y,"INVALID_ARGUMENT")||y.argument!=="key")throw y}},has:(f,d)=>vp.indexOf(d)>=0?Reflect.has(f,d):Reflect.has(f,d)||this.interface.hasEvent(String(d))});return fe(this,{filters:u}),fe(this,{fallback:i.receive||i.fallback?Lse(this):null}),new Proxy(this,{get:(f,d,h)=>{if(typeof d=="symbol"||d in f||vp.indexOf(d)>=0)return Reflect.get(f,d,h);try{return f.getFunction(d)}catch(y){if(!Ht(y,"INVALID_ARGUMENT")||y.argument!=="key")throw y}},has:(f,d)=>typeof d=="symbol"||d in f||vp.indexOf(d)>=0?Reflect.has(f,d):f.interface.hasFunction(d)})}connect(e){return new Uh(this.target,this.interface,e)}attach(e){return new Uh(e,this.interface,this.runner)}async getAddress(){return await mn(this).addrPromise}async getDeployedCode(){const e=bc(this.runner);z(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const r=await e.getCode(await this.getAddress());return r==="0x"?null:r}async waitForDeployment(){const e=this.deploymentTransaction();if(e)return await e.wait(),this;if(await this.getDeployedCode()!=null)return this;const n=bc(this.runner);return z(n!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((s,i)=>{const o=async()=>{try{if(await this.getDeployedCode()!=null)return s(this);n.once("block",o)}catch(a){i(a)}};o()})}deploymentTransaction(){return mn(this).deployTx}getFunction(e){return typeof e!="string"&&(e=e.format()),jse(this,e)}getEvent(e){return typeof e!="string"&&(e=e.format()),Fse(this,e)}async queryTransaction(e){throw new Error("@TODO")}async queryFilter(e,r,n){r==null&&(r=0),n==null&&(n="latest");const{addr:s,addrPromise:i}=mn(this),o=s||await i,{fragment:a,topics:c}=await $5(this,e),l={address:o,topics:c,fromBlock:r,toBlock:n},u=bc(this.runner);return z(u,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await u.getLogs(l)).map(f=>{let d=a;if(d==null)try{d=this.interface.getEvent(f.topics[0])}catch{}if(d)try{return new $g(f,this.interface,d)}catch(h){return new j5(f,h)}return new Cd(f,u)})}async on(e,r){const n=await H8(this,"on",e);return n.listeners.push({listener:r,once:!1}),n.start(),this}async once(e,r){const n=await H8(this,"once",e);return n.listeners.push({listener:r,once:!0}),n.start(),this}async emit(e,...r){return await Yw(this,e,r,null)}async listenerCount(e){if(e){const s=await rh(this,e);return s?s.listeners.length:0}const{subs:r}=mn(this);let n=0;for(const{listeners:s}of r.values())n+=s.length;return n}async listeners(e){if(e){const s=await rh(this,e);return s?s.listeners.map(({listener:i})=>i):[]}const{subs:r}=mn(this);let n=[];for(const{listeners:s}of r.values())n=n.concat(s.map(({listener:i})=>i));return n}async off(e,r){const n=await rh(this,e);if(!n)return this;if(r){const s=n.listeners.map(({listener:i})=>i).indexOf(r);s>=0&&n.listeners.splice(s,1)}return(r==null||n.listeners.length===0)&&(n.stop(),mn(this).subs.delete(n.tag)),this}async removeAllListeners(e){if(e){const r=await rh(this,e);if(!r)return this;r.stop(),mn(this).subs.delete(r.tag)}else{const{subs:r}=mn(this);for(const{tag:n,stop:s}of r.values())s(),r.delete(n)}return this}async addListener(e,r){return await this.on(e,r)}async removeListener(e,r){return await this.off(e,r)}static buildClass(e){class r extends Uh{constructor(s,i=null){super(s,e,i)}}return r}static from(e,r,n){return n==null&&(n=null),new this(e,r,n)}};let Zf=Uh;function Vse(){return Zf}class dn extends Vse(){}class W5{constructor(e,r,n){N(this,"interface");N(this,"bytecode");N(this,"runner");const s=pt.from(e);r instanceof Uint8Array||(typeof r=="object"&&(r=r.object),r.startsWith("0x")||(r="0x"+r)),r=H(Q(r)),fe(this,{bytecode:r,interface:s,runner:n||null})}attach(e){return new Zf(e,this.interface,this.runner)}async getDeployTransaction(...e){let r={};const n=this.interface.deploy;if(n.inputs.length+1===e.length&&(r=await U5(e.pop())),n.inputs.length!==e.length)throw new Error("incorrect number of arguments to constructor");const s=await I7(this.runner,n.inputs,e),i=Le([this.bytecode,this.interface.encodeDeploy(s)]);return Object.assign({},r,{data:i})}async deploy(...e){const r=await this.getDeployTransaction(...e);z(this.runner&&typeof this.runner.sendTransaction=="function","factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const n=await this.runner.sendTransaction(r),s=P5(n);return new Zf(s,this.interface,this.runner,n)}connect(e){return new W5(this.interface,this.bytecode,e)}static fromSolidity(e,r){P(e!=null,"bad compiler output","output",e),typeof e=="string"&&(e=JSON.parse(e));const n=e.abi;let s="";return e.bytecode?s=e.bytecode:e.evm&&e.evm.bytecode&&(s=e.evm.bytecode),new this(n,s,r)}}function Ix(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):P(!1,"unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}class R7{constructor(e){N(this,"name");fe(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,r){throw new Error("unsupported coin")}async decodeAddress(e,r){throw new Error("unsupported coin")}}const N7=new RegExp("^(ipfs)://(.*)$","i"),z8=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),N7,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];var Go,Dc,qo,Ql,Dv,_7;const mu=class mu{constructor(e,r,n){j(this,qo);N(this,"provider");N(this,"address");N(this,"name");j(this,Go);j(this,Dc);fe(this,{provider:e,address:r,name:n}),T(this,Go,null),T(this,Dc,new dn(r,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],e))}async supportsWildcard(){return w(this,Go)==null&&T(this,Go,(async()=>{try{return await w(this,Dc).supportsInterface("0x9061b923")}catch(e){if(Ht(e,"CALL_EXCEPTION"))return!1;throw T(this,Go,null),e}})()),await w(this,Go)}async getAddress(e){if(e==null&&(e=60),e===60)try{const i=await Y(this,qo,Ql).call(this,"addr(bytes32)");return i==null||i===xi?null:i}catch(i){if(Ht(i,"CALL_EXCEPTION"))return null;throw i}if(e>=0&&e<2147483648){let i=e+2147483648;const o=await Y(this,qo,Ql).call(this,"addr(bytes32,uint)",[i]);if(et(o,20))return Te(o)}let r=null;for(const i of this.provider.plugins)if(i instanceof R7&&i.supportsCoinType(e)){r=i;break}if(r==null)return null;const n=await Y(this,qo,Ql).call(this,"addr(bytes32,uint)",[e]);if(n==null||n==="0x")return null;const s=await r.decodeAddress(e,n);if(s!=null)return s;z(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:n}})}async getText(e){const r=await Y(this,qo,Ql).call(this,"text(bytes32,string)",[e]);return r==null||r==="0x"?null:r}async getContentHash(){const e=await Y(this,qo,Ql).call(this,"contenthash(bytes32)");if(e==null||e==="0x")return null;const r=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(r){const s=r[1]==="e3010170"?"ipfs":"ipns",i=parseInt(r[4],16);if(r[5].length===i*2)return`${s}://${h5("0x"+r[2])}`}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&n[1].length===64)return`bzz://${n[1]}`;z(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const e=[{type:"name",value:this.name}];try{const r=await this.getText("avatar");if(r==null)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:r});for(let n=0;n{if(e&&r==null)return null;if(!Array.isArray(r))throw new Error("not an array");return r.map(n=>t(n))}}function C1(t,e){return r=>{const n={};for(const s in t){let i=s;if(e&&s in e&&!(i in r)){for(const o of e[s])if(o in r){i=o;break}}try{const o=t[s](r[i]);o!==void 0&&(n[s]=o)}catch(o){const a=o instanceof Error?o.message:"not-an-error";z(!1,`invalid value for value.${s} (${a})`,"BAD_DATA",{value:r})}}return n}}function Hse(t){switch(t){case!0:case"true":return!0;case!1:case"false":return!1}P(!1,`invalid boolean; ${JSON.stringify(t)}`,"value",t)}function ed(t){return P(et(t,!0),"invalid data","value",t),t}function hr(t){return P(et(t,32),"invalid hash","value",t),t}const zse=C1({address:Te,blockHash:hr,blockNumber:Pe,data:ed,index:Pe,removed:Ve(Hse,!1),topics:Hg(hr),transactionHash:hr,transactionIndex:Pe},{index:["logIndex"]});function Gse(t){return zse(t)}const qse=C1({hash:Ve(hr),parentHash:hr,parentBeaconBlockRoot:Ve(hr,null),number:Pe,timestamp:Pe,nonce:Ve(ed),difficulty:ve,gasLimit:ve,gasUsed:ve,stateRoot:Ve(hr,null),receiptsRoot:Ve(hr,null),blobGasUsed:Ve(ve,null),excessBlobGas:Ve(ve,null),miner:Ve(Te),prevRandao:Ve(hr,null),extraData:ed,baseFeePerGas:Ve(ve)},{prevRandao:["mixHash"]});function Kse(t){const e=qse(t);return e.transactions=t.transactions.map(r=>typeof r=="string"?r:M7(r)),e}const Qse=C1({transactionIndex:Pe,blockNumber:Pe,transactionHash:hr,address:Te,topics:Hg(hr),data:ed,index:Pe,blockHash:hr},{index:["logIndex"]});function Jse(t){return Qse(t)}const Yse=C1({to:Ve(Te,null),from:Ve(Te,null),contractAddress:Ve(Te,null),index:Pe,root:Ve(H),gasUsed:ve,blobGasUsed:Ve(ve,null),logsBloom:Ve(ed),blockHash:hr,hash:hr,logs:Hg(Jse),blockNumber:Pe,cumulativeGasUsed:ve,effectiveGasPrice:Ve(ve),blobGasPrice:Ve(ve,null),status:Ve(Pe),type:Ve(Pe,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function Xse(t){return Yse(t)}function M7(t){t.to&&ve(t.to)===G8&&(t.to="0x0000000000000000000000000000000000000000");const e=C1({hash:hr,index:Ve(Pe,void 0),type:r=>r==="0x"||r==null?0:Pe(r),accessList:Ve(go,null),blobVersionedHashes:Ve(Hg(hr,!0),null),blockHash:Ve(hr,null),blockNumber:Ve(Pe,null),transactionIndex:Ve(Pe,null),from:Te,gasPrice:Ve(ve),maxPriorityFeePerGas:Ve(ve),maxFeePerGas:Ve(ve),maxFeePerBlobGas:Ve(ve,null),gasLimit:ve,to:Ve(Te,null),value:ve,nonce:Pe,data:ed,creates:Ve(Te,null),chainId:Ve(ve,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(t);if(e.to==null&&e.creates==null&&(e.creates=P5(e)),(t.type===1||t.type===2)&&t.accessList==null&&(e.accessList=[]),t.signature?e.signature=os.from(t.signature):e.signature=os.from(t),e.chainId==null){const r=e.signature.legacyChainId;r!=null&&(e.chainId=r)}return e.blockHash&&ve(e.blockHash)===G8&&(e.blockHash=null),e}const Zse="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class Ka{constructor(e){N(this,"name");fe(this,{name:e})}clone(){return new Ka(this.name)}}class E1 extends Ka{constructor(r,n){r==null&&(r=0);super(`org.ethers.network.plugins.GasCost#${r||0}`);N(this,"effectiveBlock");N(this,"txBase");N(this,"txCreate");N(this,"txDataZero");N(this,"txDataNonzero");N(this,"txAccessListStorageKey");N(this,"txAccessListAddress");const s={effectiveBlock:r};function i(o,a){let c=(n||{})[o];c==null&&(c=a),P(typeof c=="number",`invalud value for ${o}`,"costs",n),s[o]=c}i("txBase",21e3),i("txCreate",32e3),i("txDataZero",4),i("txDataNonzero",16),i("txAccessListStorageKey",1900),i("txAccessListAddress",2400),fe(this,s)}clone(){return new E1(this.effectiveBlock,this)}}class k1 extends Ka{constructor(r,n){super("org.ethers.plugins.network.Ens");N(this,"address");N(this,"targetNetwork");fe(this,{address:r||Zse,targetNetwork:n??1})}clone(){return new k1(this.address,this.targetNetwork)}}var Bc;const Hk=class Hk extends Ka{constructor(r){super("org.ethers.plugins.network.FeeData");j(this,Bc);T(this,Bc,r)}get feeDataFunc(){return w(this,Bc)}async getFeeData(r){return await w(this,Bc).call(this,r)}clone(){return new Hk(w(this,Bc))}};Bc=new WeakMap;let Xw=Hk;var V0,H0;class D7 extends Ka{constructor(r,n){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin");j(this,V0);j(this,H0);T(this,V0,r),T(this,H0,n)}get url(){return w(this,V0)}get processFunc(){return w(this,H0)}clone(){return this}}V0=new WeakMap,H0=new WeakMap;const Ox=new Map;var df,hf,Ko;const xu=class xu{constructor(e,r){j(this,df);j(this,hf);j(this,Ko);T(this,df,e),T(this,hf,ve(r)),T(this,Ko,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return w(this,df)}set name(e){T(this,df,e)}get chainId(){return w(this,hf)}set chainId(e){T(this,hf,ve(e,"chainId"))}matches(e){if(e==null)return!1;if(typeof e=="string"){try{return this.chainId===ve(e)}catch{}return this.name===e}if(typeof e=="number"||typeof e=="bigint"){try{return this.chainId===ve(e)}catch{}return!1}if(typeof e=="object"){if(e.chainId!=null){try{return this.chainId===ve(e.chainId)}catch{}return!1}return e.name!=null?this.name===e.name:!1}return!1}get plugins(){return Array.from(w(this,Ko).values())}attachPlugin(e){if(w(this,Ko).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return w(this,Ko).set(e.name,e.clone()),this}getPlugin(e){return w(this,Ko).get(e)||null}getPlugins(e){return this.plugins.filter(r=>r.name.split("#")[0]===e)}clone(){const e=new xu(this.name,this.chainId);return this.plugins.forEach(r=>{e.attachPlugin(r.clone())}),e}computeIntrinsicGas(e){const r=this.getPlugin("org.ethers.plugins.network.GasCost")||new E1;let n=r.txBase;if(e.to==null&&(n+=r.txCreate),e.data)for(let s=2;s9){let s=BigInt(n[1].substring(0,9));n[1].substring(9).match(/^0+$/)||s++,n[1]=s.toString()}return BigInt(n[0]+n[1])}function K8(t){return new D7(t,async(e,r,n)=>{n.setHeader("User-Agent","ethers");let s;try{const[i,o]=await Promise.all([n.send(),e()]);s=i;const a=s.bodyJson.standard;return{gasPrice:o.gasPrice,maxFeePerGas:q8(a.maxFee,9),maxPriorityFeePerGas:q8(a.maxPriorityFee,9)}}catch(i){z(!1,`error encountered with polygon gas station (${JSON.stringify(n.url)})`,"SERVER_ERROR",{request:n,response:s,error:i})}})}let Q8=!1;function eie(){if(Q8)return;Q8=!0;function t(e,r,n){const s=function(){const i=new ot(e,r);return n.ensNetwork!=null&&i.attachPlugin(new k1(null,n.ensNetwork)),i.attachPlugin(new E1),(n.plugins||[]).forEach(o=>{i.attachPlugin(o)}),i};ot.register(e,s),ot.register(r,s),n.altNames&&n.altNames.forEach(i=>{ot.register(i,s)})}t("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),t("ropsten",3,{ensNetwork:3}),t("rinkeby",4,{ensNetwork:4}),t("goerli",5,{ensNetwork:5}),t("kovan",42,{ensNetwork:42}),t("sepolia",11155111,{ensNetwork:11155111}),t("holesky",17e3,{ensNetwork:17e3}),t("classic",61,{}),t("classicKotti",6,{}),t("arbitrum",42161,{ensNetwork:1}),t("arbitrum-goerli",421613,{}),t("arbitrum-sepolia",421614,{}),t("base",8453,{ensNetwork:1}),t("base-goerli",84531,{}),t("base-sepolia",84532,{}),t("bnb",56,{ensNetwork:1}),t("bnbt",97,{}),t("linea",59144,{ensNetwork:1}),t("linea-goerli",59140,{}),t("linea-sepolia",59141,{}),t("matic",137,{ensNetwork:1,plugins:[K8("https://gasstation.polygon.technology/v2")]}),t("matic-amoy",80002,{}),t("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[K8("https://gasstation-testnet.polygon.technology/v2")]}),t("optimism",10,{ensNetwork:1,plugins:[]}),t("optimism-goerli",420,{}),t("optimism-sepolia",11155420,{}),t("xdai",100,{ensNetwork:1})}function Zw(t){return JSON.parse(JSON.stringify(t))}var Li,Vn,Qo,ei,pf,Xp;class tie{constructor(e){j(this,pf);j(this,Li);j(this,Vn);j(this,Qo);j(this,ei);T(this,Li,e),T(this,Vn,null),T(this,Qo,4e3),T(this,ei,-2)}get pollingInterval(){return w(this,Qo)}set pollingInterval(e){T(this,Qo,e)}start(){w(this,Vn)||(T(this,Vn,w(this,Li)._setTimeout(Y(this,pf,Xp).bind(this),w(this,Qo))),Y(this,pf,Xp).call(this))}stop(){w(this,Vn)&&(w(this,Li)._clearTimeout(w(this,Vn)),T(this,Vn,null))}pause(e){this.stop(),e&&T(this,ei,-2)}resume(){this.start()}}Li=new WeakMap,Vn=new WeakMap,Qo=new WeakMap,ei=new WeakMap,pf=new WeakSet,Xp=async function(){try{const e=await w(this,Li).getBlockNumber();if(w(this,ei)===-2){T(this,ei,e);return}if(e!==w(this,ei)){for(let r=w(this,ei)+1;r<=e;r++){if(w(this,Vn)==null)return;await w(this,Li).emit("block",r)}T(this,ei,e)}}catch{}w(this,Vn)!=null&&T(this,Vn,w(this,Li)._setTimeout(Y(this,pf,Xp).bind(this),w(this,Qo)))};var Lc,jc,Jo;class V5{constructor(e){j(this,Lc);j(this,jc);j(this,Jo);T(this,Lc,e),T(this,Jo,!1),T(this,jc,r=>{this._poll(r,w(this,Lc))})}async _poll(e,r){throw new Error("sub-classes must override this")}start(){w(this,Jo)||(T(this,Jo,!0),w(this,jc).call(this,-2),w(this,Lc).on("block",w(this,jc)))}stop(){w(this,Jo)&&(T(this,Jo,!1),w(this,Lc).off("block",w(this,jc)))}pause(e){this.stop()}resume(){this.start()}}Lc=new WeakMap,jc=new WeakMap,Jo=new WeakMap;var yf,ji;class rie extends V5{constructor(r,n){super(r);j(this,yf);j(this,ji);T(this,yf,n),T(this,ji,-2)}pause(r){r&&T(this,ji,-2),super.pause(r)}async _poll(r,n){const s=await n.getBlock(w(this,yf));s!=null&&(w(this,ji)===-2?T(this,ji,s.number):s.number>w(this,ji)&&(n.emit(w(this,yf),s.number),T(this,ji,s.number)))}}yf=new WeakMap,ji=new WeakMap;var Bv;class nie extends V5{constructor(r,n){super(r);j(this,Bv);T(this,Bv,Zw(n))}async _poll(r,n){throw new Error("@TODO")}}Bv=new WeakMap;var vf;class sie extends V5{constructor(r,n){super(r);j(this,vf);T(this,vf,n)}async _poll(r,n){const s=await n.getTransactionReceipt(w(this,vf));s&&n.emit(w(this,vf),s)}}vf=new WeakMap;var Fi,gf,mf,Yo,Hn,Lv,B7;class H5{constructor(e,r){j(this,Lv);j(this,Fi);j(this,gf);j(this,mf);j(this,Yo);j(this,Hn);T(this,Fi,e),T(this,gf,Zw(r)),T(this,mf,Y(this,Lv,B7).bind(this)),T(this,Yo,!1),T(this,Hn,-2)}start(){w(this,Yo)||(T(this,Yo,!0),w(this,Hn)===-2&&w(this,Fi).getBlockNumber().then(e=>{T(this,Hn,e)}),w(this,Fi).on("block",w(this,mf)))}stop(){w(this,Yo)&&(T(this,Yo,!1),w(this,Fi).off("block",w(this,mf)))}pause(e){this.stop(),e&&T(this,Hn,-2)}resume(){this.start()}}Fi=new WeakMap,gf=new WeakMap,mf=new WeakMap,Yo=new WeakMap,Hn=new WeakMap,Lv=new WeakSet,B7=async function(e){if(w(this,Hn)===-2)return;const r=Zw(w(this,gf));r.fromBlock=w(this,Hn)+1,r.toBlock=e;const n=await w(this,Fi).getLogs(r);if(n.length===0){w(this,Hn){if(n==null)return"null";if(typeof n=="bigint")return`bigint:${n.toString()}`;if(typeof n=="string")return n.toLowerCase();if(typeof n=="object"&&!Array.isArray(n)){const s=Object.keys(n);return s.sort(),s.reduce((i,o)=>(i[o]=n[o],i),{})}return n})}class E0{constructor(e){N(this,"name");fe(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function aie(t){return JSON.parse(JSON.stringify(t))}function e2(t){return t=Array.from(new Set(t).values()),t.sort(),t}async function Rx(t,e){if(t==null)throw new Error("invalid event");if(Array.isArray(t)&&(t={topics:t}),typeof t=="string")switch(t){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:t,tag:t}}if(et(t,32)){const r=t.toLowerCase();return{type:"transaction",tag:Zp("tx",{hash:r}),hash:r}}if(t.orphan){const r=t;return{type:"orphan",tag:Zp("orphan",r),filter:aie(r)}}if(t.address||t.topics){const r=t,n={topics:(r.topics||[]).map(s=>s==null?null:Array.isArray(s)?e2(s.map(i=>i.toLowerCase())):s.toLowerCase())};if(r.address){const s=[],i=[],o=a=>{et(a)?s.push(a):i.push((async()=>{s.push(await sr(a,e))})())};Array.isArray(r.address)?r.address.forEach(o):o(r.address),i.length&&await Promise.all(i),n.address=e2(s.map(a=>a.toLowerCase()))}return{filter:n,tag:Zp("event",n),type:"event"}}P(!1,"unknown ProviderEvent","event",t)}function Nx(){return new Date().getTime()}const cie={cacheTimeout:250,pollingInterval:4e3};var Tr,Xo,Pr,xf,Cn,Fc,Zo,Ui,z0,zn,bf,wf,Be,gn,t2,r2,nh,n2,sh,ey;class lo{constructor(e,r){j(this,Be);j(this,Tr);j(this,Xo);j(this,Pr);j(this,xf);j(this,Cn);j(this,Fc);j(this,Zo);j(this,Ui);j(this,z0);j(this,zn);j(this,bf);j(this,wf);if(T(this,wf,Object.assign({},cie,r||{})),e==="any")T(this,Fc,!0),T(this,Cn,null);else if(e){const n=ot.from(e);T(this,Fc,!1),T(this,Cn,Promise.resolve(n)),setTimeout(()=>{this.emit("network",n,null)},0)}else T(this,Fc,!1),T(this,Cn,null);T(this,Ui,-1),T(this,Zo,new Map),T(this,Tr,new Map),T(this,Xo,new Map),T(this,Pr,null),T(this,xf,!1),T(this,z0,1),T(this,zn,new Map),T(this,bf,!1)}get pollingInterval(){return w(this,wf).pollingInterval}get provider(){return this}get plugins(){return Array.from(w(this,Xo).values())}attachPlugin(e){if(w(this,Xo).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return w(this,Xo).set(e.name,e.connect(this)),this}getPlugin(e){return w(this,Xo).get(e)||null}get disableCcipRead(){return w(this,bf)}set disableCcipRead(e){T(this,bf,!!e)}async ccipReadFetch(e,r,n){if(this.disableCcipRead||n.length===0||e.to==null)return null;const s=e.to.toLowerCase(),i=r.toLowerCase(),o=[];for(let a=0;a=500,`response not found during CCIP fetch: ${f}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:c,errorMessage:f}}),o.push(f)}z(!1,`error encountered during CCIP fetch: ${o.map(a=>JSON.stringify(a)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:n,errorMessages:o}})}_wrapBlock(e,r){return new b7(Kse(e),this)}_wrapLog(e,r){return new Cd(Gse(e),this)}_wrapTransactionReceipt(e,r){return new L5(Xse(e),this)}_wrapTransactionResponse(e,r){return new Xf(M7(e),this)}_detectNetwork(){z(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){z(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){const e=Pe(await Y(this,Be,gn).call(this,{method:"getBlockNumber"}),"%response");return w(this,Ui)>=0&&T(this,Ui,e),e}_getAddress(e){return sr(e,this)}_getBlockTag(e){if(e==null)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}if(et(e))return et(e,32)?e:pr(e);if(typeof e=="bigint"&&(e=Pe(e,"blockTag")),typeof e=="number")return e>=0?pr(e):w(this,Ui)>=0?pr(w(this,Ui)+e):this.getBlockNumber().then(r=>pr(r+e));P(!1,"invalid blockTag","blockTag",e)}_getFilter(e){const r=(e.topics||[]).map(c=>c==null?null:Array.isArray(c)?e2(c.map(l=>l.toLowerCase())):c.toLowerCase()),n="blockHash"in e?e.blockHash:void 0,s=(c,l,u)=>{let f;switch(c.length){case 0:break;case 1:f=c[0];break;default:c.sort(),f=c}if(n&&(l!=null||u!=null))throw new Error("invalid filter");const d={};return f&&(d.address=f),r.length&&(d.topics=r),l&&(d.fromBlock=l),u&&(d.toBlock=u),n&&(d.blockHash=n),d};let i=[];if(e.address)if(Array.isArray(e.address))for(const c of e.address)i.push(this._getAddress(c));else i.push(this._getAddress(e.address));let o;"fromBlock"in e&&(o=this._getBlockTag(e.fromBlock));let a;return"toBlock"in e&&(a=this._getBlockTag(e.toBlock)),i.filter(c=>typeof c!="string").length||o!=null&&typeof o!="string"||a!=null&&typeof a!="string"?Promise.all([Promise.all(i),o,a]).then(c=>s(c[0],c[1],c[2])):s(i,o,a)}_getTransactionRequest(e){const r=Yf(e),n=[];if(["to","from"].forEach(s=>{if(r[s]==null)return;const i=sr(r[s],this);gp(i)?n.push(async function(){r[s]=await i}()):r[s]=i}),r.blockTag!=null){const s=this._getBlockTag(r.blockTag);gp(s)?n.push(async function(){r.blockTag=await s}()):r.blockTag=s}return n.length?async function(){return await Promise.all(n),r}():r}async getNetwork(){if(w(this,Cn)==null){const s=(async()=>{try{const i=await this._detectNetwork();return this.emit("network",i,null),i}catch(i){throw w(this,Cn)===s&&T(this,Cn,null),i}})();return T(this,Cn,s),(await s).clone()}const e=w(this,Cn),[r,n]=await Promise.all([e,this._detectNetwork()]);return r.chainId!==n.chainId&&(w(this,Fc)?(this.emit("network",n,r),w(this,Cn)===e&&T(this,Cn,Promise.resolve(n))):z(!1,`network changed: ${r.chainId} => ${n.chainId} `,"NETWORK_ERROR",{event:"changed"})),r.clone()}async getFeeData(){const e=await this.getNetwork(),r=async()=>{const{_block:s,gasPrice:i,priorityFee:o}=await Pt({_block:Y(this,Be,n2).call(this,"latest",!1),gasPrice:(async()=>{try{const u=await Y(this,Be,gn).call(this,{method:"getGasPrice"});return ve(u,"%response")}catch{}return null})(),priorityFee:(async()=>{try{const u=await Y(this,Be,gn).call(this,{method:"getPriorityFee"});return ve(u,"%response")}catch{}return null})()});let a=null,c=null;const l=this._wrapBlock(s,e);return l&&l.baseFeePerGas&&(c=o??BigInt("1000000000"),a=l.baseFeePerGas*iie+c),new Qw(i,a,c)},n=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(n){const s=new qt(n.url),i=await n.processFunc(r,this,s);return new Qw(i.gasPrice,i.maxFeePerGas,i.maxPriorityFeePerGas)}return await r()}async estimateGas(e){let r=this._getTransactionRequest(e);return gp(r)&&(r=await r),ve(await Y(this,Be,gn).call(this,{method:"estimateGas",transaction:r}),"%response")}async call(e){const{tx:r,blockTag:n}=await Pt({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await Y(this,Be,r2).call(this,Y(this,Be,t2).call(this,r,n,e.enableCcipRead?0:-1))}async getBalance(e,r){return ve(await Y(this,Be,nh).call(this,{method:"getBalance"},e,r),"%response")}async getTransactionCount(e,r){return Pe(await Y(this,Be,nh).call(this,{method:"getTransactionCount"},e,r),"%response")}async getCode(e,r){return H(await Y(this,Be,nh).call(this,{method:"getCode"},e,r))}async getStorage(e,r,n){const s=ve(r,"position");return H(await Y(this,Be,nh).call(this,{method:"getStorage",position:s},e,n))}async broadcastTransaction(e){const{blockNumber:r,hash:n,network:s}=await Pt({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),i=vl.from(e);if(i.hash!==n)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(i,s).replaceableTransaction(r)}async getBlock(e,r){const{network:n,params:s}=await Pt({network:this.getNetwork(),params:Y(this,Be,n2).call(this,e,!!r)});return s==null?null:this._wrapBlock(s,n)}async getTransaction(e){const{network:r,params:n}=await Pt({network:this.getNetwork(),params:Y(this,Be,gn).call(this,{method:"getTransaction",hash:e})});return n==null?null:this._wrapTransactionResponse(n,r)}async getTransactionReceipt(e){const{network:r,params:n}=await Pt({network:this.getNetwork(),params:Y(this,Be,gn).call(this,{method:"getTransactionReceipt",hash:e})});if(n==null)return null;if(n.gasPrice==null&&n.effectiveGasPrice==null){const s=await Y(this,Be,gn).call(this,{method:"getTransaction",hash:e});if(s==null)throw new Error("report this; could not find tx or effectiveGasPrice");n.effectiveGasPrice=s.gasPrice}return this._wrapTransactionReceipt(n,r)}async getTransactionResult(e){const{result:r}=await Pt({network:this.getNetwork(),result:Y(this,Be,gn).call(this,{method:"getTransactionResult",hash:e})});return r==null?null:H(r)}async getLogs(e){let r=this._getFilter(e);gp(r)&&(r=await r);const{network:n,params:s}=await Pt({network:this.getNetwork(),params:Y(this,Be,gn).call(this,{method:"getLogs",filter:r})});return s.map(i=>this._wrapLog(i,n))}_getProvider(e){z(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await C0.fromName(this,e)}async getAvatar(e){const r=await this.getResolver(e);return r?await r.getAvatar():null}async resolveName(e){const r=await this.getResolver(e);return r?await r.getAddress():null}async lookupAddress(e){e=Te(e);const r=lv(e.substring(2).toLowerCase()+".addr.reverse");try{const n=await C0.getEnsAddress(this),i=await new dn(n,["function resolver(bytes32) view returns (address)"],this).resolver(r);if(i==null||i===xi)return null;const a=await new dn(i,["function name(bytes32) view returns (string)"],this).name(r);return await this.resolveName(a)!==e?null:a}catch(n){if(Ht(n,"BAD_DATA")&&n.value==="0x"||Ht(n,"CALL_EXCEPTION"))return null;throw n}return null}async waitForTransaction(e,r,n){const s=r??1;return s===0?this.getTransactionReceipt(e):new Promise(async(i,o)=>{let a=null;const c=async l=>{try{const u=await this.getTransactionReceipt(e);if(u!=null&&l-u.blockNumber+1>=s){i(u),a&&(clearTimeout(a),a=null);return}}catch(u){console.log("EEE",u)}this.once("block",c)};n!=null&&(a=setTimeout(()=>{a!=null&&(a=null,this.off("block",c),o(ft("timeout","TIMEOUT",{reason:"timeout"})))},n)),c(await this.getBlockNumber())})}async waitForBlock(e){z(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){const r=w(this,zn).get(e);r&&(r.timer&&clearTimeout(r.timer),w(this,zn).delete(e))}_setTimeout(e,r){r==null&&(r=0);const n=Ol(this,z0)._++,s=()=>{w(this,zn).delete(n),e()};if(this.paused)w(this,zn).set(n,{timer:null,func:s,time:r});else{const i=setTimeout(s,r);w(this,zn).set(n,{timer:i,func:s,time:Nx()})}return n}_forEachSubscriber(e){for(const r of w(this,Tr).values())e(r.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new E0(e.type);case"block":{const r=new tie(this);return r.pollingInterval=this.pollingInterval,r}case"safe":case"finalized":return new rie(this,e.type);case"event":return new H5(this,e.filter);case"transaction":return new sie(this,e.hash);case"orphan":return new nie(this,e.filter)}throw new Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,r){for(const n of w(this,Tr).values())if(n.subscriber===e){n.started&&n.subscriber.stop(),n.subscriber=r,n.started&&r.start(),w(this,Pr)!=null&&r.pause(w(this,Pr));break}}async on(e,r){const n=await Y(this,Be,ey).call(this,e);return n.listeners.push({listener:r,once:!1}),n.started||(n.subscriber.start(),n.started=!0,w(this,Pr)!=null&&n.subscriber.pause(w(this,Pr))),this}async once(e,r){const n=await Y(this,Be,ey).call(this,e);return n.listeners.push({listener:r,once:!0}),n.started||(n.subscriber.start(),n.started=!0,w(this,Pr)!=null&&n.subscriber.pause(w(this,Pr))),this}async emit(e,...r){const n=await Y(this,Be,sh).call(this,e,r);if(!n||n.listeners.length===0)return!1;const s=n.listeners.length;return n.listeners=n.listeners.filter(({listener:i,once:o})=>{const a=new p5(this,o?null:i,e);try{i.call(this,...r,a)}catch{}return!o}),n.listeners.length===0&&(n.started&&n.subscriber.stop(),w(this,Tr).delete(n.tag)),s>0}async listenerCount(e){if(e){const n=await Y(this,Be,sh).call(this,e);return n?n.listeners.length:0}let r=0;for(const{listeners:n}of w(this,Tr).values())r+=n.length;return r}async listeners(e){if(e){const n=await Y(this,Be,sh).call(this,e);return n?n.listeners.map(({listener:s})=>s):[]}let r=[];for(const{listeners:n}of w(this,Tr).values())r=r.concat(n.map(({listener:s})=>s));return r}async off(e,r){const n=await Y(this,Be,sh).call(this,e);if(!n)return this;if(r){const s=n.listeners.map(({listener:i})=>i).indexOf(r);s>=0&&n.listeners.splice(s,1)}return(!r||n.listeners.length===0)&&(n.started&&n.subscriber.stop(),w(this,Tr).delete(n.tag)),this}async removeAllListeners(e){if(e){const{tag:r,started:n,subscriber:s}=await Y(this,Be,ey).call(this,e);n&&s.stop(),w(this,Tr).delete(r)}else for(const[r,{started:n,subscriber:s}]of w(this,Tr))n&&s.stop(),w(this,Tr).delete(r);return this}async addListener(e,r){return await this.on(e,r)}async removeListener(e,r){return this.off(e,r)}get destroyed(){return w(this,xf)}destroy(){this.removeAllListeners();for(const e of w(this,zn).keys())this._clearTimeout(e);T(this,xf,!0)}get paused(){return w(this,Pr)!=null}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(T(this,Ui,-1),w(this,Pr)!=null){if(w(this,Pr)==!!e)return;z(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(r=>r.pause(e)),T(this,Pr,!!e);for(const r of w(this,zn).values())r.timer&&clearTimeout(r.timer),r.time=Nx()-r.time}resume(){if(w(this,Pr)!=null){this._forEachSubscriber(e=>e.resume()),T(this,Pr,null);for(const e of w(this,zn).values()){let r=e.time;r<0&&(r=0),e.time=Nx(),setTimeout(e.func,r)}}}}Tr=new WeakMap,Xo=new WeakMap,Pr=new WeakMap,xf=new WeakMap,Cn=new WeakMap,Fc=new WeakMap,Zo=new WeakMap,Ui=new WeakMap,z0=new WeakMap,zn=new WeakMap,bf=new WeakMap,wf=new WeakMap,Be=new WeakSet,gn=async function(e){const r=w(this,wf).cacheTimeout;if(r<0)return await this._perform(e);const n=Zp(e.method,e);let s=w(this,Zo).get(n);return s||(s=this._perform(e),w(this,Zo).set(n,s),setTimeout(()=>{w(this,Zo).get(n)===s&&w(this,Zo).delete(n)},r)),await s},t2=async function(e,r,n){z(n=0&&r==="latest"&&s.to!=null&&st(i.data,0,4)==="0x556f1830"){const o=i.data,a=await sr(s.to,this);let c;try{c=hie(st(i.data,4))}catch(f){z(!1,f.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:s,info:{data:o}})}z(c.sender.toLowerCase()===a.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:o,reason:"OffchainLookup",transaction:s,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:c.errorArgs}});const l=await this.ccipReadFetch(s,c.calldata,c.urls);z(l!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:s,info:{data:i.data,errorArgs:c.errorArgs}});const u={to:a,data:Le([c.selector,die([l,c.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:u});try{const f=await Y(this,Be,t2).call(this,u,r,n+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},u),result:f}),f}catch(f){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},u),error:f}),f}}throw i}},r2=async function(e){const{value:r}=await Pt({network:this.getNetwork(),value:e});return r},nh=async function(e,r,n){let s=this._getAddress(r),i=this._getBlockTag(n);return(typeof s!="string"||typeof i!="string")&&([s,i]=await Promise.all([s,i])),await Y(this,Be,r2).call(this,Y(this,Be,gn).call(this,Object.assign(e,{address:s,blockTag:i})))},n2=async function(e,r){if(et(e,32))return await Y(this,Be,gn).call(this,{method:"getBlock",blockHash:e,includeTransactions:r});let n=this._getBlockTag(e);return typeof n!="string"&&(n=await n),await Y(this,Be,gn).call(this,{method:"getBlock",blockTag:n,includeTransactions:r})},sh=async function(e,r){let n=await Rx(e,this);return n.type==="event"&&r&&r.length>0&&r[0].removed===!0&&(n=await Rx({orphan:"drop-log",log:r[0]},this)),w(this,Tr).get(n.tag)||null},ey=async function(e){const r=await Rx(e,this),n=r.tag;let s=w(this,Tr).get(n);return s||(s={subscriber:this._getSubscriber(r),tag:n,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},w(this,Tr).set(n,s)),s};function lie(t,e){try{const r=s2(t,e);if(r)return Ds(r)}catch{}return null}function s2(t,e){if(t==="0x")return null;try{const r=Pe(st(t,e,e+32)),n=Pe(st(t,r,r+32));return st(t,r+32,r+32+n)}catch{}return null}function J8(t){const e=rr(t);if(e.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(e,32-e.length),r}function uie(t){if(t.length%32===0)return t;const e=new Uint8Array(Math.ceil(t.length/32)*32);return e.set(t),e}const fie=new Uint8Array([]);function die(t){const e=[];let r=0;for(let n=0;n=5*32,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const r=st(t,0,32);z(st(r,0,12)===st(Y8,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),e.sender=st(r,12);try{const n=[],s=Pe(st(t,32,64)),i=Pe(st(t,s,s+32)),o=st(t,s+32);for(let a=0;ae[n]),e}function jl(t,e){if(t.provider)return t.provider;z(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:e})}async function X8(t,e){let r=Yf(e);if(r.to!=null&&(r.to=sr(r.to,t)),r.from!=null){const n=r.from;r.from=Promise.all([t.getAddress(),sr(n,t)]).then(([s,i])=>(P(s.toLowerCase()===i.toLowerCase(),"transaction from mismatch","tx.from",i),s))}else r.from=t.getAddress();return await Pt(r)}class uo{constructor(e){N(this,"provider");fe(this,{provider:e||null})}async getNonce(e){return jl(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await X8(this,e)}async populateTransaction(e){const r=jl(this,"populateTransaction"),n=await X8(this,e);n.nonce==null&&(n.nonce=await this.getNonce("pending")),n.gasLimit==null&&(n.gasLimit=await this.estimateGas(n));const s=await this.provider.getNetwork();if(n.chainId!=null){const o=ve(n.chainId);P(o===s.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else n.chainId=s.chainId;const i=n.maxFeePerGas!=null||n.maxPriorityFeePerGas!=null;if(n.gasPrice!=null&&(n.type===2||i)?P(!1,"eip-1559 transaction do not support gasPrice","tx",e):(n.type===0||n.type===1)&&i&&P(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e),(n.type===2||n.type==null)&&n.maxFeePerGas!=null&&n.maxPriorityFeePerGas!=null)n.type=2;else if(n.type===0||n.type===1){const o=await r.getFeeData();z(o.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),n.gasPrice==null&&(n.gasPrice=o.gasPrice)}else{const o=await r.getFeeData();if(n.type==null)if(o.maxFeePerGas!=null&&o.maxPriorityFeePerGas!=null)if(n.type=2,n.gasPrice!=null){const a=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=a,n.maxPriorityFeePerGas=a}else n.maxFeePerGas==null&&(n.maxFeePerGas=o.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=o.maxPriorityFeePerGas);else o.gasPrice!=null?(z(!i,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),n.gasPrice==null&&(n.gasPrice=o.gasPrice),n.type=0):z(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else(n.type===2||n.type===3)&&(n.maxFeePerGas==null&&(n.maxFeePerGas=o.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=o.maxPriorityFeePerGas))}return await Pt(n)}async estimateGas(e){return jl(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return jl(this,"call").call(await this.populateCall(e))}async resolveName(e){return await jl(this,"resolveName").resolveName(e)}async sendTransaction(e){const r=jl(this,"sendTransaction"),n=await this.populateTransaction(e);delete n.from;const s=vl.from(n);return await r.broadcastTransaction(await this.signTransaction(s))}}var Cf,ty;const zk=class zk extends uo{constructor(r,n){super(n);j(this,Cf);N(this,"address");fe(this,{address:r})}async getAddress(){return this.address}connect(r){return new zk(this.address,r)}async signTransaction(r){Y(this,Cf,ty).call(this,"transactions","signTransaction")}async signMessage(r){Y(this,Cf,ty).call(this,"messages","signMessage")}async signTypedData(r,n,s){Y(this,Cf,ty).call(this,"typed-data","signTypedData")}};Cf=new WeakSet,ty=function(r,n){z(!1,`VoidSigner cannot sign ${r}`,"UNSUPPORTED_OPERATION",{operation:n})};let fv=zk;const Z8=new Set;function Qa(t){Z8.has(t)||(Z8.add(t),console.log("========= NOTICE ========="),console.log(`Request-Rate Exceeded for ${t} (this message will not be repeated)`),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.org/api-keys/"),console.log("=========================="))}function pie(t){return JSON.parse(JSON.stringify(t))}var jr,ti,Uc,ea,$c,Ef,Da,i2,o2;class L7{constructor(e){j(this,Da);j(this,jr);j(this,ti);j(this,Uc);j(this,ea);j(this,$c);j(this,Ef);T(this,jr,e),T(this,ti,null),T(this,Uc,Y(this,Da,i2).bind(this)),T(this,ea,!1),T(this,$c,null),T(this,Ef,!1)}_subscribe(e){throw new Error("subclasses must override this")}_emitResults(e,r){throw new Error("subclasses must override this")}_recover(e){throw new Error("subclasses must override this")}start(){w(this,ea)||(T(this,ea,!0),Y(this,Da,i2).call(this,-2))}stop(){w(this,ea)&&(T(this,ea,!1),T(this,Ef,!0),Y(this,Da,o2).call(this),w(this,jr).off("block",w(this,Uc)))}pause(e){e&&Y(this,Da,o2).call(this),w(this,jr).off("block",w(this,Uc))}resume(){this.start()}}jr=new WeakMap,ti=new WeakMap,Uc=new WeakMap,ea=new WeakMap,$c=new WeakMap,Ef=new WeakMap,Da=new WeakSet,i2=async function(e){try{w(this,ti)==null&&T(this,ti,this._subscribe(w(this,jr)));let r=null;try{r=await w(this,ti)}catch(i){if(!Ht(i,"UNSUPPORTED_OPERATION")||i.operation!=="eth_newFilter")throw i}if(r==null){T(this,ti,null),w(this,jr)._recoverSubscriber(this,this._recover(w(this,jr)));return}const n=await w(this,jr).getNetwork();if(w(this,$c)||T(this,$c,n),w(this,$c).chainId!==n.chainId)throw new Error("chaid changed");if(w(this,Ef))return;const s=await w(this,jr).send("eth_getFilterChanges",[r]);await this._emitResults(w(this,jr),s)}catch(r){console.log("@TODO",r)}w(this,jr).once("block",w(this,Uc))},o2=function(){const e=w(this,ti);e&&(T(this,ti,null),e.then(r=>{w(this,jr).destroyed||w(this,jr).send("eth_uninstallFilter",[r])}))};var Wc;class yie extends L7{constructor(r,n){super(r);j(this,Wc);T(this,Wc,pie(n))}_recover(r){return new H5(r,w(this,Wc))}async _subscribe(r){return await r.send("eth_newFilter",[w(this,Wc)])}async _emitResults(r,n){for(const s of n)r.emit(w(this,Wc),r._wrapLog(s,r._network))}}Wc=new WeakMap;class vie extends L7{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,r){for(const n of r)e.emit("pending",n)}}const gie="bigint,boolean,function,number,string,symbol".split(/,/g);function ry(t){if(t==null||gie.indexOf(typeof t)>=0||typeof t.getAddress=="function")return t;if(Array.isArray(t))return t.map(ry);if(typeof t=="object")return Object.keys(t).reduce((e,r)=>(e[r]=t[r],e),{});throw new Error(`should not happen: ${t} (${typeof t})`)}function mie(t){return new Promise(e=>{setTimeout(e,t)})}function Fl(t){return t&&t.toLowerCase()}function e3(t){return t&&typeof t.pollingInterval=="number"}const j7={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class ny extends uo{constructor(r,n){super(r);N(this,"address");n=Te(n),fe(this,{address:n})}connect(r){z(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(r){return await this.populateCall(r)}async sendUncheckedTransaction(r){const n=ry(r),s=[];if(n.from){const o=n.from;s.push((async()=>{const a=await sr(o,this.provider);P(a!=null&&a.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",r),n.from=a})())}else n.from=this.address;if(n.gasLimit==null&&s.push((async()=>{n.gasLimit=await this.provider.estimateGas({...n,from:this.address})})()),n.to!=null){const o=n.to;s.push((async()=>{n.to=await sr(o,this.provider)})())}s.length&&await Promise.all(s);const i=this.provider.getRpcTransaction(n);return this.provider.send("eth_sendTransaction",[i])}async sendTransaction(r){const n=await this.provider.getBlockNumber(),s=await this.sendUncheckedTransaction(r);return await new Promise((i,o)=>{const a=[1e3,100];let c=0;const l=async()=>{try{const u=await this.provider.getTransaction(s);if(u!=null){i(u.replaceableTransaction(n));return}}catch(u){if(Ht(u,"CANCELLED")||Ht(u,"BAD_DATA")||Ht(u,"NETWORK_ERROR")){u.info==null&&(u.info={}),u.info.sendTransactionHash=s,o(u);return}if(Ht(u,"INVALID_ARGUMENT")&&(c++,u.info==null&&(u.info={}),u.info.sendTransactionHash=s,c>10)){o(u);return}this.provider.emit("error",ft("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:u}))}this.provider._setTimeout(()=>{l()},a.pop()||4e3)};l()})}async signTransaction(r){const n=ry(r);if(n.from){const i=await sr(n.from,this.provider);P(i!=null&&i.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",r),n.from=i}else n.from=this.address;const s=this.provider.getRpcTransaction(n);return await this.provider.send("eth_signTransaction",[s])}async signMessage(r){const n=typeof r=="string"?mt(r):r;return await this.provider.send("personal_sign",[H(n),this.address.toLowerCase()])}async signTypedData(r,n,s){const i=ry(s),o=await Bs.resolveNames(r,n,i,async a=>{const c=await sr(a);return P(c!=null,"TypedData does not support null address","value",a),c});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(Bs.getPayload(o.domain,n,o.value))])}async unlock(r){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),r,null])}async _legacySignMessage(r){const n=typeof r=="string"?mt(r):r;return await this.provider.send("eth_sign",[this.address.toLowerCase(),H(n)])}}var Vc,kf,$i,ri,bs,Gn,nn,G0,a2;class z5 extends lo{constructor(r,n){super(r,n);j(this,G0);j(this,Vc);j(this,kf);j(this,$i);j(this,ri);j(this,bs);j(this,Gn);j(this,nn);T(this,kf,1),T(this,Vc,Object.assign({},j7,n||{})),T(this,$i,[]),T(this,ri,null),T(this,Gn,null),T(this,nn,null);{let i=null;const o=new Promise(a=>{i=a});T(this,bs,{promise:o,resolve:i})}const s=this._getOption("staticNetwork");typeof s=="boolean"?(P(!s||r!=="any","staticNetwork cannot be used on special network 'any'","options",n),s&&r!=null&&T(this,Gn,ot.from(r))):s&&(P(r==null||s.matches(r),"staticNetwork MUST match network object","options",n),T(this,Gn,s))}_getOption(r){return w(this,Vc)[r]}get _network(){return z(w(this,Gn),"network is not available yet","NETWORK_ERROR"),w(this,Gn)}async _perform(r){if(r.method==="call"||r.method==="estimateGas"){let s=r.transaction;if(s&&s.type!=null&&ve(s.type)&&s.maxFeePerGas==null&&s.maxPriorityFeePerGas==null){const i=await this.getFeeData();i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(r=Object.assign({},r,{transaction:Object.assign({},s,{type:void 0})}))}}const n=this.getRpcRequest(r);return n!=null?await this.send(n.method,n.args):super._perform(r)}async _detectNetwork(){const r=this._getOption("staticNetwork");if(r)if(r===!0){if(w(this,Gn))return w(this,Gn)}else return r;return w(this,nn)?await w(this,nn):this.ready?(T(this,nn,(async()=>{try{const n=ot.from(ve(await this.send("eth_chainId",[])));return T(this,nn,null),n}catch(n){throw T(this,nn,null),n}})()),await w(this,nn)):(T(this,nn,(async()=>{const n={id:Ol(this,kf)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:n});let s;try{s=(await this._send(n))[0],T(this,nn,null)}catch(i){throw T(this,nn,null),this.emit("debug",{action:"receiveRpcError",error:i}),i}if(this.emit("debug",{action:"receiveRpcResult",result:s}),"result"in s)return ot.from(ve(s.result));throw this.getRpcError(n,s)})()),await w(this,nn))}_start(){w(this,bs)==null||w(this,bs).resolve==null||(w(this,bs).resolve(),T(this,bs,null),(async()=>{for(;w(this,Gn)==null&&!this.destroyed;)try{T(this,Gn,await this._detectNetwork())}catch(r){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",ft("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:r}})),await mie(1e3)}Y(this,G0,a2).call(this)})())}async _waitUntilReady(){if(w(this,bs)!=null)return await w(this,bs).promise}_getSubscriber(r){return r.type==="pending"?new vie(this):r.type==="event"?this._getOption("polling")?new H5(this,r.filter):new yie(this,r.filter):r.type==="orphan"&&r.filter.orphan==="drop-log"?new E0("orphan"):super._getSubscriber(r)}get ready(){return w(this,bs)==null}getRpcTransaction(r){const n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(s=>{if(r[s]==null)return;let i=s;s==="gasLimit"&&(i="gas"),n[i]=pr(ve(r[s],`tx.${s}`))}),["from","to","data"].forEach(s=>{r[s]!=null&&(n[s]=H(r[s]))}),r.accessList&&(n.accessList=go(r.accessList)),r.blobVersionedHashes&&(n.blobVersionedHashes=r.blobVersionedHashes.map(s=>s.toLowerCase())),n}getRpcRequest(r){switch(r.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[Fl(r.address),r.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[Fl(r.address),r.blockTag]};case"getCode":return{method:"eth_getCode",args:[Fl(r.address),r.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[Fl(r.address),"0x"+r.position.toString(16),r.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[r.signedTransaction]};case"getBlock":if("blockTag"in r)return{method:"eth_getBlockByNumber",args:[r.blockTag,!!r.includeTransactions]};if("blockHash"in r)return{method:"eth_getBlockByHash",args:[r.blockHash,!!r.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[r.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[r.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(r.transaction),r.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(r.transaction)]};case"getLogs":return r.filter&&r.filter.address!=null&&(Array.isArray(r.filter.address)?r.filter.address=r.filter.address.map(Fl):r.filter.address=Fl(r.filter.address)),{method:"eth_getLogs",args:[r.filter]}}return null}getRpcError(r,n){const{method:s}=r,{error:i}=n;if(s==="eth_estimateGas"&&i.message){const c=i.message;if(!c.match(/revert/i)&&c.match(/insufficient funds/i))return ft("insufficient funds","INSUFFICIENT_FUNDS",{transaction:r.params[0],info:{payload:r,error:i}})}if(s==="eth_call"||s==="eth_estimateGas"){const c=c2(i),l=Kt.getBuiltinCallException(s==="eth_call"?"call":"estimateGas",r.params[0],c?c.data:null);return l.info={error:i,payload:r},l}const o=JSON.stringify(xie(i));if(typeof i.message=="string"&&i.message.match(/user denied|ethers-user-denied/i))return ft("user rejected action","ACTION_REJECTED",{action:{eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"}[s]||"unknown",reason:"rejected",info:{payload:r,error:i}});if(s==="eth_sendRawTransaction"||s==="eth_sendTransaction"){const c=r.params[0];if(o.match(/insufficient funds|base fee exceeds gas limit/i))return ft("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:c,info:{error:i}});if(o.match(/nonce/i)&&o.match(/too low/i))return ft("nonce has already been used","NONCE_EXPIRED",{transaction:c,info:{error:i}});if(o.match(/replacement transaction/i)&&o.match(/underpriced/i))return ft("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:c,info:{error:i}});if(o.match(/only replay-protected/i))return ft("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:s,info:{transaction:c,info:{error:i}}})}let a=!!o.match(/the method .* does not exist/i);return a||i&&i.details&&i.details.startsWith("Unauthorized method:")&&(a=!0),a?ft("unsupported operation","UNSUPPORTED_OPERATION",{operation:r.method,info:{error:i,payload:r}}):ft("could not coalesce error","UNKNOWN_ERROR",{error:i,payload:r})}send(r,n){if(this.destroyed)return Promise.reject(ft("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:r}));const s=Ol(this,kf)._++,i=new Promise((o,a)=>{w(this,$i).push({resolve:o,reject:a,payload:{method:r,params:n,id:s,jsonrpc:"2.0"}})});return Y(this,G0,a2).call(this),i}async getSigner(r){r==null&&(r=0);const n=this.send("eth_accounts",[]);if(typeof r=="number"){const i=await n;if(r>=i.length)throw new Error("no such account");return new ny(this,i[r])}const{accounts:s}=await Pt({network:this.getNetwork(),accounts:n});r=Te(r);for(const i of s)if(Te(i)===r)return new ny(this,r);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(n=>new ny(this,n))}destroy(){w(this,ri)&&(clearTimeout(w(this,ri)),T(this,ri,null));for(const{payload:r,reject:n}of w(this,$i))n(ft("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:r.method}));T(this,$i,[]),super.destroy()}}Vc=new WeakMap,kf=new WeakMap,$i=new WeakMap,ri=new WeakMap,bs=new WeakMap,Gn=new WeakMap,nn=new WeakMap,G0=new WeakSet,a2=function(){if(w(this,ri))return;const r=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");T(this,ri,setTimeout(()=>{T(this,ri,null);const n=w(this,$i);for(T(this,$i,[]);n.length;){const s=[n.shift()];for(;n.length&&s.length!==w(this,Vc).batchMaxCount;)if(s.push(n.shift()),JSON.stringify(s.map(o=>o.payload)).length>w(this,Vc).batchMaxSize){n.unshift(s.pop());break}(async()=>{const i=s.length===1?s[0].payload:s.map(o=>o.payload);this.emit("debug",{action:"sendRpcPayload",payload:i});try{const o=await this._send(i);this.emit("debug",{action:"receiveRpcResult",result:o});for(const{resolve:a,reject:c,payload:l}of s){if(this.destroyed){c(ft("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:l.method}));continue}const u=o.filter(f=>f.id===l.id)[0];if(u==null){const f=ft("missing response for request","BAD_DATA",{value:o,info:{payload:l}});this.emit("error",f),c(f);continue}if("error"in u){c(this.getRpcError(l,u));continue}a(u.result)}}catch(o){this.emit("debug",{action:"receiveRpcError",error:o});for(const{reject:a}of s)a(o)}})()}},r))};var ta;class F7 extends z5{constructor(r,n){super(r,n);j(this,ta);let s=this._getOption("pollingInterval");s==null&&(s=j7.pollingInterval),T(this,ta,s)}_getSubscriber(r){const n=super._getSubscriber(r);return e3(n)&&(n.pollingInterval=w(this,ta)),n}get pollingInterval(){return w(this,ta)}set pollingInterval(r){if(!Number.isInteger(r)||r<0)throw new Error("invalid interval");T(this,ta,r),this._forEachSubscriber(n=>{e3(n)&&(n.pollingInterval=w(this,ta))})}}ta=new WeakMap;var Af,B3;let zt=(B3=class extends F7{constructor(r,n,s){r==null&&(r="http://localhost:8545");super(n,s);j(this,Af);typeof r=="string"?T(this,Af,new qt(r)):T(this,Af,r.clone())}_getConnection(){return w(this,Af).clone()}async send(r,n){return await this._start(),await super.send(r,n)}async _send(r){const n=this._getConnection();n.body=JSON.stringify(r),n.setHeader("content-type","application/json");const s=await n.send();s.assertOk();let i=s.bodyJson;return Array.isArray(i)||(i=[i]),i}},Af=new WeakMap,B3);function c2(t){if(t==null)return null;if(typeof t.message=="string"&&t.message.match(/revert/i)&&et(t.data))return{message:t.message,data:t.data};if(typeof t=="object"){for(const e in t){const r=c2(t[e]);if(r)return r}return null}if(typeof t=="string")try{return c2(JSON.parse(t))}catch{}return null}function l2(t,e){if(t!=null){if(typeof t.message=="string"&&e.push(t.message),typeof t=="object")for(const r in t)l2(t[r],e);if(typeof t=="string")try{return l2(JSON.parse(t),e)}catch{}}}function xie(t){const e=[];return l2(t,e),e}const mp="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function bie(t){switch(t){case"mainnet":return"rpc.ankr.com/eth";case"goerli":return"rpc.ankr.com/eth_goerli";case"sepolia":return"rpc.ankr.com/eth_sepolia";case"arbitrum":return"rpc.ankr.com/arbitrum";case"base":return"rpc.ankr.com/base";case"base-goerli":return"rpc.ankr.com/base_goerli";case"base-sepolia":return"rpc.ankr.com/base_sepolia";case"bnb":return"rpc.ankr.com/bsc";case"bnbt":return"rpc.ankr.com/bsc_testnet_chapel";case"matic":return"rpc.ankr.com/polygon";case"matic-mumbai":return"rpc.ankr.com/polygon_mumbai";case"optimism":return"rpc.ankr.com/optimism";case"optimism-goerli":return"rpc.ankr.com/optimism_testnet";case"optimism-sepolia":return"rpc.ankr.com/optimism_sepolia"}P(!1,"unsupported network","network",t)}class k0 extends zt{constructor(r,n){r==null&&(r="mainnet");const s=ot.from(r);n==null&&(n=mp);const i={polling:!0,staticNetwork:s},o=k0.getRequest(s,n);super(o,s,i);N(this,"apiKey");fe(this,{apiKey:n})}_getProvider(r){try{return new k0(r,this.apiKey)}catch{}return super._getProvider(r)}static getRequest(r,n){n==null&&(n=mp);const s=new qt(`https://${bie(r.name)}/${n}`);return s.allowGzip=!0,n===mp&&(s.retryFunc=async(i,o,a)=>(Qa("AnkrProvider"),!0)),s}getRpcError(r,n){return r.method==="eth_sendRawTransaction"&&n&&n.error&&n.error.message==="INTERNAL_ERROR: could not replace existing tx"&&(n.error.message="replacement transaction underpriced"),super.getRpcError(r,n)}isCommunityResource(){return this.apiKey===mp}}const xp="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";function wie(t){switch(t){case"mainnet":return"eth-mainnet.alchemyapi.io";case"goerli":return"eth-goerli.g.alchemy.com";case"sepolia":return"eth-sepolia.g.alchemy.com";case"arbitrum":return"arb-mainnet.g.alchemy.com";case"arbitrum-goerli":return"arb-goerli.g.alchemy.com";case"arbitrum-sepolia":return"arb-sepolia.g.alchemy.com";case"base":return"base-mainnet.g.alchemy.com";case"base-goerli":return"base-goerli.g.alchemy.com";case"base-sepolia":return"base-sepolia.g.alchemy.com";case"matic":return"polygon-mainnet.g.alchemy.com";case"matic-amoy":return"polygon-amoy.g.alchemy.com";case"matic-mumbai":return"polygon-mumbai.g.alchemy.com";case"optimism":return"opt-mainnet.g.alchemy.com";case"optimism-goerli":return"opt-goerli.g.alchemy.com";case"optimism-sepolia":return"opt-sepolia.g.alchemy.com"}P(!1,"unsupported network","network",t)}class A0 extends zt{constructor(r,n){r==null&&(r="mainnet");const s=ot.from(r);n==null&&(n=xp);const i=A0.getRequest(s,n);super(i,s,{staticNetwork:s});N(this,"apiKey");fe(this,{apiKey:n})}_getProvider(r){try{return new A0(r,this.apiKey)}catch{}return super._getProvider(r)}async _perform(r){if(r.method==="getTransactionResult"){const{trace:n,tx:s}=await Pt({trace:this.send("trace_transaction",[r.hash]),tx:this.getTransaction(r.hash)});if(n==null||s==null)return null;let i,o=!1;try{i=n[0].result.output,o=n[0].error==="Reverted"}catch{}if(i)return z(!o,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:i,reason:null,transaction:s,invocation:null,revert:null}),i;z(!1,"could not parse trace result","BAD_DATA",{value:n})}return await super._perform(r)}isCommunityResource(){return this.apiKey===xp}static getRequest(r,n){n==null&&(n=xp);const s=new qt(`https://${wie(r.name)}/v2/${n}`);return s.allowGzip=!0,n===xp&&(s.retryFunc=async(i,o,a)=>(Qa("alchemy"),!0)),s}}function bp(t){switch(t){case"mainnet":return"39f1d67cedf8b7831010a665328c9197";case"arbitrum":return"0550c209db33c3abf4cc927e1e18cea1";case"bnb":return"98b5a77e531614387366f6fc5da097f8";case"matic":return"cd9d4d70377471aa7c142ec4a4205249"}P(!1,"unsupported network","network",t)}function Cie(t){switch(t){case"mainnet":return"ethereum-mainnet.core.chainstack.com";case"arbitrum":return"arbitrum-mainnet.core.chainstack.com";case"bnb":return"bsc-mainnet.core.chainstack.com";case"matic":return"polygon-mainnet.core.chainstack.com"}P(!1,"unsupported network","network",t)}class S0 extends zt{constructor(r,n){r==null&&(r="mainnet");const s=ot.from(r);n==null&&(n=bp(s.name));const i=S0.getRequest(s,n);super(i,s,{staticNetwork:s});N(this,"apiKey");fe(this,{apiKey:n})}_getProvider(r){try{return new S0(r,this.apiKey)}catch{}return super._getProvider(r)}isCommunityResource(){return this.apiKey===bp(this._network.name)}static getRequest(r,n){n==null&&(n=bp(r.name));const s=new qt(`https://${Cie(r.name)}/${n}`);return s.allowGzip=!0,n===bp(r.name)&&(s.retryFunc=async(i,o,a)=>(Qa("ChainstackProvider"),!0)),s}}class U7 extends zt{constructor(e){e==null&&(e="mainnet");const r=ot.from(e);P(r.name==="mainnet","unsupported network","network",e),super("https://cloudflare-eth.com/",r,{staticNetwork:r})}}const t3=2e3;function Eie(t){return t&&typeof t.then=="function"}const $7="org.ethers.plugins.provider.Etherscan";class G5 extends Ka{constructor(r){super($7);N(this,"baseUrl");fe(this,{baseUrl:r})}clone(){return new G5(this.baseUrl)}}const kie=["enableCcipRead"];let Aie=1;var Sf;class W7 extends lo{constructor(r,n){const s=n??null;super();N(this,"network");N(this,"apiKey");j(this,Sf);const i=ot.from(r);T(this,Sf,i.getPlugin($7)),fe(this,{apiKey:s,network:i}),this.getBaseUrl()}getBaseUrl(){if(w(this,Sf))return w(this,Sf).baseUrl;switch(this.network.name){case"mainnet":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"holesky":return"https://api-holesky.etherscan.io";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"base":return"https://api.basescan.org";case"base-sepolia":return"https://api-sepolia.basescan.org";case"bnb":return"https://api.bscscan.com";case"bnbt":return"https://api-testnet.bscscan.com";case"matic":return"https://api.polygonscan.com";case"matic-amoy":return"https://api-amoy.polygonscan.com";case"matic-mumbai":return"https://api-testnet.polygonscan.com";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}P(!1,"unsupported network","network",this.network)}getUrl(r,n){const s=Object.keys(n).reduce((o,a)=>{const c=n[a];return c!=null&&(o+=`&${a}=${c}`),o},""),i=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.getBaseUrl()}/api?module=${r}${s}${i}`}getPostUrl(){return`${this.getBaseUrl()}/api`}getPostData(r,n){return n.module=r,n.apikey=this.apiKey,n}async detectNetwork(){return this.network}async fetch(r,n,s){const i=Aie++,o=s?this.getPostUrl():this.getUrl(r,n),a=s?this.getPostData(r,n):null;this.emit("debug",{action:"sendRequest",id:i,url:o,payload:a});const c=new qt(o);c.setThrottleParams({slotInterval:1e3}),c.retryFunc=(f,d,h)=>(this.isCommunityResource()&&Qa("Etherscan"),Promise.resolve(!0)),c.processFunc=async(f,d)=>{const h=d.hasBody()?JSON.parse(Ds(d.body)):{},y=(typeof h.result=="string"?h.result:"").toLowerCase().indexOf("rate limit")>=0;return r==="proxy"?h&&h.status==0&&h.message=="NOTOK"&&y&&(this.emit("debug",{action:"receiveError",id:i,reason:"proxy-NOTOK",error:h}),d.throwThrottleError(h.result,t3)):y&&(this.emit("debug",{action:"receiveError",id:i,reason:"null result",error:h.result}),d.throwThrottleError(h.result,t3)),d},a&&(c.setHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),c.body=Object.keys(a).map(f=>`${f}=${a[f]}`).join("&"));const l=await c.send();try{l.assertOk()}catch(f){this.emit("debug",{action:"receiveError",id:i,error:f,reason:"assertOk"}),z(!1,"response error","SERVER_ERROR",{request:c,response:l})}l.hasBody()||(this.emit("debug",{action:"receiveError",id:i,error:"missing body",reason:"null body"}),z(!1,"missing response","SERVER_ERROR",{request:c,response:l}));const u=JSON.parse(Ds(l.body));return r==="proxy"?(u.jsonrpc!="2.0"&&(this.emit("debug",{action:"receiveError",id:i,result:u,reason:"invalid JSON-RPC"}),z(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:c,response:l,info:{result:u}})),u.error&&(this.emit("debug",{action:"receiveError",id:i,result:u,reason:"JSON-RPC error"}),z(!1,"error response","SERVER_ERROR",{request:c,response:l,info:{result:u}})),this.emit("debug",{action:"receiveRequest",id:i,result:u}),u.result):u.status==0&&(u.message==="No records found"||u.message==="No transactions found")?(this.emit("debug",{action:"receiveRequest",id:i,result:u}),u.result):((u.status!=1||typeof u.message=="string"&&!u.message.match(/^OK/))&&(this.emit("debug",{action:"receiveError",id:i,result:u}),z(!1,"error response","SERVER_ERROR",{request:c,response:l,info:{result:u}})),this.emit("debug",{action:"receiveRequest",id:i,result:u}),u.result)}_getTransactionPostData(r){const n={};for(let s in r){if(kie.indexOf(s)>=0||r[s]==null)continue;let i=r[s];if(!(s==="type"&&i===0)&&!(s==="blockTag"&&i==="latest")){if({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[s])i=pr(i);else if(s==="accessList")i="["+go(i).map(o=>`{address:"${o.address}",storageKeys:["${o.storageKeys.join('","')}"]}`).join(",")+"]";else if(s==="blobVersionedHashes"){if(i.length===0)continue;z(!1,"Etherscan API does not support blobVersionedHashes","UNSUPPORTED_OPERATION",{operation:"_getTransactionPostData",info:{transaction:r}})}else i=H(i);n[s]=i}}return n}_checkError(r,n,s){let i="";if(Ht(n,"SERVER_ERROR")){try{i=n.info.result.error.message}catch{}if(!i)try{i=n.info.message}catch{}}if(r.method==="estimateGas"&&!i.match(/revert/i)&&i.match(/insufficient funds/i)&&z(!1,"insufficient funds","INSUFFICIENT_FUNDS",{transaction:r.transaction}),(r.method==="call"||r.method==="estimateGas")&&i.match(/execution reverted/i)){let o="";try{o=n.info.result.error.data}catch{}const a=Kt.getBuiltinCallException(r.method,r.transaction,o);throw a.info={request:r,error:n},a}if(i&&r.method==="broadcastTransaction"){const o=vl.from(r.signedTransaction);i.match(/replacement/i)&&i.match(/underpriced/i)&&z(!1,"replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:o}),i.match(/insufficient funds/)&&z(!1,"insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:o}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&z(!1,"nonce has already been used","NONCE_EXPIRED",{transaction:o})}throw n}async _detectNetwork(){return this.network}async _perform(r){switch(r.method){case"chainId":return this.network.chainId;case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getPriorityFee":if(this.network.name==="mainnet")return"1000000000";if(this.network.name==="optimism")return"1000000";throw new Error("fallback onto the AbstractProvider default");case"getBalance":return this.fetch("account",{action:"balance",address:r.address,tag:r.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:r.address,tag:r.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:r.address,tag:r.blockTag});case"getStorage":return this.fetch("proxy",{action:"eth_getStorageAt",address:r.address,position:r.position,tag:r.blockTag});case"broadcastTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:r.signedTransaction},!0).catch(n=>this._checkError(r,n,r.signedTransaction));case"getBlock":if("blockTag"in r)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:r.blockTag,boolean:r.includeTransactions?"true":"false"});z(!1,"getBlock by blockHash not supported by Etherscan","UNSUPPORTED_OPERATION",{operation:"getBlock(blockHash)"});case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:r.hash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:r.hash});case"call":{if(r.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");const n=this._getTransactionPostData(r.transaction);n.module="proxy",n.action="eth_call";try{return await this.fetch("proxy",n,!0)}catch(s){return this._checkError(r,s,r.transaction)}}case"estimateGas":{const n=this._getTransactionPostData(r.transaction);n.module="proxy",n.action="eth_estimateGas";try{return await this.fetch("proxy",n,!0)}catch(s){return this._checkError(r,s,r.transaction)}}}return super._perform(r)}async getNetwork(){return this.network}async getEtherPrice(){return this.network.name!=="mainnet"?0:parseFloat((await this.fetch("stats",{action:"ethprice"})).ethusd)}async getContract(r){let n=this._getAddress(r);Eie(n)&&(n=await n);try{const s=await this.fetch("contract",{action:"getabi",address:n}),i=JSON.parse(s);return new dn(n,i,this)}catch{return null}}isCommunityResource(){return this.apiKey==null}}Sf=new WeakMap;function Sie(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}const Tie=Sie().WebSocket;var ni,q0,ra,Hc,na;class zg{constructor(e,r){j(this,ni);j(this,q0);j(this,ra);j(this,Hc);j(this,na);T(this,ni,e),T(this,q0,JSON.stringify(r)),T(this,ra,null),T(this,Hc,null),T(this,na,null)}get filter(){return JSON.parse(w(this,q0))}start(){T(this,ra,w(this,ni).send("eth_subscribe",this.filter).then(e=>(w(this,ni)._register(e,this),e)))}stop(){w(this,ra).then(e=>{w(this,ni).destroyed||w(this,ni).send("eth_unsubscribe",[e])}),T(this,ra,null)}pause(e){z(e,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),T(this,Hc,!!e)}resume(){T(this,Hc,null)}_handleMessage(e){if(w(this,ra)!=null&&w(this,Hc)===null){let r=w(this,na);r==null?r=this._emit(w(this,ni),e):r=r.then(async()=>{await this._emit(w(this,ni),e)}),T(this,na,r.then(()=>{w(this,na)===r&&T(this,na,null)}))}}async _emit(e,r){throw new Error("sub-classes must implemente this; _emit")}}ni=new WeakMap,q0=new WeakMap,ra=new WeakMap,Hc=new WeakMap,na=new WeakMap;class V7 extends zg{constructor(e){super(e,["newHeads"])}async _emit(e,r){e.emit("block",parseInt(r.number))}}class H7 extends zg{constructor(e){super(e,["newPendingTransactions"])}async _emit(e,r){e.emit("pending",r)}}var K0;class z7 extends zg{constructor(r,n){super(r,["logs",n]);j(this,K0);T(this,K0,JSON.stringify(n))}get logFilter(){return JSON.parse(w(this,K0))}async _emit(r,n){r.emit(this.logFilter,r._wrapLog(n,r._network))}}K0=new WeakMap;var zc,Tf,sa;class G7 extends z5{constructor(r,n){const s=Object.assign({},n??{});P(s.batchMaxCount==null||s.batchMaxCount===1,"sockets-based providers do not support batches","options.batchMaxCount",n),s.batchMaxCount=1,s.staticNetwork==null&&(s.staticNetwork=!0);super(r,s);j(this,zc);j(this,Tf);j(this,sa);T(this,zc,new Map),T(this,Tf,new Map),T(this,sa,new Map)}_getSubscriber(r){switch(r.type){case"close":return new E0("close");case"block":return new V7(this);case"pending":return new H7(this);case"event":return new z7(this,r.filter);case"orphan":if(r.filter.orphan==="drop-log")return new E0("drop-log")}return super._getSubscriber(r)}_register(r,n){w(this,Tf).set(r,n);const s=w(this,sa).get(r);if(s){for(const i of s)n._handleMessage(i);w(this,sa).delete(r)}}async _send(r){P(!Array.isArray(r),"WebSocket does not support batch send","payload",r);const n=new Promise((s,i)=>{w(this,zc).set(r.id,{payload:r,resolve:s,reject:i})});return await this._waitUntilReady(),await this._write(JSON.stringify(r)),[await n]}async _processMessage(r){const n=JSON.parse(r);if(n&&typeof n=="object"&&"id"in n){const s=w(this,zc).get(n.id);if(s==null){this.emit("error",ft("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:n}));return}w(this,zc).delete(n.id),s.resolve(n)}else if(n&&n.method==="eth_subscription"){const s=n.params.subscription,i=w(this,Tf).get(s);if(i)i._handleMessage(n.params.result);else{let o=w(this,sa).get(s);o==null&&(o=[],w(this,sa).set(s,o)),o.push(n.params.result)}}else{this.emit("error",ft("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:n}));return}}async _write(r){throw new Error("sub-classes must override this")}}zc=new WeakMap,Tf=new WeakMap,sa=new WeakMap;var Gc,ws;class q5 extends G7{constructor(r,n,s){super(n,s);j(this,Gc);j(this,ws);typeof r=="string"?(T(this,Gc,()=>new Tie(r)),T(this,ws,w(this,Gc).call(this))):typeof r=="function"?(T(this,Gc,r),T(this,ws,r())):(T(this,Gc,null),T(this,ws,r)),this.websocket.onopen=async()=>{try{await this._start(),this.resume()}catch(i){console.log("failed to start WebsocketProvider",i)}},this.websocket.onmessage=i=>{this._processMessage(i.data)}}get websocket(){if(w(this,ws)==null)throw new Error("websocket closed");return w(this,ws)}async _write(r){this.websocket.send(r)}async destroy(){w(this,ws)!=null&&(w(this,ws).close(),T(this,ws,null)),super.destroy()}}Gc=new WeakMap,ws=new WeakMap;const ih="84842078b09946638c03157f83405213";function Pie(t){switch(t){case"mainnet":return"mainnet.infura.io";case"goerli":return"goerli.infura.io";case"sepolia":return"sepolia.infura.io";case"arbitrum":return"arbitrum-mainnet.infura.io";case"arbitrum-goerli":return"arbitrum-goerli.infura.io";case"arbitrum-sepolia":return"arbitrum-sepolia.infura.io";case"base":return"base-mainnet.infura.io";case"base-goerlia":return"base-goerli.infura.io";case"base-sepolia":return"base-sepolia.infura.io";case"bnb":return"bnbsmartchain-mainnet.infura.io";case"bnbt":return"bnbsmartchain-testnet.infura.io";case"linea":return"linea-mainnet.infura.io";case"linea-goerli":return"linea-goerli.infura.io";case"linea-sepolia":return"linea-sepolia.infura.io";case"matic":return"polygon-mainnet.infura.io";case"matic-amoy":return"polygon-amoy.infura.io";case"matic-mumbai":return"polygon-mumbai.infura.io";case"optimism":return"optimism-mainnet.infura.io";case"optimism-goerli":return"optimism-goerli.infura.io";case"optimism-sepolia":return"optimism-sepolia.infura.io"}P(!1,"unsupported network","network",t)}class q7 extends q5{constructor(r,n){const s=new td(r,n),i=s._getConnection();z(!i.credentials,"INFURA WebSocket project secrets unsupported","UNSUPPORTED_OPERATION",{operation:"InfuraProvider.getWebSocketProvider()"});const o=i.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(o,s._network);N(this,"projectId");N(this,"projectSecret");fe(this,{projectId:s.projectId,projectSecret:s.projectSecret})}isCommunityResource(){return this.projectId===ih}}class td extends zt{constructor(r,n,s){r==null&&(r="mainnet");const i=ot.from(r);n==null&&(n=ih),s==null&&(s=null);const o=td.getRequest(i,n,s);super(o,i,{staticNetwork:i});N(this,"projectId");N(this,"projectSecret");fe(this,{projectId:n,projectSecret:s})}_getProvider(r){try{return new td(r,this.projectId,this.projectSecret)}catch{}return super._getProvider(r)}isCommunityResource(){return this.projectId===ih}static getWebSocketProvider(r,n){return new q7(r,n)}static getRequest(r,n,s){n==null&&(n=ih),s==null&&(s=null);const i=new qt(`https://${Pie(r.name)}/v3/${n}`);return i.allowGzip=!0,s&&i.setCredentials("",s),n===ih&&(i.retryFunc=async(o,a,c)=>(Qa("InfuraProvider"),!0)),i}}const wp="919b412a057b5e9c9b6dce193c5a60242d6efadb";function Iie(t){switch(t){case"mainnet":return"ethers.quiknode.pro";case"goerli":return"ethers.ethereum-goerli.quiknode.pro";case"sepolia":return"ethers.ethereum-sepolia.quiknode.pro";case"holesky":return"ethers.ethereum-holesky.quiknode.pro";case"arbitrum":return"ethers.arbitrum-mainnet.quiknode.pro";case"arbitrum-goerli":return"ethers.arbitrum-goerli.quiknode.pro";case"arbitrum-sepolia":return"ethers.arbitrum-sepolia.quiknode.pro";case"base":return"ethers.base-mainnet.quiknode.pro";case"base-goerli":return"ethers.base-goerli.quiknode.pro";case"base-spolia":return"ethers.base-sepolia.quiknode.pro";case"bnb":return"ethers.bsc.quiknode.pro";case"bnbt":return"ethers.bsc-testnet.quiknode.pro";case"matic":return"ethers.matic.quiknode.pro";case"matic-mumbai":return"ethers.matic-testnet.quiknode.pro";case"optimism":return"ethers.optimism.quiknode.pro";case"optimism-goerli":return"ethers.optimism-goerli.quiknode.pro";case"optimism-sepolia":return"ethers.optimism-sepolia.quiknode.pro";case"xdai":return"ethers.xdai.quiknode.pro"}P(!1,"unsupported network","network",t)}class T0 extends zt{constructor(r,n){r==null&&(r="mainnet");const s=ot.from(r);n==null&&(n=wp);const i=T0.getRequest(s,n);super(i,s,{staticNetwork:s});N(this,"token");fe(this,{token:n})}_getProvider(r){try{return new T0(r,this.token)}catch{}return super._getProvider(r)}isCommunityResource(){return this.token===wp}static getRequest(r,n){n==null&&(n=wp);const s=new qt(`https://${Iie(r.name)}/${n}`);return s.allowGzip=!0,n===wp&&(s.retryFunc=async(i,o,a)=>(Qa("QuickNodeProvider"),!0)),s}}const Oie=BigInt("1"),Rie=BigInt("2");function Nie(t){for(let e=t.length-1;e>0;e--){const r=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[r],t[r]=n}}function _ie(t){return new Promise(e=>{setTimeout(e,t)})}function u2(){return new Date().getTime()}function _x(t){return JSON.stringify(t,(e,r)=>typeof r=="bigint"?{type:"bigint",value:r.toString()}:r)}const r3={stallTimeout:400,priority:1,weight:1},n3={blockNumber:-2,requests:0,lateResponses:0,errorResponses:0,outOfSync:-1,unsupportedEvents:0,rollingDuration:0,score:0,_network:null,_updateNumber:null,_totalTime:0,_lastFatalError:null,_lastFatalErrorTimestamp:0};async function Mie(t,e){for(;(t.blockNumber<0||t.blockNumber{try{const r=await t.provider.getBlockNumber();r>t.blockNumber&&(t.blockNumber=r)}catch(r){t.blockNumber=-2,t._lastFatalError=r,t._lastFatalErrorTimestamp=u2()}t._updateNumber=null})()),await t._updateNumber,t.outOfSync++,!t._lastFatalError););}function Th(t){if(t==null)return"null";if(Array.isArray(t))return"["+t.map(Th).join(",")+"]";if(typeof t=="object"&&typeof t.toJSON=="function")return Th(t.toJSON());switch(typeof t){case"boolean":case"symbol":return t.toString();case"bigint":case"number":return BigInt(t).toString();case"string":return JSON.stringify(t);case"object":{const e=Object.keys(t);return e.sort(),"{"+e.map(r=>`${JSON.stringify(r)}:${Th(t[r])}`).join(",")+"}"}}throw console.log("Could not serialize",t),new Error("Hmm...")}function Mx(t){if("error"in t){const r=t.error;return{tag:Th(r),value:r}}const e=t.result;return{tag:Th(e),value:e}}function sy(t,e){const r=new Map;for(const{value:s,tag:i,weight:o}of e){const a=r.get(i)||{value:s,weight:0};a.weight+=o,r.set(i,a)}let n=null;for(const s of r.values())s.weight>=t&&(!n||s.weight>n.weight)&&(n=s);if(n)return n.value}function f2(t,e){let r=0;const n=new Map;let s=null;const i=[];for(const{value:a,tag:c,weight:l}of e)if(a instanceof Error){const u=n.get(c)||{value:a,weight:0};u.weight+=l,n.set(c,u),(s==null||u.weight>s.weight)&&(s=u)}else i.push(BigInt(a)),r+=l;if(r=t?s.value:void 0;i.sort((a,c)=>aa?1:0);const o=Math.floor(i.length/2);return i.length%2?i[o]:(i[o-1]+i[o]+Oie)/Rie}function Dx(t,e){const r=sy(t,e);if(r!==void 0)return r;for(const n of e)if(n.value)return n.value}function Die(t,e){if(t===1)return Pe(f2(t,e),"%internal");const r=new Map,n=(o,a)=>{const c=r.get(o)||{result:o,weight:0};c.weight+=a,r.set(o,c)};for(const{weight:o,value:a}of e){const c=Pe(a);n(c-1,o),n(c,o),n(c+1,o)}let s=0,i;for(const{weight:o,result:a}of r.values())o>=t&&(o>s||i!=null&&o===s&&a>i)&&(s=o,i=a);return i}var sn,Wi,Pf,yn,Q7,d2,J7,Y7,h2;class K7 extends lo{constructor(r,n,s){super(n,s);j(this,yn);N(this,"quorum");N(this,"eventQuorum");N(this,"eventWorkers");j(this,sn);j(this,Wi);j(this,Pf);T(this,sn,r.map(i=>i instanceof lo?Object.assign({provider:i},r3,n3):Object.assign({},r3,i,n3))),T(this,Wi,-2),T(this,Pf,null),s&&s.quorum!=null?this.quorum=s.quorum:this.quorum=Math.ceil(w(this,sn).reduce((i,o)=>(i+=o.weight,i),0)/2),this.eventQuorum=1,this.eventWorkers=1,P(this.quorum<=w(this,sn).reduce((i,o)=>i+o.weight,0),"quorum exceed provider weight","quorum",this.quorum)}get providerConfigs(){return w(this,sn).map(r=>{const n=Object.assign({},r);for(const s in n)s[0]==="_"&&delete n[s];return n})}async _detectNetwork(){return ot.from(ve(await this._perform({method:"chainId"})))}async _translatePerform(r,n){switch(n.method){case"broadcastTransaction":return await r.broadcastTransaction(n.signedTransaction);case"call":return await r.call(Object.assign({},n.transaction,{blockTag:n.blockTag}));case"chainId":return(await r.getNetwork()).chainId;case"estimateGas":return await r.estimateGas(n.transaction);case"getBalance":return await r.getBalance(n.address,n.blockTag);case"getBlock":{const s="blockHash"in n?n.blockHash:n.blockTag;return await r.getBlock(s,n.includeTransactions)}case"getBlockNumber":return await r.getBlockNumber();case"getCode":return await r.getCode(n.address,n.blockTag);case"getGasPrice":return(await r.getFeeData()).gasPrice;case"getPriorityFee":return(await r.getFeeData()).maxPriorityFeePerGas;case"getLogs":return await r.getLogs(n.filter);case"getStorage":return await r.getStorage(n.address,n.position,n.blockTag);case"getTransaction":return await r.getTransaction(n.hash);case"getTransactionCount":return await r.getTransactionCount(n.address,n.blockTag);case"getTransactionReceipt":return await r.getTransactionReceipt(n.hash);case"getTransactionResult":return await r.getTransactionResult(n.hash)}}async _perform(r){if(r.method==="broadcastTransaction"){const o=w(this,sn).map(l=>null),a=w(this,sn).map(async({provider:l,weight:u},f)=>{try{const d=await l._perform(r);o[f]=Object.assign(Mx({result:d}),{weight:u})}catch(d){o[f]=Object.assign(Mx({error:d}),{weight:u})}});for(;;){const l=o.filter(d=>d!=null);for(const{value:d}of l)if(!(d instanceof Error))return d;const u=sy(this.quorum,o.filter(d=>d!=null));if(Ht(u,"INSUFFICIENT_FUNDS"))throw u;const f=a.filter((d,h)=>o[h]==null);if(f.length===0)break;await Promise.race(f)}const c=Dx(this.quorum,o);if(z(c!==void 0,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:r,results:o.map(_x)}}),c instanceof Error)throw c;return c}await Y(this,yn,J7).call(this);const n=new Set;let s=0;for(;;){const o=Y(this,yn,d2).call(this,n,r);if(o==null||(s+=o.config.weight,s>=this.quorum))break}const i=await Y(this,yn,h2).call(this,n,r);for(const o of n)o.perform&&o.result==null&&o.config.lateResponses++;return i}async destroy(){for(const{provider:r}of w(this,sn))r.destroy();super.destroy()}}sn=new WeakMap,Wi=new WeakMap,Pf=new WeakMap,yn=new WeakSet,Q7=function(r){const n=Array.from(r).map(i=>i.config),s=w(this,sn).slice();Nie(s),s.sort((i,o)=>i.priority-o.priority);for(const i of s)if(!i._lastFatalError&&n.indexOf(i)===-1)return i;return null},d2=function(r,n){const s=Y(this,yn,Q7).call(this,r);if(s==null)return null;const i={config:s,result:null,didBump:!1,perform:null,staller:null},o=u2();return i.perform=(async()=>{try{s.requests++;const c=await this._translatePerform(s.provider,n);i.result={result:c}}catch(c){s.errorResponses++,i.result={error:c}}const a=u2()-o;s._totalTime+=a,s.rollingDuration=.95*s.rollingDuration+.05*a,i.perform=null})(),i.staller=(async()=>{await _ie(s.stallTimeout),i.staller=null})(),r.add(i),i},J7=async function(){let r=w(this,Pf);if(!r){const n=[];w(this,sn).forEach(s=>{n.push((async()=>{await Mie(s,0),s._lastFatalError||(s._network=await s.provider.getNetwork())})())}),T(this,Pf,r=(async()=>{await Promise.all(n);let s=null;for(const i of w(this,sn)){if(i._lastFatalError)continue;const o=i._network;s==null?s=o.chainId:o.chainId!==s&&z(!1,"cannot mix providers on different networks","UNSUPPORTED_OPERATION",{operation:"new FallbackProvider"})}})())}await r},Y7=async function(r,n){const s=[];for(const i of r)if(i.result!=null){const{tag:o,value:a}=Mx(i.result);s.push({tag:o,value:a,weight:i.config.weight})}if(!(s.reduce((i,o)=>i+o.weight,0)!o._lastFatalError).map(o=>({value:o.blockNumber,tag:Pe(o.blockNumber).toString(),weight:o.weight}))))));const i=Die(this.quorum,s);return i===void 0?void 0:(i>w(this,Wi)&&T(this,Wi,i),w(this,Wi))}case"getGasPrice":case"getPriorityFee":case"estimateGas":return f2(this.quorum,s);case"getBlock":return"blockTag"in n&&n.blockTag==="pending"?Dx(this.quorum,s):sy(this.quorum,s);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return sy(this.quorum,s);case"broadcastTransaction":return Dx(this.quorum,s)}z(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${_x(n.method)})`})}},h2=async function(r,n){if(r.size===0)throw new Error("no runners?!");const s=[];let i=0;for(const a of r){if(a.perform&&s.push(a.perform),a.staller){s.push(a.staller);continue}a.didBump||(a.didBump=!0,i++)}const o=await Y(this,yn,Y7).call(this,r,n);if(o!==void 0){if(o instanceof Error)throw o;return o}for(let a=0;a0,"quorum not met","SERVER_ERROR",{request:"%sub-requests",info:{request:n,results:Array.from(r).map(a=>_x(a.result))}}),await Promise.race(s),await Y(this,yn,h2).call(this,r,n)};function Bie(t){return t&&typeof t.send=="function"&&typeof t.close=="function"}const Lie="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");function jie(t,e){e==null&&(e={});const r=o=>e[o]==="-"?!1:typeof e.exclusive=="string"?o===e.exclusive:Array.isArray(e.exclusive)?e.exclusive.indexOf(o)!==-1:!0;if(typeof t=="string"&&t.match(/^https?:/))return new zt(t);if(typeof t=="string"&&t.match(/^wss?:/)||Bie(t))return new q5(t);let n=null;try{n=ot.from(t)}catch{}const s=[];if(r("publicPolygon")&&n&&(n.name==="matic"?s.push(new zt("https://polygon-rpc.com/",n,{staticNetwork:n})):n.name==="matic-amoy"&&s.push(new zt("https://rpc-amoy.polygon.technology/",n,{staticNetwork:n}))),r("alchemy"))try{s.push(new A0(t,e.alchemy))}catch{}if(r("ankr")&&e.ankr!=null)try{s.push(new k0(t,e.ankr))}catch{}if(r("chainstack"))try{s.push(new S0(t,e.chainstack))}catch{}if(r("cloudflare"))try{s.push(new U7(t))}catch{}if(r("etherscan"))try{s.push(new W7(t,e.etherscan))}catch{}if(r("infura"))try{let o=e.infura,a;typeof o=="object"&&(a=o.projectSecret,o=o.projectId),s.push(new td(t,o,a))}catch{}if(r("quicknode"))try{let o=e.quicknode;s.push(new T0(t,o))}catch{}if(z(s.length,"unsupported default network","UNSUPPORTED_OPERATION",{operation:"getDefaultProvider"}),s.length===1)return s[0];let i=Math.floor(s.length/2);return i>2&&(i=2),n&&Lie.indexOf(n.name)!==-1&&(i=1),e&&e.quorum&&(i=e.quorum),new K7(s,void 0,{quorum:i})}var ia,qc;const Gk=class Gk extends uo{constructor(r){super(r.provider);N(this,"signer");j(this,ia);j(this,qc);fe(this,{signer:r}),T(this,ia,null),T(this,qc,0)}async getAddress(){return this.signer.getAddress()}connect(r){return new Gk(this.signer.connect(r))}async getNonce(r){if(r==="pending"){w(this,ia)==null&&T(this,ia,super.getNonce("pending"));const n=w(this,qc);return await w(this,ia)+n}return super.getNonce(r)}increment(){Ol(this,qc)._++}reset(){T(this,qc,0),T(this,ia,null)}async sendTransaction(r){const n=this.getNonce("pending");return this.increment(),r=await this.signer.populateTransaction(r),r.nonce=await n,await this.signer.sendTransaction(r)}signTransaction(r){return this.signer.signTransaction(r)}signMessage(r){return this.signer.signMessage(r)}signTypedData(r,n,s){return this.signer.signTypedData(r,n,s)}};ia=new WeakMap,qc=new WeakMap;let p2=Gk;var If;class Fie extends F7{constructor(r,n,s){const i=Object.assign({},s??{},{batchMaxCount:1});P(r&&r.request,"invalid EIP-1193 provider","ethereum",r);super(n,i);j(this,If);T(this,If,async(o,a)=>{const c={method:o,params:a};this.emit("debug",{action:"sendEip1193Request",payload:c});try{const l=await r.request(c);return this.emit("debug",{action:"receiveEip1193Result",result:l}),l}catch(l){const u=new Error(l.message);throw u.code=l.code,u.data=l.data,u.payload=c,this.emit("debug",{action:"receiveEip1193Error",error:u}),u}})}async send(r,n){return await this._start(),await super.send(r,n)}async _send(r){P(!Array.isArray(r),"EIP-1193 does not support batch request","payload",r);try{const n=await w(this,If).call(this,r.method,r.params||[]);return[{id:r.id,result:n}]}catch(n){return[{id:r.id,error:{code:n.code,data:n.data,message:n.message}}]}}getRpcError(r,n){switch(n=JSON.parse(JSON.stringify(n)),n.error.code||-1){case 4001:n.error.message=`ethers-user-denied: ${n.error.message}`;break;case 4200:n.error.message=`ethers-unsupported: ${n.error.message}`;break}return super.getRpcError(r,n)}async hasSigner(r){r==null&&(r=0);const n=await this.send("eth_accounts",[]);return typeof r=="number"?n.length>r:(r=r.toLowerCase(),n.filter(s=>s.toLowerCase()===r).length!==0)}async getSigner(r){if(r==null&&(r=0),!await this.hasSigner(r))try{await w(this,If).call(this,"eth_requestAccounts",[])}catch(n){const s=n.payload;throw this.getRpcError(s,{id:s.id,error:n})}return await super.getSigner(r)}}If=new WeakMap;const Cp="62e1ad51b37b8e00394bda3b";function Uie(t){switch(t){case"mainnet":return"eth-mainnet.gateway.pokt.network";case"goerli":return"eth-goerli.gateway.pokt.network";case"matic":return"poly-mainnet.gateway.pokt.network";case"matic-mumbai":return"polygon-mumbai-rpc.gateway.pokt.network"}P(!1,"unsupported network","network",t)}class dv extends zt{constructor(r,n,s){r==null&&(r="mainnet");const i=ot.from(r);n==null&&(n=Cp),s==null&&(s=null);const o={staticNetwork:i},a=dv.getRequest(i,n,s);super(a,i,o);N(this,"applicationId");N(this,"applicationSecret");fe(this,{applicationId:n,applicationSecret:s})}_getProvider(r){try{return new dv(r,this.applicationId,this.applicationSecret)}catch{}return super._getProvider(r)}static getRequest(r,n,s){n==null&&(n=Cp);const i=new qt(`https://${Uie(r.name)}/v1/lb/${n}`);return i.allowGzip=!0,s&&i.setCredentials("",s),n===Cp&&(i.retryFunc=async(o,a,c)=>(Qa("PocketProvider"),!0)),i}isCommunityResource(){return this.applicationId===Cp}}const $ie=void 0;var Of;const qk=class qk extends uo{constructor(r,n){super(n);N(this,"address");j(this,Of);P(r&&typeof r.sign=="function","invalid private key","privateKey","[ REDACTED ]"),T(this,Of,r);const s=wd(this.signingKey.publicKey);fe(this,{address:s})}get signingKey(){return w(this,Of)}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(r){return new qk(w(this,Of),r)}async signTransaction(r){r=Yf(r);const{to:n,from:s}=await Pt({to:r.to?sr(r.to,this.provider):void 0,from:r.from?sr(r.from,this.provider):void 0});n!=null&&(r.to=n),s!=null&&(r.from=s),r.from!=null&&(P(Te(r.from)===this.address,"transaction from address mismatch","tx.from",r.from),delete r.from);const i=vl.from(r);return i.signature=this.signingKey.sign(i.unsignedHash),i.serialized}async signMessage(r){return this.signMessageSync(r)}signMessageSync(r){return this.signingKey.sign(Fg(r)).serialized}async signTypedData(r,n,s){const i=await Bs.resolveNames(r,n,s,async o=>{z(this.provider!=null,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:o}});const a=await this.provider.resolveName(o);return z(a!=null,"unconfigured ENS name","UNCONFIGURED_NAME",{value:o}),a});return this.signingKey.sign(Bs.hash(i.domain,n,i.value)).serialized}};Of=new WeakMap;let P0=qk;const hv=" !#$%&'()*+,-./<=>?@[]^_`{|}~",Wie=/^[a-z]*$/i;function s3(t,e){let r=97;return t.reduce((n,s)=>(s===e?r++:s.match(Wie)?n.push(String.fromCharCode(r)+s):(r=97,n.push(s)),n),[])}function Vie(t,e){for(let s=hv.length-1;s>=0;s--)t=t.split(hv[s]).join(e.substring(2*s,2*s+2));const r=[],n=t.replace(/(:|([0-9])|([A-Z][a-z]*))/g,(s,i,o,a)=>{if(o)for(let c=parseInt(o);c>=0;c--)r.push(";");else r.push(i.toLowerCase());return""});if(n)throw new Error(`leftovers: ${JSON.stringify(n)}`);return s3(s3(r,";"),":")}function X7(t){return P(t[0]==="0","unsupported auwl data","data",t),Vie(t.substring(1+2*hv.length),t.substring(1,1+2*hv.length))}class Z7{constructor(e){N(this,"locale");fe(this,{locale:e})}split(e){return e.toLowerCase().split(/\s+/g)}join(e){return e.join(" ")}}var Rf,Q0,Kc,J0,y2;class K5 extends Z7{constructor(r,n,s){super(r);j(this,J0);j(this,Rf);j(this,Q0);j(this,Kc);T(this,Rf,n),T(this,Q0,s),T(this,Kc,null)}get _data(){return w(this,Rf)}_decodeWords(){return X7(w(this,Rf))}getWord(r){const n=Y(this,J0,y2).call(this);return P(r>=0&&r=12&&r.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");const n=new Uint8Array(Math.ceil(11*r.length/8));let s=0;for(let l=0;l=0,`invalid mnemonic word at index ${l}`,"mnemonic","[ REDACTED ]");for(let f=0;f<11;f++)u&1<<10-f&&(n[s>>3]|=1<<7-s%8),s++}const i=32*r.length/3,o=r.length/3,a=X7(o),c=Q(qr(n.slice(0,i/8)))[0]&a;return P(c===(n[n.length-1]&a),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),H(n.slice(0,i/8))}function Bx(t,e){P(t.length%4===0&&t.length>=16&&t.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),e==null&&(e=uo.wordlist());const r=[0];let n=11;for(let o=0;o8?(r[r.length-1]<<=8,r[r.length-1]|=t[o],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=t[o]>>8-n,r.push(t[o]&Hie(8-n)),n+=3);const s=t.length/4,i=parseInt(qr(t).substring(2,4),16)&X7(s);return r[r.length-1]<<=s,r[r.length-1]|=i>>8-s,e.join(r.map(o=>e.getWord(o)))}const Lx={};class ml{constructor(e,r,n,s,i){N(this,"phrase");N(this,"password");N(this,"wordlist");N(this,"entropy");s==null&&(s=""),i==null&&(i=uo.wordlist()),po(e,Lx,"Mnemonic"),fe(this,{phrase:n,password:s,wordlist:i,entropy:r})}computeSeed(){const e=mt("mnemonic"+this.password,"NFKD");return xi(mt(this.phrase,"NFKD"),e,2048,64,"sha512")}static fromPhrase(e,r,n){const s=Dx(e,n);return e=Bx(Q(s),n),new ml(Lx,s,e,r,n)}static fromEntropy(e,r,n){const s=Q(e,"entropy"),i=Bx(s,n);return new ml(Lx,H(s),i,r,n)}static entropyToPhrase(e,r){const n=Q(e,"entropy");return Bx(n,r)}static phraseToEntropy(e,r){return Dx(e,r)}static isValidMnemonic(e,r){try{return Dx(e,r),!0}catch{}return!1}}/*! MIT License. Copyright 2015-2022 Richard Moore . See LICENSE.txt. */var ar=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},jx=function(t,e,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(t,r):s?s.value=r:e.set(t,r),r},sy,jn,Vs;const zie={16:10,24:12,32:14},Gie=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],Bn=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],Cp=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],qie=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],Kie=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],Qie=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],Jie=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],Yie=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],Xie=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],Zie=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],eoe=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],toe=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],roe=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],noe=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],soe=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function Fx(t){const e=[];for(let r=0;r>2,ar(this,Vs,"f")[o][u%4]=i[u],ar(this,jn,"f")[r-o][u%4]=i[u];let a=0,c=s,l;for(;c>16&255]<<24^Bn[l>>8&255]<<16^Bn[l&255]<<8^Bn[l>>24&255]^Gie[a]<<24,a+=1,s!=8)for(let h=1;h>8&255]<<8^Bn[l>>16&255]<<16^Bn[l>>24&255]<<24;for(let h=s/2+1;h>2,d=c%4,ar(this,Vs,"f")[f][d]=i[u],ar(this,jn,"f")[r-f][d]=i[u++],c++}for(let u=1;u>24&255]^roe[l>>16&255]^noe[l>>8&255]^soe[l&255]}encrypt(e){if(e.length!=16)throw new TypeError("invalid plaintext size (must be 16 bytes)");const r=ar(this,Vs,"f").length-1,n=[0,0,0,0];let s=Fx(e);for(let a=0;a<4;a++)s[a]^=ar(this,Vs,"f")[0][a];for(let a=1;a>24&255]^Kie[s[(c+1)%4]>>16&255]^Qie[s[(c+2)%4]>>8&255]^Jie[s[(c+3)%4]&255]^ar(this,Vs,"f")[a][c];s=n.slice()}const i=new Uint8Array(16);let o=0;for(let a=0;a<4;a++)o=ar(this,Vs,"f")[r][a],i[4*a]=(Bn[s[a]>>24&255]^o>>24)&255,i[4*a+1]=(Bn[s[(a+1)%4]>>16&255]^o>>16)&255,i[4*a+2]=(Bn[s[(a+2)%4]>>8&255]^o>>8)&255,i[4*a+3]=(Bn[s[(a+3)%4]&255]^o)&255;return i}decrypt(e){if(e.length!=16)throw new TypeError("invalid ciphertext size (must be 16 bytes)");const r=ar(this,jn,"f").length-1,n=[0,0,0,0];let s=Fx(e);for(let a=0;a<4;a++)s[a]^=ar(this,jn,"f")[0][a];for(let a=1;a>24&255]^Xie[s[(c+3)%4]>>16&255]^Zie[s[(c+2)%4]>>8&255]^eoe[s[(c+1)%4]&255]^ar(this,jn,"f")[a][c];s=n.slice()}const i=new Uint8Array(16);let o=0;for(let a=0;a<4;a++)o=ar(this,jn,"f")[r][a],i[4*a]=(Cp[s[a]>>24&255]^o>>24)&255,i[4*a+1]=(Cp[s[(a+3)%4]>>16&255]^o>>16)&255,i[4*a+2]=(Cp[s[(a+2)%4]>>8&255]^o>>8)&255,i[4*a+3]=(Cp[s[(a+1)%4]&255]^o)&255;return i}}sy=new WeakMap,jn=new WeakMap,Vs=new WeakMap;class Z7{constructor(e,r,n){if(n&&!(this instanceof n))throw new Error(`${e} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new q5(r)},name:{enumerable:!0,value:e}})}}var Ep=function(t,e,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(t,r):s?s.value=r:e.set(t,r),r},Fl=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},ih,Ci;class K5 extends Z7{constructor(e,r){if(super("ECC",e,K5),ih.set(this,void 0),Ci.set(this,void 0),r){if(r.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");Ep(this,ih,new Uint8Array(r),"f")}else Ep(this,ih,new Uint8Array(16),"f");Ep(this,Ci,this.iv,"f")}get iv(){return new Uint8Array(Fl(this,ih,"f"))}encrypt(e){if(e.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const r=new Uint8Array(e.length);for(let n=0;nNumber.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let r=15;r>=0;--r)Ln(this,Fn,"f")[r]=e%256,e=Math.floor(e/256)}setCounterBytes(e){if(e.length!==16)throw new TypeError("invalid counter initial Uint8Array value length");Ln(this,Fn,"f").set(e)}increment(){for(let e=15;e>=0;e--)if(Ln(this,Fn,"f")[e]===255)Ln(this,Fn,"f")[e]=0;else{Ln(this,Fn,"f")[e]++;break}}encrypt(e){var r,n;const s=new Uint8Array(e);for(let i=0;i16)throw new TypeError("PKCS#7 padding byte out of range");const r=t.length-e;for(let n=0;n0&&(n&n-1)===0,"invalid kdf.N","kdf.N",n),P(s>0&&i>0,"invalid kdf","kdf",e);const o=Rt(t,"crypto.kdfparams.dklen:int!");return P(o===32,"invalid kdf.dklen","kdf.dflen",o),{name:"scrypt",salt:r,N:n,r:s,p:i,dkLen:64}}else if(e.toLowerCase()==="pbkdf2"){const r=Rt(t,"crypto.kdfparams.salt:data!"),n=Rt(t,"crypto.kdfparams.prf:string!"),s=n.split("-").pop();P(s==="sha256"||s==="sha512","invalid kdf.pdf","kdf.pdf",n);const i=Rt(t,"crypto.kdfparams.c:int!"),o=Rt(t,"crypto.kdfparams.dklen:int!");return P(o===32,"invalid kdf.dklen","kdf.dklen",o),{name:"pbkdf2",salt:r,count:i,dkLen:o,algorithm:s}}}P(!1,"unsupported key-derivation function","kdf",e)}function n_(t,e){const r=JSON.parse(t),n=k1(e),s=r_(r);if(s.name==="pbkdf2"){const{salt:f,count:d,dkLen:h,algorithm:y}=s,p=xi(n,f,d,h,y);return hv(r,p)}z(s.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:s});const{salt:i,N:o,r:a,p:c,dkLen:l}=s,u=za(n,i,o,a,c,l);return hv(r,u)}function n3(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}async function s_(t,e,r){const n=JSON.parse(t),s=k1(e),i=r_(n);if(i.name==="pbkdf2"){r&&(r(0),await n3(0));const{salt:d,count:h,dkLen:y,algorithm:p}=i,b=xi(s,d,h,y,p);return r&&(r(1),await n3(0)),hv(n,b)}z(i.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:i});const{salt:o,N:a,r:c,p:l,dkLen:u}=i,f=await Ha(s,o,a,c,l,u,r);return hv(n,f)}function i_(t){const e=t.salt!=null?Q(t.salt,"options.salt"):Rr(32);let r=1<<17,n=8,s=1;return t.scrypt&&(t.scrypt.N&&(r=t.scrypt.N),t.scrypt.r&&(n=t.scrypt.r),t.scrypt.p&&(s=t.scrypt.p)),P(typeof r=="number"&&r>0&&Number.isSafeInteger(r)&&(BigInt(r)&BigInt(r-1))===BigInt(0),"invalid scrypt N parameter","options.N",r),P(typeof n=="number"&&n>0&&Number.isSafeInteger(n),"invalid scrypt r parameter","options.r",n),P(typeof s=="number"&&s>0&&Number.isSafeInteger(s),"invalid scrypt p parameter","options.p",s),{name:"scrypt",dkLen:32,salt:e,N:r,r:n,p:s}}function o_(t,e,r,n){const s=Q(r.privateKey,"privateKey"),i=n.iv!=null?Q(n.iv,"options.iv"):Rr(16);P(i.length===16,"invalid options.iv length","options.iv",n.iv);const o=n.uuid!=null?Q(n.uuid,"options.uuid"):Rr(16);P(o.length===16,"invalid options.uuid length","options.uuid",n.iv);const a=t.slice(0,16),c=t.slice(16,32),l=new td(a,i),u=Q(l.encrypt(s)),f=Ne(Le([c,u])),d={address:r.address.substring(2).toLowerCase(),id:CR(o),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:H(i).substring(2)},ciphertext:H(u).substring(2),kdf:"scrypt",kdfparams:{salt:H(e.salt).substring(2),n:e.N,dklen:32,p:e.p,r:e.r},mac:f.substring(2)}};if(r.mnemonic){const h=n.client!=null?n.client:`ethers/${c5}`,y=r.mnemonic.path||t_,p=r.mnemonic.locale||"en",b=t.slice(32,64),v=Q(r.mnemonic.entropy,"account.mnemonic.entropy"),g=Rr(16),x=new td(b,g),k=Q(x.encrypt(v)),S=new Date,R="UTC--"+(S.getUTCFullYear()+"-"+$d(S.getUTCMonth()+1,2)+"-"+$d(S.getUTCDate(),2)+"T"+$d(S.getUTCHours(),2)+"-"+$d(S.getUTCMinutes(),2)+"-"+$d(S.getUTCSeconds(),2)+".0Z")+"--"+d.address;d["x-ethers"]={client:h,gethFilename:R,path:y,locale:p,mnemonicCounter:H(g).substring(2),mnemonicCiphertext:H(k).substring(2),version:"0.1"}}return JSON.stringify(d)}function Q5(t,e,r){r==null&&(r={});const n=k1(e),s=i_(r),i=za(n,s.salt,s.N,s.r,s.p,64);return o_(Q(i),s,t,r)}async function J5(t,e,r){r==null&&(r={});const n=k1(e),s=i_(r),i=await Ha(n,s.salt,s.N,s.r,s.p,64,r.progressCallback);return o_(Q(i),s,t,r)}const iy="m/44'/60'/0'/0/0",aoe=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),hi=2147483648,coe=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),loe="0123456789abcdef";function pv(t,e){let r="";for(;t;)r=loe[t%16]+r,t=Math.trunc(t/16);for(;r.length=0;o-=8)s[33+(o>>3)]=t>>24-o&255;const i=Q(Wa("sha512",e,s));return{IL:i.slice(0,32),IR:i.slice(32)}}function c_(t,e){const r=e.split("/");P(r.length>0,"invalid path","path",e),r[0]==="m"&&(P(t.depth===0,`cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${t.depth}`,"path",e),r.shift());let n=t;for(let s=0;s=16&&s.length<=64,"invalid seed","seed","[REDACTED]");const i=Q(Wa("sha512",aoe,s)),o=new Os(H(i.slice(0,32)));return new hs(Gs,o,"0x00000000",H(i.slice(32)),"m",0,0,n,null)},j(hs,Kc);let _u=hs;class rd extends uv{constructor(r,n,s,i,o,a,c,l,u){super(n,u);N(this,"publicKey");N(this,"fingerprint");N(this,"parentFingerprint");N(this,"chainCode");N(this,"path");N(this,"index");N(this,"depth");po(r,Gs,"HDNodeVoidWallet"),fe(this,{publicKey:s});const f=st(Va(qr(s)),0,4);fe(this,{publicKey:s,fingerprint:f,parentFingerprint:i,chainCode:o,path:a,index:c,depth:l})}connect(r){return new rd(Gs,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,r)}get extendedKey(){return z(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),y2(Le(["0x0488B21E",pv(this.depth,1),this.parentFingerprint,pv(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return this.path!=null}deriveChild(r){const n=Pe(r,"index");P(n<=4294967295,"invalid index","index",n);let s=this.path;s&&(s+="/"+(n&~hi),n&hi&&(s+="'"));const{IR:i,IL:o}=a_(n,this.chainCode,this.publicKey,null),a=Os.addPoints(o,this.publicKey,!0),c=bd(a);return new rd(Gs,c,a,this.fingerprint,H(i),s,n,this.depth+1,this.provider)}derivePath(r){return c_(this,r)}}function uoe(t){const e=Pe(t,"index");return P(e>=0&&e=0&&e{setTimeout(()=>{e()},t)})}var Y0,li,x2;let l_=(li=class extends T0{constructor(e,r){typeof e=="string"&&!e.startsWith("0x")&&(e="0x"+e);let n=typeof e=="string"?new Os(e):e;super(n,r)}connect(e){return new li(this.signingKey,e)}async encrypt(e,r){const n={address:this.address,privateKey:this.privateKey};return await J5(n,e,{progressCallback:r})}encryptSync(e){const r={address:this.address,privateKey:this.privateKey};return Q5(r,e)}static async fromEncryptedJson(e,r,n){var i;let s=null;return p2(e)?s=await s_(e,r,n):g2(e)&&(n&&(n(0),await s3(0)),s=m2(e,r),n&&(n(1),await s3(0))),Y(i=li,Y0,x2).call(i,s)}static fromEncryptedJsonSync(e,r){var s;let n=null;return p2(e)?n=n_(e,r):g2(e)?n=m2(e,r):P(!1,"invalid JSON wallet","json","[ REDACTED ]"),Y(s=li,Y0,x2).call(s,n)}static createRandom(e){const r=_u.createRandom();return e?r.connect(e):r}static fromPhrase(e,r){const n=_u.fromPhrase(e);return r?n.connect(r):n}},Y0=new WeakSet,x2=function(e){if(P(e,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in e&&e.mnemonic&&e.mnemonic.locale==="en"){const n=ml.fromEntropy(e.mnemonic.entropy),s=_u.fromMnemonic(n,e.mnemonic.path);if(s.address===e.address&&s.privateKey===e.privateKey)return s;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}const r=new li(e.privateKey);return P(r.address===e.address,"address/privateKey mismatch","json","[ REDACTED ]"),r},j(li,Y0),li);const doe=")!@#$%^&*(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_";function hoe(t,e){const r=(1<=t;){const c=s>>i-t;s&=(1<{const s=n.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);P(s!==null,"internal error parsing accents","accents",e);let i=0;const o=hoe(parseInt(s[3]),s[4]),a=parseInt(s[2]),c=new RegExp(`([${s[1]}])`,"g");r=r.replace(c,(l,u)=>(--o[i]===0&&(u=String.fromCharCode(u.charCodeAt(0),a),i++),u))}),r.split(",")}var X0;class yoe extends G5{constructor(r,n,s,i){super(r,n,i);j(this,X0);T(this,X0,s)}get _accent(){return w(this,X0)}_decodeWords(){return poe(this._data,this._accent)}}X0=new WeakMap;const voe={en:uo.wordlist()},goe=Object.freeze(Object.defineProperty({__proto__:null,AbiCoder:Kt,AbstractProvider:co,AbstractSigner:lo,AlchemyProvider:k0,AnkrProvider:E0,BaseContract:Xf,BaseWallet:T0,Block:m7,BrowserProvider:Lie,ChainstackProvider:A0,CloudflareProvider:j7,ConstructorFragment:ai,Contract:dn,ContractEventPayload:C7,ContractFactory:U5,ContractTransactionReceipt:w7,ContractTransactionResponse:$g,ContractUnknownEventPayload:L5,EnsPlugin:E1,EnsResolver:w0,ErrorDescription:v7,ErrorFragment:Wr,EtherSymbol:Ure,EtherscanPlugin:H5,EtherscanProvider:U7,EventFragment:As,EventLog:Ug,EventPayload:d5,FallbackFragment:ni,FallbackProvider:G7,FeeData:qw,FeeDataNetworkPlugin:Jw,FetchCancelSignal:gR,FetchRequest:qt,FetchResponse:Xi,FetchUrlFeeDataNetworkPlugin:_7,FixedNumber:p0,Fragment:Na,FunctionFragment:Ss,GasCostPlugin:C1,HDNodeVoidWallet:rd,HDNodeWallet:_u,Indexed:Gw,InfuraProvider:ed,InfuraWebSocketProvider:z7,Interface:pt,IpcSocketProvider:Fie,JsonRpcApiProvider:V5,JsonRpcProvider:zt,JsonRpcSigner:ry,LangEn:uo,Log:wd,LogDescription:p7,MaxInt256:Fre,MaxUint256:AN,MessagePrefix:SN,MinInt256:jre,Mnemonic:ml,MulticoinProviderPlugin:I7,N:Bre,NamedFragment:b1,Network:ot,NetworkPlugin:qa,NonceManager:d2,ParamType:or,PocketProvider:fv,QuickNodeProvider:S0,Result:hl,Signature:os,SigningKey:Os,SocketBlockSubscriber:$7,SocketEventSubscriber:V7,SocketPendingSubscriber:W7,SocketProvider:H7,SocketSubscriber:Hg,StructFragment:ba,Transaction:yl,TransactionDescription:y7,TransactionReceipt:D5,TransactionResponse:Yf,Typed:gr,TypedDataEncoder:Ds,UndecodedEventLog:B5,UnmanagedSubscriber:C0,Utf8ErrorFuncs:fR,VoidSigner:uv,Wallet:l_,WebSocketProvider:z5,WeiPerEther:Lre,Wordlist:Y7,WordlistOwl:G5,WordlistOwlA:yoe,ZeroAddress:mi,ZeroHash:pl,accessListify:vo,assert:z,assertArgument:P,assertArgumentCount:l5,assertNormalize:u5,assertPrivate:po,checkResultErrors:tte,computeAddress:bd,computeHmac:Wa,concat:Le,copyRequest:Jf,dataLength:xa,dataSlice:st,decodeBase58:aR,decodeBase64:cR,decodeBytes32String:Rse,decodeRlp:v1,decryptCrowdsaleJson:m2,decryptKeystoreJson:s_,decryptKeystoreJsonSync:n_,defaultPath:iy,defineProperties:fe,dnsEncode:ZN,encodeBase58:f5,encodeBase64:lR,encodeBytes32String:Ose,encodeRlp:Ra,encryptKeystoreJson:J5,encryptKeystoreJsonSync:Q5,ensNormalize:XN,formatEther:Zee,formatUnits:wR,fromTwos:h0,getAccountPath:uoe,getAddress:Te,getBigInt:ve,getBytes:Q,getBytesCopy:tr,getCreate2Address:qre,getCreateAddress:S5,getDefaultProvider:Bie,getIcapAddress:Gre,getIndexedAccountPath:foe,getNumber:Pe,getUint:y1,hashMessage:jg,hexlify:H,id:Kr,isAddress:PN,isAddressable:T5,isBytesLike:gi,isCallException:Pg,isCrowdsaleJson:g2,isError:Ht,isHexString:et,isKeystoreJson:p2,isValidName:Vne,keccak256:Ne,lock:$re,makeError:ft,mask:aa,namehash:cv,parseEther:Iw,parseUnits:rv,pbkdf2:xi,randomBytes:Rr,recoverAddress:Qf,resolveAddress:sr,resolveProperties:Pt,ripemd160:Va,scrypt:Ha,scryptSync:za,sha256:qr,sha512:g1,showThrottleMessage:Ka,solidityPacked:De,solidityPackedKeccak256:Zi,solidityPackedSha256:ase,stripZerosLeft:Bee,toBeArray:rr,toBeHex:In,toBigInt:md,toNumber:oR,toQuantity:pr,toTwos:Rg,toUtf8Bytes:mt,toUtf8CodePoints:Wee,toUtf8String:Ms,uuidV4:CR,verifyMessage:e7,verifyTypedData:pse,version:c5,wordlists:voe,zeroPadBytes:Ig,zeroPadValue:rs},Symbol.toStringTag,{value:"Module"})),moe=[{inputs:[{internalType:"bytes32",type:"bytes32"}],name:"getAlternativeSignature",outputs:[{internalType:"string",type:"string"}],stateMutability:"view",type:"function"}];var xoe=Object.freeze({__proto__:null,abi:moe});const boe=[{type:"function",name:"isValidSignature",constant:!0,inputs:[{type:"bytes32"},{type:"bytes"}],outputs:[{type:"bytes4"}],payable:!1,stateMutability:"view"}],woe={isValidSignatureBytes32:"0x1626ba7e"};var Coe=Object.freeze({__proto__:null,abi:boe,returns:woe});const Eoe=[{inputs:[{internalType:"bytes",name:"error",type:"bytes"}],name:"ERC1271Revert",type:"error"},{inputs:[{internalType:"bytes",name:"error",type:"bytes"}],name:"ERC6492DeployFailed",type:"error"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSig",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"},{internalType:"bool",name:"allowSideEffects",type:"bool"},{internalType:"bool",name:"deployAlreadyDeployed",type:"bool"}],name:"isValidSigImpl",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSigNoThrow",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSigWithSideEffects",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSigWithSideEffectsNoThrow",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}];var koe=Object.freeze({__proto__:null,abi:Eoe});const Aoe=[{type:"function",name:"deploy",constant:!1,inputs:[{type:"address"},{type:"bytes32"}],outputs:[],payable:!0,stateMutability:"payable"}];var Soe=Object.freeze({__proto__:null,abi:Aoe});const Toe=[{type:"function",name:"nonce",constant:!0,inputs:[],outputs:[{type:"uint256"}],payable:!1,stateMutability:"view"},{type:"function",name:"readNonce",constant:!0,inputs:[{type:"uint256"}],outputs:[{type:"uint256"}],payable:!1,stateMutability:"view"},{type:"function",name:"updateImplementation",constant:!1,inputs:[{type:"address"}],outputs:[],payable:!1,stateMutability:"nonpayable"},{type:"function",name:"selfExecute",constant:!1,inputs:[{components:[{type:"bool",name:"delegateCall"},{type:"bool",name:"revertOnError"},{type:"uint256",name:"gasLimit"},{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}],type:"tuple[]"}],outputs:[],payable:!1,stateMutability:"nonpayable"},{type:"function",name:"execute",constant:!1,inputs:[{components:[{type:"bool",name:"delegateCall"},{type:"bool",name:"revertOnError"},{type:"uint256",name:"gasLimit"},{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}],type:"tuple[]"},{type:"uint256"},{type:"bytes"}],outputs:[],payable:!1,stateMutability:"nonpayable"},{type:"function",name:"createContract",inputs:[{type:"bytes"}],payable:!0,stateMutability:"payable"},{type:"function",name:"setExtraImageHash",constant:!1,inputs:[{type:"bytes32",name:"imageHash"},{type:"uint256",name:"expiration"}],outputs:[],payable:!1,stateMutability:"nonpayable"}];var Poe=Object.freeze({__proto__:null,abi:Toe});const Ioe=[{type:"function",name:"updateImageHash",constant:!0,inputs:[{type:"bytes32"}],outputs:[],payable:!1,stateMutability:"view"},{type:"function",name:"imageHash",constant:!0,inputs:[],outputs:[{type:"bytes32"}],payable:!1,stateMutability:"view"}];var Ooe=Object.freeze({__proto__:null,abi:Ioe});const Roe=[{inputs:[{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_mainModule",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_wallet",type:"address"},{indexed:!0,internalType:"bytes32",name:"_imageHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"_threshold",type:"uint256"},{indexed:!1,internalType:"bytes",name:"_signers",type:"bytes"}],name:"RequiredConfig",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_wallet",type:"address"},{indexed:!0,internalType:"address",name:"_signer",type:"address"}],name:"RequiredSigner",type:"event"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callBalanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callBlockNumber",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_i",type:"uint256"}],name:"callBlockhash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"callChainId",outputs:[{internalType:"uint256",name:"id",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callCode",outputs:[{internalType:"bytes",name:"code",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callCodeHash",outputs:[{internalType:"bytes32",name:"codeHash",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callCodeSize",outputs:[{internalType:"uint256",name:"size",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callCoinbase",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"callDifficulty",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callGasLeft",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callGasLimit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callGasPrice",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callOrigin",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"callTimestamp",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"knownImageHashes",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"lastImageHashUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"lastSignerUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"lastWalletUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bool",name:"delegateCall",type:"bool"},{internalType:"bool",name:"revertOnError",type:"bool"},{internalType:"uint256",name:"gasLimit",type:"uint256"},{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct IModuleCalls.Transaction[]",name:"_txs",type:"tuple[]"}],name:"multiCall",outputs:[{internalType:"bool[]",name:"_successes",type:"bool[]"},{internalType:"bytes[]",name:"_results",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"},{components:[{internalType:"uint256",name:"weight",type:"uint256"},{internalType:"address",name:"signer",type:"address"}],internalType:"struct RequireUtils.Member[]",name:"_members",type:"tuple[]"},{internalType:"bool",name:"_index",type:"bool"}],name:"publishConfig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"uint256",name:"_sizeMembers",type:"uint256"},{internalType:"bytes",name:"_signature",type:"bytes"},{internalType:"bool",name:"_index",type:"bool"}],name:"publishInitialSigners",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"requireMinNonce",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_expiration",type:"uint256"}],name:"requireNonExpired",outputs:[],stateMutability:"view",type:"function"}];var Noe=Object.freeze({__proto__:null,abi:Roe});const _oe=[{inputs:[{internalType:"address",name:"",type:"address"}],name:"requireFreshSigner",outputs:[],stateMutability:"nonpayable",type:"function"}];var Moe=Object.freeze({__proto__:null,abi:_oe});const Gt={erc6492:koe,erc5719:xoe,erc1271:Coe,factory:Soe,mainModule:Poe,mainModuleUpgradable:Ooe,sequenceUtils:Noe,requireFreshSigner:Moe},Doe=Object.freeze(Object.defineProperty({__proto__:null,walletContracts:Gt},Symbol.toStringTag,{value:"Module"}));function yv(){return yv=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),Ee({},n,s)).then(i=>ke(i).then(o=>({status:o.status})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),Ee({},n,s)).then(i=>ke(i).then(o=>({version:o.version})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),Ee({},n,s)).then(i=>ke(i).then(o=>({status:o.status})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.clock=(n,s)=>this.fetch(this.url("Clock"),Ee({},n,s)).then(i=>ke(i).then(o=>({serverTime:o.serverTime})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.getSequenceContext=(n,s)=>this.fetch(this.url("GetSequenceContext"),Ee({},n,s)).then(i=>ke(i).then(o=>({data:o.data})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.getAuthToken=(n,s,i)=>this.fetch(this.url("GetAuthToken"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,jwtToken:a.jwtToken,address:a.address,user:a.user})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getAuthToken2=(n,s,i)=>this.fetch(this.url("GetAuthToken2"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,jwtToken:a.jwtToken,address:a.address,user:a.user})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.sendPasswordlessLink=(n,s,i)=>this.fetch(this.url("SendPasswordlessLink"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.friendList=(n,s,i)=>this.fetch(this.url("FriendList"),Ee(n,s,i)).then(o=>ke(o).then(a=>({page:a.page,friends:a.friends})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getFriendByAddress=(n,s,i)=>this.fetch(this.url("GetFriendByAddress"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,friend:a.friend})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.searchFriends=(n,s,i)=>this.fetch(this.url("SearchFriends"),Ee(n,s,i)).then(o=>ke(o).then(a=>({friends:a.friends})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.addFriend=(n,s,i)=>this.fetch(this.url("AddFriend"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,friend:a.friend})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.updateFriendNickname=(n,s,i)=>this.fetch(this.url("UpdateFriendNickname"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,friend:a.friend})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.removeFriend=(n,s,i)=>this.fetch(this.url("RemoveFriend"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.contractCall=(n,s,i)=>this.fetch(this.url("ContractCall"),Ee(n,s,i)).then(o=>ke(o).then(a=>({returns:a.returns})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.decodeContractCall=(n,s,i)=>this.fetch(this.url("DecodeContractCall"),Ee(n,s,i)).then(o=>ke(o).then(a=>({call:a.call})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.lookupContractCallSelectors=(n,s,i)=>this.fetch(this.url("LookupContractCallSelectors"),Ee(n,s,i)).then(o=>ke(o).then(a=>({signatures:a.signatures})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.userStorageFetch=(n,s,i)=>this.fetch(this.url("UserStorageFetch"),Ee(n,s,i)).then(o=>ke(o).then(a=>({object:a.object})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.userStorageSave=(n,s,i)=>this.fetch(this.url("UserStorageSave"),Ee(n,s,i)).then(o=>ke(o).then(a=>({ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.userStorageDelete=(n,s,i)=>this.fetch(this.url("UserStorageDelete"),Ee(n,s,i)).then(o=>ke(o).then(a=>({ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.userStorageFetchAll=(n,s,i)=>this.fetch(this.url("UserStorageFetchAll"),Ee(n,s,i)).then(o=>ke(o).then(a=>({objects:a.objects})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getMoonpayLink=(n,s,i)=>this.fetch(this.url("GetMoonpayLink"),Ee(n,s,i)).then(o=>ke(o).then(a=>({signedUrl:a.signedUrl})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getSardineClientToken=(n,s)=>this.fetch(this.url("GetSardineClientToken"),Ee({},n,s)).then(i=>ke(i).then(o=>({token:o.token})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.getSardineNFTCheckoutToken=(n,s,i)=>this.fetch(this.url("GetSardineNFTCheckoutToken"),Ee(n,s,i)).then(o=>ke(o).then(a=>({resp:a.resp})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getSardineNFTCheckoutOrderStatus=(n,s,i)=>this.fetch(this.url("GetSardineNFTCheckoutOrderStatus"),Ee(n,s,i)).then(o=>ke(o).then(a=>({resp:a.resp})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.resolveENSAddress=(n,s,i)=>this.fetch(this.url("ResolveENSAddress"),Ee(n,s,i)).then(o=>ke(o).then(a=>({address:a.address,ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.isValidSignature=(n,s,i)=>this.fetch(this.url("IsValidSignature"),Ee(n,s,i)).then(o=>ke(o).then(a=>({isValid:a.isValid})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.isValidMessageSignature=(n,s,i)=>this.fetch(this.url("IsValidMessageSignature"),Ee(n,s,i)).then(o=>ke(o).then(a=>({isValid:a.isValid})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.isValidTypedDataSignature=(n,s,i)=>this.fetch(this.url("IsValidTypedDataSignature"),Ee(n,s,i)).then(o=>ke(o).then(a=>({isValid:a.isValid})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.isValidETHAuthProof=(n,s,i)=>this.fetch(this.url("IsValidETHAuthProof"),Ee(n,s,i)).then(o=>ke(o).then(a=>({isValid:a.isValid})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getCoinPrices=(n,s,i)=>this.fetch(this.url("GetCoinPrices"),Ee(n,s,i)).then(o=>ke(o).then(a=>({tokenPrices:a.tokenPrices})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getCollectiblePrices=(n,s,i)=>this.fetch(this.url("GetCollectiblePrices"),Ee(n,s,i)).then(o=>ke(o).then(a=>({tokenPrices:a.tokenPrices})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getExchangeRate=(n,s,i)=>this.fetch(this.url("GetExchangeRate"),Ee(n,s,i)).then(o=>ke(o).then(a=>({exchangeRate:a.exchangeRate})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.memoryStore=(n,s,i)=>this.fetch(this.url("MemoryStore"),Ee(n,s,i)).then(o=>ke(o).then(a=>({ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.memoryLoad=(n,s,i)=>this.fetch(this.url("MemoryLoad"),Ee(n,s,i)).then(o=>ke(o).then(a=>({value:a.value})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getInviteInfo=(n,s)=>this.fetch(this.url("GetInviteInfo"),Ee({},n,s)).then(i=>ke(i).then(o=>({inviteInfo:o.inviteInfo})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.isValidAccessCode=(n,s,i)=>this.fetch(this.url("IsValidAccessCode"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.internalClaimAccessCode=(n,s,i)=>this.fetch(this.url("InternalClaimAccessCode"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.blockNumberAtTime=(n,s,i)=>this.fetch(this.url("BlockNumberAtTime"),Ee(n,s,i)).then(o=>ke(o).then(a=>({blocks:a.blocks})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.paperSessionSecret=(n,s,i)=>this.fetch(this.url("PaperSessionSecret"),Ee(n,s,i)).then(o=>ke(o).then(a=>({secret:a.secret})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.paperSessionSecret2=(n,s,i)=>this.fetch(this.url("PaperSessionSecret2"),Ee(n,s,i)).then(o=>ke(o).then(a=>({secret:a.secret})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.linkWallet=(n,s,i)=>this.fetch(this.url("LinkWallet"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,linkedWalletAddress:a.linkedWalletAddress})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getLinkedWallets=(n,s,i)=>this.fetch(this.url("GetLinkedWallets"),Ee(n,s,i)).then(o=>ke(o).then(a=>({linkedWallets:a.linkedWallets})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.removeLinkedWallet=(n,s,i)=>this.fetch(this.url("RemoveLinkedWallet"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.generateWaaSVerificationURL=(n,s,i)=>this.fetch(this.url("GenerateWaaSVerificationURL"),Ee(n,s,i)).then(o=>ke(o).then(a=>({nonce:a.nonce,verificationURL:a.verificationURL})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.validateWaaSVerificationNonce=(n,s,i)=>this.fetch(this.url("ValidateWaaSVerificationNonce"),Ee(n,s,i)).then(o=>ke(o).then(a=>({walletAddress:a.walletAddress})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getSwapQuotes=(n,s,i)=>this.fetch(this.url("GetSwapQuotes"),Ee(n,s,i)).then(o=>ke(o).then(a=>({swapQuotes:a.swapQuotes})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.addCurrencyGroup=(n,s,i)=>this.fetch(this.url("AddCurrencyGroup"),Ee(n,s,i)).then(o=>ke(o).then(a=>({groupId:a.groupId})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.updateCurrencyGroup=(n,s,i)=>this.fetch(this.url("UpdateCurrencyGroup"),Ee(n,s,i)).then(o=>ke(o).then(a=>({})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.listCurrencyGroups=(n,s)=>this.fetch(this.url("ListCurrencyGroups"),Ee({},n,s)).then(i=>ke(i).then(o=>({currencyGroups:o.currencyGroups})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.deleteCurrencyGroup=(n,s,i)=>this.fetch(this.url("DeleteCurrencyGroup"),Ee(n,s,i)).then(o=>ke(o).then(a=>({ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.addInventoryPaymentConfig=(n,s,i)=>this.fetch(this.url("AddInventoryPaymentConfig"),Ee(n,s,i)).then(o=>ke(o).then(a=>({configId:a.configId})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getInventoryPaymentConfig=(n,s,i)=>this.fetch(this.url("GetInventoryPaymentConfig"),Ee(n,s,i)).then(o=>ke(o).then(a=>({config:a.config})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.listInventoryPaymentConfigs=(n,s,i)=>this.fetch(this.url("ListInventoryPaymentConfigs"),Ee(n,s,i)).then(o=>ke(o).then(a=>({configs:a.configs})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.updateInventoryPaymentConfig=(n,s,i)=>this.fetch(this.url("UpdateInventoryPaymentConfig"),Ee(n,s,i)).then(o=>ke(o).then(a=>({})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.deleteInventoryPaymentConfig=(n,s,i)=>this.fetch(this.url("DeleteInventoryPaymentConfig"),Ee(n,s,i)).then(o=>ke(o).then(a=>({ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.requestInventoryPayment=(n,s,i)=>this.fetch(this.url("RequestInventoryPayment"),Ee(n,s,i)).then(o=>ke(o).then(a=>({payment:a.payment})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const Ee=(t={},e={},r=null)=>({method:"POST",headers:yv({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),ke=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),Y5.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(Woe[n]||Ot).new(r)}return r});let Ot=class f_ extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,f_.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},d_=class h_ extends Ot{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,h_.prototype)}},xe=class p_ extends Ot{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,p_.prototype)}},y_=class v_ extends Ot{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,v_.prototype)}},g_=class m_ extends Ot{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,m_.prototype)}},x_=class b_ extends Ot{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,b_.prototype)}},Y5=class w_ extends Ot{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,w_.prototype)}},C_=class E_ extends Ot{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,E_.prototype)}},k_=class A_ extends Ot{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,A_.prototype)}},S_=class T_ extends Ot{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,T_.prototype)}},P_=class I_ extends Ot{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,I_.prototype)}},O_=class R_ extends Ot{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,R_.prototype)}},N_=class __ extends Ot{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,__.prototype)}},M_=class D_ extends Ot{constructor(e="PermissionDenied",r=1001,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,D_.prototype)}},B_=class L_ extends Ot{constructor(e="SessionExpired",r=1002,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,L_.prototype)}},j_=class F_ extends Ot{constructor(e="Aborted",r=1005,n="Request aborted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,F_.prototype)}},U_=class $_ extends Ot{constructor(e="Geoblocked",r=1006,n="Geoblocked region",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,$_.prototype)}},W_=class V_ extends Ot{constructor(e="InvalidArgument",r=2e3,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,V_.prototype)}},H_=class z_ extends Ot{constructor(e="Unavailable",r=2002,n="Unavailable resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,z_.prototype)}},G_=class q_ extends Ot{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,q_.prototype)}},K_=class Q_ extends Ot{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Q_.prototype)}},$oe=function(t){return t.WebrpcEndpoint="WebrpcEndpoint",t.WebrpcRequestFailed="WebrpcRequestFailed",t.WebrpcBadRoute="WebrpcBadRoute",t.WebrpcBadMethod="WebrpcBadMethod",t.WebrpcBadRequest="WebrpcBadRequest",t.WebrpcBadResponse="WebrpcBadResponse",t.WebrpcServerPanic="WebrpcServerPanic",t.WebrpcInternalError="WebrpcInternalError",t.WebrpcClientDisconnected="WebrpcClientDisconnected",t.WebrpcStreamLost="WebrpcStreamLost",t.WebrpcStreamFinished="WebrpcStreamFinished",t.Unauthorized="Unauthorized",t.PermissionDenied="PermissionDenied",t.SessionExpired="SessionExpired",t.Aborted="Aborted",t.Geoblocked="Geoblocked",t.InvalidArgument="InvalidArgument",t.Unavailable="Unavailable",t.QueryFailed="QueryFailed",t.NotFound="NotFound",t}({});const Woe={0:d_,[-1]:xe,[-2]:y_,[-3]:g_,[-4]:x_,[-5]:Y5,[-6]:C_,[-7]:k_,[-8]:S_,[-9]:P_,[-10]:O_,1e3:N_,1001:M_,1002:B_,1005:j_,1006:U_,2e3:W_,2002:H_,2003:G_,3e3:K_},i3=globalThis.fetch;class oy extends u_{constructor(e,r,n){super(e.endsWith("/")?e.slice(0,-1):e,i3),this.projectAccessKey=r,this.jwtAuth=n,this._fetch=(s,i)=>{const o={},a=this.jwtAuth,c=this.projectAccessKey;return a&&a.length>0&&(o.Authorization=`BEARER ${a}`),c&&c.length>0&&(o["X-Access-Key"]=c),i.headers=yv({},i.headers,o),i3(s,i)},this.fetch=this._fetch}}const Voe=Object.freeze(Object.defineProperty({__proto__:null,API:u_,AbortedError:j_,GeoblockedError:U_,InvalidArgumentError:W_,NotFoundError:K_,PermissionDeniedError:M_,QueryFailedError:G_,SequenceAPIClient:oy,SessionExpiredError:B_,SortOrder:Foe,TokenType:Uoe,UnauthorizedError:N_,UnavailableError:H_,WebRPCSchemaHash:joe,WebRPCSchemaVersion:Loe,WebRPCVersion:Boe,WebrpcBadMethodError:g_,WebrpcBadRequestError:x_,WebrpcBadResponseError:Y5,WebrpcBadRouteError:y_,WebrpcClientDisconnectedError:S_,WebrpcEndpointError:d_,WebrpcError:Ot,WebrpcInternalErrorError:k_,WebrpcRequestFailedError:xe,WebrpcServerPanicError:C_,WebrpcStreamFinishedError:O_,WebrpcStreamLostError:P_,errors:$oe},Symbol.toStringTag,{value:"Module"})),J_="3.7.7",Hoe=J_,Cd=typeof Buffer=="function",o3=typeof TextDecoder=="function"?new TextDecoder:void 0,a3=typeof TextEncoder=="function"?new TextEncoder:void 0,zoe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ch=Array.prototype.slice.call(zoe),kp=(t=>{let e={};return t.forEach((r,n)=>e[r]=n),e})(ch),Goe=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,fr=String.fromCharCode.bind(String),c3=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),Y_=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),X_=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),Z_=t=>{let e,r,n,s,i="";const o=t.length%3;for(let a=0;a255||(n=t.charCodeAt(a++))>255||(s=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|s,i+=ch[e>>18&63]+ch[e>>12&63]+ch[e>>6&63]+ch[e&63]}return o?i.slice(0,o-3)+"===".substring(o):i},X5=typeof btoa=="function"?t=>btoa(t):Cd?t=>Buffer.from(t,"binary").toString("base64"):Z_,b2=Cd?t=>Buffer.from(t).toString("base64"):t=>{let r=[];for(let n=0,s=t.length;ne?Y_(b2(t)):b2(t),qoe=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?fr(192|e>>>6)+fr(128|e&63):fr(224|e>>>12&15)+fr(128|e>>>6&63)+fr(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return fr(240|e>>>18&7)+fr(128|e>>>12&63)+fr(128|e>>>6&63)+fr(128|e&63)}},Koe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,eM=t=>t.replace(Koe,qoe),l3=Cd?t=>Buffer.from(t,"utf8").toString("base64"):a3?t=>b2(a3.encode(t)):t=>X5(eM(t)),Mu=(t,e=!1)=>e?Y_(l3(t)):l3(t),u3=t=>Mu(t,!0),Qoe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Joe=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return fr((r>>>10)+55296)+fr((r&1023)+56320);case 3:return fr((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return fr((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},tM=t=>t.replace(Qoe,Joe),rM=t=>{if(t=t.replace(/\s+/g,""),!Goe.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,r="",n,s;for(let i=0;i>16&255):s===64?fr(e>>16&255,e>>8&255):fr(e>>16&255,e>>8&255,e&255);return r},Z5=typeof atob=="function"?t=>atob(X_(t)):Cd?t=>Buffer.from(t,"base64").toString("binary"):rM,nM=Cd?t=>c3(Buffer.from(t,"base64")):t=>c3(Z5(t).split("").map(e=>e.charCodeAt(0))),sM=t=>nM(iM(t)),Yoe=Cd?t=>Buffer.from(t,"base64").toString("utf8"):o3?t=>o3.decode(nM(t)):t=>tM(Z5(t)),iM=t=>X_(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),w2=t=>Yoe(iM(t)),Xoe=t=>{if(typeof t!="string")return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},oM=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),aM=function(){const t=(e,r)=>Object.defineProperty(String.prototype,e,oM(r));t("fromBase64",function(){return w2(this)}),t("toBase64",function(e){return Mu(this,e)}),t("toBase64URI",function(){return Mu(this,!0)}),t("toBase64URL",function(){return Mu(this,!0)}),t("toUint8Array",function(){return sM(this)})},cM=function(){const t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,oM(r));t("toBase64",function(e){return ay(this,e)}),t("toBase64URI",function(){return ay(this,!0)}),t("toBase64URL",function(){return ay(this,!0)})},Zoe=()=>{aM(),cM()},xl={version:J_,VERSION:Hoe,atob:Z5,atobPolyfill:rM,btoa:X5,btoaPolyfill:Z_,fromBase64:w2,toBase64:Mu,encode:Mu,encodeURI:u3,encodeURL:u3,utob:eM,btou:tM,decode:w2,isValid:Xoe,fromUint8Array:ay,toUint8Array:sM,extendString:aM,extendUint8Array:cM,extendBuiltins:Zoe};var C2=function(){return C2=Object.assign||function(e){for(var r,n=1,s=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0&&(s.types.Claims.push({name:"app",type:"string"}),s.message.app=this.claims.app),this.claims.iat&&this.claims.iat>0&&(s.types.Claims.push({name:"iat",type:"int64"}),s.message.iat=this.claims.iat),this.claims.exp&&this.claims.exp>0&&(s.types.Claims.push({name:"exp",type:"int64"}),s.message.exp=this.claims.exp),this.claims.n&&this.claims.n>0&&(s.types.Claims.push({name:"n",type:"uint64"}),s.message.n=this.claims.n),this.claims.typ&&this.claims.typ.length>0&&(s.types.Claims.push({name:"typ",type:"string"}),s.message.typ=this.claims.typ),this.claims.ogn&&this.claims.ogn.length>0&&(s.types.Claims.push({name:"ogn",type:"string"}),s.message.ogn=this.claims.ogn),this.claims.v&&this.claims.v.length>0&&(s.types.Claims.push({name:"v",type:"string"}),s.message.v=this.claims.v),s},t}(),rae=function(t){if(t.app==="")return{ok:!1,err:new Error("claims: app is empty")};var e=Math.round(new Date().getTime()/1e3),r=5*60,n=60*60*24*365+r;return t.v===""?{ok:!1,err:new Error("claims: ethauth version is empty")}:t.iat&&t.iat!==0&&(t.iat>e+r||t.iate+n?{ok:!1,err:new Error("claims: token has expired")}:{ok:!0}},nae=function(t,e,r){return cc(void 0,void 0,void 0,function(){var n,s;return lc(this,function(i){return n=r.messageDigest(),s=e7(n,r.signature),s.slice(0,2)==="0x"&&s.length===42&&s.toLowerCase()===r.address.toLowerCase()?[2,{isValid:!0,address:r.address}]:[2,{isValid:!1}]})})},sae=function(t,e,r){return cc(void 0,void 0,void 0,function(){var n,s,i,o,a;return lc(this,function(c){switch(c.label){case 0:return!t||t===void 0?[2,{isValid:!1}]:(n=r.messageDigest(),[4,t.getCode(r.address)]);case 1:if(s=c.sent(),s==="0x"||s.length<=2)throw new Error("ValidateContractAccountProof failed. unable to fetch wallet contract code");return i=["function isValidSignature(bytes32, bytes) public view returns (bytes4)"],o=new dn(r.address,i,t),[4,o.isValidSignature(n,Q(r.signature))];case 2:return a=c.sent(),a===iae?[2,{isValid:!0,address:r.address}]:[2,{isValid:!1}]}})})},iae="0x1626ba7e",vv=function(){function t(){for(var e=[],r=0;r0&&(c+="."+s.extra),[2,c]}})})},this.decodeProof=function(s,i){return i===void 0&&(i=!1),cc(n,void 0,void 0,function(){var o,a,c,l,u,f,d,h,y,p;return lc(this,function(b){switch(b.label){case 0:if(o=s.split("."),o.length<4||o.length>5)throw new Error("ethauth: invalid proof string");if(a=o[0],c=o[1],l=o[2],u=o[3],f=o[4],a!==E2)throw new Error("ethauth: not an ethauth proof");return d=xl.decode(l),h=JSON.parse(d),y=new ek({address:c,claims:h,signature:u,extra:f}),[4,this.validateProof(y,i)];case 1:if(p=b.sent(),!p)throw new Error("ethauth: proof is invalid");return[2,y]}})})},this.validateProof=function(s,i){return i===void 0&&(i=!1),cc(n,void 0,void 0,function(){var o,a;return lc(this,function(c){switch(c.label){case 0:if(o=this.validateProofClaims(s),o.err)throw new Error("ethauth: proof claims are invalid ".concat(o.err));return i===!0?[3,2]:[4,this.validateProofSignature(s)];case 1:if(a=c.sent(),a!==!0)throw new Error("ethauth: proof signature is invalid");c.label=2;case 2:return[2,!0]}})})},this.validateProofSignature=function(s){return cc(n,void 0,void 0,function(){var i,c,o,a,c;return lc(this,function(l){switch(l.label){case 0:i=[],c=0,l.label=1;case 1:if(!(c{const e=t.replace(/-/g,"+").replace(/_/g,"/"),r=atob(e),n=new Uint8Array(r.length);for(let o=0;oxl.encode(t,!0),tk=t=>xl.encode(JSON.stringify(t),!0),cae=t=>{if(t!=null)return xl.decode(t)},rk=t=>{if(t!=null)return JSON.parse(xl.decode(t))};BigInt.prototype.toJSON=function(){return this.toString()};const uM=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),fM=t=>t!=null&&(typeof t=="number"&&t%1===0||typeof t=="string"&&!!t.match(/^-?[0-9]+$/)||et(t)||typeof t=="bigint"),Zc=t=>{const e=t.toString(16);return`${e.length%2===0?"0x":"0x0"}${e}`},dM=(t,e=18)=>{let[r,n="0"]=t.split(".");const s=r.startsWith("-");if(s&&(r=r.slice(1)),n=n.replace(/(0+)$/,""),e===0)r=`${Math.round(+`${r}.${n}`)}`,n="";else if(n.length>e){const[i,o,a]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],c=Math.round(+`${o}.${a}`);c>9?n=`${BigInt(i)+1n}0`.padStart(i.length+1,"0"):n=`${i}${c}`,n.length>e&&(n=n.slice(1),r=`${BigInt(r)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${s?"-":""}${r}${n}`)},lae=t=>dM(t,18),hM=(t,e=18)=>{let r=t.toString();const n=r.startsWith("-");n&&(r=r.slice(1)),r=r.padStart(e,"0");const s=r.slice(0,r.length-e);let i=r.slice(r.length-e);return i=i.replace(/(0+)$/,""),`${n?"-":""}${s||"0"}${i?`.${i}`:""}`},uae=t=>hM(t,18),nk=t=>Q(typeof t=="string"?Kr(t):Ne(t)),pM=(t,e,r)=>De(["string","uint256","address","bytes32"],["",e,t,r]),k2=(t,e,r)=>Ne(pM(t,e,r)),yM=()=>typeof window>"u"&&typeof process=="object",fae=()=>!yM(),vM=t=>{const e=t.split(".");if(e.length!==3)throw new Error("invalid jwt");return JSON.parse(xl.decode(e[1]))};function gv(){return gv=Object.assign?Object.assign.bind():function(t){for(var e=1;eSe.configure(t);class $t{static bufferIndexOf(e,r,n=!1){if(n)return $t.binarySearch(e,r,$t.compare);const s=(i,o)=>{if(i===o)return!0;if(i.length!==o.length)return!1;for(let a=0;a=0;c--)if(n(e[c],r)!==0)return c+1;return 0}else a<0?s=o+1:i=o-1}return-1}static compare(e,r){const n=Math.min(e.length,r.length);for(let s=0;s$t.bufferify(e(r))}}class dae extends $t{constructor(e,r={}){super(),this.hashFn=void 0,this.leaves=[],this.layers=[],this.sortLeaves=!1,this.sortPairs=!1,this.sortLeaves=!!r.sortLeaves,this.sortPairs=!!r.sortPairs,this.hashFn=$t.bufferifyFn(Ne),this.processLeaves(e)}getOptions(){return{sortLeaves:this.sortLeaves,sortPairs:this.sortPairs}}processLeaves(e){this.leaves=e.map($t.bufferify),this.sortLeaves&&(this.leaves=this.leaves.sort($t.compare)),this.createHashes(this.leaves)}createHashes(e){for(this.layers=[e];e.length>1;){const r=this.layers.length;this.layers.push([]);const n=e.length;for(let s=0;s=n){this.layers[r].push(...e.slice(n));break}else if(s+1===e.length&&e.length%2===1){this.layers[r].push(e[s]);continue}const i=e[s],o=s+1===e.length?i:e[s+1],a=[i,o];this.sortPairs&&a.sort($t.compare);const c=this.hashFn(Le(a));this.layers[r].push(c)}e=this.layers[r]}}getRoot(){return this.layers.length===0?Uint8Array.from([]):this.layers[this.layers.length-1][0]||Uint8Array.from([])}getHexRoot(){return $t.bufferToHex(this.getRoot())}getProof(e,r){if(typeof e>"u")throw new Error("leaf is required");e=$t.bufferify(e);const n=[];if(!Number.isInteger(r)){r=-1;for(let s=0;s$t.bufferToHex(n.data))}verify(e,r,n){let s=$t.bufferify(r);if(n=$t.bufferify(n),!Array.isArray(e)||!r||!n)return!1;for(let i=0;ithis.toLeaf(r));return new dae(e,{sortPairs:!0,sortLeaves:!0})}generateRoot(){return this.tree||(this.tree=this.generateTree()),this.tree.getHexRoot()}generateProof(e){if(!this.elements.includes(e))throw new Error("Element not found");return this.tree||(this.tree=this.generateTree()),this.tree.getHexProof(this.toLeaf(e))}verifyProof(e,r){if(!this.elements.includes(e))throw new Error("Element not found");return this.tree||(this.tree=this.generateTree()),this.tree.verify(r,this.toLeaf(e),this.generateRoot())}}const pae=t=>Zi(["address","uint256"],[t.address.toLowerCase(),t.tokenId]),I0=(t,e,r)=>{const n=new qt(t);return r&&n.setHeader("Authorization",`BEARER ${r}`),e&&n.setHeader("X-Access-Key",e),n};let yae=class{constructor(){this.cache=void 0,this.cache=new Map}do(e,r,n,...s){e=`${e}:${Kr(JSON.stringify(s,vae))}`;let i=this.cache.get(e);if(i&&i.expiration&&new Date>=i.expiration&&(i=void 0,this.cache.delete(e)),!i){const o={promise:n(...s)};r!==void 0&&(o.promise=o.promise.then(a=>(o.expiration=new Date(Date.now()+r),a))),i=o,this.cache.set(e,i)}return i.promise}};function vae(t,e){return typeof e=="object"&&e!==null&&!Array.isArray(e)?Object.fromEntries(Object.entries(e).sort()):e}function gae(t,e){return function(...r){const n=Array.prototype.slice.call(r);return new Promise(async(s,i)=>{try{n.push((o,a)=>o?i(o):s(a)),await t.apply(e,n)}catch(o){i(o)}})}}function mae(t,e){const r=encodeURIComponent(t),n=encodeURIComponent(JSON.stringify(e));return`${r}=${n}`}function xae(t){const e=t.split("&"),r={};for(const n of e){const s=n.split("=");r[decodeURIComponent(s[0])]=JSON.parse(decodeURIComponent(s[1]))}return r}const bae=(t=0,e=Number.MAX_SAFE_INTEGER)=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t),xM=t=>{if(!t||typeof t!="string")return"";const e=t.match(/[\d.]+/);return e&&e.length>0?e[0].trim():""},bM=t=>{if(!t||typeof t!="string")return"";const e=t.match(/[\w\s\d]+/);return e&&e.length>0?e[0].trim():""},wM=t=>{if(!t||typeof t!="string")return"";const e=t.match(/[\w\d.\-:\/]+/);return e&&e.length>0?e[0].trim():""},wae=t=>new Promise(e=>{const r=setTimeout(()=>{clearTimeout(r),e()},t)}),CM=t=>{const e=gv({},t.types);return delete e.EIP712Domain,Ds.hash(t.domain,e,t.message)},Ed=t=>Q(CM(t)),{defineProperties:Cae,resolveProperties:Eae}=goe,kae=t=>t.replace(/([^:]\/)\/+/g,"$1"),Aae=Object.freeze(Object.defineProperty({__proto__:null,Logger:gM,MAX_UINT_256:uM,MerkleTreeGenerator:hae,PromiseCache:yae,base64Decode:cae,base64DecodeObject:rk,base64Encode:aae,base64EncodeObject:tk,configureLogger:mM,defineProperties:Cae,encodeMessageDigest:nk,encodeTypedDataDigest:Ed,encodeTypedDataHash:CM,extractProjectIdFromAccessKey:oae,formatEther:uae,formatUnits:hM,getFetchRequest:I0,getRandomInt:bae,getSaleItemsLeaf:pae,isBigNumberish:fM,isBrowser:fae,isNode:yM,jwtDecodeClaims:vM,logger:Se,packMessageData:pM,parseEther:lae,parseUnits:dM,promisify:gae,queryStringFromObject:mae,queryStringToObject:xae,resolveProperties:Eae,sanitizeAlphanumeric:bM,sanitizeHost:wM,sanitizeNumberString:xM,sleep:wae,subDigestOf:k2,toHexString:Zc,urlClean:kae},Symbol.toStringTag,{value:"Module"}));function nd(){return nd=Object.assign?Object.assign.bind():function(t){for(var e=1;etypeof t=="number"?t:t.chainId?t.chainId:Number(t),Tae=t=>{if(t)return EM(t)},kM=(t,e=!1,r=!1)=>{if(!t)throw new Error("invalid network config: empty config");const n=[];if(Array.isArray(t)?n.push(...t):n.push(t),n.length===0){if(e)throw new Error("invalid network config: empty config");return!1}const s=n.map(l=>l.chainId).sort(),i=s.filter((l,u)=>s.indexOf(l)!==u);if(i.length>0){if(e)throw new Error(`invalid network config: duplicate chainIds ${i}`);return!1}n.forEach(l=>l.name=l.name.toLowerCase());const o=n.map(l=>l.name).sort(),a=o.filter((l,u)=>o.indexOf(l)!==u);if(a.length>0){if(e)throw new Error(`invalid network config: duplicate network names ${a}`);return!1}let c=!1;for(let l=0;l(kM(t,!0,e),t),Pae=(t,e=!0)=>{const r=t.map(s=>s.chainId).sort(),n=r.filter((s,i)=>r.indexOf(s)!==i);if(n.length>0){if(e)throw new Error(`invalid network config: duplicate chainIds ${n}`);return!1}return!0},Iae=(t,e)=>{if(!(!t||!e)){if(!t.chainId&&!t.name)throw new Error("failed to update network config: source config is missing chainId or name");if(t.chainId!==e.chainId&&t.name!==e.name)throw new Error("failed to update network config: one of chainId or name must match");t.rpcUrl&&(e.rpcUrl=t.rpcUrl,e.provider=void 0),t.provider&&(e.provider=t.provider),t.relayer&&(e.relayer=t.relayer)}},SM=t=>AM(TM(t)),Rs=(t,e)=>{if(typeof e=="string")if(e.startsWith("0x")){const r=Number(e);return t.find(n=>n.chainId===r)}else return t.find(r=>r.name===e||`${r.chainId}`===e);else{if(typeof e=="number")return t.find(r=>r.chainId===e);if(e.chainId)return t.find(r=>r.chainId===e.chainId);if(typeof e=="bigint"){const r=Number(e);return t.find(n=>n.chainId===r)}else return}},Oae=(t,e)=>t?t.name===e||t.chainId===e:!1,Rae=t=>{const e={};for(let r=0;r{if(!t)return[];const e=t.sort((n,s)=>n.chainId===s.chainId?0:n.chainIdn.isDefaultChain);return r>0&&e.splice(0,0,e.splice(r,1)[0]),e},zg=(t,e)=>typeof t=="string"?(e=e||{},t.replace(/\$\{\s*([$#@\-\d\w]+)\s*\}/gim,function(r,n){let s=e[n];return typeof s=="function"?s=s():s==null?s="":typeof s=="object"||typeof s=="symbol"?s=s.toString():s=s.valueOf(),s})):"",PM=t=>zg("https://${network}-indexer.sequence.app",{network:t}),IM=t=>zg("https://${network}-relayer.sequence.app",{network:t}),OM=t=>zg("https://nodes.sequence.app/${network}",{network:t});function sk(t){return Rs(sd,t)}function RM(t){return typeof t=="bigint"?t:fM(t)?BigInt(t):BigInt(t.chainId)}const He=(t,e)=>{const r=P0[t];if(!r)throw new Error(`Network with chainId ${t} not found`);const n=OM(r.name);return nd({},r,{rpcUrl:n,indexerUrl:PM(r.name),relayer:{url:IM(r.name),provider:{url:n}}},e)},NM=[nd({},P0[L.HARDHAT],{rpcUrl:"http://localhost:8545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:8545"}}}),nd({},P0[L.HARDHAT_2],{rpcUrl:"http://localhost:9545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:9545"}}})],sd=SM([nd({},He(L.POLYGON),{isDefaultChain:!0,isAuthChain:!0}),He(L.MAINNET),He(L.BSC),He(L.AVALANCHE),He(L.ARBITRUM),He(L.ARBITRUM_NOVA),He(L.OPTIMISM),He(L.OPTIMISM_SEPOLIA),He(L.POLYGON_ZKEVM),He(L.GNOSIS),He(L.RINKEBY,{disabled:!0}),He(L.GOERLI,{disabled:!0}),He(L.SEPOLIA),He(L.POLYGON_MUMBAI,{disabled:!0}),He(L.POLYGON_AMOY),He(L.BSC_TESTNET),He(L.ARBITRUM_SEPOLIA),He(L.BASE),He(L.BASE_SEPOLIA),He(L.HOMEVERSE),He(L.HOMEVERSE_TESTNET),He(L.XAI),He(L.XAI_SEPOLIA),He(L.AVALANCHE_TESTNET),He(L.ASTAR_ZKEVM),He(L.ASTAR_ZKYOTO),He(L.XR_SEPOLIA),He(L.B3_SEPOLIA),He(L.APECHAIN_TESTNET),He(L.BLAST),He(L.BLAST_SEPOLIA),He(L.TELOS),He(L.BORNE_TESTNET),...NM]);class _M{constructor(e,r){this.sender=void 0,this.handler=void 0,this.sender=r,e&&this.setMiddleware(e)}setMiddleware(e){this.handler=MM(e,this.sender)}request(e){return this.handler.request(e)}}const MM=(t,e)=>{if(t.length===0)return e;const r=s=>s.requestHandler?s.requestHandler:s;let n;n=r(t[t.length-1])(e.request);for(let s=t.length-2;s>=0;s--)n=r(t[s])(n);return{request:n}};function DM(t){return t!==void 0&&t.send!==void 0&&t.constructor.defaultUrl!==void 0&&t.detectNetwork!==void 0&&t.getSigner!==void 0&&t.perform!==void 0}function BM(t){return t!==void 0&&t.send!==void 0}class LM{constructor(e,r){this.provider=void 0,this.defaultChainId=void 0,this.request=n=>(n.chainId||(n.chainId=this.defaultChainId),this.provider(n)),BM(e)?this.provider=n=>e.send(n.method,n.params,n.chainId):DM(e)?this.provider=n=>e.send(n.method,n.params||[]):this.provider=e,this.defaultChainId=r}send(e,r,n){const s={method:e,params:r,chainId:n};return this.request(s)}}class Nae{constructor(e){this.requestHandler=void 0,this.isAllowedFunc=void 0,e?this.isAllowedFunc=e:this.isAllowedFunc=r=>!0,this.requestHandler=A2(this.isAllowedFunc)}setIsAllowedFunc(e){this.isAllowedFunc=e,this.requestHandler=A2(this.isAllowedFunc)}}const A2=t=>e=>r=>{if(!t(r))throw new Error("allowProvider middleware precondition is unmet.");return e(r)};class ik{constructor(e){var r=this;this.cachableJsonRpcMethods=["net_version","eth_chainId","eth_accounts","sequence_getWalletContext","sequence_getNetworks"],this.cachableJsonRpcMethodsByBlock=["eth_call","eth_getCode"],this.cache=void 0,this.cacheByBlock=void 0,this.cacheByBlockResetLock=!1,this.onUpdateCallback=void 0,this.defaultChainId=void 0,this.requestHandler=n=>async function(s){if(r.cachableJsonRpcMethods.includes(s.method)||r.cachableJsonRpcMethodsByBlock.includes(s.method)){const o=r.cacheKey(s.method,s.params,s.chainId||r.defaultChainId),a=r.getCacheValue(o);if(a&&a!=="")return{id:s.id,result:a}}const i=await n(s);if((r.cachableJsonRpcMethods.includes(s.method)||r.cachableJsonRpcMethodsByBlock.includes(s.method))&&i&&r.shouldCacheResponse(s,i)){const o=r.cacheKey(s.method,s.params,s.chainId||r.defaultChainId);r.cachableJsonRpcMethods.includes(s.method)?r.setCacheValue(o,i):r.setCacheByBlockValue(o,i)}return i},this.cacheKey=(n,s,i)=>{let o="";return i?o=`${i}:${n}:`:o=`:${n}:`,!s||s.length===0?o+"[]":o+JSON.stringify(s)},this.getCache=()=>this.cache,this.setCache=n=>{this.cache=n,this.onUpdateCallback&&this.onUpdateCallback()},this.getCacheValue=n=>{if(this.cache[n])return this.cache[n];if(this.cacheByBlock[n])return this.cacheByBlock[n]},this.setCacheValue=(n,s)=>{this.cache[n]=s,this.onUpdateCallback&&this.onUpdateCallback(n,s)},this.setCacheByBlockValue=(n,s)=>{this.cacheByBlock[n]=s,this.cacheByBlockResetLock||(this.cacheByBlockResetLock=!0,setTimeout(()=>{this.cacheByBlockResetLock=!1,this.cacheByBlock={}},1500))},this.shouldCacheResponse=(n,s)=>!(!s||n.method==="eth_getCode"&&s.length<=2),this.clearCache=()=>{this.cache={},this.cacheByBlock={}},this.cache={},this.cacheByBlock={},this.defaultChainId=e==null?void 0:e.defaultChainId,e!=null&&e.blockCache?(e==null?void 0:e.blockCache)!==!0&&(this.cachableJsonRpcMethodsByBlock=e==null?void 0:e.blockCache):this.cachableJsonRpcMethodsByBlock=[]}onUpdate(e){this.onUpdateCallback=e}}class jM{constructor(e){var r=this;this.options=void 0,this.requestHandler=n=>async function(s){switch(s.method){case"net_version":if(r.options.chainId)return`${r.options.chainId}`;break;case"eth_chainId":if(r.options.chainId)return pr(r.options.chainId);break;case"eth_accounts":if(r.options.accountAddress)return[Te(r.options.accountAddress)];break;case"sequence_getWalletContext":if(r.options.walletContext)return r.options.walletContext;break}return n(s)},this.options=e}}const FM=t=>async e=>{try{return await t(e)}catch(r){throw typeof r=="string"?new Error(r):new Error(r.message)}},UM=t=>async e=>{const r=e.chainId?` chainId:${e.chainId}`:"";Se.info(`[provider request]${r} id:${e.id} method:${e.method} params:`,e.params);try{const n=await t(e);return Se.info(`[provider response]${r} id:${e.id} method:${e.method} params:`,e.params,"result:",n),n}catch(n){Se.warn(`[provider response]${r} id:${e.id} method:${e.method} params:`,e.params,"error:",n)}},_ae=t=>e=>async r=>{const n=t(r);switch(r.method){case"net_version":return`${n}`;case"eth_chainId":return pr(n)}return e(r)},$M=["personal_sign","eth_sign","eth_signTypedData","eth_signTypedData_v4","eth_sendTransaction","eth_sendRawTransaction","sequence_sign","sequence_signTypedData_v4","sequence_getWalletContext","sequence_getWalletConfig","sequence_getWalletState","sequence_getNetworks","sequence_updateConfig","sequence_publishConfig","sequence_gasRefundOptions","sequence_getNonce","sequence_relay","eth_decrypt","eth_getEncryptionPublicKey","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"];class Mae{constructor(e){this.provider=void 0,this.requestHandler=r=>n=>$M.includes(n.method)?this.provider.request(n):r(n),this.provider=e}}class Dae{constructor(e){this.privateJsonRpcMethods=["net_version","eth_chainId","eth_accounts",...$M],this.provider=void 0,this.rpcUrl=void 0,this.requestHandler=r=>n=>this.provider&&!this.privateJsonRpcMethods.includes(n.method)?this.provider.send(n.method,n.params||[]):(Se.debug("[public-provider] sending request to signer window",n.method),r(n)),e&&this.setRpcUrl(e)}getRpcUrl(){return this.rpcUrl}setRpcUrl(e){!e||e===""?(this.rpcUrl=void 0,this.provider=void 0):(this.rpcUrl=e,this.provider=new zt(e))}}class WM{constructor(){var e=this;this.singleflightJsonRpcMethods=["eth_chainId","net_version","eth_call","eth_getCode","eth_blockNumber","eth_getBalance","eth_getStorageAt","eth_getTransactionCount","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_getBlockByHash","eth_getBlockByNumber","eth_getTransactionByHash","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionReceipt","eth_getUncleByBlockHashAndIndex","eth_getUncleByBlockNumberAndIndex","eth_getLogs"],this.inflight=void 0,this.requestHandler=r=>async function(n){if(!e.singleflightJsonRpcMethods.includes(n.method))return r(n);const s=e.requestKey(n.method,n.params||[],n.chainId);if(!e.inflight[s])e.inflight[s]=[];else return new Promise((i,o)=>{e.inflight[s].push({id:n.id,callback:(a,c)=>{a?o(a):i(c)}})});try{const i=await r(n);return e.inflight[s].forEach(({callback:o})=>o(void 0,i)),i}catch(i){throw e.inflight[s].forEach(({callback:o})=>o(i,void 0)),i}finally{delete e.inflight[s]}},this.requestKey=(r,n,s)=>{let i="";return s?i=`${s}:${r}:`:i=`:${r}:`,!n||n.length===0?i+"[]":i+JSON.stringify(n)},this.inflight={}}}function $l(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Bae=0;function ok(t){return"__private_"+Bae+++"_"+t}var Ya=ok("chainId"),Ux=ok("nextId"),Wd=ok("sender");class VM extends zt{constructor(e,r,n){var s;super(e,r==null?void 0:r.chainId,n),s=this,this.url=e,Object.defineProperty(this,Ya,{writable:!0,value:void 0}),Object.defineProperty(this,Ux,{writable:!0,value:1}),Object.defineProperty(this,Wd,{writable:!0,value:void 0}),this.fetch=async function(l){if(s.url===void 0)throw new Error("missing provider URL");const{method:u,params:f}=l,d={method:u,params:f,id:$l(s,Ux)[Ux]++,jsonrpc:"2.0"},h=typeof s.url=="string"?new qt(s.url):s.url;h.body=JSON.stringify(d);try{const y=await h.send();if(y.body)try{const p=JSON.parse(Ms(y.body));return Lae(p)}catch{throw new Error("invalid JSON response")}return null}catch(y){throw y}};const i=r==null?void 0:r.chainId,o=r==null?void 0:r.middlewares,a=r==null?void 0:r.blockCache;$l(this,Ya)[Ya]=i;const c=new _M(o??[new jM({chainId:i}),new WM,new ik({defaultChainId:i,blockCache:a})],new LM(this.fetch,i));$l(this,Wd)[Wd]=c}async request(e){return $l(this,Wd)[Wd].request(e)}async send(e,r,n){return this.request({method:e,params:r,chainId:n})}async getNetwork(){const e=$l(this,Ya)[Ya];if(e){const r=P0[e],n=(r==null?void 0:r.name)||"",s=r==null?void 0:r.ensAddress;return ot.from({name:n,chainId:e,ensAddress:s})}else{const r=await this.send("eth_chainId",[]);return $l(this,Ya)[Ya]=Number(r),this.getNetwork()}}}function Lae(t){if(t.error){const e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}const jae=Object.freeze(Object.defineProperty({__proto__:null,AllowProvider:Nae,CachedProvider:ik,ChainId:L,EagerProvider:jM,JsonRpcHandler:LM,JsonRpcProvider:VM,JsonRpcRouter:_M,NetworkType:_e,PublicProvider:Dae,SigningProvider:Mae,SingleflightMiddleware:WM,allNetworks:sd,allowProviderMiddleware:A2,checkNetworkConfig:Oae,createJsonRpcMiddlewareStack:MM,ensureUniqueNetworks:Pae,ensureValidNetworks:AM,exceptionProviderMiddleware:FM,findNetworkConfig:Rs,findSupportedNetwork:sk,getChainId:EM,hardhatNetworks:NM,indexerURL:PM,isJsonRpcProvider:DM,isJsonRpcSender:BM,isNetworkConfig:Sae,isValidNetworkConfig:kM,loggingProviderMiddleware:UM,maybeChainId:Tae,networkProviderMiddleware:_ae,networks:P0,networksIndex:Rae,nodesURL:OM,relayerURL:IM,sortNetworks:TM,stringTemplate:zg,toChainIdNumber:RM,updateNetworkConfig:Iae,validateAndSortNetworks:SM},Symbol.toStringTag,{value:"Module"}));function yr(){return yr=Object.assign?Object.assign.bind():function(t){for(var e=1;e{if(ck(s))return De(["uint8","uint8","address"],[el.Address,s.weight,s.address]);if(s.isDynamic){const i=Q(s.signature);return De(["uint8","uint8","address","uint16","bytes"],[el.DynamicSignature,s.weight,s.address,i.length,i])}return De(["uint8","uint8","bytes"],[el.EOASignature,s.weight,s.signature])});return De(["uint16",...new Array(n.length).fill("bytes")],[r,...n])}async function QM(t,e,r){const n=A1(e),s=await Promise.all(t.signers.map(async i=>{if(ck(i))return i;if(i.isDynamic){if(!i.address)throw new Error("Dynamic signature part must have address");if(!ak(i.address,n,i.signature,r))throw new Error(`Invalid dynamic signature part ${i.address}`);return{address:i.address,weight:i.weight,signature:i.signature}}else return{address:S1(n,i.signature),weight:i.weight,signature:i.signature}}));return{version:1,payload:e,subdigest:n,config:{version:1,threshold:t.threshold,signers:s}}}function Th(t,e,r,n){if(r.length!==0)throw new Error("Explicit subdigests not supported on v1");let s=0n;const i=t.signers.map(a=>{if(!e.has(a.address))return a;const c=e.get(a.address),l=Q(c.signature);return s+=BigInt(a.weight),c.isDynamic||l.length!==66?yr({},a,{isDynamic:!0,signature:c.signature,address:a.address}):yr({},a,{isDynamic:!1,signature:c.signature})});return{encoded:lk({version:1,threshold:t.threshold,signers:i}),weight:s}}const uk={decode:t=>KM(t),encode:t=>lk(t),trim:async t=>t,supportsNoChainId:!0,recover:(t,e,r)=>QM(t,e,r),encodeSigners:(t,e,r,n)=>Th(t,e,r),hasEnoughSigningPower:(t,e)=>{const{weight:r}=uk.encodeSigners(t,e,[],0);return r>=BigInt(t.threshold)},chainSignatures:(t,e)=>{throw new Error("Signature chaining not supported on v1")},hashSetImageHash:function(t){throw new Error("Image hash not supported on v1")},signaturesOf(t){return t.signers.filter(e=>e.signature!==void 0).map(e=>({address:e.address,signature:e.signature}))},signaturesOfDecoded:function(t){return t.signers.map(e=>e.signature).filter(e=>e!==void 0)}};var qae=Object.freeze({__proto__:null,SignaturePartType:el,isAddressMember:ck,isUnrecoveredSignatureMember:GM,isUnrecoveredSignature:qM,decodeSignature:KM,encodeSignature:lk,recoverSignature:QM,encodeSigners:Th,SignatureCoder:uk});const fk={isWalletConfig:t=>t.version===1&&t.threshold!==void 0&&t.signers!==void 0,imageHashOf:t=>t.signers.reduce((e,r)=>Ne(Kt.defaultAbiCoder().encode(["bytes32","uint8","address"],[e,r.weight,r.address])),De(["uint256"],[t.threshold])),hasSubdigest:(t,e)=>!1,isComplete:t=>!0,checkpointOf:t=>0n,signersOf:t=>t.signers.map(e=>({address:e.address,weight:Number(e.weight)})),fromSimple:t=>{if(BigInt(t.checkpoint)!==0n)throw new Error("v1 wallet config does not support checkpoint");if(t.subdigests&&t.subdigests.length>0)throw new Error("v1 wallet config does not support subdigests");return{version:1,threshold:t.threshold,signers:t.signers}},update:{isKindUsed:!0,buildTransaction:(t,e,r,n)=>{const s=new pt([...Gt.mainModule.abi,...Gt.mainModuleUpgradable.abi]),i=[];return(!n||n==="first")&&i.push({to:t,data:s.encodeFunctionData(s.getFunction("updateImplementation"),[r.mainModuleUpgradable]),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}),i.push({to:t,data:s.encodeFunctionData(s.getFunction("updateImageHash"),[fk.imageHashOf(e)]),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}),{entrypoint:t,transactions:i}},decodeTransaction:function(t){throw new Error("Function not implemented.")}},toJSON:function(t){const e=t.signers.map(r=>({weight:BigInt(r.weight).toString(),address:r.address}));return JSON.stringify({version:t.version,threshold:BigInt(t.threshold).toString(),signers:e})},fromJSON:function(t){const e=JSON.parse(t),r=e.signers.map(n=>({weight:BigInt(n.weight),address:n.address}));return{version:e.version,threshold:BigInt(e.threshold),signers:r}},editConfig:function(t,e){var r;const n=t.signers.slice();if(e.checkpoint&&BigInt(e.checkpoint)!==0n)throw new Error("v1 wallet config does not support checkpoint");if(e.add)for(const s of e.add)n.find(i=>i.address===s.address)||n.push({weight:s.weight,address:s.address});if(e.remove)for(const s of e.remove){const i=n.findIndex(o=>o.address===s);i>=0&&n.splice(i,1)}return{version:t.version,threshold:(r=e.threshold)!=null?r:t.threshold,signers:n}},buildStubSignature:function(t,e){const r=new Map;for(const[s,i]of e.entries()){r.set(s,{signature:i,isDynamic:!0});const{encoded:o,weight:a}=Th(t,r,[]);if(a>=BigInt(t.threshold))return o}const n=t.signers;for(const{address:s}of n.sort(({weight:i},{weight:o})=>Number(i)-Number(o))){r.set(s,{signature:"0x4e82f02f388a12b5f9d29eaf2452dd040c0ee5804b4e504b4dd64e396c6c781f2c7624195acba242dd825bfd25a290912e3c230841fd55c9a734c4de8d9899451b02",isDynamic:!1});const{encoded:o,weight:a}=Th(t,r,[]);if(a>=BigInt(t.threshold))return o}return Th(t,r,[]).encoded}};var Kae=Object.freeze({__proto__:null,ConfigCoder:fk}),Qae=Object.freeze({__proto__:null});const JM=1,YM={version:JM,factory:"0xf9D09D634Fb818b05149329C1dcCFAeA53639d96",guestModule:"0x02390F3E6E5FD1C6786CB78FD3027C117a9955A7",mainModule:"0xd01F11855bCcb95f88D7A48492F66410d4637313",mainModuleUpgradable:"0x7EFE6cE415956c5f80C6530cC6cc81b4808F6118",walletCreationCode:"0x603a600e3d39601a805130553df3363d3d373d3d3d363d30545af43d82803e903d91601857fd5bf3"};var Vi=Object.freeze({__proto__:null,config:Kae,context:Qae,signature:qae,version:JM,DeployedWalletContext:YM});const dk="0x8713a7c4465f6fbee2b6e9d6646d1d9f83fec929edfc4baf661f3c865bdd04d1";function XM(t){return Ne(ZM(t))}function ZM(t){return De(["bytes32","bytes32"],[dk,t])}function eD(t){const e=Q(t);if(e.length===64&&H(e.slice(0,32))===dk)return H(e.slice(32,64))}function Jae(t){return eD(t)!==void 0}var Yae=Object.freeze({__proto__:null,SetImageHashPrefix:dk,hashSetImageHash:XM,messageSetImageHash:ZM,decodeMessageSetImageHash:eD,isMessageSetImageHash:Jae});let Zt=function(t){return t[t.Legacy=0]="Legacy",t[t.Dynamic=1]="Dynamic",t[t.NoChainIdDynamic=2]="NoChainIdDynamic",t[t.Chained=3]="Chained",t}({}),It=function(t){return t[t.Signature=0]="Signature",t[t.Address=1]="Address",t[t.DynamicSignature=2]="DynamicSignature",t[t.Node=3]="Node",t[t.Branch=4]="Branch",t[t.Subdigest=5]="Subdigest",t[t.Nested=6]="Nested",t}({});const mv=66;function bl(t){return t.left!==void 0&&t.right!==void 0}function kd(t){return t.tree!==void 0}function T1(t){return t.unrecovered&&t.signature!==void 0&&t.isDynamic!==void 0}function xv(t){let e=Q(t),r;const n=(s,i)=>s?s.right?{left:s,right:i}:{left:s.left,right:i}:{left:i};for(;e.length>0;){const s=e[0];switch(e=e.slice(1),s){case It.Signature:{const i=e[0],o=H(e.slice(1,mv+1));r=n(r,{signature:o,weight:i,unrecovered:!0,isDynamic:!1}),e=e.slice(mv+1)}break;case It.Address:{const i=e[0],o=Te(H(e.slice(1,21)));r=n(r,{address:o,weight:i}),e=e.slice(21)}break;case It.DynamicSignature:{const i=e[0],o=Te(H(e.slice(1,21))),a=e[21]<<16|e[22]<<8|e[23],c=H(e.slice(24,24+a));r=n(r,{address:o,signature:c,weight:i,unrecovered:!0,isDynamic:!0}),e=e.slice(24+a)}break;case It.Node:{const i=H(e.slice(0,32));r=n(r,{nodeHash:i}),e=e.slice(32)}break;case It.Branch:{const i=e[0]<<16|e[1]<<8|e[2],o=xv(e.slice(3,3+i));r=n(r,o),e=e.slice(3+i)}break;case It.Subdigest:{const i=H(e.slice(0,32));r=n(r,{subdigest:i}),e=e.slice(32)}break;case It.Nested:{const i=e[0],o=e[1]<<8|e[2],a=e[3]<<16|e[4]<<8|e[5],c=xv(e.slice(6,6+a));r=n(r,{weight:i,threshold:o,tree:c}),e=e.slice(6+a)}break;default:throw new Error(`Unknown signature part type: ${s}: ${H(e)}`)}}if(!r)throw new Error("Empty signature tree");return r.right?r:r.left}class tD extends Error{constructor(e){super(`Invalid signature leaf: ${JSON.stringify(e)}`),this.leaf=e}}async function tl(t,e,r){if(bl(t)){const[n,s]=await Promise.all([tl(t.left,e,r),tl(t.right,e,r)]);return{left:n,right:s}}if(kd(t))return{weight:t.weight,threshold:t.threshold,tree:await tl(t.tree,e,r)};if(T1(t))if(t.isDynamic){if(!t.address)throw new Error("Dynamic signature leaf without address");if(!await ak(t.address,e,t.signature,r))throw new tD(t);return{weight:t.weight,address:t.address,signature:t.signature,subdigest:e}}else return{weight:t.weight,address:S1(e,t.signature),signature:t.signature,subdigest:e};return t}const Ar={concat:(t,e)=>De(["bytes","bytes"],[t,e]),node:t=>De(["uint8","bytes32"],[It.Node,t]),branch:t=>{const e=Q(t);return De(["uint8","uint24","bytes"],[It.Branch,e.length,e])},nested:(t,e,r)=>{const n=Q(r);return De(["uint8","uint8","uint16","uint24","bytes"],[It.Nested,t,e,n.length,n])},subdigest:t=>De(["uint8","bytes32"],[It.Subdigest,t]),signature:(t,e)=>De(["uint8","uint8","bytes"],[It.Signature,t,e]),dynamicSignature:(t,e,r)=>{const n=Q(r);return De(["uint8","uint8","address","uint24","bytes"],[It.DynamicSignature,t,e,n.length,n])},address:(t,e)=>De(["uint8","uint8","address"],[It.Address,t,e])};function Ph(t,e,r,n,s={}){const i=Ih(t.tree,e,r,s);return BigInt(n)===0n?{encoded:De(["uint8","uint16","uint32","bytes"],[Zt.NoChainIdDynamic,t.threshold,t.checkpoint,i.encoded]),weight:i.weight}:BigInt(t.threshold)>255n?{encoded:De(["uint8","uint16","uint32","bytes"],[Zt.Dynamic,t.threshold,t.checkpoint,i.encoded]),weight:i.weight}:{encoded:De(["uint8","uint8","uint32","bytes"],[Zt.Legacy,t.threshold,t.checkpoint,i.encoded]),weight:i.weight}}function Ih(t,e,r,n={}){const s=!n.disableTrim;if(Ls(t)){const i=Ih(t.left,e,r),o=Ih(t.right,e,r),a=Gr(t.left),c=Gr(t.right);return s&&i.weight===0n&&o.weight===0n&&!a&&!c?{encoded:Ar.node(Yn(t)),weight:0n}:s&&o.weight===0n&&!c?{encoded:Ar.concat(i.encoded,Ar.node(Yn(t.right))),weight:i.weight}:s&&i.weight===0n&&!a?{encoded:Ar.concat(Ar.node(Yn(t.left)),Ar.branch(o.encoded)),weight:o.weight}:{encoded:Ar.concat(i.encoded,Ar.branch(o.encoded)),weight:i.weight+o.weight}}if(mo(t)){const i=Ih(t.tree,e,r);return s&&i.weight===0n?{encoded:Ar.node(Yn(t)),weight:0n}:{encoded:Ar.nested(t.weight,t.threshold,i.encoded),weight:i.weight}}if(xo(t))return{encoded:Ar.node(Yn(t)),weight:0n};if(go(t)){const i=r.includes(t.subdigest);return{encoded:Ar.subdigest(t.subdigest),weight:i?uM:0n}}if(Gr(t))if(e.has(t.address)){const o=e.get(t.address),a=o.signature;return n.forceDynamicEncoding||o.isDynamic?{encoded:Ar.dynamicSignature(t.weight,t.address,a),weight:BigInt(t.weight)}:{encoded:Ar.signature(t.weight,a),weight:BigInt(t.weight)}}else return{encoded:Ar.address(t.weight,t.address),weight:0n};throw new Error(`Invalid topology - unknown error: ${JSON.stringify(t)}`)}function hk(t){return yk(t)?hk(t.suffix[t.suffix.length-1]):t.config}function pk(t){return t.type!==void 0&&t.decoded!==void 0&&t.version!==void 0&&t.version===2}function P1(t){return t.suffix!==void 0&&Array.isArray(t.suffix)&&t.suffix.every(pk)}function rD(t){return t.type!==void 0&&t.config!==void 0&&t.digest!==void 0&&t.version!==void 0&&t.version===2}function yk(t){return t.chain!==void 0&&Array.isArray(t.chain)&&t.chain.every(rD)}function Gg(t){const e=Q(t),r=e[0];switch(r){case Zt.Legacy:return{version:2,type:Zt.Legacy,decoded:cy(e)};case Zt.Dynamic:return{version:2,type:Zt.Dynamic,decoded:cy(e.slice(1))};case Zt.NoChainIdDynamic:return{version:2,type:Zt.NoChainIdDynamic,decoded:cy(e.slice(1))};case Zt.Chained:return nD(e);default:throw new Error(`Invalid signature type: ${r}`)}}function cy(t){const e=Q(t),r=e[0]<<8|e[1],n=e[2]<<24|e[3]<<16|e[4]<<8|e[5],s=xv(e.slice(6));return{threshold:r,checkpoint:n,tree:s}}function nD(t){const e=Q(t),r=e[0];if(r!==Zt.Chained)throw new Error(`Expected chained signature type: ${r}`);const n=[];let s=1;for(;sQ(Ca(i))),s=De(n.map(()=>["uint24","bytes"]).flat(),n.map(i=>[i.length,i]).flat());return De(["uint8","bytes"],[Zt.Chained,s])}function Ca(t){if(gi(t))return H(t);if(P1(t)||yk(t))return qg(Ca(t),(t.suffix||[]).map(Ca));const e=pk(t)?t.decoded:t.config;switch(t.type){case Zt.Legacy:if(BigInt(e.threshold)>255n)throw new Error(`Legacy signature threshold is too large: ${e.threshold} (max 255)`);return S2(e);case Zt.NoChainIdDynamic:case Zt.Dynamic:return De(["uint8","bytes"],[t.type,S2(e)]);case Zt.Chained:throw new Error("Unreachable code: Chained signature should be handled above");default:throw new Error(`Invalid signature type: ${t.type}`)}}function S2(t){return De(["uint16","uint32","bytes"],[t.threshold,t.checkpoint,Oh(t.tree)])}function Oh(t){if(Ls(t)||bl(t)){const e=Q(Oh(t.right)),r=Q(Oh(t.left));return Ls(t.right)||bl(t.right)?De(["bytes","uint8","uint24","bytes"],[r,It.Branch,e.length,e]):De(["bytes","bytes"],[r,e])}if(mo(t)||kd(t)){const e=Q(Oh(t.tree));return De(["uint8","uint8","uint16","uint24","bytes"],[It.Nested,t.weight,t.threshold,e.length,e])}if(T1(t)||Gr(t)&&t.signature!==void 0){const e=Q(t.signature);if(t.isDynamic||e.length!==mv){if(!t.address)throw new Error("Dynamic signature leaf must have address");return De(["uint8","uint8","address","uint24","bytes"],[It.DynamicSignature,t.weight,t.address,e.length,e])}else return De(["uint8","uint8","bytes"],[It.Signature,t.weight,e])}if(Gr(t))return De(["uint8","uint8","address"],[It.Address,t.weight,t.address]);if(xo(t))return De(["uint8","bytes32"],[It.Node,t.nodeHash]);if(go(t))return De(["uint8","bytes32"],[It.Subdigest,t.subdigest]);throw new Error(`Unknown signature tree type: ${t}`)}function Rh(t){return Ls(t)?[...Rh(t.left),...Rh(t.right)]:mo(t)?Rh(t.tree):Gr(t)&&t.signature?[{address:t.address,signature:t.signature}]:[]}function Nh(t){return bl(t)?[...Nh(t.left),...Nh(t.right)]:kd(t)?Nh(t.tree):T1(t)?[t.signature]:[]}function ly(t){return bl(t)?[...ly(t.left),...ly(t.right)]:kd(t)?ly(t.tree):go(t)?[t.subdigest]:[]}async function bv(t){const e=typeof t=="string"?Gg(t):t;if(P1(e)){const n=await Promise.all([bv(yr({},e,{suffix:void 0})),...e.suffix.map(s=>bv(s))]);return qg(n[0],n.slice(1))}const{trimmed:r}=await _h(e.decoded.tree);return Ca(yr({},e,{decoded:yr({},e.decoded,{tree:r})}))}async function _h(t,e=!0){if(bl(t)){const[r,n]=await Promise.all([_h(t.left),_h(t.right)]);if(r.weight===0&&n.weight===0)try{const s=await tl(t,pl,void 0);return{weight:0,trimmed:{nodeHash:Yn(s)}}}catch{}else return{weight:r.weight+n.weight,trimmed:{left:r.trimmed,right:n.trimmed}}}if(kd(t)){const r=await _h(t.tree);if(r.weight===0)try{const n=await tl(t,pl,void 0);return{weight:0,trimmed:{nodeHash:Yn(n)}}}catch{}return{weight:r.weight,trimmed:{weight:t.weight,threshold:t.threshold,tree:r.trimmed}}}return xo(t)&&aD(t.nodeHash)?{weight:0,trimmed:yr({},oD(t.nodeHash))}:T1(t)||Gr(t)&&t.signature!==void 0?{weight:Number(t.weight),trimmed:t}:!e&&go(t)?{weight:1/0,trimmed:t}:{weight:0,trimmed:t}}const Kg={decode:t=>Gg(t),encode:t=>Ca(t),trim:t=>bv(t),supportsNoChainId:!0,recover:(t,e,r)=>vk(t,e,r),encodeSigners:(t,e,r,n)=>Ph(t,e,r,n),hasEnoughSigningPower:(t,e)=>{const{weight:r}=Kg.encodeSigners(t,e,[],0);return r>=BigInt(t.threshold)},chainSignatures:(t,e)=>{const r=e.reverse(),n=gi(t)?t:Ca(t),s=r.map(i=>gi(i)?i:Ca(i));return qg(n,s)},hashSetImageHash:function(t){return XM(t)},signaturesOf(t){return Rh(t.tree)},signaturesOfDecoded:function(t){return Nh(t.decoded.tree)}};var Xae=Object.freeze({__proto__:null,SignatureType:Zt,SignaturePartType:It,SignaturePartTypeLength:mv,isUnrecoveredNode:bl,isUnrecoveredNestedLeaf:kd,isUnrecoveredSignatureLeaf:T1,decodeSignatureTree:xv,InvalidSignatureLeafError:tD,recoverTopology:tl,partEncoder:Ar,encodeSigners:Ph,encodeTree:Ih,deepestConfigOfSignature:hk,isUnrecoveredSignature:pk,isUnrecoveredChainedSignature:P1,isSignature:rD,isChainedSignature:yk,decodeSignature:Gg,decodeSignatureBody:cy,decodeChainedSignature:nD,setImageHashStruct:sD,recoverSignature:vk,encodeChain:qg,encodeSignature:Ca,encodeSignatureBody:S2,encodeSignatureTree:Oh,signaturesOf:Rh,signaturesOfDecoded:Nh,subdigestsOfDecoded:ly,trimSignature:bv,trimUnrecoveredTree:_h,SignatureCoder:Kg});function Gr(t){return t.address!==void 0&&t.weight!==void 0}function go(t){return t.subdigest!==void 0&&t.address===void 0}function Mh(t){return Ls(t)?JSON.stringify({left:Mh(t.left),right:Mh(t.right)}):mo(t)?JSON.stringify({weight:BigInt(t.weight).toString(),threshold:BigInt(t.threshold).toString(),tree:Mh(t.tree)}):Gr(t)?JSON.stringify({address:t.address,weight:BigInt(t.weight).toString()}):JSON.stringify(t)}function Dh(t){const e=typeof t=="string"?JSON.parse(t):t;return e.left!==void 0&&e.right!==void 0?{left:Dh(e.left),right:Dh(e.right)}:e.weight!==void 0&&e.threshold!==void 0&&e.tree!==void 0?{weight:BigInt(e.weight),threshold:BigInt(e.threshold),tree:Dh(e.tree)}:e.address!==void 0&&e.weight!==void 0?{address:e.address,weight:BigInt(e.weight)}:e}function mo(t){return t.tree!==void 0&&t.weight!==void 0&&t.threshold!==void 0}function xo(t){return t.nodeHash!==void 0}function gk(t){return Gr(t)||go(t)||mo(t)||xo(t)}function Ls(t){return t.left!==void 0&&t.right!==void 0}function Zae(t){return Ls(t)||gk(t)}function iD(t){return De(["uint96","address"],[t.weight,t.address])}function oD(t){const e=Q(t);if(e.length!==32)throw new Error("Invalid encoded string length");const r=BigInt(H(e.slice(0,12))),n=Te(H(e.slice(12)));return{weight:r,address:n}}function aD(t){const e=Q(t);return e.length!==32?!1:e.slice(0,11).every(n=>n===0)}function Yn(t){if(Gr(t))return iD(t);if(go(t))return Zi(["string","bytes32"],[`Sequence static digest: -`,t.subdigest]);if(mo(t)){const e=Yn(t.tree);return Zi(["string","bytes32","uint256","uint256"],[`Sequence nested config: -`,e,t.threshold,t.weight])}return xo(t)?t.nodeHash:Zi(["bytes32","bytes32"],[Yn(t.left),Yn(t.right)])}function ece(t){const e=[];let r=t;for(;!gk(r);)e.unshift(r.right),r=r.left;return e.unshift(r),e}function tce(t){return t.threshold!==void 0&&t.checkpoint!==void 0&&t.tree!==void 0&&t.version!==void 0&&t.version===2}function mk(t){return Zi(["bytes32","uint256"],[Zi(["bytes32","uint256"],[Yn(t.tree),t.threshold]),t.checkpoint])}function cD(t){return t.threshold!==void 0&&t.weight!==void 0&&t.members!==void 0}function Du(t){return Gr(t)||go(t)?[t]:mo(t)?[{threshold:t.threshold,weight:t.weight,members:Du(t.tree)}]:xo(t)?[]:[...Du(t.left),...Du(t.right)]}function T2(t){return xo(t)?!0:Ls(t)?T2(t.left)||T2(t.right):!1}function rce(t){return{threshold:t.threshold,checkpoint:t.checkpoint,members:Du(t.tree)}}const lD=(t,e)=>t.map(r=>cD(r)?{tree:e(r.members),threshold:r.threshold,weight:r.weight}:r);function xk(t){if(t.length===0)throw new Error("Empty members array");return lD(t,xk).reduce((r,n)=>({left:r,right:n}))}function bk(t){if(t.length===0)throw new Error("Empty members array");const e=lD(t,bk);for(let r=e.length;r>1;r=r/2)for(let n=0;n=r?e[n]=e[s]:e[n]={left:e[s],right:e[i]}}return e[0]}function wk(t){return t.length>8?bk(t):xk(t)}function uD(t,e=wk){return{version:2,threshold:t.threshold,checkpoint:t.checkpoint,tree:e(t.members)}}function wv(t,e){return go(t)?t.subdigest===e:Ls(t)?wv(t.left,e)||wv(t.right,e):!1}function P2(t){const e=[t],r=new Set;for(;e.length>0;){const n=e.pop();mo(n)?e.push(n.tree):Ls(n)?(e.push(n.left),e.push(n.right)):Gr(n)&&r.add({address:n.address,weight:Number(n.weight)})}return Array.from(r)}function Cv(t){return Ls(t)?Cv(t.left)&&Cv(t.right):!xo(t)}const Qg={isWalletConfig:t=>t.version===2&&t.threshold!==void 0&&t.tree!==void 0,imageHashOf:t=>mk(t),hasSubdigest:(t,e)=>wv(t.tree,e),checkpointOf:t=>BigInt(t.checkpoint),signersOf:t=>P2(t.tree),fromSimple:t=>{var e;return uD(yr({},t,{members:[...t.signers,...((e=t.subdigests)!=null?e:[]).map(r=>({subdigest:r}))]}))},isComplete:t=>Cv(t.tree),update:{isKindUsed:!0,buildTransaction:(t,e,r,n)=>{const s=new pt(Gt.mainModuleUpgradable.abi);return{entrypoint:t,transactions:[{to:t,data:s.encodeFunctionData(s.getFunction("updateImageHash"),[Qg.imageHashOf(e)]),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}]}},decodeTransaction:function(t){var e,r,n,s;const i=new pt(Gt.mainModuleUpgradable.abi);if(t.transactions.length!==1)throw new Error("Invalid transaction bundle, expected 1 transaction");const o=t.transactions[0].data;if(!o)throw new Error("Invalid transaction bundle, expected data");const a=i.decodeFunctionData(i.getFunction("updateImageHash"),o);if(!a)throw new Error("Invalid transaction bundle, expected valid data");if(t.transactions[0].to!==t.entrypoint)throw new Error("Invalid transaction bundle, expected to be sent to entrypoint");if(t.transactions[0].delegateCall)throw new Error("Invalid transaction bundle, expected not to be a delegateCall");if(!t.transactions[0].revertOnError)throw new Error("Invalid transaction bundle, expected revertOnError");if(BigInt((e=(r=t.transactions[0])==null?void 0:r.value)!=null?e:0)!==0n)throw new Error("Invalid transaction bundle, expected value to be 0");if(BigInt((n=(s=t.transactions[0])==null?void 0:s.gasLimit)!=null?n:0)!==0n)throw new Error("Invalid transaction bundle, expected value to be 0");return{address:t.entrypoint,newImageHash:a[0],kind:void 0}}},toJSON:function(t){return JSON.stringify({version:t.version,threshold:BigInt(t.threshold).toString(),checkpoint:BigInt(t.checkpoint).toString(),tree:Mh(t.tree)})},fromJSON:function(t){const e=JSON.parse(t);return{version:e.version,threshold:BigInt(e.threshold),checkpoint:BigInt(e.checkpoint),tree:Dh(e.tree)}},editConfig:function(t,e){var r,n;const s=Du(t.tree);if(e.add)for(const i of e.add)s.find(o=>Gr(o)&&o.address===i.address)||s.push({address:i.address,weight:i.weight});if(e.remove)for(const i of e.remove){const o=s.findIndex(a=>Gr(a)&&a.address===i);o>=0&&s.splice(o,1)}return{version:t.version,threshold:(r=e.threshold)!=null?r:t.threshold,checkpoint:(n=e.checkpoint)!=null?n:t.checkpoint,tree:wk(s)}},buildStubSignature:function(t,e){const r=new Map;for(const[s,i]of e.entries()){r.set(s,{signature:i,isDynamic:!0});const{encoded:o,weight:a}=Ph(t,r,[],0);if(a>=BigInt(t.threshold))return o}const n=P2(t.tree);for(const{address:s}of n.sort(({weight:i},{weight:o})=>i-o)){r.set(s,{signature:"0x4e82f02f388a12b5f9d29eaf2452dd040c0ee5804b4e504b4dd64e396c6c781f2c7624195acba242dd825bfd25a290912e3c230841fd55c9a734c4de8d9899451b02",isDynamic:!1});const{encoded:o,weight:a}=Ph(t,r,[],0);if(a>=BigInt(t.threshold))return o}return Ph(t,r,[],0).encoded}};var nce=Object.freeze({__proto__:null,isSignerLeaf:Gr,isSubdigestLeaf:go,topologyToJSON:Mh,topologyFromJSON:Dh,isNestedLeaf:mo,isNodeLeaf:xo,isLeaf:gk,isNode:Ls,isTopology:Zae,encodeSignerLeaf:iD,decodeSignerLeaf:oD,isEncodedSignerLeaf:aD,hashNode:Yn,leftFace:ece,isWalletConfig:tce,imageHash:mk,isSimpleNestedMember:cD,topologyToMembers:Du,hasUnknownNodes:T2,toSimpleWalletConfig:rce,legacyTopologyBuilder:xk,merkleTopologyBuilder:bk,optimized2SignersTopologyBuilder:wk,toWalletConfig:uD,hasSubdigest:wv,signersOf:P2,isComplete:Cv,ConfigCoder:Qg}),sce=Object.freeze({__proto__:null});const ice={config:Qg,signature:Kg},fD=2,dD={version:fD,factory:"0xFaA5c0b14d1bED5C888Ca655B9a8A5911F78eF4A",guestModule:"0xfea230Ee243f88BC698dD8f1aE93F8301B6cdfaE",mainModule:"0xfBf8f1A5E00034762D928f46d438B947f5d4065d",mainModuleUpgradable:"0x4222dcA3974E39A8b41c411FeDDE9b09Ae14b911",walletCreationCode:"0x603a600e3d39601a805130553df3363d3d373d3d3d363d30545af43d82803e903d91601857fd5bf3"};var je=Object.freeze({__proto__:null,config:nce,signature:Xae,context:sce,chained:Yae,coders:ice,version:fD,DeployedWalletContext:dD});function I2(t,e){const r=Ne(De(["bytes","bytes32"],[t.walletCreationCode,rs(t.mainModule,32)])),n=Ne(De(["bytes1","address","bytes32","bytes32"],["0xff",t.factory,e,r]));return Te(st(n,12))}async function oce(t,e,r,n,s,i){return(await Promise.all(kD.map(async a=>{try{const c=a.signature.SignatureCoder.decode(H(r)),l=await a.signature.SignatureCoder.recover(c,{address:t,digest:H(e),chainId:n},s),u=a.config.ConfigCoder.imageHashOf(l.config);if(I2(i[a.version],u).toLowerCase()===t.toLowerCase())return!0;const d=await a.signature.SignatureCoder.recover(c,{address:t,digest:H(e),chainId:n},s),h=a.config.ConfigCoder.imageHashOf(d.config);return I2(i[a.version],h).toLowerCase()===t.toLowerCase()}catch{}return!1}))).some(a=>a)}function ace(t){const e=Object.keys(t).length;for(let r=1;r<=e;r++){const n=t[r];if(!n||n.version!==r)return!1}return!0}function cce(t){const e=Object.keys(t).length;return t[e]}const lce={1:YM,2:dD};var uce=Object.freeze({__proto__:null,addressOf:I2,isValidCounterfactual:oce,isValidVersionedContext:ace,latestContext:cce,defaultContexts:lce});const Jg=`tuple( +`)!==w(this,Q0))throw new Error(`BIP39 Wordlist for ${this.locale} FAILED`);T(this,Kc,r)}return w(this,Kc)};const Hie="0erleonalorenseinceregesticitStanvetearctssi#ch2Athck&tneLl0And#Il.yLeOutO=S|S%b/ra@SurdU'0Ce[Cid|CountCu'Hie=IdOu,-Qui*Ro[TT]T%T*[Tu$0AptDD-tD*[Ju,M.UltV<)Vi)0Rob-0FairF%dRaid0A(EEntRee0Ead0MRRp%tS!_rmBumCoholErtI&LLeyLowMo,O}PhaReadySoT Ways0A>urAz(gOngOuntU'd0Aly,Ch%Ci|G G!GryIm$K!Noun)Nu$O` Sw T&naTiqueXietyY1ArtOlogyPe?P!Pro=Ril1ChCt-EaEnaGueMMedM%MyOundR<+Re,Ri=RowTTefa@Ti,Tw%k0KPe@SaultSetSi,SumeThma0H!>OmTa{T&dT.udeTra@0Ct]D.Gu,NtTh%ToTumn0Era+OcadoOid0AkeA*AyEsomeFulKw?d0Is:ByChel%C#D+GL<)Lc#y~MbooN_{Ad!AftAmA}AshAt AwlAzyEamEd.EekEwI{etImeIspIt-OpO[Ou^OwdUci$UelUi'Umb!Un^UshYY,$2BeLtu*PPbo?dRiousRr|Rta(R=Sh]/omTe3C!:DMa+MpN)Ng R(gShUght WnY3AlBa>BrisCadeCemb CideCl(eC%a>C*a'ErF&'F(eFyG*eLayLiv M3AgramAlAm#dAryCeE'lEtFf G.$Gn.yLemmaNn NosaurRe@RtSag*eScov Sea'ShSmi[S%d Splay/<)V tVideV%)Zzy5Ct%Cum|G~Lph(Ma(Na>NkeyN%OrSeUb!Ve_ftAg#AmaA,-AwEamE[IftIllInkIpI=OpUmY2CkMbNeR(g/T^Ty1Arf1Nam-:G G!RlyRnR`Sily/Sy1HoOlogyOnomy0GeItUca>1F%t0G1GhtTh 2BowD E@r-EgSe0B?kBodyBra)Er+Ot]PloyPow Pty0Ab!A@DD![D%'EmyErgyF%)Ga+G(eH<)JoyLi,OughR-hRollSu*T Ti*TryVelope1Isode0U$Uip0AA'OdeOs]R%Upt0CapeSayS&)Ta>0Ern$H-s1Id&)IlOkeOl=1A@Amp!Ce[Ch<+C.eCludeCu'Ecu>Erci'Hau,Hib.I!I,ItOt-PM&'Mu}Pa@Po'Pro=Pul'0ChCludeComeC*a'DexD-a>Do%Du,ryFN Noc|PutQuirySSue0Em1Ory:CketGu?RZz3AlousAns~yWel9BInKeUr}yY5D+I)MpNg!Ni%Nk/:Ng?oo3EnEpT^upY3CkDD}yNdNgdomSsTT^&TeTt&Wi4EeIfeO{Ow:BBelB%Dd DyKeMpNgua+PtopR+T T(UghUndryVaWWnWsu.Y Zy3Ad AfArnA=Ctu*FtGG$G&dIsu*M#NdNg`NsOp?dSs#Tt Vel3ArB tyBr?yC&'FeFtGhtKeMbM.NkOnQuid/Tt!VeZ?d5AdAnB, C$CkG-NelyNgOpTt yUdUn+VeY$5CkyGga+Mb N?N^Xury3R-s:Ch(eDG-G}tIdIlInJ%KeMm$NNa+Nda>NgoNs]Nu$P!Rb!R^Rg(R(eRketRria+SkSs/ T^T i$ThTrixTt XimumZe3AdowAnAsu*AtCh<-D$DiaLodyLtMb M%yNt]NuRcyR+R.RryShSsa+T$Thod3Dd!DnightLk~]M-NdNimumN%Nu>Rac!Rr%S ySs/akeXXedXtu*5Bi!DelDifyMM|N.%NkeyN, N`OnR$ReRn(gSqu.oTh T]T%Unta(U'VeVie5ChFf(LeLtiplySc!SeumShroomS-/Tu$3Self/ yTh:I=MePk(Rrow/yT]Tu*3ArCkEdGati=G!@I` PhewR=/TTw%kUtr$V WsXt3CeGht5B!I'M(eeOd!Rm$R`SeTab!TeTh(gTi)VelW5C!?Mb R'T:K0EyJe@Li+Scu*S =Ta(Vious0CurEAyEa'Ed+U{UgUn+2EmEtIntL?LeLi)NdNyOlPul?Rt]S.]Ssib!/TatoTt yV tyWd W _@i)Ai'Ed-tEf Epa*Es|EttyEv|I)IdeIm?yIntI%.yIs#Iva>IzeOb!mO)[Odu)Of.OgramOje@Omo>OofOp tyOsp O>@OudOvide2Bl-Dd(g~LpL'Mpk(N^PilPpyR^a'R.yRpo'R'ShTZz!3Ramid:99Al.yAntumArt E,]I{ItIzO>:Bb.Cco#CeCkD?DioIlInI'~yMpN^NdomN+PidReTeTh V&WZ%3AdyAlAs#BelBuildC$lCei=CipeC%dCyc!Du)F!@F%mFu'G]G*tGul?Je@LaxLea'LiefLyMa(Memb M(dMo=Nd NewNtOp&PairPeatPla)P%tQui*ScueSemb!Si,Sour)Sp#'SultTi*T*atTurnUn]Ve$ViewW?d2Y`m0BBb#CeChDeD+F!GhtGidNgOtPp!SkTu$V$V 5AdA,BotBu,CketM<)OfOkieOmSeTa>UghUndU>Y$5Bb DeGLeNNwayR$:DDd!D}[FeIlLadLm#L#LtLu>MeMp!NdTisfyToshiU)Usa+VeY1A!AnA*Att E}HemeHoolI&)I[%sOrp]OutRapRe&RiptRub1AAr^As#AtC#dC*tCt]Cur.yEdEkGm|Le@~M(?Ni%N'Nt&)RiesRvi)Ss]Tt!TupV&_dowAftAllowA*EdEllEriffIeldIftI}IpIv O{OeOotOpOrtOuld O=RimpRugUff!Y0Bl(gCkDeE+GhtGnL|Lk~yLv Mil?Mp!N)NgR&/ Tua>XZe1A>Et^IIllInIrtUll0AbAmEepEnd I)IdeIghtImOgAyEakEelEmEpE*oI{IllIngO{Oma^O}OolOryO=Ra>gyReetRikeR#gRugg!Ud|UffUmb!Y!0Bje@Bm.BwayC)[ChDd&Ff G?G+,ItMm NNnyN'tP PplyP*meReRfa)R+Rpri'RroundR=ySpe@/a(1AllowAmpApArmE?EetIftImIngIt^Ord1MbolMptomRup/em:B!Ck!GIlL|LkNkPeR+tSk/eTtooXi3A^Am~NNGradeHoldOnP Set1BOng::Rd3Ar~ow9UUngU`:3BraRo9NeO",zie="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60";let Bx=null;class fo extends K5{constructor(){super("en",Hie,zie)}static wordlist(){return Bx==null&&(Bx=new fo),Bx}}function e_(t){return(1<=12&&r.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");const n=new Uint8Array(Math.ceil(11*r.length/8));let s=0;for(let l=0;l=0,`invalid mnemonic word at index ${l}`,"mnemonic","[ REDACTED ]");for(let f=0;f<11;f++)u&1<<10-f&&(n[s>>3]|=1<<7-s%8),s++}const i=32*r.length/3,o=r.length/3,a=e_(o),c=Q(Kr(n.slice(0,i/8)))[0]&a;return P(c===(n[n.length-1]&a),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),H(n.slice(0,i/8))}function jx(t,e){P(t.length%4===0&&t.length>=16&&t.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),e==null&&(e=fo.wordlist());const r=[0];let n=11;for(let o=0;o8?(r[r.length-1]<<=8,r[r.length-1]|=t[o],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=t[o]>>8-n,r.push(t[o]&Gie(8-n)),n+=3);const s=t.length/4,i=parseInt(Kr(t).substring(2,4),16)&e_(s);return r[r.length-1]<<=s,r[r.length-1]|=i>>8-s,e.join(r.map(o=>e.getWord(o)))}const Fx={};class xl{constructor(e,r,n,s,i){N(this,"phrase");N(this,"password");N(this,"wordlist");N(this,"entropy");s==null&&(s=""),i==null&&(i=fo.wordlist()),yo(e,Fx,"Mnemonic"),fe(this,{phrase:n,password:s,wordlist:i,entropy:r})}computeSeed(){const e=mt("mnemonic"+this.password,"NFKD");return bi(mt(this.phrase,"NFKD"),e,2048,64,"sha512")}static fromPhrase(e,r,n){const s=Lx(e,n);return e=jx(Q(s),n),new xl(Fx,s,e,r,n)}static fromEntropy(e,r,n){const s=Q(e,"entropy"),i=jx(s,n);return new xl(Fx,H(s),i,r,n)}static entropyToPhrase(e,r){const n=Q(e,"entropy");return jx(n,r)}static phraseToEntropy(e,r){return Lx(e,r)}static isValidMnemonic(e,r){try{return Lx(e,r),!0}catch{}return!1}}/*! MIT License. Copyright 2015-2022 Richard Moore . See LICENSE.txt. */var ar=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Ux=function(t,e,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(t,r):s?s.value=r:e.set(t,r),r},iy,jn,Hs;const qie={16:10,24:12,32:14},Kie=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],Bn=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],Ep=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],Qie=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],Jie=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],Yie=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],Xie=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],Zie=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],eoe=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],toe=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],roe=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],noe=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],soe=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],ioe=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],ooe=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function $x(t){const e=[];for(let r=0;r>2,ar(this,Hs,"f")[o][u%4]=i[u],ar(this,jn,"f")[r-o][u%4]=i[u];let a=0,c=s,l;for(;c>16&255]<<24^Bn[l>>8&255]<<16^Bn[l&255]<<8^Bn[l>>24&255]^Kie[a]<<24,a+=1,s!=8)for(let h=1;h>8&255]<<8^Bn[l>>16&255]<<16^Bn[l>>24&255]<<24;for(let h=s/2+1;h>2,d=c%4,ar(this,Hs,"f")[f][d]=i[u],ar(this,jn,"f")[r-f][d]=i[u++],c++}for(let u=1;u>24&255]^soe[l>>16&255]^ioe[l>>8&255]^ooe[l&255]}encrypt(e){if(e.length!=16)throw new TypeError("invalid plaintext size (must be 16 bytes)");const r=ar(this,Hs,"f").length-1,n=[0,0,0,0];let s=$x(e);for(let a=0;a<4;a++)s[a]^=ar(this,Hs,"f")[0][a];for(let a=1;a>24&255]^Jie[s[(c+1)%4]>>16&255]^Yie[s[(c+2)%4]>>8&255]^Xie[s[(c+3)%4]&255]^ar(this,Hs,"f")[a][c];s=n.slice()}const i=new Uint8Array(16);let o=0;for(let a=0;a<4;a++)o=ar(this,Hs,"f")[r][a],i[4*a]=(Bn[s[a]>>24&255]^o>>24)&255,i[4*a+1]=(Bn[s[(a+1)%4]>>16&255]^o>>16)&255,i[4*a+2]=(Bn[s[(a+2)%4]>>8&255]^o>>8)&255,i[4*a+3]=(Bn[s[(a+3)%4]&255]^o)&255;return i}decrypt(e){if(e.length!=16)throw new TypeError("invalid ciphertext size (must be 16 bytes)");const r=ar(this,jn,"f").length-1,n=[0,0,0,0];let s=$x(e);for(let a=0;a<4;a++)s[a]^=ar(this,jn,"f")[0][a];for(let a=1;a>24&255]^eoe[s[(c+3)%4]>>16&255]^toe[s[(c+2)%4]>>8&255]^roe[s[(c+1)%4]&255]^ar(this,jn,"f")[a][c];s=n.slice()}const i=new Uint8Array(16);let o=0;for(let a=0;a<4;a++)o=ar(this,jn,"f")[r][a],i[4*a]=(Ep[s[a]>>24&255]^o>>24)&255,i[4*a+1]=(Ep[s[(a+3)%4]>>16&255]^o>>16)&255,i[4*a+2]=(Ep[s[(a+2)%4]>>8&255]^o>>8)&255,i[4*a+3]=(Ep[s[(a+1)%4]&255]^o)&255;return i}}iy=new WeakMap,jn=new WeakMap,Hs=new WeakMap;class t_{constructor(e,r,n){if(n&&!(this instanceof n))throw new Error(`${e} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new Q5(r)},name:{enumerable:!0,value:e}})}}var kp=function(t,e,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(t,r):s?s.value=r:e.set(t,r),r},Ul=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},oh,Ei;class J5 extends t_{constructor(e,r){if(super("ECC",e,J5),oh.set(this,void 0),Ei.set(this,void 0),r){if(r.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");kp(this,oh,new Uint8Array(r),"f")}else kp(this,oh,new Uint8Array(16),"f");kp(this,Ei,this.iv,"f")}get iv(){return new Uint8Array(Ul(this,oh,"f"))}encrypt(e){if(e.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const r=new Uint8Array(e.length);for(let n=0;nNumber.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let r=15;r>=0;--r)Ln(this,Fn,"f")[r]=e%256,e=Math.floor(e/256)}setCounterBytes(e){if(e.length!==16)throw new TypeError("invalid counter initial Uint8Array value length");Ln(this,Fn,"f").set(e)}increment(){for(let e=15;e>=0;e--)if(Ln(this,Fn,"f")[e]===255)Ln(this,Fn,"f")[e]=0;else{Ln(this,Fn,"f")[e]++;break}}encrypt(e){var r,n;const s=new Uint8Array(e);for(let i=0;i16)throw new TypeError("PKCS#7 padding byte out of range");const r=t.length-e;for(let n=0;n0&&(n&n-1)===0,"invalid kdf.N","kdf.N",n),P(s>0&&i>0,"invalid kdf","kdf",e);const o=Rt(t,"crypto.kdfparams.dklen:int!");return P(o===32,"invalid kdf.dklen","kdf.dflen",o),{name:"scrypt",salt:r,N:n,r:s,p:i,dkLen:64}}else if(e.toLowerCase()==="pbkdf2"){const r=Rt(t,"crypto.kdfparams.salt:data!"),n=Rt(t,"crypto.kdfparams.prf:string!"),s=n.split("-").pop();P(s==="sha256"||s==="sha512","invalid kdf.pdf","kdf.pdf",n);const i=Rt(t,"crypto.kdfparams.c:int!"),o=Rt(t,"crypto.kdfparams.dklen:int!");return P(o===32,"invalid kdf.dklen","kdf.dklen",o),{name:"pbkdf2",salt:r,count:i,dkLen:o,algorithm:s}}}P(!1,"unsupported key-derivation function","kdf",e)}function i_(t,e){const r=JSON.parse(t),n=A1(e),s=s_(r);if(s.name==="pbkdf2"){const{salt:f,count:d,dkLen:h,algorithm:y}=s,p=bi(n,f,d,h,y);return pv(r,p)}z(s.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:s});const{salt:i,N:o,r:a,p:c,dkLen:l}=s,u=Ga(n,i,o,a,c,l);return pv(r,u)}function i3(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}async function o_(t,e,r){const n=JSON.parse(t),s=A1(e),i=s_(n);if(i.name==="pbkdf2"){r&&(r(0),await i3(0));const{salt:d,count:h,dkLen:y,algorithm:p}=i,b=bi(s,d,h,y,p);return r&&(r(1),await i3(0)),pv(n,b)}z(i.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:i});const{salt:o,N:a,r:c,p:l,dkLen:u}=i,f=await za(s,o,a,c,l,u,r);return pv(n,f)}function a_(t){const e=t.salt!=null?Q(t.salt,"options.salt"):Rr(32);let r=1<<17,n=8,s=1;return t.scrypt&&(t.scrypt.N&&(r=t.scrypt.N),t.scrypt.r&&(n=t.scrypt.r),t.scrypt.p&&(s=t.scrypt.p)),P(typeof r=="number"&&r>0&&Number.isSafeInteger(r)&&(BigInt(r)&BigInt(r-1))===BigInt(0),"invalid scrypt N parameter","options.N",r),P(typeof n=="number"&&n>0&&Number.isSafeInteger(n),"invalid scrypt r parameter","options.r",n),P(typeof s=="number"&&s>0&&Number.isSafeInteger(s),"invalid scrypt p parameter","options.p",s),{name:"scrypt",dkLen:32,salt:e,N:r,r:n,p:s}}function c_(t,e,r,n){const s=Q(r.privateKey,"privateKey"),i=n.iv!=null?Q(n.iv,"options.iv"):Rr(16);P(i.length===16,"invalid options.iv length","options.iv",n.iv);const o=n.uuid!=null?Q(n.uuid,"options.uuid"):Rr(16);P(o.length===16,"invalid options.uuid length","options.uuid",n.iv);const a=t.slice(0,16),c=t.slice(16,32),l=new rd(a,i),u=Q(l.encrypt(s)),f=Ne(Le([c,u])),d={address:r.address.substring(2).toLowerCase(),id:kR(o),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:H(i).substring(2)},ciphertext:H(u).substring(2),kdf:"scrypt",kdfparams:{salt:H(e.salt).substring(2),n:e.N,dklen:32,p:e.p,r:e.r},mac:f.substring(2)}};if(r.mnemonic){const h=n.client!=null?n.client:`ethers/${u5}`,y=r.mnemonic.path||n_,p=r.mnemonic.locale||"en",b=t.slice(32,64),v=Q(r.mnemonic.entropy,"account.mnemonic.entropy"),g=Rr(16),x=new rd(b,g),k=Q(x.encrypt(v)),S=new Date,R="UTC--"+(S.getUTCFullYear()+"-"+Wd(S.getUTCMonth()+1,2)+"-"+Wd(S.getUTCDate(),2)+"T"+Wd(S.getUTCHours(),2)+"-"+Wd(S.getUTCMinutes(),2)+"-"+Wd(S.getUTCSeconds(),2)+".0Z")+"--"+d.address;d["x-ethers"]={client:h,gethFilename:R,path:y,locale:p,mnemonicCounter:H(g).substring(2),mnemonicCiphertext:H(k).substring(2),version:"0.1"}}return JSON.stringify(d)}function Y5(t,e,r){r==null&&(r={});const n=A1(e),s=a_(r),i=Ga(n,s.salt,s.N,s.r,s.p,64);return c_(Q(i),s,t,r)}async function X5(t,e,r){r==null&&(r={});const n=A1(e),s=a_(r),i=await za(n,s.salt,s.N,s.r,s.p,64,r.progressCallback);return c_(Q(i),s,t,r)}const oy="m/44'/60'/0'/0/0",loe=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),pi=2147483648,uoe=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),foe="0123456789abcdef";function yv(t,e){let r="";for(;t;)r=foe[t%16]+r,t=Math.trunc(t/16);for(;r.length=0;o-=8)s[33+(o>>3)]=t>>24-o&255;const i=Q(Va("sha512",e,s));return{IL:i.slice(0,32),IR:i.slice(32)}}function u_(t,e){const r=e.split("/");P(r.length>0,"invalid path","path",e),r[0]==="m"&&(P(t.depth===0,`cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${t.depth}`,"path",e),r.shift());let n=t;for(let s=0;s=16&&s.length<=64,"invalid seed","seed","[REDACTED]");const i=Q(Va("sha512",loe,s)),o=new Rs(H(i.slice(0,32)));return new hs(qs,o,"0x00000000",H(i.slice(32)),"m",0,0,n,null)},j(hs,Qc);let Mu=hs;class nd extends fv{constructor(r,n,s,i,o,a,c,l,u){super(n,u);N(this,"publicKey");N(this,"fingerprint");N(this,"parentFingerprint");N(this,"chainCode");N(this,"path");N(this,"index");N(this,"depth");yo(r,qs,"HDNodeVoidWallet"),fe(this,{publicKey:s});const f=st(Ha(Kr(s)),0,4);fe(this,{publicKey:s,fingerprint:f,parentFingerprint:i,chainCode:o,path:a,index:c,depth:l})}connect(r){return new nd(qs,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,r)}get extendedKey(){return z(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),g2(Le(["0x0488B21E",yv(this.depth,1),this.parentFingerprint,yv(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return this.path!=null}deriveChild(r){const n=Pe(r,"index");P(n<=4294967295,"invalid index","index",n);let s=this.path;s&&(s+="/"+(n&~pi),n&pi&&(s+="'"));const{IR:i,IL:o}=l_(n,this.chainCode,this.publicKey,null),a=Rs.addPoints(o,this.publicKey,!0),c=wd(a);return new nd(qs,c,a,this.fingerprint,H(i),s,n,this.depth+1,this.provider)}derivePath(r){return u_(this,r)}}function doe(t){const e=Pe(t,"index");return P(e>=0&&e=0&&e{setTimeout(()=>{e()},t)})}var X0,ui,w2;let f_=(ui=class extends P0{constructor(e,r){typeof e=="string"&&!e.startsWith("0x")&&(e="0x"+e);let n=typeof e=="string"?new Rs(e):e;super(n,r)}connect(e){return new ui(this.signingKey,e)}async encrypt(e,r){const n={address:this.address,privateKey:this.privateKey};return await X5(n,e,{progressCallback:r})}encryptSync(e){const r={address:this.address,privateKey:this.privateKey};return Y5(r,e)}static async fromEncryptedJson(e,r,n){var i;let s=null;return v2(e)?s=await o_(e,r,n):x2(e)&&(n&&(n(0),await o3(0)),s=b2(e,r),n&&(n(1),await o3(0))),Y(i=ui,X0,w2).call(i,s)}static fromEncryptedJsonSync(e,r){var s;let n=null;return v2(e)?n=i_(e,r):x2(e)?n=b2(e,r):P(!1,"invalid JSON wallet","json","[ REDACTED ]"),Y(s=ui,X0,w2).call(s,n)}static createRandom(e){const r=Mu.createRandom();return e?r.connect(e):r}static fromPhrase(e,r){const n=Mu.fromPhrase(e);return r?n.connect(r):n}},X0=new WeakSet,w2=function(e){if(P(e,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in e&&e.mnemonic&&e.mnemonic.locale==="en"){const n=xl.fromEntropy(e.mnemonic.entropy),s=Mu.fromMnemonic(n,e.mnemonic.path);if(s.address===e.address&&s.privateKey===e.privateKey)return s;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}const r=new ui(e.privateKey);return P(r.address===e.address,"address/privateKey mismatch","json","[ REDACTED ]"),r},j(ui,X0),ui);const poe=")!@#$%^&*(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_";function yoe(t,e){const r=(1<=t;){const c=s>>i-t;s&=(1<{const s=n.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);P(s!==null,"internal error parsing accents","accents",e);let i=0;const o=yoe(parseInt(s[3]),s[4]),a=parseInt(s[2]),c=new RegExp(`([${s[1]}])`,"g");r=r.replace(c,(l,u)=>(--o[i]===0&&(u=String.fromCharCode(u.charCodeAt(0),a),i++),u))}),r.split(",")}var Z0;class goe extends K5{constructor(r,n,s,i){super(r,n,i);j(this,Z0);T(this,Z0,s)}get _accent(){return w(this,Z0)}_decodeWords(){return voe(this._data,this._accent)}}Z0=new WeakMap;const moe={en:fo.wordlist()},xoe=Object.freeze(Object.defineProperty({__proto__:null,AbiCoder:Kt,AbstractProvider:lo,AbstractSigner:uo,AlchemyProvider:A0,AnkrProvider:k0,BaseContract:Zf,BaseWallet:P0,Block:b7,BrowserProvider:Fie,ChainstackProvider:S0,CloudflareProvider:U7,ConstructorFragment:ci,Contract:dn,ContractEventPayload:k7,ContractFactory:W5,ContractTransactionReceipt:E7,ContractTransactionResponse:Wg,ContractUnknownEventPayload:F5,EnsPlugin:k1,EnsResolver:C0,ErrorDescription:m7,ErrorFragment:Vr,EtherSymbol:Wre,EtherscanPlugin:G5,EtherscanProvider:W7,EventFragment:As,EventLog:$g,EventPayload:p5,FallbackFragment:si,FallbackProvider:K7,FeeData:Qw,FeeDataNetworkPlugin:Xw,FetchCancelSignal:xR,FetchRequest:qt,FetchResponse:Zi,FetchUrlFeeDataNetworkPlugin:D7,FixedNumber:y0,Fragment:_a,FunctionFragment:Ss,GasCostPlugin:E1,HDNodeVoidWallet:nd,HDNodeWallet:Mu,Indexed:Kw,InfuraProvider:td,InfuraWebSocketProvider:q7,Interface:pt,IpcSocketProvider:$ie,JsonRpcApiProvider:z5,JsonRpcProvider:zt,JsonRpcSigner:ny,LangEn:fo,Log:Cd,LogDescription:v7,MaxInt256:$re,MaxUint256:TN,MessagePrefix:PN,MinInt256:Ure,Mnemonic:xl,MulticoinProviderPlugin:R7,N:jre,NamedFragment:w1,Network:ot,NetworkPlugin:Ka,NonceManager:p2,ParamType:or,PocketProvider:dv,QuickNodeProvider:T0,Result:pl,Signature:os,SigningKey:Rs,SocketBlockSubscriber:V7,SocketEventSubscriber:z7,SocketPendingSubscriber:H7,SocketProvider:G7,SocketSubscriber:zg,StructFragment:wa,Transaction:vl,TransactionDescription:g7,TransactionReceipt:L5,TransactionResponse:Xf,Typed:gr,TypedDataEncoder:Bs,UndecodedEventLog:j5,UnmanagedSubscriber:E0,Utf8ErrorFuncs:hR,VoidSigner:fv,Wallet:f_,WebSocketProvider:q5,WeiPerEther:Fre,Wordlist:Z7,WordlistOwl:K5,WordlistOwlA:goe,ZeroAddress:xi,ZeroHash:yl,accessListify:go,assert:z,assertArgument:P,assertArgumentCount:f5,assertNormalize:d5,assertPrivate:yo,checkResultErrors:nte,computeAddress:wd,computeHmac:Va,concat:Le,copyRequest:Yf,dataLength:ba,dataSlice:st,decodeBase58:lR,decodeBase64:uR,decodeBytes32String:_se,decodeRlp:g1,decryptCrowdsaleJson:b2,decryptKeystoreJson:o_,decryptKeystoreJsonSync:i_,defaultPath:oy,defineProperties:fe,dnsEncode:t7,encodeBase58:h5,encodeBase64:fR,encodeBytes32String:Nse,encodeRlp:Na,encryptKeystoreJson:X5,encryptKeystoreJsonSync:Y5,ensNormalize:e7,formatEther:tte,formatUnits:ER,fromTwos:p0,getAccountPath:doe,getAddress:Te,getBigInt:ve,getBytes:Q,getBytesCopy:tr,getCreate2Address:Qre,getCreateAddress:P5,getDefaultProvider:jie,getIcapAddress:Kre,getIndexedAccountPath:hoe,getNumber:Pe,getUint:v1,hashMessage:Fg,hexlify:H,id:Qr,isAddress:ON,isAddressable:I5,isBytesLike:mi,isCallException:Ig,isCrowdsaleJson:x2,isError:Ht,isHexString:et,isKeystoreJson:v2,isValidName:zne,keccak256:Ne,lock:Vre,makeError:ft,mask:ca,namehash:lv,parseEther:Rw,parseUnits:nv,pbkdf2:bi,randomBytes:Rr,recoverAddress:Jf,resolveAddress:sr,resolveProperties:Pt,ripemd160:Ha,scrypt:za,scryptSync:Ga,sha256:Kr,sha512:m1,showThrottleMessage:Qa,solidityPacked:De,solidityPackedKeccak256:eo,solidityPackedSha256:lse,stripZerosLeft:jee,toBeArray:rr,toBeHex:In,toBigInt:xd,toNumber:cR,toQuantity:pr,toTwos:Ng,toUtf8Bytes:mt,toUtf8CodePoints:Hee,toUtf8String:Ds,uuidV4:kR,verifyMessage:r7,verifyTypedData:vse,version:u5,wordlists:moe,zeroPadBytes:Og,zeroPadValue:rs},Symbol.toStringTag,{value:"Module"})),boe=[{inputs:[{internalType:"bytes32",type:"bytes32"}],name:"getAlternativeSignature",outputs:[{internalType:"string",type:"string"}],stateMutability:"view",type:"function"}];var woe=Object.freeze({__proto__:null,abi:boe});const Coe=[{type:"function",name:"isValidSignature",constant:!0,inputs:[{type:"bytes32"},{type:"bytes"}],outputs:[{type:"bytes4"}],payable:!1,stateMutability:"view"}],Eoe={isValidSignatureBytes32:"0x1626ba7e"};var koe=Object.freeze({__proto__:null,abi:Coe,returns:Eoe});const Aoe=[{inputs:[{internalType:"bytes",name:"error",type:"bytes"}],name:"ERC1271Revert",type:"error"},{inputs:[{internalType:"bytes",name:"error",type:"bytes"}],name:"ERC6492DeployFailed",type:"error"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSig",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"},{internalType:"bool",name:"allowSideEffects",type:"bool"},{internalType:"bool",name:"deployAlreadyDeployed",type:"bool"}],name:"isValidSigImpl",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSigNoThrow",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSigWithSideEffects",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSigWithSideEffectsNoThrow",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}];var Soe=Object.freeze({__proto__:null,abi:Aoe});const Toe=[{type:"function",name:"deploy",constant:!1,inputs:[{type:"address"},{type:"bytes32"}],outputs:[],payable:!0,stateMutability:"payable"}];var Poe=Object.freeze({__proto__:null,abi:Toe});const Ioe=[{type:"function",name:"nonce",constant:!0,inputs:[],outputs:[{type:"uint256"}],payable:!1,stateMutability:"view"},{type:"function",name:"readNonce",constant:!0,inputs:[{type:"uint256"}],outputs:[{type:"uint256"}],payable:!1,stateMutability:"view"},{type:"function",name:"updateImplementation",constant:!1,inputs:[{type:"address"}],outputs:[],payable:!1,stateMutability:"nonpayable"},{type:"function",name:"selfExecute",constant:!1,inputs:[{components:[{type:"bool",name:"delegateCall"},{type:"bool",name:"revertOnError"},{type:"uint256",name:"gasLimit"},{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}],type:"tuple[]"}],outputs:[],payable:!1,stateMutability:"nonpayable"},{type:"function",name:"execute",constant:!1,inputs:[{components:[{type:"bool",name:"delegateCall"},{type:"bool",name:"revertOnError"},{type:"uint256",name:"gasLimit"},{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}],type:"tuple[]"},{type:"uint256"},{type:"bytes"}],outputs:[],payable:!1,stateMutability:"nonpayable"},{type:"function",name:"createContract",inputs:[{type:"bytes"}],payable:!0,stateMutability:"payable"},{type:"function",name:"setExtraImageHash",constant:!1,inputs:[{type:"bytes32",name:"imageHash"},{type:"uint256",name:"expiration"}],outputs:[],payable:!1,stateMutability:"nonpayable"}];var Ooe=Object.freeze({__proto__:null,abi:Ioe});const Roe=[{type:"function",name:"updateImageHash",constant:!0,inputs:[{type:"bytes32"}],outputs:[],payable:!1,stateMutability:"view"},{type:"function",name:"imageHash",constant:!0,inputs:[],outputs:[{type:"bytes32"}],payable:!1,stateMutability:"view"}];var Noe=Object.freeze({__proto__:null,abi:Roe});const _oe=[{inputs:[{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_mainModule",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_wallet",type:"address"},{indexed:!0,internalType:"bytes32",name:"_imageHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"_threshold",type:"uint256"},{indexed:!1,internalType:"bytes",name:"_signers",type:"bytes"}],name:"RequiredConfig",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_wallet",type:"address"},{indexed:!0,internalType:"address",name:"_signer",type:"address"}],name:"RequiredSigner",type:"event"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callBalanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callBlockNumber",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_i",type:"uint256"}],name:"callBlockhash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"callChainId",outputs:[{internalType:"uint256",name:"id",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callCode",outputs:[{internalType:"bytes",name:"code",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callCodeHash",outputs:[{internalType:"bytes32",name:"codeHash",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callCodeSize",outputs:[{internalType:"uint256",name:"size",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callCoinbase",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"callDifficulty",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callGasLeft",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callGasLimit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callGasPrice",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callOrigin",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"callTimestamp",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"knownImageHashes",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"lastImageHashUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"lastSignerUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"lastWalletUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bool",name:"delegateCall",type:"bool"},{internalType:"bool",name:"revertOnError",type:"bool"},{internalType:"uint256",name:"gasLimit",type:"uint256"},{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct IModuleCalls.Transaction[]",name:"_txs",type:"tuple[]"}],name:"multiCall",outputs:[{internalType:"bool[]",name:"_successes",type:"bool[]"},{internalType:"bytes[]",name:"_results",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"},{components:[{internalType:"uint256",name:"weight",type:"uint256"},{internalType:"address",name:"signer",type:"address"}],internalType:"struct RequireUtils.Member[]",name:"_members",type:"tuple[]"},{internalType:"bool",name:"_index",type:"bool"}],name:"publishConfig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"uint256",name:"_sizeMembers",type:"uint256"},{internalType:"bytes",name:"_signature",type:"bytes"},{internalType:"bool",name:"_index",type:"bool"}],name:"publishInitialSigners",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"requireMinNonce",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_expiration",type:"uint256"}],name:"requireNonExpired",outputs:[],stateMutability:"view",type:"function"}];var Moe=Object.freeze({__proto__:null,abi:_oe});const Doe=[{inputs:[{internalType:"address",name:"",type:"address"}],name:"requireFreshSigner",outputs:[],stateMutability:"nonpayable",type:"function"}];var Boe=Object.freeze({__proto__:null,abi:Doe});const Gt={erc6492:Soe,erc5719:woe,erc1271:koe,factory:Poe,mainModule:Ooe,mainModuleUpgradable:Noe,sequenceUtils:Moe,requireFreshSigner:Boe},Loe=Object.freeze(Object.defineProperty({__proto__:null,walletContracts:Gt},Symbol.toStringTag,{value:"Module"}));function vv(){return vv=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),Ee({},n,s)).then(i=>ke(i).then(o=>({status:o.status})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),Ee({},n,s)).then(i=>ke(i).then(o=>({version:o.version})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),Ee({},n,s)).then(i=>ke(i).then(o=>({status:o.status})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.clock=(n,s)=>this.fetch(this.url("Clock"),Ee({},n,s)).then(i=>ke(i).then(o=>({serverTime:o.serverTime})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.getSequenceContext=(n,s)=>this.fetch(this.url("GetSequenceContext"),Ee({},n,s)).then(i=>ke(i).then(o=>({data:o.data})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.getAuthToken=(n,s,i)=>this.fetch(this.url("GetAuthToken"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,jwtToken:a.jwtToken,address:a.address,user:a.user})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getAuthToken2=(n,s,i)=>this.fetch(this.url("GetAuthToken2"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,jwtToken:a.jwtToken,address:a.address,user:a.user})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.sendPasswordlessLink=(n,s,i)=>this.fetch(this.url("SendPasswordlessLink"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.friendList=(n,s,i)=>this.fetch(this.url("FriendList"),Ee(n,s,i)).then(o=>ke(o).then(a=>({page:a.page,friends:a.friends})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getFriendByAddress=(n,s,i)=>this.fetch(this.url("GetFriendByAddress"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,friend:a.friend})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.searchFriends=(n,s,i)=>this.fetch(this.url("SearchFriends"),Ee(n,s,i)).then(o=>ke(o).then(a=>({friends:a.friends})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.addFriend=(n,s,i)=>this.fetch(this.url("AddFriend"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,friend:a.friend})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.updateFriendNickname=(n,s,i)=>this.fetch(this.url("UpdateFriendNickname"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,friend:a.friend})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.removeFriend=(n,s,i)=>this.fetch(this.url("RemoveFriend"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.contractCall=(n,s,i)=>this.fetch(this.url("ContractCall"),Ee(n,s,i)).then(o=>ke(o).then(a=>({returns:a.returns})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.decodeContractCall=(n,s,i)=>this.fetch(this.url("DecodeContractCall"),Ee(n,s,i)).then(o=>ke(o).then(a=>({call:a.call})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.lookupContractCallSelectors=(n,s,i)=>this.fetch(this.url("LookupContractCallSelectors"),Ee(n,s,i)).then(o=>ke(o).then(a=>({signatures:a.signatures})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.userStorageFetch=(n,s,i)=>this.fetch(this.url("UserStorageFetch"),Ee(n,s,i)).then(o=>ke(o).then(a=>({object:a.object})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.userStorageSave=(n,s,i)=>this.fetch(this.url("UserStorageSave"),Ee(n,s,i)).then(o=>ke(o).then(a=>({ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.userStorageDelete=(n,s,i)=>this.fetch(this.url("UserStorageDelete"),Ee(n,s,i)).then(o=>ke(o).then(a=>({ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.userStorageFetchAll=(n,s,i)=>this.fetch(this.url("UserStorageFetchAll"),Ee(n,s,i)).then(o=>ke(o).then(a=>({objects:a.objects})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getMoonpayLink=(n,s,i)=>this.fetch(this.url("GetMoonpayLink"),Ee(n,s,i)).then(o=>ke(o).then(a=>({signedUrl:a.signedUrl})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getSardineClientToken=(n,s)=>this.fetch(this.url("GetSardineClientToken"),Ee({},n,s)).then(i=>ke(i).then(o=>({token:o.token})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.getSardineNFTCheckoutToken=(n,s,i)=>this.fetch(this.url("GetSardineNFTCheckoutToken"),Ee(n,s,i)).then(o=>ke(o).then(a=>({resp:a.resp})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getSardineNFTCheckoutOrderStatus=(n,s,i)=>this.fetch(this.url("GetSardineNFTCheckoutOrderStatus"),Ee(n,s,i)).then(o=>ke(o).then(a=>({resp:a.resp})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.resolveENSAddress=(n,s,i)=>this.fetch(this.url("ResolveENSAddress"),Ee(n,s,i)).then(o=>ke(o).then(a=>({address:a.address,ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.isValidSignature=(n,s,i)=>this.fetch(this.url("IsValidSignature"),Ee(n,s,i)).then(o=>ke(o).then(a=>({isValid:a.isValid})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.isValidMessageSignature=(n,s,i)=>this.fetch(this.url("IsValidMessageSignature"),Ee(n,s,i)).then(o=>ke(o).then(a=>({isValid:a.isValid})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.isValidTypedDataSignature=(n,s,i)=>this.fetch(this.url("IsValidTypedDataSignature"),Ee(n,s,i)).then(o=>ke(o).then(a=>({isValid:a.isValid})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.isValidETHAuthProof=(n,s,i)=>this.fetch(this.url("IsValidETHAuthProof"),Ee(n,s,i)).then(o=>ke(o).then(a=>({isValid:a.isValid})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getCoinPrices=(n,s,i)=>this.fetch(this.url("GetCoinPrices"),Ee(n,s,i)).then(o=>ke(o).then(a=>({tokenPrices:a.tokenPrices})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getCollectiblePrices=(n,s,i)=>this.fetch(this.url("GetCollectiblePrices"),Ee(n,s,i)).then(o=>ke(o).then(a=>({tokenPrices:a.tokenPrices})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getExchangeRate=(n,s,i)=>this.fetch(this.url("GetExchangeRate"),Ee(n,s,i)).then(o=>ke(o).then(a=>({exchangeRate:a.exchangeRate})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.memoryStore=(n,s,i)=>this.fetch(this.url("MemoryStore"),Ee(n,s,i)).then(o=>ke(o).then(a=>({ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.memoryLoad=(n,s,i)=>this.fetch(this.url("MemoryLoad"),Ee(n,s,i)).then(o=>ke(o).then(a=>({value:a.value})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getInviteInfo=(n,s)=>this.fetch(this.url("GetInviteInfo"),Ee({},n,s)).then(i=>ke(i).then(o=>({inviteInfo:o.inviteInfo})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.isValidAccessCode=(n,s,i)=>this.fetch(this.url("IsValidAccessCode"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.internalClaimAccessCode=(n,s,i)=>this.fetch(this.url("InternalClaimAccessCode"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.blockNumberAtTime=(n,s,i)=>this.fetch(this.url("BlockNumberAtTime"),Ee(n,s,i)).then(o=>ke(o).then(a=>({blocks:a.blocks})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.paperSessionSecret=(n,s,i)=>this.fetch(this.url("PaperSessionSecret"),Ee(n,s,i)).then(o=>ke(o).then(a=>({secret:a.secret})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.paperSessionSecret2=(n,s,i)=>this.fetch(this.url("PaperSessionSecret2"),Ee(n,s,i)).then(o=>ke(o).then(a=>({secret:a.secret})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.linkWallet=(n,s,i)=>this.fetch(this.url("LinkWallet"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,linkedWalletAddress:a.linkedWalletAddress})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getLinkedWallets=(n,s,i)=>this.fetch(this.url("GetLinkedWallets"),Ee(n,s,i)).then(o=>ke(o).then(a=>({linkedWallets:a.linkedWallets})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.removeLinkedWallet=(n,s,i)=>this.fetch(this.url("RemoveLinkedWallet"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.generateWaaSVerificationURL=(n,s,i)=>this.fetch(this.url("GenerateWaaSVerificationURL"),Ee(n,s,i)).then(o=>ke(o).then(a=>({nonce:a.nonce,verificationURL:a.verificationURL})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.validateWaaSVerificationNonce=(n,s,i)=>this.fetch(this.url("ValidateWaaSVerificationNonce"),Ee(n,s,i)).then(o=>ke(o).then(a=>({walletAddress:a.walletAddress})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getSwapQuotes=(n,s,i)=>this.fetch(this.url("GetSwapQuotes"),Ee(n,s,i)).then(o=>ke(o).then(a=>({swapQuotes:a.swapQuotes})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.addCurrencyGroup=(n,s,i)=>this.fetch(this.url("AddCurrencyGroup"),Ee(n,s,i)).then(o=>ke(o).then(a=>({groupId:a.groupId})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.updateCurrencyGroup=(n,s,i)=>this.fetch(this.url("UpdateCurrencyGroup"),Ee(n,s,i)).then(o=>ke(o).then(a=>({})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.listCurrencyGroups=(n,s)=>this.fetch(this.url("ListCurrencyGroups"),Ee({},n,s)).then(i=>ke(i).then(o=>({currencyGroups:o.currencyGroups})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.deleteCurrencyGroup=(n,s,i)=>this.fetch(this.url("DeleteCurrencyGroup"),Ee(n,s,i)).then(o=>ke(o).then(a=>({ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.addInventoryPaymentConfig=(n,s,i)=>this.fetch(this.url("AddInventoryPaymentConfig"),Ee(n,s,i)).then(o=>ke(o).then(a=>({configId:a.configId})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getInventoryPaymentConfig=(n,s,i)=>this.fetch(this.url("GetInventoryPaymentConfig"),Ee(n,s,i)).then(o=>ke(o).then(a=>({config:a.config})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.listInventoryPaymentConfigs=(n,s,i)=>this.fetch(this.url("ListInventoryPaymentConfigs"),Ee(n,s,i)).then(o=>ke(o).then(a=>({configs:a.configs})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.updateInventoryPaymentConfig=(n,s,i)=>this.fetch(this.url("UpdateInventoryPaymentConfig"),Ee(n,s,i)).then(o=>ke(o).then(a=>({})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.deleteInventoryPaymentConfig=(n,s,i)=>this.fetch(this.url("DeleteInventoryPaymentConfig"),Ee(n,s,i)).then(o=>ke(o).then(a=>({ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.requestInventoryPayment=(n,s,i)=>this.fetch(this.url("RequestInventoryPayment"),Ee(n,s,i)).then(o=>ke(o).then(a=>({payment:a.payment})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const Ee=(t={},e={},r=null)=>({method:"POST",headers:vv({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),ke=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),Z5.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(Hoe[n]||Ot).new(r)}return r});let Ot=class h_ extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,h_.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},p_=class y_ extends Ot{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,y_.prototype)}},xe=class v_ extends Ot{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,v_.prototype)}},g_=class m_ extends Ot{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,m_.prototype)}},x_=class b_ extends Ot{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,b_.prototype)}},w_=class C_ extends Ot{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,C_.prototype)}},Z5=class E_ extends Ot{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,E_.prototype)}},k_=class A_ extends Ot{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,A_.prototype)}},S_=class T_ extends Ot{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,T_.prototype)}},P_=class I_ extends Ot{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,I_.prototype)}},O_=class R_ extends Ot{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,R_.prototype)}},N_=class __ extends Ot{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,__.prototype)}},M_=class D_ extends Ot{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,D_.prototype)}},B_=class L_ extends Ot{constructor(e="PermissionDenied",r=1001,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,L_.prototype)}},j_=class F_ extends Ot{constructor(e="SessionExpired",r=1002,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,F_.prototype)}},U_=class $_ extends Ot{constructor(e="Aborted",r=1005,n="Request aborted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,$_.prototype)}},W_=class V_ extends Ot{constructor(e="Geoblocked",r=1006,n="Geoblocked region",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,V_.prototype)}},H_=class z_ extends Ot{constructor(e="InvalidArgument",r=2e3,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,z_.prototype)}},G_=class q_ extends Ot{constructor(e="Unavailable",r=2002,n="Unavailable resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,q_.prototype)}},K_=class Q_ extends Ot{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Q_.prototype)}},J_=class Y_ extends Ot{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Y_.prototype)}},Voe=function(t){return t.WebrpcEndpoint="WebrpcEndpoint",t.WebrpcRequestFailed="WebrpcRequestFailed",t.WebrpcBadRoute="WebrpcBadRoute",t.WebrpcBadMethod="WebrpcBadMethod",t.WebrpcBadRequest="WebrpcBadRequest",t.WebrpcBadResponse="WebrpcBadResponse",t.WebrpcServerPanic="WebrpcServerPanic",t.WebrpcInternalError="WebrpcInternalError",t.WebrpcClientDisconnected="WebrpcClientDisconnected",t.WebrpcStreamLost="WebrpcStreamLost",t.WebrpcStreamFinished="WebrpcStreamFinished",t.Unauthorized="Unauthorized",t.PermissionDenied="PermissionDenied",t.SessionExpired="SessionExpired",t.Aborted="Aborted",t.Geoblocked="Geoblocked",t.InvalidArgument="InvalidArgument",t.Unavailable="Unavailable",t.QueryFailed="QueryFailed",t.NotFound="NotFound",t}({});const Hoe={0:p_,[-1]:xe,[-2]:g_,[-3]:x_,[-4]:w_,[-5]:Z5,[-6]:k_,[-7]:S_,[-8]:P_,[-9]:O_,[-10]:N_,1e3:M_,1001:B_,1002:j_,1005:U_,1006:W_,2e3:H_,2002:G_,2003:K_,3e3:J_},a3=globalThis.fetch;class ay extends d_{constructor(e,r,n){super(e.endsWith("/")?e.slice(0,-1):e,a3),this.projectAccessKey=r,this.jwtAuth=n,this._fetch=(s,i)=>{const o={},a=this.jwtAuth,c=this.projectAccessKey;return a&&a.length>0&&(o.Authorization=`BEARER ${a}`),c&&c.length>0&&(o["X-Access-Key"]=c),i.headers=vv({},i.headers,o),a3(s,i)},this.fetch=this._fetch}}const zoe=Object.freeze(Object.defineProperty({__proto__:null,API:d_,AbortedError:U_,GeoblockedError:W_,InvalidArgumentError:H_,NotFoundError:J_,PermissionDeniedError:B_,QueryFailedError:K_,SequenceAPIClient:ay,SessionExpiredError:j_,SortOrder:$oe,TokenType:Woe,UnauthorizedError:M_,UnavailableError:G_,WebRPCSchemaHash:Uoe,WebRPCSchemaVersion:Foe,WebRPCVersion:joe,WebrpcBadMethodError:x_,WebrpcBadRequestError:w_,WebrpcBadResponseError:Z5,WebrpcBadRouteError:g_,WebrpcClientDisconnectedError:P_,WebrpcEndpointError:p_,WebrpcError:Ot,WebrpcInternalErrorError:S_,WebrpcRequestFailedError:xe,WebrpcServerPanicError:k_,WebrpcStreamFinishedError:N_,WebrpcStreamLostError:O_,errors:Voe},Symbol.toStringTag,{value:"Module"})),X_="3.7.7",Goe=X_,Ed=typeof Buffer=="function",c3=typeof TextDecoder=="function"?new TextDecoder:void 0,l3=typeof TextEncoder=="function"?new TextEncoder:void 0,qoe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",lh=Array.prototype.slice.call(qoe),Ap=(t=>{let e={};return t.forEach((r,n)=>e[r]=n),e})(lh),Koe=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,fr=String.fromCharCode.bind(String),u3=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),Z_=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),eM=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),tM=t=>{let e,r,n,s,i="";const o=t.length%3;for(let a=0;a255||(n=t.charCodeAt(a++))>255||(s=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|s,i+=lh[e>>18&63]+lh[e>>12&63]+lh[e>>6&63]+lh[e&63]}return o?i.slice(0,o-3)+"===".substring(o):i},ek=typeof btoa=="function"?t=>btoa(t):Ed?t=>Buffer.from(t,"binary").toString("base64"):tM,C2=Ed?t=>Buffer.from(t).toString("base64"):t=>{let r=[];for(let n=0,s=t.length;ne?Z_(C2(t)):C2(t),Qoe=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?fr(192|e>>>6)+fr(128|e&63):fr(224|e>>>12&15)+fr(128|e>>>6&63)+fr(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return fr(240|e>>>18&7)+fr(128|e>>>12&63)+fr(128|e>>>6&63)+fr(128|e&63)}},Joe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,rM=t=>t.replace(Joe,Qoe),f3=Ed?t=>Buffer.from(t,"utf8").toString("base64"):l3?t=>C2(l3.encode(t)):t=>ek(rM(t)),Du=(t,e=!1)=>e?Z_(f3(t)):f3(t),d3=t=>Du(t,!0),Yoe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Xoe=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return fr((r>>>10)+55296)+fr((r&1023)+56320);case 3:return fr((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return fr((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},nM=t=>t.replace(Yoe,Xoe),sM=t=>{if(t=t.replace(/\s+/g,""),!Koe.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,r="",n,s;for(let i=0;i>16&255):s===64?fr(e>>16&255,e>>8&255):fr(e>>16&255,e>>8&255,e&255);return r},tk=typeof atob=="function"?t=>atob(eM(t)):Ed?t=>Buffer.from(t,"base64").toString("binary"):sM,iM=Ed?t=>u3(Buffer.from(t,"base64")):t=>u3(tk(t).split("").map(e=>e.charCodeAt(0))),oM=t=>iM(aM(t)),Zoe=Ed?t=>Buffer.from(t,"base64").toString("utf8"):c3?t=>c3.decode(iM(t)):t=>nM(tk(t)),aM=t=>eM(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),E2=t=>Zoe(aM(t)),eae=t=>{if(typeof t!="string")return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},cM=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),lM=function(){const t=(e,r)=>Object.defineProperty(String.prototype,e,cM(r));t("fromBase64",function(){return E2(this)}),t("toBase64",function(e){return Du(this,e)}),t("toBase64URI",function(){return Du(this,!0)}),t("toBase64URL",function(){return Du(this,!0)}),t("toUint8Array",function(){return oM(this)})},uM=function(){const t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,cM(r));t("toBase64",function(e){return cy(this,e)}),t("toBase64URI",function(){return cy(this,!0)}),t("toBase64URL",function(){return cy(this,!0)})},tae=()=>{lM(),uM()},bl={version:X_,VERSION:Goe,atob:tk,atobPolyfill:sM,btoa:ek,btoaPolyfill:tM,fromBase64:E2,toBase64:Du,encode:Du,encodeURI:d3,encodeURL:d3,utob:rM,btou:nM,decode:E2,isValid:eae,fromUint8Array:cy,toUint8Array:oM,extendString:lM,extendUint8Array:uM,extendBuiltins:tae};var k2=function(){return k2=Object.assign||function(e){for(var r,n=1,s=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0&&(s.types.Claims.push({name:"app",type:"string"}),s.message.app=this.claims.app),this.claims.iat&&this.claims.iat>0&&(s.types.Claims.push({name:"iat",type:"int64"}),s.message.iat=this.claims.iat),this.claims.exp&&this.claims.exp>0&&(s.types.Claims.push({name:"exp",type:"int64"}),s.message.exp=this.claims.exp),this.claims.n&&this.claims.n>0&&(s.types.Claims.push({name:"n",type:"uint64"}),s.message.n=this.claims.n),this.claims.typ&&this.claims.typ.length>0&&(s.types.Claims.push({name:"typ",type:"string"}),s.message.typ=this.claims.typ),this.claims.ogn&&this.claims.ogn.length>0&&(s.types.Claims.push({name:"ogn",type:"string"}),s.message.ogn=this.claims.ogn),this.claims.v&&this.claims.v.length>0&&(s.types.Claims.push({name:"v",type:"string"}),s.message.v=this.claims.v),s},t}(),sae=function(t){if(t.app==="")return{ok:!1,err:new Error("claims: app is empty")};var e=Math.round(new Date().getTime()/1e3),r=5*60,n=60*60*24*365+r;return t.v===""?{ok:!1,err:new Error("claims: ethauth version is empty")}:t.iat&&t.iat!==0&&(t.iat>e+r||t.iate+n?{ok:!1,err:new Error("claims: token has expired")}:{ok:!0}},iae=function(t,e,r){return lc(void 0,void 0,void 0,function(){var n,s;return uc(this,function(i){return n=r.messageDigest(),s=r7(n,r.signature),s.slice(0,2)==="0x"&&s.length===42&&s.toLowerCase()===r.address.toLowerCase()?[2,{isValid:!0,address:r.address}]:[2,{isValid:!1}]})})},oae=function(t,e,r){return lc(void 0,void 0,void 0,function(){var n,s,i,o,a;return uc(this,function(c){switch(c.label){case 0:return!t||t===void 0?[2,{isValid:!1}]:(n=r.messageDigest(),[4,t.getCode(r.address)]);case 1:if(s=c.sent(),s==="0x"||s.length<=2)throw new Error("ValidateContractAccountProof failed. unable to fetch wallet contract code");return i=["function isValidSignature(bytes32, bytes) public view returns (bytes4)"],o=new dn(r.address,i,t),[4,o.isValidSignature(n,Q(r.signature))];case 2:return a=c.sent(),a===aae?[2,{isValid:!0,address:r.address}]:[2,{isValid:!1}]}})})},aae="0x1626ba7e",gv=function(){function t(){for(var e=[],r=0;r0&&(c+="."+s.extra),[2,c]}})})},this.decodeProof=function(s,i){return i===void 0&&(i=!1),lc(n,void 0,void 0,function(){var o,a,c,l,u,f,d,h,y,p;return uc(this,function(b){switch(b.label){case 0:if(o=s.split("."),o.length<4||o.length>5)throw new Error("ethauth: invalid proof string");if(a=o[0],c=o[1],l=o[2],u=o[3],f=o[4],a!==A2)throw new Error("ethauth: not an ethauth proof");return d=bl.decode(l),h=JSON.parse(d),y=new rk({address:c,claims:h,signature:u,extra:f}),[4,this.validateProof(y,i)];case 1:if(p=b.sent(),!p)throw new Error("ethauth: proof is invalid");return[2,y]}})})},this.validateProof=function(s,i){return i===void 0&&(i=!1),lc(n,void 0,void 0,function(){var o,a;return uc(this,function(c){switch(c.label){case 0:if(o=this.validateProofClaims(s),o.err)throw new Error("ethauth: proof claims are invalid ".concat(o.err));return i===!0?[3,2]:[4,this.validateProofSignature(s)];case 1:if(a=c.sent(),a!==!0)throw new Error("ethauth: proof signature is invalid");c.label=2;case 2:return[2,!0]}})})},this.validateProofSignature=function(s){return lc(n,void 0,void 0,function(){var i,c,o,a,c;return uc(this,function(l){switch(l.label){case 0:i=[],c=0,l.label=1;case 1:if(!(c{const e=t.replace(/-/g,"+").replace(/_/g,"/"),r=atob(e),n=new Uint8Array(r.length);for(let o=0;ot!=null&&(typeof t=="number"&&t%1===0||typeof t=="string"&&!!t.match(/^-?[0-9]+$/)||et(t)||typeof t=="bigint"),el=t=>{const e=t.toString(16);return`${e.length%2===0?"0x":"0x0"}${e}`},pM=(t,e=18)=>{let[r,n="0"]=t.split(".");const s=r.startsWith("-");if(s&&(r=r.slice(1)),n=n.replace(/(0+)$/,""),e===0)r=`${Math.round(+`${r}.${n}`)}`,n="";else if(n.length>e){const[i,o,a]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],c=Math.round(+`${o}.${a}`);c>9?n=`${BigInt(i)+1n}0`.padStart(i.length+1,"0"):n=`${i}${c}`,n.length>e&&(n=n.slice(1),r=`${BigInt(r)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${s?"-":""}${r}${n}`)},lae=t=>pM(t,18),yM=(t,e=18)=>{let r=t.toString();const n=r.startsWith("-");n&&(r=r.slice(1)),r=r.padStart(e,"0");const s=r.slice(0,r.length-e);let i=r.slice(r.length-e);return i=i.replace(/(0+)$/,""),`${n?"-":""}${s||"0"}${i?`.${i}`:""}`},uae=t=>yM(t,18),Ts=(t,e)=>typeof e=="bigint"?{$bigint:e.toString()}:e,Gg=(t,e)=>e!==null&&typeof e=="object"&&"$bigint"in e&&typeof e.$bigint=="string"?BigInt(e.$bigint):e!==null&&typeof e=="object"&&e.type==="BigNumber"&&et(e.hex)?BigInt(e.hex):e,fae=t=>bl.encode(t,!0),nk=t=>bl.encode(JSON.stringify(t,Ts),!0),dae=t=>{if(t!=null)return bl.decode(t)},sk=t=>{if(t!=null)return JSON.parse(bl.decode(t),Gg)},ik=t=>Q(typeof t=="string"?Qr(t):Ne(t)),vM=(t,e,r)=>De(["string","uint256","address","bytes32"],["",e,t,r]),S2=(t,e,r)=>Ne(vM(t,e,r)),gM=()=>typeof window>"u"&&typeof process=="object",hae=()=>!gM(),mM=t=>{const e=t.split(".");if(e.length!==3)throw new Error("invalid jwt");return JSON.parse(bl.decode(e[1]))};function mv(){return mv=Object.assign?Object.assign.bind():function(t){for(var e=1;eSe.configure(t);class $t{static bufferIndexOf(e,r,n=!1){if(n)return $t.binarySearch(e,r,$t.compare);const s=(i,o)=>{if(i===o)return!0;if(i.length!==o.length)return!1;for(let a=0;a=0;c--)if(n(e[c],r)!==0)return c+1;return 0}else a<0?s=o+1:i=o-1}return-1}static compare(e,r){const n=Math.min(e.length,r.length);for(let s=0;s$t.bufferify(e(r))}}class pae extends $t{constructor(e,r={}){super(),this.hashFn=void 0,this.leaves=[],this.layers=[],this.sortLeaves=!1,this.sortPairs=!1,this.sortLeaves=!!r.sortLeaves,this.sortPairs=!!r.sortPairs,this.hashFn=$t.bufferifyFn(Ne),this.processLeaves(e)}getOptions(){return{sortLeaves:this.sortLeaves,sortPairs:this.sortPairs}}processLeaves(e){this.leaves=e.map($t.bufferify),this.sortLeaves&&(this.leaves=this.leaves.sort($t.compare)),this.createHashes(this.leaves)}createHashes(e){for(this.layers=[e];e.length>1;){const r=this.layers.length;this.layers.push([]);const n=e.length;for(let s=0;s=n){this.layers[r].push(...e.slice(n));break}else if(s+1===e.length&&e.length%2===1){this.layers[r].push(e[s]);continue}const i=e[s],o=s+1===e.length?i:e[s+1],a=[i,o];this.sortPairs&&a.sort($t.compare);const c=this.hashFn(Le(a));this.layers[r].push(c)}e=this.layers[r]}}getRoot(){return this.layers.length===0?Uint8Array.from([]):this.layers[this.layers.length-1][0]||Uint8Array.from([])}getHexRoot(){return $t.bufferToHex(this.getRoot())}getProof(e,r){if(typeof e>"u")throw new Error("leaf is required");e=$t.bufferify(e);const n=[];if(!Number.isInteger(r)){r=-1;for(let s=0;s$t.bufferToHex(n.data))}verify(e,r,n){let s=$t.bufferify(r);if(n=$t.bufferify(n),!Array.isArray(e)||!r||!n)return!1;for(let i=0;ithis.toLeaf(r));return new pae(e,{sortPairs:!0,sortLeaves:!0})}generateRoot(){return this.tree||(this.tree=this.generateTree()),this.tree.getHexRoot()}generateProof(e){if(!this.elements.includes(e))throw new Error("Element not found");return this.tree||(this.tree=this.generateTree()),this.tree.getHexProof(this.toLeaf(e))}verifyProof(e,r){if(!this.elements.includes(e))throw new Error("Element not found");return this.tree||(this.tree=this.generateTree()),this.tree.verify(r,this.toLeaf(e),this.generateRoot())}}const vae=t=>eo(["address","uint256"],[t.address.toLowerCase(),t.tokenId]),O0=(t,e,r)=>{const n=new qt(t);return r&&n.setHeader("Authorization",`BEARER ${r}`),e&&n.setHeader("X-Access-Key",e),n};let gae=class{constructor(){this.cache=void 0,this.cache=new Map}do(e,r,n,...s){e=`${e}:${Qr(JSON.stringify(s,mae))}`;let i=this.cache.get(e);if(i&&i.expiration&&new Date>=i.expiration&&(i=void 0,this.cache.delete(e)),!i){const o={promise:n(...s)};r!==void 0&&(o.promise=o.promise.then(a=>(o.expiration=new Date(Date.now()+r),a))),i=o,this.cache.set(e,i)}return i.promise}};function mae(t,e){return typeof e=="object"&&e!==null&&!Array.isArray(e)?Object.fromEntries(Object.entries(e).sort()):e}function xae(t,e){return function(...r){const n=Array.prototype.slice.call(r);return new Promise(async(s,i)=>{try{n.push((o,a)=>o?i(o):s(a)),await t.apply(e,n)}catch(o){i(o)}})}}function bae(t,e){const r=encodeURIComponent(t),n=encodeURIComponent(JSON.stringify(e));return`${r}=${n}`}function wae(t){const e=t.split("&"),r={};for(const n of e){const s=n.split("=");r[decodeURIComponent(s[0])]=JSON.parse(decodeURIComponent(s[1]))}return r}const Cae=(t=0,e=Number.MAX_SAFE_INTEGER)=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t),wM=t=>{if(!t||typeof t!="string")return"";const e=t.match(/[\d.]+/);return e&&e.length>0?e[0].trim():""},CM=t=>{if(!t||typeof t!="string")return"";const e=t.match(/[\w\s\d]+/);return e&&e.length>0?e[0].trim():""},EM=t=>{if(!t||typeof t!="string")return"";const e=t.match(/[\w\d.\-:\/]+/);return e&&e.length>0?e[0].trim():""},Eae=t=>new Promise(e=>{const r=setTimeout(()=>{clearTimeout(r),e()},t)}),kM=t=>{const e=mv({},t.types);return delete e.EIP712Domain,Bs.hash(t.domain,e,t.message)},kd=t=>Q(kM(t)),{defineProperties:kae,resolveProperties:Aae}=xoe,Sae=t=>t.replace(/([^:]\/)\/+/g,"$1"),Tae=Object.freeze(Object.defineProperty({__proto__:null,Logger:xM,MAX_UINT_256:dM,MerkleTreeGenerator:yae,PromiseCache:gae,base64Decode:dae,base64DecodeObject:sk,base64Encode:fae,base64EncodeObject:nk,bigintReplacer:Ts,bigintReviver:Gg,configureLogger:bM,defineProperties:kae,encodeMessageDigest:ik,encodeTypedDataDigest:kd,encodeTypedDataHash:kM,extractProjectIdFromAccessKey:cae,formatEther:uae,formatUnits:yM,getFetchRequest:O0,getRandomInt:Cae,getSaleItemsLeaf:vae,isBigNumberish:hM,isBrowser:hae,isNode:gM,jwtDecodeClaims:mM,logger:Se,packMessageData:vM,parseEther:lae,parseUnits:pM,promisify:xae,queryStringFromObject:bae,queryStringToObject:wae,resolveProperties:Aae,sanitizeAlphanumeric:CM,sanitizeHost:EM,sanitizeNumberString:wM,sleep:Eae,subDigestOf:S2,toHexString:el,urlClean:Sae},Symbol.toStringTag,{value:"Module"}));function sd(){return sd=Object.assign?Object.assign.bind():function(t){for(var e=1;etypeof t=="number"?t:t.chainId?t.chainId:Number(t),Iae=t=>{if(t)return AM(t)},SM=(t,e=!1,r=!1)=>{if(!t)throw new Error("invalid network config: empty config");const n=[];if(Array.isArray(t)?n.push(...t):n.push(t),n.length===0){if(e)throw new Error("invalid network config: empty config");return!1}const s=n.map(l=>l.chainId).sort(),i=s.filter((l,u)=>s.indexOf(l)!==u);if(i.length>0){if(e)throw new Error(`invalid network config: duplicate chainIds ${i}`);return!1}n.forEach(l=>l.name=l.name.toLowerCase());const o=n.map(l=>l.name).sort(),a=o.filter((l,u)=>o.indexOf(l)!==u);if(a.length>0){if(e)throw new Error(`invalid network config: duplicate network names ${a}`);return!1}let c=!1;for(let l=0;l(SM(t,!0,e),t),Oae=(t,e=!0)=>{const r=t.map(s=>s.chainId).sort(),n=r.filter((s,i)=>r.indexOf(s)!==i);if(n.length>0){if(e)throw new Error(`invalid network config: duplicate chainIds ${n}`);return!1}return!0},Rae=(t,e)=>{if(!(!t||!e)){if(!t.chainId&&!t.name)throw new Error("failed to update network config: source config is missing chainId or name");if(t.chainId!==e.chainId&&t.name!==e.name)throw new Error("failed to update network config: one of chainId or name must match");t.rpcUrl&&(e.rpcUrl=t.rpcUrl,e.provider=void 0),t.provider&&(e.provider=t.provider),t.relayer&&(e.relayer=t.relayer)}},PM=t=>TM(IM(t)),Ns=(t,e)=>{if(typeof e=="string")if(e.startsWith("0x")){const r=Number(e);return t.find(n=>n.chainId===r)}else return t.find(r=>r.name===e||`${r.chainId}`===e);else{if(typeof e=="number")return t.find(r=>r.chainId===e);if(e.chainId)return t.find(r=>r.chainId===e.chainId);if(typeof e=="bigint"){const r=Number(e);return t.find(n=>n.chainId===r)}else return}},Nae=(t,e)=>t?t.name===e||t.chainId===e:!1,_ae=t=>{const e={};for(let r=0;r{if(!t)return[];const e=t.sort((n,s)=>n.chainId===s.chainId?0:n.chainIdn.isDefaultChain);return r>0&&e.splice(0,0,e.splice(r,1)[0]),e},qg=(t,e)=>typeof t=="string"?(e=e||{},t.replace(/\$\{\s*([$#@\-\d\w]+)\s*\}/gim,function(r,n){let s=e[n];return typeof s=="function"?s=s():s==null?s="":typeof s=="object"||typeof s=="symbol"?s=s.toString():s=s.valueOf(),s})):"",OM=t=>qg("https://${network}-indexer.sequence.app",{network:t}),RM=t=>qg("https://${network}-relayer.sequence.app",{network:t}),NM=t=>qg("https://nodes.sequence.app/${network}",{network:t});function ok(t){return Ns(id,t)}function _M(t){return typeof t=="bigint"?t:hM(t)?BigInt(t):BigInt(t.chainId)}const He=(t,e)=>{const r=I0[t];if(!r)throw new Error(`Network with chainId ${t} not found`);const n=NM(r.name);return sd({},r,{rpcUrl:n,indexerUrl:OM(r.name),relayer:{url:RM(r.name),provider:{url:n}}},e)},MM=[sd({},I0[L.HARDHAT],{rpcUrl:"http://localhost:8545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:8545"}}}),sd({},I0[L.HARDHAT_2],{rpcUrl:"http://localhost:9545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:9545"}}})],id=PM([sd({},He(L.POLYGON),{isDefaultChain:!0,isAuthChain:!0}),He(L.MAINNET),He(L.BSC),He(L.AVALANCHE),He(L.ARBITRUM),He(L.ARBITRUM_NOVA),He(L.OPTIMISM),He(L.OPTIMISM_SEPOLIA),He(L.POLYGON_ZKEVM),He(L.GNOSIS),He(L.RINKEBY,{disabled:!0}),He(L.GOERLI,{disabled:!0}),He(L.SEPOLIA),He(L.POLYGON_MUMBAI,{disabled:!0}),He(L.POLYGON_AMOY),He(L.BSC_TESTNET),He(L.ARBITRUM_SEPOLIA),He(L.BASE),He(L.BASE_SEPOLIA),He(L.HOMEVERSE),He(L.HOMEVERSE_TESTNET),He(L.XAI),He(L.XAI_SEPOLIA),He(L.AVALANCHE_TESTNET),He(L.ASTAR_ZKEVM),He(L.ASTAR_ZKYOTO),He(L.XR_SEPOLIA),He(L.B3_SEPOLIA),He(L.APECHAIN_TESTNET),He(L.BLAST),He(L.BLAST_SEPOLIA),He(L.TELOS),He(L.BORNE_TESTNET),...MM]);class DM{constructor(e,r){this.sender=void 0,this.handler=void 0,this.sender=r,e&&this.setMiddleware(e)}setMiddleware(e){this.handler=BM(e,this.sender)}request(e){return this.handler.request(e)}}const BM=(t,e)=>{if(t.length===0)return e;const r=s=>s.requestHandler?s.requestHandler:s;let n;n=r(t[t.length-1])(e.request);for(let s=t.length-2;s>=0;s--)n=r(t[s])(n);return{request:n}};function LM(t){return t!==void 0&&t.send!==void 0&&t.constructor.defaultUrl!==void 0&&t.detectNetwork!==void 0&&t.getSigner!==void 0&&t.perform!==void 0}function jM(t){return t!==void 0&&t.send!==void 0}class FM{constructor(e,r){this.provider=void 0,this.defaultChainId=void 0,this.request=n=>(n.chainId||(n.chainId=this.defaultChainId),this.provider(n)),jM(e)?this.provider=n=>e.send(n.method,n.params,n.chainId):LM(e)?this.provider=n=>e.send(n.method,n.params||[]):this.provider=e,this.defaultChainId=r}send(e,r,n){const s={method:e,params:r,chainId:n};return this.request(s)}}class Mae{constructor(e){this.requestHandler=void 0,this.isAllowedFunc=void 0,e?this.isAllowedFunc=e:this.isAllowedFunc=r=>!0,this.requestHandler=T2(this.isAllowedFunc)}setIsAllowedFunc(e){this.isAllowedFunc=e,this.requestHandler=T2(this.isAllowedFunc)}}const T2=t=>e=>r=>{if(!t(r))throw new Error("allowProvider middleware precondition is unmet.");return e(r)};class ak{constructor(e){var r=this;this.cachableJsonRpcMethods=["net_version","eth_chainId","eth_accounts","sequence_getWalletContext","sequence_getNetworks"],this.cachableJsonRpcMethodsByBlock=["eth_call","eth_getCode"],this.cache=void 0,this.cacheByBlock=void 0,this.cacheByBlockResetLock=!1,this.onUpdateCallback=void 0,this.defaultChainId=void 0,this.requestHandler=n=>async function(s){if(r.cachableJsonRpcMethods.includes(s.method)||r.cachableJsonRpcMethodsByBlock.includes(s.method)){const o=r.cacheKey(s.method,s.params,s.chainId||r.defaultChainId),a=r.getCacheValue(o);if(a&&a!=="")return{id:s.id,result:a}}const i=await n(s);if((r.cachableJsonRpcMethods.includes(s.method)||r.cachableJsonRpcMethodsByBlock.includes(s.method))&&i&&r.shouldCacheResponse(s,i)){const o=r.cacheKey(s.method,s.params,s.chainId||r.defaultChainId);r.cachableJsonRpcMethods.includes(s.method)?r.setCacheValue(o,i):r.setCacheByBlockValue(o,i)}return i},this.cacheKey=(n,s,i)=>{let o="";return i?o=`${i}:${n}:`:o=`:${n}:`,!s||s.length===0?o+"[]":o+JSON.stringify(s)},this.getCache=()=>this.cache,this.setCache=n=>{this.cache=n,this.onUpdateCallback&&this.onUpdateCallback()},this.getCacheValue=n=>{if(this.cache[n])return this.cache[n];if(this.cacheByBlock[n])return this.cacheByBlock[n]},this.setCacheValue=(n,s)=>{this.cache[n]=s,this.onUpdateCallback&&this.onUpdateCallback(n,s)},this.setCacheByBlockValue=(n,s)=>{this.cacheByBlock[n]=s,this.cacheByBlockResetLock||(this.cacheByBlockResetLock=!0,setTimeout(()=>{this.cacheByBlockResetLock=!1,this.cacheByBlock={}},1500))},this.shouldCacheResponse=(n,s)=>!(!s||n.method==="eth_getCode"&&s.length<=2),this.clearCache=()=>{this.cache={},this.cacheByBlock={}},this.cache={},this.cacheByBlock={},this.defaultChainId=e==null?void 0:e.defaultChainId,e!=null&&e.blockCache?(e==null?void 0:e.blockCache)!==!0&&(this.cachableJsonRpcMethodsByBlock=e==null?void 0:e.blockCache):this.cachableJsonRpcMethodsByBlock=[]}onUpdate(e){this.onUpdateCallback=e}}class UM{constructor(e){var r=this;this.options=void 0,this.requestHandler=n=>async function(s){switch(s.method){case"net_version":if(r.options.chainId)return`${r.options.chainId}`;break;case"eth_chainId":if(r.options.chainId)return pr(r.options.chainId);break;case"eth_accounts":if(r.options.accountAddress)return[Te(r.options.accountAddress)];break;case"sequence_getWalletContext":if(r.options.walletContext)return r.options.walletContext;break}return n(s)},this.options=e}}const $M=t=>async e=>{try{return await t(e)}catch(r){throw typeof r=="string"?new Error(r):new Error(r.message)}},WM=t=>async e=>{const r=e.chainId?` chainId:${e.chainId}`:"";Se.info(`[provider request]${r} id:${e.id} method:${e.method} params:`,e.params);try{const n=await t(e);return Se.info(`[provider response]${r} id:${e.id} method:${e.method} params:`,e.params,"result:",n),n}catch(n){Se.warn(`[provider response]${r} id:${e.id} method:${e.method} params:`,e.params,"error:",n)}},Dae=t=>e=>async r=>{const n=t(r);switch(r.method){case"net_version":return`${n}`;case"eth_chainId":return pr(n)}return e(r)},VM=["personal_sign","eth_sign","eth_signTypedData","eth_signTypedData_v4","eth_sendTransaction","eth_sendRawTransaction","sequence_sign","sequence_signTypedData_v4","sequence_getWalletContext","sequence_getWalletConfig","sequence_getWalletState","sequence_getNetworks","sequence_updateConfig","sequence_publishConfig","sequence_gasRefundOptions","sequence_getNonce","sequence_relay","eth_decrypt","eth_getEncryptionPublicKey","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"];class Bae{constructor(e){this.provider=void 0,this.requestHandler=r=>n=>VM.includes(n.method)?this.provider.request(n):r(n),this.provider=e}}class Lae{constructor(e){this.privateJsonRpcMethods=["net_version","eth_chainId","eth_accounts",...VM],this.provider=void 0,this.rpcUrl=void 0,this.requestHandler=r=>n=>this.provider&&!this.privateJsonRpcMethods.includes(n.method)?this.provider.send(n.method,n.params||[]):(Se.debug("[public-provider] sending request to signer window",n.method),r(n)),e&&this.setRpcUrl(e)}getRpcUrl(){return this.rpcUrl}setRpcUrl(e){!e||e===""?(this.rpcUrl=void 0,this.provider=void 0):(this.rpcUrl=e,this.provider=new zt(e))}}class HM{constructor(){var e=this;this.singleflightJsonRpcMethods=["eth_chainId","net_version","eth_call","eth_getCode","eth_blockNumber","eth_getBalance","eth_getStorageAt","eth_getTransactionCount","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_getBlockByHash","eth_getBlockByNumber","eth_getTransactionByHash","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionReceipt","eth_getUncleByBlockHashAndIndex","eth_getUncleByBlockNumberAndIndex","eth_getLogs"],this.inflight=void 0,this.requestHandler=r=>async function(n){if(!e.singleflightJsonRpcMethods.includes(n.method))return r(n);const s=e.requestKey(n.method,n.params||[],n.chainId);if(!e.inflight[s])e.inflight[s]=[];else return new Promise((i,o)=>{e.inflight[s].push({id:n.id,callback:(a,c)=>{a?o(a):i(c)}})});try{const i=await r(n);return e.inflight[s].forEach(({callback:o})=>o(void 0,i)),i}catch(i){throw e.inflight[s].forEach(({callback:o})=>o(i,void 0)),i}finally{delete e.inflight[s]}},this.requestKey=(r,n,s)=>{let i="";return s?i=`${s}:${r}:`:i=`:${r}:`,!n||n.length===0?i+"[]":i+JSON.stringify(n)},this.inflight={}}}function Wl(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var jae=0;function ck(t){return"__private_"+jae+++"_"+t}var Xa=ck("chainId"),Wx=ck("nextId"),Vd=ck("sender");class zM extends zt{constructor(e,r,n){var s;super(e,r==null?void 0:r.chainId,n),s=this,this.url=e,Object.defineProperty(this,Xa,{writable:!0,value:void 0}),Object.defineProperty(this,Wx,{writable:!0,value:1}),Object.defineProperty(this,Vd,{writable:!0,value:void 0}),this.fetch=async function(l){if(s.url===void 0)throw new Error("missing provider URL");const{method:u,params:f}=l,d={method:u,params:f,id:Wl(s,Wx)[Wx]++,jsonrpc:"2.0"},h=typeof s.url=="string"?new qt(s.url):s.url;h.body=JSON.stringify(d);try{const y=await h.send();if(y.body)try{const p=JSON.parse(Ds(y.body));return Fae(p)}catch{throw new Error("invalid JSON response")}return null}catch(y){throw y}};const i=r==null?void 0:r.chainId,o=r==null?void 0:r.middlewares,a=r==null?void 0:r.blockCache;Wl(this,Xa)[Xa]=i;const c=new DM(o??[new UM({chainId:i}),new HM,new ak({defaultChainId:i,blockCache:a})],new FM(this.fetch,i));Wl(this,Vd)[Vd]=c}async request(e){return Wl(this,Vd)[Vd].request(e)}async send(e,r,n){return this.request({method:e,params:r,chainId:n})}async getNetwork(){const e=Wl(this,Xa)[Xa];if(e){const r=I0[e],n=(r==null?void 0:r.name)||"",s=r==null?void 0:r.ensAddress;return ot.from({name:n,chainId:e,ensAddress:s})}else{const r=await this.send("eth_chainId",[]);return Wl(this,Xa)[Xa]=Number(r),this.getNetwork()}}}function Fae(t){if(t.error){const e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}const Uae=Object.freeze(Object.defineProperty({__proto__:null,AllowProvider:Mae,CachedProvider:ak,ChainId:L,EagerProvider:UM,JsonRpcHandler:FM,JsonRpcProvider:zM,JsonRpcRouter:DM,NetworkType:_e,PublicProvider:Lae,SigningProvider:Bae,SingleflightMiddleware:HM,allNetworks:id,allowProviderMiddleware:T2,checkNetworkConfig:Nae,createJsonRpcMiddlewareStack:BM,ensureUniqueNetworks:Oae,ensureValidNetworks:TM,exceptionProviderMiddleware:$M,findNetworkConfig:Ns,findSupportedNetwork:ok,getChainId:AM,hardhatNetworks:MM,indexerURL:OM,isJsonRpcProvider:LM,isJsonRpcSender:jM,isNetworkConfig:Pae,isValidNetworkConfig:SM,loggingProviderMiddleware:WM,maybeChainId:Iae,networkProviderMiddleware:Dae,networks:I0,networksIndex:_ae,nodesURL:NM,relayerURL:RM,sortNetworks:IM,stringTemplate:qg,toChainIdNumber:_M,updateNetworkConfig:Rae,validateAndSortNetworks:PM},Symbol.toStringTag,{value:"Module"}));function yr(){return yr=Object.assign?Object.assign.bind():function(t){for(var e=1;e{if(uk(s))return De(["uint8","uint8","address"],[tl.Address,s.weight,s.address]);if(s.isDynamic){const i=Q(s.signature);return De(["uint8","uint8","address","uint16","bytes"],[tl.DynamicSignature,s.weight,s.address,i.length,i])}return De(["uint8","uint8","bytes"],[tl.EOASignature,s.weight,s.signature])});return De(["uint16",...new Array(n.length).fill("bytes")],[r,...n])}async function YM(t,e,r){const n=S1(e),s=await Promise.all(t.signers.map(async i=>{if(uk(i))return i;if(i.isDynamic){if(!i.address)throw new Error("Dynamic signature part must have address");if(!lk(i.address,n,i.signature,r))throw new Error(`Invalid dynamic signature part ${i.address}`);return{address:i.address,weight:i.weight,signature:i.signature}}else return{address:T1(n,i.signature),weight:i.weight,signature:i.signature}}));return{version:1,payload:e,subdigest:n,config:{version:1,threshold:t.threshold,signers:s}}}function Ph(t,e,r,n){if(r.length!==0)throw new Error("Explicit subdigests not supported on v1");let s=0n;const i=t.signers.map(a=>{if(!e.has(a.address))return a;const c=e.get(a.address),l=Q(c.signature);return s+=BigInt(a.weight),c.isDynamic||l.length!==66?yr({},a,{isDynamic:!0,signature:c.signature,address:a.address}):yr({},a,{isDynamic:!1,signature:c.signature})});return{encoded:fk({version:1,threshold:t.threshold,signers:i}),weight:s}}const dk={decode:t=>JM(t),encode:t=>fk(t),trim:async t=>t,supportsNoChainId:!0,recover:(t,e,r)=>YM(t,e,r),encodeSigners:(t,e,r,n)=>Ph(t,e,r),hasEnoughSigningPower:(t,e)=>{const{weight:r}=dk.encodeSigners(t,e,[],0);return r>=BigInt(t.threshold)},chainSignatures:(t,e)=>{throw new Error("Signature chaining not supported on v1")},hashSetImageHash:function(t){throw new Error("Image hash not supported on v1")},signaturesOf(t){return t.signers.filter(e=>e.signature!==void 0).map(e=>({address:e.address,signature:e.signature}))},signaturesOfDecoded:function(t){return t.signers.map(e=>e.signature).filter(e=>e!==void 0)}};var Qae=Object.freeze({__proto__:null,SignaturePartType:tl,isAddressMember:uk,isUnrecoveredSignatureMember:KM,isUnrecoveredSignature:QM,decodeSignature:JM,encodeSignature:fk,recoverSignature:YM,encodeSigners:Ph,SignatureCoder:dk});const hk={isWalletConfig:t=>t.version===1&&t.threshold!==void 0&&t.signers!==void 0,imageHashOf:t=>t.signers.reduce((e,r)=>Ne(Kt.defaultAbiCoder().encode(["bytes32","uint8","address"],[e,r.weight,r.address])),De(["uint256"],[t.threshold])),hasSubdigest:(t,e)=>!1,isComplete:t=>!0,checkpointOf:t=>0n,signersOf:t=>t.signers.map(e=>({address:e.address,weight:Number(e.weight)})),fromSimple:t=>{if(BigInt(t.checkpoint)!==0n)throw new Error("v1 wallet config does not support checkpoint");if(t.subdigests&&t.subdigests.length>0)throw new Error("v1 wallet config does not support subdigests");return{version:1,threshold:t.threshold,signers:t.signers}},update:{isKindUsed:!0,buildTransaction:(t,e,r,n)=>{const s=new pt([...Gt.mainModule.abi,...Gt.mainModuleUpgradable.abi]),i=[];return(!n||n==="first")&&i.push({to:t,data:s.encodeFunctionData(s.getFunction("updateImplementation"),[r.mainModuleUpgradable]),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}),i.push({to:t,data:s.encodeFunctionData(s.getFunction("updateImageHash"),[hk.imageHashOf(e)]),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}),{entrypoint:t,transactions:i}},decodeTransaction:function(t){throw new Error("Function not implemented.")}},toJSON:function(t){const e=t.signers.map(r=>({weight:BigInt(r.weight).toString(),address:r.address}));return JSON.stringify({version:t.version,threshold:BigInt(t.threshold).toString(),signers:e})},fromJSON:function(t){const e=JSON.parse(t),r=e.signers.map(n=>({weight:BigInt(n.weight),address:n.address}));return{version:e.version,threshold:BigInt(e.threshold),signers:r}},editConfig:function(t,e){var r;const n=t.signers.slice();if(e.checkpoint&&BigInt(e.checkpoint)!==0n)throw new Error("v1 wallet config does not support checkpoint");if(e.add)for(const s of e.add)n.find(i=>i.address===s.address)||n.push({weight:s.weight,address:s.address});if(e.remove)for(const s of e.remove){const i=n.findIndex(o=>o.address===s);i>=0&&n.splice(i,1)}return{version:t.version,threshold:(r=e.threshold)!=null?r:t.threshold,signers:n}},buildStubSignature:function(t,e){const r=new Map;for(const[s,i]of e.entries()){r.set(s,{signature:i,isDynamic:!0});const{encoded:o,weight:a}=Ph(t,r,[]);if(a>=BigInt(t.threshold))return o}const n=t.signers;for(const{address:s}of n.sort(({weight:i},{weight:o})=>Number(i)-Number(o))){r.set(s,{signature:"0x4e82f02f388a12b5f9d29eaf2452dd040c0ee5804b4e504b4dd64e396c6c781f2c7624195acba242dd825bfd25a290912e3c230841fd55c9a734c4de8d9899451b02",isDynamic:!1});const{encoded:o,weight:a}=Ph(t,r,[]);if(a>=BigInt(t.threshold))return o}return Ph(t,r,[]).encoded}};var Jae=Object.freeze({__proto__:null,ConfigCoder:hk}),Yae=Object.freeze({__proto__:null});const XM=1,ZM={version:XM,factory:"0xf9D09D634Fb818b05149329C1dcCFAeA53639d96",guestModule:"0x02390F3E6E5FD1C6786CB78FD3027C117a9955A7",mainModule:"0xd01F11855bCcb95f88D7A48492F66410d4637313",mainModuleUpgradable:"0x7EFE6cE415956c5f80C6530cC6cc81b4808F6118",walletCreationCode:"0x603a600e3d39601a805130553df3363d3d373d3d3d363d30545af43d82803e903d91601857fd5bf3"};var Hi=Object.freeze({__proto__:null,config:Jae,context:Yae,signature:Qae,version:XM,DeployedWalletContext:ZM});const pk="0x8713a7c4465f6fbee2b6e9d6646d1d9f83fec929edfc4baf661f3c865bdd04d1";function eD(t){return Ne(tD(t))}function tD(t){return De(["bytes32","bytes32"],[pk,t])}function rD(t){const e=Q(t);if(e.length===64&&H(e.slice(0,32))===pk)return H(e.slice(32,64))}function Xae(t){return rD(t)!==void 0}var Zae=Object.freeze({__proto__:null,SetImageHashPrefix:pk,hashSetImageHash:eD,messageSetImageHash:tD,decodeMessageSetImageHash:rD,isMessageSetImageHash:Xae});let Zt=function(t){return t[t.Legacy=0]="Legacy",t[t.Dynamic=1]="Dynamic",t[t.NoChainIdDynamic=2]="NoChainIdDynamic",t[t.Chained=3]="Chained",t}({}),It=function(t){return t[t.Signature=0]="Signature",t[t.Address=1]="Address",t[t.DynamicSignature=2]="DynamicSignature",t[t.Node=3]="Node",t[t.Branch=4]="Branch",t[t.Subdigest=5]="Subdigest",t[t.Nested=6]="Nested",t}({});const xv=66;function wl(t){return t.left!==void 0&&t.right!==void 0}function Ad(t){return t.tree!==void 0}function P1(t){return t.unrecovered&&t.signature!==void 0&&t.isDynamic!==void 0}function bv(t){let e=Q(t),r;const n=(s,i)=>s?s.right?{left:s,right:i}:{left:s.left,right:i}:{left:i};for(;e.length>0;){const s=e[0];switch(e=e.slice(1),s){case It.Signature:{const i=e[0],o=H(e.slice(1,xv+1));r=n(r,{signature:o,weight:i,unrecovered:!0,isDynamic:!1}),e=e.slice(xv+1)}break;case It.Address:{const i=e[0],o=Te(H(e.slice(1,21)));r=n(r,{address:o,weight:i}),e=e.slice(21)}break;case It.DynamicSignature:{const i=e[0],o=Te(H(e.slice(1,21))),a=e[21]<<16|e[22]<<8|e[23],c=H(e.slice(24,24+a));r=n(r,{address:o,signature:c,weight:i,unrecovered:!0,isDynamic:!0}),e=e.slice(24+a)}break;case It.Node:{const i=H(e.slice(0,32));r=n(r,{nodeHash:i}),e=e.slice(32)}break;case It.Branch:{const i=e[0]<<16|e[1]<<8|e[2],o=bv(e.slice(3,3+i));r=n(r,o),e=e.slice(3+i)}break;case It.Subdigest:{const i=H(e.slice(0,32));r=n(r,{subdigest:i}),e=e.slice(32)}break;case It.Nested:{const i=e[0],o=e[1]<<8|e[2],a=e[3]<<16|e[4]<<8|e[5],c=bv(e.slice(6,6+a));r=n(r,{weight:i,threshold:o,tree:c}),e=e.slice(6+a)}break;default:throw new Error(`Unknown signature part type: ${s}: ${H(e)}`)}}if(!r)throw new Error("Empty signature tree");return r.right?r:r.left}class nD extends Error{constructor(e){super(`Invalid signature leaf: ${JSON.stringify(e)}`),this.leaf=e}}async function rl(t,e,r){if(wl(t)){const[n,s]=await Promise.all([rl(t.left,e,r),rl(t.right,e,r)]);return{left:n,right:s}}if(Ad(t))return{weight:t.weight,threshold:t.threshold,tree:await rl(t.tree,e,r)};if(P1(t))if(t.isDynamic){if(!t.address)throw new Error("Dynamic signature leaf without address");if(!await lk(t.address,e,t.signature,r))throw new nD(t);return{weight:t.weight,address:t.address,signature:t.signature,subdigest:e}}else return{weight:t.weight,address:T1(e,t.signature),signature:t.signature,subdigest:e};return t}const Ar={concat:(t,e)=>De(["bytes","bytes"],[t,e]),node:t=>De(["uint8","bytes32"],[It.Node,t]),branch:t=>{const e=Q(t);return De(["uint8","uint24","bytes"],[It.Branch,e.length,e])},nested:(t,e,r)=>{const n=Q(r);return De(["uint8","uint8","uint16","uint24","bytes"],[It.Nested,t,e,n.length,n])},subdigest:t=>De(["uint8","bytes32"],[It.Subdigest,t]),signature:(t,e)=>De(["uint8","uint8","bytes"],[It.Signature,t,e]),dynamicSignature:(t,e,r)=>{const n=Q(r);return De(["uint8","uint8","address","uint24","bytes"],[It.DynamicSignature,t,e,n.length,n])},address:(t,e)=>De(["uint8","uint8","address"],[It.Address,t,e])};function Ih(t,e,r,n,s={}){const i=Oh(t.tree,e,r,s);return BigInt(n)===0n?{encoded:De(["uint8","uint16","uint32","bytes"],[Zt.NoChainIdDynamic,t.threshold,t.checkpoint,i.encoded]),weight:i.weight}:BigInt(t.threshold)>255n?{encoded:De(["uint8","uint16","uint32","bytes"],[Zt.Dynamic,t.threshold,t.checkpoint,i.encoded]),weight:i.weight}:{encoded:De(["uint8","uint8","uint32","bytes"],[Zt.Legacy,t.threshold,t.checkpoint,i.encoded]),weight:i.weight}}function Oh(t,e,r,n={}){const s=!n.disableTrim;if(js(t)){const i=Oh(t.left,e,r),o=Oh(t.right,e,r),a=qr(t.left),c=qr(t.right);return s&&i.weight===0n&&o.weight===0n&&!a&&!c?{encoded:Ar.node(Yn(t)),weight:0n}:s&&o.weight===0n&&!c?{encoded:Ar.concat(i.encoded,Ar.node(Yn(t.right))),weight:i.weight}:s&&i.weight===0n&&!a?{encoded:Ar.concat(Ar.node(Yn(t.left)),Ar.branch(o.encoded)),weight:o.weight}:{encoded:Ar.concat(i.encoded,Ar.branch(o.encoded)),weight:i.weight+o.weight}}if(xo(t)){const i=Oh(t.tree,e,r);return s&&i.weight===0n?{encoded:Ar.node(Yn(t)),weight:0n}:{encoded:Ar.nested(t.weight,t.threshold,i.encoded),weight:i.weight}}if(bo(t))return{encoded:Ar.node(Yn(t)),weight:0n};if(mo(t)){const i=r.includes(t.subdigest);return{encoded:Ar.subdigest(t.subdigest),weight:i?dM:0n}}if(qr(t))if(e.has(t.address)){const o=e.get(t.address),a=o.signature;return n.forceDynamicEncoding||o.isDynamic?{encoded:Ar.dynamicSignature(t.weight,t.address,a),weight:BigInt(t.weight)}:{encoded:Ar.signature(t.weight,a),weight:BigInt(t.weight)}}else return{encoded:Ar.address(t.weight,t.address),weight:0n};throw new Error(`Invalid topology - unknown error: ${JSON.stringify(t)}`)}function yk(t){return gk(t)?yk(t.suffix[t.suffix.length-1]):t.config}function vk(t){return t.type!==void 0&&t.decoded!==void 0&&t.version!==void 0&&t.version===2}function I1(t){return t.suffix!==void 0&&Array.isArray(t.suffix)&&t.suffix.every(vk)}function sD(t){return t.type!==void 0&&t.config!==void 0&&t.digest!==void 0&&t.version!==void 0&&t.version===2}function gk(t){return t.chain!==void 0&&Array.isArray(t.chain)&&t.chain.every(sD)}function Kg(t){const e=Q(t),r=e[0];switch(r){case Zt.Legacy:return{version:2,type:Zt.Legacy,decoded:ly(e)};case Zt.Dynamic:return{version:2,type:Zt.Dynamic,decoded:ly(e.slice(1))};case Zt.NoChainIdDynamic:return{version:2,type:Zt.NoChainIdDynamic,decoded:ly(e.slice(1))};case Zt.Chained:return iD(e);default:throw new Error(`Invalid signature type: ${r}`)}}function ly(t){const e=Q(t),r=e[0]<<8|e[1],n=e[2]<<24|e[3]<<16|e[4]<<8|e[5],s=bv(e.slice(6));return{threshold:r,checkpoint:n,tree:s}}function iD(t){const e=Q(t),r=e[0];if(r!==Zt.Chained)throw new Error(`Expected chained signature type: ${r}`);const n=[];let s=1;for(;sQ(Ea(i))),s=De(n.map(()=>["uint24","bytes"]).flat(),n.map(i=>[i.length,i]).flat());return De(["uint8","bytes"],[Zt.Chained,s])}function Ea(t){if(mi(t))return H(t);if(I1(t)||gk(t))return Qg(Ea(t),(t.suffix||[]).map(Ea));const e=vk(t)?t.decoded:t.config;switch(t.type){case Zt.Legacy:if(BigInt(e.threshold)>255n)throw new Error(`Legacy signature threshold is too large: ${e.threshold} (max 255)`);return P2(e);case Zt.NoChainIdDynamic:case Zt.Dynamic:return De(["uint8","bytes"],[t.type,P2(e)]);case Zt.Chained:throw new Error("Unreachable code: Chained signature should be handled above");default:throw new Error(`Invalid signature type: ${t.type}`)}}function P2(t){return De(["uint16","uint32","bytes"],[t.threshold,t.checkpoint,Rh(t.tree)])}function Rh(t){if(js(t)||wl(t)){const e=Q(Rh(t.right)),r=Q(Rh(t.left));return js(t.right)||wl(t.right)?De(["bytes","uint8","uint24","bytes"],[r,It.Branch,e.length,e]):De(["bytes","bytes"],[r,e])}if(xo(t)||Ad(t)){const e=Q(Rh(t.tree));return De(["uint8","uint8","uint16","uint24","bytes"],[It.Nested,t.weight,t.threshold,e.length,e])}if(P1(t)||qr(t)&&t.signature!==void 0){const e=Q(t.signature);if(t.isDynamic||e.length!==xv){if(!t.address)throw new Error("Dynamic signature leaf must have address");return De(["uint8","uint8","address","uint24","bytes"],[It.DynamicSignature,t.weight,t.address,e.length,e])}else return De(["uint8","uint8","bytes"],[It.Signature,t.weight,e])}if(qr(t))return De(["uint8","uint8","address"],[It.Address,t.weight,t.address]);if(bo(t))return De(["uint8","bytes32"],[It.Node,t.nodeHash]);if(mo(t))return De(["uint8","bytes32"],[It.Subdigest,t.subdigest]);throw new Error(`Unknown signature tree type: ${t}`)}function Nh(t){return js(t)?[...Nh(t.left),...Nh(t.right)]:xo(t)?Nh(t.tree):qr(t)&&t.signature?[{address:t.address,signature:t.signature}]:[]}function _h(t){return wl(t)?[..._h(t.left),..._h(t.right)]:Ad(t)?_h(t.tree):P1(t)?[t.signature]:[]}function uy(t){return wl(t)?[...uy(t.left),...uy(t.right)]:Ad(t)?uy(t.tree):mo(t)?[t.subdigest]:[]}async function wv(t){const e=typeof t=="string"?Kg(t):t;if(I1(e)){const n=await Promise.all([wv(yr({},e,{suffix:void 0})),...e.suffix.map(s=>wv(s))]);return Qg(n[0],n.slice(1))}const{trimmed:r}=await Mh(e.decoded.tree);return Ea(yr({},e,{decoded:yr({},e.decoded,{tree:r})}))}async function Mh(t,e=!0){if(wl(t)){const[r,n]=await Promise.all([Mh(t.left),Mh(t.right)]);if(r.weight===0&&n.weight===0)try{const s=await rl(t,yl,void 0);return{weight:0,trimmed:{nodeHash:Yn(s)}}}catch{}else return{weight:r.weight+n.weight,trimmed:{left:r.trimmed,right:n.trimmed}}}if(Ad(t)){const r=await Mh(t.tree);if(r.weight===0)try{const n=await rl(t,yl,void 0);return{weight:0,trimmed:{nodeHash:Yn(n)}}}catch{}return{weight:r.weight,trimmed:{weight:t.weight,threshold:t.threshold,tree:r.trimmed}}}return bo(t)&&lD(t.nodeHash)?{weight:0,trimmed:yr({},cD(t.nodeHash))}:P1(t)||qr(t)&&t.signature!==void 0?{weight:Number(t.weight),trimmed:t}:!e&&mo(t)?{weight:1/0,trimmed:t}:{weight:0,trimmed:t}}const Jg={decode:t=>Kg(t),encode:t=>Ea(t),trim:t=>wv(t),supportsNoChainId:!0,recover:(t,e,r)=>mk(t,e,r),encodeSigners:(t,e,r,n)=>Ih(t,e,r,n),hasEnoughSigningPower:(t,e)=>{const{weight:r}=Jg.encodeSigners(t,e,[],0);return r>=BigInt(t.threshold)},chainSignatures:(t,e)=>{const r=e.reverse(),n=mi(t)?t:Ea(t),s=r.map(i=>mi(i)?i:Ea(i));return Qg(n,s)},hashSetImageHash:function(t){return eD(t)},signaturesOf(t){return Nh(t.tree)},signaturesOfDecoded:function(t){return _h(t.decoded.tree)}};var ece=Object.freeze({__proto__:null,SignatureType:Zt,SignaturePartType:It,SignaturePartTypeLength:xv,isUnrecoveredNode:wl,isUnrecoveredNestedLeaf:Ad,isUnrecoveredSignatureLeaf:P1,decodeSignatureTree:bv,InvalidSignatureLeafError:nD,recoverTopology:rl,partEncoder:Ar,encodeSigners:Ih,encodeTree:Oh,deepestConfigOfSignature:yk,isUnrecoveredSignature:vk,isUnrecoveredChainedSignature:I1,isSignature:sD,isChainedSignature:gk,decodeSignature:Kg,decodeSignatureBody:ly,decodeChainedSignature:iD,setImageHashStruct:oD,recoverSignature:mk,encodeChain:Qg,encodeSignature:Ea,encodeSignatureBody:P2,encodeSignatureTree:Rh,signaturesOf:Nh,signaturesOfDecoded:_h,subdigestsOfDecoded:uy,trimSignature:wv,trimUnrecoveredTree:Mh,SignatureCoder:Jg});function qr(t){return t.address!==void 0&&t.weight!==void 0}function mo(t){return t.subdigest!==void 0&&t.address===void 0}function Dh(t){return js(t)?JSON.stringify({left:Dh(t.left),right:Dh(t.right)}):xo(t)?JSON.stringify({weight:BigInt(t.weight).toString(),threshold:BigInt(t.threshold).toString(),tree:Dh(t.tree)}):qr(t)?JSON.stringify({address:t.address,weight:BigInt(t.weight).toString()}):JSON.stringify(t)}function Bh(t){const e=typeof t=="string"?JSON.parse(t):t;return e.left!==void 0&&e.right!==void 0?{left:Bh(e.left),right:Bh(e.right)}:e.weight!==void 0&&e.threshold!==void 0&&e.tree!==void 0?{weight:BigInt(e.weight),threshold:BigInt(e.threshold),tree:Bh(e.tree)}:e.address!==void 0&&e.weight!==void 0?{address:e.address,weight:BigInt(e.weight)}:e}function xo(t){return t.tree!==void 0&&t.weight!==void 0&&t.threshold!==void 0}function bo(t){return t.nodeHash!==void 0}function xk(t){return qr(t)||mo(t)||xo(t)||bo(t)}function js(t){return t.left!==void 0&&t.right!==void 0}function tce(t){return js(t)||xk(t)}function aD(t){return De(["uint96","address"],[t.weight,t.address])}function cD(t){const e=Q(t);if(e.length!==32)throw new Error("Invalid encoded string length");const r=BigInt(H(e.slice(0,12))),n=Te(H(e.slice(12)));return{weight:r,address:n}}function lD(t){const e=Q(t);return e.length!==32?!1:e.slice(0,11).every(n=>n===0)}function Yn(t){if(qr(t))return aD(t);if(mo(t))return eo(["string","bytes32"],[`Sequence static digest: +`,t.subdigest]);if(xo(t)){const e=Yn(t.tree);return eo(["string","bytes32","uint256","uint256"],[`Sequence nested config: +`,e,t.threshold,t.weight])}return bo(t)?t.nodeHash:eo(["bytes32","bytes32"],[Yn(t.left),Yn(t.right)])}function rce(t){const e=[];let r=t;for(;!xk(r);)e.unshift(r.right),r=r.left;return e.unshift(r),e}function nce(t){return t.threshold!==void 0&&t.checkpoint!==void 0&&t.tree!==void 0&&t.version!==void 0&&t.version===2}function bk(t){return eo(["bytes32","uint256"],[eo(["bytes32","uint256"],[Yn(t.tree),t.threshold]),t.checkpoint])}function uD(t){return t.threshold!==void 0&&t.weight!==void 0&&t.members!==void 0}function Bu(t){return qr(t)||mo(t)?[t]:xo(t)?[{threshold:t.threshold,weight:t.weight,members:Bu(t.tree)}]:bo(t)?[]:[...Bu(t.left),...Bu(t.right)]}function I2(t){return bo(t)?!0:js(t)?I2(t.left)||I2(t.right):!1}function sce(t){return{threshold:t.threshold,checkpoint:t.checkpoint,members:Bu(t.tree)}}const fD=(t,e)=>t.map(r=>uD(r)?{tree:e(r.members),threshold:r.threshold,weight:r.weight}:r);function wk(t){if(t.length===0)throw new Error("Empty members array");return fD(t,wk).reduce((r,n)=>({left:r,right:n}))}function Ck(t){if(t.length===0)throw new Error("Empty members array");const e=fD(t,Ck);for(let r=e.length;r>1;r=r/2)for(let n=0;n=r?e[n]=e[s]:e[n]={left:e[s],right:e[i]}}return e[0]}function Ek(t){return t.length>8?Ck(t):wk(t)}function dD(t,e=Ek){return{version:2,threshold:t.threshold,checkpoint:t.checkpoint,tree:e(t.members)}}function Cv(t,e){return mo(t)?t.subdigest===e:js(t)?Cv(t.left,e)||Cv(t.right,e):!1}function O2(t){const e=[t],r=new Set;for(;e.length>0;){const n=e.pop();xo(n)?e.push(n.tree):js(n)?(e.push(n.left),e.push(n.right)):qr(n)&&r.add({address:n.address,weight:Number(n.weight)})}return Array.from(r)}function Ev(t){return js(t)?Ev(t.left)&&Ev(t.right):!bo(t)}const Yg={isWalletConfig:t=>t.version===2&&t.threshold!==void 0&&t.tree!==void 0,imageHashOf:t=>bk(t),hasSubdigest:(t,e)=>Cv(t.tree,e),checkpointOf:t=>BigInt(t.checkpoint),signersOf:t=>O2(t.tree),fromSimple:t=>{var e;return dD(yr({},t,{members:[...t.signers,...((e=t.subdigests)!=null?e:[]).map(r=>({subdigest:r}))]}))},isComplete:t=>Ev(t.tree),update:{isKindUsed:!0,buildTransaction:(t,e,r,n)=>{const s=new pt(Gt.mainModuleUpgradable.abi);return{entrypoint:t,transactions:[{to:t,data:s.encodeFunctionData(s.getFunction("updateImageHash"),[Yg.imageHashOf(e)]),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}]}},decodeTransaction:function(t){var e,r,n,s;const i=new pt(Gt.mainModuleUpgradable.abi);if(t.transactions.length!==1)throw new Error("Invalid transaction bundle, expected 1 transaction");const o=t.transactions[0].data;if(!o)throw new Error("Invalid transaction bundle, expected data");const a=i.decodeFunctionData(i.getFunction("updateImageHash"),o);if(!a)throw new Error("Invalid transaction bundle, expected valid data");if(t.transactions[0].to!==t.entrypoint)throw new Error("Invalid transaction bundle, expected to be sent to entrypoint");if(t.transactions[0].delegateCall)throw new Error("Invalid transaction bundle, expected not to be a delegateCall");if(!t.transactions[0].revertOnError)throw new Error("Invalid transaction bundle, expected revertOnError");if(BigInt((e=(r=t.transactions[0])==null?void 0:r.value)!=null?e:0)!==0n)throw new Error("Invalid transaction bundle, expected value to be 0");if(BigInt((n=(s=t.transactions[0])==null?void 0:s.gasLimit)!=null?n:0)!==0n)throw new Error("Invalid transaction bundle, expected value to be 0");return{address:t.entrypoint,newImageHash:a[0],kind:void 0}}},toJSON:function(t){return JSON.stringify({version:t.version,threshold:BigInt(t.threshold).toString(),checkpoint:BigInt(t.checkpoint).toString(),tree:Dh(t.tree)})},fromJSON:function(t){const e=JSON.parse(t);return{version:e.version,threshold:BigInt(e.threshold),checkpoint:BigInt(e.checkpoint),tree:Bh(e.tree)}},editConfig:function(t,e){var r,n;const s=Bu(t.tree);if(e.add)for(const i of e.add)s.find(o=>qr(o)&&o.address===i.address)||s.push({address:i.address,weight:i.weight});if(e.remove)for(const i of e.remove){const o=s.findIndex(a=>qr(a)&&a.address===i);o>=0&&s.splice(o,1)}return{version:t.version,threshold:(r=e.threshold)!=null?r:t.threshold,checkpoint:(n=e.checkpoint)!=null?n:t.checkpoint,tree:Ek(s)}},buildStubSignature:function(t,e){const r=new Map;for(const[s,i]of e.entries()){r.set(s,{signature:i,isDynamic:!0});const{encoded:o,weight:a}=Ih(t,r,[],0);if(a>=BigInt(t.threshold))return o}const n=O2(t.tree);for(const{address:s}of n.sort(({weight:i},{weight:o})=>i-o)){r.set(s,{signature:"0x4e82f02f388a12b5f9d29eaf2452dd040c0ee5804b4e504b4dd64e396c6c781f2c7624195acba242dd825bfd25a290912e3c230841fd55c9a734c4de8d9899451b02",isDynamic:!1});const{encoded:o,weight:a}=Ih(t,r,[],0);if(a>=BigInt(t.threshold))return o}return Ih(t,r,[],0).encoded}};var ice=Object.freeze({__proto__:null,isSignerLeaf:qr,isSubdigestLeaf:mo,topologyToJSON:Dh,topologyFromJSON:Bh,isNestedLeaf:xo,isNodeLeaf:bo,isLeaf:xk,isNode:js,isTopology:tce,encodeSignerLeaf:aD,decodeSignerLeaf:cD,isEncodedSignerLeaf:lD,hashNode:Yn,leftFace:rce,isWalletConfig:nce,imageHash:bk,isSimpleNestedMember:uD,topologyToMembers:Bu,hasUnknownNodes:I2,toSimpleWalletConfig:sce,legacyTopologyBuilder:wk,merkleTopologyBuilder:Ck,optimized2SignersTopologyBuilder:Ek,toWalletConfig:dD,hasSubdigest:Cv,signersOf:O2,isComplete:Ev,ConfigCoder:Yg}),oce=Object.freeze({__proto__:null});const ace={config:Yg,signature:Jg},hD=2,pD={version:hD,factory:"0xFaA5c0b14d1bED5C888Ca655B9a8A5911F78eF4A",guestModule:"0xfea230Ee243f88BC698dD8f1aE93F8301B6cdfaE",mainModule:"0xfBf8f1A5E00034762D928f46d438B947f5d4065d",mainModuleUpgradable:"0x4222dcA3974E39A8b41c411FeDDE9b09Ae14b911",walletCreationCode:"0x603a600e3d39601a805130553df3363d3d373d3d3d363d30545af43d82803e903d91601857fd5bf3"};var je=Object.freeze({__proto__:null,config:ice,signature:ece,context:oce,chained:Zae,coders:ace,version:hD,DeployedWalletContext:pD});function R2(t,e){const r=Ne(De(["bytes","bytes32"],[t.walletCreationCode,rs(t.mainModule,32)])),n=Ne(De(["bytes1","address","bytes32","bytes32"],["0xff",t.factory,e,r]));return Te(st(n,12))}async function cce(t,e,r,n,s,i){return(await Promise.all(SD.map(async a=>{try{const c=a.signature.SignatureCoder.decode(H(r)),l=await a.signature.SignatureCoder.recover(c,{address:t,digest:H(e),chainId:n},s),u=a.config.ConfigCoder.imageHashOf(l.config);if(R2(i[a.version],u).toLowerCase()===t.toLowerCase())return!0;const d=await a.signature.SignatureCoder.recover(c,{address:t,digest:H(e),chainId:n},s),h=a.config.ConfigCoder.imageHashOf(d.config);return R2(i[a.version],h).toLowerCase()===t.toLowerCase()}catch{}return!1}))).some(a=>a)}function lce(t){const e=Object.keys(t).length;for(let r=1;r<=e;r++){const n=t[r];if(!n||n.version!==r)return!1}return!0}function uce(t){const e=Object.keys(t).length;return t[e]}const fce={1:ZM,2:pD};var dce=Object.freeze({__proto__:null,addressOf:R2,isValidCounterfactual:cce,isValidVersionedContext:lce,latestContext:uce,defaultContexts:fce});const Xg=`tuple( bool delegateCall, bool revertOnError, uint256 gasLimit, address target, uint256 value, bytes data -)[]`;function fce(t,e,r,n){return yr({},t,{chainId:r,intent:{id:n,wallet:e}})}function dce(t){return Ne(Kt.defaultAbiCoder().encode(["address","uint256","bytes32"],[t.intent.wallet,t.chainId,t.intent.id]))}function hce(t){const e=Kt.defaultAbiCoder().decode(["uint256",Jg],t);if(e.length!==2||!e[0]||!e[1])throw new Error("Invalid meta transaction data");return[e[0],e[1]]}function hD(t,e){return Kt.defaultAbiCoder().encode(["uint256",Jg],[t,O0(e)])}function pD(t,e){return Ne(hD(t,e))}function pce(t,e,r,n){return A1({address:t,chainId:e,digest:pD(r,n)})}function yce(t,e,r){return A1({address:t,chainId:e,digest:Ne(Kt.defaultAbiCoder().encode(["string",Jg],["guest:",O0(r)]))})}function yD(t,e){return e.map(r=>Ck(t,r))}function Ck(t,e){if(e.to&&e.to!==mi)return{nonce:Bh(e.nonce)?void 0:BigInt(e.nonce),transaction:{delegateCall:!1,revertOnError:!1,gasLimit:Bh(e.gasLimit)?void 0:BigInt(e.gasLimit),to:e.to,value:BigInt(e.value||0),data:e.data||"0x"}};{const r=new pt(Gt.mainModule.abi),n=r.encodeFunctionData(r.getFunction("createContract"),[e.data]);return{nonce:typeof e.nonce=="number"?BigInt(e.nonce):void 0,transaction:{delegateCall:!1,revertOnError:!1,gasLimit:Bh(e.gasLimit)?void 0:BigInt(e.gasLimit),to:t,value:BigInt(e.value||0),data:n}}}}function Yg(t){return t.delegateCall!==void 0||t.revertOnError!==void 0}function vD(t){return t.every(Yg)}function O0(t){return t.map(e=>{var r;return{delegateCall:e.delegateCall===!0,revertOnError:e.revertOnError===!0,gasLimit:Bh(e.gasLimit)?0n:BigInt(e.gasLimit),target:(r=e.to)!=null?r:mi,value:Bh(e.value)?0n:e.value,data:e.data||"0x"}})}function vce(t){return t.map(e=>({delegateCall:e.delegateCall,revertOnError:e.revertOnError,gasLimit:e.gasLimit,to:e.target,value:e.value,data:e.data}))}function gce(t,e){const r=BigInt(t),n=BigInt(e),s=2n**96n;if(n/s!==0n)throw new Error("Space already encoded");return n+r*s}function mce(t){const e=BigInt(t),r=2n**96n;return[e/r,e%r]}function xce(t,e){return Array.isArray(e)?vD(e)?e:yD(t,e).map(n=>n.transaction):Yg(e)?[e]:[Ck(t,e).transaction]}function gD(t){return t!==void 0&&t.entrypoint!==void 0&&t.chainId!==void 0&&t.transactions!==void 0&&t.nonce!==void 0&&t.intent!==void 0&&t.intent.id!==void 0&&t.intent.wallet!==void 0&&Array.isArray(t.transactions)&&t.transactions.reduce((e,r)=>e&&Yg(r),!0)}function mD(t){return t!==void 0&&t.signature!==void 0&&t.signature!==""&&gD(t)}function bce(t){const e=new pt(Gt.mainModule.abi);return e.encodeFunctionData(e.getFunction("execute"),mD(t)?[O0(t.transactions),t.nonce,t.signature]:[O0(t.transactions),0,new Uint8Array([])])}const xD="0x61c2926c",bD=`tuple( +)[]`;function hce(t,e,r,n){return yr({},t,{chainId:r,intent:{id:n,wallet:e}})}function pce(t){return Ne(Kt.defaultAbiCoder().encode(["address","uint256","bytes32"],[t.intent.wallet,t.chainId,t.intent.id]))}function yce(t){const e=Kt.defaultAbiCoder().decode(["uint256",Xg],t);if(e.length!==2||!e[0]||!e[1])throw new Error("Invalid meta transaction data");return[e[0],e[1]]}function yD(t,e){return Kt.defaultAbiCoder().encode(["uint256",Xg],[t,R0(e)])}function vD(t,e){return Ne(yD(t,e))}function vce(t,e,r,n){return S1({address:t,chainId:e,digest:vD(r,n)})}function gce(t,e,r){return S1({address:t,chainId:e,digest:Ne(Kt.defaultAbiCoder().encode(["string",Xg],["guest:",R0(r)]))})}function gD(t,e){return e.map(r=>kk(t,r))}function kk(t,e){if(e.to&&e.to!==xi)return{nonce:Lh(e.nonce)?void 0:BigInt(e.nonce),transaction:{delegateCall:!1,revertOnError:!1,gasLimit:Lh(e.gasLimit)?void 0:BigInt(e.gasLimit),to:e.to,value:BigInt(e.value||0),data:e.data||"0x"}};{const r=new pt(Gt.mainModule.abi),n=r.encodeFunctionData(r.getFunction("createContract"),[e.data]);return{nonce:typeof e.nonce=="number"?BigInt(e.nonce):void 0,transaction:{delegateCall:!1,revertOnError:!1,gasLimit:Lh(e.gasLimit)?void 0:BigInt(e.gasLimit),to:t,value:BigInt(e.value||0),data:n}}}}function Zg(t){return t.delegateCall!==void 0||t.revertOnError!==void 0}function mD(t){return t.every(Zg)}function R0(t){return t.map(e=>{var r;return{delegateCall:e.delegateCall===!0,revertOnError:e.revertOnError===!0,gasLimit:Lh(e.gasLimit)?0n:BigInt(e.gasLimit),target:(r=e.to)!=null?r:xi,value:Lh(e.value)?0n:e.value,data:e.data||"0x"}})}function mce(t){return t.map(e=>({delegateCall:e.delegateCall,revertOnError:e.revertOnError,gasLimit:e.gasLimit,to:e.target,value:e.value,data:e.data}))}function xce(t,e){const r=BigInt(t),n=BigInt(e),s=2n**96n;if(n/s!==0n)throw new Error("Space already encoded");return n+r*s}function bce(t){const e=BigInt(t),r=2n**96n;return[e/r,e%r]}function wce(t,e){return Array.isArray(e)?mD(e)?e:gD(t,e).map(n=>n.transaction):Zg(e)?[e]:[kk(t,e).transaction]}function xD(t){return t!==void 0&&t.entrypoint!==void 0&&t.chainId!==void 0&&t.transactions!==void 0&&t.nonce!==void 0&&t.intent!==void 0&&t.intent.id!==void 0&&t.intent.wallet!==void 0&&Array.isArray(t.transactions)&&t.transactions.reduce((e,r)=>e&&Zg(r),!0)}function bD(t){return t!==void 0&&t.signature!==void 0&&t.signature!==""&&xD(t)}function Cce(t){const e=new pt(Gt.mainModule.abi);return e.encodeFunctionData(e.getFunction("execute"),bD(t)?[R0(t.transactions),t.nonce,t.signature]:[R0(t.transactions),0,new Uint8Array([])])}const wD="0x61c2926c",CD=`tuple( bool delegateCall, bool revertOnError, uint256 gasLimit, address target, uint256 value, bytes data -)[]`,O2=(t,e)=>{const r=[],n=new pt(Gt.mainModule.abi);for(const s of e){const i=Q(s.data||"0x");if(s.to===t&&H(i.slice(0,4))===xD){const o=i.slice(4),a=Kt.defaultAbiCoder().decode([bD],o)[0];r.push(...O2(s.to,a.map(c=>yr({},c,{to:c.target}))))}else try{const o=n.decodeFunctionData("execute",i)[0],a=O2(t,o.map(c=>yr({},c.toObject(),{to:c.target})));r.push(...a)}catch{r.push(s)}}return r},Bh=t=>t==null;var wce=Object.freeze({__proto__:null,MetaTransactionsType:Jg,intendTransactionBundle:fce,intendedTransactionID:dce,unpackMetaTransactionsData:hce,packMetaTransactionsData:hD,digestOfTransactions:pD,subdigestOfTransactions:pce,subdigestOfGuestModuleTransactions:yce,toSequenceTransactions:yD,toSequenceTransaction:Ck,isSequenceTransaction:Yg,hasSequenceTransactions:vD,sequenceTxAbiEncode:O0,fromTxAbiEncode:vce,encodeNonce:gce,decodeNonce:mce,fromTransactionish:xce,isTransactionBundle:gD,isSignedTransactionBundle:mD,encodeBundleExecData:bce,selfExecuteSelector:xD,selfExecuteAbi:bD,unwind:O2});const wD="0x608060405234801561001057600080fd5b5060405161124a38038061124a83398101604081905261002f91610124565b600060405161003d906100dd565b604051809103906000f080158015610059573d6000803e3d6000fd5b5090506000816001600160a01b0316638f0684308686866040518463ffffffff1660e01b815260040161008e939291906101fb565b6020604051808303816000875af11580156100ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100d19190610244565b9050806000526001601ff35b610fdc8061026e83390190565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561011b578181015183820152602001610103565b50506000910152565b60008060006060848603121561013957600080fd5b83516001600160a01b038116811461015057600080fd5b6020850151604086015191945092506001600160401b038082111561017457600080fd5b818601915086601f83011261018857600080fd5b81518181111561019a5761019a6100ea565b604051601f8201601f19908116603f011681019083821181831017156101c2576101c26100ea565b816040528281528960208487010111156101db57600080fd5b6101ec836020830160208801610100565b80955050505050509250925092565b60018060a01b0384168152826020820152606060408201526000825180606084015261022e816080850160208701610100565b601f01601f191691909101608001949350505050565b60006020828403121561025657600080fd5b8151801515811461026657600080fd5b939250505056fe608060405234801561001057600080fd5b50610fbc806100206000396000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c806376be4cea1161005057806376be4cea146100a65780638f068430146100b957806398ef1ed8146100cc57600080fd5b80631c6453271461006c5780633d787b6314610093575b600080fd5b61007f61007a366004610ad4565b6100df565b604051901515815260200160405180910390f35b61007f6100a1366004610ad4565b61023d565b61007f6100b4366004610b3e565b61031e565b61007f6100c7366004610ad4565b6108e1565b61007f6100da366004610ad4565b61096e565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea9061012890889088908890889088908190600401610bc3565b6020604051808303816000875af1925050508015610181575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261017e91810190610c45565b60015b610232573d8080156101af576040519150601f19603f3d011682016040523d82523d6000602084013e6101b4565b606091505b508051600181900361022757816000815181106101d3576101d3610c69565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f0100000000000000000000000000000000000000000000000000000000000000149250610235915050565b600092505050610235565b90505b949350505050565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea906102879088908890889088906001908990600401610bc3565b6020604051808303816000875af19250505080156102e0575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526102dd91810190610c45565b60015b610232573d80801561030e576040519150601f19603f3d011682016040523d82523d6000602084013e610313565b606091505b506000915050610235565b600073ffffffffffffffffffffffffffffffffffffffff87163b6060827f64926492649264926492649264926492649264926492649264926492649264928888610369602082610c98565b610375928b9290610cd8565b61037e91610d02565b1490508015610484576000606089828a610399602082610c98565b926103a693929190610cd8565b8101906103b39190610e18565b955090925090508415806103c45750865b1561047d576000808373ffffffffffffffffffffffffffffffffffffffff16836040516103f19190610eb2565b6000604051808303816000865af19150503d806000811461042e576040519150601f19603f3d011682016040523d82523d6000602084013e610433565b606091505b50915091508161047a57806040517f9d0d6e2d0000000000000000000000000000000000000000000000000000000081526004016104719190610f18565b60405180910390fd5b50505b50506104be565b87878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509294505050505b80806104ca5750600083115b156106bb576040517f1626ba7e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b1690631626ba7e90610523908c908690600401610f2b565b602060405180830381865afa92505050801561057a575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261057791810190610f44565b60015b61060f573d8080156105a8576040519150601f19603f3d011682016040523d82523d6000602084013e6105ad565b606091505b50851580156105bc5750600084115b156105db576105d08b8b8b8b8b600161031e565b9450505050506108d7565b806040517f6f2a95990000000000000000000000000000000000000000000000000000000081526004016104719190610f18565b7fffffffff0000000000000000000000000000000000000000000000000000000081167f1626ba7e000000000000000000000000000000000000000000000000000000001480158161065f575086155b801561066b5750600085115b1561068b5761067f8c8c8c8c8c600161031e565b955050505050506108d7565b841580156106965750825b80156106a0575087155b156106af57806000526001601ffd5b94506108d79350505050565b6041871461074b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f5369676e617475726556616c696461746f72237265636f7665725369676e657260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610471565b600061075a6020828a8c610cd8565b61076391610d02565b90506000610775604060208b8d610cd8565b61077e91610d02565b905060008a8a604081811061079557610795610c69565b919091013560f81c915050601b81148015906107b557508060ff16601c14155b15610842576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f5369676e617475726556616c696461746f723a20696e76616c6964207369676e60448201527f617475726520762076616c7565000000000000000000000000000000000000006064820152608401610471565b6040805160008152602081018083528e905260ff831691810191909152606081018490526080810183905273ffffffffffffffffffffffffffffffffffffffff8e169060019060a0016020604051602081039080840390855afa1580156108ad573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff161496505050505050505b9695505050505050565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea9061092b9088908890889088906001908990600401610bc3565b6020604051808303816000875af115801561094a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102329190610c45565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea906109b790889088908890889088908190600401610bc3565b6020604051808303816000875af1925050508015610a10575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610a0d91810190610c45565b60015b610232573d808015610a3e576040519150601f19603f3d011682016040523d82523d6000602084013e610a43565b606091505b5080516001819003610a6257816000815181106101d3576101d3610c69565b8082fd5b73ffffffffffffffffffffffffffffffffffffffff81168114610a8857600080fd5b50565b60008083601f840112610a9d57600080fd5b50813567ffffffffffffffff811115610ab557600080fd5b602083019150836020828501011115610acd57600080fd5b9250929050565b60008060008060608587031215610aea57600080fd5b8435610af581610a66565b935060208501359250604085013567ffffffffffffffff811115610b1857600080fd5b610b2487828801610a8b565b95989497509550505050565b8015158114610a8857600080fd5b60008060008060008060a08789031215610b5757600080fd5b8635610b6281610a66565b955060208701359450604087013567ffffffffffffffff811115610b8557600080fd5b610b9189828a01610a8b565b9095509350506060870135610ba581610b30565b91506080870135610bb581610b30565b809150509295509295509295565b73ffffffffffffffffffffffffffffffffffffffff8716815285602082015260a060408201528360a0820152838560c0830137600060c085830181019190915292151560608201529015156080820152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016909101019392505050565b600060208284031215610c5757600080fd5b8151610c6281610b30565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b81810381811115610cd2577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b92915050565b60008085851115610ce857600080fd5b83861115610cf557600080fd5b5050820193919092039150565b80356020831015610cd2577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602084900360031b1b1692915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f830112610d7e57600080fd5b813567ffffffffffffffff80821115610d9957610d99610d3e565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715610ddf57610ddf610d3e565b81604052838152866020858801011115610df857600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600060608486031215610e2d57600080fd5b8335610e3881610a66565b9250602084013567ffffffffffffffff80821115610e5557600080fd5b610e6187838801610d6d565b93506040860135915080821115610e7757600080fd5b50610e8486828701610d6d565b9150509250925092565b60005b83811015610ea9578181015183820152602001610e91565b50506000910152565b60008251610ec4818460208701610e8e565b9190910192915050565b60008151808452610ee6816020860160208601610e8e565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000610c626020830184610ece565b8281526040602082015260006102356040830184610ece565b600060208284031215610f5657600080fd5b81517fffffffff0000000000000000000000000000000000000000000000000000000081168114610c6257600080fdfea26469706673582212201a72aed4b15ffb05b6502997a9bb655992e06590bd26b336dfbb153d7ff6f34b64736f6c63430008120033",Cce="0x6492649264926492649264926492649264926492649264926492649264926492";async function CD(t,e,r,n){try{return await t.call({data:Le([wD,Kt.defaultAbiCoder().encode(["address","bytes32","bytes"],[e,r,n])])})==="0x01"}catch{return!1}}var Ece=Object.freeze({__proto__:null,EIP_6492_OFFCHAIN_DEPLOY_CODE:wD,EIP_6492_SUFFIX:Cce,validateEIP6492Offchain:CD});class kce{constructor(e){this.provider=e,this.isDeployedCache=new Set}module(e){return new dn(e,[...Gt.mainModuleUpgradable.abi,...Gt.mainModule.abi,...Gt.erc1271.abi],this.provider)}async isDeployed(e){if(this.isDeployedCache.has(e))return!0;const n=(await this.provider.getCode(e).then(s=>Q(s))).length!==0;return n&&this.isDeployedCache.add(e),n}async implementation(e){const r=Kt.defaultAbiCoder().encode(["address"],[e]),n=await this.provider.getStorage(e,r).then(s=>Q(s));if(n.length===20)return Te(H(n));if(n.length===32)return Kt.defaultAbiCoder().decode(["address"],n)[0]}async imageHash(e){try{return await this.module(e).imageHash()}catch{}}async nonce(e,r=0){try{return await this.module(e).readNonce(r)}catch(n){if(!await this.isDeployed(e))return 0;throw n}}async isValidSignature(e,r,n){return CD(this.provider,e,r,n)}}var Ace=Object.freeze({__proto__:null,OnChainReader:kce});function Sce(t){return t&&t.address&&t.digest&&t.chainId!==void 0&&t.config}var ye=Object.freeze({__proto__:null,config:Fae,signature:Uae,context:uce,signer:Gae,EIP1271:Vae,transaction:wce,reader:Ace,EIP6492:Ece,isWalletSignRequestMetadata:Sce});const R2=[{config:fk,signature:uk},{config:Qg,signature:Kg}];function ED(t){const e=t-1;if(e<0||e>=R2.length)throw new Error(`No coder for version: ${t}`);return R2[e]}function Tce(t){return ED(t)}var dr=Object.freeze({__proto__:null,ALL_CODERS:R2,coderFor:ED,genericCoderFor:Tce});const Ur="2.0.0",kD=[Vi,je],Pce=Object.freeze(Object.defineProperty({__proto__:null,VERSION:Ur,allVersions:kD,commons:ye,universal:dr,v1:Vi,v2:je},Symbol.toStringTag,{value:"Module"}));function Ice(t,e,r){for(let n=0;ne.version)&&(e=r);if(e===void 0)throw new Error("No migrations");return e}async getAllMigratePresignedTransaction(e){const{address:r,fromImageHash:n,fromVersion:s,chainId:i}=e;let o=n,a=s;const c=Object.values(this.contexts),l=[];for(let u=1;uQ(i).length===0))return f3;if(!n.provider)throw new Error("signer.provider is not set, but is required");return n.provider.estimateGas({from:e,to:s.to,data:s.data,value:s.value})}))).map(s=>({executed:!0,succeeded:!0,gasUsed:Number(s),gasLimit:Number(s)}))}async getNonce(e,r,n){if(!this.provider)throw new Error("provider is not set");if(await this.provider.getCode(e)==="0x")return 0;r===void 0&&(r=0);const i=await new dn(e,Gt.mainModule.abi,this.provider).readNonce(r,{blockTag:n});return ye.transaction.encodeNonce(r,i)}async wait(e,r,n=this.waitPollRate,s=5){var i=this;typeof e!="string"&&(e=ye.transaction.intendedTransactionID(e));let o=!1;const a=async function(u,f){let d=0;for(;!o;){try{return await u()}catch(h){if(d++,s!==void 0&&d>=s)throw Se.error(`giving up after ${d} failed attempts${f?`: ${f}`:""}`,h),h;Se.warn(`attempt #${d} failed${f?`: ${f}`:""}`,h)}n>0&&await new Promise(h=>setTimeout(h,n))}throw new Error(`timed out after ${d} failed attempts${f?`: ${f}`:""}`)},c=async function(){let u=i.fromBlockLog;if(u<0&&(u=await a(()=>i.provider.getBlockNumber(),"unable to get latest block number")+u),typeof e!="string")throw new Error("impossible");const f=e.replace("0x","");for(;!o;){const d=await a(()=>i.provider.getBlockNumber(),"unable to get latest block number"),h=await a(()=>i.provider.getLogs({fromBlock:Math.max(0,u-i.deltaBlocksLog),toBlock:d,topics:["0x1f180c27086c7a39ea2a7b25239d1ab92348f07ca7bb59d1438fcf527568f881"]}),`unable to get NonceChange logs for blocks ${Math.max(0,u-i.deltaBlocksLog)} to ${d}`);u=d;const p=(await Promise.all(h.map(b=>a(()=>i.provider.getTransactionReceipt(b.transactionHash),`unable to get receipt for transaction ${b.transactionHash}`)))).find(b=>b==null?void 0:b.logs.find(v=>v.topics.length===0&&v.data.replace("0x","")===f||v.topics.length===1&&v.topics[0]==="0x3dbd1590ea96dd3253a91f24e64e3a502e1225d602a5731357bc12643070ccd7"&&v.data.length>=64&&v.data.replace("0x","").startsWith(f)));if(p){const b=await a(()=>i.provider.getTransaction(p.hash),`unable to get transaction ${p.hash}`);if(!b)throw new Error(`Transaction response not found for ${e}`);const v=b;return v.receipt=p,v}o||await new Promise(b=>setTimeout(b,n))}throw new Error(`Timeout waiting for transaction receipt ${e}`)};return r!==void 0?Promise.race([c(),new Promise((l,u)=>setTimeout(()=>{o=!0,u(`Timeout waiting for transaction receipt ${e}`)},r))]):c()}}function Bce(t){return typeof t=="object"&&t.signer instanceof lo}class Lce extends ID{constructor(e){if(super(e instanceof lo?{provider:e.provider}:wl({},e,{provider:e.signer.provider})),this.signer=void 0,this.txnOptions=void 0,this.signer=e instanceof lo?e:e.signer,!this.signer.provider)throw new Error("Signer must have a provider")}async getFeeOptions(e,...r){return{options:[]}}async getFeeOptionsRaw(e,r,n){return{options:[]}}async gasRefundOptions(e,...r){const{options:n}=await this.getFeeOptions(e,...r);return n}setTransactionOptions(e){this.txnOptions=e}async relay(e,r,n=!0){r!==void 0&&Se.warn("LocalRelayer doesn't accept fee quotes");const s=ye.transaction.encodeBundleExecData(e),i=this.signer.sendTransaction(wl({to:e.entrypoint,data:s},this.txnOptions,{gasLimit:9e6}));if(n){const o=await i;return o.receipt=await o.wait(),o}else return i}}const jce="v1",Fce="v0.4.1",Uce="1e27d0fd295aa5897878939595ef0c6adc54b1a3";let ca=function(t){return t.UNKNOWN="UNKNOWN",t.DROPPED="DROPPED",t.QUEUED="QUEUED",t.SENT="SENT",t.SUCCEEDED="SUCCEEDED",t.PARTIALLY_FAILED="PARTIALLY_FAILED",t.FAILED="FAILED",t}({}),$ce=function(t){return t.SEND="SEND",t.RECEIVE="RECEIVE",t.BRIDGE_DEPOSIT="BRIDGE_DEPOSIT",t.BRIDGE_WITHDRAW="BRIDGE_WITHDRAW",t.BURN="BURN",t.UNKNOWN="UNKNOWN",t}({}),Wce=function(t){return t.UNKNOWN="UNKNOWN",t.ERC20_TOKEN="ERC20_TOKEN",t.ERC1155_TOKEN="ERC1155_TOKEN",t}({}),Vce=function(t){return t.DESC="DESC",t.ASC="ASC",t}({});class OD{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Relayer/",this.ping=(n,s)=>this.fetch(this.url("Ping"),Je({},n,s)).then(i=>Ye(i).then(o=>({status:o.status})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),Je({},n,s)).then(i=>Ye(i).then(o=>({version:o.version})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),Je({},n,s)).then(i=>Ye(i).then(o=>({status:o.status})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.getSequenceContext=(n,s)=>this.fetch(this.url("GetSequenceContext"),Je({},n,s)).then(i=>Ye(i).then(o=>({data:o.data})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.getChainID=(n,s)=>this.fetch(this.url("GetChainID"),Je({},n,s)).then(i=>Ye(i).then(o=>({chainID:o.chainID})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.sendMetaTxn=(n,s,i)=>this.fetch(this.url("SendMetaTxn"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,txnHash:a.txnHash})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getMetaTxnNonce=(n,s,i)=>this.fetch(this.url("GetMetaTxnNonce"),Je(n,s,i)).then(o=>Ye(o).then(a=>({nonce:a.nonce})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getMetaTxnReceipt=(n,s,i)=>this.fetch(this.url("GetMetaTxnReceipt"),Je(n,s,i)).then(o=>Ye(o).then(a=>({receipt:a.receipt})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.simulate=(n,s,i)=>this.fetch(this.url("Simulate"),Je(n,s,i)).then(o=>Ye(o).then(a=>({results:a.results})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.updateMetaTxnGasLimits=(n,s,i)=>this.fetch(this.url("UpdateMetaTxnGasLimits"),Je(n,s,i)).then(o=>Ye(o).then(a=>({payload:a.payload})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.feeTokens=(n,s)=>this.fetch(this.url("FeeTokens"),Je({},n,s)).then(i=>Ye(i).then(o=>({isFeeRequired:o.isFeeRequired,tokens:o.tokens})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.feeOptions=(n,s,i)=>this.fetch(this.url("FeeOptions"),Je(n,s,i)).then(o=>Ye(o).then(a=>({options:a.options,sponsored:a.sponsored,quote:a.quote})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getMetaTxnNetworkFeeOptions=(n,s,i)=>this.fetch(this.url("GetMetaTxnNetworkFeeOptions"),Je(n,s,i)).then(o=>Ye(o).then(a=>({options:a.options})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getMetaTransactions=(n,s,i)=>this.fetch(this.url("GetMetaTransactions"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.sentTransactions=(n,s,i)=>this.fetch(this.url("SentTransactions"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.pendingTransactions=(n,s,i)=>this.fetch(this.url("PendingTransactions"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getGasTank=(n,s,i)=>this.fetch(this.url("GetGasTank"),Je(n,s,i)).then(o=>Ye(o).then(a=>({gasTank:a.gasTank})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.addGasTank=(n,s,i)=>this.fetch(this.url("AddGasTank"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,gasTank:a.gasTank})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.updateGasTank=(n,s,i)=>this.fetch(this.url("UpdateGasTank"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,gasTank:a.gasTank})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getGasSponsor=(n,s,i)=>this.fetch(this.url("GetGasSponsor"),Je(n,s,i)).then(o=>Ye(o).then(a=>({gasSponsor:a.gasSponsor})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.addressGasSponsors=(n,s,i)=>this.fetch(this.url("AddressGasSponsors"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,gasSponsors:a.gasSponsors})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.listGasSponsors=(n,s,i)=>this.fetch(this.url("ListGasSponsors"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,gasSponsors:a.gasSponsors})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.addGasSponsor=(n,s,i)=>this.fetch(this.url("AddGasSponsor"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,gasSponsor:a.gasSponsor})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.updateGasSponsor=(n,s,i)=>this.fetch(this.url("UpdateGasSponsor"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,gasSponsor:a.gasSponsor})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.removeGasSponsor=(n,s,i)=>this.fetch(this.url("RemoveGasSponsor"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.reportGasSponsorUsage=(n,s,i)=>this.fetch(this.url("ReportGasSponsorUsage"),Je(n,s,i)).then(o=>Ye(o).then(a=>({gasSponsorUsage:a.gasSponsorUsage})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.nextGasTankBalanceAdjustmentNonce=(n,s,i)=>this.fetch(this.url("NextGasTankBalanceAdjustmentNonce"),Je(n,s,i)).then(o=>Ye(o).then(a=>({nonce:a.nonce})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.adjustGasTankBalance=(n,s,i)=>this.fetch(this.url("AdjustGasTankBalance"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,adjustment:a.adjustment})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getGasTankBalanceAdjustment=(n,s,i)=>this.fetch(this.url("GetGasTankBalanceAdjustment"),Je(n,s,i)).then(o=>Ye(o).then(a=>({adjustment:a.adjustment})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.listGasTankBalanceAdjustments=(n,s,i)=>this.fetch(this.url("ListGasTankBalanceAdjustments"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,adjustments:a.adjustments})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const Je=(t={},e={},r=null)=>({method:"POST",headers:wl({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),Ye=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),Ek.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(zce[n]||Bt).new(r)}return r});let Bt=class RD extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,RD.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},ND=class _D extends Bt{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,_D.prototype)}},Qe=class MD extends Bt{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,MD.prototype)}},DD=class BD extends Bt{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,BD.prototype)}},LD=class jD extends Bt{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,jD.prototype)}},FD=class UD extends Bt{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,UD.prototype)}},Ek=class $D extends Bt{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,$D.prototype)}},WD=class VD extends Bt{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,VD.prototype)}},HD=class zD extends Bt{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,zD.prototype)}},GD=class qD extends Bt{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,qD.prototype)}},KD=class QD extends Bt{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,QD.prototype)}},JD=class YD extends Bt{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,YD.prototype)}},XD=class ZD extends Bt{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,ZD.prototype)}},eB=class tB extends Bt{constructor(e="PermissionDenied",r=1001,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,tB.prototype)}},rB=class nB extends Bt{constructor(e="MethodNotFound",r=1003,n="Method not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,nB.prototype)}},sB=class iB extends Bt{constructor(e="Aborted",r=1005,n="Request aborted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,iB.prototype)}},oB=class aB extends Bt{constructor(e="InvalidArgument",r=2001,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,aB.prototype)}},cB=class lB extends Bt{constructor(e="Unavailable",r=2002,n="Unavailable resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lB.prototype)}},uB=class fB extends Bt{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,fB.prototype)}},dB=class hB extends Bt{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,hB.prototype)}},Hce=function(t){return t.WebrpcEndpoint="WebrpcEndpoint",t.WebrpcRequestFailed="WebrpcRequestFailed",t.WebrpcBadRoute="WebrpcBadRoute",t.WebrpcBadMethod="WebrpcBadMethod",t.WebrpcBadRequest="WebrpcBadRequest",t.WebrpcBadResponse="WebrpcBadResponse",t.WebrpcServerPanic="WebrpcServerPanic",t.WebrpcInternalError="WebrpcInternalError",t.WebrpcClientDisconnected="WebrpcClientDisconnected",t.WebrpcStreamLost="WebrpcStreamLost",t.WebrpcStreamFinished="WebrpcStreamFinished",t.Unauthorized="Unauthorized",t.PermissionDenied="PermissionDenied",t.MethodNotFound="MethodNotFound",t.Aborted="Aborted",t.InvalidArgument="InvalidArgument",t.Unavailable="Unavailable",t.QueryFailed="QueryFailed",t.NotFound="NotFound",t}({});const zce={0:ND,[-1]:Qe,[-2]:DD,[-3]:LD,[-4]:FD,[-5]:Ek,[-6]:WD,[-7]:HD,[-8]:GD,[-9]:KD,[-10]:JD,1e3:XD,1001:eB,1003:rB,1005:sB,2001:oB,2002:cB,2003:uB,3e3:dB};var id=Object.freeze({__proto__:null,WebRPCVersion:jce,WebRPCSchemaVersion:Fce,WebRPCSchemaHash:Uce,ETHTxnStatus:ca,TransferType:$ce,FeeTokenType:Wce,SortOrder:Vce,Relayer:OD,WebrpcError:Bt,WebrpcEndpointError:ND,WebrpcRequestFailedError:Qe,WebrpcBadRouteError:DD,WebrpcBadMethodError:LD,WebrpcBadRequestError:FD,WebrpcBadResponseError:Ek,WebrpcServerPanicError:WD,WebrpcInternalErrorError:HD,WebrpcClientDisconnectedError:GD,WebrpcStreamLostError:KD,WebrpcStreamFinishedError:JD,UnauthorizedError:XD,PermissionDeniedError:eB,MethodNotFoundError:rB,AbortedError:sB,InvalidArgumentError:oB,UnavailableError:cB,QueryFailedError:uB,NotFoundError:dB,errors:Hce});const Gce=[ca.DROPPED,ca.SUCCEEDED,ca.PARTIALLY_FAILED,ca.FAILED],qce=[ca.DROPPED,ca.PARTIALLY_FAILED,ca.FAILED];function Kce(t){return t.url!==void 0&&typeof t.url=="string"&&t.provider!==void 0&&t.provider instanceof co}const Qce=globalThis.fetch;class pB{constructor(e){if(this.options=e,this.service=void 0,this.provider=void 0,this._fetch=(r,n)=>{const s={},{jwtAuth:i,projectAccessKey:o}=this.options;return i&&i.length>0&&(s.Authorization=`BEARER ${i}`),o&&o.length>0&&(s["X-Access-Key"]=o),n.headers=wl({},n.headers,s),Qce(r,n)},this.service=new OD(e.url,this._fetch),e.provider instanceof co)this.provider=e.provider;else{const{jwtAuth:r,projectAccessKey:n}=this.options,s=I0(e.provider.url,n,r);this.provider=new zt(s,void 0,{staticNetwork:!0})}}async waitReceipt(e,r=1e3,n=5,s){typeof e!="string"&&(e=ye.transaction.intendedTransactionID(e)),Se.info(`[rpc-relayer/waitReceipt] waiting for ${e}`);let i=0;for(;s===void 0||!s();){try{const{receipt:o}=await this.service.getMetaTxnReceipt({metaTxID:e});if(o&&o.txnReceipt&&o.txnReceipt!=="null"&&Gce.includes(o.status))return{receipt:o}}catch(o){if(i++,i===n)throw o}(s===void 0||!s())&&await new Promise(o=>setTimeout(o,r))}throw new Error(`Cancelled waiting for transaction receipt ${e}`)}async simulate(e,...r){const s=Kt.defaultAbiCoder().encode([ye.transaction.MetaTransactionsType],[ye.transaction.sequenceTxAbiEncode(r)]);return(await this.service.simulate({wallet:e,transactions:s})).results}async getFeeOptions(e,...r){const n=await this.service.feeTokens();if(n.isFeeRequired){const s=n.tokens.map(c=>c.symbol).join(", ");Se.info(`[rpc-relayer/getFeeOptions] relayer fees are required, accepted tokens are ${s}`);const i=await this.getNonce(e);if(!this.provider)throw Se.warn("[rpc-relayer/getFeeOptions] provider not set, needed for stub signature"),new Error("provider is not set");const{options:o,quote:a}=await this.service.feeOptions({wallet:e,to:e,data:ye.transaction.encodeBundleExecData({entrypoint:e,transactions:r,nonce:i})});return Se.info(`[rpc-relayer/getFeeOptions] got refund options ${JSON.stringify(o)}`),{options:o,quote:{_tag:"FeeQuote",_quote:a}}}else return Se.info("[rpc-relayer/getFeeOptions] relayer fees are not required"),{options:[]}}async getFeeOptionsRaw(e,r,n){const{options:s,quote:i}=await this.service.feeOptions({wallet:e,to:e,data:H(r),simulate:n==null?void 0:n.simulate});return{options:s,quote:{_tag:"FeeQuote",_quote:i}}}async gasRefundOptions(e,...r){const{options:n}=await this.getFeeOptions(e,...r);return n}async getNonce(e,r){Se.info(`[rpc-relayer/getNonce] get nonce for wallet ${e} space: ${r}`);const n=r!==void 0?Zc(BigInt(r)):void 0,s=await this.service.getMetaTxnNonce({walletContractAddress:e,space:n}),i=BigInt(s.nonce),[o,a]=ye.transaction.decodeNonce(i);return Se.info(`[rpc-relayer/getNonce] got next nonce for wallet ${e} ${a} space: ${o}`),i}async relay(e,r,n=!0){var s=this;Se.info(`[rpc-relayer/relay] relaying signed meta-transactions ${JSON.stringify(e)} with quote ${JSON.stringify(r)}`);let i;if(r!==void 0&&(typeof r._quote=="string"?i=r._quote:Se.warn("[rpc-relayer/relay] ignoring invalid fee quote")),!this.provider)throw Se.warn("[rpc-relayer/relay] provider not set, failed relay"),new Error("provider is not set");const o=ye.transaction.encodeBundleExecData(e),a=await this.service.sendMetaTxn({call:{walletAddress:e.intent.wallet,contract:e.entrypoint,input:o},quote:i});if(Se.info(`[rpc-relayer/relay] got relay result ${JSON.stringify(a)}`),n)return this.wait(e.intent.id);{const c={hash:e.intent.id,confirmations:0,from:e.intent.wallet,wait:u=>Promise.reject(new Error("impossible"))},l=async function(f){var d;if(!s.provider)throw new Error("cannot wait for receipt, relayer has no provider set");const h=await s.wait(e.intent.id),y=(d=h.receipt)==null?void 0:d.transactionHash;if(!y)throw new Error("cannot wait for receipt, unknown native transaction hash");return Object.assign(c,h),s.provider.waitForTransaction(y,f)};return c.wait=l,c}}async wait(e,r,n=1e3,s=5){var i=this;let o=!1;const{receipt:a}=await(r!==void 0?Promise.race([this.waitReceipt(e,n,s,()=>o),new Promise((l,u)=>setTimeout(()=>{o=!0,u(`Timeout waiting for transaction receipt ${e}`)},r))]):this.waitReceipt(e,n,s));if(!a.txnReceipt||qce.includes(a.status))throw new Jce(a);const c=JSON.parse(a.txnReceipt);return{blockHash:c.blockHash,blockNumber:Number(c.blockNumber),confirmations:1,from:typeof e=="string"?void 0:e.intent.wallet,hash:c.transactionHash,raw:a.txnReceipt,receipt:c,wait:async function(l){return i.provider.waitForTransaction(c.transactionHash,l)}}}}class Jce{constructor(e){this.receipt=e}}function yB(t){return typeof t=="object"&&typeof t.simulate=="function"&&typeof t.getFeeOptions=="function"&&typeof t.gasRefundOptions=="function"&&typeof t.getNonce=="function"&&typeof t.relay=="function"&&typeof t.wait=="function"}const Yce=Object.freeze(Object.defineProperty({__proto__:null,LocalRelayer:Lce,ProviderRelayer:ID,ProviderRelayerDefaults:PD,RpcRelayer:pB,RpcRelayerProto:id,isLocalRelayerOptions:Bce,isProviderRelayerOptions:Dce,isRelayer:yB,isRpcRelayerOptions:Kce,proto:id},Symbol.toStringTag,{value:"Module"}));function vB(t){return t.getAddress!==void 0&&t.buildDeployTransaction!==void 0&&t.predecorateSignedTransactions!==void 0&&t.decorateTransactions!==void 0&&t.sign!==void 0&&t.notifyStatusChange!==void 0}class gB{constructor(e,r=!0){this.signer=e,this.eoa=r}getAddress(){return this.signer.getAddress()}async buildDeployTransaction(e){}async predecorateSignedTransactions(e){return[]}async decorateTransactions(e,r){return e}sign(e){return this.signer.signMessage(e)}notifyStatusChange(e,r,n){}suffix(){return new Uint8Array([2])}}var B2=Object.freeze({__proto__:null,isSapientSigner:vB,SignerWrapper:gB});let la=function(t){return t[t.INITIAL=0]="INITIAL",t[t.SIGNING=1]="SIGNING",t[t.SIGNED=2]="SIGNED",t[t.ERROR=3]="ERROR",t}({});function mB(t){return t===void 0||t.state===la.INITIAL||t.state===la.SIGNING}class Xg{constructor(e,r=Xg.randomTag()){this.tag=r,this.observers=[],this.signers=[],this.count=0,this.setSigners(e)}static randomTag(){return`default-${H(Rr(8)).slice(2)}`}pullId(){return`${this.tag}-${this.count++}`}setSigners(e){this.signers=e.map(r=>vB(r)?r:new gB(r))}async getSigners(){return Promise.all(this.signers.map(async function(e){return e.getAddress()}))}subscribe(e){return this.observers.push(e),()=>{this.observers=this.observers.filter(r=>r!==e)}}async notifyObservers(e,r,n){await Promise.all([...this.signers.map(async function(s){return s.notifyStatusChange(e,r,n)}),...this.observers.map(async function(s){return s(r,n)})])}async buildDeployTransaction(e){let r;for(const n of this.signers){const s=await n.buildDeployTransaction(e);r===void 0?r=s:s!=null&&s.transactions&&(r.transactions=s.transactions.concat(r.transactions))}return r}async predecorateSignedTransactions(e){const r=[];for(const n of this.signers)r.push(...await n.predecorateSignedTransactions(e??{}));return r}async decorateTransactions(e,r){for(const n of this.signers)e=await n.decorateTransactions(e,r??{});return e}signMessage(e){var r=this;const n=this.pullId();return new Promise(async function(s){const{message:i,metadata:o,callback:a,candidates:c}=e,l={ended:!1,message:i,signers:{}};let u=o??{};const f=p=>{u=p,r.notifyObservers(n,l,u)},d=()=>{try{r.notifyObservers(n,l,u);const p=Object.entries(l.signers).filter(([b,v])=>mB(v));if(a&&a(l,f)||p.length===0){l.ended=!0,s(l),r.notifyObservers(n,l,u);return}}catch(p){console.error("Error while notifying observers",p)}};let h=r.signers;if(c){const p=await Promise.all(r.signers.map(async function(b){return b.getAddress()}));h=r.signers.filter((b,v)=>c.includes(p[v]))}const y=await Promise.allSettled(h.map(async function(p){const b=await p.getAddress();l.signers[b]={state:la.SIGNING,request:p.sign(i,o??{}).then(v=>{const g=p.suffix();return l.signers[b]={state:la.SIGNED,signature:v,suffix:g},d(),v}).catch(v=>{throw l.signers[b]={state:la.ERROR,error:v},d(),v})}}));for(let p=0;pPt(e))):Pt(t)}const h3=t=>{const e=new Map;for(const r of Object.keys(t.signers)){const n=t.signers[r];if(n.state===la.SIGNED){const s=Q(n.suffix),i=De(["bytes","bytes"],[n.signature,s]);e.set(r,{signature:i,isDynamic:s.length!==1||s[0]!==2})}}return e};class Bu extends lo{constructor(e){var r;if(BigInt(e.chainId)===0n&&!e.coders.signature.supportsNoChainId)throw new Error(`Sequence version ${e.config.version} doesn't support chainId 0`);super((r=e.provider)!=null?r:null),this.context=void 0,this.config=void 0,this.address=void 0,this.chainId=void 0,this.relayer=void 0,this.coders=void 0,this.orchestrator=void 0,this._reader=void 0,this.context=e.context,this.config=e.config,this.orchestrator=e.orchestrator,this.coders=e.coders,this.address=e.address,this.chainId=e.chainId,this.relayer=e.relayer,this._reader=e.reader}static newWallet(e){const r=ye.context.addressOf(e.context,e.coders.config.imageHashOf(e.config));return new Bu(Mo({},e,{address:r}))}reader(){if(this._reader)return this._reader;if(!this.provider)throw new Error("Wallet status provider requires a provider");return new ye.reader.OnChainReader(this.provider)}setConfig(e){this.config=e}setOrchestrator(e){this.orchestrator=e}setAddress(e){this.address=e}getSigners(){return this.orchestrator.getSigners()}async getAddress(){return this.address}async decorateTransactions(e){const r=await this.orchestrator.decorateTransactions(e);if(await this.reader().isDeployed(this.address))return r;const n=[{to:r.entrypoint,data:ye.transaction.encodeBundleExecData(r),revertOnError:!0}],s=await this.buildDeployTransaction();return s&&n.unshift(...s.transactions),{entrypoint:this.context.guestModule,chainId:this.chainId,intent:r.intent,transactions:n}}async buildDeployTransaction(e){if(e!=null&&e.ignoreDeployed&&await this.reader().isDeployed(this.address))return;const r=this.coders.config.imageHashOf(this.config);if(ye.context.addressOf(this.context,r)!==this.address)throw new Error(`First address of config ${r} doesn't match wallet address ${this.address}`);const n=Bu.buildDeployTransaction(this.context,r);if(e!=null&&e.includeChildren){const s=await this.orchestrator.buildDeployTransaction(e);s&&(n.transactions=s.transactions.concat(n.transactions))}return n}async deploy(e){const r=await this.buildDeployTransaction(e);if(r!==void 0){if(!this.relayer)throw new Error("Wallet deploy requires a relayer");return this.relayer.relay(Mo({},r,{chainId:this.chainId,intent:{id:H(Rr(32)),wallet:this.address}}))}}static buildDeployTransaction(e,r){const n=new pt(Gt.factory.abi);return{entrypoint:e.guestModule,transactions:[{to:e.factory,data:n.encodeFunctionData(n.getFunction("deploy"),[e.mainModule,r]),gasLimit:1e5,delegateCall:!1,revertOnError:!0,value:0}]}}async buildUpdateConfigurationTransaction(e){if(this.coders.config.update.isKindUsed){const r=await this.reader().implementation(this.address),n=r&&r===this.context.mainModuleUpgradable;return this.coders.config.update.buildTransaction(this.address,e,this.context,n?"later":"first")}return this.coders.config.update.buildTransaction(this.address,e,this.context)}async getNonce(e=0){const r=await this.reader().nonce(this.address,e);if(r===void 0)throw new Error("Unable to determine nonce");return Number(r)}async signDigest(e,r){const n=k2(this.address,this.chainId,e);if(this.coders.config.hasSubdigest(this.config,n))return this.coders.signature.encodeSigners(this.config,new Map,[n],this.chainId).encoded;const s=Mo({},r,{digest:e,chainId:this.chainId,address:this.address,config:this.config}),i=Q(n),o=await this.orchestrator.signMessage({candidates:this.coders.config.signersOf(this.config).map(c=>c.address),message:i,metadata:s,callback:(c,l)=>{const u=h3(c),f=Mo({},s,{parts:u});return l(f),this.coders.signature.hasEnoughSigningPower(this.config,u)}}),a=h3(o);return this.coders.signature.encodeSigners(this.config,a,[],this.chainId).encoded}signMessage(e){return this.signDigest(Ne(e),{message:e})}signTypedData(e,r,n){const s=Ed({domain:e,types:r,message:n});return this.signDigest(s)}signTransactionBundle(e){if(e.entrypoint!==this.address)throw new Error(`Invalid entrypoint: ${e.entrypoint} !== ${this.address}`);return this.signTransactions(e.transactions,e.nonce)}async fetchNonceOrSpace(e){let r;if(e&&e.space!==void 0)r=BigInt(e.space);else{if(e===void 0)return this.randomNonce();if(e&&e.serial===!0)r=0;else return e}const n=await this.reader().nonce(this.address,r);if(n===void 0)throw new Error("Unable to determine nonce");return ye.transaction.encodeNonce(r,n)}randomNonce(){const e=BigInt(H(Rr(12)));return ye.transaction.encodeNonce(e,0)}async signTransactions(e,r,n){const s=await d3(e),i=ye.transaction.fromTransactionish(this.address,s);i.length===0&&i.push({to:this.address,data:"0x",value:0,gasLimit:0,delegateCall:!1,revertOnError:!0});const o=await this.fetchNonceOrSpace(r),a=ye.transaction.digestOfTransactions(o,i),c=Mo({digest:a,transactions:i},n),l=await this.signDigest(a,c);return{intent:{id:k2(this.address,this.chainId,a),wallet:this.address},chainId:this.chainId,transactions:i,entrypoint:this.address,nonce:o,signature:l}}async sendSignedTransaction(e,r){if(!this.relayer)throw new Error("Wallet sendTransaction requires a relayer");return this.relayer.relay(e,r)}async sendTransaction(e,r){let n;(r==null?void 0:r.nonce)!==void 0?n=r.nonce:r!=null&&r.serial?n={serial:!0}:n=this.randomNonce();const s=await this.signTransactions(e,n),i=await this.decorateTransactions(s);return this.sendSignedTransaction(i,r==null?void 0:r.quote)}async fillGasLimits(e){const r=await d3(e),n=ye.transaction.fromTransactionish(this.address,r),s=this.relayer;if(!s)throw new Error("Wallet fillGasLimits requires a relayer");const i=await s.simulate(this.address,...n);return n.map((o,a)=>{const c=o.gasLimit?Number(o.gasLimit):i[a].gasLimit;return Mo({},o,i[a],{gasLimit:c})})}connect(e,r){return new Bu({coders:this.coders,context:this.context,config:this.config,chainId:this.chainId,address:this.address,orchestrator:this.orchestrator,reader:this._reader,provider:e,relayer:r??this.relayer})}signTransaction(e){throw new Error("Method not implemented.")}}function qs(){return qs=Object.assign?Object.assign.bind():function(t){for(var e=1;e=BigInt(s.value))return s}else if(s.token.contractAddress&&s.token.type===id.FeeTokenType.ERC20_TOKEN&&await new dn(s.token.contractAddress,n,this.provider).balanceOf(this.account.address)>=BigInt(s.value))return s;throw new Error("No fee option available - not enough balance")}async sendTransaction(e,r){var n,s,i,o,a;const c=await this.account.prepareTransactions({txs:e,chainId:this.chainId,stubSignatureOverrides:(n=(s=this.options)==null?void 0:s.stubSignatureOverrides)!=null?n:new Map,simulateForFeeOptions:r==null?void 0:r.simulateForFeeOptions}),u=await((i=(o=this.options)==null?void 0:o.selectFee)!=null?i:this.defaultSelectFee.bind(this))(e,c.feeOptions),f=[...c.transactions,...Zce(u)];return this.account.sendTransaction(f,this.chainId,c.feeQuote,void 0,void 0,((a=this.options)==null?void 0:a.nonceSpace)!==void 0?{nonceSpace:this.options.nonceSpace}:void 0)}getBalance(e){return this.provider.getBalance(this.account.address,e)}call(e,r){return this.provider.call(qs({},e,{blockTag:r}))}async resolveName(e){const r=await this.provider.resolveName(e);if(!r)throw new Error(`Could not resolve name ${e}`);return r}connect(e){throw new Error("Method not implemented.")}signTransaction(e){throw new Error("Method not implemented.")}getTransactionCount(e){throw new Error("Method not implemented.")}estimateGas(e){throw new Error("Method not implemented.")}getChainId(){return Promise.resolve(Number(this.chainId))}getGasPrice(){throw new Error("Method not implemented.")}getFeeData(){throw new Error("Method not implemented.")}getNonce(e){throw new Error("Method not implemented.")}populateCall(e){throw new Error("Method not implemented.")}checkTransaction(e){throw new Error("Method not implemented.")}async populateTransaction(e){throw new Error("Method not implemented.")}_checkProvider(e){throw new Error("Method not implemented.")}}class tle{async isDeployed(e){return!1}async implementation(e){}async imageHash(e){}async nonce(e,r){return 0n}async isValidSignature(e,r,n){throw new Error("Method not supported.")}}class qi{constructor(e){this.address=void 0,this.networks=void 0,this.tracker=void 0,this.contexts=void 0,this.migrator=void 0,this.migrations=void 0,this.orchestrator=void 0,this.jwt=void 0,this.projectAccessKey=void 0,this.address=Te(e.address),this.contexts=e.contexts,this.tracker=e.tracker,this.networks=e.networks,this.orchestrator=e.orchestrator,this.jwt=e.jwt,this.projectAccessKey=e.projectAccessKey,this.migrations=e.migrations||D2.DefaultMigrations,this.migrator=new M2.Migrator(e.tracker,this.migrations,this.contexts)}getSigner(e,r){return new ele(this,e,r)}static async new(e){var r;const s=new M2.Migrator(e.tracker,(r=e.migrations)!=null?r:D2.DefaultMigrations,e.contexts).lastMigration(),i=s.configCoder,o=i.fromSimple(e.config),a=i.imageHashOf(o),c=e.contexts[s.version],l=ye.context.addressOf(c,a);return await e.tracker.saveCounterfactualWallet({config:o,context:Object.values(e.contexts)}),new qi({address:l,tracker:e.tracker,contexts:e.contexts,networks:e.networks,orchestrator:e.orchestrator,migrations:e.migrations,projectAccessKey:e.projectAccessKey})}getAddress(){return Promise.resolve(this.address)}get version(){return this.migrator.lastMigration().version}get coders(){const e=this.migrator.lastMigration();return{signature:e.signatureCoder,config:e.configCoder}}network(e){const r=BigInt(e),n=this.networks.find(s=>r===BigInt(s.chainId));if(!n)throw new Error(`Network not found for chainId ${e}`);return n}providerFor(e){const r=this.network(e);if(!r.provider&&!r.rpcUrl)throw new Error(`Provider not found for chainId ${e}`);const n=new ot(r.name,r.chainId);return r.provider||new zt(I0(r.rpcUrl,this.projectAccessKey,this.jwt),n,{staticNetwork:n})}reader(e){return BigInt(e)===0n?new tle:new ye.reader.OnChainReader(this.providerFor(e))}relayer(e){const r=this.network(e);if(!r.relayer)throw new Error(`Relayer not found for chainId ${e}`);return yB(r.relayer)?r.relayer:new pB(qs({},r.relayer,this.projectAccessKey?{projectAccessKey:this.projectAccessKey}:{jwtAuth:this.jwt}))}setOrchestrator(e){this.orchestrator=e}setJwt(e){this.jwt=e}contextFor(e){const r=this.contexts[e];if(!r)throw new Error(`Context not found for version ${e}`);return r}walletForStatus(e,r){const n=dr.coderFor(r.version);return this.walletFor(e,this.contextFor(r.version),r.config,n)}walletFor(e,r,n,s){const i=BigInt(e)===0n;return new Bu({config:n,context:r,chainId:e,coders:s,relayer:i?void 0:this.relayer(e),address:this.address,orchestrator:this.orchestrator,reader:this.reader(e)})}async status(e,r=!1){var n=this;const s=this.reader(e).isDeployed(this.address),i=this.tracker.imageHashOfCounterfactualWallet({wallet:this.address}).then(S=>{if(!S)throw new Error(`Counterfactual imageHash not found for wallet ${this.address}`);return S}),o=i.then(S=>AD.counterfactualVersion(this.address,S.imageHash,Object.values(this.contexts))),a=async function(){if(!await s)return o;const I=await n.reader(e).implementation(n.address);if(!I)throw new Error(`Implementation not found for wallet ${n.address}`);const R=Object.values(n.contexts);for(let _=0;_0?p[p.length-1].nextImageHash:d,v=await this.tracker.configOfImageHash({imageHash:b});if(!v)throw new Error(`Config not found for imageHash ${b}`);const g=await s,x=await i,k=dr.coderFor(h).config.checkpointOf(v);return{original:qs({},x,{version:await o}),onChain:{imageHash:f,config:await l,version:u,deployed:g},fullyMigrated:h===this.version,signedMigrations:y,version:h,presignedConfigurations:p,imageHash:b,config:v,checkpoint:k,canOnchainValidate:u===this.version&&g}}mustBeFullyMigrated(e){if(!e.fullyMigrated)throw new Error(`Wallet ${this.address} is not fully migrated`)}async predecorateSignedTransactions(e,r){const n=await this.orchestrator.predecorateSignedTransactions({chainId:r}),s=await this.predecorateTransactions([],e,r);return ye.transaction.fromTransactionish(this.address,s).length>0&&n.push(await this.signTransactions(s,r)),n}async predecorateTransactions(e,r,n){if(r.onChain.imageHash!==r.imageHash){const i=await this.walletForStatus(n,r).buildUpdateConfigurationTransaction(r.config);return[Array.isArray(e)?e:[e],i.transactions].flat()}return e}async decorateTransactions(e,r,n){var s,i;if(!Array.isArray(e))return this.decorateTransactions([e],r,n);n=(s=n)!=null?s:e[0].chainId;const o=await this.buildBootstrapTransactions(r,n),a=o.transactions.length>0;if(!a&&e.length===1)return e[0];const{entrypoint:c}=a?o:e[0],l={entrypoint:c,chainId:n,intent:(i=e[0])==null?void 0:i.intent,transactions:[...o.transactions,...e.map(u=>({to:u.entrypoint,data:ye.transaction.encodeBundleExecData(u),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}))]};if(!r.onChain.deployed){const u=ye.transaction.subdigestOfGuestModuleTransactions(this.contexts[this.version].guestModule,n,l.transactions);l.intent===void 0?l.intent={id:u,wallet:this.address}:l.intent.id=u}return l}async decorateSignature(e,r){if(!r.presignedConfigurations||r.presignedConfigurations.length===0)return e;const n=this.coders.signature,s=r.presignedConfigurations.map(o=>o.signature),i=n.chainSignatures(e,s);return n.trim(i)}async publishWitness(){const e=Kr(`This is a Sequence account woo! ${Date.now()}`),r=await this.signDigest(e,0,!1),n=this.coders.signature.decode(r),s=this.coders.signature.signaturesOfDecoded(n);return this.tracker.saveWitnesses({wallet:this.address,digest:e,chainId:0,signatures:s})}async signDigest(e,r,n=!0,s="ignore",i){const o=BigInt(r)===0n?this.networks[0].chainId:r,a=await this.status(o);if(this.mustBeFullyMigrated(a),!a.canOnchainValidate&&s==="throw")throw new Error("Wallet cannot validate onchain");const l=await this.walletForStatus(r,a).signDigest(e,i),u=n?this.decorateSignature(l,a):l;if(!a.canOnchainValidate)switch(s){case"ignore":return u;case"eip6492":return this.buildEIP6492Signature(await u,a,r)}return u}buildOnChainSignature(e){const r=ye.signature.subdigestOf({digest:H(e),chainId:0,address:this.address}),n=H(r),s=this.coders.config.fromSimple({threshold:32768,checkpoint:0,signers:[],subdigests:[n]}),i=new pt(Gt.mainModule.abi),o={entrypoint:this.address,transactions:[{to:this.address,data:i.encodeFunctionData("setExtraImageHash",[this.coders.config.imageHashOf(s),"57896044618658097711785492504343953926634992332820282019728792003956564819968"]),gasLimit:25e4}]};this.tracker.saveWalletConfig({config:s});const a=this.coders.signature.encodeSigners(s,new Map,[n],0).encoded;return{bundle:o,signature:a}}async buildEIP6492Signature(e,r,n){const s=await this.buildBootstrapTransactions(r,n);if(s.transactions.length===0)throw new Error("Cannot build EIP-6492 signature without bootstrap transactions");const i=Kt.defaultAbiCoder().encode(["address","bytes","bytes"],[s.entrypoint,ye.transaction.encodeBundleExecData(s),e]);return De(["bytes","bytes32"],[i,ye.EIP6492.EIP_6492_SUFFIX])}async editConfig(e){const r=await this.status(0).then(s=>s.config),n=this.coders.config.editConfig(r,qs({},e,{checkpoint:this.coders.config.checkpointOf(r)+1n}));return this.updateConfig(n)}async updateConfig(e){if(!this.coders.config.isWalletConfig(e))throw new Error(`Invalid config for wallet ${this.address}`);const r=this.coders.config.imageHashOf(e),n=this.coders.signature.hashSetImageHash(r),s=await this.signDigest(n,0,!1);await this.tracker.savePresignedConfiguration({wallet:this.address,nextConfig:e,signature:s});const i=await this.tracker.configOfImageHash({imageHash:r,noCache:!0});if(!i||this.coders.config.imageHashOf(i)!==r)throw Error(`Reverse lookup failed for imageHash ${r}`)}async buildBootstrapTransactions(e,r){var n;const s=await this.orchestrator.buildDeployTransaction({chainId:r}),i=(n=s==null?void 0:s.transactions)!=null?n:[];if(!e.onChain.deployed){const c=Bu.buildDeployTransaction(e.original.context,e.original.imageHash);i.push(...c.transactions)}i.push(...e.signedMigrations.map(c=>({to:c.tx.entrypoint,data:ye.transaction.encodeBundleExecData(c.tx),value:0,gasLimit:0,revertOnError:!0,delegateCall:!1})));const o=e.signedMigrations.length>0?e.signedMigrations[0].tx.intent.id:ye.transaction.subdigestOfGuestModuleTransactions(this.contexts[this.version].guestModule,r,i),{guestModule:a}=this.contextFor(e.version);return{entrypoint:a,transactions:i,chainId:r,intent:{id:o,wallet:this.address}}}async bootstrapTransactions(e,r){const n=r||await this.status(e);return this.buildBootstrapTransactions(n,e)}async doBootstrap(e,r,n){const s=await this.bootstrapTransactions(e,n);return this.relayer(e).relay(qs({},s,{chainId:e}),r)}signMessage(e,r,n="ignore"){return this.signDigest(Ne(e),r,!0,n)}async signTransactions(e,r,n,s){const i=n||await this.status(r);this.mustBeFullyMigrated(i);const o=this.walletForStatus(r,i),a={address:this.address,digest:"",chainId:r,config:{version:this.version},decorate:!0,cantValidateBehavior:"ignore"},c=s!=null&&s.serial?{serial:!0}:(s==null?void 0:s.nonceSpace)!==void 0?{space:s.nonceSpace}:void 0,l=await o.signTransactions(e,c,a);return qs({},l,{signature:await this.decorateSignature(l.signature,i)})}async signMigrations(e,r){const n=await this.status(e);if(n.fullyMigrated)return!1;const s=this.walletForStatus(e,n),i=r(s.config),o=await this.migrator.signNextMigration(this.address,n.version,s,i);if(!o)return!1;await this.tracker.saveWalletConfig({config:i});const a=dr.coderFor(i.version).config,c=a.imageHashOf(i),l=await this.tracker.configOfImageHash({imageHash:c,noCache:!0});if(!l||a.imageHashOf(l)!==c)throw Error(`Reverse lookup failed for imageHash ${c}`);return await this.tracker.saveMigration(this.address,o,this.contexts),!0}async signAllMigrations(e){var r=this;const n=[];return{signedMigrations:(await Promise.all(this.networks.map(async function(o){try{return await r.signMigrations(o.chainId,e)}catch(a){return console.warn(`Failed to sign migrations for chain ${o.chainId}`,a),n.push(o.chainId),null}}))).filter(o=>o!==null),failedChains:n}}async isMigratedAllChains(){var e=this;const r=[];return{migratedAllChains:(await Promise.all(this.networks.map(async function(i){try{return await e.status(i.chainId)}catch(o){return r.push(i.chainId),console.warn(`Failed to get status for chain ${i.chainId}`,o),{fullyMigrated:!0}}}))).every(i=>i.fullyMigrated),failedChains:r}}async sendSignedTransactions(e,r,n,s,i){if(!Array.isArray(e))return this.sendSignedTransactions([e],r,n,s,i);const o=s||await this.status(r);this.mustBeFullyMigrated(o);const a=await this.decorateTransactions(e,o,r);return i==null||i(a),this.relayer(r).relay(a,n)}async fillGasLimits(e,r,n){return this.walletForStatus(r,n||await this.status(r)).fillGasLimits(e)}async gasRefundQuotes(e,r,n,s,i){const o=s||await this.status(r),a=this.walletForStatus(r,o),c=await this.predecorateTransactions(e,o,r),l=ye.transaction.fromTransactionish(this.address,c),u=a.coders.config.buildStubSignature(a.config,n),f=H(Rr(32)),d={chainId:r,intent:{id:f,wallet:this.address},signature:u,transactions:l,entrypoint:this.address,nonce:0},h=await this.decorateTransactions(d,o),y=ye.transaction.encodeBundleExecData(h),p=await this.relayer(r).getFeeOptionsRaw(h.entrypoint,y,i);return qs({},p,{decorated:h})}async prepareTransactions(e){const r=await this.status(e.chainId),n=await this.fillGasLimits(e.txs,e.chainId,r),s=await this.gasRefundQuotes(n,e.chainId,e.stubSignatureOverrides,r,{simulate:e.simulateForFeeOptions}),i=ye.transaction.unwind(this.address,s.decorated.transactions);return{transactions:n,flatDecorated:i,feeOptions:s.options,feeQuote:s.quote}}async sendTransaction(e,r,n,s=!1,i,o){const a=await this.status(r),c=s?e:await this.predecorateTransactions(e,a,r),u=ye.transaction.fromTransactionish(this.address,c).length>0?await this.signTransactions(c,r,void 0,o):void 0,f=await this.orchestrator.predecorateSignedTransactions({chainId:r}),d=[];return u!==void 0&&u.transactions.length>0&&d.push(u),d.push(...f.filter(h=>h.transactions.length>0)),this.sendSignedTransactions(d,r,n,void 0,i)}async signTypedData(e,r,n,s,i="ignore"){const o=Ed({domain:e,types:r,message:n});return this.signDigest(o,s,!0,i)}async getSigners(){var e=this;const r=n=>n.length?n[n.length-1]:void 0;return(await Promise.all(this.networks.map(async function({chainId:n,name:s}){try{var i;const o=await e.status(n);let a=(i=r(o.presignedConfigurations))==null?void 0:i.nextImageHash;if(!a&&o.onChain.version!==o.version){const f=r(o.signedMigrations);if(f){const{toVersion:d,toConfig:h}=f;a=dr.genericCoderFor(d).config.imageHashOf(h)}}a||(a=o.onChain.imageHash);const c=await e.tracker.configOfImageHash({imageHash:a});if(!c)throw new Error(`unable to find config for image hash ${a}`);return dr.genericCoderFor(c.version).config.signersOf(c).map(f=>qs({},f,{network:n}))}catch(o){return console.warn(`unable to get signers on network ${n} ${s}`,o),[]}}))).flat()}async getAllSigners(){var e=this;const r=[];return await Promise.all(this.networks.map(async function(n){const s=n.chainId,i=await e.status(s,!0),o=[i.onChain.imageHash,...i.onChain.version!==i.version?i.signedMigrations.map(a=>dr.coderFor(a.toVersion).config.imageHashOf(a.toConfig)):[],...i.presignedConfigurations.map(a=>a.nextImageHash)];return Promise.all(o.map(async function(a,c){const l=c===o.length-1,u=await e.tracker.configOfImageHash({imageHash:a});if(!u){console.warn(`AllSigners may be incomplete, config not found for imageHash ${a}`);return}dr.genericCoderFor(u.version).config.signersOf(u).forEach(h=>{const y=r.find(p=>p.address===h.address&&p.network===s);if(y&&l&&y.flaggedForRemoval){y.flaggedForRemoval=!1;return}y||r.push({address:h.address,weight:h.weight,network:s,flaggedForRemoval:!l})})}))})),r}}function rle(t){return t instanceof qi}const nle=Object.freeze(Object.defineProperty({__proto__:null,Account:qi,isAccount:rle},Symbol.toStringTag,{value:"Module"}));function Ev(){return Ev=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),at({},n,s)).then(i=>vt(i).then(o=>({status:o.status})),i=>{throw ct.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),at({},n,s)).then(i=>vt(i).then(o=>({version:o.version})),i=>{throw ct.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),at({},n,s)).then(i=>vt(i).then(o=>({status:o.status})),i=>{throw ct.new({cause:`fetch(): ${i.message||""}`})}),this.getChainID=(n,s)=>this.fetch(this.url("GetChainID"),at({},n,s)).then(i=>vt(i).then(o=>({chainID:o.chainID})),i=>{throw ct.new({cause:`fetch(): ${i.message||""}`})}),this.getEtherBalance=(n,s,i)=>this.fetch(this.url("GetEtherBalance"),at(n,s,i)).then(o=>vt(o).then(a=>({balance:a.balance})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenBalances=(n,s,i)=>this.fetch(this.url("GetTokenBalances"),at(n,s,i)).then(o=>vt(o).then(a=>({page:a.page,balances:a.balances})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenSupplies=(n,s,i)=>this.fetch(this.url("GetTokenSupplies"),at(n,s,i)).then(o=>vt(o).then(a=>({page:a.page,contractType:a.contractType,tokenIDs:a.tokenIDs})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenSuppliesMap=(n,s,i)=>this.fetch(this.url("GetTokenSuppliesMap"),at(n,s,i)).then(o=>vt(o).then(a=>({supplies:a.supplies})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getBalanceUpdates=(n,s,i)=>this.fetch(this.url("GetBalanceUpdates"),at(n,s,i)).then(o=>vt(o).then(a=>({page:a.page,balances:a.balances})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getTransactionHistory=(n,s,i)=>this.fetch(this.url("GetTransactionHistory"),at(n,s,i)).then(o=>vt(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.syncBalance=(n,s,i)=>this.fetch(this.url("SyncBalance"),at(n,s,i)).then(o=>vt(o).then(a=>({})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.fetchTransactionReceipt=(n,s,i)=>this.fetch(this.url("FetchTransactionReceipt"),at(n,s,i)).then(o=>vt(o).then(a=>({receipt:a.receipt})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getOrderbookOrders=(n,s,i)=>this.fetch(this.url("GetOrderbookOrders"),at(n,s,i)).then(o=>vt(o).then(a=>({page:a.page,orders:a.orders})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getTopOrders=(n,s,i)=>this.fetch(this.url("GetTopOrders"),at(n,s,i)).then(o=>vt(o).then(a=>({orders:a.orders})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.fetchTransactionReceiptWithFilter=(n,s,i)=>this.fetch(this.url("FetchTransactionReceiptWithFilter"),at(n,s,i)).then(o=>vt(o).then(a=>({receipt:a.receipt})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getAllWebhookListeners=(n,s,i)=>this.fetch(this.url("GetAllWebhookListeners"),at(n,s,i)).then(o=>vt(o).then(a=>({listeners:a.listeners})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getWebhookListener=(n,s,i)=>this.fetch(this.url("GetWebhookListener"),at(n,s,i)).then(o=>vt(o).then(a=>({listener:a.listener})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.addWebhookListener=(n,s,i)=>this.fetch(this.url("AddWebhookListener"),at(n,s,i)).then(o=>vt(o).then(a=>({status:a.status,listener:a.listener})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.updateWebhookListener=(n,s,i)=>this.fetch(this.url("UpdateWebhookListener"),at(n,s,i)).then(o=>vt(o).then(a=>({status:a.status})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.removeWebhookListener=(n,s,i)=>this.fetch(this.url("RemoveWebhookListener"),at(n,s,i)).then(o=>vt(o).then(a=>({status:a.status})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.toggleWebhookListener=(n,s,i)=>this.fetch(this.url("ToggleWebhookListener"),at(n,s,i)).then(o=>vt(o).then(a=>({webhookListener:a.webhookListener})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.pauseAllWebhookListeners=(n,s,i)=>this.fetch(this.url("PauseAllWebhookListeners"),at(n,s,i)).then(o=>vt(o).then(a=>({status:a.status})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.resumeAllWebhookListeners=(n,s,i)=>this.fetch(this.url("ResumeAllWebhookListeners"),at(n,s,i)).then(o=>vt(o).then(a=>({status:a.status})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.subscribeReceipts=(n,s)=>{const i=()=>this.fetch(this.url("SubscribeReceipts"),at(n,s.headers,s.signal)).then(async function(o){await $x(o,s,i)},o=>{s.onError(o,i)});return i()},this.subscribeEvents=(n,s)=>{const i=()=>this.fetch(this.url("SubscribeEvents"),at(n,s.headers,s.signal)).then(async function(o){await $x(o,s,i)},o=>{s.onError(o,i)});return i()},this.subscribeBalanceUpdates=(n,s)=>{const i=()=>this.fetch(this.url("SubscribeBalanceUpdates"),at(n,s.headers,s.signal)).then(async function(o){await $x(o,s,i)},o=>{s.onError(o,i)});return i()},this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const $x=async(t,e,r)=>{const{onMessage:n,onOpen:s,onClose:i,onError:o}=e;if(!t.ok){try{await vt(t)}catch(h){o(h,r)}return}if(!t.body){o(R0.new({status:t.status,cause:"Invalid response, missing body"}),r);return}s&&s();const a=t.body.getReader(),c=new TextDecoder;let l="",u=Date.now();const f=11*1e3;let d;try{for(d=setInterval(()=>{if(Date.now()-u>f)throw Lh.new({cause:"Stream timed out"})},f);;){let h,y;try{({value:h,done:y}=await a.read()),u=Date.now(),l+=c.decode(h,{stream:!0})}catch(b){let v="";b instanceof Error&&(v=b.message),b instanceof DOMException&&b.name==="AbortError"?o(ct.new({message:"AbortError",cause:`AbortError: ${v}`}),()=>{throw new Error("Abort signal cannot be used to reconnect")}):o(Lh.new({cause:`reader.read(): ${v}`}),r);return}let p=l.split(` -`);for(let b=0;b({method:"POST",headers:Ev({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),vt=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),R0.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(uL[n]||it).new(r)}return r});let it=class bB extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,bB.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},wB=class CB extends it{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,CB.prototype)}},ct=class EB extends it{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,EB.prototype)}},kB=class AB extends it{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,AB.prototype)}},SB=class TB extends it{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,TB.prototype)}},PB=class IB extends it{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,IB.prototype)}},R0=class OB extends it{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,OB.prototype)}},RB=class NB extends it{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,NB.prototype)}},_B=class MB extends it{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,MB.prototype)}},DB=class BB extends it{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,BB.prototype)}},Lh=class LB extends it{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,LB.prototype)}},jB=class FB extends it{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,FB.prototype)}},UB=class $B extends it{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,$B.prototype)}},WB=class VB extends it{constructor(e="PermissionDenied",r=1001,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,VB.prototype)}},HB=class zB extends it{constructor(e="SessionExpired",r=1002,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,zB.prototype)}},GB=class qB extends it{constructor(e="MethodNotFound",r=1003,n="Method not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,qB.prototype)}},KB=class QB extends it{constructor(e="RequestConflict",r=1004,n="Conflict with target resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,QB.prototype)}},JB=class YB extends it{constructor(e="Aborted",r=1005,n="Request aborted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,YB.prototype)}},XB=class ZB extends it{constructor(e="Timeout",r=2e3,n="Request timed out",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,ZB.prototype)}},eL=class tL extends it{constructor(e="InvalidArgument",r=2001,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,tL.prototype)}},rL=class nL extends it{constructor(e="Unavailable",r=2002,n="Unavailable resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,nL.prototype)}},sL=class iL extends it{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,iL.prototype)}};class Zg extends it{constructor(e="ResourceExhausted",r=2004,n="Resource exhausted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Zg.prototype)}}let oL=class aL extends it{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,aL.prototype)}},cL=class lL extends it{constructor(e="ProjectNotFound",r=3002,n="Project not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lL.prototype)}};class em extends it{constructor(e="MetadataCallFailed",r=3003,n="Metadata service call failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,em.prototype)}}let yle=function(t){return t.WebrpcEndpoint="WebrpcEndpoint",t.WebrpcRequestFailed="WebrpcRequestFailed",t.WebrpcBadRoute="WebrpcBadRoute",t.WebrpcBadMethod="WebrpcBadMethod",t.WebrpcBadRequest="WebrpcBadRequest",t.WebrpcBadResponse="WebrpcBadResponse",t.WebrpcServerPanic="WebrpcServerPanic",t.WebrpcInternalError="WebrpcInternalError",t.WebrpcClientDisconnected="WebrpcClientDisconnected",t.WebrpcStreamLost="WebrpcStreamLost",t.WebrpcStreamFinished="WebrpcStreamFinished",t.Unauthorized="Unauthorized",t.PermissionDenied="PermissionDenied",t.SessionExpired="SessionExpired",t.MethodNotFound="MethodNotFound",t.RequestConflict="RequestConflict",t.Aborted="Aborted",t.Timeout="Timeout",t.InvalidArgument="InvalidArgument",t.Unavailable="Unavailable",t.QueryFailed="QueryFailed",t.ResourceExhausted="ResourceExhausted",t.NotFound="NotFound",t.ProjectNotFound="ProjectNotFound",t.MetadataCallFailed="MetadataCallFailed",t}({});const uL={0:wB,[-1]:ct,[-2]:kB,[-3]:SB,[-4]:PB,[-5]:R0,[-6]:RB,[-7]:_B,[-8]:DB,[-9]:Lh,[-10]:jB,1e3:UB,1001:WB,1002:HB,1003:GB,1004:KB,1005:JB,2e3:XB,2001:eL,2002:rL,2003:sL,2004:Zg,3e3:oL,3002:cL,3003:em},p3=globalThis.fetch;class fL extends xB{constructor(e,r,n){super(e.endsWith("/")?e.slice(0,-1):e,p3),this.projectAccessKey=r,this.jwtAuth=n,this._fetch=(s,i)=>{const o={},a=this.jwtAuth,c=this.projectAccessKey;return a&&a.length>0&&(o.Authorization=`BEARER ${a}`),c&&c.length>0&&(o["X-Access-Key"]=c),i.headers=Ev({},i.headers,o),p3(s,i)},this.fetch=this._fetch}}const vle=Object.freeze(Object.defineProperty({__proto__:null,AbortedError:JB,ContractType:ale,EventLogDataType:lle,EventLogType:cle,Indexer:xB,InvalidArgumentError:eL,MetadataCallFailedError:em,MethodNotFoundError:GB,NotFoundError:oL,OrderStatus:ule,PermissionDeniedError:WB,ProjectNotFoundError:cL,QueryFailedError:sL,RequestConflictError:KB,ResourceExhaustedError:Zg,SequenceIndexer:fL,SessionExpiredError:HB,SortOrder:ple,TimeoutError:XB,TransactionStatus:dle,TransactionType:hle,TxnTransferType:fle,UnauthorizedError:UB,UnavailableError:rL,WebRPCSchemaHash:ole,WebRPCSchemaVersion:ile,WebRPCVersion:sle,WebrpcBadMethodError:SB,WebrpcBadRequestError:PB,WebrpcBadResponseError:R0,WebrpcBadRouteError:kB,WebrpcClientDisconnectedError:DB,WebrpcEndpointError:wB,WebrpcError:it,WebrpcInternalErrorError:_B,WebrpcRequestFailedError:ct,WebrpcServerPanicError:RB,WebrpcStreamFinishedError:jB,WebrpcStreamLostError:Lh,errors:yle},Symbol.toStringTag,{value:"Module"}));function N0(){return N0=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),be({},n,s)).then(i=>we(i).then(o=>({status:o.status})),i=>{throw ge.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),be({},n,s)).then(i=>we(i).then(o=>({version:o.version})),i=>{throw ge.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),be({},n,s)).then(i=>we(i).then(o=>({status:o.status})),i=>{throw ge.new({cause:`fetch(): ${i.message||""}`})}),this.getTokenMetadata=(n,s,i)=>this.fetch(this.url("GetTokenMetadata"),be(n,s,i)).then(o=>we(o).then(a=>({tokenMetadata:a.tokenMetadata})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.refreshTokenMetadata=(n,s,i)=>this.fetch(this.url("RefreshTokenMetadata"),be(n,s,i)).then(o=>we(o).then(a=>({taskId:a.taskId})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.enqueueTokensForRefresh=(n,s,i)=>this.fetch(this.url("EnqueueTokensForRefresh"),be(n,s,i)).then(o=>we(o).then(a=>({taskId:a.taskId})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenRefreshStatus=(n,s,i)=>this.fetch(this.url("GetTokenRefreshStatus"),be(n,s,i)).then(o=>we(o).then(a=>({status:a.status})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenRefreshResult=(n,s,i)=>this.fetch(this.url("GetTokenRefreshResult"),be(n,s,i)).then(o=>we(o).then(a=>({status:a.status,tokens:a.tokens,failureReasons:a.failureReasons})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.cancelRefreshJob=(n,s,i)=>this.fetch(this.url("CancelRefreshJob"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenMetadataBatch=(n,s,i)=>this.fetch(this.url("GetTokenMetadataBatch"),be(n,s,i)).then(o=>we(o).then(a=>({contractTokenMetadata:a.contractTokenMetadata})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchTokenMetadata=(n,s,i)=>this.fetch(this.url("SearchTokenMetadata"),be(n,s,i)).then(o=>we(o).then(a=>({page:a.page,tokenMetadata:a.tokenMetadata})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchTokenIDs=(n,s,i)=>this.fetch(this.url("SearchTokenIDs"),be(n,s,i)).then(o=>we(o).then(a=>({page:a.page,tokenIds:a.tokenIds})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.tokenCollectionFilters=(n,s,i)=>this.fetch(this.url("TokenCollectionFilters"),be(n,s,i)).then(o=>we(o).then(a=>({filters:a.filters})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getContractInfo=(n,s,i)=>this.fetch(this.url("GetContractInfo"),be(n,s,i)).then(o=>we(o).then(a=>({contractInfo:a.contractInfo})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getContractInfoBatch=(n,s,i)=>this.fetch(this.url("GetContractInfoBatch"),be(n,s,i)).then(o=>we(o).then(a=>({contractInfoMap:a.contractInfoMap})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchContractInfo=(n,s,i)=>this.fetch(this.url("SearchContractInfo"),be(n,s,i)).then(o=>we(o).then(a=>({contractInfoList:a.contractInfoList})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchContractInfoBatch=(n,s,i)=>this.fetch(this.url("SearchContractInfoBatch"),be(n,s,i)).then(o=>we(o).then(a=>({contractInfoByChain:a.contractInfoByChain})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchMetadata=(n,s,i)=>this.fetch(this.url("SearchMetadata"),be(n,s,i)).then(o=>we(o).then(a=>({tokenMetadata:a.tokenMetadata,contractInfo:a.contractInfo})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchTokens=(n,s,i)=>this.fetch(this.url("SearchTokens"),be(n,s,i)).then(o=>we(o).then(a=>({tokenMetadata:a.tokenMetadata,nextPage:a.nextPage})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchContracts=(n,s,i)=>this.fetch(this.url("SearchContracts"),be(n,s,i)).then(o=>we(o).then(a=>({contractInfo:a.contractInfo,nextPage:a.nextPage})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getNiftyswapTokenQuantity=(n,s,i)=>this.fetch(this.url("GetNiftyswapTokenQuantity"),be(n,s,i)).then(o=>we(o).then(a=>({quantity:a.quantity})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getNiftyswapUnitPrices=(n,s,i)=>this.fetch(this.url("GetNiftyswapUnitPrices"),be(n,s,i)).then(o=>we(o).then(a=>({prices:a.prices})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getNiftyswapUnitPricesWithQuantities=(n,s,i)=>this.fetch(this.url("GetNiftyswapUnitPricesWithQuantities"),be(n,s,i)).then(o=>we(o).then(a=>({prices:a.prices})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.addContractToMintMonitor=(n,s,i)=>this.fetch(this.url("AddContractToMintMonitor"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.removeContractFromMintMonitor=(n,s,i)=>this.fetch(this.url("RemoveContractFromMintMonitor"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.mintMonitorJobStatus=(n,s,i)=>this.fetch(this.url("MintMonitorJobStatus"),be(n,s,i)).then(o=>we(o).then(a=>({task:a.task})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.mintMonitorTriggerJob=(n,s,i)=>this.fetch(this.url("MintMonitorTriggerJob"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.syncContractTokens=(n,s,i)=>this.fetch(this.url("SyncContractTokens"),be(n,s,i)).then(o=>we(o).then(a=>({taskID:a.taskID})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.abortContractSync=(n,s,i)=>this.fetch(this.url("AbortContractSync"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.contractSyncJobStatus=(n,s,i)=>this.fetch(this.url("ContractSyncJobStatus"),be(n,s,i)).then(o=>we(o).then(a=>({refreshTask:a.refreshTask,syncTask:a.syncTask})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.directoryGetNetworks=(n,s,i)=>this.fetch(this.url("DirectoryGetNetworks"),be(n,s,i)).then(o=>we(o).then(a=>({networks:a.networks})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.directoryGetCollections=(n,s,i)=>this.fetch(this.url("DirectoryGetCollections"),be(n,s,i)).then(o=>we(o).then(a=>({collections:a.collections,page:a.page})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.directorySearchCollections=(n,s,i)=>this.fetch(this.url("DirectorySearchCollections"),be(n,s,i)).then(o=>we(o).then(a=>({collections:a.collections,page:a.page})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}class hL{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Collections/",this.createCollection=(n,s,i)=>this.fetch(this.url("CreateCollection"),be(n,s,i)).then(o=>we(o).then(a=>({collection:a.collection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getCollection=(n,s,i)=>this.fetch(this.url("GetCollection"),be(n,s,i)).then(o=>we(o).then(a=>({collection:a.collection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.listCollections=(n,s,i)=>this.fetch(this.url("ListCollections"),be(n,s,i)).then(o=>we(o).then(a=>({page:a.page,collections:a.collections})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.updateCollection=(n,s,i)=>this.fetch(this.url("UpdateCollection"),be(n,s,i)).then(o=>we(o).then(a=>({collection:a.collection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.deleteCollection=(n,s,i)=>this.fetch(this.url("DeleteCollection"),be(n,s,i)).then(o=>we(o).then(a=>({status:a.status})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.publishCollection=(n,s,i)=>this.fetch(this.url("PublishCollection"),be(n,s,i)).then(o=>we(o).then(a=>({collection:a.collection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.unpublishCollection=(n,s,i)=>this.fetch(this.url("UnpublishCollection"),be(n,s,i)).then(o=>we(o).then(a=>({collection:a.collection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.createContractCollection=(n,s,i)=>this.fetch(this.url("CreateContractCollection"),be(n,s,i)).then(o=>we(o).then(a=>({contractCollection:a.contractCollection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getContractCollection=(n,s,i)=>this.fetch(this.url("GetContractCollection"),be(n,s,i)).then(o=>we(o).then(a=>({contractCollection:a.contractCollection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.listContractCollections=(n,s,i)=>this.fetch(this.url("ListContractCollections"),be(n,s,i)).then(o=>we(o).then(a=>({contractCollections:a.contractCollections,page:a.page})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.updateContractCollection=(n,s,i)=>this.fetch(this.url("UpdateContractCollection"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.deleteContractCollection=(n,s,i)=>this.fetch(this.url("DeleteContractCollection"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.createToken=(n,s,i)=>this.fetch(this.url("CreateToken"),be(n,s,i)).then(o=>we(o).then(a=>({token:a.token,assets:a.assets})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getToken=(n,s,i)=>this.fetch(this.url("GetToken"),be(n,s,i)).then(o=>we(o).then(a=>({token:a.token,assets:a.assets})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.listTokens=(n,s,i)=>this.fetch(this.url("ListTokens"),be(n,s,i)).then(o=>we(o).then(a=>({page:a.page,tokens:a.tokens})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.updateToken=(n,s,i)=>this.fetch(this.url("UpdateToken"),be(n,s,i)).then(o=>we(o).then(a=>({token:a.token})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.deleteToken=(n,s,i)=>this.fetch(this.url("DeleteToken"),be(n,s,i)).then(o=>we(o).then(a=>({status:a.status})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.createAsset=(n,s,i)=>this.fetch(this.url("CreateAsset"),be(n,s,i)).then(o=>we(o).then(a=>({asset:a.asset})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getAsset=(n,s,i)=>this.fetch(this.url("GetAsset"),be(n,s,i)).then(o=>we(o).then(a=>({asset:a.asset})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.updateAsset=(n,s,i)=>this.fetch(this.url("UpdateAsset"),be(n,s,i)).then(o=>we(o).then(a=>({asset:a.asset})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.deleteAsset=(n,s,i)=>this.fetch(this.url("DeleteAsset"),be(n,s,i)).then(o=>we(o).then(a=>({status:a.status})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}class kle{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Admin/",this.addContractsToTokenDirectory=(n,s,i)=>this.fetch(this.url("AddContractsToTokenDirectory"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.removeContractsFromTokenDirectory=(n,s,i)=>this.fetch(this.url("RemoveContractsFromTokenDirectory"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.modifyFeatureIndex=(n,s,i)=>this.fetch(this.url("ModifyFeatureIndex"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getFeatureIndex=(n,s,i)=>this.fetch(this.url("GetFeatureIndex"),be(n,s,i)).then(o=>we(o).then(a=>({featured:a.featured})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.listTokenDirectory=(n,s,i)=>this.fetch(this.url("ListTokenDirectory"),be(n,s,i)).then(o=>we(o).then(a=>({page:a.page,collections:a.collections})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const be=(t={},e={},r=null)=>({method:"POST",headers:N0({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),we=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),kk.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(Sle[n]||Ze).new(r)}return r});let Ze=class pL extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,pL.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},yL=class vL extends Ze{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,vL.prototype)}},ge=class gL extends Ze{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,gL.prototype)}},mL=class xL extends Ze{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,xL.prototype)}},bL=class wL extends Ze{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,wL.prototype)}},CL=class EL extends Ze{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,EL.prototype)}},kk=class kL extends Ze{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,kL.prototype)}},AL=class SL extends Ze{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,SL.prototype)}},TL=class PL extends Ze{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,PL.prototype)}},IL=class OL extends Ze{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,OL.prototype)}},RL=class NL extends Ze{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,NL.prototype)}},_L=class ML extends Ze{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,ML.prototype)}},DL=class BL extends Ze{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,BL.prototype)}},LL=class jL extends Ze{constructor(e="PermissionDenied",r=1001,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,jL.prototype)}},FL=class UL extends Ze{constructor(e="SessionExpired",r=1002,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,UL.prototype)}};class tm extends Ze{constructor(e="MethodNotFound",r=1003,n="Method not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,tm.prototype)}}class rm extends Ze{constructor(e="RequestConflict",r=1004,n="Conflict with target resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,rm.prototype)}}class nm extends Ze{constructor(e="Fail",r=1005,n="Request Failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,nm.prototype)}}class sm extends Ze{constructor(e="Geoblocked",r=1006,n="Geoblocked region",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,sm.prototype)}}class im extends Ze{constructor(e="Timeout",r=2e3,n="Request timed out",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,im.prototype)}}let $L=class WL extends Ze{constructor(e="InvalidArgument",r=2001,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,WL.prototype)}};class om extends Ze{constructor(e="RequiredArgument",r=2002,n="Required argument missing",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,om.prototype)}}let VL=class HL extends Ze{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,HL.prototype)}},zL=class GL extends Ze{constructor(e="ValidationFailed",r=2004,n="Validation failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,GL.prototype)}};class am extends Ze{constructor(e="RateLimited",r=2005,n="Rate limited",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,am.prototype)}}let qL=class KL extends Ze{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,KL.prototype)}};class cm extends Ze{constructor(e="ProjectNotFound",r=3002,n="Project not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,cm.prototype)}}class lm extends Ze{constructor(e="ChainNotFound",r=3003,n="Chain not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lm.prototype)}}class um extends Ze{constructor(e="TokenDirectoryDisabled",r=4001,n="Token Directory is disabled",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,um.prototype)}}let Ale=function(t){return t.WebrpcEndpoint="WebrpcEndpoint",t.WebrpcRequestFailed="WebrpcRequestFailed",t.WebrpcBadRoute="WebrpcBadRoute",t.WebrpcBadMethod="WebrpcBadMethod",t.WebrpcBadRequest="WebrpcBadRequest",t.WebrpcBadResponse="WebrpcBadResponse",t.WebrpcServerPanic="WebrpcServerPanic",t.WebrpcInternalError="WebrpcInternalError",t.WebrpcClientDisconnected="WebrpcClientDisconnected",t.WebrpcStreamLost="WebrpcStreamLost",t.WebrpcStreamFinished="WebrpcStreamFinished",t.Unauthorized="Unauthorized",t.PermissionDenied="PermissionDenied",t.SessionExpired="SessionExpired",t.MethodNotFound="MethodNotFound",t.RequestConflict="RequestConflict",t.Fail="Fail",t.Geoblocked="Geoblocked",t.Timeout="Timeout",t.InvalidArgument="InvalidArgument",t.RequiredArgument="RequiredArgument",t.QueryFailed="QueryFailed",t.ValidationFailed="ValidationFailed",t.RateLimited="RateLimited",t.NotFound="NotFound",t.ProjectNotFound="ProjectNotFound",t.ChainNotFound="ChainNotFound",t.TokenDirectoryDisabled="TokenDirectoryDisabled",t}({});const Sle={0:yL,[-1]:ge,[-2]:mL,[-3]:bL,[-4]:CL,[-5]:kk,[-6]:AL,[-7]:TL,[-8]:IL,[-9]:RL,[-10]:_L,1e3:DL,1001:LL,1002:FL,1003:tm,1004:rm,1005:nm,1006:sm,2e3:im,2001:$L,2002:om,2003:VL,2004:zL,2005:am,3e3:qL,3002:cm,3003:lm,4001:um},kv=globalThis.fetch;class QL extends dL{constructor(e="https://metadata.sequence.app",r,n){super(e.endsWith("/")?e.slice(0,-1):e,kv),this.projectAccessKey=r,this.jwtAuth=n,this._fetch=(s,i)=>{const o={},a=this.jwtAuth,c=this.projectAccessKey;return a&&a.length>0&&(o.Authorization=`BEARER ${a}`),c&&c.length>0&&(o["X-Access-Key"]=c),i.headers=N0({},i.headers,o),kv(s,i)},this.fetch=this._fetch}}class Tle extends hL{constructor(e="https://metadata.sequence.app",r){super(e.endsWith("/")?e.slice(0,-1):e,kv),this.jwtAuth=r,this._fetch=(n,s)=>{const i={},o=this.jwtAuth;return o&&o.length>0&&(i.Authorization=`BEARER ${o}`),s.headers=N0({},s.headers,i),kv(n,s)},this.fetch=this._fetch}}const Ple=Object.freeze(Object.defineProperty({__proto__:null,Admin:kle,ChainNotFoundError:lm,Collections:hL,ContractType:ble,FailError:nm,GeoblockedError:sm,InvalidArgumentError:$L,Metadata:dL,MethodNotFoundError:tm,NotFoundError:qL,PermissionDeniedError:LL,ProjectNotFoundError:cm,PropertyType:wle,QueryFailedError:VL,RateLimitedError:am,RequestConflictError:rm,RequiredArgumentError:om,SequenceCollections:Tle,SequenceMetadata:QL,SessionExpiredError:FL,SwapType:Cle,TaskStatus:Ele,TimeoutError:im,TokenDirectoryDisabledError:um,UnauthorizedError:DL,ValidationFailedError:zL,WebRPCSchemaHash:xle,WebRPCSchemaVersion:mle,WebRPCVersion:gle,WebrpcBadMethodError:bL,WebrpcBadRequestError:CL,WebrpcBadResponseError:kk,WebrpcBadRouteError:mL,WebrpcClientDisconnectedError:IL,WebrpcEndpointError:yL,WebrpcError:Ze,WebrpcInternalErrorError:TL,WebrpcRequestFailedError:ge,WebrpcServerPanicError:AL,WebrpcStreamFinishedError:_L,WebrpcStreamLostError:RL,errors:Ale},Symbol.toStringTag,{value:"Module"}));function Ile(t,e){const r=t.replace("ipfs://ipfs/","").replace("ipfs://","");return t.startsWith("ipfs://")?`${e}${r}`:t}function Ole(t){return t.startsWith("ipfs://")}class Rle{constructor(e,r,n=1e3){this.provider=e,this.solver=r,this.window=n,this.pending=new Map}async runByEIP5719(e,r,n){const s=`${e}-${r}-${n}`,i=Date.now();if(this.pending.has(s)&&i-this.pending.get(s).timestamp10)throw new Error("EIP5719 - Too many tries");if(ye.signer.canRecover(n)){const c=ye.signer.recoverSigner(r,n);if(c&&c.toLowerCase()===t.toLowerCase())return n}try{if(await ye.signer.isValidSignature(t,r,n,e))return n}catch{}const o=await _le(Nle(t,e).getAlternativeSignature(r));if(!o||o==="")throw new Error("EIP5719 - Invalid signature and no alternative signature");const a=H(await(s||new Mle).resolve(o));if(!a||a==="")throw new Error("EIP5719 - Empty alternative signature");if(a===H(n))throw new Error("EIP5719 - Alternative signature is invalid or the same");return JL(t,e,r,a,s,i+1)}class Mle{constructor(e="https://cloudflare-ipfs.com/ipfs/"){var r=this;this.gateway=e,this.uri=n=>Ole(n)?Ile(n,this.gateway):n,this.resolve=async function(n){const s=r.uri(n),i=await fetch(s);if(!i.ok)throw new Error(`URISolverIPFS - Failed to fetch ${s}`);return await i.text()}}}const Dle=(t,e)=>e.some(r=>t instanceof r);let y3,v3;function Ble(){return y3||(y3=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Lle(){return v3||(v3=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const YL=new WeakMap,L2=new WeakMap,XL=new WeakMap,Wx=new WeakMap,Ak=new WeakMap;function jle(t){const e=new Promise((r,n)=>{const s=()=>{t.removeEventListener("success",i),t.removeEventListener("error",o)},i=()=>{r(Ea(t.result)),s()},o=()=>{n(t.error),s()};t.addEventListener("success",i),t.addEventListener("error",o)});return e.then(r=>{r instanceof IDBCursor&&YL.set(r,t)}).catch(()=>{}),Ak.set(e,t),e}function Fle(t){if(L2.has(t))return;const e=new Promise((r,n)=>{const s=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",o),t.removeEventListener("abort",o)},i=()=>{r(),s()},o=()=>{n(t.error||new DOMException("AbortError","AbortError")),s()};t.addEventListener("complete",i),t.addEventListener("error",o),t.addEventListener("abort",o)});L2.set(t,e)}let j2={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return L2.get(t);if(e==="objectStoreNames")return t.objectStoreNames||XL.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return Ea(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function Ule(t){j2=t(j2)}function $le(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){const n=t.call(Vx(this),e,...r);return XL.set(n,e.sort?e.sort():[e]),Ea(n)}:Lle().includes(t)?function(...e){return t.apply(Vx(this),e),Ea(YL.get(this))}:function(...e){return Ea(t.apply(Vx(this),e))}}function Wle(t){return typeof t=="function"?$le(t):(t instanceof IDBTransaction&&Fle(t),Dle(t,Ble())?new Proxy(t,j2):t)}function Ea(t){if(t instanceof IDBRequest)return jle(t);if(Wx.has(t))return Wx.get(t);const e=Wle(t);return e!==t&&(Wx.set(t,e),Ak.set(e,t)),e}const Vx=t=>Ak.get(t);function Vle(t,e,{blocked:r,upgrade:n,blocking:s,terminated:i}={}){const o=indexedDB.open(t,e),a=Ea(o);return n&&o.addEventListener("upgradeneeded",c=>{n(Ea(o.result),c.oldVersion,c.newVersion,Ea(o.transaction),c)}),r&&o.addEventListener("blocked",c=>r(c.oldVersion,c.newVersion,c)),a.then(c=>{i&&c.addEventListener("close",()=>i()),s&&c.addEventListener("versionchange",l=>s(l.oldVersion,l.newVersion,l))}).catch(()=>{}),a}const Hle=["get","getKey","getAll","getAllKeys","count"],zle=["put","add","delete","clear"],Hx=new Map;function g3(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(Hx.get(e))return Hx.get(e);const r=e.replace(/FromIndex$/,""),n=e!==r,s=zle.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(s||Hle.includes(r)))return;const i=async function(o,...a){const c=this.transaction(o,s?"readwrite":"readonly");let l=c.store;return n&&(l=l.index(a.shift())),(await Promise.all([l[r](...a),s&&c.done]))[0]};return Hx.set(e,i),i}Ule(t=>({...t,get:(e,r,n)=>g3(e,r)||t.get(e,r,n),has:(e,r)=>!!g3(e,r)||t.has(e,r)}));class Gle{constructor(){this.loadPresignedConfiguration=void 0,this.savePresignedConfiguration=void 0,this.saveWitnesses=void 0,this.configOfImageHash=void 0,this.saveWalletConfig=void 0,this.imageHashOfCounterfactualWallet=void 0,this.saveCounterfactualWallet=void 0,this.walletsOfSigner=void 0}}var qle=Object.freeze({__proto__:null,ConfigTracker:Gle});class Kle{constructor(e){this.tracker=e}async loadPresignedConfiguration(e){return console.debug("? loadPresignedConfiguration"),Dr(e,"? "),Dr(await this.tracker.loadPresignedConfiguration(e),"! ")}savePresignedConfiguration(e){return console.debug("? savePresignedConfiguration"),Dr(e,"? "),this.tracker.savePresignedConfiguration(e)}saveWitnesses(e){return console.debug("? saveWitnesses"),Dr(e,"? "),this.tracker.saveWitnesses(e)}async configOfImageHash(e){return console.debug("? configOfImageHash"),Dr(e,"? "),Dr(await this.tracker.configOfImageHash(e),"! ")}saveWalletConfig(e){return console.debug("? saveWalletConfig"),Dr(e,"? "),this.tracker.saveWalletConfig(e)}async imageHashOfCounterfactualWallet(e){return console.debug("? imageHashOfCounterfactualWallet"),Dr(e,"? "),Dr(await this.tracker.imageHashOfCounterfactualWallet(e),"! ")}saveCounterfactualWallet(e){return console.debug("? saveCounterfactualWallet"),Dr(e,"? "),this.tracker.saveCounterfactualWallet(e)}async walletsOfSigner(e){return console.debug("? walletsOfSigner"),Dr(e,"? "),Dr(await this.tracker.walletsOfSigner(e),"! ")}async getMigration(e,r,n,s){return console.debug("? getMigration"),Dr({address:e,fromImageHash:r,fromVersion:n,chainId:s},"? "),Dr(await this.tracker.getMigration(e,r,n,s),"! ")}saveMigration(e,r,n){return console.debug("? saveMigration"),Dr({address:e,signed:r,contexts:n},"? "),this.tracker.saveMigration(e,r,n)}}function Dr(t,e=""){switch(t){case void 0:console.debug(e+"undefined");break;default:JSON.stringify(t,void 0,2).split(` -`).map(r=>e+r).forEach(r=>console.debug(r));break}return t}var Qle=Object.freeze({__proto__:null,DebugConfigTracker:Kle});function _a(){return _a=Object.assign?Object.assign.bind():function(t){for(var e=1;ePromise.resolve(this.configs[e]),this.saveConfig=(e,r)=>(this.configs[e]=r,Promise.resolve()),this.loadV2Node=e=>Promise.resolve(this.v2Nodes[e]),this.saveV2Node=(e,r)=>(this.v2Nodes[e]=r,Promise.resolve()),this.loadCounterfactualWallet=e=>Promise.resolve(this.counterfactualWallets[e]),this.saveCounterfactualWallet=(e,r,n)=>(this.counterfactualWallets[e]={imageHash:r,context:n},Promise.resolve()),this.loadPayloadOfSubdigest=e=>Promise.resolve(this.payloads[e]),this.savePayloadOfSubdigest=(e,r)=>(this.payloads[e]=r,Promise.resolve()),this.loadSubdigestsOfSigner=e=>Promise.resolve(Object.keys(this.signatures[e]||{})),this.loadSignatureOfSubdigest=(e,r)=>{var n;return Promise.resolve((n=this.signatures[e])==null?void 0:n[r])},this.saveSignatureOfSubdigest=(e,r,n)=>(this.signatures[e]||(this.signatures[e]={}),this.signatures[e][r]=n,Promise.resolve()),this.loadMigrationsSubdigest=(e,r,n)=>{var s;return Promise.resolve(((s=this.migrations[e])==null||(s=s[r])==null?void 0:s[n])||[])},this.saveMigrationsSubdigest=(e,r,n,s,i)=>(this.migrations[e]||(this.migrations[e]={}),this.migrations[e][r]||(this.migrations[e][r]={}),this.migrations[e][r][n]||(this.migrations[e][r][n]=[]),this.migrations[e][r][n].push({subdigest:s,toImageHash:i}),Promise.resolve())}}function Lu(t){if(t===void 0)return;const e={};for(const r of Object.keys(t)){const n=t[r];n._isBigNumber===!0&&n._hex!==void 0&&typeof n._hex=="string"&&n._hex.length!==""?e[r]=BigInt(n):Array.isArray(n)?e[r]=n.map(s=>Lu(s)):typeof n=="object"&&n!==null?e[r]=Lu(n):e[r]=n}return e}class Jle{constructor(e){var r=this;this.dbName=e,this._lazyDb=void 0,this.loadConfig=async function(n){return(await r.getDb()).get("configs",n).then(i=>Lu(i))},this.saveConfig=async function(n,s){await(await r.getDb()).put("configs",s,n)},this.loadV2Node=async function(n){return(await r.getDb()).get("v2Nodes",n).then(i=>Lu(i))},this.saveV2Node=async function(n,s){await(await r.getDb()).put("v2Nodes",s,n)},this.loadCounterfactualWallet=async function(n){return(await r.getDb()).get("counterfactualWallets",n)},this.saveCounterfactualWallet=async function(n,s,i){await(await r.getDb()).put("counterfactualWallets",{imageHash:s,context:i},n)},this.loadPayloadOfSubdigest=async function(n){return(await r.getDb()).get("payloads",n).then(i=>Lu(i))},this.savePayloadOfSubdigest=async function(n,s){await(await r.getDb()).put("payloads",s,n)},this.loadSubdigestsOfSigner=async function(n){return(await(await r.getDb()).getAllKeysFromIndex("signatures","signer",IDBKeyRange.only(n))).map(o=>o.split("-")[0])},this.loadSignatureOfSubdigest=async function(n,s){const o=await(await r.getDb()).get("signatures",[s,n].join("-"));return o==null?void 0:o.signature},this.saveSignatureOfSubdigest=async function(n,s,i){await(await r.getDb()).put("signatures",{signature:i,signer:n},[s,n].join("-"))},this.loadMigrationsSubdigest=async function(n,s,i){return(await(await r.getDb()).getAllFromIndex("migrations","jump",IDBKeyRange.only([n,s,i]))).map(c=>({subdigest:c.subdigest,toImageHash:c.toImageHash}))},this.saveMigrationsSubdigest=async function(n,s,i,o,a){await(await r.getDb()).put("migrations",{wallet:n,fromVersion:s,toVersion:i,subdigest:o,toImageHash:a},o)}}async getDb(){if(this._lazyDb)return this._lazyDb;const e=this.dbName;return this._lazyDb=await Vle(e,1,{upgrade(r,n,s,i){console.log(`upgrading ${e} from ${n} to ${s} - ${i}`),n===0&&(r.createObjectStore("configs"),r.createObjectStore("v2Nodes"),r.createObjectStore("counterfactualWallets"),r.createObjectStore("payloads"),r.createObjectStore("signatures").createIndex("signer","signer",{unique:!1}),r.createObjectStore("migrations").createIndex("jump",["wallet","fromVersion","toVersion"]))}}),this._lazyDb}}function ej(t){return t.left!==void 0&&t.right!==void 0}function tj(t){return t.weight!==void 0&&t.threshold!==void 0&&t.tree!==void 0}function F2(t){return t.version===2&&t.threshold!==void 0&&t.checkpoint!==void 0&&t.tree!==void 0&&typeof t.tree=="string"}var Yle=Object.freeze({__proto__:null,isPlainNode:ej,isPlainNested:tj,isPlainV2Config:F2,MemoryTrackerStore:ZL,recreateBigNumbers:Lu,IndexedDBStore:Jle});class Sk{constructor(e,r=new ZL,n=!1){var s=this;this.provider=e,this.store=r,this.useEIP5719=n,this.cachedEIP5719=void 0,this.loadTopology=async function(i){const o=await s.store.loadV2Node(i);if(!o)return{nodeHash:i};if(ej(o)){const[a,c]=await Promise.all([s.loadTopology(o.left),s.loadTopology(o.right)]);return{left:a,right:c}}return tj(o)?{weight:BigInt(o.weight),threshold:BigInt(o.threshold),tree:await s.loadTopology(o.tree)}:o},this.saveTopology=async function(i){if(je.config.isNodeLeaf(i))return;const o=je.config.hashNode(i);if(je.config.isNode(i)){const a=s.saveTopology(i.left),c=s.saveTopology(i.right),l=s.store.saveV2Node(o,{left:je.config.hashNode(i.left),right:je.config.hashNode(i.right)});await Promise.all([a,c,l]);return}if(je.config.isNestedLeaf(i)){const a=s.saveTopology(i.tree),c=s.store.saveV2Node(o,{weight:BigInt(i.weight).toString(),threshold:BigInt(i.threshold).toString(),tree:je.config.hashNode(i.tree)});await Promise.all([a,c]);return}if(je.config.isSignerLeaf(i))return s.store.saveV2Node(o,{address:i.address,weight:i.weight});if(je.config.isSubdigestLeaf(i))return s.store.saveV2Node(o,{subdigest:i.subdigest});throw new Error(`Unknown topology type: ${i}`)},this.saveWalletConfig=async function(i){const{config:o}=i;if(Vi.config.ConfigCoder.isWalletConfig(o)){const a=Vi.config.ConfigCoder.imageHashOf(o);return s.store.saveConfig(a,o)}if(je.config.ConfigCoder.isWalletConfig(o)){const a=je.config.ConfigCoder.imageHashOf(o);if(je.config.isComplete(o.tree))return s.store.saveConfig(a,o)}},this.configOfImageHashCache={},this.configOfImageHash=async function(i){const{imageHash:o}=i;if(s.configOfImageHashCache[i.imageHash])return s.configOfImageHashCache[i.imageHash];const a=await s.store.loadConfig(o);if(a){if(a.version===1||a.version===2&&!F2(a))return s.configOfImageHashCache[i.imageHash]=a,a;if(F2(a)){const c={version:2,threshold:BigInt(a.threshold),checkpoint:BigInt(a.checkpoint),tree:await s.loadTopology(a.tree)};return s.configOfImageHashCache[i.imageHash]=c,c}throw new Error(`Unknown config type: ${a}`)}},this.saveCounterfactualWallet=async function(i){const{config:o,context:a}=i,c=dr.genericCoderFor(o.version).config.imageHashOf(o);await Promise.all([s.saveWalletConfig({config:o}),...a.map(l=>{const u=ye.context.addressOf(l,c);return s.store.saveCounterfactualWallet(u,c,l)})])},this.imageHashOfCounterfactualWallet=async function(i){const{wallet:o}=i,a=await s.store.loadCounterfactualWallet(o);if(a)return{imageHash:a.imageHash,context:a.context}},this.savePayload=async function(i){const{payload:o}=i,a=ye.signature.subdigestOf(o);await s.store.savePayloadOfSubdigest(a,o)},this.payloadOfSubdigestCache={},this.payloadOfSubdigest=async function(i){if(s.payloadOfSubdigestCache[i.subdigest])return s.payloadOfSubdigestCache[i.subdigest];const{subdigest:o}=i,a=await s.store.loadPayloadOfSubdigest(o);return a&&(s.payloadOfSubdigestCache[o]=a),a},this.savePresignedConfiguration=async function(i){const o=je.signature.SignatureCoder.decode(i.signature),a=dr.genericCoderFor(i.nextConfig.version).config.imageHashOf(i.nextConfig),c=je.chained.messageSetImageHash(a),l=Ne(c),u={message:c,address:i.wallet,chainId:0,digest:l},f=s.savePayload({payload:u}),d=s.saveWalletConfig({config:i.nextConfig}),h=await je.signature.SignatureCoder.recover(o,u,s.provider),y=je.signature.signaturesOf(h.config.tree);await Promise.all([f,d,s.saveWalletConfig({config:h.config}),...y.map(p=>s.store.saveSignatureOfSubdigest(p.address,h.subdigest,p.signature))])},this.loadPresignedConfiguration=async function(i){const{wallet:o,fromImageHash:a,longestPath:c}=i,l=await s.configOfImageHash({imageHash:a});if(!l||!je.config.ConfigCoder.isWalletConfig(l))return[];const u=je.config.signersOf(l.tree).map(x=>x.address),f=await Promise.all(u.map(x=>s.store.loadSubdigestsOfSigner(x))),d=[...new Set(f.flat())],y=(await Promise.all([...new Set(d)].map(async function(x){return _a({},await s.payloadOfSubdigest({subdigest:x}),{subdigest:x})}))).filter(x=>(x==null?void 0:x.message)&&(x==null?void 0:x.address)&&x.address===o).map(x=>({payload:x,nextImageHash:je.chained.decodeMessageSetImageHash(x.message)})).filter(x=>x==null?void 0:x.nextImageHash);let p;const v=(await Promise.all(y.map(async function({nextImageHash:x,payload:k}){const S=await s.configOfImageHash({imageHash:x});if(!S||!je.config.isWalletConfig(S))return;const I=BigInt(S.checkpoint);return{nextConfig:S,nextCheckpoint:I,nextImageHash:x,payload:k}}))).filter(x=>x!==void 0).filter(x=>x.nextCheckpoint>BigInt(l.checkpoint)).sort((x,k)=>x.nextCheckpoint>k.nextCheckpoint?c?1:-1:c?-1:1);for(const x of v){const{nextConfig:k,nextCheckpoint:S,nextImageHash:I,payload:R}=x;if(p){const F=p.checkpoint;if(c){if(S>=F)continue}else if(S<=F)continue}const _=new Map((await Promise.all(u.map(async function(F){const X=await s.store.loadSignatureOfSubdigest(F,R.subdigest);if(!X)return[F,void 0];const re=H(s.useEIP5719?await s.cachedEIP5719.runByEIP5719(F,R.subdigest,X):X),le=ye.signer.tryRecoverSigner(R.subdigest,re)!==F;return[F,{isDynamic:le,signature:re}]}))).filter(F=>!!F[1]));if(_.size===0)continue;const V=je.signature.SignatureCoder.encodeSigners(l,_,[],0);V.weightye.signer.canRecover(c)).map(c=>{const l=ye.signer.recoverSigner(a,c);return s.store.saveSignatureOfSubdigest(l,a,c)})])},this.walletsOfSigner=async function(i){const o=await s.store.loadSubdigestsOfSigner(i.signer),a=await Promise.all(o.map(l=>s.payloadOfSubdigest({subdigest:l}))).then(l=>l.filter(u=>u!==void 0)),c=[];for(const l of a){const u=l.address;if(c.find(h=>h.wallet===u))continue;const f=ye.signature.subdigestOf(l),d=await s.store.loadSignatureOfSubdigest(i.signer,f);d&&c.push({wallet:u,proof:{digest:l.digest,chainId:BigInt(l.chainId),signature:H(d)}})}return c},this.cachedEIP5719=new Rle(e)}async saveMigration(e,r,n){const s=r.fromVersion;if(s!==1)throw new Error("Migration not supported");if(!je.config.isWalletConfig(r.toConfig))throw new Error("Invalid to config");const{newImageHash:i,address:o}=TD.v1v2.decodeTransaction(r.tx,n);if(o!==e)throw new Error("Invalid migration transaction - address");if(je.config.ConfigCoder.imageHashOf(r.toConfig)!=i)throw new Error("Invalid migration transaction - config");const a=ye.transaction.packMetaTransactionsData(r.tx.nonce,r.tx.transactions),c=Ne(a),l={chainId:r.tx.chainId,message:a,address:e,digest:c},u=ye.signature.subdigestOf(l),f=this.savePayload({payload:l}),d=this.saveWalletConfig({config:r.toConfig}),h=Vi.signature.SignatureCoder.decode(r.tx.signature),y=await Vi.signature.SignatureCoder.recover(h,l,this.provider),p=Vi.signature.SignatureCoder.signaturesOf(y.config);await Promise.all([f,d,this.saveWalletConfig({config:y.config}),this.store.saveMigrationsSubdigest(e,s,s+1,u,i),...p.map(b=>this.store.saveSignatureOfSubdigest(b.address,y.subdigest,b.signature))])}async getMigration(e,r,n,s){var i=this;const[o,a]=await Promise.all([this.configOfImageHash({imageHash:r}),this.store.loadMigrationsSubdigest(e,n,n+1)]),c=dr.coderFor(n);return!o||!c.config.isWalletConfig(o)?void 0:(await Promise.all(a.map(async function(u){const{subdigest:f,toImageHash:d}=u,h=await i.payloadOfSubdigest({subdigest:f});if(!h||!h.message||BigInt(s)!==BigInt(h.chainId))return;const y=c.config.signersOf(o).map(x=>x.address),p=new Map((await Promise.all(y.map(async function(x){const k=await i.store.loadSignatureOfSubdigest(x,f);if(!k)return[x,void 0];const S=H(i.useEIP5719?await i.cachedEIP5719.runByEIP5719(x,f,k):k),I=ye.signer.tryRecoverSigner(f,S)!==x;return[x,{isDynamic:I,signature:S}]}))).filter(x=>!!x[1])),b=c.signature.encodeSigners(o,p,[],s);if(!b||b.weightu.filter(f=>f!==void 0)))[0]}updateProvider(e){this.provider=e}}var Xle=Object.freeze({__proto__:null,LocalConfigTracker:Sk});let zx=function(t){return t.EIP712="EIP712",t.EthSign="EthSign",t.EIP1271="EIP1271",t}({});class Zle{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Sessions/",this.ping=(n,s)=>this.fetch(this.url("Ping"),cs({},n,s)).then(i=>ls(i).then(o=>({})),i=>{throw Un.new({cause:`fetch(): ${i.message||""}`})}),this.config=(n,s,i)=>this.fetch(this.url("Config"),cs(n,s,i)).then(o=>ls(o).then(a=>({version:a.version,config:a.config})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.wallets=(n,s,i)=>this.fetch(this.url("Wallets"),cs(n,s,i)).then(o=>ls(o).then(a=>({wallets:a.wallets})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.deployHash=(n,s,i)=>this.fetch(this.url("DeployHash"),cs(n,s,i)).then(o=>ls(o).then(a=>({deployHash:a.deployHash,context:a.context})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.configUpdates=(n,s,i)=>this.fetch(this.url("ConfigUpdates"),cs(n,s,i)).then(o=>ls(o).then(a=>({updates:a.updates})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.migrations=(n,s,i)=>this.fetch(this.url("Migrations"),cs(n,s,i)).then(o=>ls(o).then(a=>({migrations:a.migrations})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.saveConfig=(n,s,i)=>this.fetch(this.url("SaveConfig"),cs(n,s,i)).then(o=>ls(o).then(a=>({})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.saveWallet=(n,s,i)=>this.fetch(this.url("SaveWallet"),cs(n,s,i)).then(o=>ls(o).then(a=>({})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.saveSignature=(n,s,i)=>this.fetch(this.url("SaveSignature"),cs(n,s,i)).then(o=>ls(o).then(a=>({})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.saveSignerSignatures=(n,s,i)=>this.fetch(this.url("SaveSignerSignatures"),cs(n,s,i)).then(o=>ls(o).then(a=>({})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.saveMigration=(n,s,i)=>this.fetch(this.url("SaveMigration"),cs(n,s,i)).then(o=>ls(o).then(a=>({})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const cs=(t={},e={},r=null)=>({method:"POST",headers:_a({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),ls=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),cj.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(fue[n]||vn).new(r)}return r});let vn=class rj extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,rj.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},eue=class nj extends vn{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,nj.prototype)}},Un=class sj extends vn{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,sj.prototype)}},tue=class ij extends vn{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,ij.prototype)}},rue=class oj extends vn{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,oj.prototype)}},nue=class aj extends vn{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,aj.prototype)}},cj=class lj extends vn{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lj.prototype)}},sue=class uj extends vn{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,uj.prototype)}},iue=class fj extends vn{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,fj.prototype)}},oue=class dj extends vn{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,dj.prototype)}},aue=class hj extends vn{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,hj.prototype)}},cue=class pj extends vn{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,pj.prototype)}},lue=class yj extends vn{constructor(e="InvalidArgument",r=1,n="invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,yj.prototype)}},uue=class vj extends vn{constructor(e="NotFound",r=2,n="not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,vj.prototype)}};const fue={0:eue,[-1]:Un,[-2]:tue,[-3]:rue,[-4]:nue,[-5]:cj,[-6]:sue,[-7]:iue,[-8]:oue,[-9]:aue,[-10]:cue,1:lue,2:uue};class due{constructor(e,r=!0){this.onlyRecoverable=r,this.sessions=void 0,this.sessions=new Zle(e,fetch)}async loadPresignedConfiguration(e){try{const{updates:r}=await this.sessions.configUpdates({wallet:e.wallet,fromImageHash:e.fromImageHash,allUpdates:e.longestPath});return r.map(({toImageHash:n,signature:s})=>({wallet:e.wallet,nextImageHash:n,signature:s}))}catch(r){if(Gx(r))return[];throw r}}async savePresignedConfiguration(e){const r=e.nextConfig,n=dr.genericCoderFor(r.version).config.imageHashOf(r),s=je.signature.setImageHashStruct(n),i=Ne(s);await this.sessions.saveSignature({wallet:e.wallet,digest:i,chainID:"0",signature:e.signature,toConfig:Ap(r)})}async saveWitnesses(e){let r=e.signatures;this.onlyRecoverable&&(r=r.filter(n=>ye.signer.canRecover(n))),await this.sessions.saveSignerSignatures({wallet:e.wallet,digest:e.digest,chainID:pu(e.chainId),signatures:r})}async configOfImageHash(e){try{const{version:r,config:n}=await this.sessions.config(e);return hue(r,n)}catch(r){if(Gx(r))return;throw r}}async saveWalletConfig(e){const r=Ap(e.config);await this.sessions.saveConfig({version:e.config.version,config:r})}async imageHashOfCounterfactualWallet(e){try{const{deployHash:r,context:n}=await this.sessions.deployHash(e);return{imageHash:r,context:n}}catch(r){if(Gx(r))return;throw r}}async saveCounterfactualWallet(e){const r=Ap(e.config);await this.sessions.saveWallet({version:e.config.version,deployConfig:r})}async walletsOfSigner(e){const{wallets:r}=await this.sessions.wallets(e);return Object.entries(r).map(([n,{digest:s,chainID:i,type:o,signature:a}])=>{switch(o){case zx.EIP712:a+=In(ye.signer.SigType.EIP712).slice(2);break;case zx.EthSign:a+=In(ye.signer.SigType.ETH_SIGN).slice(2);break;case zx.EIP1271:a+=In(ye.signer.SigType.WALLET_BYTES32).slice(2);break}return{wallet:n,proof:{digest:s,signature:a,chainId:BigInt(i)}}})}async getMigration(e,r,n,s){var i=this;const o=pu(s),{migrations:a}=await this.sessions.migrations({wallet:e,fromVersion:n,fromImageHash:r,chainID:o}),c=async function(f){const d=a[f];if(d){const h=Object.keys(d).map(Number).sort((y,p)=>p-y);for(const y of h)for(const[p,b]of Object.entries(d[y]))try{const v=await i.configOfImageHash({imageHash:p});if(v)return{fromVersion:n,toVersion:y,toConfig:v,tx:{entrypoint:b.executor,transactions:b.transactions,nonce:b.nonce,signature:b.signature,chainId:f,intent:{id:ye.transaction.subdigestOfTransactions(e,f,b.nonce,b.transactions),wallet:e}}}}catch(v){console.error(v)}}},l=await c(o);if(l)return l;for(const u in a)if(u!==o){const f=await c(u);if(f)return f}}async saveMigration(e,r,n){await this.sessions.saveMigration({wallet:e,fromVersion:r.fromVersion,toVersion:r.toVersion,toConfig:Ap(r.toConfig),executor:r.tx.entrypoint,transactions:r.tx.transactions.map(pue),nonce:pu(r.tx.nonce),signature:r.tx.signature,chainID:pu(r.tx.chainId)})}}function Ap(t){switch(t.version){case 1:if(Vi.config.ConfigCoder.isWalletConfig(t))return{threshold:bc(t.threshold),signers:t.signers.map(({weight:e,address:r})=>({weight:bc(e),address:r}))};throw new Error(`not a v${t.version} config: ${t}`);case 2:if(je.config.ConfigCoder.isWalletConfig(t))return{threshold:bc(t.threshold),checkpoint:bc(t.checkpoint),tree:uy(t.tree)};throw new Error(`not a v${t.version} config: ${t}`);default:throw new Error(`unknown version ${t.version}`)}}function uy(t){return je.config.isNode(t)?{left:uy(t.left),right:uy(t.right)}:je.config.isSignerLeaf(t)?{weight:bc(t.weight),address:t.address}:je.config.isNestedLeaf(t)?{weight:bc(t.weight),threshold:bc(t.threshold),tree:uy(t.tree)}:je.config.isNodeLeaf(t)?{node:t.nodeHash}:_a({},t)}function hue(t,e){switch(t){case 1:return _a({},e,{version:t});case 2:return _a({},e,{version:t,tree:fy(e.tree)});default:throw new Error(`unknown version ${t}`)}}function fy(t){switch(typeof t){case"object":const e=_a({},t);return e.left!==void 0&&(e.left=fy(e.left)),e.right!==void 0&&(e.right=fy(e.right)),e.tree!==void 0&&(e.tree=fy(e.tree)),e.node!==void 0&&(e.nodeHash=e.node,delete e.node),e;default:throw new Error(`v2 config tree ${t} is not an object`)}}function pue(t){return{to:t.to,value:t.value!==void 0?pu(t.value):void 0,data:t.data!==void 0?H(t.data):void 0,gasLimit:t.gasLimit!==void 0?pu(t.gasLimit):void 0,delegateCall:t.delegateCall,revertOnError:t.revertOnError}}function bc(t){return Number(t)}function pu(t){return BigInt(t).toString()}function Gx(t){return typeof t=="object"&&t.status===404}var yue=Object.freeze({__proto__:null,RemoteConfigTracker:due});function U2(t,e,r){return new Promise(n=>{let s=0;t.forEach(i=>i.then(o=>{r(o)?n(o):(s++,s===t.length&&n(e))}).catch(()=>{s++,s===t.length&&n(e)}))})}async function lh(t,e){return Promise.all(t.map(r=>r.catch(()=>e)))}class vue{constructor(e){this.trackers=e}async configOfImageHash(e){const r=this.trackers.map(async function(a,c){return{res:await a.configOfImageHash(e),i:c}}),n=await U2(r,void 0,a=>(a==null?void 0:a.res)===void 0?!1:dr.genericCoderFor(a.res.version).config.isComplete(a.res));if(n!=null&&n.res)return this.saveWalletConfig({config:n.res,skipTracker:n.i}),n.res;const s=new Sk(void 0),i=await lh(r,void 0);for(const a of i)a!=null&&a.res&&await s.saveWalletConfig({config:a.res});const o=await s.configOfImageHash(e);return o&&this.saveWalletConfig({config:o}),o}async saveWalletConfig(e){await Promise.all(this.trackers.map((r,n)=>{if(n!==e.skipTracker)return r.saveWalletConfig(e)}))}async imageHashOfCounterfactualWallet(e){const r=await U2(this.trackers.map(n=>n.imageHashOfCounterfactualWallet(e)),void 0,n=>!!n);return r&&this.configOfImageHash({imageHash:r.imageHash}).then(n=>{n&&this.saveCounterfactualWallet({config:n,context:[r.context]})}),r}async saveCounterfactualWallet(e){await Promise.all(this.trackers.map((r,n)=>{if(n!==e.skipTracker)return r.saveCounterfactualWallet(e)}))}async walletsOfSigner(e){const r=await lh(this.trackers.map(o=>o.walletsOfSigner(e)),[]).then(o=>o.flat()),n={};for(const o of r)n[o.wallet]=o.proof;const s=Object.keys(n).map(o=>({wallet:o,proof:n[o]})),i=new Map;return s.forEach(({wallet:o,proof:{digest:a,chainId:c,signature:l}})=>{const u=`${o}-${a}-${c}`;let f=i.get(u);f||(f={wallet:o,digest:a,chainId:c,signatures:[]},i.set(u,f)),f.signatures.push(l)}),i.forEach(o=>this.saveWitnesses(o)),s}async saveWitnesses(e){await Promise.all(this.trackers.map(r=>r.saveWitnesses(e)))}async loadPresignedConfiguration(e){var r=this;const n=await lh(this.trackers.map(c=>c.loadPresignedConfiguration(e)),[]),i=(await lh(n.map(async function(c){const l=c[c.length-1],u=await r.configOfImageHash({imageHash:l.nextImageHash});if(u)return{checkpoint:dr.genericCoderFor(u.version).config.checkpointOf(u),result:c}}),void 0)).reduce((c,l)=>l&&(!c||l.checkpoint>c.checkpoint)?l:c);if(!i)return[];const o=new Map,a=c=>(o.has(c)||o.set(c,this.configOfImageHash({imageHash:c})),o.get(c));return i.result.forEach(async function(c){const l=await a(c.nextImageHash);l&&r.savePresignedConfiguration({wallet:e.wallet,nextConfig:l,signature:c.signature})}),i.result}async savePresignedConfiguration(e){await Promise.all(this.trackers.map(r=>r.savePresignedConfiguration(e)))}async getMigration(e,r,n,s){return(await Promise.all(this.trackers.map(o=>o.getMigration(e,r,n,s)))).find(o=>!!o)}async saveMigration(e,r,n){await Promise.all(this.trackers.map(s=>s.saveMigration(e,r,n)))}}class gue{constructor(e,r,n){this.tracker=e,this.cache=r,this.contexts=n}async loadPresignedConfiguration(e){var r=this;const n=[this.tracker.loadPresignedConfiguration(e),this.cache.loadPresignedConfiguration(e)];let s;const[i,o]=await Promise.all(n);if(i.length>0&&o.length>0&&i[i.length-1].nextImageHash===o[o.length-1].nextImageHash)s=e.longestPath===!0?i.length>o.length?i:o:i.lengthf&&(!u||f.checkpoint>u.checkpoint)?f:u))==null?void 0:c.result)!=null?a:[]}return s||[]}async savePresignedConfiguration(e){await Promise.all([this.tracker.savePresignedConfiguration(e),this.cache.savePresignedConfiguration(e)])}async configOfImageHash(e){if(e.noCache!==!0){const n=await this.cache.configOfImageHash(e);if(n)return n}const r=await this.tracker.configOfImageHash(e);return r&&await this.cache.saveWalletConfig({config:r}),r}async saveWalletConfig(e){await Promise.all([this.tracker.saveWalletConfig(e),this.cache.saveWalletConfig(e)])}async imageHashOfCounterfactualWallet(e){if(e.noCache!==!0){const n=await this.cache.imageHashOfCounterfactualWallet(e);if(n)return n}const r=await this.tracker.imageHashOfCounterfactualWallet(e);if(r){const n=await this.configOfImageHash({imageHash:r.imageHash});n&&await this.cache.saveCounterfactualWallet({config:n,context:[r.context]})}return r}async saveCounterfactualWallet(e){await Promise.all([this.tracker.saveCounterfactualWallet(e),this.cache.saveCounterfactualWallet(e)])}async walletsOfSigner(e){if(e.noCache)return this.tracker.walletsOfSigner(e);const r=await Promise.all([this.tracker.walletsOfSigner(e),this.cache.walletsOfSigner(e)]),n=new Map;for(const s of r)for(const i of s)n.set(i.wallet,i);return Array.from(n.values())}async saveWitnesses(e){await Promise.all([this.tracker.saveWitnesses(e),this.cache.saveWitnesses(e)])}async getMigration(e,r,n,s){const i=await this.cache.getMigration(e,r,n,s);if(i)return i;const o=await this.tracker.getMigration(e,r,n,s);return o&&await this.cache.saveMigration(e,o,this.contexts),o}async saveMigration(e,r,n){await Promise.all([this.tracker.saveMigration(e,r,n),this.cache.saveMigration(e,r,n)])}}class m3{constructor(){this.cache=void 0,this.cache=new Map}do(e,r,n,...s){e=`${e}:${Kr(JSON.stringify(s,mue))}`;let i=this.cache.get(e);if(i&&i.expiration&&new Date>=i.expiration&&(i=void 0,this.cache.delete(e)),!i){const o={promise:n(...s)};r!==void 0&&(o.promise=o.promise.then(a=>(o.expiration=new Date(Date.now()+r),a))),i=o,this.cache.set(e,i)}return i.promise}}function mue(t,e){return typeof e=="object"&&e!==null&&!Array.isArray(e)?Object.fromEntries(Object.entries(e).sort()):typeof e=="bigint"?e.toString():e}function xue(t){return t instanceof gj}class gj{constructor(e,r=50,n=!1){this.tracker=e,this.window=r,this.verbose=n,this.cache=new m3}invalidateCache(){this.cache=new m3}configOfImageHash(e){return this.cache.do("configOfImageHash",this.window,r=>this.tracker.configOfImageHash(r),e)}getMigration(e,r,n,s){return this.cache.do("getMigration",this.window,(...i)=>this.tracker.getMigration(...i),e,r,n,s)}saveMigration(e,r,n){return this.cache.do("saveMigration",void 0,(...s)=>this.tracker.saveMigration(...s),e,r,n)}loadPresignedConfiguration(e){return this.cache.do("loadPresignedConfiguration",this.window,r=>this.tracker.loadPresignedConfiguration(r),e)}savePresignedConfiguration(e){return this.cache.do("savePresignedConfiguration",void 0,r=>this.tracker.savePresignedConfiguration(r),e)}saveWitnesses(e){return this.cache.do("saveWitnesses",void 0,r=>this.tracker.saveWitnesses(r),e)}saveWalletConfig(e){return this.cache.do("saveWalletConfig",void 0,r=>this.tracker.saveWalletConfig(r),e)}imageHashOfCounterfactualWallet(e){return this.cache.do("imageHashOfCounterfactualWallet",void 0,r=>this.tracker.imageHashOfCounterfactualWallet(r),e)}saveCounterfactualWallet(e){return this.cache.do("saveCounterfactualWallet",void 0,r=>this.tracker.saveCounterfactualWallet(r),e)}walletsOfSigner(e){return this.cache.do("walletsOfSigner",this.window,r=>this.tracker.walletsOfSigner(r),e)}updateProvider(e){this.tracker instanceof Sk&&this.tracker.updateProvider(e)}}var Tk=Object.freeze({__proto__:null,debug:Qle,local:Xle,remote:yue,stores:Yle,raceUntil:U2,allSafe:lh,MultipleTracker:vue,CachedTracker:gue,isDedupedTracker:xue,DedupedTracker:gj});const bue=Object.freeze(Object.defineProperty({__proto__:null,tracker:qle,trackers:Tk},Symbol.toStringTag,{value:"Module"})),mj=60*60*24*7,wue=60;class x3{constructor(e,r,n={},s){this.account=e,this.settings=r,this.status=n,this._initialAuthRequest=void 0,this.proofStrings=new Map,this.onAuthCallbacks=[],this.apiClient=void 0,this.metadataClient=void 0,this.indexerClients=new Map,this.projectAccessKey=void 0,this.projectAccessKey=s}now(){return Math.floor(Date.now()/1e3)}get expiration(){var e;return Math.max((e=this.settings.metadata.expiration)!=null?e:mj,120)}onAuth(e){return this.onAuthCallbacks.push(e),()=>this.onAuthCallbacks=this.onAuthCallbacks.filter(r=>r!==e)}async dump(){return this.status.jwt?{jwt:{token:await this.status.jwt.token,expiration:this.status.jwt.expiration},metadata:this.status.metadata}:{metadata:this.settings.metadata}}auth(e=5){var r=this;return this._initialAuthRequest?this._initialAuthRequest:(this._initialAuthRequest=async function(){const n=r.settings.sequenceApiUrl;if(!n)throw Error("No sequence api url");let s;for(let i=1;;i++)try{s=(await r.getJWT(!0)).token;break}catch(o){if(i===e)throw console.error(`couldn't authenticate after ${e} attempts`,o),o}return new oy(n,void 0,s)}(),this._initialAuthRequest)}async getJWT(e){var r=this;const n=this.settings.sequenceApiUrl;if(!n)throw Error("No sequence api url");if(this.status.jwt){const l=this.status.jwt,u=await l.token;if(this.now(){throw this.status.jwt=void 0,l}),expiration:o};return this.status.jwt=a,a.token.then(l=>{this.onAuthCallbacks.forEach(u=>{try{u({status:"fulfilled",value:l})}catch{}})}).catch(l=>{this.onAuthCallbacks.forEach(u=>{try{u({status:"rejected",reason:l})}catch{}})}),{token:await a.token,expiration:o}}getProofStringKey(){return`${this.account.address} - ${this.settings.metadata.name}`}async isProofStringValid(e){try{const r=new vv,n=BigInt(this.settings.sequenceApiChainId),s=Rs(this.account.networks,n);if(!s)throw Error("No network found");r.chainId=Number(n);const i=new ot(s.name,n);return r.provider=new zt(I0(s.rpcUrl,this.projectAccessKey),i,{staticNetwork:i}),await r.decodeProof(e),!0}catch{return!1}}async getAPIClient(e=!0){if(!this.apiClient){const r=this.settings.sequenceApiUrl;if(!r)throw Error("No sequence api url");const n=(await this.getJWT(e)).token;this.apiClient=new oy(r,void 0,n)}return this.apiClient}async getMetadataClient(e=!0){if(!this.metadataClient){const r=(await this.getJWT(e)).token;this.metadataClient=new QL(this.settings.sequenceMetadataUrl,void 0,r)}return this.metadataClient}async getIndexerClient(e,r=!0){const n=Rs(this.account.networks,e);if(!n)throw Error(`No network for chain ${e}`);if(!this.indexerClients.has(n.chainId))if(n.indexer)this.indexerClients.set(n.chainId,n.indexer);else if(n.indexerUrl){const s=(await this.getJWT(r)).token;this.indexerClients.set(n.chainId,new fL(n.indexerUrl,void 0,s))}else throw Error(`No indexer url for chain ${e}`);return this.indexerClients.get(n.chainId)}getProofString(e){if(this.proofStrings.has(e)){const l=this.proofStrings.get(e);if(this.now()(r.signature=l,n.encodeProof(r,!0))).catch(l=>{throw this.proofStrings.delete(e),l}),expiration:a};return this.proofStrings.set(e,c),c}}const xj=async(t,e,r)=>{const n=Te(await t.getAddress());if(!n||n===""||n==="0x")throw bj;const s=new ek;if(s.address=n,!r||!r.app||r.app==="")throw new Pk("authorization options requires app to be set");s.claims.app=r.app,s.claims.ogn=r.origin,s.claims.n=r.nonce,s.setExpiryIn(r.expiry?Math.max(r.expiry,200):mj);const i=s.messageTypedData(),o=RM(e);s.signature=await(t instanceof qi?t.signTypedData(i.domain,i.types,i.message,o,"eip6492"):t.signTypedData(i.domain,i.types,i.message,o));const c=await new vv().encodeProof(s,!0);return{typedData:i,proofString:c}};class Pk extends Error{constructor(e){super(e),this.name="AuthError"}}const bj=new Pk("auth error: account address is empty");function uc(){return uc=Object.assign?Object.assign.bind():function(t){for(var e=1;eF.wallet));let _;if(R){if(f==null||f(R),_=new qi({address:R,tracker:x,networks:g,contexts:v,orchestrator:p,projectAccessKey:b}),l&&l.length>0){let F=await _.status(S);if(F.original.version!==F.version||_.version!==F.version){const{migratedAllChains:le,failedChains:ee}=await _.isMigratedAllChains();if(ee.some(D=>$2.includes(D)))throw Error(`Failed to fetch account status on ${ee.join(", ")}`);if(!le){if(y&&!await y(_))throw Error("Migration cancelled, cannot open session");const{failedChains:D}=await _.signAllMigrations(h||(Z=>Z));if(D.some(Z=>$2.includes(Z)))throw Error(`Failed to sign migrations on ${D.join(", ")}`);Tk.isDedupedTracker(x)&&x.invalidateCache();let G;if([G,F]=await Promise.all([_.isMigratedAllChains().then(Z=>Z.migratedAllChains),_.status(S)]),!G)throw Error("Failed to migrate account")}}F.onChain.version!==F.version&&await _.doBootstrap(S,void 0,F);const X=F.config,re=_.coders.config.editConfig(X,{add:l,threshold:c});if(_.coders.config.imageHashOf(X)!==_.coders.config.imageHashOf(re)){const le=_.coders.config.editConfig(re,{checkpoint:_.coders.config.checkpointOf(X)+1n});await _.updateConfig(le)}}}else{if(!l||l.length===0)throw Error("Cannot create new account without signers");if(!c)throw Error("Cannot create new account without threshold");if(_=await qi.new({config:{threshold:c,checkpoint:0,signers:l},tracker:x,contexts:v,orchestrator:p,networks:g,projectAccessKey:b}),f==null||f(_.address),await _.publishWitness(),!(await x.walletsOfSigner({signer:a,noCache:!0})).some(X=>X.wallet===_.address))throw Error("Account not found on tracker")}let V;return k&&(V=new x3(_,k),V.auth(),V.onAuth(F=>{F.status==="fulfilled"&&_.setJwt(F.value)})),new jh(g,v,_,V)}static async load(e){const{dump:r,settings:n,editConfigOnMigration:s,onMigration:i,orchestrator:o}=e,{contexts:a,networks:c,tracker:l,services:u}=uc({},dy,n);let f;if(wj(r)){var d,h,y;const k=r.config.address||ye.context.addressOf(a[1],Vi.config.ConfigCoder.imageHashOf(uc({},r.config,{version:1}))),S=((d=(h=r.jwt)==null?void 0:h.expiration)!=null?d:0)I.migratedAllChains)){if(i&&!await i(f))throw Error("Migration cancelled, cannot open session");if(console.log("Migrating account..."),await f.signAllMigrations(s),!await f.isMigratedAllChains().then(I=>I.migratedAllChains))throw Error("Failed to migrate account")}}else if(Cj(r)){var p,b,v;const k=((p=(b=r.jwt)==null?void 0:b.expiration)!=null?p:0)async(n,s,i)=>{const o=i.messageDigest();return{isValid:await t(s).isValidSignature(i.address,o,i.signature)}},Eue=Object.freeze(Object.defineProperty({__proto__:null,AuthError:Pk,CRITICAL_CHAINS:$2,ErrAccountIsRequired:bj,Session:jh,SessionSettingsDefault:dy,ValidateSequenceWalletProof:Cue,isSessionDumpV1:wj,isSessionDumpV2:Cj,signAuthorization:xj},Symbol.toStringTag,{value:"Module"}));function Av(){return Av=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),Er({},n,s)).then(i=>kr(i).then(o=>({status:o.status})),i=>{throw cr.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),Er({},n,s)).then(i=>kr(i).then(o=>({version:o.version})),i=>{throw cr.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),Er({},n,s)).then(i=>kr(i).then(o=>({status:o.status})),i=>{throw cr.new({cause:`fetch(): ${i.message||""}`})}),this.getSignerConfig=(n,s,i)=>this.fetch(this.url("GetSignerConfig"),Er(n,s,i)).then(o=>kr(o).then(a=>({signerConfig:a.signerConfig})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.sign=(n,s,i)=>this.fetch(this.url("Sign"),Er(n,s,i)).then(o=>kr(o).then(a=>({sig:a.sig})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.signWith=(n,s,i)=>this.fetch(this.url("SignWith"),Er(n,s,i)).then(o=>kr(o).then(a=>({sig:a.sig})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.patch=(n,s,i)=>this.fetch(this.url("Patch"),Er(n,s,i)).then(o=>kr(o).then(a=>({txs:a.txs})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.authMethods=(n,s,i)=>this.fetch(this.url("AuthMethods"),Er(n,s,i)).then(o=>kr(o).then(a=>({methods:a.methods,active:a.active})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.setPIN=(n,s,i)=>this.fetch(this.url("SetPIN"),Er(n,s,i)).then(o=>kr(o).then(a=>({})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.resetPIN=(n,s,i)=>this.fetch(this.url("ResetPIN"),Er(n,s,i)).then(o=>kr(o).then(a=>({})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.createTOTP=(n,s,i)=>this.fetch(this.url("CreateTOTP"),Er(n,s,i)).then(o=>kr(o).then(a=>({uri:a.uri})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.commitTOTP=(n,s,i)=>this.fetch(this.url("CommitTOTP"),Er(n,s,i)).then(o=>kr(o).then(a=>({codes:a.codes})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.resetTOTP=(n,s,i)=>this.fetch(this.url("ResetTOTP"),Er(n,s,i)).then(o=>kr(o).then(a=>({})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.reset2FA=(n,s,i)=>this.fetch(this.url("Reset2FA"),Er(n,s,i)).then(o=>kr(o).then(a=>({})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.recoveryCodes=(n,s,i)=>this.fetch(this.url("RecoveryCodes"),Er(n,s,i)).then(o=>kr(o).then(a=>({codes:a.codes})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.resetRecoveryCodes=(n,s,i)=>this.fetch(this.url("ResetRecoveryCodes"),Er(n,s,i)).then(o=>kr(o).then(a=>({codes:a.codes})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const Er=(t={},e={},r=null)=>({method:"POST",headers:Av({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),kr=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),Oj.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(Lue[n]||Ft).new(r)}return r});let Ft=class kj extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,kj.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},kue=class Aj extends Ft{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Aj.prototype)}},cr=class Sj extends Ft{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Sj.prototype)}},Aue=class Tj extends Ft{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Tj.prototype)}},Sue=class Pj extends Ft{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Pj.prototype)}},Tue=class Ij extends Ft{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Ij.prototype)}},Oj=class Rj extends Ft{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Rj.prototype)}},Pue=class Nj extends Ft{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Nj.prototype)}},Iue=class _j extends Ft{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,_j.prototype)}},Oue=class Mj extends Ft{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Mj.prototype)}},Rue=class Dj extends Ft{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Dj.prototype)}},Nue=class Bj extends Ft{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Bj.prototype)}},_ue=class Lj extends Ft{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Lj.prototype)}},Mue=class jj extends Ft{constructor(e="SessionExpired",r=1002,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,jj.prototype)}};class Ik extends Ft{constructor(e="Aborted",r=1005,n="Request aborted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Ik.prototype)}}class Ok extends Ft{constructor(e="InvalidArgument",r=2001,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Ok.prototype)}}class Rk extends Ft{constructor(e="Unavailable",r=2002,n="Unavailable resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Rk.prototype)}}let Due=class Fj extends Ft{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Fj.prototype)}};class Nk extends Ft{constructor(e="ValidationFailed",r=2004,n="Validation Failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Nk.prototype)}}let Bue=class Uj extends Ft{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Uj.prototype)}};const Lue={0:kue,[-1]:cr,[-2]:Aue,[-3]:Sue,[-4]:Tue,[-5]:Oj,[-6]:Pue,[-7]:Iue,[-8]:Oue,[-9]:Rue,[-10]:Nue,1e3:_ue,1002:Mue,1005:Ik,2001:Ok,2002:Rk,2003:Due,2004:Nk,3e3:Bue},jue=globalThis.fetch;class Fue{constructor(e,r,n=!1){this.address=e,this.url=r,this.appendSuffix=n,this.guard=void 0,this.guard=new Ej(r,jue)}async getAddress(){return this.address}async buildDeployTransaction(e){}async predecorateSignedTransactions(e){return[]}async decorateTransactions(e,r){return e}async sign(e,r){var n;if(!ye.isWalletSignRequestMetadata(r))throw new Error("expected sequence signature request metadata");const s=r.guardTotpCode,i=dr.genericCoderFor(r.config.version),{encoded:o}=i.signature.encodeSigners(r.config,(n=r.parts)!=null?n:new Map,[],r.chainId);return(await this.guard.signWith({signer:this.address,request:{msg:H(e),auxData:this.packMsgAndSig(r.address,r.digest,o,r.chainId),chainId:Number(r.chainId)},token:s?{id:Sv.TOTP,token:s}:void 0})).sig}notifyStatusChange(e,r,n){}async getAuthMethods(e){let r;if("jwt"in e)r=await this.guard.authMethods({},{Authorization:`BEARER ${e.jwt}`});else{const n=await W2(e);r=await this.guard.authMethods({proof:{wallet:n.walletAddress,timestamp:n.timestamp.getTime(),signer:n.signerAddress,signature:n.signature}})}return Av({},r,{methods:r.methods.map(Uue)})}async setPin(e,r){const n=await Vd(r);e===void 0?await this.guard.resetPIN({timestamp:n.timestamp.getTime(),signature:n.signature},{Authorization:`BEARER ${r.jwt}`}):await this.guard.setPIN({pin:e,timestamp:n.timestamp.getTime(),signature:n.signature},{Authorization:`BEARER ${r.jwt}`})}resetPin(e){return this.setPin(void 0,e)}async createTotp(e){const r=await Vd(e),{uri:n}=await this.guard.createTOTP({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`});return new URL(n)}async commitTotp(e,r){const{codes:n}=await this.guard.commitTOTP({token:e},{Authorization:`BEARER ${r}`});return n}async resetTotp(e){const r=await Vd(e);await this.guard.resetTOTP({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`})}async reset2fa(e,r){if("jwt"in r)await this.guard.reset2FA({code:e},{Authorization:`BEARER ${r.jwt}`});else{const n=await W2(r);await this.guard.reset2FA({code:e,proof:{wallet:n.walletAddress,timestamp:n.timestamp.getTime(),signer:n.signerAddress,signature:n.signature}})}}async getRecoveryCodes(e){const r=await Vd(e),{codes:n}=await this.guard.recoveryCodes({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`});return n}async resetRecoveryCodes(e){const r=await Vd(e),{codes:n}=await this.guard.resetRecoveryCodes({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`});return n}packMsgAndSig(e,r,n,s){return Kt.defaultAbiCoder().encode(["address","uint256","bytes","bytes"],[e,s,r,n])}suffix(){return new Uint8Array(this.appendSuffix?[3]:[])}}let Sv=function(t){return t.PIN="PIN",t.TOTP="TOTP",t}({});function Uue(t){switch(t){case Sv.PIN:case Sv.TOTP:return t;default:throw new Error(`unknown auth method '${t}'`)}}function $j(t){return"signerAddress"in t&&typeof t.signerAddress=="string"}async function W2(t){if($j(t))return t;{const e=B2.isSapientSigner(t.signer)?t.signer:new B2.SignerWrapper(t.signer),r=await e.getAddress(),n=new Date,s=Wj(t.walletAddress,n),i=Ed(s);return{walletAddress:t.walletAddress,timestamp:n,signerAddress:r,signature:H(await e.sign(i,{}))}}}async function Vd(t){if("wallet"in t){var e;const r=new Date,n=Vj(r),s=await t.wallet.signTypedData(n.domain,n.types,n.message,(e=n.domain.chainId)!=null?e:1,"eip6492");return{jwt:t.jwt,timestamp:r,signature:s}}else return t}function Wj(t,e){return{domain:Hj,types:{AuthMethods:[{name:"wallet",type:"address"},{name:"timestamp",type:"string"}]},message:{wallet:Te(t),timestamp:zj(e)}}}function Vj(t){return{domain:Hj,types:{AuthUpdate:[{name:"timestamp",type:"string"}]},message:{timestamp:zj(t)}}}const Hj={name:"Sequence Guard",version:"1",chainId:1};function zj(t){return t.toUTCString().replace("GMT","UTC")}const $ue=Object.freeze(Object.defineProperty({__proto__:null,AuthMethod:Sv,Guard:Ej,GuardSigner:Fue,getAuthUpdateProofTypedData:Vj,getOwnershipProofTypedData:Wj,isSignedOwnershipProof:$j,signOwnershipProof:W2},Symbol.toStringTag,{value:"Module"}));var Gj={exports:{}};/*! +)[]`,N2=(t,e)=>{const r=[],n=new pt(Gt.mainModule.abi);for(const s of e){const i=Q(s.data||"0x");if(s.to===t&&H(i.slice(0,4))===wD){const o=i.slice(4),a=Kt.defaultAbiCoder().decode([CD],o)[0];r.push(...N2(s.to,a.map(c=>yr({},c,{to:c.target}))))}else try{const o=n.decodeFunctionData("execute",i)[0],a=N2(t,o.map(c=>yr({},c.toObject(),{to:c.target})));r.push(...a)}catch{r.push(s)}}return r},Lh=t=>t==null;var Ece=Object.freeze({__proto__:null,MetaTransactionsType:Xg,intendTransactionBundle:hce,intendedTransactionID:pce,unpackMetaTransactionsData:yce,packMetaTransactionsData:yD,digestOfTransactions:vD,subdigestOfTransactions:vce,subdigestOfGuestModuleTransactions:gce,toSequenceTransactions:gD,toSequenceTransaction:kk,isSequenceTransaction:Zg,hasSequenceTransactions:mD,sequenceTxAbiEncode:R0,fromTxAbiEncode:mce,encodeNonce:xce,decodeNonce:bce,fromTransactionish:wce,isTransactionBundle:xD,isSignedTransactionBundle:bD,encodeBundleExecData:Cce,selfExecuteSelector:wD,selfExecuteAbi:CD,unwind:N2});const ED="0x608060405234801561001057600080fd5b5060405161124a38038061124a83398101604081905261002f91610124565b600060405161003d906100dd565b604051809103906000f080158015610059573d6000803e3d6000fd5b5090506000816001600160a01b0316638f0684308686866040518463ffffffff1660e01b815260040161008e939291906101fb565b6020604051808303816000875af11580156100ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100d19190610244565b9050806000526001601ff35b610fdc8061026e83390190565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561011b578181015183820152602001610103565b50506000910152565b60008060006060848603121561013957600080fd5b83516001600160a01b038116811461015057600080fd5b6020850151604086015191945092506001600160401b038082111561017457600080fd5b818601915086601f83011261018857600080fd5b81518181111561019a5761019a6100ea565b604051601f8201601f19908116603f011681019083821181831017156101c2576101c26100ea565b816040528281528960208487010111156101db57600080fd5b6101ec836020830160208801610100565b80955050505050509250925092565b60018060a01b0384168152826020820152606060408201526000825180606084015261022e816080850160208701610100565b601f01601f191691909101608001949350505050565b60006020828403121561025657600080fd5b8151801515811461026657600080fd5b939250505056fe608060405234801561001057600080fd5b50610fbc806100206000396000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c806376be4cea1161005057806376be4cea146100a65780638f068430146100b957806398ef1ed8146100cc57600080fd5b80631c6453271461006c5780633d787b6314610093575b600080fd5b61007f61007a366004610ad4565b6100df565b604051901515815260200160405180910390f35b61007f6100a1366004610ad4565b61023d565b61007f6100b4366004610b3e565b61031e565b61007f6100c7366004610ad4565b6108e1565b61007f6100da366004610ad4565b61096e565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea9061012890889088908890889088908190600401610bc3565b6020604051808303816000875af1925050508015610181575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261017e91810190610c45565b60015b610232573d8080156101af576040519150601f19603f3d011682016040523d82523d6000602084013e6101b4565b606091505b508051600181900361022757816000815181106101d3576101d3610c69565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f0100000000000000000000000000000000000000000000000000000000000000149250610235915050565b600092505050610235565b90505b949350505050565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea906102879088908890889088906001908990600401610bc3565b6020604051808303816000875af19250505080156102e0575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526102dd91810190610c45565b60015b610232573d80801561030e576040519150601f19603f3d011682016040523d82523d6000602084013e610313565b606091505b506000915050610235565b600073ffffffffffffffffffffffffffffffffffffffff87163b6060827f64926492649264926492649264926492649264926492649264926492649264928888610369602082610c98565b610375928b9290610cd8565b61037e91610d02565b1490508015610484576000606089828a610399602082610c98565b926103a693929190610cd8565b8101906103b39190610e18565b955090925090508415806103c45750865b1561047d576000808373ffffffffffffffffffffffffffffffffffffffff16836040516103f19190610eb2565b6000604051808303816000865af19150503d806000811461042e576040519150601f19603f3d011682016040523d82523d6000602084013e610433565b606091505b50915091508161047a57806040517f9d0d6e2d0000000000000000000000000000000000000000000000000000000081526004016104719190610f18565b60405180910390fd5b50505b50506104be565b87878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509294505050505b80806104ca5750600083115b156106bb576040517f1626ba7e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b1690631626ba7e90610523908c908690600401610f2b565b602060405180830381865afa92505050801561057a575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261057791810190610f44565b60015b61060f573d8080156105a8576040519150601f19603f3d011682016040523d82523d6000602084013e6105ad565b606091505b50851580156105bc5750600084115b156105db576105d08b8b8b8b8b600161031e565b9450505050506108d7565b806040517f6f2a95990000000000000000000000000000000000000000000000000000000081526004016104719190610f18565b7fffffffff0000000000000000000000000000000000000000000000000000000081167f1626ba7e000000000000000000000000000000000000000000000000000000001480158161065f575086155b801561066b5750600085115b1561068b5761067f8c8c8c8c8c600161031e565b955050505050506108d7565b841580156106965750825b80156106a0575087155b156106af57806000526001601ffd5b94506108d79350505050565b6041871461074b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f5369676e617475726556616c696461746f72237265636f7665725369676e657260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610471565b600061075a6020828a8c610cd8565b61076391610d02565b90506000610775604060208b8d610cd8565b61077e91610d02565b905060008a8a604081811061079557610795610c69565b919091013560f81c915050601b81148015906107b557508060ff16601c14155b15610842576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f5369676e617475726556616c696461746f723a20696e76616c6964207369676e60448201527f617475726520762076616c7565000000000000000000000000000000000000006064820152608401610471565b6040805160008152602081018083528e905260ff831691810191909152606081018490526080810183905273ffffffffffffffffffffffffffffffffffffffff8e169060019060a0016020604051602081039080840390855afa1580156108ad573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff161496505050505050505b9695505050505050565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea9061092b9088908890889088906001908990600401610bc3565b6020604051808303816000875af115801561094a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102329190610c45565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea906109b790889088908890889088908190600401610bc3565b6020604051808303816000875af1925050508015610a10575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610a0d91810190610c45565b60015b610232573d808015610a3e576040519150601f19603f3d011682016040523d82523d6000602084013e610a43565b606091505b5080516001819003610a6257816000815181106101d3576101d3610c69565b8082fd5b73ffffffffffffffffffffffffffffffffffffffff81168114610a8857600080fd5b50565b60008083601f840112610a9d57600080fd5b50813567ffffffffffffffff811115610ab557600080fd5b602083019150836020828501011115610acd57600080fd5b9250929050565b60008060008060608587031215610aea57600080fd5b8435610af581610a66565b935060208501359250604085013567ffffffffffffffff811115610b1857600080fd5b610b2487828801610a8b565b95989497509550505050565b8015158114610a8857600080fd5b60008060008060008060a08789031215610b5757600080fd5b8635610b6281610a66565b955060208701359450604087013567ffffffffffffffff811115610b8557600080fd5b610b9189828a01610a8b565b9095509350506060870135610ba581610b30565b91506080870135610bb581610b30565b809150509295509295509295565b73ffffffffffffffffffffffffffffffffffffffff8716815285602082015260a060408201528360a0820152838560c0830137600060c085830181019190915292151560608201529015156080820152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016909101019392505050565b600060208284031215610c5757600080fd5b8151610c6281610b30565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b81810381811115610cd2577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b92915050565b60008085851115610ce857600080fd5b83861115610cf557600080fd5b5050820193919092039150565b80356020831015610cd2577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602084900360031b1b1692915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f830112610d7e57600080fd5b813567ffffffffffffffff80821115610d9957610d99610d3e565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715610ddf57610ddf610d3e565b81604052838152866020858801011115610df857600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600060608486031215610e2d57600080fd5b8335610e3881610a66565b9250602084013567ffffffffffffffff80821115610e5557600080fd5b610e6187838801610d6d565b93506040860135915080821115610e7757600080fd5b50610e8486828701610d6d565b9150509250925092565b60005b83811015610ea9578181015183820152602001610e91565b50506000910152565b60008251610ec4818460208701610e8e565b9190910192915050565b60008151808452610ee6816020860160208601610e8e565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000610c626020830184610ece565b8281526040602082015260006102356040830184610ece565b600060208284031215610f5657600080fd5b81517fffffffff0000000000000000000000000000000000000000000000000000000081168114610c6257600080fdfea26469706673582212201a72aed4b15ffb05b6502997a9bb655992e06590bd26b336dfbb153d7ff6f34b64736f6c63430008120033",kce="0x6492649264926492649264926492649264926492649264926492649264926492";async function kD(t,e,r,n){try{return await t.call({data:Le([ED,Kt.defaultAbiCoder().encode(["address","bytes32","bytes"],[e,r,n])])})==="0x01"}catch{return!1}}var Ace=Object.freeze({__proto__:null,EIP_6492_OFFCHAIN_DEPLOY_CODE:ED,EIP_6492_SUFFIX:kce,validateEIP6492Offchain:kD});class Sce{constructor(e){this.provider=e,this.isDeployedCache=new Set}module(e){return new dn(e,[...Gt.mainModuleUpgradable.abi,...Gt.mainModule.abi,...Gt.erc1271.abi],this.provider)}async isDeployed(e){if(this.isDeployedCache.has(e))return!0;const n=(await this.provider.getCode(e).then(s=>Q(s))).length!==0;return n&&this.isDeployedCache.add(e),n}async implementation(e){const r=Kt.defaultAbiCoder().encode(["address"],[e]),n=await this.provider.getStorage(e,r).then(s=>Q(s));if(n.length===20)return Te(H(n));if(n.length===32)return Kt.defaultAbiCoder().decode(["address"],n)[0]}async imageHash(e){try{return await this.module(e).imageHash()}catch{}}async nonce(e,r=0){try{return await this.module(e).readNonce(r)}catch(n){if(!await this.isDeployed(e))return 0;throw n}}async isValidSignature(e,r,n){return kD(this.provider,e,r,n)}}var Tce=Object.freeze({__proto__:null,OnChainReader:Sce});function Pce(t){return t&&t.address&&t.digest&&t.chainId!==void 0&&t.config}var ye=Object.freeze({__proto__:null,config:$ae,signature:Wae,context:dce,signer:Kae,EIP1271:zae,transaction:Ece,reader:Tce,EIP6492:Ace,isWalletSignRequestMetadata:Pce});const _2=[{config:hk,signature:dk},{config:Yg,signature:Jg}];function AD(t){const e=t-1;if(e<0||e>=_2.length)throw new Error(`No coder for version: ${t}`);return _2[e]}function Ice(t){return AD(t)}var dr=Object.freeze({__proto__:null,ALL_CODERS:_2,coderFor:AD,genericCoderFor:Ice});const $r="2.0.1",SD=[Hi,je],Oce=Object.freeze(Object.defineProperty({__proto__:null,VERSION:$r,allVersions:SD,commons:ye,universal:dr,v1:Hi,v2:je},Symbol.toStringTag,{value:"Module"}));function Rce(t,e,r){for(let n=0;ne.version)&&(e=r);if(e===void 0)throw new Error("No migrations");return e}async getAllMigratePresignedTransaction(e){const{address:r,fromImageHash:n,fromVersion:s,chainId:i}=e;let o=n,a=s;const c=Object.values(this.contexts),l=[];for(let u=1;uQ(i).length===0))return h3;if(!n.provider)throw new Error("signer.provider is not set, but is required");return n.provider.estimateGas({from:e,to:s.to,data:s.data,value:s.value})}))).map(s=>({executed:!0,succeeded:!0,gasUsed:Number(s),gasLimit:Number(s)}))}async getNonce(e,r,n){if(!this.provider)throw new Error("provider is not set");if(await this.provider.getCode(e)==="0x")return 0;r===void 0&&(r=0);const i=await new dn(e,Gt.mainModule.abi,this.provider).readNonce(r,{blockTag:n});return ye.transaction.encodeNonce(r,i)}async wait(e,r,n=this.waitPollRate,s=5){var i=this;typeof e!="string"&&(e=ye.transaction.intendedTransactionID(e));let o=!1;const a=async function(u,f){let d=0;for(;!o;){try{return await u()}catch(h){if(d++,s!==void 0&&d>=s)throw Se.error(`giving up after ${d} failed attempts${f?`: ${f}`:""}`,h),h;Se.warn(`attempt #${d} failed${f?`: ${f}`:""}`,h)}n>0&&await new Promise(h=>setTimeout(h,n))}throw new Error(`timed out after ${d} failed attempts${f?`: ${f}`:""}`)},c=async function(){let u=i.fromBlockLog;if(u<0&&(u=await a(()=>i.provider.getBlockNumber(),"unable to get latest block number")+u),typeof e!="string")throw new Error("impossible");const f=e.replace("0x","");for(;!o;){const d=await a(()=>i.provider.getBlockNumber(),"unable to get latest block number"),h=await a(()=>i.provider.getLogs({fromBlock:Math.max(0,u-i.deltaBlocksLog),toBlock:d,topics:["0x1f180c27086c7a39ea2a7b25239d1ab92348f07ca7bb59d1438fcf527568f881"]}),`unable to get NonceChange logs for blocks ${Math.max(0,u-i.deltaBlocksLog)} to ${d}`);u=d;const p=(await Promise.all(h.map(b=>a(()=>i.provider.getTransactionReceipt(b.transactionHash),`unable to get receipt for transaction ${b.transactionHash}`)))).find(b=>b==null?void 0:b.logs.find(v=>v.topics.length===0&&v.data.replace("0x","")===f||v.topics.length===1&&v.topics[0]==="0x3dbd1590ea96dd3253a91f24e64e3a502e1225d602a5731357bc12643070ccd7"&&v.data.length>=64&&v.data.replace("0x","").startsWith(f)));if(p){const b=await a(()=>i.provider.getTransaction(p.hash),`unable to get transaction ${p.hash}`);if(!b)throw new Error(`Transaction response not found for ${e}`);const v=b;return v.receipt=p,v}o||await new Promise(b=>setTimeout(b,n))}throw new Error(`Timeout waiting for transaction receipt ${e}`)};return r!==void 0?Promise.race([c(),new Promise((l,u)=>setTimeout(()=>{o=!0,u(`Timeout waiting for transaction receipt ${e}`)},r))]):c()}}function jce(t){return typeof t=="object"&&t.signer instanceof uo}class Fce extends RD{constructor(e){if(super(e instanceof uo?{provider:e.provider}:Cl({},e,{provider:e.signer.provider})),this.signer=void 0,this.txnOptions=void 0,this.signer=e instanceof uo?e:e.signer,!this.signer.provider)throw new Error("Signer must have a provider")}async getFeeOptions(e,...r){return{options:[]}}async getFeeOptionsRaw(e,r,n){return{options:[]}}async gasRefundOptions(e,...r){const{options:n}=await this.getFeeOptions(e,...r);return n}setTransactionOptions(e){this.txnOptions=e}async relay(e,r,n=!0){r!==void 0&&Se.warn("LocalRelayer doesn't accept fee quotes");const s=ye.transaction.encodeBundleExecData(e),i=this.signer.sendTransaction(Cl({to:e.entrypoint,data:s},this.txnOptions,{gasLimit:9e6}));if(n){const o=await i;return o.receipt=await o.wait(),o}else return i}}const Uce="v1",$ce="v0.4.1",Wce="1e27d0fd295aa5897878939595ef0c6adc54b1a3";let la=function(t){return t.UNKNOWN="UNKNOWN",t.DROPPED="DROPPED",t.QUEUED="QUEUED",t.SENT="SENT",t.SUCCEEDED="SUCCEEDED",t.PARTIALLY_FAILED="PARTIALLY_FAILED",t.FAILED="FAILED",t}({}),Vce=function(t){return t.SEND="SEND",t.RECEIVE="RECEIVE",t.BRIDGE_DEPOSIT="BRIDGE_DEPOSIT",t.BRIDGE_WITHDRAW="BRIDGE_WITHDRAW",t.BURN="BURN",t.UNKNOWN="UNKNOWN",t}({}),Hce=function(t){return t.UNKNOWN="UNKNOWN",t.ERC20_TOKEN="ERC20_TOKEN",t.ERC1155_TOKEN="ERC1155_TOKEN",t}({}),zce=function(t){return t.DESC="DESC",t.ASC="ASC",t}({});class ND{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Relayer/",this.ping=(n,s)=>this.fetch(this.url("Ping"),Je({},n,s)).then(i=>Ye(i).then(o=>({status:o.status})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),Je({},n,s)).then(i=>Ye(i).then(o=>({version:o.version})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),Je({},n,s)).then(i=>Ye(i).then(o=>({status:o.status})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.getSequenceContext=(n,s)=>this.fetch(this.url("GetSequenceContext"),Je({},n,s)).then(i=>Ye(i).then(o=>({data:o.data})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.getChainID=(n,s)=>this.fetch(this.url("GetChainID"),Je({},n,s)).then(i=>Ye(i).then(o=>({chainID:o.chainID})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.sendMetaTxn=(n,s,i)=>this.fetch(this.url("SendMetaTxn"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,txnHash:a.txnHash})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getMetaTxnNonce=(n,s,i)=>this.fetch(this.url("GetMetaTxnNonce"),Je(n,s,i)).then(o=>Ye(o).then(a=>({nonce:a.nonce})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getMetaTxnReceipt=(n,s,i)=>this.fetch(this.url("GetMetaTxnReceipt"),Je(n,s,i)).then(o=>Ye(o).then(a=>({receipt:a.receipt})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.simulate=(n,s,i)=>this.fetch(this.url("Simulate"),Je(n,s,i)).then(o=>Ye(o).then(a=>({results:a.results})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.updateMetaTxnGasLimits=(n,s,i)=>this.fetch(this.url("UpdateMetaTxnGasLimits"),Je(n,s,i)).then(o=>Ye(o).then(a=>({payload:a.payload})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.feeTokens=(n,s)=>this.fetch(this.url("FeeTokens"),Je({},n,s)).then(i=>Ye(i).then(o=>({isFeeRequired:o.isFeeRequired,tokens:o.tokens})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.feeOptions=(n,s,i)=>this.fetch(this.url("FeeOptions"),Je(n,s,i)).then(o=>Ye(o).then(a=>({options:a.options,sponsored:a.sponsored,quote:a.quote})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getMetaTxnNetworkFeeOptions=(n,s,i)=>this.fetch(this.url("GetMetaTxnNetworkFeeOptions"),Je(n,s,i)).then(o=>Ye(o).then(a=>({options:a.options})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getMetaTransactions=(n,s,i)=>this.fetch(this.url("GetMetaTransactions"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.sentTransactions=(n,s,i)=>this.fetch(this.url("SentTransactions"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.pendingTransactions=(n,s,i)=>this.fetch(this.url("PendingTransactions"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getGasTank=(n,s,i)=>this.fetch(this.url("GetGasTank"),Je(n,s,i)).then(o=>Ye(o).then(a=>({gasTank:a.gasTank})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.addGasTank=(n,s,i)=>this.fetch(this.url("AddGasTank"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,gasTank:a.gasTank})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.updateGasTank=(n,s,i)=>this.fetch(this.url("UpdateGasTank"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,gasTank:a.gasTank})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getGasSponsor=(n,s,i)=>this.fetch(this.url("GetGasSponsor"),Je(n,s,i)).then(o=>Ye(o).then(a=>({gasSponsor:a.gasSponsor})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.addressGasSponsors=(n,s,i)=>this.fetch(this.url("AddressGasSponsors"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,gasSponsors:a.gasSponsors})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.listGasSponsors=(n,s,i)=>this.fetch(this.url("ListGasSponsors"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,gasSponsors:a.gasSponsors})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.addGasSponsor=(n,s,i)=>this.fetch(this.url("AddGasSponsor"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,gasSponsor:a.gasSponsor})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.updateGasSponsor=(n,s,i)=>this.fetch(this.url("UpdateGasSponsor"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,gasSponsor:a.gasSponsor})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.removeGasSponsor=(n,s,i)=>this.fetch(this.url("RemoveGasSponsor"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.reportGasSponsorUsage=(n,s,i)=>this.fetch(this.url("ReportGasSponsorUsage"),Je(n,s,i)).then(o=>Ye(o).then(a=>({gasSponsorUsage:a.gasSponsorUsage})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.nextGasTankBalanceAdjustmentNonce=(n,s,i)=>this.fetch(this.url("NextGasTankBalanceAdjustmentNonce"),Je(n,s,i)).then(o=>Ye(o).then(a=>({nonce:a.nonce})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.adjustGasTankBalance=(n,s,i)=>this.fetch(this.url("AdjustGasTankBalance"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,adjustment:a.adjustment})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getGasTankBalanceAdjustment=(n,s,i)=>this.fetch(this.url("GetGasTankBalanceAdjustment"),Je(n,s,i)).then(o=>Ye(o).then(a=>({adjustment:a.adjustment})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.listGasTankBalanceAdjustments=(n,s,i)=>this.fetch(this.url("ListGasTankBalanceAdjustments"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,adjustments:a.adjustments})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const Je=(t={},e={},r=null)=>({method:"POST",headers:Cl({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),Ye=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),Ak.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(qce[n]||Bt).new(r)}return r});let Bt=class _D extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,_D.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},MD=class DD extends Bt{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,DD.prototype)}},Qe=class BD extends Bt{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,BD.prototype)}},LD=class jD extends Bt{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,jD.prototype)}},FD=class UD extends Bt{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,UD.prototype)}},$D=class WD extends Bt{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,WD.prototype)}},Ak=class VD extends Bt{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,VD.prototype)}},HD=class zD extends Bt{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,zD.prototype)}},GD=class qD extends Bt{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,qD.prototype)}},KD=class QD extends Bt{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,QD.prototype)}},JD=class YD extends Bt{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,YD.prototype)}},XD=class ZD extends Bt{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,ZD.prototype)}},eB=class tB extends Bt{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,tB.prototype)}},rB=class nB extends Bt{constructor(e="PermissionDenied",r=1001,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,nB.prototype)}},sB=class iB extends Bt{constructor(e="MethodNotFound",r=1003,n="Method not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,iB.prototype)}},oB=class aB extends Bt{constructor(e="Aborted",r=1005,n="Request aborted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,aB.prototype)}},cB=class lB extends Bt{constructor(e="InvalidArgument",r=2001,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lB.prototype)}},uB=class fB extends Bt{constructor(e="Unavailable",r=2002,n="Unavailable resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,fB.prototype)}},dB=class hB extends Bt{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,hB.prototype)}},pB=class yB extends Bt{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,yB.prototype)}},Gce=function(t){return t.WebrpcEndpoint="WebrpcEndpoint",t.WebrpcRequestFailed="WebrpcRequestFailed",t.WebrpcBadRoute="WebrpcBadRoute",t.WebrpcBadMethod="WebrpcBadMethod",t.WebrpcBadRequest="WebrpcBadRequest",t.WebrpcBadResponse="WebrpcBadResponse",t.WebrpcServerPanic="WebrpcServerPanic",t.WebrpcInternalError="WebrpcInternalError",t.WebrpcClientDisconnected="WebrpcClientDisconnected",t.WebrpcStreamLost="WebrpcStreamLost",t.WebrpcStreamFinished="WebrpcStreamFinished",t.Unauthorized="Unauthorized",t.PermissionDenied="PermissionDenied",t.MethodNotFound="MethodNotFound",t.Aborted="Aborted",t.InvalidArgument="InvalidArgument",t.Unavailable="Unavailable",t.QueryFailed="QueryFailed",t.NotFound="NotFound",t}({});const qce={0:MD,[-1]:Qe,[-2]:LD,[-3]:FD,[-4]:$D,[-5]:Ak,[-6]:HD,[-7]:GD,[-8]:KD,[-9]:JD,[-10]:XD,1e3:eB,1001:rB,1003:sB,1005:oB,2001:cB,2002:uB,2003:dB,3e3:pB};var od=Object.freeze({__proto__:null,WebRPCVersion:Uce,WebRPCSchemaVersion:$ce,WebRPCSchemaHash:Wce,ETHTxnStatus:la,TransferType:Vce,FeeTokenType:Hce,SortOrder:zce,Relayer:ND,WebrpcError:Bt,WebrpcEndpointError:MD,WebrpcRequestFailedError:Qe,WebrpcBadRouteError:LD,WebrpcBadMethodError:FD,WebrpcBadRequestError:$D,WebrpcBadResponseError:Ak,WebrpcServerPanicError:HD,WebrpcInternalErrorError:GD,WebrpcClientDisconnectedError:KD,WebrpcStreamLostError:JD,WebrpcStreamFinishedError:XD,UnauthorizedError:eB,PermissionDeniedError:rB,MethodNotFoundError:sB,AbortedError:oB,InvalidArgumentError:cB,UnavailableError:uB,QueryFailedError:dB,NotFoundError:pB,errors:Gce});const Kce=[la.DROPPED,la.SUCCEEDED,la.PARTIALLY_FAILED,la.FAILED],Qce=[la.DROPPED,la.PARTIALLY_FAILED,la.FAILED];function Jce(t){return t.url!==void 0&&typeof t.url=="string"&&t.provider!==void 0&&t.provider instanceof lo}const Yce=globalThis.fetch;class vB{constructor(e){if(this.options=e,this.service=void 0,this.provider=void 0,this._fetch=(r,n)=>{const s={},{jwtAuth:i,projectAccessKey:o}=this.options;return i&&i.length>0&&(s.Authorization=`BEARER ${i}`),o&&o.length>0&&(s["X-Access-Key"]=o),n.headers=Cl({},n.headers,s),Yce(r,n)},this.service=new ND(e.url,this._fetch),e.provider instanceof lo)this.provider=e.provider;else{const{jwtAuth:r,projectAccessKey:n}=this.options,s=O0(e.provider.url,n,r);this.provider=new zt(s,void 0,{staticNetwork:!0})}}async waitReceipt(e,r=1e3,n=5,s){typeof e!="string"&&(e=ye.transaction.intendedTransactionID(e)),Se.info(`[rpc-relayer/waitReceipt] waiting for ${e}`);let i=0;for(;s===void 0||!s();){try{const{receipt:o}=await this.service.getMetaTxnReceipt({metaTxID:e});if(o&&o.txnReceipt&&o.txnReceipt!=="null"&&Kce.includes(o.status))return{receipt:o}}catch(o){if(i++,i===n)throw o}(s===void 0||!s())&&await new Promise(o=>setTimeout(o,r))}throw new Error(`Cancelled waiting for transaction receipt ${e}`)}async simulate(e,...r){const s=Kt.defaultAbiCoder().encode([ye.transaction.MetaTransactionsType],[ye.transaction.sequenceTxAbiEncode(r)]);return(await this.service.simulate({wallet:e,transactions:s})).results}async getFeeOptions(e,...r){const n=await this.service.feeTokens();if(n.isFeeRequired){const s=n.tokens.map(c=>c.symbol).join(", ");Se.info(`[rpc-relayer/getFeeOptions] relayer fees are required, accepted tokens are ${s}`);const i=await this.getNonce(e);if(!this.provider)throw Se.warn("[rpc-relayer/getFeeOptions] provider not set, needed for stub signature"),new Error("provider is not set");const{options:o,quote:a}=await this.service.feeOptions({wallet:e,to:e,data:ye.transaction.encodeBundleExecData({entrypoint:e,transactions:r,nonce:i})});return Se.info(`[rpc-relayer/getFeeOptions] got refund options ${JSON.stringify(o,Ts)}`),{options:o,quote:{_tag:"FeeQuote",_quote:a}}}else return Se.info("[rpc-relayer/getFeeOptions] relayer fees are not required"),{options:[]}}async getFeeOptionsRaw(e,r,n){const{options:s,quote:i}=await this.service.feeOptions({wallet:e,to:e,data:H(r),simulate:n==null?void 0:n.simulate});return{options:s,quote:{_tag:"FeeQuote",_quote:i}}}async gasRefundOptions(e,...r){const{options:n}=await this.getFeeOptions(e,...r);return n}async getNonce(e,r){Se.info(`[rpc-relayer/getNonce] get nonce for wallet ${e} space: ${r}`);const n=r!==void 0?el(BigInt(r)):void 0,s=await this.service.getMetaTxnNonce({walletContractAddress:e,space:n}),i=BigInt(s.nonce),[o,a]=ye.transaction.decodeNonce(i);return Se.info(`[rpc-relayer/getNonce] got next nonce for wallet ${e} ${a} space: ${o}`),i}async relay(e,r,n=!0){var s=this;Se.info(`[rpc-relayer/relay] relaying signed meta-transactions ${JSON.stringify(e,Ts)} with quote ${JSON.stringify(r,Ts)}`);let i;if(r!==void 0&&(typeof r._quote=="string"?i=r._quote:Se.warn("[rpc-relayer/relay] ignoring invalid fee quote")),!this.provider)throw Se.warn("[rpc-relayer/relay] provider not set, failed relay"),new Error("provider is not set");const o=ye.transaction.encodeBundleExecData(e),a=await this.service.sendMetaTxn({call:{walletAddress:e.intent.wallet,contract:e.entrypoint,input:o},quote:i});if(Se.info(`[rpc-relayer/relay] got relay result ${JSON.stringify(a,Ts)}`),n)return this.wait(e.intent.id);{const c={hash:e.intent.id,confirmations:0,from:e.intent.wallet,wait:u=>Promise.reject(new Error("impossible"))},l=async function(f){var d;if(!s.provider)throw new Error("cannot wait for receipt, relayer has no provider set");const h=await s.wait(e.intent.id),y=(d=h.receipt)==null?void 0:d.transactionHash;if(!y)throw new Error("cannot wait for receipt, unknown native transaction hash");return Object.assign(c,h),s.provider.waitForTransaction(y,f)};return c.wait=l,c}}async wait(e,r,n=1e3,s=5){var i=this;let o=!1;const{receipt:a}=await(r!==void 0?Promise.race([this.waitReceipt(e,n,s,()=>o),new Promise((l,u)=>setTimeout(()=>{o=!0,u(`Timeout waiting for transaction receipt ${e}`)},r))]):this.waitReceipt(e,n,s));if(!a.txnReceipt||Qce.includes(a.status))throw new Xce(a);const c=JSON.parse(a.txnReceipt);return{blockHash:c.blockHash,blockNumber:Number(c.blockNumber),confirmations:1,from:typeof e=="string"?void 0:e.intent.wallet,hash:c.transactionHash,raw:a.txnReceipt,receipt:c,wait:async function(l){return i.provider.waitForTransaction(c.transactionHash,l)}}}}class Xce{constructor(e){this.receipt=e}}function gB(t){return typeof t=="object"&&typeof t.simulate=="function"&&typeof t.getFeeOptions=="function"&&typeof t.gasRefundOptions=="function"&&typeof t.getNonce=="function"&&typeof t.relay=="function"&&typeof t.wait=="function"}const Zce=Object.freeze(Object.defineProperty({__proto__:null,LocalRelayer:Fce,ProviderRelayer:RD,ProviderRelayerDefaults:OD,RpcRelayer:vB,RpcRelayerProto:od,isLocalRelayerOptions:jce,isProviderRelayerOptions:Lce,isRelayer:gB,isRpcRelayerOptions:Jce,proto:od},Symbol.toStringTag,{value:"Module"}));function mB(t){return t.getAddress!==void 0&&t.buildDeployTransaction!==void 0&&t.predecorateSignedTransactions!==void 0&&t.decorateTransactions!==void 0&&t.sign!==void 0&&t.notifyStatusChange!==void 0}class xB{constructor(e,r=!0){this.signer=e,this.eoa=r}getAddress(){return this.signer.getAddress()}async buildDeployTransaction(e){}async predecorateSignedTransactions(e){return[]}async decorateTransactions(e,r){return e}sign(e){return this.signer.signMessage(e)}notifyStatusChange(e,r,n){}suffix(){return new Uint8Array([2])}}var j2=Object.freeze({__proto__:null,isSapientSigner:mB,SignerWrapper:xB});let ua=function(t){return t[t.INITIAL=0]="INITIAL",t[t.SIGNING=1]="SIGNING",t[t.SIGNED=2]="SIGNED",t[t.ERROR=3]="ERROR",t}({});function bB(t){return t===void 0||t.state===ua.INITIAL||t.state===ua.SIGNING}class em{constructor(e,r=em.randomTag()){this.tag=r,this.observers=[],this.signers=[],this.count=0,this.setSigners(e)}static randomTag(){return`default-${H(Rr(8)).slice(2)}`}pullId(){return`${this.tag}-${this.count++}`}setSigners(e){this.signers=e.map(r=>mB(r)?r:new xB(r))}async getSigners(){return Promise.all(this.signers.map(async function(e){return e.getAddress()}))}subscribe(e){return this.observers.push(e),()=>{this.observers=this.observers.filter(r=>r!==e)}}async notifyObservers(e,r,n){await Promise.all([...this.signers.map(async function(s){return s.notifyStatusChange(e,r,n)}),...this.observers.map(async function(s){return s(r,n)})])}async buildDeployTransaction(e){let r;for(const n of this.signers){const s=await n.buildDeployTransaction(e);r===void 0?r=s:s!=null&&s.transactions&&(r.transactions=s.transactions.concat(r.transactions))}return r}async predecorateSignedTransactions(e){const r=[];for(const n of this.signers)r.push(...await n.predecorateSignedTransactions(e??{}));return r}async decorateTransactions(e,r){for(const n of this.signers)e=await n.decorateTransactions(e,r??{});return e}signMessage(e){var r=this;const n=this.pullId();return new Promise(async function(s){const{message:i,metadata:o,callback:a,candidates:c}=e,l={ended:!1,message:i,signers:{}};let u=o??{};const f=p=>{u=p,r.notifyObservers(n,l,u)},d=()=>{try{r.notifyObservers(n,l,u);const p=Object.entries(l.signers).filter(([b,v])=>bB(v));if(a&&a(l,f)||p.length===0){l.ended=!0,s(l),r.notifyObservers(n,l,u);return}}catch(p){console.error("Error while notifying observers",p)}};let h=r.signers;if(c){const p=await Promise.all(r.signers.map(async function(b){return b.getAddress()}));h=r.signers.filter((b,v)=>c.includes(p[v]))}const y=await Promise.allSettled(h.map(async function(p){const b=await p.getAddress();l.signers[b]={state:ua.SIGNING,request:p.sign(i,o??{}).then(v=>{const g=p.suffix();return l.signers[b]={state:ua.SIGNED,signature:v,suffix:g},d(),v}).catch(v=>{throw l.signers[b]={state:ua.ERROR,error:v},d(),v})}}));for(let p=0;pPt(e))):Pt(t)}const y3=t=>{const e=new Map;for(const r of Object.keys(t.signers)){const n=t.signers[r];if(n.state===ua.SIGNED){const s=Q(n.suffix),i=De(["bytes","bytes"],[n.signature,s]);e.set(r,{signature:i,isDynamic:s.length!==1||s[0]!==2})}}return e};class Lu extends uo{constructor(e){var r;if(BigInt(e.chainId)===0n&&!e.coders.signature.supportsNoChainId)throw new Error(`Sequence version ${e.config.version} doesn't support chainId 0`);super((r=e.provider)!=null?r:null),this.context=void 0,this.config=void 0,this.address=void 0,this.chainId=void 0,this.relayer=void 0,this.coders=void 0,this.orchestrator=void 0,this._reader=void 0,this.context=e.context,this.config=e.config,this.orchestrator=e.orchestrator,this.coders=e.coders,this.address=e.address,this.chainId=e.chainId,this.relayer=e.relayer,this._reader=e.reader}static newWallet(e){const r=ye.context.addressOf(e.context,e.coders.config.imageHashOf(e.config));return new Lu(Do({},e,{address:r}))}reader(){if(this._reader)return this._reader;if(!this.provider)throw new Error("Wallet status provider requires a provider");return new ye.reader.OnChainReader(this.provider)}setConfig(e){this.config=e}setOrchestrator(e){this.orchestrator=e}setAddress(e){this.address=e}getSigners(){return this.orchestrator.getSigners()}async getAddress(){return this.address}async decorateTransactions(e){const r=await this.orchestrator.decorateTransactions(e);if(await this.reader().isDeployed(this.address))return r;const n=[{to:r.entrypoint,data:ye.transaction.encodeBundleExecData(r),revertOnError:!0}],s=await this.buildDeployTransaction();return s&&n.unshift(...s.transactions),{entrypoint:this.context.guestModule,chainId:this.chainId,intent:r.intent,transactions:n}}async buildDeployTransaction(e){if(e!=null&&e.ignoreDeployed&&await this.reader().isDeployed(this.address))return;const r=this.coders.config.imageHashOf(this.config);if(ye.context.addressOf(this.context,r)!==this.address)throw new Error(`First address of config ${r} doesn't match wallet address ${this.address}`);const n=Lu.buildDeployTransaction(this.context,r);if(e!=null&&e.includeChildren){const s=await this.orchestrator.buildDeployTransaction(e);s&&(n.transactions=s.transactions.concat(n.transactions))}return n}async deploy(e){const r=await this.buildDeployTransaction(e);if(r!==void 0){if(!this.relayer)throw new Error("Wallet deploy requires a relayer");return this.relayer.relay(Do({},r,{chainId:this.chainId,intent:{id:H(Rr(32)),wallet:this.address}}))}}static buildDeployTransaction(e,r){const n=new pt(Gt.factory.abi);return{entrypoint:e.guestModule,transactions:[{to:e.factory,data:n.encodeFunctionData(n.getFunction("deploy"),[e.mainModule,r]),gasLimit:1e5,delegateCall:!1,revertOnError:!0,value:0}]}}async buildUpdateConfigurationTransaction(e){if(this.coders.config.update.isKindUsed){const r=await this.reader().implementation(this.address),n=r&&r===this.context.mainModuleUpgradable;return this.coders.config.update.buildTransaction(this.address,e,this.context,n?"later":"first")}return this.coders.config.update.buildTransaction(this.address,e,this.context)}async getNonce(e=0){const r=await this.reader().nonce(this.address,e);if(r===void 0)throw new Error("Unable to determine nonce");return Number(r)}async signDigest(e,r){const n=S2(this.address,this.chainId,e);if(this.coders.config.hasSubdigest(this.config,n))return this.coders.signature.encodeSigners(this.config,new Map,[n],this.chainId).encoded;const s=Do({},r,{digest:e,chainId:this.chainId,address:this.address,config:this.config}),i=Q(n),o=await this.orchestrator.signMessage({candidates:this.coders.config.signersOf(this.config).map(c=>c.address),message:i,metadata:s,callback:(c,l)=>{const u=y3(c),f=Do({},s,{parts:u});return l(f),this.coders.signature.hasEnoughSigningPower(this.config,u)}}),a=y3(o);return this.coders.signature.encodeSigners(this.config,a,[],this.chainId).encoded}signMessage(e){return this.signDigest(Ne(e),{message:e})}signTypedData(e,r,n){const s=kd({domain:e,types:r,message:n});return this.signDigest(s)}signTransactionBundle(e){if(e.entrypoint!==this.address)throw new Error(`Invalid entrypoint: ${e.entrypoint} !== ${this.address}`);return this.signTransactions(e.transactions,e.nonce)}async fetchNonceOrSpace(e){let r;if(e&&e.space!==void 0)r=BigInt(e.space);else{if(e===void 0)return this.randomNonce();if(e&&e.serial===!0)r=0;else return e}const n=await this.reader().nonce(this.address,r);if(n===void 0)throw new Error("Unable to determine nonce");return ye.transaction.encodeNonce(r,n)}randomNonce(){const e=BigInt(H(Rr(12)));return ye.transaction.encodeNonce(e,0)}async signTransactions(e,r,n){const s=await p3(e),i=ye.transaction.fromTransactionish(this.address,s);i.length===0&&i.push({to:this.address,data:"0x",value:0,gasLimit:0,delegateCall:!1,revertOnError:!0});const o=await this.fetchNonceOrSpace(r),a=ye.transaction.digestOfTransactions(o,i),c=Do({digest:a,transactions:i},n),l=await this.signDigest(a,c);return{intent:{id:S2(this.address,this.chainId,a),wallet:this.address},chainId:this.chainId,transactions:i,entrypoint:this.address,nonce:o,signature:l}}async sendSignedTransaction(e,r){if(!this.relayer)throw new Error("Wallet sendTransaction requires a relayer");return this.relayer.relay(e,r)}async sendTransaction(e,r){let n;(r==null?void 0:r.nonce)!==void 0?n=r.nonce:r!=null&&r.serial?n={serial:!0}:n=this.randomNonce();const s=await this.signTransactions(e,n),i=await this.decorateTransactions(s);return this.sendSignedTransaction(i,r==null?void 0:r.quote)}async fillGasLimits(e){const r=await p3(e),n=ye.transaction.fromTransactionish(this.address,r),s=this.relayer;if(!s)throw new Error("Wallet fillGasLimits requires a relayer");const i=await s.simulate(this.address,...n);return n.map((o,a)=>{const c=o.gasLimit?Number(o.gasLimit):i[a].gasLimit;return Do({},o,i[a],{gasLimit:c})})}connect(e,r){return new Lu({coders:this.coders,context:this.context,config:this.config,chainId:this.chainId,address:this.address,orchestrator:this.orchestrator,reader:this._reader,provider:e,relayer:r??this.relayer})}signTransaction(e){throw new Error("Method not implemented.")}}function Ks(){return Ks=Object.assign?Object.assign.bind():function(t){for(var e=1;e=BigInt(s.value))return s}else if(s.token.contractAddress&&s.token.type===od.FeeTokenType.ERC20_TOKEN&&await new dn(s.token.contractAddress,n,this.provider).balanceOf(this.account.address)>=BigInt(s.value))return s;throw new Error("No fee option available - not enough balance")}async sendTransaction(e,r){var n,s,i,o,a;const c=await this.account.prepareTransactions({txs:e,chainId:this.chainId,stubSignatureOverrides:(n=(s=this.options)==null?void 0:s.stubSignatureOverrides)!=null?n:new Map,simulateForFeeOptions:r==null?void 0:r.simulateForFeeOptions}),u=await((i=(o=this.options)==null?void 0:o.selectFee)!=null?i:this.defaultSelectFee.bind(this))(e,c.feeOptions),f=[...c.transactions,...tle(u)];return this.account.sendTransaction(f,this.chainId,c.feeQuote,void 0,void 0,((a=this.options)==null?void 0:a.nonceSpace)!==void 0?{nonceSpace:this.options.nonceSpace}:void 0)}getBalance(e){return this.provider.getBalance(this.account.address,e)}call(e,r){return this.provider.call(Ks({},e,{blockTag:r}))}async resolveName(e){const r=await this.provider.resolveName(e);if(!r)throw new Error(`Could not resolve name ${e}`);return r}connect(e){throw new Error("Method not implemented.")}signTransaction(e){throw new Error("Method not implemented.")}getTransactionCount(e){throw new Error("Method not implemented.")}estimateGas(e){throw new Error("Method not implemented.")}getChainId(){return Promise.resolve(Number(this.chainId))}getGasPrice(){throw new Error("Method not implemented.")}getFeeData(){throw new Error("Method not implemented.")}getNonce(e){throw new Error("Method not implemented.")}populateCall(e){throw new Error("Method not implemented.")}checkTransaction(e){throw new Error("Method not implemented.")}async populateTransaction(e){throw new Error("Method not implemented.")}_checkProvider(e){throw new Error("Method not implemented.")}}class nle{async isDeployed(e){return!1}async implementation(e){}async imageHash(e){}async nonce(e,r){return 0n}async isValidSignature(e,r,n){throw new Error("Method not supported.")}}class Ki{constructor(e){this.address=void 0,this.networks=void 0,this.tracker=void 0,this.contexts=void 0,this.migrator=void 0,this.migrations=void 0,this.orchestrator=void 0,this.jwt=void 0,this.projectAccessKey=void 0,this.address=Te(e.address),this.contexts=e.contexts,this.tracker=e.tracker,this.networks=e.networks,this.orchestrator=e.orchestrator,this.jwt=e.jwt,this.projectAccessKey=e.projectAccessKey,this.migrations=e.migrations||L2.DefaultMigrations,this.migrator=new B2.Migrator(e.tracker,this.migrations,this.contexts)}getSigner(e,r){return new rle(this,e,r)}static async new(e){var r;const s=new B2.Migrator(e.tracker,(r=e.migrations)!=null?r:L2.DefaultMigrations,e.contexts).lastMigration(),i=s.configCoder,o=i.fromSimple(e.config),a=i.imageHashOf(o),c=e.contexts[s.version],l=ye.context.addressOf(c,a);return await e.tracker.saveCounterfactualWallet({config:o,context:Object.values(e.contexts)}),new Ki({address:l,tracker:e.tracker,contexts:e.contexts,networks:e.networks,orchestrator:e.orchestrator,migrations:e.migrations,projectAccessKey:e.projectAccessKey})}getAddress(){return Promise.resolve(this.address)}get version(){return this.migrator.lastMigration().version}get coders(){const e=this.migrator.lastMigration();return{signature:e.signatureCoder,config:e.configCoder}}network(e){const r=BigInt(e),n=this.networks.find(s=>r===BigInt(s.chainId));if(!n)throw new Error(`Network not found for chainId ${e}`);return n}providerFor(e){const r=this.network(e);if(!r.provider&&!r.rpcUrl)throw new Error(`Provider not found for chainId ${e}`);const n=new ot(r.name,r.chainId);return r.provider||new zt(O0(r.rpcUrl,this.projectAccessKey,this.jwt),n,{staticNetwork:n})}reader(e){return BigInt(e)===0n?new nle:new ye.reader.OnChainReader(this.providerFor(e))}relayer(e){const r=this.network(e);if(!r.relayer)throw new Error(`Relayer not found for chainId ${e}`);return gB(r.relayer)?r.relayer:new vB(Ks({},r.relayer,this.projectAccessKey?{projectAccessKey:this.projectAccessKey}:{jwtAuth:this.jwt}))}setOrchestrator(e){this.orchestrator=e}setJwt(e){this.jwt=e}contextFor(e){const r=this.contexts[e];if(!r)throw new Error(`Context not found for version ${e}`);return r}walletForStatus(e,r){const n=dr.coderFor(r.version);return this.walletFor(e,this.contextFor(r.version),r.config,n)}walletFor(e,r,n,s){const i=BigInt(e)===0n;return new Lu({config:n,context:r,chainId:e,coders:s,relayer:i?void 0:this.relayer(e),address:this.address,orchestrator:this.orchestrator,reader:this.reader(e)})}async status(e,r=!1){var n=this;const s=this.reader(e).isDeployed(this.address),i=this.tracker.imageHashOfCounterfactualWallet({wallet:this.address}).then(S=>{if(!S)throw new Error(`Counterfactual imageHash not found for wallet ${this.address}`);return S}),o=i.then(S=>TD.counterfactualVersion(this.address,S.imageHash,Object.values(this.contexts))),a=async function(){if(!await s)return o;const I=await n.reader(e).implementation(n.address);if(!I)throw new Error(`Implementation not found for wallet ${n.address}`);const R=Object.values(n.contexts);for(let _=0;_0?p[p.length-1].nextImageHash:d,v=await this.tracker.configOfImageHash({imageHash:b});if(!v)throw new Error(`Config not found for imageHash ${b}`);const g=await s,x=await i,k=dr.coderFor(h).config.checkpointOf(v);return{original:Ks({},x,{version:await o}),onChain:{imageHash:f,config:await l,version:u,deployed:g},fullyMigrated:h===this.version,signedMigrations:y,version:h,presignedConfigurations:p,imageHash:b,config:v,checkpoint:k,canOnchainValidate:u===this.version&&g}}mustBeFullyMigrated(e){if(!e.fullyMigrated)throw new Error(`Wallet ${this.address} is not fully migrated`)}async predecorateSignedTransactions(e,r){const n=await this.orchestrator.predecorateSignedTransactions({chainId:r}),s=await this.predecorateTransactions([],e,r);return ye.transaction.fromTransactionish(this.address,s).length>0&&n.push(await this.signTransactions(s,r)),n}async predecorateTransactions(e,r,n){if(r.onChain.imageHash!==r.imageHash){const i=await this.walletForStatus(n,r).buildUpdateConfigurationTransaction(r.config);return[Array.isArray(e)?e:[e],i.transactions].flat()}return e}async decorateTransactions(e,r,n){var s,i;if(!Array.isArray(e))return this.decorateTransactions([e],r,n);n=(s=n)!=null?s:e[0].chainId;const o=await this.buildBootstrapTransactions(r,n),a=o.transactions.length>0;if(!a&&e.length===1)return e[0];const{entrypoint:c}=a?o:e[0],l={entrypoint:c,chainId:n,intent:(i=e[0])==null?void 0:i.intent,transactions:[...o.transactions,...e.map(u=>({to:u.entrypoint,data:ye.transaction.encodeBundleExecData(u),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}))]};if(!r.onChain.deployed){const u=ye.transaction.subdigestOfGuestModuleTransactions(this.contexts[this.version].guestModule,n,l.transactions);l.intent===void 0?l.intent={id:u,wallet:this.address}:l.intent.id=u}return l}async decorateSignature(e,r){if(!r.presignedConfigurations||r.presignedConfigurations.length===0)return e;const n=this.coders.signature,s=r.presignedConfigurations.map(o=>o.signature),i=n.chainSignatures(e,s);return n.trim(i)}async publishWitness(){const e=Qr(`This is a Sequence account woo! ${Date.now()}`),r=await this.signDigest(e,0,!1),n=this.coders.signature.decode(r),s=this.coders.signature.signaturesOfDecoded(n);return this.tracker.saveWitnesses({wallet:this.address,digest:e,chainId:0,signatures:s})}async signDigest(e,r,n=!0,s="ignore",i){const o=BigInt(r)===0n?this.networks[0].chainId:r,a=await this.status(o);if(this.mustBeFullyMigrated(a),!a.canOnchainValidate&&s==="throw")throw new Error("Wallet cannot validate onchain");const l=await this.walletForStatus(r,a).signDigest(e,i),u=n?this.decorateSignature(l,a):l;if(!a.canOnchainValidate)switch(s){case"ignore":return u;case"eip6492":return this.buildEIP6492Signature(await u,a,r)}return u}buildOnChainSignature(e){const r=ye.signature.subdigestOf({digest:H(e),chainId:0,address:this.address}),n=H(r),s=this.coders.config.fromSimple({threshold:32768,checkpoint:0,signers:[],subdigests:[n]}),i=new pt(Gt.mainModule.abi),o={entrypoint:this.address,transactions:[{to:this.address,data:i.encodeFunctionData("setExtraImageHash",[this.coders.config.imageHashOf(s),"57896044618658097711785492504343953926634992332820282019728792003956564819968"]),gasLimit:25e4}]};this.tracker.saveWalletConfig({config:s});const a=this.coders.signature.encodeSigners(s,new Map,[n],0).encoded;return{bundle:o,signature:a}}async buildEIP6492Signature(e,r,n){const s=await this.buildBootstrapTransactions(r,n);if(s.transactions.length===0)throw new Error("Cannot build EIP-6492 signature without bootstrap transactions");const i=Kt.defaultAbiCoder().encode(["address","bytes","bytes"],[s.entrypoint,ye.transaction.encodeBundleExecData(s),e]);return De(["bytes","bytes32"],[i,ye.EIP6492.EIP_6492_SUFFIX])}async editConfig(e){const r=await this.status(0).then(s=>s.config),n=this.coders.config.editConfig(r,Ks({},e,{checkpoint:this.coders.config.checkpointOf(r)+1n}));return this.updateConfig(n)}async updateConfig(e){if(!this.coders.config.isWalletConfig(e))throw new Error(`Invalid config for wallet ${this.address}`);const r=this.coders.config.imageHashOf(e),n=this.coders.signature.hashSetImageHash(r),s=await this.signDigest(n,0,!1);await this.tracker.savePresignedConfiguration({wallet:this.address,nextConfig:e,signature:s});const i=await this.tracker.configOfImageHash({imageHash:r,noCache:!0});if(!i||this.coders.config.imageHashOf(i)!==r)throw Error(`Reverse lookup failed for imageHash ${r}`)}async buildBootstrapTransactions(e,r){var n;const s=await this.orchestrator.buildDeployTransaction({chainId:r}),i=(n=s==null?void 0:s.transactions)!=null?n:[];if(!e.onChain.deployed){const c=Lu.buildDeployTransaction(e.original.context,e.original.imageHash);i.push(...c.transactions)}i.push(...e.signedMigrations.map(c=>({to:c.tx.entrypoint,data:ye.transaction.encodeBundleExecData(c.tx),value:0,gasLimit:0,revertOnError:!0,delegateCall:!1})));const o=e.signedMigrations.length>0?e.signedMigrations[0].tx.intent.id:ye.transaction.subdigestOfGuestModuleTransactions(this.contexts[this.version].guestModule,r,i),{guestModule:a}=this.contextFor(e.version);return{entrypoint:a,transactions:i,chainId:r,intent:{id:o,wallet:this.address}}}async bootstrapTransactions(e,r){const n=r||await this.status(e);return this.buildBootstrapTransactions(n,e)}async doBootstrap(e,r,n){const s=await this.bootstrapTransactions(e,n);return this.relayer(e).relay(Ks({},s,{chainId:e}),r)}signMessage(e,r,n="ignore"){return this.signDigest(Ne(e),r,!0,n)}async signTransactions(e,r,n,s){const i=n||await this.status(r);this.mustBeFullyMigrated(i);const o=this.walletForStatus(r,i),a={address:this.address,digest:"",chainId:r,config:{version:this.version},decorate:!0,cantValidateBehavior:"ignore"},c=s!=null&&s.serial?{serial:!0}:(s==null?void 0:s.nonceSpace)!==void 0?{space:s.nonceSpace}:void 0,l=await o.signTransactions(e,c,a);return Ks({},l,{signature:await this.decorateSignature(l.signature,i)})}async signMigrations(e,r){const n=await this.status(e);if(n.fullyMigrated)return!1;const s=this.walletForStatus(e,n),i=r(s.config),o=await this.migrator.signNextMigration(this.address,n.version,s,i);if(!o)return!1;await this.tracker.saveWalletConfig({config:i});const a=dr.coderFor(i.version).config,c=a.imageHashOf(i),l=await this.tracker.configOfImageHash({imageHash:c,noCache:!0});if(!l||a.imageHashOf(l)!==c)throw Error(`Reverse lookup failed for imageHash ${c}`);return await this.tracker.saveMigration(this.address,o,this.contexts),!0}async signAllMigrations(e){var r=this;const n=[];return{signedMigrations:(await Promise.all(this.networks.map(async function(o){try{return await r.signMigrations(o.chainId,e)}catch(a){return console.warn(`Failed to sign migrations for chain ${o.chainId}`,a),n.push(o.chainId),null}}))).filter(o=>o!==null),failedChains:n}}async isMigratedAllChains(){var e=this;const r=[];return{migratedAllChains:(await Promise.all(this.networks.map(async function(i){try{return await e.status(i.chainId)}catch(o){return r.push(i.chainId),console.warn(`Failed to get status for chain ${i.chainId}`,o),{fullyMigrated:!0}}}))).every(i=>i.fullyMigrated),failedChains:r}}async sendSignedTransactions(e,r,n,s,i){if(!Array.isArray(e))return this.sendSignedTransactions([e],r,n,s,i);const o=s||await this.status(r);this.mustBeFullyMigrated(o);const a=await this.decorateTransactions(e,o,r);return i==null||i(a),this.relayer(r).relay(a,n)}async fillGasLimits(e,r,n){return this.walletForStatus(r,n||await this.status(r)).fillGasLimits(e)}async gasRefundQuotes(e,r,n,s,i){const o=s||await this.status(r),a=this.walletForStatus(r,o),c=await this.predecorateTransactions(e,o,r),l=ye.transaction.fromTransactionish(this.address,c),u=a.coders.config.buildStubSignature(a.config,n),f=H(Rr(32)),d={chainId:r,intent:{id:f,wallet:this.address},signature:u,transactions:l,entrypoint:this.address,nonce:0},h=await this.decorateTransactions(d,o),y=ye.transaction.encodeBundleExecData(h),p=await this.relayer(r).getFeeOptionsRaw(h.entrypoint,y,i);return Ks({},p,{decorated:h})}async prepareTransactions(e){const r=await this.status(e.chainId),n=await this.fillGasLimits(e.txs,e.chainId,r),s=await this.gasRefundQuotes(n,e.chainId,e.stubSignatureOverrides,r,{simulate:e.simulateForFeeOptions}),i=ye.transaction.unwind(this.address,s.decorated.transactions);return{transactions:n,flatDecorated:i,feeOptions:s.options,feeQuote:s.quote}}async sendTransaction(e,r,n,s=!1,i,o){const a=await this.status(r),c=s?e:await this.predecorateTransactions(e,a,r),u=ye.transaction.fromTransactionish(this.address,c).length>0?await this.signTransactions(c,r,void 0,o):void 0,f=await this.orchestrator.predecorateSignedTransactions({chainId:r}),d=[];return u!==void 0&&u.transactions.length>0&&d.push(u),d.push(...f.filter(h=>h.transactions.length>0)),this.sendSignedTransactions(d,r,n,void 0,i)}async signTypedData(e,r,n,s,i="ignore"){const o=kd({domain:e,types:r,message:n});return this.signDigest(o,s,!0,i)}async getSigners(){var e=this;const r=n=>n.length?n[n.length-1]:void 0;return(await Promise.all(this.networks.map(async function({chainId:n,name:s}){try{var i;const o=await e.status(n);let a=(i=r(o.presignedConfigurations))==null?void 0:i.nextImageHash;if(!a&&o.onChain.version!==o.version){const f=r(o.signedMigrations);if(f){const{toVersion:d,toConfig:h}=f;a=dr.genericCoderFor(d).config.imageHashOf(h)}}a||(a=o.onChain.imageHash);const c=await e.tracker.configOfImageHash({imageHash:a});if(!c)throw new Error(`unable to find config for image hash ${a}`);return dr.genericCoderFor(c.version).config.signersOf(c).map(f=>Ks({},f,{network:n}))}catch(o){return console.warn(`unable to get signers on network ${n} ${s}`,o),[]}}))).flat()}async getAllSigners(){var e=this;const r=[];return await Promise.all(this.networks.map(async function(n){const s=n.chainId,i=await e.status(s,!0),o=[i.onChain.imageHash,...i.onChain.version!==i.version?i.signedMigrations.map(a=>dr.coderFor(a.toVersion).config.imageHashOf(a.toConfig)):[],...i.presignedConfigurations.map(a=>a.nextImageHash)];return Promise.all(o.map(async function(a,c){const l=c===o.length-1,u=await e.tracker.configOfImageHash({imageHash:a});if(!u){console.warn(`AllSigners may be incomplete, config not found for imageHash ${a}`);return}dr.genericCoderFor(u.version).config.signersOf(u).forEach(h=>{const y=r.find(p=>p.address===h.address&&p.network===s);if(y&&l&&y.flaggedForRemoval){y.flaggedForRemoval=!1;return}y||r.push({address:h.address,weight:h.weight,network:s,flaggedForRemoval:!l})})}))})),r}}function sle(t){return t instanceof Ki}const ile=Object.freeze(Object.defineProperty({__proto__:null,Account:Ki,isAccount:sle},Symbol.toStringTag,{value:"Module"}));function kv(){return kv=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),at({},n,s)).then(i=>vt(i).then(o=>({status:o.status})),i=>{throw ct.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),at({},n,s)).then(i=>vt(i).then(o=>({version:o.version})),i=>{throw ct.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),at({},n,s)).then(i=>vt(i).then(o=>({status:o.status})),i=>{throw ct.new({cause:`fetch(): ${i.message||""}`})}),this.getChainID=(n,s)=>this.fetch(this.url("GetChainID"),at({},n,s)).then(i=>vt(i).then(o=>({chainID:o.chainID})),i=>{throw ct.new({cause:`fetch(): ${i.message||""}`})}),this.getEtherBalance=(n,s,i)=>this.fetch(this.url("GetEtherBalance"),at(n,s,i)).then(o=>vt(o).then(a=>({balance:a.balance})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenBalances=(n,s,i)=>this.fetch(this.url("GetTokenBalances"),at(n,s,i)).then(o=>vt(o).then(a=>({page:a.page,balances:a.balances})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenSupplies=(n,s,i)=>this.fetch(this.url("GetTokenSupplies"),at(n,s,i)).then(o=>vt(o).then(a=>({page:a.page,contractType:a.contractType,tokenIDs:a.tokenIDs})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenSuppliesMap=(n,s,i)=>this.fetch(this.url("GetTokenSuppliesMap"),at(n,s,i)).then(o=>vt(o).then(a=>({supplies:a.supplies})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getBalanceUpdates=(n,s,i)=>this.fetch(this.url("GetBalanceUpdates"),at(n,s,i)).then(o=>vt(o).then(a=>({page:a.page,balances:a.balances})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getTransactionHistory=(n,s,i)=>this.fetch(this.url("GetTransactionHistory"),at(n,s,i)).then(o=>vt(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.syncBalance=(n,s,i)=>this.fetch(this.url("SyncBalance"),at(n,s,i)).then(o=>vt(o).then(a=>({})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.fetchTransactionReceipt=(n,s,i)=>this.fetch(this.url("FetchTransactionReceipt"),at(n,s,i)).then(o=>vt(o).then(a=>({receipt:a.receipt})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getOrderbookOrders=(n,s,i)=>this.fetch(this.url("GetOrderbookOrders"),at(n,s,i)).then(o=>vt(o).then(a=>({page:a.page,orders:a.orders})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getTopOrders=(n,s,i)=>this.fetch(this.url("GetTopOrders"),at(n,s,i)).then(o=>vt(o).then(a=>({orders:a.orders})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.fetchTransactionReceiptWithFilter=(n,s,i)=>this.fetch(this.url("FetchTransactionReceiptWithFilter"),at(n,s,i)).then(o=>vt(o).then(a=>({receipt:a.receipt})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getAllWebhookListeners=(n,s,i)=>this.fetch(this.url("GetAllWebhookListeners"),at(n,s,i)).then(o=>vt(o).then(a=>({listeners:a.listeners})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getWebhookListener=(n,s,i)=>this.fetch(this.url("GetWebhookListener"),at(n,s,i)).then(o=>vt(o).then(a=>({listener:a.listener})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.addWebhookListener=(n,s,i)=>this.fetch(this.url("AddWebhookListener"),at(n,s,i)).then(o=>vt(o).then(a=>({status:a.status,listener:a.listener})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.updateWebhookListener=(n,s,i)=>this.fetch(this.url("UpdateWebhookListener"),at(n,s,i)).then(o=>vt(o).then(a=>({status:a.status})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.removeWebhookListener=(n,s,i)=>this.fetch(this.url("RemoveWebhookListener"),at(n,s,i)).then(o=>vt(o).then(a=>({status:a.status})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.toggleWebhookListener=(n,s,i)=>this.fetch(this.url("ToggleWebhookListener"),at(n,s,i)).then(o=>vt(o).then(a=>({webhookListener:a.webhookListener})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.pauseAllWebhookListeners=(n,s,i)=>this.fetch(this.url("PauseAllWebhookListeners"),at(n,s,i)).then(o=>vt(o).then(a=>({status:a.status})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.resumeAllWebhookListeners=(n,s,i)=>this.fetch(this.url("ResumeAllWebhookListeners"),at(n,s,i)).then(o=>vt(o).then(a=>({status:a.status})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.subscribeReceipts=(n,s)=>{const i=()=>this.fetch(this.url("SubscribeReceipts"),at(n,s.headers,s.signal)).then(async function(o){await Vx(o,s,i)},o=>{s.onError(o,i)});return i()},this.subscribeEvents=(n,s)=>{const i=()=>this.fetch(this.url("SubscribeEvents"),at(n,s.headers,s.signal)).then(async function(o){await Vx(o,s,i)},o=>{s.onError(o,i)});return i()},this.subscribeBalanceUpdates=(n,s)=>{const i=()=>this.fetch(this.url("SubscribeBalanceUpdates"),at(n,s.headers,s.signal)).then(async function(o){await Vx(o,s,i)},o=>{s.onError(o,i)});return i()},this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const Vx=async(t,e,r)=>{const{onMessage:n,onOpen:s,onClose:i,onError:o}=e;if(!t.ok){try{await vt(t)}catch(h){o(h,r)}return}if(!t.body){o(N0.new({status:t.status,cause:"Invalid response, missing body"}),r);return}s&&s();const a=t.body.getReader(),c=new TextDecoder;let l="",u=Date.now();const f=11*1e3;let d;try{for(d=setInterval(()=>{if(Date.now()-u>f)throw jh.new({cause:"Stream timed out"})},f);;){let h,y;try{({value:h,done:y}=await a.read()),u=Date.now(),l+=c.decode(h,{stream:!0})}catch(b){let v="";b instanceof Error&&(v=b.message),b instanceof DOMException&&b.name==="AbortError"?o(ct.new({message:"AbortError",cause:`AbortError: ${v}`}),()=>{throw new Error("Abort signal cannot be used to reconnect")}):o(jh.new({cause:`reader.read(): ${v}`}),r);return}let p=l.split(` +`);for(let b=0;b({method:"POST",headers:kv({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),vt=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),N0.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(dL[n]||it).new(r)}return r});let it=class CB extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,CB.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},EB=class kB extends it{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,kB.prototype)}},ct=class AB extends it{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,AB.prototype)}},SB=class TB extends it{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,TB.prototype)}},PB=class IB extends it{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,IB.prototype)}},OB=class RB extends it{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,RB.prototype)}},N0=class NB extends it{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,NB.prototype)}},_B=class MB extends it{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,MB.prototype)}},DB=class BB extends it{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,BB.prototype)}},LB=class jB extends it{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,jB.prototype)}},jh=class FB extends it{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,FB.prototype)}},UB=class $B extends it{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,$B.prototype)}},WB=class VB extends it{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,VB.prototype)}},HB=class zB extends it{constructor(e="PermissionDenied",r=1001,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,zB.prototype)}},GB=class qB extends it{constructor(e="SessionExpired",r=1002,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,qB.prototype)}},KB=class QB extends it{constructor(e="MethodNotFound",r=1003,n="Method not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,QB.prototype)}},JB=class YB extends it{constructor(e="RequestConflict",r=1004,n="Conflict with target resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,YB.prototype)}},XB=class ZB extends it{constructor(e="Aborted",r=1005,n="Request aborted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,ZB.prototype)}},eL=class tL extends it{constructor(e="Timeout",r=2e3,n="Request timed out",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,tL.prototype)}},rL=class nL extends it{constructor(e="InvalidArgument",r=2001,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,nL.prototype)}},sL=class iL extends it{constructor(e="Unavailable",r=2002,n="Unavailable resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,iL.prototype)}},oL=class aL extends it{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,aL.prototype)}};class tm extends it{constructor(e="ResourceExhausted",r=2004,n="Resource exhausted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,tm.prototype)}}let cL=class lL extends it{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lL.prototype)}},uL=class fL extends it{constructor(e="ProjectNotFound",r=3002,n="Project not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,fL.prototype)}};class rm extends it{constructor(e="MetadataCallFailed",r=3003,n="Metadata service call failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,rm.prototype)}}let gle=function(t){return t.WebrpcEndpoint="WebrpcEndpoint",t.WebrpcRequestFailed="WebrpcRequestFailed",t.WebrpcBadRoute="WebrpcBadRoute",t.WebrpcBadMethod="WebrpcBadMethod",t.WebrpcBadRequest="WebrpcBadRequest",t.WebrpcBadResponse="WebrpcBadResponse",t.WebrpcServerPanic="WebrpcServerPanic",t.WebrpcInternalError="WebrpcInternalError",t.WebrpcClientDisconnected="WebrpcClientDisconnected",t.WebrpcStreamLost="WebrpcStreamLost",t.WebrpcStreamFinished="WebrpcStreamFinished",t.Unauthorized="Unauthorized",t.PermissionDenied="PermissionDenied",t.SessionExpired="SessionExpired",t.MethodNotFound="MethodNotFound",t.RequestConflict="RequestConflict",t.Aborted="Aborted",t.Timeout="Timeout",t.InvalidArgument="InvalidArgument",t.Unavailable="Unavailable",t.QueryFailed="QueryFailed",t.ResourceExhausted="ResourceExhausted",t.NotFound="NotFound",t.ProjectNotFound="ProjectNotFound",t.MetadataCallFailed="MetadataCallFailed",t}({});const dL={0:EB,[-1]:ct,[-2]:SB,[-3]:PB,[-4]:OB,[-5]:N0,[-6]:_B,[-7]:DB,[-8]:LB,[-9]:jh,[-10]:UB,1e3:WB,1001:HB,1002:GB,1003:KB,1004:JB,1005:XB,2e3:eL,2001:rL,2002:sL,2003:oL,2004:tm,3e3:cL,3002:uL,3003:rm},v3=globalThis.fetch;class hL extends wB{constructor(e,r,n){super(e.endsWith("/")?e.slice(0,-1):e,v3),this.projectAccessKey=r,this.jwtAuth=n,this._fetch=(s,i)=>{const o={},a=this.jwtAuth,c=this.projectAccessKey;return a&&a.length>0&&(o.Authorization=`BEARER ${a}`),c&&c.length>0&&(o["X-Access-Key"]=c),i.headers=kv({},i.headers,o),v3(s,i)},this.fetch=this._fetch}}const mle=Object.freeze(Object.defineProperty({__proto__:null,AbortedError:XB,ContractType:lle,EventLogDataType:fle,EventLogType:ule,Indexer:wB,InvalidArgumentError:rL,MetadataCallFailedError:rm,MethodNotFoundError:KB,NotFoundError:cL,OrderStatus:dle,PermissionDeniedError:HB,ProjectNotFoundError:uL,QueryFailedError:oL,RequestConflictError:JB,ResourceExhaustedError:tm,SequenceIndexer:hL,SessionExpiredError:GB,SortOrder:vle,TimeoutError:eL,TransactionStatus:ple,TransactionType:yle,TxnTransferType:hle,UnauthorizedError:WB,UnavailableError:sL,WebRPCSchemaHash:cle,WebRPCSchemaVersion:ale,WebRPCVersion:ole,WebrpcBadMethodError:PB,WebrpcBadRequestError:OB,WebrpcBadResponseError:N0,WebrpcBadRouteError:SB,WebrpcClientDisconnectedError:LB,WebrpcEndpointError:EB,WebrpcError:it,WebrpcInternalErrorError:DB,WebrpcRequestFailedError:ct,WebrpcServerPanicError:_B,WebrpcStreamFinishedError:UB,WebrpcStreamLostError:jh,errors:gle},Symbol.toStringTag,{value:"Module"}));function _0(){return _0=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),be({},n,s)).then(i=>we(i).then(o=>({status:o.status})),i=>{throw ge.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),be({},n,s)).then(i=>we(i).then(o=>({version:o.version})),i=>{throw ge.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),be({},n,s)).then(i=>we(i).then(o=>({status:o.status})),i=>{throw ge.new({cause:`fetch(): ${i.message||""}`})}),this.getTokenMetadata=(n,s,i)=>this.fetch(this.url("GetTokenMetadata"),be(n,s,i)).then(o=>we(o).then(a=>({tokenMetadata:a.tokenMetadata})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.refreshTokenMetadata=(n,s,i)=>this.fetch(this.url("RefreshTokenMetadata"),be(n,s,i)).then(o=>we(o).then(a=>({taskId:a.taskId})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.enqueueTokensForRefresh=(n,s,i)=>this.fetch(this.url("EnqueueTokensForRefresh"),be(n,s,i)).then(o=>we(o).then(a=>({taskId:a.taskId})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenRefreshStatus=(n,s,i)=>this.fetch(this.url("GetTokenRefreshStatus"),be(n,s,i)).then(o=>we(o).then(a=>({status:a.status})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenRefreshResult=(n,s,i)=>this.fetch(this.url("GetTokenRefreshResult"),be(n,s,i)).then(o=>we(o).then(a=>({status:a.status,tokens:a.tokens,failureReasons:a.failureReasons})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.cancelRefreshJob=(n,s,i)=>this.fetch(this.url("CancelRefreshJob"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenMetadataBatch=(n,s,i)=>this.fetch(this.url("GetTokenMetadataBatch"),be(n,s,i)).then(o=>we(o).then(a=>({contractTokenMetadata:a.contractTokenMetadata})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchTokenMetadata=(n,s,i)=>this.fetch(this.url("SearchTokenMetadata"),be(n,s,i)).then(o=>we(o).then(a=>({page:a.page,tokenMetadata:a.tokenMetadata})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchTokenIDs=(n,s,i)=>this.fetch(this.url("SearchTokenIDs"),be(n,s,i)).then(o=>we(o).then(a=>({page:a.page,tokenIds:a.tokenIds})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.tokenCollectionFilters=(n,s,i)=>this.fetch(this.url("TokenCollectionFilters"),be(n,s,i)).then(o=>we(o).then(a=>({filters:a.filters})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getContractInfo=(n,s,i)=>this.fetch(this.url("GetContractInfo"),be(n,s,i)).then(o=>we(o).then(a=>({contractInfo:a.contractInfo})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getContractInfoBatch=(n,s,i)=>this.fetch(this.url("GetContractInfoBatch"),be(n,s,i)).then(o=>we(o).then(a=>({contractInfoMap:a.contractInfoMap})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchContractInfo=(n,s,i)=>this.fetch(this.url("SearchContractInfo"),be(n,s,i)).then(o=>we(o).then(a=>({contractInfoList:a.contractInfoList})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchContractInfoBatch=(n,s,i)=>this.fetch(this.url("SearchContractInfoBatch"),be(n,s,i)).then(o=>we(o).then(a=>({contractInfoByChain:a.contractInfoByChain})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchMetadata=(n,s,i)=>this.fetch(this.url("SearchMetadata"),be(n,s,i)).then(o=>we(o).then(a=>({tokenMetadata:a.tokenMetadata,contractInfo:a.contractInfo})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchTokens=(n,s,i)=>this.fetch(this.url("SearchTokens"),be(n,s,i)).then(o=>we(o).then(a=>({tokenMetadata:a.tokenMetadata,nextPage:a.nextPage})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchContracts=(n,s,i)=>this.fetch(this.url("SearchContracts"),be(n,s,i)).then(o=>we(o).then(a=>({contractInfo:a.contractInfo,nextPage:a.nextPage})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getNiftyswapTokenQuantity=(n,s,i)=>this.fetch(this.url("GetNiftyswapTokenQuantity"),be(n,s,i)).then(o=>we(o).then(a=>({quantity:a.quantity})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getNiftyswapUnitPrices=(n,s,i)=>this.fetch(this.url("GetNiftyswapUnitPrices"),be(n,s,i)).then(o=>we(o).then(a=>({prices:a.prices})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getNiftyswapUnitPricesWithQuantities=(n,s,i)=>this.fetch(this.url("GetNiftyswapUnitPricesWithQuantities"),be(n,s,i)).then(o=>we(o).then(a=>({prices:a.prices})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.addContractToMintMonitor=(n,s,i)=>this.fetch(this.url("AddContractToMintMonitor"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.removeContractFromMintMonitor=(n,s,i)=>this.fetch(this.url("RemoveContractFromMintMonitor"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.mintMonitorJobStatus=(n,s,i)=>this.fetch(this.url("MintMonitorJobStatus"),be(n,s,i)).then(o=>we(o).then(a=>({task:a.task})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.mintMonitorTriggerJob=(n,s,i)=>this.fetch(this.url("MintMonitorTriggerJob"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.syncContractTokens=(n,s,i)=>this.fetch(this.url("SyncContractTokens"),be(n,s,i)).then(o=>we(o).then(a=>({taskID:a.taskID})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.abortContractSync=(n,s,i)=>this.fetch(this.url("AbortContractSync"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.contractSyncJobStatus=(n,s,i)=>this.fetch(this.url("ContractSyncJobStatus"),be(n,s,i)).then(o=>we(o).then(a=>({refreshTask:a.refreshTask,syncTask:a.syncTask})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.directoryGetNetworks=(n,s,i)=>this.fetch(this.url("DirectoryGetNetworks"),be(n,s,i)).then(o=>we(o).then(a=>({networks:a.networks})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.directoryGetCollections=(n,s,i)=>this.fetch(this.url("DirectoryGetCollections"),be(n,s,i)).then(o=>we(o).then(a=>({collections:a.collections,page:a.page})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.directorySearchCollections=(n,s,i)=>this.fetch(this.url("DirectorySearchCollections"),be(n,s,i)).then(o=>we(o).then(a=>({collections:a.collections,page:a.page})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}class yL{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Collections/",this.createCollection=(n,s,i)=>this.fetch(this.url("CreateCollection"),be(n,s,i)).then(o=>we(o).then(a=>({collection:a.collection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getCollection=(n,s,i)=>this.fetch(this.url("GetCollection"),be(n,s,i)).then(o=>we(o).then(a=>({collection:a.collection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.listCollections=(n,s,i)=>this.fetch(this.url("ListCollections"),be(n,s,i)).then(o=>we(o).then(a=>({page:a.page,collections:a.collections})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.updateCollection=(n,s,i)=>this.fetch(this.url("UpdateCollection"),be(n,s,i)).then(o=>we(o).then(a=>({collection:a.collection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.deleteCollection=(n,s,i)=>this.fetch(this.url("DeleteCollection"),be(n,s,i)).then(o=>we(o).then(a=>({status:a.status})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.publishCollection=(n,s,i)=>this.fetch(this.url("PublishCollection"),be(n,s,i)).then(o=>we(o).then(a=>({collection:a.collection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.unpublishCollection=(n,s,i)=>this.fetch(this.url("UnpublishCollection"),be(n,s,i)).then(o=>we(o).then(a=>({collection:a.collection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.createContractCollection=(n,s,i)=>this.fetch(this.url("CreateContractCollection"),be(n,s,i)).then(o=>we(o).then(a=>({contractCollection:a.contractCollection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getContractCollection=(n,s,i)=>this.fetch(this.url("GetContractCollection"),be(n,s,i)).then(o=>we(o).then(a=>({contractCollection:a.contractCollection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.listContractCollections=(n,s,i)=>this.fetch(this.url("ListContractCollections"),be(n,s,i)).then(o=>we(o).then(a=>({contractCollections:a.contractCollections,page:a.page})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.updateContractCollection=(n,s,i)=>this.fetch(this.url("UpdateContractCollection"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.deleteContractCollection=(n,s,i)=>this.fetch(this.url("DeleteContractCollection"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.createToken=(n,s,i)=>this.fetch(this.url("CreateToken"),be(n,s,i)).then(o=>we(o).then(a=>({token:a.token,assets:a.assets})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getToken=(n,s,i)=>this.fetch(this.url("GetToken"),be(n,s,i)).then(o=>we(o).then(a=>({token:a.token,assets:a.assets})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.listTokens=(n,s,i)=>this.fetch(this.url("ListTokens"),be(n,s,i)).then(o=>we(o).then(a=>({page:a.page,tokens:a.tokens})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.updateToken=(n,s,i)=>this.fetch(this.url("UpdateToken"),be(n,s,i)).then(o=>we(o).then(a=>({token:a.token})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.deleteToken=(n,s,i)=>this.fetch(this.url("DeleteToken"),be(n,s,i)).then(o=>we(o).then(a=>({status:a.status})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.createAsset=(n,s,i)=>this.fetch(this.url("CreateAsset"),be(n,s,i)).then(o=>we(o).then(a=>({asset:a.asset})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getAsset=(n,s,i)=>this.fetch(this.url("GetAsset"),be(n,s,i)).then(o=>we(o).then(a=>({asset:a.asset})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.updateAsset=(n,s,i)=>this.fetch(this.url("UpdateAsset"),be(n,s,i)).then(o=>we(o).then(a=>({asset:a.asset})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.deleteAsset=(n,s,i)=>this.fetch(this.url("DeleteAsset"),be(n,s,i)).then(o=>we(o).then(a=>({status:a.status})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}class Sle{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Admin/",this.addContractsToTokenDirectory=(n,s,i)=>this.fetch(this.url("AddContractsToTokenDirectory"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.removeContractsFromTokenDirectory=(n,s,i)=>this.fetch(this.url("RemoveContractsFromTokenDirectory"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.modifyFeatureIndex=(n,s,i)=>this.fetch(this.url("ModifyFeatureIndex"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getFeatureIndex=(n,s,i)=>this.fetch(this.url("GetFeatureIndex"),be(n,s,i)).then(o=>we(o).then(a=>({featured:a.featured})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.listTokenDirectory=(n,s,i)=>this.fetch(this.url("ListTokenDirectory"),be(n,s,i)).then(o=>we(o).then(a=>({page:a.page,collections:a.collections})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const be=(t={},e={},r=null)=>({method:"POST",headers:_0({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),we=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),Sk.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(Ple[n]||Ze).new(r)}return r});let Ze=class vL extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,vL.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},gL=class mL extends Ze{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,mL.prototype)}},ge=class xL extends Ze{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,xL.prototype)}},bL=class wL extends Ze{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,wL.prototype)}},CL=class EL extends Ze{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,EL.prototype)}},kL=class AL extends Ze{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,AL.prototype)}},Sk=class SL extends Ze{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,SL.prototype)}},TL=class PL extends Ze{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,PL.prototype)}},IL=class OL extends Ze{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,OL.prototype)}},RL=class NL extends Ze{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,NL.prototype)}},_L=class ML extends Ze{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,ML.prototype)}},DL=class BL extends Ze{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,BL.prototype)}},LL=class jL extends Ze{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,jL.prototype)}},FL=class UL extends Ze{constructor(e="PermissionDenied",r=1001,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,UL.prototype)}},$L=class WL extends Ze{constructor(e="SessionExpired",r=1002,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,WL.prototype)}};class nm extends Ze{constructor(e="MethodNotFound",r=1003,n="Method not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,nm.prototype)}}class sm extends Ze{constructor(e="RequestConflict",r=1004,n="Conflict with target resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,sm.prototype)}}class im extends Ze{constructor(e="Fail",r=1005,n="Request Failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,im.prototype)}}class om extends Ze{constructor(e="Geoblocked",r=1006,n="Geoblocked region",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,om.prototype)}}class am extends Ze{constructor(e="Timeout",r=2e3,n="Request timed out",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,am.prototype)}}let VL=class HL extends Ze{constructor(e="InvalidArgument",r=2001,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,HL.prototype)}};class cm extends Ze{constructor(e="RequiredArgument",r=2002,n="Required argument missing",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,cm.prototype)}}let zL=class GL extends Ze{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,GL.prototype)}},qL=class KL extends Ze{constructor(e="ValidationFailed",r=2004,n="Validation failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,KL.prototype)}};class lm extends Ze{constructor(e="RateLimited",r=2005,n="Rate limited",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lm.prototype)}}let QL=class JL extends Ze{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,JL.prototype)}};class um extends Ze{constructor(e="ProjectNotFound",r=3002,n="Project not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,um.prototype)}}class fm extends Ze{constructor(e="ChainNotFound",r=3003,n="Chain not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,fm.prototype)}}class dm extends Ze{constructor(e="TokenDirectoryDisabled",r=4001,n="Token Directory is disabled",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,dm.prototype)}}let Tle=function(t){return t.WebrpcEndpoint="WebrpcEndpoint",t.WebrpcRequestFailed="WebrpcRequestFailed",t.WebrpcBadRoute="WebrpcBadRoute",t.WebrpcBadMethod="WebrpcBadMethod",t.WebrpcBadRequest="WebrpcBadRequest",t.WebrpcBadResponse="WebrpcBadResponse",t.WebrpcServerPanic="WebrpcServerPanic",t.WebrpcInternalError="WebrpcInternalError",t.WebrpcClientDisconnected="WebrpcClientDisconnected",t.WebrpcStreamLost="WebrpcStreamLost",t.WebrpcStreamFinished="WebrpcStreamFinished",t.Unauthorized="Unauthorized",t.PermissionDenied="PermissionDenied",t.SessionExpired="SessionExpired",t.MethodNotFound="MethodNotFound",t.RequestConflict="RequestConflict",t.Fail="Fail",t.Geoblocked="Geoblocked",t.Timeout="Timeout",t.InvalidArgument="InvalidArgument",t.RequiredArgument="RequiredArgument",t.QueryFailed="QueryFailed",t.ValidationFailed="ValidationFailed",t.RateLimited="RateLimited",t.NotFound="NotFound",t.ProjectNotFound="ProjectNotFound",t.ChainNotFound="ChainNotFound",t.TokenDirectoryDisabled="TokenDirectoryDisabled",t}({});const Ple={0:gL,[-1]:ge,[-2]:bL,[-3]:CL,[-4]:kL,[-5]:Sk,[-6]:TL,[-7]:IL,[-8]:RL,[-9]:_L,[-10]:DL,1e3:LL,1001:FL,1002:$L,1003:nm,1004:sm,1005:im,1006:om,2e3:am,2001:VL,2002:cm,2003:zL,2004:qL,2005:lm,3e3:QL,3002:um,3003:fm,4001:dm},Av=globalThis.fetch;class YL extends pL{constructor(e="https://metadata.sequence.app",r,n){super(e.endsWith("/")?e.slice(0,-1):e,Av),this.projectAccessKey=r,this.jwtAuth=n,this._fetch=(s,i)=>{const o={},a=this.jwtAuth,c=this.projectAccessKey;return a&&a.length>0&&(o.Authorization=`BEARER ${a}`),c&&c.length>0&&(o["X-Access-Key"]=c),i.headers=_0({},i.headers,o),Av(s,i)},this.fetch=this._fetch}}class Ile extends yL{constructor(e="https://metadata.sequence.app",r){super(e.endsWith("/")?e.slice(0,-1):e,Av),this.jwtAuth=r,this._fetch=(n,s)=>{const i={},o=this.jwtAuth;return o&&o.length>0&&(i.Authorization=`BEARER ${o}`),s.headers=_0({},s.headers,i),Av(n,s)},this.fetch=this._fetch}}const Ole=Object.freeze(Object.defineProperty({__proto__:null,Admin:Sle,ChainNotFoundError:fm,Collections:yL,ContractType:Cle,FailError:im,GeoblockedError:om,InvalidArgumentError:VL,Metadata:pL,MethodNotFoundError:nm,NotFoundError:QL,PermissionDeniedError:FL,ProjectNotFoundError:um,PropertyType:Ele,QueryFailedError:zL,RateLimitedError:lm,RequestConflictError:sm,RequiredArgumentError:cm,SequenceCollections:Ile,SequenceMetadata:YL,SessionExpiredError:$L,SwapType:kle,TaskStatus:Ale,TimeoutError:am,TokenDirectoryDisabledError:dm,UnauthorizedError:LL,ValidationFailedError:qL,WebRPCSchemaHash:wle,WebRPCSchemaVersion:ble,WebRPCVersion:xle,WebrpcBadMethodError:CL,WebrpcBadRequestError:kL,WebrpcBadResponseError:Sk,WebrpcBadRouteError:bL,WebrpcClientDisconnectedError:RL,WebrpcEndpointError:gL,WebrpcError:Ze,WebrpcInternalErrorError:IL,WebrpcRequestFailedError:ge,WebrpcServerPanicError:TL,WebrpcStreamFinishedError:DL,WebrpcStreamLostError:_L,errors:Tle},Symbol.toStringTag,{value:"Module"}));function Rle(t,e){const r=t.replace("ipfs://ipfs/","").replace("ipfs://","");return t.startsWith("ipfs://")?`${e}${r}`:t}function Nle(t){return t.startsWith("ipfs://")}class _le{constructor(e,r,n=1e3){this.provider=e,this.solver=r,this.window=n,this.pending=new Map}async runByEIP5719(e,r,n){const s=`${e}-${r}-${n}`,i=Date.now();if(this.pending.has(s)&&i-this.pending.get(s).timestamp10)throw new Error("EIP5719 - Too many tries");if(ye.signer.canRecover(n)){const c=ye.signer.recoverSigner(r,n);if(c&&c.toLowerCase()===t.toLowerCase())return n}try{if(await ye.signer.isValidSignature(t,r,n,e))return n}catch{}const o=await Dle(Mle(t,e).getAlternativeSignature(r));if(!o||o==="")throw new Error("EIP5719 - Invalid signature and no alternative signature");const a=H(await(s||new Ble).resolve(o));if(!a||a==="")throw new Error("EIP5719 - Empty alternative signature");if(a===H(n))throw new Error("EIP5719 - Alternative signature is invalid or the same");return XL(t,e,r,a,s,i+1)}class Ble{constructor(e="https://cloudflare-ipfs.com/ipfs/"){var r=this;this.gateway=e,this.uri=n=>Nle(n)?Rle(n,this.gateway):n,this.resolve=async function(n){const s=r.uri(n),i=await fetch(s);if(!i.ok)throw new Error(`URISolverIPFS - Failed to fetch ${s}`);return await i.text()}}}const Lle=(t,e)=>e.some(r=>t instanceof r);let g3,m3;function jle(){return g3||(g3=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Fle(){return m3||(m3=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const ZL=new WeakMap,F2=new WeakMap,ej=new WeakMap,Hx=new WeakMap,Tk=new WeakMap;function Ule(t){const e=new Promise((r,n)=>{const s=()=>{t.removeEventListener("success",i),t.removeEventListener("error",o)},i=()=>{r(ka(t.result)),s()},o=()=>{n(t.error),s()};t.addEventListener("success",i),t.addEventListener("error",o)});return e.then(r=>{r instanceof IDBCursor&&ZL.set(r,t)}).catch(()=>{}),Tk.set(e,t),e}function $le(t){if(F2.has(t))return;const e=new Promise((r,n)=>{const s=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",o),t.removeEventListener("abort",o)},i=()=>{r(),s()},o=()=>{n(t.error||new DOMException("AbortError","AbortError")),s()};t.addEventListener("complete",i),t.addEventListener("error",o),t.addEventListener("abort",o)});F2.set(t,e)}let U2={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return F2.get(t);if(e==="objectStoreNames")return t.objectStoreNames||ej.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return ka(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function Wle(t){U2=t(U2)}function Vle(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){const n=t.call(zx(this),e,...r);return ej.set(n,e.sort?e.sort():[e]),ka(n)}:Fle().includes(t)?function(...e){return t.apply(zx(this),e),ka(ZL.get(this))}:function(...e){return ka(t.apply(zx(this),e))}}function Hle(t){return typeof t=="function"?Vle(t):(t instanceof IDBTransaction&&$le(t),Lle(t,jle())?new Proxy(t,U2):t)}function ka(t){if(t instanceof IDBRequest)return Ule(t);if(Hx.has(t))return Hx.get(t);const e=Hle(t);return e!==t&&(Hx.set(t,e),Tk.set(e,t)),e}const zx=t=>Tk.get(t);function zle(t,e,{blocked:r,upgrade:n,blocking:s,terminated:i}={}){const o=indexedDB.open(t,e),a=ka(o);return n&&o.addEventListener("upgradeneeded",c=>{n(ka(o.result),c.oldVersion,c.newVersion,ka(o.transaction),c)}),r&&o.addEventListener("blocked",c=>r(c.oldVersion,c.newVersion,c)),a.then(c=>{i&&c.addEventListener("close",()=>i()),s&&c.addEventListener("versionchange",l=>s(l.oldVersion,l.newVersion,l))}).catch(()=>{}),a}const Gle=["get","getKey","getAll","getAllKeys","count"],qle=["put","add","delete","clear"],Gx=new Map;function x3(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(Gx.get(e))return Gx.get(e);const r=e.replace(/FromIndex$/,""),n=e!==r,s=qle.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(s||Gle.includes(r)))return;const i=async function(o,...a){const c=this.transaction(o,s?"readwrite":"readonly");let l=c.store;return n&&(l=l.index(a.shift())),(await Promise.all([l[r](...a),s&&c.done]))[0]};return Gx.set(e,i),i}Wle(t=>({...t,get:(e,r,n)=>x3(e,r)||t.get(e,r,n),has:(e,r)=>!!x3(e,r)||t.has(e,r)}));class Kle{constructor(){this.loadPresignedConfiguration=void 0,this.savePresignedConfiguration=void 0,this.saveWitnesses=void 0,this.configOfImageHash=void 0,this.saveWalletConfig=void 0,this.imageHashOfCounterfactualWallet=void 0,this.saveCounterfactualWallet=void 0,this.walletsOfSigner=void 0}}var Qle=Object.freeze({__proto__:null,ConfigTracker:Kle});class Jle{constructor(e){this.tracker=e}async loadPresignedConfiguration(e){return console.debug("? loadPresignedConfiguration"),Br(e,"? "),Br(await this.tracker.loadPresignedConfiguration(e),"! ")}savePresignedConfiguration(e){return console.debug("? savePresignedConfiguration"),Br(e,"? "),this.tracker.savePresignedConfiguration(e)}saveWitnesses(e){return console.debug("? saveWitnesses"),Br(e,"? "),this.tracker.saveWitnesses(e)}async configOfImageHash(e){return console.debug("? configOfImageHash"),Br(e,"? "),Br(await this.tracker.configOfImageHash(e),"! ")}saveWalletConfig(e){return console.debug("? saveWalletConfig"),Br(e,"? "),this.tracker.saveWalletConfig(e)}async imageHashOfCounterfactualWallet(e){return console.debug("? imageHashOfCounterfactualWallet"),Br(e,"? "),Br(await this.tracker.imageHashOfCounterfactualWallet(e),"! ")}saveCounterfactualWallet(e){return console.debug("? saveCounterfactualWallet"),Br(e,"? "),this.tracker.saveCounterfactualWallet(e)}async walletsOfSigner(e){return console.debug("? walletsOfSigner"),Br(e,"? "),Br(await this.tracker.walletsOfSigner(e),"! ")}async getMigration(e,r,n,s){return console.debug("? getMigration"),Br({address:e,fromImageHash:r,fromVersion:n,chainId:s},"? "),Br(await this.tracker.getMigration(e,r,n,s),"! ")}saveMigration(e,r,n){return console.debug("? saveMigration"),Br({address:e,signed:r,contexts:n},"? "),this.tracker.saveMigration(e,r,n)}}function Br(t,e=""){switch(t){case void 0:console.debug(e+"undefined");break;default:JSON.stringify(t,Ts,2).split(` +`).map(r=>e+r).forEach(r=>console.debug(r));break}return t}var Yle=Object.freeze({__proto__:null,DebugConfigTracker:Jle});function Ma(){return Ma=Object.assign?Object.assign.bind():function(t){for(var e=1;ePromise.resolve(this.configs[e]),this.saveConfig=(e,r)=>(this.configs[e]=r,Promise.resolve()),this.loadV2Node=e=>Promise.resolve(this.v2Nodes[e]),this.saveV2Node=(e,r)=>(this.v2Nodes[e]=r,Promise.resolve()),this.loadCounterfactualWallet=e=>Promise.resolve(this.counterfactualWallets[e]),this.saveCounterfactualWallet=(e,r,n)=>(this.counterfactualWallets[e]={imageHash:r,context:n},Promise.resolve()),this.loadPayloadOfSubdigest=e=>Promise.resolve(this.payloads[e]),this.savePayloadOfSubdigest=(e,r)=>(this.payloads[e]=r,Promise.resolve()),this.loadSubdigestsOfSigner=e=>Promise.resolve(Object.keys(this.signatures[e]||{})),this.loadSignatureOfSubdigest=(e,r)=>{var n;return Promise.resolve((n=this.signatures[e])==null?void 0:n[r])},this.saveSignatureOfSubdigest=(e,r,n)=>(this.signatures[e]||(this.signatures[e]={}),this.signatures[e][r]=n,Promise.resolve()),this.loadMigrationsSubdigest=(e,r,n)=>{var s;return Promise.resolve(((s=this.migrations[e])==null||(s=s[r])==null?void 0:s[n])||[])},this.saveMigrationsSubdigest=(e,r,n,s,i)=>(this.migrations[e]||(this.migrations[e]={}),this.migrations[e][r]||(this.migrations[e][r]={}),this.migrations[e][r][n]||(this.migrations[e][r][n]=[]),this.migrations[e][r][n].push({subdigest:s,toImageHash:i}),Promise.resolve())}}function ju(t){if(t===void 0)return;const e={};for(const r of Object.keys(t)){const n=t[r];n._isBigNumber===!0&&n._hex!==void 0&&typeof n._hex=="string"&&n._hex.length!==""?e[r]=BigInt(n):Array.isArray(n)?e[r]=n.map(s=>ju(s)):typeof n=="object"&&n!==null?e[r]=ju(n):e[r]=n}return e}class Xle{constructor(e){var r=this;this.dbName=e,this._lazyDb=void 0,this.loadConfig=async function(n){return(await r.getDb()).get("configs",n).then(i=>ju(i))},this.saveConfig=async function(n,s){await(await r.getDb()).put("configs",s,n)},this.loadV2Node=async function(n){return(await r.getDb()).get("v2Nodes",n).then(i=>ju(i))},this.saveV2Node=async function(n,s){await(await r.getDb()).put("v2Nodes",s,n)},this.loadCounterfactualWallet=async function(n){return(await r.getDb()).get("counterfactualWallets",n)},this.saveCounterfactualWallet=async function(n,s,i){await(await r.getDb()).put("counterfactualWallets",{imageHash:s,context:i},n)},this.loadPayloadOfSubdigest=async function(n){return(await r.getDb()).get("payloads",n).then(i=>ju(i))},this.savePayloadOfSubdigest=async function(n,s){await(await r.getDb()).put("payloads",s,n)},this.loadSubdigestsOfSigner=async function(n){return(await(await r.getDb()).getAllKeysFromIndex("signatures","signer",IDBKeyRange.only(n))).map(o=>o.split("-")[0])},this.loadSignatureOfSubdigest=async function(n,s){const o=await(await r.getDb()).get("signatures",[s,n].join("-"));return o==null?void 0:o.signature},this.saveSignatureOfSubdigest=async function(n,s,i){await(await r.getDb()).put("signatures",{signature:i,signer:n},[s,n].join("-"))},this.loadMigrationsSubdigest=async function(n,s,i){return(await(await r.getDb()).getAllFromIndex("migrations","jump",IDBKeyRange.only([n,s,i]))).map(c=>({subdigest:c.subdigest,toImageHash:c.toImageHash}))},this.saveMigrationsSubdigest=async function(n,s,i,o,a){await(await r.getDb()).put("migrations",{wallet:n,fromVersion:s,toVersion:i,subdigest:o,toImageHash:a},o)}}async getDb(){if(this._lazyDb)return this._lazyDb;const e=this.dbName;return this._lazyDb=await zle(e,1,{upgrade(r,n,s,i){console.log(`upgrading ${e} from ${n} to ${s} - ${i}`),n===0&&(r.createObjectStore("configs"),r.createObjectStore("v2Nodes"),r.createObjectStore("counterfactualWallets"),r.createObjectStore("payloads"),r.createObjectStore("signatures").createIndex("signer","signer",{unique:!1}),r.createObjectStore("migrations").createIndex("jump",["wallet","fromVersion","toVersion"]))}}),this._lazyDb}}function rj(t){return t.left!==void 0&&t.right!==void 0}function nj(t){return t.weight!==void 0&&t.threshold!==void 0&&t.tree!==void 0}function $2(t){return t.version===2&&t.threshold!==void 0&&t.checkpoint!==void 0&&t.tree!==void 0&&typeof t.tree=="string"}var Zle=Object.freeze({__proto__:null,isPlainNode:rj,isPlainNested:nj,isPlainV2Config:$2,MemoryTrackerStore:tj,recreateBigNumbers:ju,IndexedDBStore:Xle});class Pk{constructor(e,r=new tj,n=!1){var s=this;this.provider=e,this.store=r,this.useEIP5719=n,this.cachedEIP5719=void 0,this.loadTopology=async function(i){const o=await s.store.loadV2Node(i);if(!o)return{nodeHash:i};if(rj(o)){const[a,c]=await Promise.all([s.loadTopology(o.left),s.loadTopology(o.right)]);return{left:a,right:c}}return nj(o)?{weight:BigInt(o.weight),threshold:BigInt(o.threshold),tree:await s.loadTopology(o.tree)}:o},this.saveTopology=async function(i){if(je.config.isNodeLeaf(i))return;const o=je.config.hashNode(i);if(je.config.isNode(i)){const a=s.saveTopology(i.left),c=s.saveTopology(i.right),l=s.store.saveV2Node(o,{left:je.config.hashNode(i.left),right:je.config.hashNode(i.right)});await Promise.all([a,c,l]);return}if(je.config.isNestedLeaf(i)){const a=s.saveTopology(i.tree),c=s.store.saveV2Node(o,{weight:BigInt(i.weight).toString(),threshold:BigInt(i.threshold).toString(),tree:je.config.hashNode(i.tree)});await Promise.all([a,c]);return}if(je.config.isSignerLeaf(i))return s.store.saveV2Node(o,{address:i.address,weight:i.weight});if(je.config.isSubdigestLeaf(i))return s.store.saveV2Node(o,{subdigest:i.subdigest});throw new Error(`Unknown topology type: ${i}`)},this.saveWalletConfig=async function(i){const{config:o}=i;if(Hi.config.ConfigCoder.isWalletConfig(o)){const a=Hi.config.ConfigCoder.imageHashOf(o);return s.store.saveConfig(a,o)}if(je.config.ConfigCoder.isWalletConfig(o)){const a=je.config.ConfigCoder.imageHashOf(o);if(je.config.isComplete(o.tree))return s.store.saveConfig(a,o)}},this.configOfImageHashCache={},this.configOfImageHash=async function(i){const{imageHash:o}=i;if(s.configOfImageHashCache[i.imageHash])return s.configOfImageHashCache[i.imageHash];const a=await s.store.loadConfig(o);if(a){if(a.version===1||a.version===2&&!$2(a))return s.configOfImageHashCache[i.imageHash]=a,a;if($2(a)){const c={version:2,threshold:BigInt(a.threshold),checkpoint:BigInt(a.checkpoint),tree:await s.loadTopology(a.tree)};return s.configOfImageHashCache[i.imageHash]=c,c}throw new Error(`Unknown config type: ${a}`)}},this.saveCounterfactualWallet=async function(i){const{config:o,context:a}=i,c=dr.genericCoderFor(o.version).config.imageHashOf(o);await Promise.all([s.saveWalletConfig({config:o}),...a.map(l=>{const u=ye.context.addressOf(l,c);return s.store.saveCounterfactualWallet(u,c,l)})])},this.imageHashOfCounterfactualWallet=async function(i){const{wallet:o}=i,a=await s.store.loadCounterfactualWallet(o);if(a)return{imageHash:a.imageHash,context:a.context}},this.savePayload=async function(i){const{payload:o}=i,a=ye.signature.subdigestOf(o);await s.store.savePayloadOfSubdigest(a,o)},this.payloadOfSubdigestCache={},this.payloadOfSubdigest=async function(i){if(s.payloadOfSubdigestCache[i.subdigest])return s.payloadOfSubdigestCache[i.subdigest];const{subdigest:o}=i,a=await s.store.loadPayloadOfSubdigest(o);return a&&(s.payloadOfSubdigestCache[o]=a),a},this.savePresignedConfiguration=async function(i){const o=je.signature.SignatureCoder.decode(i.signature),a=dr.genericCoderFor(i.nextConfig.version).config.imageHashOf(i.nextConfig),c=je.chained.messageSetImageHash(a),l=Ne(c),u={message:c,address:i.wallet,chainId:0,digest:l},f=s.savePayload({payload:u}),d=s.saveWalletConfig({config:i.nextConfig}),h=await je.signature.SignatureCoder.recover(o,u,s.provider),y=je.signature.signaturesOf(h.config.tree);await Promise.all([f,d,s.saveWalletConfig({config:h.config}),...y.map(p=>s.store.saveSignatureOfSubdigest(p.address,h.subdigest,p.signature))])},this.loadPresignedConfiguration=async function(i){const{wallet:o,fromImageHash:a,longestPath:c}=i,l=await s.configOfImageHash({imageHash:a});if(!l||!je.config.ConfigCoder.isWalletConfig(l))return[];const u=je.config.signersOf(l.tree).map(x=>x.address),f=await Promise.all(u.map(x=>s.store.loadSubdigestsOfSigner(x))),d=[...new Set(f.flat())],y=(await Promise.all([...new Set(d)].map(async function(x){return Ma({},await s.payloadOfSubdigest({subdigest:x}),{subdigest:x})}))).filter(x=>(x==null?void 0:x.message)&&(x==null?void 0:x.address)&&x.address===o).map(x=>({payload:x,nextImageHash:je.chained.decodeMessageSetImageHash(x.message)})).filter(x=>x==null?void 0:x.nextImageHash);let p;const v=(await Promise.all(y.map(async function({nextImageHash:x,payload:k}){const S=await s.configOfImageHash({imageHash:x});if(!S||!je.config.isWalletConfig(S))return;const I=BigInt(S.checkpoint);return{nextConfig:S,nextCheckpoint:I,nextImageHash:x,payload:k}}))).filter(x=>x!==void 0).filter(x=>x.nextCheckpoint>BigInt(l.checkpoint)).sort((x,k)=>x.nextCheckpoint>k.nextCheckpoint?c?1:-1:c?-1:1);for(const x of v){const{nextConfig:k,nextCheckpoint:S,nextImageHash:I,payload:R}=x;if(p){const F=p.checkpoint;if(c){if(S>=F)continue}else if(S<=F)continue}const _=new Map((await Promise.all(u.map(async function(F){const X=await s.store.loadSignatureOfSubdigest(F,R.subdigest);if(!X)return[F,void 0];const re=H(s.useEIP5719?await s.cachedEIP5719.runByEIP5719(F,R.subdigest,X):X),le=ye.signer.tryRecoverSigner(R.subdigest,re)!==F;return[F,{isDynamic:le,signature:re}]}))).filter(F=>!!F[1]));if(_.size===0)continue;const V=je.signature.SignatureCoder.encodeSigners(l,_,[],0);V.weightye.signer.canRecover(c)).map(c=>{const l=ye.signer.recoverSigner(a,c);return s.store.saveSignatureOfSubdigest(l,a,c)})])},this.walletsOfSigner=async function(i){const o=await s.store.loadSubdigestsOfSigner(i.signer),a=await Promise.all(o.map(l=>s.payloadOfSubdigest({subdigest:l}))).then(l=>l.filter(u=>u!==void 0)),c=[];for(const l of a){const u=l.address;if(c.find(h=>h.wallet===u))continue;const f=ye.signature.subdigestOf(l),d=await s.store.loadSignatureOfSubdigest(i.signer,f);d&&c.push({wallet:u,proof:{digest:l.digest,chainId:BigInt(l.chainId),signature:H(d)}})}return c},this.cachedEIP5719=new _le(e)}async saveMigration(e,r,n){const s=r.fromVersion;if(s!==1)throw new Error("Migration not supported");if(!je.config.isWalletConfig(r.toConfig))throw new Error("Invalid to config");const{newImageHash:i,address:o}=ID.v1v2.decodeTransaction(r.tx,n);if(o!==e)throw new Error("Invalid migration transaction - address");if(je.config.ConfigCoder.imageHashOf(r.toConfig)!=i)throw new Error("Invalid migration transaction - config");const a=ye.transaction.packMetaTransactionsData(r.tx.nonce,r.tx.transactions),c=Ne(a),l={chainId:r.tx.chainId,message:a,address:e,digest:c},u=ye.signature.subdigestOf(l),f=this.savePayload({payload:l}),d=this.saveWalletConfig({config:r.toConfig}),h=Hi.signature.SignatureCoder.decode(r.tx.signature),y=await Hi.signature.SignatureCoder.recover(h,l,this.provider),p=Hi.signature.SignatureCoder.signaturesOf(y.config);await Promise.all([f,d,this.saveWalletConfig({config:y.config}),this.store.saveMigrationsSubdigest(e,s,s+1,u,i),...p.map(b=>this.store.saveSignatureOfSubdigest(b.address,y.subdigest,b.signature))])}async getMigration(e,r,n,s){var i=this;const[o,a]=await Promise.all([this.configOfImageHash({imageHash:r}),this.store.loadMigrationsSubdigest(e,n,n+1)]),c=dr.coderFor(n);return!o||!c.config.isWalletConfig(o)?void 0:(await Promise.all(a.map(async function(u){const{subdigest:f,toImageHash:d}=u,h=await i.payloadOfSubdigest({subdigest:f});if(!h||!h.message||BigInt(s)!==BigInt(h.chainId))return;const y=c.config.signersOf(o).map(x=>x.address),p=new Map((await Promise.all(y.map(async function(x){const k=await i.store.loadSignatureOfSubdigest(x,f);if(!k)return[x,void 0];const S=H(i.useEIP5719?await i.cachedEIP5719.runByEIP5719(x,f,k):k),I=ye.signer.tryRecoverSigner(f,S)!==x;return[x,{isDynamic:I,signature:S}]}))).filter(x=>!!x[1])),b=c.signature.encodeSigners(o,p,[],s);if(!b||b.weightu.filter(f=>f!==void 0)))[0]}updateProvider(e){this.provider=e}}var eue=Object.freeze({__proto__:null,LocalConfigTracker:Pk});let qx=function(t){return t.EIP712="EIP712",t.EthSign="EthSign",t.EIP1271="EIP1271",t}({});class tue{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Sessions/",this.ping=(n,s)=>this.fetch(this.url("Ping"),cs({},n,s)).then(i=>ls(i).then(o=>({})),i=>{throw Un.new({cause:`fetch(): ${i.message||""}`})}),this.config=(n,s,i)=>this.fetch(this.url("Config"),cs(n,s,i)).then(o=>ls(o).then(a=>({version:a.version,config:a.config})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.wallets=(n,s,i)=>this.fetch(this.url("Wallets"),cs(n,s,i)).then(o=>ls(o).then(a=>({wallets:a.wallets})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.deployHash=(n,s,i)=>this.fetch(this.url("DeployHash"),cs(n,s,i)).then(o=>ls(o).then(a=>({deployHash:a.deployHash,context:a.context})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.configUpdates=(n,s,i)=>this.fetch(this.url("ConfigUpdates"),cs(n,s,i)).then(o=>ls(o).then(a=>({updates:a.updates})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.migrations=(n,s,i)=>this.fetch(this.url("Migrations"),cs(n,s,i)).then(o=>ls(o).then(a=>({migrations:a.migrations})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.saveConfig=(n,s,i)=>this.fetch(this.url("SaveConfig"),cs(n,s,i)).then(o=>ls(o).then(a=>({})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.saveWallet=(n,s,i)=>this.fetch(this.url("SaveWallet"),cs(n,s,i)).then(o=>ls(o).then(a=>({})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.saveSignature=(n,s,i)=>this.fetch(this.url("SaveSignature"),cs(n,s,i)).then(o=>ls(o).then(a=>({})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.saveSignerSignatures=(n,s,i)=>this.fetch(this.url("SaveSignerSignatures"),cs(n,s,i)).then(o=>ls(o).then(a=>({})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.saveMigration=(n,s,i)=>this.fetch(this.url("SaveMigration"),cs(n,s,i)).then(o=>ls(o).then(a=>({})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const cs=(t={},e={},r=null)=>({method:"POST",headers:Ma({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),ls=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),uj.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(hue[n]||vn).new(r)}return r});let vn=class sj extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,sj.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},rue=class ij extends vn{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,ij.prototype)}},Un=class oj extends vn{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,oj.prototype)}},nue=class aj extends vn{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,aj.prototype)}},sue=class cj extends vn{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,cj.prototype)}},iue=class lj extends vn{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lj.prototype)}},uj=class fj extends vn{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,fj.prototype)}},oue=class dj extends vn{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,dj.prototype)}},aue=class hj extends vn{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,hj.prototype)}},cue=class pj extends vn{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,pj.prototype)}},lue=class yj extends vn{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,yj.prototype)}},uue=class vj extends vn{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,vj.prototype)}},fue=class gj extends vn{constructor(e="InvalidArgument",r=1,n="invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,gj.prototype)}},due=class mj extends vn{constructor(e="NotFound",r=2,n="not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,mj.prototype)}};const hue={0:rue,[-1]:Un,[-2]:nue,[-3]:sue,[-4]:iue,[-5]:uj,[-6]:oue,[-7]:aue,[-8]:cue,[-9]:lue,[-10]:uue,1:fue,2:due};class pue{constructor(e,r=!0){this.onlyRecoverable=r,this.sessions=void 0,this.sessions=new tue(e,fetch)}async loadPresignedConfiguration(e){try{const{updates:r}=await this.sessions.configUpdates({wallet:e.wallet,fromImageHash:e.fromImageHash,allUpdates:e.longestPath});return r.map(({toImageHash:n,signature:s})=>({wallet:e.wallet,nextImageHash:n,signature:s}))}catch(r){if(Kx(r))return[];throw r}}async savePresignedConfiguration(e){const r=e.nextConfig,n=dr.genericCoderFor(r.version).config.imageHashOf(r),s=je.signature.setImageHashStruct(n),i=Ne(s);await this.sessions.saveSignature({wallet:e.wallet,digest:i,chainID:"0",signature:e.signature,toConfig:Sp(r)})}async saveWitnesses(e){let r=e.signatures;this.onlyRecoverable&&(r=r.filter(n=>ye.signer.canRecover(n))),await this.sessions.saveSignerSignatures({wallet:e.wallet,digest:e.digest,chainID:yu(e.chainId),signatures:r})}async configOfImageHash(e){try{const{version:r,config:n}=await this.sessions.config(e);return yue(r,n)}catch(r){if(Kx(r))return;throw r}}async saveWalletConfig(e){const r=Sp(e.config);await this.sessions.saveConfig({version:e.config.version,config:r})}async imageHashOfCounterfactualWallet(e){try{const{deployHash:r,context:n}=await this.sessions.deployHash(e);return{imageHash:r,context:n}}catch(r){if(Kx(r))return;throw r}}async saveCounterfactualWallet(e){const r=Sp(e.config);await this.sessions.saveWallet({version:e.config.version,deployConfig:r})}async walletsOfSigner(e){const{wallets:r}=await this.sessions.wallets(e);return Object.entries(r).map(([n,{digest:s,chainID:i,type:o,signature:a}])=>{switch(o){case qx.EIP712:a+=In(ye.signer.SigType.EIP712).slice(2);break;case qx.EthSign:a+=In(ye.signer.SigType.ETH_SIGN).slice(2);break;case qx.EIP1271:a+=In(ye.signer.SigType.WALLET_BYTES32).slice(2);break}return{wallet:n,proof:{digest:s,signature:a,chainId:BigInt(i)}}})}async getMigration(e,r,n,s){var i=this;const o=yu(s),{migrations:a}=await this.sessions.migrations({wallet:e,fromVersion:n,fromImageHash:r,chainID:o}),c=async function(f){const d=a[f];if(d){const h=Object.keys(d).map(Number).sort((y,p)=>p-y);for(const y of h)for(const[p,b]of Object.entries(d[y]))try{const v=await i.configOfImageHash({imageHash:p});if(v)return{fromVersion:n,toVersion:y,toConfig:v,tx:{entrypoint:b.executor,transactions:b.transactions,nonce:b.nonce,signature:b.signature,chainId:f,intent:{id:ye.transaction.subdigestOfTransactions(e,f,b.nonce,b.transactions),wallet:e}}}}catch(v){console.error(v)}}},l=await c(o);if(l)return l;for(const u in a)if(u!==o){const f=await c(u);if(f)return f}}async saveMigration(e,r,n){await this.sessions.saveMigration({wallet:e,fromVersion:r.fromVersion,toVersion:r.toVersion,toConfig:Sp(r.toConfig),executor:r.tx.entrypoint,transactions:r.tx.transactions.map(vue),nonce:yu(r.tx.nonce),signature:r.tx.signature,chainID:yu(r.tx.chainId)})}}function Sp(t){switch(t.version){case 1:if(Hi.config.ConfigCoder.isWalletConfig(t))return{threshold:wc(t.threshold),signers:t.signers.map(({weight:e,address:r})=>({weight:wc(e),address:r}))};throw new Error(`not a v${t.version} config: ${t}`);case 2:if(je.config.ConfigCoder.isWalletConfig(t))return{threshold:wc(t.threshold),checkpoint:wc(t.checkpoint),tree:fy(t.tree)};throw new Error(`not a v${t.version} config: ${t}`);default:throw new Error(`unknown version ${t.version}`)}}function fy(t){return je.config.isNode(t)?{left:fy(t.left),right:fy(t.right)}:je.config.isSignerLeaf(t)?{weight:wc(t.weight),address:t.address}:je.config.isNestedLeaf(t)?{weight:wc(t.weight),threshold:wc(t.threshold),tree:fy(t.tree)}:je.config.isNodeLeaf(t)?{node:t.nodeHash}:Ma({},t)}function yue(t,e){switch(t){case 1:return Ma({},e,{version:t});case 2:return Ma({},e,{version:t,tree:dy(e.tree)});default:throw new Error(`unknown version ${t}`)}}function dy(t){switch(typeof t){case"object":const e=Ma({},t);return e.left!==void 0&&(e.left=dy(e.left)),e.right!==void 0&&(e.right=dy(e.right)),e.tree!==void 0&&(e.tree=dy(e.tree)),e.node!==void 0&&(e.nodeHash=e.node,delete e.node),e;default:throw new Error(`v2 config tree ${t} is not an object`)}}function vue(t){return{to:t.to,value:t.value!==void 0?yu(t.value):void 0,data:t.data!==void 0?H(t.data):void 0,gasLimit:t.gasLimit!==void 0?yu(t.gasLimit):void 0,delegateCall:t.delegateCall,revertOnError:t.revertOnError}}function wc(t){return Number(t)}function yu(t){return BigInt(t).toString()}function Kx(t){return typeof t=="object"&&t.status===404}var gue=Object.freeze({__proto__:null,RemoteConfigTracker:pue});function W2(t,e,r){return new Promise(n=>{let s=0;t.forEach(i=>i.then(o=>{r(o)?n(o):(s++,s===t.length&&n(e))}).catch(()=>{s++,s===t.length&&n(e)}))})}async function uh(t,e){return Promise.all(t.map(r=>r.catch(()=>e)))}class mue{constructor(e){this.trackers=e}async configOfImageHash(e){const r=this.trackers.map(async function(a,c){return{res:await a.configOfImageHash(e),i:c}}),n=await W2(r,void 0,a=>(a==null?void 0:a.res)===void 0?!1:dr.genericCoderFor(a.res.version).config.isComplete(a.res));if(n!=null&&n.res)return this.saveWalletConfig({config:n.res,skipTracker:n.i}),n.res;const s=new Pk(void 0),i=await uh(r,void 0);for(const a of i)a!=null&&a.res&&await s.saveWalletConfig({config:a.res});const o=await s.configOfImageHash(e);return o&&this.saveWalletConfig({config:o}),o}async saveWalletConfig(e){await Promise.all(this.trackers.map((r,n)=>{if(n!==e.skipTracker)return r.saveWalletConfig(e)}))}async imageHashOfCounterfactualWallet(e){const r=await W2(this.trackers.map(n=>n.imageHashOfCounterfactualWallet(e)),void 0,n=>!!n);return r&&this.configOfImageHash({imageHash:r.imageHash}).then(n=>{n&&this.saveCounterfactualWallet({config:n,context:[r.context]})}),r}async saveCounterfactualWallet(e){await Promise.all(this.trackers.map((r,n)=>{if(n!==e.skipTracker)return r.saveCounterfactualWallet(e)}))}async walletsOfSigner(e){const r=await uh(this.trackers.map(o=>o.walletsOfSigner(e)),[]).then(o=>o.flat()),n={};for(const o of r)n[o.wallet]=o.proof;const s=Object.keys(n).map(o=>({wallet:o,proof:n[o]})),i=new Map;return s.forEach(({wallet:o,proof:{digest:a,chainId:c,signature:l}})=>{const u=`${o}-${a}-${c}`;let f=i.get(u);f||(f={wallet:o,digest:a,chainId:c,signatures:[]},i.set(u,f)),f.signatures.push(l)}),i.forEach(o=>this.saveWitnesses(o)),s}async saveWitnesses(e){await Promise.all(this.trackers.map(r=>r.saveWitnesses(e)))}async loadPresignedConfiguration(e){var r=this;const n=await uh(this.trackers.map(c=>c.loadPresignedConfiguration(e)),[]),i=(await uh(n.map(async function(c){const l=c[c.length-1],u=await r.configOfImageHash({imageHash:l.nextImageHash});if(u)return{checkpoint:dr.genericCoderFor(u.version).config.checkpointOf(u),result:c}}),void 0)).reduce((c,l)=>l&&(!c||l.checkpoint>c.checkpoint)?l:c);if(!i)return[];const o=new Map,a=c=>(o.has(c)||o.set(c,this.configOfImageHash({imageHash:c})),o.get(c));return i.result.forEach(async function(c){const l=await a(c.nextImageHash);l&&r.savePresignedConfiguration({wallet:e.wallet,nextConfig:l,signature:c.signature})}),i.result}async savePresignedConfiguration(e){await Promise.all(this.trackers.map(r=>r.savePresignedConfiguration(e)))}async getMigration(e,r,n,s){return(await Promise.all(this.trackers.map(o=>o.getMigration(e,r,n,s)))).find(o=>!!o)}async saveMigration(e,r,n){await Promise.all(this.trackers.map(s=>s.saveMigration(e,r,n)))}}class xue{constructor(e,r,n){this.tracker=e,this.cache=r,this.contexts=n}async loadPresignedConfiguration(e){var r=this;const n=[this.tracker.loadPresignedConfiguration(e),this.cache.loadPresignedConfiguration(e)];let s;const[i,o]=await Promise.all(n);if(i.length>0&&o.length>0&&i[i.length-1].nextImageHash===o[o.length-1].nextImageHash)s=e.longestPath===!0?i.length>o.length?i:o:i.lengthf&&(!u||f.checkpoint>u.checkpoint)?f:u))==null?void 0:c.result)!=null?a:[]}return s||[]}async savePresignedConfiguration(e){await Promise.all([this.tracker.savePresignedConfiguration(e),this.cache.savePresignedConfiguration(e)])}async configOfImageHash(e){if(e.noCache!==!0){const n=await this.cache.configOfImageHash(e);if(n)return n}const r=await this.tracker.configOfImageHash(e);return r&&await this.cache.saveWalletConfig({config:r}),r}async saveWalletConfig(e){await Promise.all([this.tracker.saveWalletConfig(e),this.cache.saveWalletConfig(e)])}async imageHashOfCounterfactualWallet(e){if(e.noCache!==!0){const n=await this.cache.imageHashOfCounterfactualWallet(e);if(n)return n}const r=await this.tracker.imageHashOfCounterfactualWallet(e);if(r){const n=await this.configOfImageHash({imageHash:r.imageHash});n&&await this.cache.saveCounterfactualWallet({config:n,context:[r.context]})}return r}async saveCounterfactualWallet(e){await Promise.all([this.tracker.saveCounterfactualWallet(e),this.cache.saveCounterfactualWallet(e)])}async walletsOfSigner(e){if(e.noCache)return this.tracker.walletsOfSigner(e);const r=await Promise.all([this.tracker.walletsOfSigner(e),this.cache.walletsOfSigner(e)]),n=new Map;for(const s of r)for(const i of s)n.set(i.wallet,i);return Array.from(n.values())}async saveWitnesses(e){await Promise.all([this.tracker.saveWitnesses(e),this.cache.saveWitnesses(e)])}async getMigration(e,r,n,s){const i=await this.cache.getMigration(e,r,n,s);if(i)return i;const o=await this.tracker.getMigration(e,r,n,s);return o&&await this.cache.saveMigration(e,o,this.contexts),o}async saveMigration(e,r,n){await Promise.all([this.tracker.saveMigration(e,r,n),this.cache.saveMigration(e,r,n)])}}class b3{constructor(){this.cache=void 0,this.cache=new Map}do(e,r,n,...s){e=`${e}:${Qr(JSON.stringify(s,bue))}`;let i=this.cache.get(e);if(i&&i.expiration&&new Date>=i.expiration&&(i=void 0,this.cache.delete(e)),!i){const o={promise:n(...s)};r!==void 0&&(o.promise=o.promise.then(a=>(o.expiration=new Date(Date.now()+r),a))),i=o,this.cache.set(e,i)}return i.promise}}function bue(t,e){return typeof e=="object"&&e!==null&&!Array.isArray(e)?Object.fromEntries(Object.entries(e).sort()):typeof e=="bigint"?e.toString():e}function wue(t){return t instanceof xj}class xj{constructor(e,r=50,n=!1){this.tracker=e,this.window=r,this.verbose=n,this.cache=new b3}invalidateCache(){this.cache=new b3}configOfImageHash(e){return this.cache.do("configOfImageHash",this.window,r=>this.tracker.configOfImageHash(r),e)}getMigration(e,r,n,s){return this.cache.do("getMigration",this.window,(...i)=>this.tracker.getMigration(...i),e,r,n,s)}saveMigration(e,r,n){return this.cache.do("saveMigration",void 0,(...s)=>this.tracker.saveMigration(...s),e,r,n)}loadPresignedConfiguration(e){return this.cache.do("loadPresignedConfiguration",this.window,r=>this.tracker.loadPresignedConfiguration(r),e)}savePresignedConfiguration(e){return this.cache.do("savePresignedConfiguration",void 0,r=>this.tracker.savePresignedConfiguration(r),e)}saveWitnesses(e){return this.cache.do("saveWitnesses",void 0,r=>this.tracker.saveWitnesses(r),e)}saveWalletConfig(e){return this.cache.do("saveWalletConfig",void 0,r=>this.tracker.saveWalletConfig(r),e)}imageHashOfCounterfactualWallet(e){return this.cache.do("imageHashOfCounterfactualWallet",void 0,r=>this.tracker.imageHashOfCounterfactualWallet(r),e)}saveCounterfactualWallet(e){return this.cache.do("saveCounterfactualWallet",void 0,r=>this.tracker.saveCounterfactualWallet(r),e)}walletsOfSigner(e){return this.cache.do("walletsOfSigner",this.window,r=>this.tracker.walletsOfSigner(r),e)}updateProvider(e){this.tracker instanceof Pk&&this.tracker.updateProvider(e)}}var Ik=Object.freeze({__proto__:null,debug:Yle,local:eue,remote:gue,stores:Zle,raceUntil:W2,allSafe:uh,MultipleTracker:mue,CachedTracker:xue,isDedupedTracker:wue,DedupedTracker:xj});const Cue=Object.freeze(Object.defineProperty({__proto__:null,tracker:Qle,trackers:Ik},Symbol.toStringTag,{value:"Module"})),bj=60*60*24*7,Eue=60;class w3{constructor(e,r,n={},s){this.account=e,this.settings=r,this.status=n,this._initialAuthRequest=void 0,this.proofStrings=new Map,this.onAuthCallbacks=[],this.apiClient=void 0,this.metadataClient=void 0,this.indexerClients=new Map,this.projectAccessKey=void 0,this.projectAccessKey=s}now(){return Math.floor(Date.now()/1e3)}get expiration(){var e;return Math.max((e=this.settings.metadata.expiration)!=null?e:bj,120)}onAuth(e){return this.onAuthCallbacks.push(e),()=>this.onAuthCallbacks=this.onAuthCallbacks.filter(r=>r!==e)}async dump(){return this.status.jwt?{jwt:{token:await this.status.jwt.token,expiration:this.status.jwt.expiration},metadata:this.status.metadata}:{metadata:this.settings.metadata}}auth(e=5){var r=this;return this._initialAuthRequest?this._initialAuthRequest:(this._initialAuthRequest=async function(){const n=r.settings.sequenceApiUrl;if(!n)throw Error("No sequence api url");let s;for(let i=1;;i++)try{s=(await r.getJWT(!0)).token;break}catch(o){if(i===e)throw console.error(`couldn't authenticate after ${e} attempts`,o),o}return new ay(n,void 0,s)}(),this._initialAuthRequest)}async getJWT(e){var r=this;const n=this.settings.sequenceApiUrl;if(!n)throw Error("No sequence api url");if(this.status.jwt){const l=this.status.jwt,u=await l.token;if(this.now(){throw this.status.jwt=void 0,l}),expiration:o};return this.status.jwt=a,a.token.then(l=>{this.onAuthCallbacks.forEach(u=>{try{u({status:"fulfilled",value:l})}catch{}})}).catch(l=>{this.onAuthCallbacks.forEach(u=>{try{u({status:"rejected",reason:l})}catch{}})}),{token:await a.token,expiration:o}}getProofStringKey(){return`${this.account.address} - ${this.settings.metadata.name}`}async isProofStringValid(e){try{const r=new gv,n=BigInt(this.settings.sequenceApiChainId),s=Ns(this.account.networks,n);if(!s)throw Error("No network found");r.chainId=Number(n);const i=new ot(s.name,n);return r.provider=new zt(O0(s.rpcUrl,this.projectAccessKey),i,{staticNetwork:i}),await r.decodeProof(e),!0}catch{return!1}}async getAPIClient(e=!0){if(!this.apiClient){const r=this.settings.sequenceApiUrl;if(!r)throw Error("No sequence api url");const n=(await this.getJWT(e)).token;this.apiClient=new ay(r,void 0,n)}return this.apiClient}async getMetadataClient(e=!0){if(!this.metadataClient){const r=(await this.getJWT(e)).token;this.metadataClient=new YL(this.settings.sequenceMetadataUrl,void 0,r)}return this.metadataClient}async getIndexerClient(e,r=!0){const n=Ns(this.account.networks,e);if(!n)throw Error(`No network for chain ${e}`);if(!this.indexerClients.has(n.chainId))if(n.indexer)this.indexerClients.set(n.chainId,n.indexer);else if(n.indexerUrl){const s=(await this.getJWT(r)).token;this.indexerClients.set(n.chainId,new hL(n.indexerUrl,void 0,s))}else throw Error(`No indexer url for chain ${e}`);return this.indexerClients.get(n.chainId)}getProofString(e){if(this.proofStrings.has(e)){const l=this.proofStrings.get(e);if(this.now()(r.signature=l,n.encodeProof(r,!0))).catch(l=>{throw this.proofStrings.delete(e),l}),expiration:a};return this.proofStrings.set(e,c),c}}const wj=async(t,e,r)=>{const n=Te(await t.getAddress());if(!n||n===""||n==="0x")throw Cj;const s=new rk;if(s.address=n,!r||!r.app||r.app==="")throw new Ok("authorization options requires app to be set");s.claims.app=r.app,s.claims.ogn=r.origin,s.claims.n=r.nonce,s.setExpiryIn(r.expiry?Math.max(r.expiry,200):bj);const i=s.messageTypedData(),o=_M(e);s.signature=await(t instanceof Ki?t.signTypedData(i.domain,i.types,i.message,o,"eip6492"):t.signTypedData(i.domain,i.types,i.message,o));const c=await new gv().encodeProof(s,!0);return{typedData:i,proofString:c}};class Ok extends Error{constructor(e){super(e),this.name="AuthError"}}const Cj=new Ok("auth error: account address is empty");function fc(){return fc=Object.assign?Object.assign.bind():function(t){for(var e=1;eF.wallet));let _;if(R){if(f==null||f(R),_=new Ki({address:R,tracker:x,networks:g,contexts:v,orchestrator:p,projectAccessKey:b}),l&&l.length>0){let F=await _.status(S);if(F.original.version!==F.version||_.version!==F.version){const{migratedAllChains:le,failedChains:ee}=await _.isMigratedAllChains();if(ee.some(D=>V2.includes(D)))throw Error(`Failed to fetch account status on ${ee.join(", ")}`);if(!le){if(y&&!await y(_))throw Error("Migration cancelled, cannot open session");const{failedChains:D}=await _.signAllMigrations(h||(Z=>Z));if(D.some(Z=>V2.includes(Z)))throw Error(`Failed to sign migrations on ${D.join(", ")}`);Ik.isDedupedTracker(x)&&x.invalidateCache();let G;if([G,F]=await Promise.all([_.isMigratedAllChains().then(Z=>Z.migratedAllChains),_.status(S)]),!G)throw Error("Failed to migrate account")}}F.onChain.version!==F.version&&await _.doBootstrap(S,void 0,F);const X=F.config,re=_.coders.config.editConfig(X,{add:l,threshold:c});if(_.coders.config.imageHashOf(X)!==_.coders.config.imageHashOf(re)){const le=_.coders.config.editConfig(re,{checkpoint:_.coders.config.checkpointOf(X)+1n});await _.updateConfig(le)}}}else{if(!l||l.length===0)throw Error("Cannot create new account without signers");if(!c)throw Error("Cannot create new account without threshold");if(_=await Ki.new({config:{threshold:c,checkpoint:0,signers:l},tracker:x,contexts:v,orchestrator:p,networks:g,projectAccessKey:b}),f==null||f(_.address),await _.publishWitness(),!(await x.walletsOfSigner({signer:a,noCache:!0})).some(X=>X.wallet===_.address))throw Error("Account not found on tracker")}let V;return k&&(V=new w3(_,k),V.auth(),V.onAuth(F=>{F.status==="fulfilled"&&_.setJwt(F.value)})),new Fh(g,v,_,V)}static async load(e){const{dump:r,settings:n,editConfigOnMigration:s,onMigration:i,orchestrator:o}=e,{contexts:a,networks:c,tracker:l,services:u}=fc({},hy,n);let f;if(Ej(r)){var d,h,y;const k=r.config.address||ye.context.addressOf(a[1],Hi.config.ConfigCoder.imageHashOf(fc({},r.config,{version:1}))),S=((d=(h=r.jwt)==null?void 0:h.expiration)!=null?d:0)I.migratedAllChains)){if(i&&!await i(f))throw Error("Migration cancelled, cannot open session");if(console.log("Migrating account..."),await f.signAllMigrations(s),!await f.isMigratedAllChains().then(I=>I.migratedAllChains))throw Error("Failed to migrate account")}}else if(kj(r)){var p,b,v;const k=((p=(b=r.jwt)==null?void 0:b.expiration)!=null?p:0)async(n,s,i)=>{const o=i.messageDigest();return{isValid:await t(s).isValidSignature(i.address,o,i.signature)}},Aue=Object.freeze(Object.defineProperty({__proto__:null,AuthError:Ok,CRITICAL_CHAINS:V2,ErrAccountIsRequired:Cj,Session:Fh,SessionSettingsDefault:hy,ValidateSequenceWalletProof:kue,isSessionDumpV1:Ej,isSessionDumpV2:kj,signAuthorization:wj},Symbol.toStringTag,{value:"Module"}));function Sv(){return Sv=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),Er({},n,s)).then(i=>kr(i).then(o=>({status:o.status})),i=>{throw cr.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),Er({},n,s)).then(i=>kr(i).then(o=>({version:o.version})),i=>{throw cr.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),Er({},n,s)).then(i=>kr(i).then(o=>({status:o.status})),i=>{throw cr.new({cause:`fetch(): ${i.message||""}`})}),this.getSignerConfig=(n,s,i)=>this.fetch(this.url("GetSignerConfig"),Er(n,s,i)).then(o=>kr(o).then(a=>({signerConfig:a.signerConfig})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.sign=(n,s,i)=>this.fetch(this.url("Sign"),Er(n,s,i)).then(o=>kr(o).then(a=>({sig:a.sig})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.signWith=(n,s,i)=>this.fetch(this.url("SignWith"),Er(n,s,i)).then(o=>kr(o).then(a=>({sig:a.sig})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.patch=(n,s,i)=>this.fetch(this.url("Patch"),Er(n,s,i)).then(o=>kr(o).then(a=>({txs:a.txs})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.authMethods=(n,s,i)=>this.fetch(this.url("AuthMethods"),Er(n,s,i)).then(o=>kr(o).then(a=>({methods:a.methods,active:a.active})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.setPIN=(n,s,i)=>this.fetch(this.url("SetPIN"),Er(n,s,i)).then(o=>kr(o).then(a=>({})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.resetPIN=(n,s,i)=>this.fetch(this.url("ResetPIN"),Er(n,s,i)).then(o=>kr(o).then(a=>({})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.createTOTP=(n,s,i)=>this.fetch(this.url("CreateTOTP"),Er(n,s,i)).then(o=>kr(o).then(a=>({uri:a.uri})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.commitTOTP=(n,s,i)=>this.fetch(this.url("CommitTOTP"),Er(n,s,i)).then(o=>kr(o).then(a=>({codes:a.codes})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.resetTOTP=(n,s,i)=>this.fetch(this.url("ResetTOTP"),Er(n,s,i)).then(o=>kr(o).then(a=>({})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.reset2FA=(n,s,i)=>this.fetch(this.url("Reset2FA"),Er(n,s,i)).then(o=>kr(o).then(a=>({})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.recoveryCodes=(n,s,i)=>this.fetch(this.url("RecoveryCodes"),Er(n,s,i)).then(o=>kr(o).then(a=>({codes:a.codes})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.resetRecoveryCodes=(n,s,i)=>this.fetch(this.url("ResetRecoveryCodes"),Er(n,s,i)).then(o=>kr(o).then(a=>({codes:a.codes})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const Er=(t={},e={},r=null)=>({method:"POST",headers:Sv({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),kr=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),Nj.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(Fue[n]||Ft).new(r)}return r});let Ft=class Sj extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,Sj.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},Sue=class Tj extends Ft{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Tj.prototype)}},cr=class Pj extends Ft{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Pj.prototype)}},Tue=class Ij extends Ft{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Ij.prototype)}},Pue=class Oj extends Ft{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Oj.prototype)}},Iue=class Rj extends Ft{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Rj.prototype)}},Nj=class _j extends Ft{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,_j.prototype)}},Oue=class Mj extends Ft{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Mj.prototype)}},Rue=class Dj extends Ft{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Dj.prototype)}},Nue=class Bj extends Ft{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Bj.prototype)}},_ue=class Lj extends Ft{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Lj.prototype)}},Mue=class jj extends Ft{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,jj.prototype)}},Due=class Fj extends Ft{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Fj.prototype)}},Bue=class Uj extends Ft{constructor(e="SessionExpired",r=1002,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Uj.prototype)}};class Rk extends Ft{constructor(e="Aborted",r=1005,n="Request aborted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Rk.prototype)}}class Nk extends Ft{constructor(e="InvalidArgument",r=2001,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Nk.prototype)}}class _k extends Ft{constructor(e="Unavailable",r=2002,n="Unavailable resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,_k.prototype)}}let Lue=class $j extends Ft{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,$j.prototype)}};class Mk extends Ft{constructor(e="ValidationFailed",r=2004,n="Validation Failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Mk.prototype)}}let jue=class Wj extends Ft{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Wj.prototype)}};const Fue={0:Sue,[-1]:cr,[-2]:Tue,[-3]:Pue,[-4]:Iue,[-5]:Nj,[-6]:Oue,[-7]:Rue,[-8]:Nue,[-9]:_ue,[-10]:Mue,1e3:Due,1002:Bue,1005:Rk,2001:Nk,2002:_k,2003:Lue,2004:Mk,3e3:jue},Uue=globalThis.fetch;class $ue{constructor(e,r,n=!1){this.address=e,this.url=r,this.appendSuffix=n,this.guard=void 0,this.guard=new Aj(r,Uue)}async getAddress(){return this.address}async buildDeployTransaction(e){}async predecorateSignedTransactions(e){return[]}async decorateTransactions(e,r){return e}async sign(e,r){var n;if(!ye.isWalletSignRequestMetadata(r))throw new Error("expected sequence signature request metadata");const s=r.guardTotpCode,i=dr.genericCoderFor(r.config.version),{encoded:o}=i.signature.encodeSigners(r.config,(n=r.parts)!=null?n:new Map,[],r.chainId);return(await this.guard.signWith({signer:this.address,request:{msg:H(e),auxData:this.packMsgAndSig(r.address,r.digest,o,r.chainId),chainId:Number(r.chainId)},token:s?{id:Tv.TOTP,token:s}:void 0})).sig}notifyStatusChange(e,r,n){}async getAuthMethods(e){let r;if("jwt"in e)r=await this.guard.authMethods({},{Authorization:`BEARER ${e.jwt}`});else{const n=await H2(e);r=await this.guard.authMethods({proof:{wallet:n.walletAddress,timestamp:n.timestamp.getTime(),signer:n.signerAddress,signature:n.signature}})}return Sv({},r,{methods:r.methods.map(Wue)})}async setPin(e,r){const n=await Hd(r);e===void 0?await this.guard.resetPIN({timestamp:n.timestamp.getTime(),signature:n.signature},{Authorization:`BEARER ${r.jwt}`}):await this.guard.setPIN({pin:e,timestamp:n.timestamp.getTime(),signature:n.signature},{Authorization:`BEARER ${r.jwt}`})}resetPin(e){return this.setPin(void 0,e)}async createTotp(e){const r=await Hd(e),{uri:n}=await this.guard.createTOTP({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`});return new URL(n)}async commitTotp(e,r){const{codes:n}=await this.guard.commitTOTP({token:e},{Authorization:`BEARER ${r}`});return n}async resetTotp(e){const r=await Hd(e);await this.guard.resetTOTP({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`})}async reset2fa(e,r){if("jwt"in r)await this.guard.reset2FA({code:e},{Authorization:`BEARER ${r.jwt}`});else{const n=await H2(r);await this.guard.reset2FA({code:e,proof:{wallet:n.walletAddress,timestamp:n.timestamp.getTime(),signer:n.signerAddress,signature:n.signature}})}}async getRecoveryCodes(e){const r=await Hd(e),{codes:n}=await this.guard.recoveryCodes({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`});return n}async resetRecoveryCodes(e){const r=await Hd(e),{codes:n}=await this.guard.resetRecoveryCodes({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`});return n}packMsgAndSig(e,r,n,s){return Kt.defaultAbiCoder().encode(["address","uint256","bytes","bytes"],[e,s,r,n])}suffix(){return new Uint8Array(this.appendSuffix?[3]:[])}}let Tv=function(t){return t.PIN="PIN",t.TOTP="TOTP",t}({});function Wue(t){switch(t){case Tv.PIN:case Tv.TOTP:return t;default:throw new Error(`unknown auth method '${t}'`)}}function Vj(t){return"signerAddress"in t&&typeof t.signerAddress=="string"}async function H2(t){if(Vj(t))return t;{const e=j2.isSapientSigner(t.signer)?t.signer:new j2.SignerWrapper(t.signer),r=await e.getAddress(),n=new Date,s=Hj(t.walletAddress,n),i=kd(s);return{walletAddress:t.walletAddress,timestamp:n,signerAddress:r,signature:H(await e.sign(i,{}))}}}async function Hd(t){if("wallet"in t){var e;const r=new Date,n=zj(r),s=await t.wallet.signTypedData(n.domain,n.types,n.message,(e=n.domain.chainId)!=null?e:1,"eip6492");return{jwt:t.jwt,timestamp:r,signature:s}}else return t}function Hj(t,e){return{domain:Gj,types:{AuthMethods:[{name:"wallet",type:"address"},{name:"timestamp",type:"string"}]},message:{wallet:Te(t),timestamp:qj(e)}}}function zj(t){return{domain:Gj,types:{AuthUpdate:[{name:"timestamp",type:"string"}]},message:{timestamp:qj(t)}}}const Gj={name:"Sequence Guard",version:"1",chainId:1};function qj(t){return t.toUTCString().replace("GMT","UTC")}const Vue=Object.freeze(Object.defineProperty({__proto__:null,AuthMethod:Tv,Guard:Aj,GuardSigner:$ue,getAuthUpdateProofTypedData:zj,getOwnershipProofTypedData:Hj,isSignedOwnershipProof:Vj,signOwnershipProof:H2},Symbol.toStringTag,{value:"Module"}));var Kj={exports:{}};/*! * EventEmitter2 * https://github.com/hij1nx/EventEmitter2 * * Copyright (c) 2013 hij1nx * Licensed under the MIT license. - */(function(t,e){(function(r){var n=Object.hasOwnProperty,s=Array.isArray?Array.isArray:function(A){return Object.prototype.toString.call(A)==="[object Array]"},i=10,o=typeof process=="object"&&typeof process.nextTick=="function",a=typeof Symbol=="function",c=typeof Reflect=="object",l=typeof setImmediate=="function",u=l?setImmediate:setTimeout,f=a?c&&typeof Reflect.ownKeys=="function"?Reflect.ownKeys:function(C){var A=Object.getOwnPropertyNames(C);return A.push.apply(A,Object.getOwnPropertySymbols(C)),A}:Object.keys;function d(){this._events={},this._conf&&h.call(this,this._conf)}function h(C){C&&(this._conf=C,C.delimiter&&(this.delimiter=C.delimiter),C.maxListeners!==r&&(this._maxListeners=C.maxListeners),C.wildcard&&(this.wildcard=C.wildcard),C.newListener&&(this._newListener=C.newListener),C.removeListener&&(this._removeListener=C.removeListener),C.verboseMemoryLeak&&(this.verboseMemoryLeak=C.verboseMemoryLeak),C.ignoreErrors&&(this.ignoreErrors=C.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function y(C,A){var O="(node) warning: possible EventEmitter memory leak detected. "+C+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(O+=" Event name: "+A+"."),typeof process<"u"&&process.emitWarning){var M=new Error(O);M.name="MaxListenersExceededWarning",M.emitter=this,M.count=C,process.emitWarning(M)}else console.error(O),console.trace&&console.trace()}var p=function(C,A,O){var M=arguments.length;switch(M){case 0:return[];case 1:return[C];case 2:return[C,A];case 3:return[C,A,O];default:for(var B=new Array(M);M--;)B[M]=arguments[M];return B}};function b(C,A){for(var O={},M,B=C.length,W=0,q=0;q0;)C=W[J],q.call(te,C,O[C]);this._listeners={},this._listenersCount=0,$()}}});function g(C,A,O,M){var B=Object.assign({},A);if(!C)return B;if(typeof C!="object")throw TypeError("options must be an object");var W=Object.keys(C),q=W.length,te,J,$;function K(de){throw Error('Invalid "'+te+'" option value'+(de?". Reason: "+de:""))}for(var ue=0;ue0;)if(te===C[J])return W;q(A)}}var S=k(["function"]),I=k(["object","function"]);function R(C,A,O){var M,B,W=0,q,te=new C(function(J,$,K){O=g(O,{timeout:0,overload:!1},{timeout:function(Ce,Re){return Ce*=1,(typeof Ce!="number"||Ce<0||!Number.isFinite(Ce))&&Re("timeout must be a positive number"),Ce}}),M=!O.overload&&typeof C.prototype.cancel=="function"&&typeof K=="function";function ue(){B&&(B=null),W&&(clearTimeout(W),W=0)}var de=function(Ce){ue(),J(Ce)},oe=function(Ce){ue(),$(Ce)};M?A(de,oe,K):(B=[function(Ce){oe(Ce||Error("canceled"))}],A(de,oe,function(Ce){if(q)throw Error("Unable to subscribe on cancel event asynchronously");if(typeof Ce!="function")throw TypeError("onCancel callback must be a function");B.push(Ce)}),q=!0),O.timeout>0&&(W=setTimeout(function(){var Ce=Error("timeout");Ce.code="ETIMEDOUT",W=0,te.cancel(Ce),$(Ce)},O.timeout))});return M||(te.cancel=function(J){if(B){for(var $=B.length,K=1;K<$;K++)B[K](J);B[0](J),B=null}}),te}function _(C){var A=this._observers;if(!A)return-1;for(var O=A.length,M=0;M0;)oe=se[te],oe!=="_listeners"&&(ae=V(C,A,O[oe],M+1,B),ae&&(de?de.push.apply(de,ae):de=ae));return de}else if(br==="**"){for(tn=M+1===B||M+2===B&&U==="*",tn&&O._listeners&&(de=V(C,A,O,B,B)),se=f(O),te=se.length;te-- >0;)oe=se[te],oe!=="_listeners"&&(oe==="*"||oe==="**"?(O[oe]._listeners&&!tn&&(ae=V(C,A,O[oe],B,B),ae&&(de?de.push.apply(de,ae):de=ae)),ae=V(C,A,O[oe],M,B)):oe===U?ae=V(C,A,O[oe],M+2,B):ae=V(C,A,O[oe],M,B),ae&&(de?de.push.apply(de,ae):de=ae));return de}else O[br]&&(de=V(C,A,O[br],M+1,B));if(Ce=O["*"],Ce&&V(C,A,Ce,M+1,B),Re=O["**"],Re)if(M0;)oe=se[te],oe!=="_listeners"&&(oe===U?V(C,A,Re[oe],M+2,B):oe===br?V(C,A,Re[oe],M+1,B):(xt={},xt[oe]=Re[oe],V(C,A,{"**":xt},M+1,B)));else Re._listeners?V(C,A,Re,B,B):Re["*"]&&Re["*"]._listeners&&V(C,A,Re["*"],B,B);return de}function F(C,A,O){var M=0,B=0,W,q=this.delimiter,te=q.length,J;if(typeof C=="string")if((W=C.indexOf(q))!==-1){J=new Array(5);do J[M++]=C.slice(B,W),B=W+te;while((W=C.indexOf(q,B))!==-1);J[M++]=C.slice(B)}else J=[C],M=1;else J=C,M=C.length;if(M>1){for(W=0;W+10&&$._listeners.length>this._maxListeners&&($._listeners.warned=!0,y.call(this,$._listeners.length,K))):$._listeners=A,!0;return!0}function X(C,A,O,M){for(var B=f(C),W=B.length,q,te,J,$=C._listeners,K;W-- >0;)te=B[W],q=C[te],te==="_listeners"?J=O:J=O?O.concat(te):[te],K=M||typeof te=="symbol",$&&A.push(K?J:J.join(this.delimiter)),typeof q=="object"&&X.call(this,q,A,J,K);return A}function re(C){for(var A=f(C),O=A.length,M,B,W;O-- >0;)B=A[O],M=C[B],M&&(W=!0,B!=="_listeners"&&!re(M)&&delete C[B]);return W}function le(C,A,O){this.emitter=C,this.event=A,this.listener=O}le.prototype.off=function(){return this.emitter.off(this.event,this.listener),this};function ee(C,A,O){if(O===!0)B=!0;else if(O===!1)M=!0;else{if(!O||typeof O!="object")throw TypeError("options should be an object or true");var M=O.async,B=O.promisify,W=O.nextTick,q=O.objectify}if(M||W||B){var te=A,J=A._origin||A;if(W&&!o)throw Error("process.nextTick is not supported");B===r&&(B=A.constructor.name==="AsyncFunction"),A=function(){var $=arguments,K=this,ue=this.event;return B?W?Promise.resolve():new Promise(function(de){u(de)}).then(function(){return K.event=ue,te.apply(K,$)}):(W?process.nextTick:u)(function(){K.event=ue,te.apply(K,$)})},A._async=!0,A._origin=J}return[A,q?new le(this,C,A):this]}function D(C){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,h.call(this,C)}D.EventEmitter2=D,D.prototype.listenTo=function(C,A,O){if(typeof C!="object")throw TypeError("target musts be an object");var M=this;O=g(O,{on:r,off:r,reducers:r},{on:S,off:S,reducers:I});function B(W){if(typeof W!="object")throw TypeError("events must be an object");var q=O.reducers,te=_.call(M,C),J;te===-1?J=new v(M,C,O):J=M._observers[te];for(var $=f(W),K=$.length,ue,de=typeof q=="function",oe=0;oe0;)B=O[M],(!C||B._target===C)&&(B.unsubscribe(A),W=!0);return W},D.prototype.delimiter=".",D.prototype.setMaxListeners=function(C){C!==r&&(this._maxListeners=C,this._conf||(this._conf={}),this._conf.maxListeners=C)},D.prototype.getMaxListeners=function(){return this._maxListeners},D.prototype.event="",D.prototype.once=function(C,A,O){return this._once(C,A,!1,O)},D.prototype.prependOnceListener=function(C,A,O){return this._once(C,A,!0,O)},D.prototype._once=function(C,A,O,M){return this._many(C,1,A,O,M)},D.prototype.many=function(C,A,O,M){return this._many(C,A,O,!1,M)},D.prototype.prependMany=function(C,A,O,M){return this._many(C,A,O,!0,M)},D.prototype._many=function(C,A,O,M,B){var W=this;if(typeof O!="function")throw new Error("many only accepts instances of Function");function q(){return--A===0&&W.off(C,q),O.apply(this,arguments)}return q._origin=O,this._on(C,q,M,B)},D.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||d.call(this);var C=arguments[0],A,O=this.wildcard,M,B,W,q,te;if(C==="newListener"&&!this._newListener&&!this._events.newListener)return!1;if(O&&(A=C,C!=="newListener"&&C!=="removeListener"&&typeof C=="object")){if(B=C.length,a){for(W=0;W3)for(M=new Array(J-1),q=1;q3)for(B=new Array($-1),te=1;te<$;te++)B[te-1]=arguments[te];for(q=0,W=K.length;q0&&this._events[C].length>this._maxListeners&&(this._events[C].warned=!0,y.call(this,this._events[C].length,C))):this._events[C]=A,B)},D.prototype.off=function(C,A){if(typeof A!="function")throw new Error("removeListener only takes instances of Function");var O,M=[];if(this.wildcard){var B=typeof C=="string"?C.split(this.delimiter):C.slice();if(M=V.call(this,null,B,this.listenerTree,0),!M)return this}else{if(!this._events[C])return this;O=this._events[C],M.push({_listeners:O})}for(var W=0;W0){for(M=this._all,A=0,O=M.length;A0;)M=A[O[W]],typeof M=="function"?B.push(M):B.push.apply(B,M);return B}else{if(this.wildcard){if(q=this.listenerTree,!q)return[];var te=[],J=typeof C=="string"?C.split(this.delimiter):C.slice();return V.call(this,te,J,q,0),te}return A?(M=A[C],M?typeof M=="function"?[M]:M:[]):[]}},D.prototype.eventNames=function(C){var A=this._events;return this.wildcard?X.call(this,this.listenerTree,[],null,C):A?f(A):[]},D.prototype.listenerCount=function(C){return this.listeners(C).length},D.prototype.hasListeners=function(C){if(this.wildcard){var A=[],O=typeof C=="string"?C.split(this.delimiter):C.slice();return V.call(this,A,O,this.listenerTree,0),A.length>0}var M=this._events,B=this._all;return!!(B&&B.length||M&&(C===r?f(M).length:M[C]))},D.prototype.listenersAny=function(){return this._all?this._all:[]},D.prototype.waitFor=function(C,A){var O=this,M=typeof A;return M==="number"?A={timeout:A}:M==="function"&&(A={filter:A}),A=g(A,{timeout:0,filter:r,handleError:!1,Promise,overload:!1},{filter:S,Promise:x}),R(A.Promise,function(B,W,q){function te(){var J=A.filter;if(!(J&&!J.apply(O,arguments)))if(O.off(C,te),A.handleError){var $=arguments[0];$?W($):B(p.apply(null,arguments).slice(1))}else B(p.apply(null,arguments))}q(function(){O.off(C,te)}),O._on(C,te,!1)},{timeout:A.timeout,overload:A.overload})};function G(C,A,O){O=g(O,{Promise,timeout:0,overload:!1},{Promise:x});var M=O.Promise;return R(M,function(B,W,q){var te;if(typeof C.addEventListener=="function"){te=function(){B(p.apply(null,arguments))},q(function(){C.removeEventListener(A,te)}),C.addEventListener(A,te,{once:!0});return}var J=function(){$&&C.removeListener("error",$),B(p.apply(null,arguments))},$;A!=="error"&&($=function(K){C.removeListener(A,J),W(K)},C.once("error",$)),q(function(){$&&C.removeListener("error",$),C.removeListener(A,J)}),C.once(A,J)},{timeout:O.timeout,overload:O.overload})}var Z=D.prototype;Object.defineProperties(D,{defaultMaxListeners:{get:function(){return Z._maxListeners},set:function(C){if(typeof C!="number"||C<0||Number.isNaN(C))throw TypeError("n must be a non-negative number");Z._maxListeners=C},enumerable:!0},once:{value:G,writable:!0,configurable:!0}}),Object.defineProperties(Z,{_maxListeners:{value:i,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),t.exports=D})()})(Gj);var fm=Gj.exports;function Wue(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function _k(t,...e){if(!Wue(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`)}function b3(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function Vue(t,e){_k(t);const r=e.outputLen;if(t.lengthnew DataView(t.buffer,t.byteOffset,t.byteLength),Ws=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];const Hue=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function zue(t){_k(t);let e="";for(let r=0;rt().update(qj(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function Que(t,e,r,n){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,r,n);const s=BigInt(32),i=BigInt(4294967295),o=Number(r>>s&i),a=Number(r&i),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}const Jue=(t,e,r)=>t&e^~t&r,Yue=(t,e,r)=>t&e^t&r^e&r;class Xue extends que{constructor(e,r,n,s){super(),this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=s,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=qx(this.buffer)}update(e){b3(this);const{view:r,buffer:n,blockLen:s}=this;e=qj(e);const i=e.length;for(let o=0;os-o&&(this.process(n,0),o=0);for(let f=o;fu.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;f>>3,p=Ws(h,17)^Ws(h,19)^h>>>10;So[f]=p+So[f-7]+y+So[f-16]|0}let{A:n,B:s,C:i,D:o,E:a,F:c,G:l,H:u}=this;for(let f=0;f<64;f++){const d=Ws(a,6)^Ws(a,11)^Ws(a,25),h=u+d+Jue(a,c,l)+Zue[f]+So[f]|0,p=(Ws(n,2)^Ws(n,13)^Ws(n,22))+Yue(n,s,i)|0;u=l,l=c,c=a,a=o+h|0,o=i,i=s,s=n,n=h+p|0}n=n+this.A|0,s=s+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(n,s,i,o,a,c,l,u)}roundClean(){So.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const tfe=Kue(()=>new efe);var rfe=class{constructor(t,e){N(this,"hostname");N(this,"fetch");N(this,"path","/rpc/Databeat/");N(this,"ping",(t,e)=>this.fetch(this.url("Ping"),Hd({},t,e)).then(r=>zd(r).then(n=>({status:n.status})),r=>{throw Ql.new({cause:`fetch(): ${r.message||""}`})}));N(this,"version",(t,e)=>this.fetch(this.url("Version"),Hd({},t,e)).then(r=>zd(r).then(n=>({version:n.version})),r=>{throw Ql.new({cause:`fetch(): ${r.message||""}`})}));N(this,"runtimeStatus",(t,e)=>this.fetch(this.url("RuntimeStatus"),Hd({},t,e)).then(r=>zd(r).then(n=>({status:n.status})),r=>{throw Ql.new({cause:`fetch(): ${r.message||""}`})}));N(this,"tick",(t,e,r)=>this.fetch(this.url("Tick"),Hd(t,e,r)).then(n=>zd(n).then(s=>({ok:s.ok})),n=>{throw Ql.new({cause:`fetch(): ${n.message||""}`})}));N(this,"rawEvents",(t,e,r)=>this.fetch(this.url("RawEvents"),Hd(t,e,r)).then(n=>zd(n).then(s=>({ok:s.ok})),n=>{throw Ql.new({cause:`fetch(): ${n.message||""}`})}));this.hostname=t,this.fetch=(r,n)=>e(r,n)}url(t){return this.hostname+this.path+t}},Hd=(t={},e={},r=null)=>({method:"POST",headers:{...e,"Content-Type":"application/json"},body:JSON.stringify(t||{}),signal:r}),zd=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),eF.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(xfe[n]||Qt).new(r)}return r}),Qt=class Kj extends Error{constructor(r,n,s,i,o){super(s);N(this,"name");N(this,"code");N(this,"message");N(this,"status");N(this,"cause");N(this,"msg");this.name=r||"WebrpcError",this.code=typeof n=="number"?n:0,this.message=s||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof i=="number"?i:0,this.cause=o,Object.setPrototypeOf(this,Kj.prototype)}static new(r){return new this(r.error,r.code,r.message||r.msg,r.status,r.cause)}},nfe=class Qj extends Qt{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Qj.prototype)}},Ql=class Jj extends Qt{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Jj.prototype)}},sfe=class Yj extends Qt{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Yj.prototype)}},ife=class Xj extends Qt{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Xj.prototype)}},ofe=class Zj extends Qt{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Zj.prototype)}},eF=class tF extends Qt{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,tF.prototype)}},afe=class rF extends Qt{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,rF.prototype)}},cfe=class nF extends Qt{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,nF.prototype)}},lfe=class sF extends Qt{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,sF.prototype)}},ufe=class iF extends Qt{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,iF.prototype)}},ffe=class oF extends Qt{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,oF.prototype)}},dfe=class aF extends Qt{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,aF.prototype)}},hfe=class cF extends Qt{constructor(e="PermissionDenied",r=2e3,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,cF.prototype)}},pfe=class lF extends Qt{constructor(e="SessionExpired",r=2001,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lF.prototype)}},yfe=class uF extends Qt{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,uF.prototype)}},vfe=class fF extends Qt{constructor(e="InvalidAppKey",r=4e3,n="Invalid app key",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,fF.prototype)}},gfe=class dF extends Qt{constructor(e="QueryFailed",r=4001,n="DB query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,dF.prototype)}},mfe=class hF extends Qt{constructor(e="InvalidProjectId",r=4002,n="Invalid project id",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,hF.prototype)}},xfe={0:nfe,[-1]:Ql,[-2]:sfe,[-3]:ife,[-4]:ofe,[-5]:eF,[-6]:afe,[-7]:cfe,[-8]:lfe,[-9]:ufe,[-10]:ffe,1e3:dfe,2e3:hfe,2001:pfe,3e3:yfe,4e3:vfe,4001:gfe,4002:mfe},bfe=class extends rfe{constructor(e,r){const n=typeof global=="object"?global.fetch.bind(global):window.fetch.bind(window);super(e.endsWith("/")?e.slice(0,-1):e,n);N(this,"_globalFetch");N(this,"_fetch",(e,r)=>{var n;if(this.auth){let s={};((n=this.auth.jwt)==null?void 0:n.length)>0&&(s.Authorization=`BEARER ${this.auth.jwt}`),this.auth.headers&&(s={...s,...this.auth.headers}),r.headers={...r.headers,...s}}return this._globalFetch(e,r)});this.auth=r,this._globalFetch=n,this.fetch=this._fetch}},w3=150,Xa={defaultEnabled:!0,noop:!1,privacy:{userIdHash:!0,userAgentSalt:!1},userIdentTracking:!1,strictMode:!1,flushInterval:500,initProps:()=>({})},wfe=class{constructor(t,e,r){N(this,"rpc");N(this,"auth");N(this,"options");N(this,"enabled");N(this,"ident");N(this,"userId");N(this,"sessionId");N(this,"allowUserTracking");N(this,"projectId");N(this,"queue");N(this,"flushTimeout");N(this,"defaultProps");N(this,"previousPageKey");N(this,"ts");N(this,"flush",async()=>{if(this.flushTimeout!==null&&(clearTimeout(this.flushTimeout),this.flushTimeout=null),!this.enabled||this.options.noop||this.options.strictMode&&!this.allowUserTracking||this.queue.length===0)return;const t=this.dedupedQueue();this.queue=[];try{await this.rpc.tick({events:t})}catch(e){console.warn(`databeat flush failed: ${e}`)}});N(this,"dedupedQueue",()=>{const t=new Map;for(let e=0;ew3&&(this.queue=this.queue.splice(this.queue.length-w3)),this.enabled&&(e&&e.flush?await this.flush():this.flushTimeout===null&&(this.flushTimeout=setTimeout(()=>{this.flush()},this.options.flushInterval)))}trackView(t={}){const e={...this.defaultProps,...t},r=E3(),n=`${r}:${JSON.stringify(e)}:${this.userId}:${this.sessionId}`;this.previousPageKey!==n&&(this.previousPageKey=n,this.track({event:"VIEW",source:r,props:e}))}isEnabled(){return this.enabled}isAnon(){return this.ident===0}getIdent(){return this.ident}getUserId(){return this.userId}getSessionId(){return this.sessionId}getStorageTS(){if(this.ts)return this.ts;const t=V2();if(!(t==null||t.id===null))return this.ts=t.ts,this.ts}enable(){if(!pF(this.auth)){this.enabled=!1;return}Ki()&&(this.enabled=!0,this.ts=Wl({on:this.enabled,id:this.userId,it:this.ident,ut:this.allowUserTracking}),this.identify())}disable(){Ki()&&(this.enabled=!1,this.ts=Wl({on:this.enabled,id:this.userId,it:this.ident,ut:this.allowUserTracking}))}},Ki=()=>typeof window=="object"&&typeof window.localStorage=="object"&&typeof window.localStorage.getItem=="function"&&typeof window.localStorage.setItem=="function",C3=(t,e)=>{if(!pF(e))return!1;if(!Ki())return!0;const r=V2();return r===null?t??!0:r.on},pF=t=>{var e;return!!(((e=t==null?void 0:t.jwt)==null?void 0:e.length)>0||t!=null&&t.headers&&Object.keys(t.headers).length>0)},E3=()=>{try{return window.location.pathname}catch{return""}},Cfe=()=>{if(!Ki())return{};const t=new URL(window.location.href).searchParams,e={};return e.origin=window.location.origin,t.get("ref")&&t.get("ref")!==""&&(e.ref=t.get("ref")||""),t.get("source")&&t.get("source")!==""&&(e.source=t.get("source")||""),t.get("utm_source")&&t.get("utm_source")!==""&&(e.utmSource=t.get("utm_source")||""),t.get("utm_campaign")&&t.get("utm_campaign")!==""&&(e.utmCampaign=t.get("utm_campaign")||""),t.get("utm_medium")&&t.get("utm_medium")!==""&&(e.utmMedium=t.get("utm_medium")||""),t.get("utm_content")&&t.get("utm_content")!==""&&(e.utmContent=t.get("utm_content")||""),t.get("utm_term")&&t.get("utm_term")!==""&&(e.utmTerm=t.get("utm_term")||""),document.referrer&&document.referrer!==""&&(e.referrer=document.referrer),t.get("gclid")&&t.get("gclid")!==""&&(e.gclid=t.get("gclid")||""),e},Tv="_dbeat",V2=()=>{try{return JSON.parse(window.localStorage.getItem(Tv))}catch{return null}},Wl=t=>{try{return t.ts||(t.ts=Math.floor(Date.now()/1e3)),window.localStorage.setItem(Tv,JSON.stringify(t)),t.ts}catch{return}},Efe=(t,e,r)=>{if(!t||t===null||t==="")return{userId:`${Math.floor(Math.random()*1e14)}`,ident:0};if(r.userIdentTracking&&e)return{userId:t,ident:2};if(r.privacy.userIdHash===!0||!r.userIdentTracking||!e)return Ki()&&r.privacy.userAgentSalt===!0&&(t=t+":"+navigator.userAgent),r.privacy.extraSalt&&r.privacy.extraSalt.length>0&&(t=t+":"+r.privacy.extraSalt),{userId:zue(tfe(t)).substring(0,50),ident:1};throw new Error("invalid configuration")},kfe=()=>{if(Ki()&&typeof window.sessionStorage=="object"&&typeof window.sessionStorage.getItem=="function"&&typeof window.sessionStorage.setItem=="function"){const e=window.sessionStorage.getItem(Tv);if(e&&e.length>0)return e;{const r=k3(16);return window.sessionStorage.setItem(Tv,r),r}}else return k3(16)},k3=t=>{let e="";for(let r=0;r[Kr(t).slice(0,10),t]));function H2(t,e){const r=ye.transaction.fromTransactionish(t,e);ye.transaction.unwind(t,r).forEach(s=>Sfe(t,s))}function Sfe(t,e){if(e.to.toLowerCase()===t.toLowerCase()&&e.data){const r=Q(e.data);if(r.length>=4&&!Tfe(r))throw new Error("self calls are forbidden")}if(e.delegateCall)throw new Error("delegate calls are forbidden");if(e.data){const n=H(e.data).slice(0,10),s=Afe.get(n);if(s){const i=s.slice(0,s.indexOf("("));throw new Error(`${i} calls are forbidden`)}}}function Tfe(t){const e=new pt(Gt.mainModule.abi);try{return e.decodeFunctionData("createContract",t),!0}catch{return!1}}function er(){return er=Object.assign?Object.assign.bind():function(t){for(var e=1;e++Pfe;class O1{constructor(){var e=this;this.pendingMessageRequests=[],this.responseCallbacks=new Map,this.state=void 0,this.confirmationOnly=!1,this.events=new fm.EventEmitter2,this.openPayload=void 0,this.connectPayload=void 0,this.accountsChangedPayload=void 0,this.networksPayload=void 0,this.walletContextPayload=void 0,this._sessionId=void 0,this._init=void 0,this._registered=void 0,this.sendMessageRequest=async function(r){return new Promise((n,s)=>{(!r.idx||r.idx<=0)&&r.type!=="init"&&s(new Error("message idx not set"));const i=(a,c)=>{if(a)s(a);else if(c)n(c);else throw new Error("no valid response to return")},o=r.idx;e.responseCallbacks.get(o)?s(new Error("duplicate message idx, should never happen")):e.responseCallbacks.set(o,i),e.isOpened()?e.sendMessage(r):(Se.debug("pushing to pending requests",r),e.pendingMessageRequests.push(r))})},this.waitUntilOpened=async function(r=Mk){let n=!1;return Promise.race([new Promise((s,i)=>{const o=setTimeout(()=>{clearTimeout(o),n||(e.state=Kn.CLOSED,e.events.emit("close",{code:1005,message:"opening wallet timed out"})),i(new Error("opening wallet timed out"))},r)}),new Promise(s=>{if(e.isOpened()){var i;n=!0,s((i=e.openPayload)==null?void 0:i.session);return}e.events.once("open",o=>{e.openPayload=o,n=!0,s(o.session)})})])},this.waitUntilConnected=async function(){await e.waitUntilOpened();const r=new Promise(s=>{if(e.connectPayload){s(e.connectPayload);return}e.events.once("connect",i=>{e.connectPayload=i,s(i)})}),n=new Promise((s,i)=>{e.events.once("close",o=>{i(o?new Error(`wallet closed due to ${JSON.stringify(o)}`):new Error("user closed the wallet"))})});return Promise.race([r,n])},this.state=Kn.CLOSED,this._registered=!1,this._init=dt.NIL}get registered(){return this._registered}register(){throw new Error("abstract method")}unregister(){throw new Error("abstract method")}openWallet(e,r,n){throw new Error("abstract method")}closeWallet(){throw new Error("abstract method")}isOpened(){return this.registered&&this.state===Kn.OPENED}isConnected(){var e;const r=(e=this.openPayload)==null?void 0:e.session;return this.registered&&r!==void 0&&!!r.accountAddress&&r.accountAddress.length===42&&!!r.networks&&r.networks.length>0}async request(e){return this.state===Kn.CLOSED&&(this.confirmationOnly=!0),this.openWallet(void 0,{type:"jsonRpcRequest",method:e.method},e.chainId),this.isOpened()||await this.waitUntilOpened(),(await this.sendMessageRequest({idx:mF(),type:Ue.MESSAGE,data:e,chainId:e.chainId,clientVersion:Ur})).data}handleMessage(e){var r=this;if(e.type===Ue.INIT){Se.debug("MessageProvider, received INIT message",e);const{nonce:c}=e.data;if(!c||c.length==0){Se.error("invalid init nonce");return}this._init=dt.OK,this.sendMessage({idx:-1,type:Ue.INIT,data:{sessionId:this._sessionId,nonce:c},clientVersion:Ur})}if(this._init!==dt.OK)return;Se.debug("RECEIVED MESSAGE FROM WALLET",e.idx,e);const n=e.idx,s=this.responseCallbacks.get(n);if(n&&this.responseCallbacks.delete(n),e.type===Ue.OPEN&&!this.isOpened()){var i,o;if(this._sessionId&&this._sessionId!==((i=e.data)==null?void 0:i.sessionId)){Se.debug("open event received from wallet, but does not match sessionId",this._sessionId);return}if((o=e.data)!=null&&o.error){var a;const c=new Error(`opening wallet failed: received ${(a=e.data)==null?void 0:a.error}`);throw Se.error(c),this.close(),c}this.state=Kn.OPENED,this.openPayload=e.data,this.events.emit("open",this.openPayload),this.pendingMessageRequests.length!==0&&this.pendingMessageRequests.splice(0,this.pendingMessageRequests.length).forEach(async function(l){r.sendMessage(l)});return}if(e.type===Ue.MESSAGE){if(this.confirmationOnly&&setTimeout(()=>{this.responseCallbacks.size===0&&this.closeWallet()},500),!s)throw new Error("impossible state");if(s){this.events.emit("message",e),s(e.data.error,e);return}}if(e.type===Ue.ACCOUNTS_CHANGED){this.accountsChangedPayload={accounts:[]},e.data&&e.data.length>0?(this.accountsChangedPayload={accounts:[Te(e.data[0])],origin:e.origin},this.events.emit("accountsChanged",this.accountsChangedPayload.accounts,this.accountsChangedPayload.origin)):this.events.emit("accountsChanged",[],e.origin);return}if(e.type===Ue.CHAIN_CHANGED){this.events.emit("chainChanged",e.data,e.origin);return}if(e.type===Ue.NETWORKS){this.networksPayload=e.data,this.events.emit("networks",this.networksPayload);return}if(e.type===Ue.WALLET_CONTEXT){this.walletContextPayload=e.data,this.events.emit("walletContext",this.walletContextPayload);return}e.type===Ue.CLOSE&&this.state!==Kn.CLOSED&&this.close(e.data),e.type===Ue.CONNECT&&(this.connectPayload=e.data,this.events.emit("connect",this.connectPayload)),e.type===Ue.DISCONNECT&&this.isConnected()&&(this.events.emit("disconnect",e.data,e.origin),this.close())}sendMessage(e){throw new Error("abstract method")}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}emit(e,...r){return this.events.emit(e,...r)}close(e){this.state!==Kn.CLOSED&&(this.state=Kn.CLOSED,this.confirmationOnly=!1,this._sessionId=void 0,Se.info("closing wallet and flushing!"),this.pendingMessageRequests.length=0,this.responseCallbacks.forEach(r=>{r(er({},new Error("wallet closed"),{code:4001}))}),this.responseCallbacks.clear(),this.connectPayload=void 0,this.openPayload=void 0,this.accountsChangedPayload=void 0,this.networksPayload=void 0,this.walletContextPayload=void 0,this.events.emit("close",e))}}function Ife(t){return Ofe.some(e=>e.predicate(t))}const Ofe=[{name:"Decentraland Exception",predicate:Nfe},{name:"0x v3 Exception",predicate:_fe}],Rfe=/^Decentraland Login\nEphemeral address: 0x[a-fA-F0-9]{40}\nExpiration: (\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)((-(\d{2}):(\d{2})|Z)?)$/;function Nfe(t){try{const e=Ms(t);return Rfe.test(e)}catch{return!1}}function _fe(t){const e=new pt(Mfe);try{return e.decodeFunctionData("OrderWithHash",t),!0}catch{return!1}}const Mfe=[{inputs:[{components:[{internalType:"address",name:"makerAddress",type:"address"},{internalType:"address",name:"takerAddress",type:"address"},{internalType:"address",name:"feeRecipientAddress",type:"address"},{internalType:"address",name:"senderAddress",type:"address"},{internalType:"uint256",name:"makerAssetAmount",type:"uint256"},{internalType:"uint256",name:"takerAssetAmount",type:"uint256"},{internalType:"uint256",name:"makerFee",type:"uint256"},{internalType:"uint256",name:"takerFee",type:"uint256"},{internalType:"uint256",name:"expirationTimeSeconds",type:"uint256"},{internalType:"uint256",name:"salt",type:"uint256"},{internalType:"bytes",name:"makerAssetData",type:"bytes"},{internalType:"bytes",name:"takerAssetData",type:"bytes"},{internalType:"bytes",name:"makerFeeAssetData",type:"bytes"},{internalType:"bytes",name:"takerFeeAssetData",type:"bytes"}],internalType:"struct IEIP1271Data.Order",name:"order",type:"tuple"},{internalType:"bytes32",name:"orderHash",type:"bytes32"}],name:"OrderWithHash",outputs:[],stateMutability:"pure",type:"function"}],hy=mt(`Ethereum Signed Message: -`),Dk=t=>gi(t)?Q(t):mt(t),dm=t=>{const e=Dk(t);return Ife(e)?e:Q(Le([hy,mt(String(e.length)),e]))},Dfe=t=>{if(JSON.stringify(t.slice(0,hy.length))!==JSON.stringify(hy))return t;const e=t.slice(hy.length),r=String(e.length).length;let n,s;try{s=Number(Ms(e.slice(0,r)))}catch{s=Number(H(e.slice(0,r)))}return s>e.length||!Number.isInteger(s)?n=r-1:n=r,e.slice(n)},od=async(t,e,r,n)=>new ye.reader.OnChainReader(n).isValidSignature(t,e,r),xF=async(t,e,r,n)=>{const s=dm(e),i=nk(s);return od(t,i,r,n)},bF=(t,e,r,n)=>od(t,Ed(e),r,n),Pv=()=>window.location.protocol==="chrome-extension:"||window.location.protocol==="moz-extension:",wF=()=>!!navigator.userAgent.match(/UnitySequence/i),CF=t=>t.onChain.deployed&&t.fullyMigrated;class EF{constructor(){this.callbacks=[],this.store={}}getItem(e){return this.store[e]||null}setItem(e,r){this.store[e]=r,this.callbacks.filter(n=>n.key===e).forEach(n=>n.cb(r))}removeItem(e){delete this.store[e]}onItemChange(e,r){return this.callbacks.push({key:e,cb:r}),()=>{this.callbacks=this.callbacks.filter(n=>n.cb!==r)}}}class _0{static isAvailable(){return typeof window=="object"&&typeof window.localStorage=="object"}constructor(){if(this.callbacks=[],!_0.isAvailable())throw new Error("LocalStorage is not available");window.addEventListener("storage",e=>{const{key:r}=e;this.callbacks.filter(s=>s.key===r).forEach(s=>s.cb(this.getItem(r)))})}getItem(e){return window.localStorage.getItem(e)}setItem(e,r){window.localStorage.setItem(e,r),this.callbacks.filter(n=>n.key===e).forEach(n=>n.cb(r))}removeItem(e){window.localStorage.removeItem(e),this.callbacks.filter(r=>r.key===e).forEach(r=>r.cb(null))}onItemChange(e,r){return this.callbacks.push({key:e,cb:r}),()=>{this.callbacks=this.callbacks.filter(n=>n.cb!==r)}}}function Iv(){return _0.isAvailable()?new _0:new EF}async function kF(t){return Array.isArray(t)?Promise.all(t.map(e=>Pt(e))):Pt(t)}const A3="@sequence.transportSession";class R1{constructor(e){var r=this;this.walletRequestHandler=void 0,this._sessionId=void 0,this._registered=void 0,this._init=void 0,this._initNonce=void 0,this._initCallback=void 0,this.appOrigin=void 0,this.handleMessage=async function(n){const s=n;if(r._init!==dt.OK){if(s.type===Ue.INIT)if(r.isValidInitAck(n))r._initCallback&&r._initCallback();else{r._initCallback&&r._initCallback("invalid init");return}return}switch(s.type){case Ue.OPEN:{if(r._init!==dt.OK)return;const i={sessionId:s.data.sessionId,intent:s.data.intent,networkId:s.data.networkId};await r.open(i);return}case Ue.CLOSE:return r._init!==dt.OK,void 0;case Ue.MESSAGE:{const i=await r.walletRequestHandler.sendMessageRequest(s);r.sendMessage(i),i.data.error;return}default:Se.error(`unexpected payload type ${s.type}`)}},this.sendMessageRequest=async function(n){return r.walletRequestHandler.sendMessageRequest(n)},this.open=async function({sessionId:n,intent:s,networkId:i}){n&&(r._sessionId=xM(n),r.saveTransportSession({sessionId:n,intent:s,networkId:i})),r.walletRequestHandler.setOpenIntent(s),await r.init();let o;try{if(i){const a=sk(i);if(a)o=a.chainId;else throw new Error(`unknown network ${i}`)}else o=r.walletRequestHandler.defaultChainId()}catch(a){console.error(a)}if(s&&s.type==="connect"&&s.options){const a=s.options,c=a;if(r.appOrigin&&c!=null&&c.origin){if(!Pv()&&c.origin!==r.appOrigin)throw new Error("origin is invalid")}else!r.appOrigin&&c!=null&&c.origin?a.origin=wM(c.origin):r.appOrigin&&(a.origin=r.appOrigin);a.app&&(a.app=bM(a.app)),a.networkId?i=a.networkId:i&&(a.networkId=i),r.walletRequestHandler.setConnectOptions(a)}else r.walletRequestHandler.setConnectOptions(void 0);if(await r.walletRequestHandler.getAccount(),await r.walletRequestHandler.isSignedIn())if(s&&s.type==="connect"){(!o||o<=0)&&console.log("Failed to set default network on open"),r.notifyOpen({sessionId:r._sessionId});try{const a=await r.walletRequestHandler.promptConnect(s.options);a.connected&&r.walletRequestHandler.notifyConnect(a)}catch(a){Se.warn("promptConnect not connected:",a)}finally{(!s.options||s.options.keepWalletOpened!==!0)&&r.notifyClose()}}else{if(!o||o<=0)return r.notifyOpen({sessionId:r._sessionId,error:`failed to open wallet on network ${i}`}),!1;r.notifyOpen({sessionId:r._sessionId,chainId:`${o}`,session:await r.walletRequestHandler.walletSession(o)})}else return r.notifyOpen({sessionId:r._sessionId}),!0;return!0},this.saveTransportSession=n=>{Iv().setItem(A3,JSON.stringify(n))},this.getCachedTransportSession=async function(){const n=Iv().getItem(A3);try{return n?JSON.parse(n):null}catch{return console.error(`unable to parse transport session: ${n}`),null}},this.walletRequestHandler=e,this._init=dt.NIL,this.walletRequestHandler.on("connect",n=>{this.registered&&this.notifyConnect(n)}),this.walletRequestHandler.on("disconnect",(n,s)=>{this.registered&&this.notifyDisconnect(n,s)}),this.walletRequestHandler.on("accountsChanged",(n,s)=>{this.registered&&this.notifyAccountsChanged(n,s)}),this.walletRequestHandler.on("networks",n=>{this.registered&&(this.notifyNetworks(n),!n||n.length===0?this.notifyChainChanged("0x0"):this.notifyChainChanged(pr(n.find(s=>s.isDefaultChain).chainId)))}),this.walletRequestHandler.on("chainChanged",(n,s)=>{this.notifyChainChanged(n,s)}),this.walletRequestHandler.on("walletContext",n=>{!this.registered||!n||this.notifyWalletContext(n)}),this.walletRequestHandler.on("close",n=>{this.registered&&this.notifyClose(n)})}get registered(){return this._registered}register(){throw new Error("abstract method")}unregister(){throw new Error("abstract method")}request(e){throw new Error("abstract method")}sendMessage(e){throw new Error("abstract method")}notifyOpen(e){const{chainId:r,sessionId:n,session:s,error:i}=e;this.sendMessage({idx:-1,type:Ue.OPEN,data:{chainId:r,sessionId:n,session:s,error:i},clientVersion:Ur})}notifyClose(e){this.sendMessage({idx:-1,type:Ue.CLOSE,data:e?{error:e}:null,clientVersion:Ur})}notifyConnect(e){this.sendMessage({idx:-1,type:Ue.CONNECT,data:e,clientVersion:Ur})}notifyDisconnect(e,r){this.sendMessage({idx:-1,type:Ue.DISCONNECT,data:e?{error:e}:null,origin:r,clientVersion:Ur})}notifyAccountsChanged(e,r){this.sendMessage({idx:-1,type:Ue.ACCOUNTS_CHANGED,data:e,origin:r,clientVersion:Ur})}notifyChainChanged(e,r){this.sendMessage({idx:-1,type:Ue.CHAIN_CHANGED,data:e,origin:r,clientVersion:Ur})}notifyNetworks(e){this.sendMessage({idx:-1,type:Ue.NETWORKS,data:e,clientVersion:Ur})}notifyWalletContext(e){this.sendMessage({idx:-1,type:Ue.WALLET_CONTEXT,data:e,clientVersion:Ur})}isValidInitAck(e){if(this._init===dt.OK)return Se.warn("isValidInitAck, already in init'd state, so inquiry is invalid."),!1;if(e.type!==Ue.INIT)return Se.warn("isValidInitAck, invalid message type, expecting init"),!1;const{sessionId:r,nonce:n}=e.data;return!r||r.length===0||!n||n.length===0?(Se.error("invalid init ack"),!1):r!==this._sessionId||n!==this._initNonce?(Se.error("invalid init ack match"),!1):!0}init(){return new Promise((e,r)=>{if(this._init===dt.OK){e();return}if(this._init!==dt.NIL||this._initCallback){r("transport init is in progress");return}const n=setTimeout(()=>{Se.warn("transport init timed out"),this._initCallback&&this._initCallback("transport init timed out")},Mk/2);this._initCallback=s=>{this._initCallback=void 0,clearTimeout(n),s?r(s):(this._init=dt.OK,e())},this._initNonce=`${performance.now()}`,this.sendMessage({idx:-1,type:Ue.INIT,data:{nonce:this._initNonce},clientVersion:Ur}),this._init=dt.SENT_NONCE})}}class Bfe{constructor(){this.app=void 0,this.wallet=void 0;const e=new z2,r=new z2;e.conn=r,r.conn=e,this.app=e,this.wallet=r}}class z2{constructor(){this.conn=void 0,this.events=new fm.EventEmitter2,this.handleMessage=e=>{throw new Error("ProxyMessageChannelPort is not registered")},this.sendMessage=e=>{this.conn.handleMessage(e),e.type==="open"&&this.events.emit("open",e),e.type==="close"&&this.events.emit("close",e),e.type==="connect"&&this.events.emit("connect",e),e.type==="disconnect"&&this.events.emit("disconnect",e)}}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}}class AF extends O1{constructor(e){if(super(),this.port=void 0,this.register=()=>{this.port.handleMessage=r=>{this.handleMessage(r)},this.on("open",(...r)=>{this.port.events.emit("open",...r)}),this.on("close",(...r)=>{this.port.events.emit("close",...r)}),this.on("connect",(...r)=>{this.port.events.emit("connect",...r)}),this.on("disconnect",(...r)=>{this.port.events.emit("disconnect",...r)}),this._registered=!0},this.unregister=()=>{this._registered=!1,this.closeWallet(),this.events.removeAllListeners(),this.port.handleMessage=void 0},this.openWallet=(r,n,s)=>{if(this.state===Kn.CLOSED){this.state=Kn.OPENING;const i=`${performance.now()}`;this._sessionId=i,this.sendMessage({idx:-1,type:Ue.OPEN,data:{path:r,intent:n,networkId:s,sessionId:i},clientVersion:Ur})}},this.state=Kn.CLOSED,this.port=e,!e)throw new Error("port argument cannot be empty");this._init=dt.OK}closeWallet(){this.sendMessage({idx:-1,type:Ue.CLOSE,data:null,clientVersion:Ur}),this.close()}sendMessage(e){if(!e.idx)throw new Error("message idx is empty");this.port.sendMessage(e)}}class Lfe extends R1{constructor(e,r){super(e),this.port=void 0,this.port=r,this._init=dt.OK}register(){this.port.handleMessage=e=>{this.handleMessage(e)},this._registered=!0}async restoreSession(){const e=await this.getCachedTransportSession();e&&this.open(e)}unregister(){this.port.handleMessage=void 0,this._registered=!1}sendMessage(e){this.port.sendMessage(e)}}function SF(t){var e;if((e=window.ue)!=null&&e.sequencewallettransport&&!window.logsOverriddenForUnreal){var r;const n=(r=window.ue)==null?void 0:r.sequencewallettransport;console.log=(...s)=>{n.logfromjs(`${t}: ${Kx(s)}`)},console.warn=(...s)=>{n.warnfromjs(`${t}: ${Kx(s)}`)},console.error=(...s)=>{n.errorfromjs(`${t}: ${Kx(s)}`)},window.logsOverriddenForUnreal=!0}}function Kx(t){return t.map(e=>typeof e=="object"?e instanceof Error?e.message:JSON.stringify(e):String(e)).join(" ")}let Vl;class TF extends O1{constructor(e){super(),this.walletURL=void 0,this.register=()=>{var r;SF("dapp"),Vl&&(Vl.unregister(),Vl=this),(r=window.ue)!=null&&r.sequencewallettransport&&(window.ue.sequencewallettransport.onmessagefromwallet=this.onUnrealCallback),Vl=this,this._registered=!0,console.log("registering transport!")},this.unregister=()=>{var r;this._registered=!1,this.closeWallet(),Vl===this&&(Vl=void 0),((r=window.ue)==null||(r=r.sequencewallettransport)==null?void 0:r.onmessagefromwallet)===this.onUnrealCallback&&delete window.ue.sequencewallettransport.onmessagefromwallet,this.events.removeAllListeners()},this.openWallet=(r,n,s)=>{if(this.isOpened()){console.log("wallet already open!");return}console.log("opening wallet!");const i=new URL(this.walletURL.href),o=new I1;r&&(i.pathname=r.toLowerCase()),this._init=dt.NIL,this._sessionId=`${performance.now()}`,o.set("sid",this._sessionId),n&&o.set("intent",tk(n)),s&&o.set("net",`${s}`),i.search=o.toString(),console.log("opening wallet to",i.href),window.open(i.href)},this.onUnrealCallback=r=>{if(!r)throw new Error("ProviderMessage object is empty");this.handleMessage(r)},this.walletURL=new URL(e)}closeWallet(){this.close()}sendMessage(e){var r;const n=typeof e!="string"?JSON.stringify(e):e;console.log("Sending message to wallet:",n),(r=window.ue)==null||(r=r.sequencewallettransport)==null||r.sendmessagetowallet(n)}}class jfe extends R1{constructor(e){super(e),this.onMessageFromUnreal=r=>{Se.debug("RECEIVED MESSAGE",r),this.handleMessage(r)},this.getUnrealTransportSession=r=>{const n=new I1(r);return{sessionId:n.get("sid"),networkId:n.get("net"),intent:rk(n.get("intent"))}},this._init=dt.NIL}async register(e){var r;if(((r=window.ue)==null?void 0:r.sequencewallettransport)===void 0)return;SF("wallet");const{search:n}=new URL(e||window.location.href);let s=this.getUnrealTransportSession(n);if(!!s.sessionId||(s=await this.getCachedTransportSession()),!s){Se.error("unreal session is undefined");return}window.ue.sequencewallettransport.onmessagefromsequencejs=this.onMessageFromUnreal,this._registered=!0,this.open(s).then(o=>{if(!o){var a;const c=`failed to open to network ${(a=s)==null?void 0:a.networkId}`;Se.error(c),this.notifyClose({message:c}),window.close()}}).catch(o=>{var a;const c=`failed to open to network ${(a=s)==null?void 0:a.networkId}, due to: ${o}`;Se.error(c),this.notifyClose({message:c}),window.close()})}unregister(){var e;((e=window.ue)==null||(e=e.sequencewallettransport)==null?void 0:e.onmessagefromsequencejs)===this.onMessageFromUnreal&&delete window.ue.sequencewallettransport.onmessagefromsequencejs,this._registered=!1}sendMessage(e){var r;if(e.type!==Ue.INIT&&this._init!==dt.OK){Se.error("impossible state, should not be calling postMessage until inited");return}const n=JSON.stringify(e);(r=window.ue)==null||(r=r.sequencewallettransport)==null||r.sendmessagetosequencejs(n)}}const Bk="sequence-extension-message-handler";class Ffe extends R1{constructor(e,r){super(e),this.runtime=r,this.port=void 0,this._init=dt.OK}register(){this._registered=!0,this.port=this.runtime.connect({name:Bk})}sendMessage(e){Se.info("[ExtensionMessageHandler send]",e),this.port.postMessage(e)}}class PF extends O1{constructor(e){super(),this.register=()=>{this._registered=!0},e.onConnect.addListener(r=>{r.name===Bk&&(this._init=dt.OK,r.onMessage.addListener(n=>{this.handleMessage(n)}))})}sendMessage(e){}unregister(){}openWallet(e,r,n){}closeWallet(){}}class Ufe extends fm.EventEmitter2{constructor(e){var r;super(),r=this,this.stream=e,this.responseCallbacks=new Map,this._messageIdx=0,this.nextMessageIdx=()=>++this._messageIdx,this.handleMessage=n=>{if(!n.type||!n.data)return;Se.info("[received message]",n);const s=n.idx,i=this.responseCallbacks.get(s);switch(s&&this.responseCallbacks.delete(s),n.type){case Ue.MESSAGE:if(i)this.emit(Ue.MESSAGE,n),i(n.data.error,n);else throw new Error("impossible state");break;case Ue.DISCONNECT:case Ue.ACCOUNTS_CHANGED:case Ue.CHAIN_CHANGED:this.emit(n.type,n.data);break;default:console.error("unknown message type",n);break}},this.sendMessageRequest=async function(n){return new Promise((s,i)=>{(!n.idx||n.idx<=0)&&i(new Error("message idx not set"));const o=(c,l)=>{if(c)i(c);else if(l)s(l);else throw new Error("no valid response to return")},{idx:a}=n;r.responseCallbacks.get(a)?i(new Error("duplicate message idx, should never happen")):r.responseCallbacks.set(a,o),r.sendMessage(n)})},this.stream.on("data",this.handleMessage)}sendMessage(e){this.stream.writable||console.error("window post message stream is not writable"),this.stream.write(e)}}let Hl;class IF extends O1{constructor(e){super(),this.walletURL=void 0,this.walletWindow=void 0,this.register=()=>{Hl&&(Hl.unregister(),Hl=this),window.addEventListener("message",this.onWindowEvent),Hl=this,this.on("open",()=>{const r=this.walletWindow,n=setInterval(()=>{r&&r.closed&&(clearInterval(n),this.close())},500)}),this.on("close",()=>{this.walletWindow&&(this.walletWindow.close(),this.walletWindow=null)}),this._registered=!0},this.unregister=()=>{this._registered=!1,this.closeWallet(),Hl===this&&(Hl=void 0),window.removeEventListener("message",this.onWindowEvent),this.events.removeAllListeners()},this.openWallet=(r,n,s)=>{if(this.walletWindow&&this.isOpened()){this.walletWindow.focus();return}const i=new URL(this.walletURL.href),o=new I1;r&&r!==""&&(i.pathname=r.toLowerCase()),this._init=dt.NIL,this._sessionId=`${performance.now()}`,o.set("sid",this._sessionId),n&&(n.type==="connect"&&(n.options||(n.options={app:window.location.origin}),!Pv()&&!wF()&&n.options&&(n.options.origin=window.location.origin)),o.set("intent",tk(n))),s&&o.set("net",`${s}`);let a,c;Pv()?(a=[450,750],c=[Math.abs(window.screen.width/2-a[0]/2),Math.abs(window.screen.height/2-a[1]/2)]):(a=[450,750],c=[Math.abs(window.screenX+window.innerWidth/2-a[0]/2),Math.abs(window.screenY+window.innerHeight/2-a[1]/2)]);const l=`toolbar=0,location=0,menubar=0,scrollbars=yes,status=yes,width=${a[0]},height=${a[1]},left=${c[0]},top=${c[1]}`;i.search=o.toString(),this.walletWindow=window.open(i.href,"sequence.app",l)},this.onWindowEvent=r=>{if(r.origin!==this.walletURL.origin)return;let n;try{n=JSON.parse(r.data)}catch{return}if(!n)throw new Error("ProviderMessage object is empty");this.handleMessage(n)},this.walletURL=new URL(e)}closeWallet(){var e;this.close(),(e=this.walletWindow)==null||e.close()}sendMessage(e){if(!this.walletWindow){Se.warn("WindowMessageProvider: sendMessage failed as walletWindow is unavailable");return}const r=typeof e!="string"?JSON.stringify(e):e;this.walletWindow.postMessage(r,this.walletURL.origin)}}class $fe extends R1{constructor(e){var r;super(e),r=this,this.parentWindow=void 0,this._isPopup=!1,this.onWindowEvent=async function(n){if(!n.origin||n.origin===""||r.appOrigin&&n.origin!==r.appOrigin)return;let s;try{s=JSON.parse(n.data,(i,o)=>Wfe(o)?BigInt(o.hex):o)}catch{return}if(Se.debug("RECEIVED MESSAGE",s),r._init!==dt.OK&&r.isValidInitAck(s)&&(r.appOrigin=n.origin),r._init===dt.OK&&(!r.appOrigin||r.appOrigin.length<8)){Se.error("impossible state, init.OK and appOrigin required");return}r.handleMessage(s)},this.getWindowTransportSession=n=>{const s=new I1(n);return{sessionId:s.get("sid"),networkId:s.get("net"),intent:rk(s.get("intent"))}},this._init=dt.NIL}async register(e){const r=parent.window.opener!==null;if(this._isPopup=r,r!==!0)return;const{search:n}=new URL(e||window.location.href);let s=this.getWindowTransportSession(n);if(!!s.sessionId||(s=await this.getCachedTransportSession()),!s){Se.error("window session is undefined");return}this.parentWindow=parent.window.opener,window.addEventListener("message",this.onWindowEvent,!1),this._registered=!0,this.open(s).then(o=>{if(!o){var a;const c=`failed to open to network ${(a=s)==null?void 0:a.networkId}`;Se.error(c),this.notifyClose({message:c}),window.close()}}).catch(o=>{var a;const c=`failed to open to network ${(a=s)==null?void 0:a.networkId}, due to: ${o}`;Se.error(c),this.notifyClose({message:c}),window.close()})}unregister(){window.removeEventListener("message",this.onWindowEvent),this._registered=!1}sendMessage(e){const r=JSON.stringify(e);e.type===Ue.INIT?this.postMessage(r,!0):this.postMessage(r)}get isPopup(){return this._isPopup}postMessage(e,r=!1){if(r!==!0&&this._init!==dt.OK){Se.error("impossible state, should not be calling postMessage until inited");return}r?this.parentWindow.postMessage(e,"*"):this.appOrigin&&this.appOrigin.length>4?this.parentWindow.postMessage(e,this.appOrigin):Se.error("unable to postMessage as parentOrigin is invalid")}}const Wfe=t=>typeof t=="object"&&t.type==="BigNumber"&&et(t.hex);function OF(t){return t&&typeof t=="object"&&(t.windowTransport&&typeof t.windowTransport=="object"||t.proxyTransport&&typeof t.proxyTransport=="object"||t.extensionTransport&&typeof t.extensionTransport=="object"||t.unrealTransport&&typeof t.unrealTransport=="object")&&(t.windowTransport&&t.windowTransport.enabled||t.proxyTransport&&t.proxyTransport.enabled||t.extensionTransport&&t.extensionTransport.enabled||t.unrealTransport&&t.unrealTransport.enabled)}class hm{constructor(...e){var r=this;this.messageProviders=void 0,this.provider=void 0,this.register=()=>{if(this.messageProviders.length===1){this.provider=this.messageProviders[0],this.provider.register();return}this.messageProviders.forEach(n=>{n.register(),n.once("open",()=>{this.provider||(this.provider=n,this.messageProviders.forEach(s=>{this.provider!==s&&s.unregister()}))})})},this.unregister=()=>{this.messageProviders.forEach(n=>n.unregister()),this.provider=void 0},this.openWallet=(n,s,i)=>{if(this.provider){this.provider.openWallet(n,s,i);return}this.messageProviders.forEach(o=>o.openWallet(n,s,i))},this.sendMessageRequest=async function(n){if(r.provider)return r.provider.sendMessageRequest(n);throw new Error("impossible state, wallet must be opened first")},this.waitUntilOpened=async function(){return r.provider?r.provider.waitUntilOpened():Promise.race(r.messageProviders.map(n=>n.waitUntilOpened()))},this.waitUntilConnected=async function(){if(r.provider)return r.provider.waitUntilConnected();throw new Error("impossible state, wallet must be opened first")},this.messageProviders=e,this.provider=void 0}static new(e){var r,n,s,i;const o=new hm;if((r=e.windowTransport)!=null&&r.enabled&&typeof window=="object"&&e.walletAppURL){const a=new IF(e.walletAppURL);o.add(a)}if((n=e.proxyTransport)!=null&&n.enabled){const a=new AF(e.proxyTransport.appPort);o.add(a)}if((s=e.extensionTransport)!=null&&s.enabled){const a=new PF(e.extensionTransport.runtime);o.add(a)}if((i=e.unrealTransport)!=null&&i.enabled&&e.windowTransport&&e.walletAppURL){const a=new TF(e.walletAppURL);o.add(a)}return o.register(),o}add(...e){this.messageProviders.push(...e)}closeWallet(){this.provider&&this.provider.closeWallet()}isOpened(){return this.provider?this.provider.isOpened():!1}isConnected(){return this.provider?this.provider.isConnected():!1}on(e,r){if(this.provider){this.provider.on(e,r);return}this.messageProviders.forEach(n=>{n.on(e,r)})}once(e,r){if(this.provider){this.provider.once(e,r);return}this.messageProviders.forEach(n=>{n.once(e,r)})}emit(e,...r){if(this.provider)return this.provider.emit(e,...r);for(let n=0;n({connected:!1})),a=o;return a.connected&&!a.session&&(a.session=await s.walletSession(i==null?void 0:i.networkId)),o},this.isSignedIn=async function(){return await s.signerReady(),!!s.account},this.getAccount=async function(){if(await s.signerReady(),s.account===void 0)throw new Error("signerReady failed resolve");return s.account},this.account=e,this.prompter=r,this.networks=n}defaultChainId(){var e,r;return(e=(r=this.prompter)==null?void 0:r.getDefaultChainId())!=null?e:this.networks[0].chainId}async signIn(e,r={}){this.setAccount(e);const{connect:n,defaultNetworkId:s}=r;if(n){const a=this._connectOptions;let c;if(this.prompter!==null){var i;c=await((i=this.prompter)==null?void 0:i.promptSignInConnect(a))}else c=await this.connect(a);this.notifyConnect(c),(!a||a.keepWalletOpened!==!0)&&this.notifyClose()}if(s&&this.defaultChainId()!==s){var o;await((o=this.prompter)==null?void 0:o.promptChangeNetwork(s))}}signOut(){this.account&&this.notifyDisconnect(),this.setAccount(null)}signerReset(){this.account=void 0}signerReady(e=zfe){return new Promise((r,n)=>{this.account!==void 0?r():(setTimeout(()=>{this.account===void 0&&(this.signerReadyCallbacks=[],n("signerReady timed out"))},e),this.signerReadyCallbacks.push(r))})}async connect(e){var r,n;if(!this.account)return{connected:!1,chainId:"0x0",error:"unable to connect without signed in account"};const s=(r=(n=e==null?void 0:e.networkId)!=null?n:this.defaultChainId())!=null?r:L.MAINNET,i=sk(s).chainId,o={connected:!0,chainId:pr(i)};if(e&&e.authorize){const a={app:e.app,origin:e.origin,expiry:e.expiry,nonce:e.authorizeNonce};try{o.proof=await xj(this.account,i,a)}catch(c){return Se.warn(`connect, signAuthorization failed for options: ${JSON.stringify(e)}, due to: ${c.message}`),{connected:!1,chainId:"0x0",error:`signAuthorization failed: ${c.message}`}}}return o.session=this.walletSession(i),o}async sendMessageRequest(e){var r;const s=Number(((r=e.clientVersion)==null?void 0:r.split(".")[0])||"0")<2,i={id:e.data.id,jsonrpc:"2.0",result:null,error:void 0};try{const o=await this.request({method:e.data.method,params:e.data.params,chainId:e.chainId});return er({},e,{data:s?er({},i,{result:o}):o})}catch(o){return er({},e,{data:s?er({},i,{error:o}):o})}}async request(e){await this.getAccount();try{var r,n;if((!this.account||this.account===null)&&!qfe.includes(e.method))throw gF;const l=this.account;if(!l)throw new Error("WalletRequestHandler: wallet account is not configured");const u=(r=this.account)==null?void 0:r.providerFor((n=e.chainId)!=null?n:this.defaultChainId());if(!u)throw new Error(`WalletRequestHandler: wallet provider is not configured for chainId ${e.chainId}`);const f=u instanceof zt?u:void 0;switch(e.method){case"net_version":{if(!f)throw new Error("Account provider doesn't support send method");return await f.send("net_version",[])}case"eth_chainId":{if(!f)throw new Error("Account provider doesn't support send method");return await f.send("eth_chainId",[])}case"eth_accounts":return[l.address];case"eth_getBalance":{const[d,h]=e.params,y=await u.getBalance(d,h);return Zc(y)}case"sequence_sign":case"personal_sign":case"eth_sign":{let d;switch(e.method){case"sequence_sign":case"personal_sign":{const[b,v]=e.params;d=b;break}case"eth_sign":{const[b,v]=e.params;d=v;break}}let h="";const y=dm(d),p=e.method==="sequence_sign";if(this.prompter===null){var s;h=await l.signMessage(y,(s=e.chainId)!=null?s:this.defaultChainId(),p?"eip6492":"ignore")}else h=await this.prompter.promptSignMessage({chainId:e.chainId,message:Q(y),eip6492:p},this.connectOptions);if(h&&h.length>0)return h;throw new Error("declined by user")}case"sequence_signTypedData_v4":case"eth_signTypedData":case"eth_signTypedData_v4":{const[d,h]=e.params;let y;if(typeof h=="string")try{y=JSON.parse(h)}catch(v){console.warn("walletRequestHandler: error parsing typedData",v)}else y=h;if(!y||!y.domain||!y.types||!y.message)throw new Error("invalid typedData object");let p="";const b=e.method==="sequence_signTypedData_v4";if(this.prompter===null){var i;p=await l.signTypedData(y.domain,y.types,y.message,(i=e.chainId)!=null?i:this.defaultChainId(),b?"eip6492":"ignore")}else p=await this.prompter.promptSignMessage({chainId:e.chainId,typedData:y,eip6492:b},this.connectOptions);if(p&&p.length>0)return p;throw new Error("declined by user")}case"eth_sendTransaction":{const d=Hfe(e.params[0]).map(y=>("gas"in y&&y.gasLimit===void 0&&(y.gasLimit=y.gas,delete y.gas),y));H2(l.address,d);let h="";if(this.prompter===null){var o,a;const y=await l.sendTransaction(d,(o=e.chainId)!=null?o:this.defaultChainId());h=(a=y==null?void 0:y.hash)!=null?a:""}else h=await this.prompter.promptSendTransaction(d,e.chainId,this.connectOptions);if(h)return h;throw new Error("declined by user")}case"eth_signTransaction":{const[d]=e.params;if(Te(d.from)!==l.address)throw new Error("sender address does not match wallet");if(H2(l.address,d),this.prompter===null){var c;return await l.signTransactions(d,(c=e.chainId)!=null?c:this.defaultChainId())}else return await this.prompter.promptSignTransaction(d,e.chainId,this.connectOptions)}case"eth_sendRawTransaction":if(ye.transaction.isSignedTransactionBundle(e.params[0])){const d=Number(e.params[0].chainId);return(await l.relayer(d).relay(e.params[0])).hash}else return(await u.broadcastTransaction(e.params[0])).hash;case"eth_getTransactionCount":{const d=Te(e.params[0]),h=e.params[1],y=await u.getTransactionCount(d,h);return Zc(BigInt(y))}case"eth_blockNumber":return await u.getBlockNumber();case"eth_getBlockByNumber":return await u.getBlock(e.params[0]);case"eth_getBlockByHash":return await u.getBlock(e.params[0]);case"eth_getTransactionByHash":return await u.getTransaction(e.params[0]);case"eth_call":{const[d,h]=e.params;return await u.call(er({},d,{blockTag:h}))}case"eth_getCode":{const[d,h]=e.params;return await u.getCode(d,h)}case"eth_estimateGas":{const[d]=e.params;return await u.estimateGas(d)}case"eth_gasPrice":{const d=await u.getFeeData();return d.gasPrice===null?null:Zc(d.gasPrice)}case"wallet_switchEthereumChain":{const[d]=e.params;if(!d.chainId||d.chainId.length===0)throw new Error("invalid chainId");const h=BigInt(d.chainId);return this.setDefaultChainId(Number(h)),null}case"sequence_getWalletContext":return l.contexts;case"sequence_getWalletConfig":{const[d]=e.params;return d?[(await l.status(d)).onChain.config]:await Promise.all(l.networks.map(async function(h){return(await l.status(h.chainId)).onChain.config}))}case"sequence_getWalletState":{const[d]=e.params;return d?[S3(d,await l.status(d))]:await Promise.all(l.networks.map(async function(h){const y=await l.status(h.chainId);return S3(h.chainId,y)}))}case"sequence_getNetworks":return await this.getNetworks(!0);case"sequence_isSequence":return!0;case"sequence_updateConfig":throw new Error("sequence_updateConfig method is not allowed from a dapp");case"sequence_publishConfig":throw new Error("sequence_publishConfig method is not allowed from a dapp");case"sequence_gasRefundOptions":break;case"sequence_getNonce":break;case"sequence_relay":break;case"sequence_setDefaultNetwork":{const[d]=e.params;if(!d)throw new Error("invalid request, method argument defaultChainId cannot be empty");return this.setDefaultChainId(d),await this.getNetworks(!0)}default:{if(!f)throw new Error("Account provider doesn't support send method");return await f.send(e.method,e.params)}}}catch(l){throw Se.error(l),{message:l==null?void 0:l.message,code:4001}}}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}async getAddress(){var e,r;return(e=(r=this.account)==null?void 0:r.address)!=null?e:""}get openIntent(){return this._openIntent}setOpenIntent(e){this._openIntent=e}get connectOptions(){return this._connectOptions}setConnectOptions(e){var r;this._connectOptions=e,(r=this.onConnectOptionsChange)==null||r.call(this,e)}async setDefaultChainId(e){var r;return await((r=this.prompter)==null?void 0:r.promptChangeNetwork(e)),this.defaultChainId()}async getNetworks(e){return this.account?e?this.account.networks.map(r=>{const n=er({},r);return n.provider=void 0,n.relayer=void 0,n}):this.account.networks:(Se.warn("signer not set: getNetworks is returning an empty list"),[])}walletSession(e){if(!this.account)return;const r={walletContext:this.account.contexts,accountAddress:this.account.address,networks:this.account.networks.map(s=>er({},s,{provider:void 0,relayer:void 0}))};if(e){const s=Rs(r.networks,e);if(s){var n;(n=r.networks)==null||n.forEach(i=>delete i.isDefaultChain),s.isDefaultChain=!0}}return r}notifyConnect(e,r){var n;if(console.log("emit connect",e),this.events.emit("connect",e),(n=e.session)!=null&&n.accountAddress){var s;this.events.emit("accountsChanged",[(s=e.session)==null?void 0:s.accountAddress],r)}}notifyDisconnect(e){this.events.emit("accountsChanged",[],e),this.events.emit("disconnect",void 0,e)}notifyChainChanged(e,r){this.events.emit("chainChanged",pr(e),r)}async notifyNetworks(e){const r=e||await this.getNetworks(!0);if(this.events.emit("networks",r),r.length>0){const n=r.find(s=>s.chainId===this.defaultChainId());n&&this.events.emit("chainChanged",pr(n.chainId))}else this.events.emit("chainChanged","0x0")}async notifyWalletContext(){if(!this.account){Se.warn("signer not set: skipping to notify wallet context");return}const e=this.account.contexts;this.events.emit("walletContext",e)}notifyClose(e){this.events.emit("close",e)}setAccount(e){if(this.account=e,e!==void 0){for(let r=0;rc.canOnchainValidate||c.original.version===2&&n,o=await r.status(s);if(i(o))return!0;if(await e.promptConfirmWalletDeploy(s,this.connectOptions)){const c=await r.status(s);return i(c)?!0:(Se.error("WalletRequestHandler: result for promptConfirmWalletDeploy is not correct"),!1)}return!1}}function S3(t,e){return{context:e.original.context,config:e.onChain.config,address:ye.context.addressOf(e.original.context,e.original.imageHash),chainId:t,deployed:e.onChain.deployed,imageHash:e.imageHash,lastImageHash:e.onChain.imageHash,published:!0,status:e}}const qfe=["net_version","eth_chainId","eth_getBalance","eth_getTransactionCount","eth_blockNumber","eth_getBlockByNumber","eth_getBlockByHash","eth_getTransactionByHash","eth_getCode","eth_estimateGas","eth_gasPrice","sequence_getWalletContext","sequence_getNetworks","sequence_setDefaultNetwork"];function Kfe(t,e){if(t==null)return{};var r={},n=Object.keys(t),s,i;for(i=0;i=0)&&(r[s]=t[s]);return r}class Ad{get utils(){return this.provider.utils}constructor(e,r){this.client=e,this.provider=r,this.singleNetworkSigners={},this._isSequenceSigner=!0}async getAddress(){return this.client.getAddress()}connect(e){if(!Sd.is(e))throw new Error("SequenceSigner can only be connected to a SequenceProvider");return new Ad(this.client,e)}getSigner(e){if(!e)return this;const r=this.provider.toChainId(e);return this.singleNetworkSigners[r]||(this.singleNetworkSigners[r]=new Lk(this.client,this.provider,r)),this.singleNetworkSigners[r]}useChainId(e){return this.provider.toChainId(e)||this.client.getChainId()}async signMessage(e,r){const{eip6492:n=!0}=r||{},s=this.useChainId(r==null?void 0:r.chainId);return this.client.signMessage(e,{eip6492:n,chainId:s})}async signTypedData(e,r,n,s){const{eip6492:i=!0}=s||{},o=this.useChainId(s==null?void 0:s.chainId);return this.client.signTypedData({domain:e,types:r,message:n},{eip6492:i,chainId:o})}getProvider(e){return this.provider.getProvider(e)}async sendTransaction(e,r){const n=this.useChainId(r==null?void 0:r.chainId),s=await kF(e),i=await this.client.sendTransaction(s,{chainId:n}),o=this.getProvider(n);try{return await new Promise(c=>{(async function u(){const f=await o.getTransaction(i);if(f!==null)return c(f);await o.once("block",u)})()})}catch(a){throw a.transactionHash=i,a}}async getWalletConfig(e){const r=this.useChainId(e);return this.client.getOnchainWalletConfig({chainId:r})}getNetworks(){return this.client.getNetworks()}async getBalance(e,r){return this.getProvider(r==null?void 0:r.chainId).getBalance(this.getAddress(),e)}async estimateGas(e,r){return this.getProvider(r==null?void 0:r.chainId).estimateGas(e)}async call(e,r){return this.getProvider(r==null?void 0:r.chainId).call(e)}getChainId(){return Promise.resolve(this.client.getChainId())}async getFeeData(e){return this.getProvider(e==null?void 0:e.chainId).getFeeData()}async resolveName(e){const r=await this.provider.resolveName(e);if(r===null)throw new Error(`ENS name not found: ${e}`);return r}_checkProvider(e){}getNonce(e){throw new Error("SequenceSigner does not support getNonce")}populateCall(e){throw new Error("SequenceSigner does not support populateCall")}populateTransaction(e){throw new Error("SequenceSigner does not support populateTransaction")}checkTransaction(e){throw new Error("SequenceSigner does not support checkTransaction")}getTransactionCount(e){throw new Error("SequenceSigner does not support getTransactionCount")}signTransaction(e){throw new Error("SequenceWallet does not support signTransaction, use sendTransaction instead.")}static is(e){return e&&typeof e=="object"&&e._isSequenceSigner===!0}}class Lk extends Ad{constructor(e,r,n){super(e,r.getProvider(n)),this.chainId=n,this._isSingleNetworkSequenceSigner=!0}_useChainId(e){const r=this.provider.toChainId(e);if(r&&r!==this.chainId)throw new Error(`This signer only supports the network ${this.chainId}, but ${r} was requested.`);return r||this.provider.toChainId(this.chainId)}useChainId(e){return this._useChainId(e)}getChainId(){return Promise.resolve(this.provider.toChainId(this.chainId))}getProvider(e){return super.getProvider(this._useChainId(e))}getSigner(e){if(this._useChainId(e)!==this.chainId)throw new Error("Unreachable code");return this}static is(e){return e&&typeof e=="object"&&e._isSingleNetworkSequenceSigner===!0}}class Qfe{constructor(e){if(this.signer=e,Lk.is(e))throw new Error("WalletUtils does not support SingleNetworkSequenceSigner")}signMessage(e,r,n){return this.signer.signMessage(e,{chainId:r,eip6492:n})}signTypedData(e,r,n,s,i){return this.signer.signTypedData(e,r,n,{chainId:s,eip6492:i})}async isValidSignature(e,r,n,s){return od(e,r,n,this.signer.getProvider(s))}async isValidMessageSignature(e,r,n,s){const i=this.signer.getProvider(s),o=dm(r),a=nk(o);return od(e,a,n,i)}isValidTypedDataSignature(e,r,n,s){return this.isValidSignature(e,Ed(r),n,s)}}const Jfe=["method"],T3=["connect","disconnect","chainChanged","accountsChanged"];class Sd extends co{constructor(e,r,n=sd,s){super(e.getChainId(),s),this.client=e,this.providerFor=r,this.networks=n,this.options=s,this.singleNetworkProviders={},this._isSequenceProvider=!0,this.utils=void 0,this.signer=void 0,this.eip1193EventListeners=new Map,e.onConnect(i=>{var o;(o=this.eip1193EventListeners.get("connect"))==null||o.forEach(a=>a(i))}),e.onDisconnect(i=>{var o;(o=this.eip1193EventListeners.get("disconnect"))==null||o.forEach(a=>a(i))}),e.onDefaultChainIdChanged(i=>{var o;(o=this.eip1193EventListeners.get("chainChanged"))==null||o.forEach(a=>a(i))}),e.onAccountsChanged(i=>{var o;(o=this.eip1193EventListeners.get("accountsChanged"))==null||o.forEach(a=>a(i))}),this.signer=new Ad(this.client,this),this.utils=new Qfe(this.signer)}async on(e,r){if(T3.includes(e)){const n=this.eip1193EventListeners.get(e)||new Set;return n.add(r),this.eip1193EventListeners.set(e,n),this}return super.on(e,r)}async off(e,r){if(T3.includes(e)){const n=this.eip1193EventListeners.get(e);return n&&(r?n.delete(r):n.clear()),this}return super.off(e,r)}getSigner(e){return this.signer.getSigner(e)}connect(e){return this.client.connect(e)}disconnect(){return this.client.disconnect()}isConnected(){return this.client.isConnected()}getSession(){return this.client.getSession()}listAccounts(){return[this.client.getAddress()]}getAddress(){return this.client.getAddress()}getNetworks(){return this.client.getNetworks()}getChainId(){return this.client.getChainId()}setDefaultChainId(e){return this.client.setDefaultChainId(this.toChainId(e))}isOpened(){return this.client.isOpened()}closeWallet(){return this.client.closeWallet()}getWalletContext(){return this.client.getWalletContext()}async getWalletConfig(e){const r=await this.useChainId(e);return this.client.getOnchainWalletConfig({chainId:r})}authorize(e){return this.client.connect(er({},e,{authorize:!0}))}async openWallet(e,r){return await this.client.openWallet(e,r),!0}toChainId(e){if(e===void 0)return;const r=Rs(this.networks,e);if(!r)throw new Error(`Unsupported network ${e}`);return r.chainId}async useChainId(e){return this.toChainId(e)||this.client.getChainId()}getProvider(e){if(!e)return this;const r=this.toChainId(e);return this.singleNetworkProviders[r]||(this.singleNetworkProviders[r]=new NF(this.client,this.providerFor,r,this.options)),this.singleNetworkProviders[r]}async _getSubprovider(e){const r=await this.useChainId(e),n=this.providerFor(r);if(!n)throw new Error(`Unsupported network ${r}`);return n}async _perform(e){var r;const{method:n}=e,s=Kfe(e,Jfe),i=await this._getSubprovider(),o=(r=i.getRpcRequest(e))!=null?r:{method:n,args:Object.values(s)};if(!o)throw new Error(`Unsupported method ${e.method}`);return i.send(o.method,o.args)}async perform(e,r){if(e==="eth_chainId")return pr(await this.useChainId());if(e==="eth_accounts")return[this.client.getAddress()];if(e==="wallet_switchEthereumChain"){const n=r[0],s=RF(n);return this.setDefaultChainId(s)}return e==="eth_sendTransaction"||e==="eth_sign"||e==="eth_signTypedData"||e==="eth_signTypedData_v4"||e==="personal_sign"||e==="sequence_sign"||e==="sequence_signTypedData_v4"?this.client.request({method:e,params:r,chainId:this.getChainId()}):this._perform(er({method:e},r))}send(e,r){return this.perform(e,r)}request(e){return this.perform(e.method,e.params)}async _detectNetwork(){const e=this.client.getChainId(),r=Rs(this.networks,e);if(!r)throw new Error(`Unknown network ${e}`);return new ot(r.name,r.chainId)}async detectNetwork(){return this._detectNetwork()}async waitForTransaction(e,r,n,s){return(await this._getSubprovider(s==null?void 0:s.chainId)).waitForTransaction(e,r,n)}async getBlockNumber(e){return(await this._getSubprovider(e==null?void 0:e.chainId)).getBlockNumber()}async getFeeData(e){return(await this._getSubprovider(e==null?void 0:e.chainId)).getFeeData()}async getBalance(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getBalance(e,r)}async getTransactionCount(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getTransactionCount(e,r)}async getCode(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getCode(e,r)}async getStorage(e,r,n,s){return(await this._getSubprovider(s==null?void 0:s.chainId)).getStorage(e,r,n)}async call(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).call(e)}async estimateGas(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).estimateGas(e)}async getBlock(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getBlock(e,r)}async getTransaction(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).getTransaction(e)}async getLogs(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).getLogs(e)}async supportsENS(){return(await this.getNetworks()).some(r=>r.chainId===1)}async getResolver(e){return await this.supportsENS()?(await this._getSubprovider(1)).getResolver(e):null}async resolveName(e){return PN(e)?e:await this.supportsENS()?(await this._getSubprovider(1)).resolveName(e):null}async lookupAddress(e){return await this.supportsENS()?(await this._getSubprovider(1)).lookupAddress(e):null}async getAvatar(e){return await this.supportsENS()?(await this._getSubprovider(1)).getAvatar(e):null}}Sd.is=t=>t&&typeof t=="object"&&t._isSequenceProvider===!0;function RF(t){return typeof t=="object"?RF(t.chainId):Number(t)}class NF extends Sd{constructor(e,r,n,s){super(e,r,void 0,s),this.chainId=n,this._isSingleNetworkSequenceProvider=!0}_useChainId(e){const r=this.toChainId(e);if(r&&r!==this.chainId)throw new Error(`This provider only supports the network ${this.chainId}, but ${r} was requested.`);return r||super.toChainId(this.chainId)}useChainId(e){return Promise.resolve(this._useChainId(e))}getChainId(){return super.toChainId(this.chainId)}async getNetwork(){const e=await this.client.getNetworks(),r=Rs(e,this.chainId);if(!r)throw new Error(`Unsupported network ${this.chainId}`);return new ot(r.name,r.chainId)}getProvider(e){if(this._useChainId(e)!==this.chainId)throw new Error("Unreachable code");return this}getSigner(e){return super.getSigner(this._useChainId(e))}setDefaultChainId(e){throw new Error(`This provider only supports the network ${this.chainId}; use the parent provider to switch networks.`)}static is(e){return e&&typeof e=="object"&&e._isSingleNetworkSequenceProvider===!0}}class Yfe extends wfe{}const Xfe=(t,e)=>{e||(e="https://nodes.sequence.app");const r=!t,n={};return t&&(n.headers={"X-Access-Key":t}),new Yfe(e,n,{noop:r,defaultEnabled:!0,privacy:{userIdHash:!0,userAgentSalt:!1},initProps:()=>Ki()?{origin:window.location.origin}:{}})};class rl{constructor(e){this.store=e}connectedSession(){const e=this.getSession();if(e&&e.accountAddress&&e.walletContext&&e.networks)return{accountAddress:e.accountAddress,walletContext:e.walletContext,networks:e.networks};throw new Error("Sequence session not connected")}hasSession(){var e;return((e=this.getSession())==null?void 0:e.accountAddress)!==void 0}setSession(e){return this.store.setItem(rl.SESSION_LOCALSTORE_KEY,JSON.stringify(e))}getSession(){const e=this.store.getItem(rl.SESSION_LOCALSTORE_KEY);if(e)return JSON.parse(e)}async clearSession(){return this.store.removeItem(rl.SESSION_LOCALSTORE_KEY)}}rl.SESSION_LOCALSTORE_KEY="@sequence.session";class nl{constructor(e,r=1){this.store=e,this.startingChainId=r,this.callbacks=[],e.onItemChange(nl.SESSION_CHAIN_ID_KEY,n=>{if(n){const s=parseInt(n);this.callbacks.forEach(i=>i(s))}})}onDefaultChainIdChanged(e){return this.callbacks.push(e),()=>{this.callbacks=this.callbacks.filter(r=>r!==e)}}setDefaultChainId(e){e!==this.getDefaultChainId()&&this.store.setItem(nl.SESSION_CHAIN_ID_KEY,e.toString())}getDefaultChainId(){const e=this.store.getItem(nl.SESSION_CHAIN_ID_KEY);return!e||e.length===0?this.startingChainId:parseInt(e)}}nl.SESSION_CHAIN_ID_KEY="@sequence.session.defaultChainId";class jk{constructor(e,r,n){var s,i;if(this.session=void 0,this.defaultChainId=void 0,this.callbacks={},this.transport=void 0,this.defaultEIP6492=void 0,this.projectAccessKey=void 0,this.analytics=void 0,OF(e))this.transport=hm.new(e);else if(yF(e))this.transport=e;else throw new Error("Invalid transport");const o=n==null?void 0:n.defaultChainId;if(this.defaultEIP6492=(s=n==null?void 0:n.defaultEIP6492)!=null?s:!1,this.session=new rl(r),this.defaultChainId=new nl(r,o),this.transport.on("accountsChanged",l=>{var u;l.length>1&&console.warn("SequenceClient: wallet-webapp returned more than one account"),(u=this.callbacks.accountsChanged)==null||u.forEach(f=>f(l))}),this.transport.on("connect",l=>{var u;const f=pr(this.getChainId());(u=this.callbacks.connect)==null||u.forEach(d=>d(er({},l,{chainId:f})))}),this.transport.on("disconnect",(l,u)=>{var f;(f=this.callbacks.disconnect)==null||f.forEach(d=>d(l,u))}),this.transport.on("networks",l=>{var u;(u=this.callbacks.networks)==null||u.forEach(f=>f(l))}),this.transport.on("walletContext",l=>{var u;(u=this.callbacks.walletContext)==null||u.forEach(f=>f(l))}),this.transport.on("open",l=>{var u;(u=this.callbacks.open)==null||u.forEach(f=>f(l))}),this.transport.on("close",()=>{var l;(l=this.callbacks.close)==null||l.forEach(u=>u())}),this.transport.on("chainChanged",(l,u)=>{var f;(f=this.callbacks.chainChanged)==null||f.forEach(d=>d(l,u))}),this.defaultChainId.onDefaultChainIdChanged(l=>{var u;const f=pr(l);(u=this.callbacks.chainChanged)==null||u.forEach(d=>d(f))}),n!=null&&n.projectAccessKey&&(this.projectAccessKey=n.projectAccessKey),this.projectAccessKey&&n!=null&&n.analytics&&(this.analytics=Xfe(this.projectAccessKey)),(i=this.session.getSession())!=null&&i.accountAddress){var a,c;(a=this.analytics)==null||a.identify((c=this.session.getSession())==null||(c=c.accountAddress)==null?void 0:c.toLowerCase())}}registerCallback(e,r){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(r),()=>{this.callbacks[e]=this.callbacks[e].filter(n=>n!==r)}}onOpen(e){return this.registerCallback("open",e)}onClose(e){return this.registerCallback("close",e)}onConnect(e){return this.registerCallback("connect",e)}onDisconnect(e){return this.registerCallback("disconnect",e)}onNetworks(e){return this.registerCallback("networks",e)}onAccountsChanged(e){return this.registerCallback("accountsChanged",e)}onWalletContext(e){return this.registerCallback("walletContext",e)}onChainChanged(e){return this.registerCallback("chainChanged",e)}onDefaultChainIdChanged(e){return this.registerCallback("chainChanged",e)}getChainId(){return this.defaultChainId.getDefaultChainId()}setDefaultChainId(e){return this.defaultChainId.setDefaultChainId(e)}async openWallet(e,r){return this.transport.openWallet(e,r,this.getChainId()),await this.transport.waitUntilOpened(),this.isOpened()}closeWallet(){return this.transport.closeWallet()}isOpened(){return this.transport.isOpened()}isConnected(){return this.session.hasSession()}getSession(){return this.session.getSession()}getAddress(){return this.session.connectedSession().accountAddress}async connect(e){if((e==null?void 0:e.authorizeVersion)===void 0&&(e.authorizeVersion=2),(e==null?void 0:e.refresh)===!0&&this.disconnect(),e.projectAccessKey=this.projectAccessKey,e&&e.authorize){if(!e.app)throw new Error("connecting with 'authorize' option also requires 'app' to be set");e.authorizeVersion===void 0&&(e.authorizeVersion=2)}await this.openWallet(void 0,{type:"connect",options:er({},e,{networkId:this.getChainId(),clientVersion:Ur})});const r=await this.transport.waitUntilConnected().catch(i=>i instanceof Error?{connected:!1,error:i.message}:{connected:!1,error:JSON.stringify(i)});if(r.chainId&&(r.chainId=BigInt(r.chainId).toString()),r.connected){var n;if(!r.session)throw new Error("impossible state, connect response is missing session");if(this.session.setSession(r.session),(n=r.session)!=null&&n.accountAddress){var s;(s=this.analytics)==null||s.identify(r.session.accountAddress.toLowerCase())}}return r}disconnect(){var e;return this.isOpened()&&this.closeWallet(),(e=this.analytics)==null||e.reset(),this.session.clearSession()}async request(e){return e.method=this.mapSignMethod(e.method),this.transport.request(e)}async getNetworks(e){const r=this.session.connectedSession();return e&&(r.networks=await this.request({method:"sequence_getNetworks"}),this.session.setSession(r)),r.networks}signMethod(e){return(e==null?void 0:e.eip6492)===void 0?"personal_sign":e.eip6492?"sequence_sign":"legacy_sign"}signTypedDataMethod(e){return(e==null?void 0:e.eip6492)===void 0?"eth_signTypedData_v4":e.eip6492?"sequence_signTypedData_v4":"legacy_signTypedData_v4"}mapSignMethod(e){return e==="personal_sign"?this.defaultEIP6492?"sequence_sign":"personal_sign":e==="eth_signTypedData_v4"?this.defaultEIP6492?"sequence_signTypedData_v4":"eth_signTypedData_v4":e==="legacy_sign"?"personal_sign":e==="legacy_signTypedData_v4"?"eth_signTypedData_v4":e}async signMessage(e,r){var n;const s=this.signMethod(r);return(n=this.analytics)==null||n.track({event:"SIGN_MESSAGE_REQUEST",props:{chainId:`${(r==null?void 0:r.chainId)||this.getChainId()}`}}),e=H(Dk(e)),this.request({method:s,params:[e,this.getAddress()],chainId:r==null?void 0:r.chainId})}async signTypedData(e,r){var n;const s=this.signTypedDataMethod(r),i=Ds.getPayload(e.domain,e.types,e.message);return(n=this.analytics)==null||n.track({event:"SIGN_TYPED_DATA_REQUEST",props:{chainId:`${(r==null?void 0:r.chainId)||this.getChainId()}`}}),this.request({method:s,params:[this.getAddress(),i],chainId:(r==null?void 0:r.chainId)||e.domain.chainId&&Number(e.domain.chainId)||this.getChainId()})}async sendTransaction(e,r){var n;const s=Array.isArray(e)?e:[e],i=Vfe(s);return(n=this.analytics)==null||n.track({event:"SEND_TRANSACTION_REQUEST",props:{chainId:`${(r==null?void 0:r.chainId)||this.getChainId()}`}}),this.request({method:"eth_sendTransaction",params:[i],chainId:r==null?void 0:r.chainId})}async getWalletContext(){return this.request({method:"sequence_getWalletContext"})}async getOnchainWalletConfig(e){const r=await this.request({method:"sequence_getWalletConfig",params:[(e==null?void 0:e.chainId)||this.getChainId()],chainId:e==null?void 0:e.chainId});return Array.isArray(r)?r[0]:r}}const G2={transports:{walletAppURL:"https://sequence.app",windowTransport:{enabled:!0},proxyTransport:{enabled:!1}},defaultNetwork:1,analytics:!0};let ci;const _F=(t,e)=>{var r,n,s;if(!t||typeof t!="string")throw new Error("Please pass a projectAccessKey in initWallet.");if(ci)return ci;const i=er({},G2,e,{transports:er({},G2.transports,e==null?void 0:e.transports)}),o={},a=(r=(n=i.networks)==null?void 0:n.filter(h=>{h.rpcUrl!==void 0&&h.chainId!==void 0&&sd.find(y=>y.chainId===h.chainId)}))!=null?r:[],c=sd.map(h=>{var y;const p=(y=i.networks)==null?void 0:y.find(b=>b.chainId===h.chainId);return p?er({},h,p):h}).concat(a).map(h=>(h.rpcUrl.includes(t)||(h.rpcUrl=h.rpcUrl+`/${t}`),h)),l=h=>{if(!o[h]){var y;const p=(y=c.find(b=>b.chainId===h))==null?void 0:y.rpcUrl;if(!p)throw new Error(`no rpcUrl found for chainId: ${h}`);o[h]=new VM(p,{middlewares:[UM,FM,new ik]},{cacheTimeout:-1})}return o[h]},u=i.defaultNetwork?(s=Rs(c,i.defaultNetwork))==null?void 0:s.chainId:void 0;if(!u&&i.defaultNetwork)throw new Error(`defaultNetwork not found for chainId: ${i.defaultNetwork}`);const f=i.localStorage||Iv(),d=new jk(i.transports,f,{defaultChainId:u,defaultEIP6492:i.defaultEIP6492,projectAccessKey:t,analytics:i.analytics});return ci=new Sd(d,l),ci},MF=()=>{ci&&(ci.client.closeWallet(),ci.client.transport.unregister(),ci=void 0)},DF=()=>{if(!ci)throw new Error("Wallet has not been initialized, call sequence.initWallet(config) first.");return ci},Zfe=Object.freeze(Object.defineProperty({__proto__:null,BaseInjectedTransport:Ufe,BaseProviderTransport:O1,BaseWalletTransport:R1,CHANNEL_ID:Bk,DefaultChainIdTracker:nl,DefaultProviderConfig:G2,ErrSignedInRequired:gF,EventType:Ue,ExtensionMessageHandler:Ffe,ExtensionMessageProvider:PF,InitState:dt,LocalStorage:_0,MemoryItemStore:EF,MuxMessageProvider:hm,OpenState:Kn,PROVIDER_OPEN_TIMEOUT:Mk,ProviderError:vF,ProxyMessageChannel:Bfe,ProxyMessageChannelPort:z2,ProxyMessageHandler:Lfe,ProxyMessageProvider:AF,SequenceClient:jk,SequenceClientSession:rl,SequenceProvider:Sd,SequenceSigner:Ad,SingleNetworkSequenceProvider:NF,SingleNetworkSequenceSigner:Lk,UnrealMessageHandler:jfe,UnrealMessageProvider:TF,WalletRequestHandler:Gfe,WindowMessageHandler:$fe,WindowMessageProvider:IF,WindowSessionParams:I1,getWallet:DF,initWallet:_F,isBrowserExtension:Pv,isMuxTransportTemplate:OF,isProviderTransport:yF,isUnityPlugin:wF,isValidMessageSignature:xF,isValidSignature:od,isValidTypedDataSignature:bF,isWalletUpToDate:CF,messageToBytes:Dk,nextMessageIdx:mF,prefixEIP191Message:dm,resolveArrayProperties:kF,trimEIP191Prefix:Dfe,unregisterWallet:MF,useBestStore:Iv,validateTransactionRequest:H2},Symbol.toStringTag,{value:"Module"}));function en(t,e){return e.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in t)){var s=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(t)}var ede=en({__proto__:null},[Doe]),tde=en({__proto__:null},[Voe]),rde=en({__proto__:null},[Eue]),nde=en({__proto__:null},[$ue]),sde=en({__proto__:null},[vle]),ide=en({__proto__:null},[Ple]),ode=en({__proto__:null},[jae]),ade=en({__proto__:null},[Zfe]),cde=en({__proto__:null},[Yce]);const lde=ye.transaction;var ude=Object.freeze({__proto__:null,transactions:lde}),fde=en({__proto__:null,isValidSignature:od,isValidMessageSignature:xF,isValidTypedDataSignature:bF,isWalletUpToDate:CF},[Aae]),dde=en({__proto__:null},[Pce]),hde=en({__proto__:null},[Xce]),pde=en({__proto__:null},[bue]),yde=en({__proto__:null},[Mce]),vde=en({__proto__:null},[nle]),ze=Object.freeze({__proto__:null,abi:ede,api:tde,auth:rde,guard:nde,indexer:sde,metadata:ide,network:ode,provider:ade,relayer:cde,transactions:ude,utils:fde,core:dde,signhub:hde,sessions:pde,migration:yde,account:vde,initWallet:_F,getWallet:DF,unregisterWallet:MF,SequenceProvider:Sd,SequenceClient:jk,SequenceSigner:Ad});const P3=[{constant:!1,inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"}];var gde="_1e9z9271";const mde=({message:t,loading:e})=>{const r=()=>t?` -...`:"...";return ie.jsx(Vq,{label:"Console",defaultOpen:!0,children:ie.jsxs(me,{as:"pre",color:"text80",style:{fontFamily:"monospace",whiteSpace:"break-spaces",overflowWrap:"anywhere"},children:[t,e&&r(),ie.jsx(me,{className:gde,display:"inline-block",fontSize:"large",lineHeight:"4",style:{top:"-4px",position:"relative"},children:"_"})]})})};var xde="_1q07ov40";const To=t=>{const{label:e,children:r,style:n,className:s}=t;return ie.jsxs(me,{marginTop:"10",marginBottom:"8",marginX:"0",width:"full",className:s,style:n,children:[e&&ie.jsx(me,{marginBottom:"2",children:ie.jsx(bde,{children:e})}),ie.jsx(me,{className:xde,children:$r.Children.map(r,(i,o)=>ie.jsx(me,{children:i},o))})]})},bde=t=>ie.jsx(Tt,{variant:"normal",fontWeight:"medium",color:"text50",children:t.children}),wde=()=>{const t=window.localStorage.getItem("defaultChainId");return t==null?null:Number(t)},I3=t=>"0x"+t.toString(16),Cde="/demo-dapp/assets/logo-EKCqYZBG.svg",O3="/demo-dapp/assets/skyweaver-banner-AT9gQtXT.png",Ede="/demo-dapp/assets/skyweaver-banner-large-Dt2dVXke.png",R3="AQAAAAAAAAbvrgpWEC2Aefg5qYStQmwjBpA";mM({logLevel:"DEBUG"});const BF=[{name:"production",walletUrl:"https://sequence.app"},{name:"development",walletUrl:"https://dev.sequence.app"},{name:"local",walletUrl:"http://localhost:3333"}],kde="https://api.sequence.app",N3=wde()||L.MAINNET,wc=new URLSearchParams(window.location.search),LF=wc.get("env")??"production",Ade=BF.find(t=>t.name===LF),yu=wc.get("walletAppURL")??Ade.walletUrl,Sde=wc.has("showProhibitedActions");yu&&yu.length>0?ze.initWallet(R3,{defaultNetwork:N3,transports:{walletAppURL:yu}}):ze.initWallet(R3,{defaultNetwork:N3,transports:{walletAppURL:yu}});const Tde=()=>{const[t,e]=m.useState(null),[r,n]=m.useState(null),[s,i]=m.useState(!1),[o,a]=m.useState(!1),c=ze.getWallet().getProvider(),[l,u]=m.useState(c.getChainId()),[f,d]=m.useState(!1),[h,y]=m.useState(!1);m.useMemo(()=>{c.on("chainChanged",U=>{u(Number(BigInt(U)))})},[]),m.useEffect(()=>{a(c.isConnected())},[c]),m.useEffect(()=>{de()},[o]),m.useEffect(()=>{c.client.onOpen(()=>{console.log("wallet window opened")}),c.client.onClose(()=>{console.log("wallet window closed")})},[c]);const p={app:"Demo Dapp",askForEmail:!0},b=async(U={app:"Demo dapp"})=>{if(o){ue(),K("Wallet already connected!"),i(!1);return}U={...p,...U,settings:{...p.settings,...U.settings}};try{ue(),K("Connecting");const se=ze.getWallet(),ae=await se.connect(U);if(U.authorize&&ae.connected){let Oe=wc.get("apiUrl");(!Oe||Oe.length===0)&&(Oe=kde);const rt=new ze.api.SequenceAPIClient(Oe),{isValid:Ut}=await rt.isValidETHAuthProof({chainId:ae.chainId,walletAddress:ae.session.accountAddress,ethAuthProofString:ae.proof.proofString});K(`isValid (API)?: ${Ut}`)}if(U.authorize){const Oe=new vv;if(ae.proof){const rt=await Oe.decodeProof(ae.proof.proofString,!0),Ut=await se.utils.isValidTypedDataSignature(se.getAddress(),ae.proof.typedData,rt.signature,Number(BigInt(ae.chainId)));K(`connected using chainId: ${BigInt(ae.chainId).toString()}`),K(`isValid (client)?: ${Ut}`)}}i(!1),ae.connected?(K("Wallet connected!"),K(`shared email: ${ae.email}`),a(!0)):K("Failed to connect wallet - "+ae.error)}catch(se){console.error(se),oe()}},v=()=>{ze.getWallet().disconnect(),de(),a(!1)},g=()=>{ze.getWallet().openWallet()},x=()=>{const U=ze.getWallet(),ae={type:"openWithOptions",options:{app:"Demo Dapp",settings:{theme:"light",includedPaymentProviders:["moonpay","ramp"],defaultFundingCurrency:"eth",defaultPurchaseAmount:400,lockFundingCurrencyToDefault:!1}}};U.openWallet("wallet/add-funds",ae)},k=()=>{ze.getWallet().closeWallet()},S=async()=>{ue();const U=ze.getWallet();K(`isConnected?: ${U.isConnected()}`),i(!1)},I=async()=>{ue();const U=ze.getWallet();K(`isOpened?: ${U.isOpened()}`),i(!1)},R=async()=>{try{ue();const U=c.getChainId();K(`top chainId: ${U}`);const ae=c.getProvider().getChainId();K(`provider.getChainId(): ${ae}`);const rt=await c.getSigner().getChainId();K(`signer.getChainId(): ${rt}`),i(!1)}catch(U){console.error(U),oe()}},_=async()=>{try{ue();const U=ze.getWallet(),se=U.getAddress();K(`getAddress(): ${se}`);const Oe=U.getProvider().listAccounts();K(`accounts: ${JSON.stringify(Oe)}`),i(!1)}catch(U){console.error(U),oe()}},V=async()=>{try{ue();const U=ze.getWallet(),se=U.getProvider(),ae=U.getAddress(),Oe=await se.getBalance(ae);K(`balance check 1: ${Oe.toString()}`);const Ut=await U.getSigner().getBalance();K(`balance check 2: ${Ut.toString()}`),i(!1)}catch(U){console.error(U),oe()}},F=async()=>{try{ue();const se=await ze.getWallet().getNetworks();K(`networks: ${JSON.stringify(se,null,2)}`),i(!1)}catch(U){console.error(U),oe()}},X=async()=>{try{ue();const U=ze.getWallet();K("signing message...");const se=U.getSigner(),ae=`1915 Robert Frost + */(function(t,e){(function(r){var n=Object.hasOwnProperty,s=Array.isArray?Array.isArray:function(A){return Object.prototype.toString.call(A)==="[object Array]"},i=10,o=typeof process=="object"&&typeof process.nextTick=="function",a=typeof Symbol=="function",c=typeof Reflect=="object",l=typeof setImmediate=="function",u=l?setImmediate:setTimeout,f=a?c&&typeof Reflect.ownKeys=="function"?Reflect.ownKeys:function(C){var A=Object.getOwnPropertyNames(C);return A.push.apply(A,Object.getOwnPropertySymbols(C)),A}:Object.keys;function d(){this._events={},this._conf&&h.call(this,this._conf)}function h(C){C&&(this._conf=C,C.delimiter&&(this.delimiter=C.delimiter),C.maxListeners!==r&&(this._maxListeners=C.maxListeners),C.wildcard&&(this.wildcard=C.wildcard),C.newListener&&(this._newListener=C.newListener),C.removeListener&&(this._removeListener=C.removeListener),C.verboseMemoryLeak&&(this.verboseMemoryLeak=C.verboseMemoryLeak),C.ignoreErrors&&(this.ignoreErrors=C.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function y(C,A){var O="(node) warning: possible EventEmitter memory leak detected. "+C+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(O+=" Event name: "+A+"."),typeof process<"u"&&process.emitWarning){var M=new Error(O);M.name="MaxListenersExceededWarning",M.emitter=this,M.count=C,process.emitWarning(M)}else console.error(O),console.trace&&console.trace()}var p=function(C,A,O){var M=arguments.length;switch(M){case 0:return[];case 1:return[C];case 2:return[C,A];case 3:return[C,A,O];default:for(var B=new Array(M);M--;)B[M]=arguments[M];return B}};function b(C,A){for(var O={},M,B=C.length,W=0,q=0;q0;)C=W[J],q.call(te,C,O[C]);this._listeners={},this._listenersCount=0,$()}}});function g(C,A,O,M){var B=Object.assign({},A);if(!C)return B;if(typeof C!="object")throw TypeError("options must be an object");var W=Object.keys(C),q=W.length,te,J,$;function K(de){throw Error('Invalid "'+te+'" option value'+(de?". Reason: "+de:""))}for(var ue=0;ue0;)if(te===C[J])return W;q(A)}}var S=k(["function"]),I=k(["object","function"]);function R(C,A,O){var M,B,W=0,q,te=new C(function(J,$,K){O=g(O,{timeout:0,overload:!1},{timeout:function(Ce,Re){return Ce*=1,(typeof Ce!="number"||Ce<0||!Number.isFinite(Ce))&&Re("timeout must be a positive number"),Ce}}),M=!O.overload&&typeof C.prototype.cancel=="function"&&typeof K=="function";function ue(){B&&(B=null),W&&(clearTimeout(W),W=0)}var de=function(Ce){ue(),J(Ce)},oe=function(Ce){ue(),$(Ce)};M?A(de,oe,K):(B=[function(Ce){oe(Ce||Error("canceled"))}],A(de,oe,function(Ce){if(q)throw Error("Unable to subscribe on cancel event asynchronously");if(typeof Ce!="function")throw TypeError("onCancel callback must be a function");B.push(Ce)}),q=!0),O.timeout>0&&(W=setTimeout(function(){var Ce=Error("timeout");Ce.code="ETIMEDOUT",W=0,te.cancel(Ce),$(Ce)},O.timeout))});return M||(te.cancel=function(J){if(B){for(var $=B.length,K=1;K<$;K++)B[K](J);B[0](J),B=null}}),te}function _(C){var A=this._observers;if(!A)return-1;for(var O=A.length,M=0;M0;)oe=se[te],oe!=="_listeners"&&(ae=V(C,A,O[oe],M+1,B),ae&&(de?de.push.apply(de,ae):de=ae));return de}else if(br==="**"){for(tn=M+1===B||M+2===B&&U==="*",tn&&O._listeners&&(de=V(C,A,O,B,B)),se=f(O),te=se.length;te-- >0;)oe=se[te],oe!=="_listeners"&&(oe==="*"||oe==="**"?(O[oe]._listeners&&!tn&&(ae=V(C,A,O[oe],B,B),ae&&(de?de.push.apply(de,ae):de=ae)),ae=V(C,A,O[oe],M,B)):oe===U?ae=V(C,A,O[oe],M+2,B):ae=V(C,A,O[oe],M,B),ae&&(de?de.push.apply(de,ae):de=ae));return de}else O[br]&&(de=V(C,A,O[br],M+1,B));if(Ce=O["*"],Ce&&V(C,A,Ce,M+1,B),Re=O["**"],Re)if(M0;)oe=se[te],oe!=="_listeners"&&(oe===U?V(C,A,Re[oe],M+2,B):oe===br?V(C,A,Re[oe],M+1,B):(xt={},xt[oe]=Re[oe],V(C,A,{"**":xt},M+1,B)));else Re._listeners?V(C,A,Re,B,B):Re["*"]&&Re["*"]._listeners&&V(C,A,Re["*"],B,B);return de}function F(C,A,O){var M=0,B=0,W,q=this.delimiter,te=q.length,J;if(typeof C=="string")if((W=C.indexOf(q))!==-1){J=new Array(5);do J[M++]=C.slice(B,W),B=W+te;while((W=C.indexOf(q,B))!==-1);J[M++]=C.slice(B)}else J=[C],M=1;else J=C,M=C.length;if(M>1){for(W=0;W+10&&$._listeners.length>this._maxListeners&&($._listeners.warned=!0,y.call(this,$._listeners.length,K))):$._listeners=A,!0;return!0}function X(C,A,O,M){for(var B=f(C),W=B.length,q,te,J,$=C._listeners,K;W-- >0;)te=B[W],q=C[te],te==="_listeners"?J=O:J=O?O.concat(te):[te],K=M||typeof te=="symbol",$&&A.push(K?J:J.join(this.delimiter)),typeof q=="object"&&X.call(this,q,A,J,K);return A}function re(C){for(var A=f(C),O=A.length,M,B,W;O-- >0;)B=A[O],M=C[B],M&&(W=!0,B!=="_listeners"&&!re(M)&&delete C[B]);return W}function le(C,A,O){this.emitter=C,this.event=A,this.listener=O}le.prototype.off=function(){return this.emitter.off(this.event,this.listener),this};function ee(C,A,O){if(O===!0)B=!0;else if(O===!1)M=!0;else{if(!O||typeof O!="object")throw TypeError("options should be an object or true");var M=O.async,B=O.promisify,W=O.nextTick,q=O.objectify}if(M||W||B){var te=A,J=A._origin||A;if(W&&!o)throw Error("process.nextTick is not supported");B===r&&(B=A.constructor.name==="AsyncFunction"),A=function(){var $=arguments,K=this,ue=this.event;return B?W?Promise.resolve():new Promise(function(de){u(de)}).then(function(){return K.event=ue,te.apply(K,$)}):(W?process.nextTick:u)(function(){K.event=ue,te.apply(K,$)})},A._async=!0,A._origin=J}return[A,q?new le(this,C,A):this]}function D(C){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,h.call(this,C)}D.EventEmitter2=D,D.prototype.listenTo=function(C,A,O){if(typeof C!="object")throw TypeError("target musts be an object");var M=this;O=g(O,{on:r,off:r,reducers:r},{on:S,off:S,reducers:I});function B(W){if(typeof W!="object")throw TypeError("events must be an object");var q=O.reducers,te=_.call(M,C),J;te===-1?J=new v(M,C,O):J=M._observers[te];for(var $=f(W),K=$.length,ue,de=typeof q=="function",oe=0;oe0;)B=O[M],(!C||B._target===C)&&(B.unsubscribe(A),W=!0);return W},D.prototype.delimiter=".",D.prototype.setMaxListeners=function(C){C!==r&&(this._maxListeners=C,this._conf||(this._conf={}),this._conf.maxListeners=C)},D.prototype.getMaxListeners=function(){return this._maxListeners},D.prototype.event="",D.prototype.once=function(C,A,O){return this._once(C,A,!1,O)},D.prototype.prependOnceListener=function(C,A,O){return this._once(C,A,!0,O)},D.prototype._once=function(C,A,O,M){return this._many(C,1,A,O,M)},D.prototype.many=function(C,A,O,M){return this._many(C,A,O,!1,M)},D.prototype.prependMany=function(C,A,O,M){return this._many(C,A,O,!0,M)},D.prototype._many=function(C,A,O,M,B){var W=this;if(typeof O!="function")throw new Error("many only accepts instances of Function");function q(){return--A===0&&W.off(C,q),O.apply(this,arguments)}return q._origin=O,this._on(C,q,M,B)},D.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||d.call(this);var C=arguments[0],A,O=this.wildcard,M,B,W,q,te;if(C==="newListener"&&!this._newListener&&!this._events.newListener)return!1;if(O&&(A=C,C!=="newListener"&&C!=="removeListener"&&typeof C=="object")){if(B=C.length,a){for(W=0;W3)for(M=new Array(J-1),q=1;q3)for(B=new Array($-1),te=1;te<$;te++)B[te-1]=arguments[te];for(q=0,W=K.length;q0&&this._events[C].length>this._maxListeners&&(this._events[C].warned=!0,y.call(this,this._events[C].length,C))):this._events[C]=A,B)},D.prototype.off=function(C,A){if(typeof A!="function")throw new Error("removeListener only takes instances of Function");var O,M=[];if(this.wildcard){var B=typeof C=="string"?C.split(this.delimiter):C.slice();if(M=V.call(this,null,B,this.listenerTree,0),!M)return this}else{if(!this._events[C])return this;O=this._events[C],M.push({_listeners:O})}for(var W=0;W0){for(M=this._all,A=0,O=M.length;A0;)M=A[O[W]],typeof M=="function"?B.push(M):B.push.apply(B,M);return B}else{if(this.wildcard){if(q=this.listenerTree,!q)return[];var te=[],J=typeof C=="string"?C.split(this.delimiter):C.slice();return V.call(this,te,J,q,0),te}return A?(M=A[C],M?typeof M=="function"?[M]:M:[]):[]}},D.prototype.eventNames=function(C){var A=this._events;return this.wildcard?X.call(this,this.listenerTree,[],null,C):A?f(A):[]},D.prototype.listenerCount=function(C){return this.listeners(C).length},D.prototype.hasListeners=function(C){if(this.wildcard){var A=[],O=typeof C=="string"?C.split(this.delimiter):C.slice();return V.call(this,A,O,this.listenerTree,0),A.length>0}var M=this._events,B=this._all;return!!(B&&B.length||M&&(C===r?f(M).length:M[C]))},D.prototype.listenersAny=function(){return this._all?this._all:[]},D.prototype.waitFor=function(C,A){var O=this,M=typeof A;return M==="number"?A={timeout:A}:M==="function"&&(A={filter:A}),A=g(A,{timeout:0,filter:r,handleError:!1,Promise,overload:!1},{filter:S,Promise:x}),R(A.Promise,function(B,W,q){function te(){var J=A.filter;if(!(J&&!J.apply(O,arguments)))if(O.off(C,te),A.handleError){var $=arguments[0];$?W($):B(p.apply(null,arguments).slice(1))}else B(p.apply(null,arguments))}q(function(){O.off(C,te)}),O._on(C,te,!1)},{timeout:A.timeout,overload:A.overload})};function G(C,A,O){O=g(O,{Promise,timeout:0,overload:!1},{Promise:x});var M=O.Promise;return R(M,function(B,W,q){var te;if(typeof C.addEventListener=="function"){te=function(){B(p.apply(null,arguments))},q(function(){C.removeEventListener(A,te)}),C.addEventListener(A,te,{once:!0});return}var J=function(){$&&C.removeListener("error",$),B(p.apply(null,arguments))},$;A!=="error"&&($=function(K){C.removeListener(A,J),W(K)},C.once("error",$)),q(function(){$&&C.removeListener("error",$),C.removeListener(A,J)}),C.once(A,J)},{timeout:O.timeout,overload:O.overload})}var Z=D.prototype;Object.defineProperties(D,{defaultMaxListeners:{get:function(){return Z._maxListeners},set:function(C){if(typeof C!="number"||C<0||Number.isNaN(C))throw TypeError("n must be a non-negative number");Z._maxListeners=C},enumerable:!0},once:{value:G,writable:!0,configurable:!0}}),Object.defineProperties(Z,{_maxListeners:{value:i,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),t.exports=D})()})(Kj);var hm=Kj.exports;function Hue(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function Dk(t,...e){if(!Hue(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`)}function C3(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function zue(t,e){Dk(t);const r=e.outputLen;if(t.lengthnew DataView(t.buffer,t.byteOffset,t.byteLength),Vs=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];const Gue=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function que(t){Dk(t);let e="";for(let r=0;rt().update(Qj(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function Yue(t,e,r,n){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,r,n);const s=BigInt(32),i=BigInt(4294967295),o=Number(r>>s&i),a=Number(r&i),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}const Xue=(t,e,r)=>t&e^~t&r,Zue=(t,e,r)=>t&e^t&r^e&r;class efe extends Que{constructor(e,r,n,s){super(),this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=s,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=Qx(this.buffer)}update(e){C3(this);const{view:r,buffer:n,blockLen:s}=this;e=Qj(e);const i=e.length;for(let o=0;os-o&&(this.process(n,0),o=0);for(let f=o;fu.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;f>>3,p=Vs(h,17)^Vs(h,19)^h>>>10;To[f]=p+To[f-7]+y+To[f-16]|0}let{A:n,B:s,C:i,D:o,E:a,F:c,G:l,H:u}=this;for(let f=0;f<64;f++){const d=Vs(a,6)^Vs(a,11)^Vs(a,25),h=u+d+Xue(a,c,l)+tfe[f]+To[f]|0,p=(Vs(n,2)^Vs(n,13)^Vs(n,22))+Zue(n,s,i)|0;u=l,l=c,c=a,a=o+h|0,o=i,i=s,s=n,n=h+p|0}n=n+this.A|0,s=s+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(n,s,i,o,a,c,l,u)}roundClean(){To.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const nfe=Jue(()=>new rfe);var sfe=class{constructor(t,e){N(this,"hostname");N(this,"fetch");N(this,"path","/rpc/Databeat/");N(this,"ping",(t,e)=>this.fetch(this.url("Ping"),zd({},t,e)).then(r=>Gd(r).then(n=>({status:n.status})),r=>{throw Jl.new({cause:`fetch(): ${r.message||""}`})}));N(this,"version",(t,e)=>this.fetch(this.url("Version"),zd({},t,e)).then(r=>Gd(r).then(n=>({version:n.version})),r=>{throw Jl.new({cause:`fetch(): ${r.message||""}`})}));N(this,"runtimeStatus",(t,e)=>this.fetch(this.url("RuntimeStatus"),zd({},t,e)).then(r=>Gd(r).then(n=>({status:n.status})),r=>{throw Jl.new({cause:`fetch(): ${r.message||""}`})}));N(this,"tick",(t,e,r)=>this.fetch(this.url("Tick"),zd(t,e,r)).then(n=>Gd(n).then(s=>({ok:s.ok})),n=>{throw Jl.new({cause:`fetch(): ${n.message||""}`})}));N(this,"rawEvents",(t,e,r)=>this.fetch(this.url("RawEvents"),zd(t,e,r)).then(n=>Gd(n).then(s=>({ok:s.ok})),n=>{throw Jl.new({cause:`fetch(): ${n.message||""}`})}));this.hostname=t,this.fetch=(r,n)=>e(r,n)}url(t){return this.hostname+this.path+t}},zd=(t={},e={},r=null)=>({method:"POST",headers:{...e,"Content-Type":"application/json"},body:JSON.stringify(t||{}),signal:r}),Gd=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),rF.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(wfe[n]||Qt).new(r)}return r}),Qt=class Jj extends Error{constructor(r,n,s,i,o){super(s);N(this,"name");N(this,"code");N(this,"message");N(this,"status");N(this,"cause");N(this,"msg");this.name=r||"WebrpcError",this.code=typeof n=="number"?n:0,this.message=s||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof i=="number"?i:0,this.cause=o,Object.setPrototypeOf(this,Jj.prototype)}static new(r){return new this(r.error,r.code,r.message||r.msg,r.status,r.cause)}},ife=class Yj extends Qt{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Yj.prototype)}},Jl=class Xj extends Qt{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Xj.prototype)}},ofe=class Zj extends Qt{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Zj.prototype)}},afe=class eF extends Qt{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,eF.prototype)}},cfe=class tF extends Qt{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,tF.prototype)}},rF=class nF extends Qt{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,nF.prototype)}},lfe=class sF extends Qt{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,sF.prototype)}},ufe=class iF extends Qt{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,iF.prototype)}},ffe=class oF extends Qt{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,oF.prototype)}},dfe=class aF extends Qt{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,aF.prototype)}},hfe=class cF extends Qt{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,cF.prototype)}},pfe=class lF extends Qt{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lF.prototype)}},yfe=class uF extends Qt{constructor(e="PermissionDenied",r=2e3,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,uF.prototype)}},vfe=class fF extends Qt{constructor(e="SessionExpired",r=2001,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,fF.prototype)}},gfe=class dF extends Qt{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,dF.prototype)}},mfe=class hF extends Qt{constructor(e="InvalidAppKey",r=4e3,n="Invalid app key",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,hF.prototype)}},xfe=class pF extends Qt{constructor(e="QueryFailed",r=4001,n="DB query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,pF.prototype)}},bfe=class yF extends Qt{constructor(e="InvalidProjectId",r=4002,n="Invalid project id",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,yF.prototype)}},wfe={0:ife,[-1]:Jl,[-2]:ofe,[-3]:afe,[-4]:cfe,[-5]:rF,[-6]:lfe,[-7]:ufe,[-8]:ffe,[-9]:dfe,[-10]:hfe,1e3:pfe,2e3:yfe,2001:vfe,3e3:gfe,4e3:mfe,4001:xfe,4002:bfe},Cfe=class extends sfe{constructor(e,r){const n=typeof global=="object"?global.fetch.bind(global):window.fetch.bind(window);super(e.endsWith("/")?e.slice(0,-1):e,n);N(this,"_globalFetch");N(this,"_fetch",(e,r)=>{var n;if(this.auth){let s={};((n=this.auth.jwt)==null?void 0:n.length)>0&&(s.Authorization=`BEARER ${this.auth.jwt}`),this.auth.headers&&(s={...s,...this.auth.headers}),r.headers={...r.headers,...s}}return this._globalFetch(e,r)});this.auth=r,this._globalFetch=n,this.fetch=this._fetch}},E3=150,Za={defaultEnabled:!0,noop:!1,privacy:{userIdHash:!0,userAgentSalt:!1},userIdentTracking:!1,strictMode:!1,flushInterval:500,initProps:()=>({})},Efe=class{constructor(t,e,r){N(this,"rpc");N(this,"auth");N(this,"options");N(this,"enabled");N(this,"ident");N(this,"userId");N(this,"sessionId");N(this,"allowUserTracking");N(this,"projectId");N(this,"queue");N(this,"flushTimeout");N(this,"defaultProps");N(this,"previousPageKey");N(this,"ts");N(this,"flush",async()=>{if(this.flushTimeout!==null&&(clearTimeout(this.flushTimeout),this.flushTimeout=null),!this.enabled||this.options.noop||this.options.strictMode&&!this.allowUserTracking||this.queue.length===0)return;const t=this.dedupedQueue();this.queue=[];try{await this.rpc.tick({events:t})}catch(e){console.warn(`databeat flush failed: ${e}`)}});N(this,"dedupedQueue",()=>{const t=new Map;for(let e=0;eE3&&(this.queue=this.queue.splice(this.queue.length-E3)),this.enabled&&(e&&e.flush?await this.flush():this.flushTimeout===null&&(this.flushTimeout=setTimeout(()=>{this.flush()},this.options.flushInterval)))}trackView(t={}){const e={...this.defaultProps,...t},r=A3(),n=`${r}:${JSON.stringify(e)}:${this.userId}:${this.sessionId}`;this.previousPageKey!==n&&(this.previousPageKey=n,this.track({event:"VIEW",source:r,props:e}))}isEnabled(){return this.enabled}isAnon(){return this.ident===0}getIdent(){return this.ident}getUserId(){return this.userId}getSessionId(){return this.sessionId}getStorageTS(){if(this.ts)return this.ts;const t=z2();if(!(t==null||t.id===null))return this.ts=t.ts,this.ts}enable(){if(!vF(this.auth)){this.enabled=!1;return}Qi()&&(this.enabled=!0,this.ts=Vl({on:this.enabled,id:this.userId,it:this.ident,ut:this.allowUserTracking}),this.identify())}disable(){Qi()&&(this.enabled=!1,this.ts=Vl({on:this.enabled,id:this.userId,it:this.ident,ut:this.allowUserTracking}))}},Qi=()=>typeof window=="object"&&typeof window.localStorage=="object"&&typeof window.localStorage.getItem=="function"&&typeof window.localStorage.setItem=="function",k3=(t,e)=>{if(!vF(e))return!1;if(!Qi())return!0;const r=z2();return r===null?t??!0:r.on},vF=t=>{var e;return!!(((e=t==null?void 0:t.jwt)==null?void 0:e.length)>0||t!=null&&t.headers&&Object.keys(t.headers).length>0)},A3=()=>{try{return window.location.pathname}catch{return""}},kfe=()=>{if(!Qi())return{};const t=new URL(window.location.href).searchParams,e={};return e.origin=window.location.origin,t.get("ref")&&t.get("ref")!==""&&(e.ref=t.get("ref")||""),t.get("source")&&t.get("source")!==""&&(e.source=t.get("source")||""),t.get("utm_source")&&t.get("utm_source")!==""&&(e.utmSource=t.get("utm_source")||""),t.get("utm_campaign")&&t.get("utm_campaign")!==""&&(e.utmCampaign=t.get("utm_campaign")||""),t.get("utm_medium")&&t.get("utm_medium")!==""&&(e.utmMedium=t.get("utm_medium")||""),t.get("utm_content")&&t.get("utm_content")!==""&&(e.utmContent=t.get("utm_content")||""),t.get("utm_term")&&t.get("utm_term")!==""&&(e.utmTerm=t.get("utm_term")||""),document.referrer&&document.referrer!==""&&(e.referrer=document.referrer),t.get("gclid")&&t.get("gclid")!==""&&(e.gclid=t.get("gclid")||""),e},Pv="_dbeat",z2=()=>{try{return JSON.parse(window.localStorage.getItem(Pv))}catch{return null}},Vl=t=>{try{return t.ts||(t.ts=Math.floor(Date.now()/1e3)),window.localStorage.setItem(Pv,JSON.stringify(t)),t.ts}catch{return}},Afe=(t,e,r)=>{if(!t||t===null||t==="")return{userId:`${Math.floor(Math.random()*1e14)}`,ident:0};if(r.userIdentTracking&&e)return{userId:t,ident:2};if(r.privacy.userIdHash===!0||!r.userIdentTracking||!e)return Qi()&&r.privacy.userAgentSalt===!0&&(t=t+":"+navigator.userAgent),r.privacy.extraSalt&&r.privacy.extraSalt.length>0&&(t=t+":"+r.privacy.extraSalt),{userId:que(nfe(t)).substring(0,50),ident:1};throw new Error("invalid configuration")},Sfe=()=>{if(Qi()&&typeof window.sessionStorage=="object"&&typeof window.sessionStorage.getItem=="function"&&typeof window.sessionStorage.setItem=="function"){const e=window.sessionStorage.getItem(Pv);if(e&&e.length>0)return e;{const r=S3(16);return window.sessionStorage.setItem(Pv,r),r}}else return S3(16)},S3=t=>{let e="";for(let r=0;r[Qr(t).slice(0,10),t]));function G2(t,e){const r=ye.transaction.fromTransactionish(t,e);ye.transaction.unwind(t,r).forEach(s=>Pfe(t,s))}function Pfe(t,e){if(e.to.toLowerCase()===t.toLowerCase()&&e.data){const r=Q(e.data);if(r.length>=4&&!Ife(r))throw new Error("self calls are forbidden")}if(e.delegateCall)throw new Error("delegate calls are forbidden");if(e.data){const n=H(e.data).slice(0,10),s=Tfe.get(n);if(s){const i=s.slice(0,s.indexOf("("));throw new Error(`${i} calls are forbidden`)}}}function Ife(t){const e=new pt(Gt.mainModule.abi);try{return e.decodeFunctionData("createContract",t),!0}catch{return!1}}function er(){return er=Object.assign?Object.assign.bind():function(t){for(var e=1;e++Ofe;class R1{constructor(){var e=this;this.pendingMessageRequests=[],this.responseCallbacks=new Map,this.state=void 0,this.confirmationOnly=!1,this.events=new hm.EventEmitter2,this.openPayload=void 0,this.connectPayload=void 0,this.accountsChangedPayload=void 0,this.networksPayload=void 0,this.walletContextPayload=void 0,this._sessionId=void 0,this._init=void 0,this._registered=void 0,this.sendMessageRequest=async function(r){return new Promise((n,s)=>{(!r.idx||r.idx<=0)&&r.type!=="init"&&s(new Error("message idx not set"));const i=(a,c)=>{if(a)s(a);else if(c)n(c);else throw new Error("no valid response to return")},o=r.idx;e.responseCallbacks.get(o)?s(new Error("duplicate message idx, should never happen")):e.responseCallbacks.set(o,i),e.isOpened()?e.sendMessage(r):(Se.debug("pushing to pending requests",r),e.pendingMessageRequests.push(r))})},this.waitUntilOpened=async function(r=Bk){let n=!1;return Promise.race([new Promise((s,i)=>{const o=setTimeout(()=>{clearTimeout(o),n||(e.state=Kn.CLOSED,e.events.emit("close",{code:1005,message:"opening wallet timed out"})),i(new Error("opening wallet timed out"))},r)}),new Promise(s=>{if(e.isOpened()){var i;n=!0,s((i=e.openPayload)==null?void 0:i.session);return}e.events.once("open",o=>{e.openPayload=o,n=!0,s(o.session)})})])},this.waitUntilConnected=async function(){await e.waitUntilOpened();const r=new Promise(s=>{if(e.connectPayload){s(e.connectPayload);return}e.events.once("connect",i=>{e.connectPayload=i,s(i)})}),n=new Promise((s,i)=>{e.events.once("close",o=>{i(o?new Error(`wallet closed due to ${JSON.stringify(o)}`):new Error("user closed the wallet"))})});return Promise.race([r,n])},this.state=Kn.CLOSED,this._registered=!1,this._init=dt.NIL}get registered(){return this._registered}register(){throw new Error("abstract method")}unregister(){throw new Error("abstract method")}openWallet(e,r,n){throw new Error("abstract method")}closeWallet(){throw new Error("abstract method")}isOpened(){return this.registered&&this.state===Kn.OPENED}isConnected(){var e;const r=(e=this.openPayload)==null?void 0:e.session;return this.registered&&r!==void 0&&!!r.accountAddress&&r.accountAddress.length===42&&!!r.networks&&r.networks.length>0}async request(e){return this.state===Kn.CLOSED&&(this.confirmationOnly=!0),this.openWallet(void 0,{type:"jsonRpcRequest",method:e.method},e.chainId),this.isOpened()||await this.waitUntilOpened(),(await this.sendMessageRequest({idx:bF(),type:Ue.MESSAGE,data:e,chainId:e.chainId,clientVersion:$r})).data}handleMessage(e){var r=this;if(e.type===Ue.INIT){Se.debug("MessageProvider, received INIT message",e);const{nonce:c}=e.data;if(!c||c.length==0){Se.error("invalid init nonce");return}this._init=dt.OK,this.sendMessage({idx:-1,type:Ue.INIT,data:{sessionId:this._sessionId,nonce:c},clientVersion:$r})}if(this._init!==dt.OK)return;Se.debug("RECEIVED MESSAGE FROM WALLET",e.idx,e);const n=e.idx,s=this.responseCallbacks.get(n);if(n&&this.responseCallbacks.delete(n),e.type===Ue.OPEN&&!this.isOpened()){var i,o;if(this._sessionId&&this._sessionId!==((i=e.data)==null?void 0:i.sessionId)){Se.debug("open event received from wallet, but does not match sessionId",this._sessionId);return}if((o=e.data)!=null&&o.error){var a;const c=new Error(`opening wallet failed: received ${(a=e.data)==null?void 0:a.error}`);throw Se.error(c),this.close(),c}this.state=Kn.OPENED,this.openPayload=e.data,this.events.emit("open",this.openPayload),this.pendingMessageRequests.length!==0&&this.pendingMessageRequests.splice(0,this.pendingMessageRequests.length).forEach(async function(l){r.sendMessage(l)});return}if(e.type===Ue.MESSAGE){if(this.confirmationOnly&&setTimeout(()=>{this.responseCallbacks.size===0&&this.closeWallet()},500),!s)throw new Error("impossible state");if(s){this.events.emit("message",e),s(e.data.error,e);return}}if(e.type===Ue.ACCOUNTS_CHANGED){this.accountsChangedPayload={accounts:[]},e.data&&e.data.length>0?(this.accountsChangedPayload={accounts:[Te(e.data[0])],origin:e.origin},this.events.emit("accountsChanged",this.accountsChangedPayload.accounts,this.accountsChangedPayload.origin)):this.events.emit("accountsChanged",[],e.origin);return}if(e.type===Ue.CHAIN_CHANGED){this.events.emit("chainChanged",e.data,e.origin);return}if(e.type===Ue.NETWORKS){this.networksPayload=e.data,this.events.emit("networks",this.networksPayload);return}if(e.type===Ue.WALLET_CONTEXT){this.walletContextPayload=e.data,this.events.emit("walletContext",this.walletContextPayload);return}e.type===Ue.CLOSE&&this.state!==Kn.CLOSED&&this.close(e.data),e.type===Ue.CONNECT&&(this.connectPayload=e.data,this.events.emit("connect",this.connectPayload)),e.type===Ue.DISCONNECT&&this.isConnected()&&(this.events.emit("disconnect",e.data,e.origin),this.close())}sendMessage(e){throw new Error("abstract method")}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}emit(e,...r){return this.events.emit(e,...r)}close(e){this.state!==Kn.CLOSED&&(this.state=Kn.CLOSED,this.confirmationOnly=!1,this._sessionId=void 0,Se.info("closing wallet and flushing!"),this.pendingMessageRequests.length=0,this.responseCallbacks.forEach(r=>{r(er({},new Error("wallet closed"),{code:4001}))}),this.responseCallbacks.clear(),this.connectPayload=void 0,this.openPayload=void 0,this.accountsChangedPayload=void 0,this.networksPayload=void 0,this.walletContextPayload=void 0,this.events.emit("close",e))}}function Rfe(t){return Nfe.some(e=>e.predicate(t))}const Nfe=[{name:"Decentraland Exception",predicate:Mfe},{name:"0x v3 Exception",predicate:Dfe}],_fe=/^Decentraland Login\nEphemeral address: 0x[a-fA-F0-9]{40}\nExpiration: (\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)((-(\d{2}):(\d{2})|Z)?)$/;function Mfe(t){try{const e=Ds(t);return _fe.test(e)}catch{return!1}}function Dfe(t){const e=new pt(Bfe);try{return e.decodeFunctionData("OrderWithHash",t),!0}catch{return!1}}const Bfe=[{inputs:[{components:[{internalType:"address",name:"makerAddress",type:"address"},{internalType:"address",name:"takerAddress",type:"address"},{internalType:"address",name:"feeRecipientAddress",type:"address"},{internalType:"address",name:"senderAddress",type:"address"},{internalType:"uint256",name:"makerAssetAmount",type:"uint256"},{internalType:"uint256",name:"takerAssetAmount",type:"uint256"},{internalType:"uint256",name:"makerFee",type:"uint256"},{internalType:"uint256",name:"takerFee",type:"uint256"},{internalType:"uint256",name:"expirationTimeSeconds",type:"uint256"},{internalType:"uint256",name:"salt",type:"uint256"},{internalType:"bytes",name:"makerAssetData",type:"bytes"},{internalType:"bytes",name:"takerAssetData",type:"bytes"},{internalType:"bytes",name:"makerFeeAssetData",type:"bytes"},{internalType:"bytes",name:"takerFeeAssetData",type:"bytes"}],internalType:"struct IEIP1271Data.Order",name:"order",type:"tuple"},{internalType:"bytes32",name:"orderHash",type:"bytes32"}],name:"OrderWithHash",outputs:[],stateMutability:"pure",type:"function"}],py=mt(`Ethereum Signed Message: +`),Lk=t=>mi(t)?Q(t):mt(t),pm=t=>{const e=Lk(t);return Rfe(e)?e:Q(Le([py,mt(String(e.length)),e]))},Lfe=t=>{if(JSON.stringify(t.slice(0,py.length))!==JSON.stringify(py))return t;const e=t.slice(py.length),r=String(e.length).length;let n,s;try{s=Number(Ds(e.slice(0,r)))}catch{s=Number(H(e.slice(0,r)))}return s>e.length||!Number.isInteger(s)?n=r-1:n=r,e.slice(n)},ad=async(t,e,r,n)=>new ye.reader.OnChainReader(n).isValidSignature(t,e,r),wF=async(t,e,r,n)=>{const s=pm(e),i=ik(s);return ad(t,i,r,n)},CF=(t,e,r,n)=>ad(t,kd(e),r,n),Iv=()=>window.location.protocol==="chrome-extension:"||window.location.protocol==="moz-extension:",EF=()=>!!navigator.userAgent.match(/UnitySequence/i),kF=t=>t.onChain.deployed&&t.fullyMigrated;class AF{constructor(){this.callbacks=[],this.store={}}getItem(e){return this.store[e]||null}setItem(e,r){this.store[e]=r,this.callbacks.filter(n=>n.key===e).forEach(n=>n.cb(r))}removeItem(e){delete this.store[e]}onItemChange(e,r){return this.callbacks.push({key:e,cb:r}),()=>{this.callbacks=this.callbacks.filter(n=>n.cb!==r)}}}class M0{static isAvailable(){return typeof window=="object"&&typeof window.localStorage=="object"}constructor(){if(this.callbacks=[],!M0.isAvailable())throw new Error("LocalStorage is not available");window.addEventListener("storage",e=>{const{key:r}=e;this.callbacks.filter(s=>s.key===r).forEach(s=>s.cb(this.getItem(r)))})}getItem(e){return window.localStorage.getItem(e)}setItem(e,r){window.localStorage.setItem(e,r),this.callbacks.filter(n=>n.key===e).forEach(n=>n.cb(r))}removeItem(e){window.localStorage.removeItem(e),this.callbacks.filter(r=>r.key===e).forEach(r=>r.cb(null))}onItemChange(e,r){return this.callbacks.push({key:e,cb:r}),()=>{this.callbacks=this.callbacks.filter(n=>n.cb!==r)}}}function Ov(){return M0.isAvailable()?new M0:new AF}async function SF(t){return Array.isArray(t)?Promise.all(t.map(e=>Pt(e))):Pt(t)}const T3="@sequence.transportSession";class N1{constructor(e){var r=this;this.walletRequestHandler=void 0,this._sessionId=void 0,this._registered=void 0,this._init=void 0,this._initNonce=void 0,this._initCallback=void 0,this.appOrigin=void 0,this.handleMessage=async function(n){const s=n;if(r._init!==dt.OK){if(s.type===Ue.INIT)if(r.isValidInitAck(n))r._initCallback&&r._initCallback();else{r._initCallback&&r._initCallback("invalid init");return}return}switch(s.type){case Ue.OPEN:{if(r._init!==dt.OK)return;const i={sessionId:s.data.sessionId,intent:s.data.intent,networkId:s.data.networkId};await r.open(i);return}case Ue.CLOSE:return r._init!==dt.OK,void 0;case Ue.MESSAGE:{const i=await r.walletRequestHandler.sendMessageRequest(s);r.sendMessage(i),i.data.error;return}default:Se.error(`unexpected payload type ${s.type}`)}},this.sendMessageRequest=async function(n){return r.walletRequestHandler.sendMessageRequest(n)},this.open=async function({sessionId:n,intent:s,networkId:i}){n&&(r._sessionId=wM(n),r.saveTransportSession({sessionId:n,intent:s,networkId:i})),r.walletRequestHandler.setOpenIntent(s),await r.init();let o;try{if(i){const a=ok(i);if(a)o=a.chainId;else throw new Error(`unknown network ${i}`)}else o=r.walletRequestHandler.defaultChainId()}catch(a){console.error(a)}if(s&&s.type==="connect"&&s.options){const a=s.options,c=a;if(r.appOrigin&&c!=null&&c.origin){if(!Iv()&&c.origin!==r.appOrigin)throw new Error("origin is invalid")}else!r.appOrigin&&c!=null&&c.origin?a.origin=EM(c.origin):r.appOrigin&&(a.origin=r.appOrigin);a.app&&(a.app=CM(a.app)),a.networkId?i=a.networkId:i&&(a.networkId=i),r.walletRequestHandler.setConnectOptions(a)}else r.walletRequestHandler.setConnectOptions(void 0);if(await r.walletRequestHandler.getAccount(),await r.walletRequestHandler.isSignedIn())if(s&&s.type==="connect"){(!o||o<=0)&&console.log("Failed to set default network on open"),r.notifyOpen({sessionId:r._sessionId});try{const a=await r.walletRequestHandler.promptConnect(s.options);a.connected&&r.walletRequestHandler.notifyConnect(a)}catch(a){Se.warn("promptConnect not connected:",a)}finally{(!s.options||s.options.keepWalletOpened!==!0)&&r.notifyClose()}}else{if(!o||o<=0)return r.notifyOpen({sessionId:r._sessionId,error:`failed to open wallet on network ${i}`}),!1;r.notifyOpen({sessionId:r._sessionId,chainId:`${o}`,session:await r.walletRequestHandler.walletSession(o)})}else return r.notifyOpen({sessionId:r._sessionId}),!0;return!0},this.saveTransportSession=n=>{Ov().setItem(T3,JSON.stringify(n))},this.getCachedTransportSession=async function(){const n=Ov().getItem(T3);try{return n?JSON.parse(n):null}catch{return console.error(`unable to parse transport session: ${n}`),null}},this.walletRequestHandler=e,this._init=dt.NIL,this.walletRequestHandler.on("connect",n=>{this.registered&&this.notifyConnect(n)}),this.walletRequestHandler.on("disconnect",(n,s)=>{this.registered&&this.notifyDisconnect(n,s)}),this.walletRequestHandler.on("accountsChanged",(n,s)=>{this.registered&&this.notifyAccountsChanged(n,s)}),this.walletRequestHandler.on("networks",n=>{this.registered&&(this.notifyNetworks(n),!n||n.length===0?this.notifyChainChanged("0x0"):this.notifyChainChanged(pr(n.find(s=>s.isDefaultChain).chainId)))}),this.walletRequestHandler.on("chainChanged",(n,s)=>{this.notifyChainChanged(n,s)}),this.walletRequestHandler.on("walletContext",n=>{!this.registered||!n||this.notifyWalletContext(n)}),this.walletRequestHandler.on("close",n=>{this.registered&&this.notifyClose(n)})}get registered(){return this._registered}register(){throw new Error("abstract method")}unregister(){throw new Error("abstract method")}request(e){throw new Error("abstract method")}sendMessage(e){throw new Error("abstract method")}notifyOpen(e){const{chainId:r,sessionId:n,session:s,error:i}=e;this.sendMessage({idx:-1,type:Ue.OPEN,data:{chainId:r,sessionId:n,session:s,error:i},clientVersion:$r})}notifyClose(e){this.sendMessage({idx:-1,type:Ue.CLOSE,data:e?{error:e}:null,clientVersion:$r})}notifyConnect(e){this.sendMessage({idx:-1,type:Ue.CONNECT,data:e,clientVersion:$r})}notifyDisconnect(e,r){this.sendMessage({idx:-1,type:Ue.DISCONNECT,data:e?{error:e}:null,origin:r,clientVersion:$r})}notifyAccountsChanged(e,r){this.sendMessage({idx:-1,type:Ue.ACCOUNTS_CHANGED,data:e,origin:r,clientVersion:$r})}notifyChainChanged(e,r){this.sendMessage({idx:-1,type:Ue.CHAIN_CHANGED,data:e,origin:r,clientVersion:$r})}notifyNetworks(e){this.sendMessage({idx:-1,type:Ue.NETWORKS,data:e,clientVersion:$r})}notifyWalletContext(e){this.sendMessage({idx:-1,type:Ue.WALLET_CONTEXT,data:e,clientVersion:$r})}isValidInitAck(e){if(this._init===dt.OK)return Se.warn("isValidInitAck, already in init'd state, so inquiry is invalid."),!1;if(e.type!==Ue.INIT)return Se.warn("isValidInitAck, invalid message type, expecting init"),!1;const{sessionId:r,nonce:n}=e.data;return!r||r.length===0||!n||n.length===0?(Se.error("invalid init ack"),!1):r!==this._sessionId||n!==this._initNonce?(Se.error("invalid init ack match"),!1):!0}init(){return new Promise((e,r)=>{if(this._init===dt.OK){e();return}if(this._init!==dt.NIL||this._initCallback){r("transport init is in progress");return}const n=setTimeout(()=>{Se.warn("transport init timed out"),this._initCallback&&this._initCallback("transport init timed out")},Bk/2);this._initCallback=s=>{this._initCallback=void 0,clearTimeout(n),s?r(s):(this._init=dt.OK,e())},this._initNonce=`${performance.now()}`,this.sendMessage({idx:-1,type:Ue.INIT,data:{nonce:this._initNonce},clientVersion:$r}),this._init=dt.SENT_NONCE})}}class jfe{constructor(){this.app=void 0,this.wallet=void 0;const e=new q2,r=new q2;e.conn=r,r.conn=e,this.app=e,this.wallet=r}}class q2{constructor(){this.conn=void 0,this.events=new hm.EventEmitter2,this.handleMessage=e=>{throw new Error("ProxyMessageChannelPort is not registered")},this.sendMessage=e=>{this.conn.handleMessage(e),e.type==="open"&&this.events.emit("open",e),e.type==="close"&&this.events.emit("close",e),e.type==="connect"&&this.events.emit("connect",e),e.type==="disconnect"&&this.events.emit("disconnect",e)}}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}}class TF extends R1{constructor(e){if(super(),this.port=void 0,this.register=()=>{this.port.handleMessage=r=>{this.handleMessage(r)},this.on("open",(...r)=>{this.port.events.emit("open",...r)}),this.on("close",(...r)=>{this.port.events.emit("close",...r)}),this.on("connect",(...r)=>{this.port.events.emit("connect",...r)}),this.on("disconnect",(...r)=>{this.port.events.emit("disconnect",...r)}),this._registered=!0},this.unregister=()=>{this._registered=!1,this.closeWallet(),this.events.removeAllListeners(),this.port.handleMessage=void 0},this.openWallet=(r,n,s)=>{if(this.state===Kn.CLOSED){this.state=Kn.OPENING;const i=`${performance.now()}`;this._sessionId=i,this.sendMessage({idx:-1,type:Ue.OPEN,data:{path:r,intent:n,networkId:s,sessionId:i},clientVersion:$r})}},this.state=Kn.CLOSED,this.port=e,!e)throw new Error("port argument cannot be empty");this._init=dt.OK}closeWallet(){this.sendMessage({idx:-1,type:Ue.CLOSE,data:null,clientVersion:$r}),this.close()}sendMessage(e){if(!e.idx)throw new Error("message idx is empty");this.port.sendMessage(e)}}class Ffe extends N1{constructor(e,r){super(e),this.port=void 0,this.port=r,this._init=dt.OK}register(){this.port.handleMessage=e=>{this.handleMessage(e)},this._registered=!0}async restoreSession(){const e=await this.getCachedTransportSession();e&&this.open(e)}unregister(){this.port.handleMessage=void 0,this._registered=!1}sendMessage(e){this.port.sendMessage(e)}}function PF(t){var e;if((e=window.ue)!=null&&e.sequencewallettransport&&!window.logsOverriddenForUnreal){var r;const n=(r=window.ue)==null?void 0:r.sequencewallettransport;console.log=(...s)=>{n.logfromjs(`${t}: ${Jx(s)}`)},console.warn=(...s)=>{n.warnfromjs(`${t}: ${Jx(s)}`)},console.error=(...s)=>{n.errorfromjs(`${t}: ${Jx(s)}`)},window.logsOverriddenForUnreal=!0}}function Jx(t){return t.map(e=>typeof e=="object"?e instanceof Error?e.message:JSON.stringify(e):String(e)).join(" ")}let Hl;class IF extends R1{constructor(e){super(),this.walletURL=void 0,this.register=()=>{var r;PF("dapp"),Hl&&(Hl.unregister(),Hl=this),(r=window.ue)!=null&&r.sequencewallettransport&&(window.ue.sequencewallettransport.onmessagefromwallet=this.onUnrealCallback),Hl=this,this._registered=!0,console.log("registering transport!")},this.unregister=()=>{var r;this._registered=!1,this.closeWallet(),Hl===this&&(Hl=void 0),((r=window.ue)==null||(r=r.sequencewallettransport)==null?void 0:r.onmessagefromwallet)===this.onUnrealCallback&&delete window.ue.sequencewallettransport.onmessagefromwallet,this.events.removeAllListeners()},this.openWallet=(r,n,s)=>{if(this.isOpened()){console.log("wallet already open!");return}console.log("opening wallet!");const i=new URL(this.walletURL.href),o=new O1;r&&(i.pathname=r.toLowerCase()),this._init=dt.NIL,this._sessionId=`${performance.now()}`,o.set("sid",this._sessionId),n&&o.set("intent",nk(n)),s&&o.set("net",`${s}`),i.search=o.toString(),console.log("opening wallet to",i.href),window.open(i.href)},this.onUnrealCallback=r=>{if(!r)throw new Error("ProviderMessage object is empty");this.handleMessage(r)},this.walletURL=new URL(e)}closeWallet(){this.close()}sendMessage(e){var r;const n=typeof e!="string"?JSON.stringify(e,Ts):e;console.log("Sending message to wallet:",n),(r=window.ue)==null||(r=r.sequencewallettransport)==null||r.sendmessagetowallet(n)}}class Ufe extends N1{constructor(e){super(e),this.onMessageFromUnreal=r=>{Se.debug("RECEIVED MESSAGE",r),this.handleMessage(r)},this.getUnrealTransportSession=r=>{const n=new O1(r);return{sessionId:n.get("sid"),networkId:n.get("net"),intent:sk(n.get("intent"))}},this._init=dt.NIL}async register(e){var r;if(((r=window.ue)==null?void 0:r.sequencewallettransport)===void 0)return;PF("wallet");const{search:n}=new URL(e||window.location.href);let s=this.getUnrealTransportSession(n);if(!!s.sessionId||(s=await this.getCachedTransportSession()),!s){Se.error("unreal session is undefined");return}window.ue.sequencewallettransport.onmessagefromsequencejs=this.onMessageFromUnreal,this._registered=!0,this.open(s).then(o=>{if(!o){var a;const c=`failed to open to network ${(a=s)==null?void 0:a.networkId}`;Se.error(c),this.notifyClose({message:c}),window.close()}}).catch(o=>{var a;const c=`failed to open to network ${(a=s)==null?void 0:a.networkId}, due to: ${o}`;Se.error(c),this.notifyClose({message:c}),window.close()})}unregister(){var e;((e=window.ue)==null||(e=e.sequencewallettransport)==null?void 0:e.onmessagefromsequencejs)===this.onMessageFromUnreal&&delete window.ue.sequencewallettransport.onmessagefromsequencejs,this._registered=!1}sendMessage(e){var r;if(e.type!==Ue.INIT&&this._init!==dt.OK){Se.error("impossible state, should not be calling postMessage until inited");return}const n=JSON.stringify(e,Ts);(r=window.ue)==null||(r=r.sequencewallettransport)==null||r.sendmessagetosequencejs(n)}}const jk="sequence-extension-message-handler";class $fe extends N1{constructor(e,r){super(e),this.runtime=r,this.port=void 0,this._init=dt.OK}register(){this._registered=!0,this.port=this.runtime.connect({name:jk})}sendMessage(e){Se.info("[ExtensionMessageHandler send]",e),this.port.postMessage(e)}}class OF extends R1{constructor(e){super(),this.register=()=>{this._registered=!0},e.onConnect.addListener(r=>{r.name===jk&&(this._init=dt.OK,r.onMessage.addListener(n=>{this.handleMessage(n)}))})}sendMessage(e){}unregister(){}openWallet(e,r,n){}closeWallet(){}}class Wfe extends hm.EventEmitter2{constructor(e){var r;super(),r=this,this.stream=e,this.responseCallbacks=new Map,this._messageIdx=0,this.nextMessageIdx=()=>++this._messageIdx,this.handleMessage=n=>{if(!n.type||!n.data)return;Se.info("[received message]",n);const s=n.idx,i=this.responseCallbacks.get(s);switch(s&&this.responseCallbacks.delete(s),n.type){case Ue.MESSAGE:if(i)this.emit(Ue.MESSAGE,n),i(n.data.error,n);else throw new Error("impossible state");break;case Ue.DISCONNECT:case Ue.ACCOUNTS_CHANGED:case Ue.CHAIN_CHANGED:this.emit(n.type,n.data);break;default:console.error("unknown message type",n);break}},this.sendMessageRequest=async function(n){return new Promise((s,i)=>{(!n.idx||n.idx<=0)&&i(new Error("message idx not set"));const o=(c,l)=>{if(c)i(c);else if(l)s(l);else throw new Error("no valid response to return")},{idx:a}=n;r.responseCallbacks.get(a)?i(new Error("duplicate message idx, should never happen")):r.responseCallbacks.set(a,o),r.sendMessage(n)})},this.stream.on("data",this.handleMessage)}sendMessage(e){this.stream.writable||console.error("window post message stream is not writable"),this.stream.write(e)}}let zl;class RF extends R1{constructor(e){super(),this.walletURL=void 0,this.walletWindow=void 0,this.register=()=>{zl&&(zl.unregister(),zl=this),window.addEventListener("message",this.onWindowEvent),zl=this,this.on("open",()=>{const r=this.walletWindow,n=setInterval(()=>{r&&r.closed&&(clearInterval(n),this.close())},500)}),this.on("close",()=>{this.walletWindow&&(this.walletWindow.close(),this.walletWindow=null)}),this._registered=!0},this.unregister=()=>{this._registered=!1,this.closeWallet(),zl===this&&(zl=void 0),window.removeEventListener("message",this.onWindowEvent),this.events.removeAllListeners()},this.openWallet=(r,n,s)=>{if(this.walletWindow&&this.isOpened()){this.walletWindow.focus();return}const i=new URL(this.walletURL.href),o=new O1;r&&r!==""&&(i.pathname=r.toLowerCase()),this._init=dt.NIL,this._sessionId=`${performance.now()}`,o.set("sid",this._sessionId),n&&(n.type==="connect"&&(n.options||(n.options={app:window.location.origin}),!Iv()&&!EF()&&n.options&&(n.options.origin=window.location.origin)),o.set("intent",nk(n))),s&&o.set("net",`${s}`);let a,c;Iv()?(a=[450,750],c=[Math.abs(window.screen.width/2-a[0]/2),Math.abs(window.screen.height/2-a[1]/2)]):(a=[450,750],c=[Math.abs(window.screenX+window.innerWidth/2-a[0]/2),Math.abs(window.screenY+window.innerHeight/2-a[1]/2)]);const l=`toolbar=0,location=0,menubar=0,scrollbars=yes,status=yes,width=${a[0]},height=${a[1]},left=${c[0]},top=${c[1]}`;i.search=o.toString(),this.walletWindow=window.open(i.href,"sequence.app",l)},this.onWindowEvent=r=>{if(r.origin!==this.walletURL.origin)return;let n;try{n=JSON.parse(r.data,Gg)}catch{return}if(!n)throw new Error("ProviderMessage object is empty");this.handleMessage(n)},this.walletURL=new URL(e)}closeWallet(){var e;this.close(),(e=this.walletWindow)==null||e.close()}sendMessage(e){if(!this.walletWindow){Se.warn("WindowMessageProvider: sendMessage failed as walletWindow is unavailable");return}const r=typeof e!="string"?JSON.stringify(e,Ts):e;this.walletWindow.postMessage(r,this.walletURL.origin)}}class Vfe extends N1{constructor(e){var r;super(e),r=this,this.parentWindow=void 0,this._isPopup=!1,this.onWindowEvent=async function(n){if(!n.origin||n.origin===""||r.appOrigin&&n.origin!==r.appOrigin)return;let s;try{s=JSON.parse(n.data,Gg)}catch{return}if(Se.debug("RECEIVED MESSAGE",s),r._init!==dt.OK&&r.isValidInitAck(s)&&(r.appOrigin=n.origin),r._init===dt.OK&&(!r.appOrigin||r.appOrigin.length<8)){Se.error("impossible state, init.OK and appOrigin required");return}r.handleMessage(s)},this.getWindowTransportSession=n=>{const s=new O1(n);return{sessionId:s.get("sid"),networkId:s.get("net"),intent:sk(s.get("intent"))}},this._init=dt.NIL}async register(e){const r=parent.window.opener!==null;if(this._isPopup=r,r!==!0)return;const{search:n}=new URL(e||window.location.href);let s=this.getWindowTransportSession(n);if(!!s.sessionId||(s=await this.getCachedTransportSession()),!s){Se.error("window session is undefined");return}this.parentWindow=parent.window.opener,window.addEventListener("message",this.onWindowEvent,!1),this._registered=!0,this.open(s).then(o=>{if(!o){var a;const c=`failed to open to network ${(a=s)==null?void 0:a.networkId}`;Se.error(c),this.notifyClose({message:c}),window.close()}}).catch(o=>{var a;const c=`failed to open to network ${(a=s)==null?void 0:a.networkId}, due to: ${o}`;Se.error(c),this.notifyClose({message:c}),window.close()})}unregister(){window.removeEventListener("message",this.onWindowEvent),this._registered=!1}sendMessage(e){const r=JSON.stringify(e,Ts);e.type===Ue.INIT?this.postMessage(r,!0):this.postMessage(r)}get isPopup(){return this._isPopup}postMessage(e,r=!1){if(r!==!0&&this._init!==dt.OK){Se.error("impossible state, should not be calling postMessage until inited");return}r?this.parentWindow.postMessage(e,"*"):this.appOrigin&&this.appOrigin.length>4?this.parentWindow.postMessage(e,this.appOrigin):Se.error("unable to postMessage as parentOrigin is invalid")}}function NF(t){return t&&typeof t=="object"&&(t.windowTransport&&typeof t.windowTransport=="object"||t.proxyTransport&&typeof t.proxyTransport=="object"||t.extensionTransport&&typeof t.extensionTransport=="object"||t.unrealTransport&&typeof t.unrealTransport=="object")&&(t.windowTransport&&t.windowTransport.enabled||t.proxyTransport&&t.proxyTransport.enabled||t.extensionTransport&&t.extensionTransport.enabled||t.unrealTransport&&t.unrealTransport.enabled)}class ym{constructor(...e){var r=this;this.messageProviders=void 0,this.provider=void 0,this.register=()=>{if(this.messageProviders.length===1){this.provider=this.messageProviders[0],this.provider.register();return}this.messageProviders.forEach(n=>{n.register(),n.once("open",()=>{this.provider||(this.provider=n,this.messageProviders.forEach(s=>{this.provider!==s&&s.unregister()}))})})},this.unregister=()=>{this.messageProviders.forEach(n=>n.unregister()),this.provider=void 0},this.openWallet=(n,s,i)=>{if(this.provider){this.provider.openWallet(n,s,i);return}this.messageProviders.forEach(o=>o.openWallet(n,s,i))},this.sendMessageRequest=async function(n){if(r.provider)return r.provider.sendMessageRequest(n);throw new Error("impossible state, wallet must be opened first")},this.waitUntilOpened=async function(){return r.provider?r.provider.waitUntilOpened():Promise.race(r.messageProviders.map(n=>n.waitUntilOpened()))},this.waitUntilConnected=async function(){if(r.provider)return r.provider.waitUntilConnected();throw new Error("impossible state, wallet must be opened first")},this.messageProviders=e,this.provider=void 0}static new(e){var r,n,s,i;const o=new ym;if((r=e.windowTransport)!=null&&r.enabled&&typeof window=="object"&&e.walletAppURL){const a=new RF(e.walletAppURL);o.add(a)}if((n=e.proxyTransport)!=null&&n.enabled){const a=new TF(e.proxyTransport.appPort);o.add(a)}if((s=e.extensionTransport)!=null&&s.enabled){const a=new OF(e.extensionTransport.runtime);o.add(a)}if((i=e.unrealTransport)!=null&&i.enabled&&e.windowTransport&&e.walletAppURL){const a=new IF(e.walletAppURL);o.add(a)}return o.register(),o}add(...e){this.messageProviders.push(...e)}closeWallet(){this.provider&&this.provider.closeWallet()}isOpened(){return this.provider?this.provider.isOpened():!1}isConnected(){return this.provider?this.provider.isConnected():!1}on(e,r){if(this.provider){this.provider.on(e,r);return}this.messageProviders.forEach(n=>{n.on(e,r)})}once(e,r){if(this.provider){this.provider.once(e,r);return}this.messageProviders.forEach(n=>{n.once(e,r)})}emit(e,...r){if(this.provider)return this.provider.emit(e,...r);for(let n=0;n({connected:!1})),a=o;return a.connected&&!a.session&&(a.session=await s.walletSession(i==null?void 0:i.networkId)),o},this.isSignedIn=async function(){return await s.signerReady(),!!s.account},this.getAccount=async function(){if(await s.signerReady(),s.account===void 0)throw new Error("signerReady failed resolve");return s.account},this.account=e,this.prompter=r,this.networks=n}defaultChainId(){var e,r;return(e=(r=this.prompter)==null?void 0:r.getDefaultChainId())!=null?e:this.networks[0].chainId}async signIn(e,r={}){this.setAccount(e);const{connect:n,defaultNetworkId:s}=r;if(n){const a=this._connectOptions;let c;if(this.prompter!==null){var i;c=await((i=this.prompter)==null?void 0:i.promptSignInConnect(a))}else c=await this.connect(a);this.notifyConnect(c),(!a||a.keepWalletOpened!==!0)&&this.notifyClose()}if(s&&this.defaultChainId()!==s){var o;await((o=this.prompter)==null?void 0:o.promptChangeNetwork(s))}}signOut(){this.account&&this.notifyDisconnect(),this.setAccount(null)}signerReset(){this.account=void 0}signerReady(e=Gfe){return new Promise((r,n)=>{this.account!==void 0?r():(setTimeout(()=>{this.account===void 0&&(this.signerReadyCallbacks=[],n("signerReady timed out"))},e),this.signerReadyCallbacks.push(r))})}async connect(e){var r,n;if(!this.account)return{connected:!1,chainId:"0x0",error:"unable to connect without signed in account"};const s=(r=(n=e==null?void 0:e.networkId)!=null?n:this.defaultChainId())!=null?r:L.MAINNET,i=ok(s).chainId,o={connected:!0,chainId:pr(i)};if(e&&e.authorize){const a={app:e.app,origin:e.origin,expiry:e.expiry,nonce:e.authorizeNonce};try{o.proof=await wj(this.account,i,a)}catch(c){return Se.warn(`connect, signAuthorization failed for options: ${JSON.stringify(e)}, due to: ${c.message}`),{connected:!1,chainId:"0x0",error:`signAuthorization failed: ${c.message}`}}}return o.session=this.walletSession(i),o}async sendMessageRequest(e){var r;const s=Number(((r=e.clientVersion)==null?void 0:r.split(".")[0])||"0")<2,i={id:e.data.id,jsonrpc:"2.0",result:null,error:void 0};try{const o=await this.request({method:e.data.method,params:e.data.params,chainId:e.chainId});return er({},e,{data:s?er({},i,{result:o}):o})}catch(o){return er({},e,{data:s?er({},i,{error:o}):o})}}async request(e){await this.getAccount();try{var r,n;if((!this.account||this.account===null)&&!Kfe.includes(e.method))throw xF;const l=this.account;if(!l)throw new Error("WalletRequestHandler: wallet account is not configured");const u=(r=this.account)==null?void 0:r.providerFor((n=e.chainId)!=null?n:this.defaultChainId());if(!u)throw new Error(`WalletRequestHandler: wallet provider is not configured for chainId ${e.chainId}`);const f=u instanceof zt?u:void 0;switch(e.method){case"net_version":{if(!f)throw new Error("Account provider doesn't support send method");return await f.send("net_version",[])}case"eth_chainId":{if(!f)throw new Error("Account provider doesn't support send method");return await f.send("eth_chainId",[])}case"eth_accounts":return[l.address];case"eth_getBalance":{const[d,h]=e.params,y=await u.getBalance(d,h);return el(y)}case"sequence_sign":case"personal_sign":case"eth_sign":{let d;switch(e.method){case"sequence_sign":case"personal_sign":{const[b,v]=e.params;d=b;break}case"eth_sign":{const[b,v]=e.params;d=v;break}}let h="";const y=pm(d),p=e.method==="sequence_sign";if(this.prompter===null){var s;h=await l.signMessage(y,(s=e.chainId)!=null?s:this.defaultChainId(),p?"eip6492":"ignore")}else h=await this.prompter.promptSignMessage({chainId:e.chainId,message:Q(y),eip6492:p},this.connectOptions);if(h&&h.length>0)return h;throw new Error("declined by user")}case"sequence_signTypedData_v4":case"eth_signTypedData":case"eth_signTypedData_v4":{const[d,h]=e.params;let y;if(typeof h=="string")try{y=JSON.parse(h)}catch(v){console.warn("walletRequestHandler: error parsing typedData",v)}else y=h;if(!y||!y.domain||!y.types||!y.message)throw new Error("invalid typedData object");let p="";const b=e.method==="sequence_signTypedData_v4";if(this.prompter===null){var i;p=await l.signTypedData(y.domain,y.types,y.message,(i=e.chainId)!=null?i:this.defaultChainId(),b?"eip6492":"ignore")}else p=await this.prompter.promptSignMessage({chainId:e.chainId,typedData:y,eip6492:b},this.connectOptions);if(p&&p.length>0)return p;throw new Error("declined by user")}case"eth_sendTransaction":{const d=zfe(e.params[0]).map(y=>("gas"in y&&y.gasLimit===void 0&&(y.gasLimit=y.gas,delete y.gas),y));G2(l.address,d);let h="";if(this.prompter===null){var o,a;const y=await l.sendTransaction(d,(o=e.chainId)!=null?o:this.defaultChainId());h=(a=y==null?void 0:y.hash)!=null?a:""}else h=await this.prompter.promptSendTransaction(d,e.chainId,this.connectOptions);if(h)return h;throw new Error("declined by user")}case"eth_signTransaction":{const[d]=e.params;if(Te(d.from)!==l.address)throw new Error("sender address does not match wallet");if(G2(l.address,d),this.prompter===null){var c;return await l.signTransactions(d,(c=e.chainId)!=null?c:this.defaultChainId())}else return await this.prompter.promptSignTransaction(d,e.chainId,this.connectOptions)}case"eth_sendRawTransaction":if(ye.transaction.isSignedTransactionBundle(e.params[0])){const d=Number(e.params[0].chainId);return(await l.relayer(d).relay(e.params[0])).hash}else return(await u.broadcastTransaction(e.params[0])).hash;case"eth_getTransactionCount":{const d=Te(e.params[0]),h=e.params[1],y=await u.getTransactionCount(d,h);return el(BigInt(y))}case"eth_blockNumber":return await u.getBlockNumber();case"eth_getBlockByNumber":return await u.getBlock(e.params[0]);case"eth_getBlockByHash":return await u.getBlock(e.params[0]);case"eth_getTransactionByHash":return await u.getTransaction(e.params[0]);case"eth_call":{const[d,h]=e.params;return await u.call(er({},d,{blockTag:h}))}case"eth_getCode":{const[d,h]=e.params;return await u.getCode(d,h)}case"eth_estimateGas":{const[d]=e.params;return await u.estimateGas(d)}case"eth_gasPrice":{const d=await u.getFeeData();return d.gasPrice===null?null:el(d.gasPrice)}case"wallet_switchEthereumChain":{const[d]=e.params;if(!d.chainId||d.chainId.length===0)throw new Error("invalid chainId");const h=BigInt(d.chainId);return this.setDefaultChainId(Number(h)),null}case"sequence_getWalletContext":return l.contexts;case"sequence_getWalletConfig":{const[d]=e.params;return d?[(await l.status(d)).onChain.config]:await Promise.all(l.networks.map(async function(h){return(await l.status(h.chainId)).onChain.config}))}case"sequence_getWalletState":{const[d]=e.params;return d?[P3(d,await l.status(d))]:await Promise.all(l.networks.map(async function(h){const y=await l.status(h.chainId);return P3(h.chainId,y)}))}case"sequence_getNetworks":return await this.getNetworks(!0);case"sequence_isSequence":return!0;case"sequence_updateConfig":throw new Error("sequence_updateConfig method is not allowed from a dapp");case"sequence_publishConfig":throw new Error("sequence_publishConfig method is not allowed from a dapp");case"sequence_gasRefundOptions":break;case"sequence_getNonce":break;case"sequence_relay":break;case"sequence_setDefaultNetwork":{const[d]=e.params;if(!d)throw new Error("invalid request, method argument defaultChainId cannot be empty");return this.setDefaultChainId(d),await this.getNetworks(!0)}default:{if(!f)throw new Error("Account provider doesn't support send method");return await f.send(e.method,e.params)}}}catch(l){throw Se.error(l),{message:l==null?void 0:l.message,code:4001}}}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}async getAddress(){var e,r;return(e=(r=this.account)==null?void 0:r.address)!=null?e:""}get openIntent(){return this._openIntent}setOpenIntent(e){this._openIntent=e}get connectOptions(){return this._connectOptions}setConnectOptions(e){var r;this._connectOptions=e,(r=this.onConnectOptionsChange)==null||r.call(this,e)}async setDefaultChainId(e){var r;return await((r=this.prompter)==null?void 0:r.promptChangeNetwork(e)),this.defaultChainId()}async getNetworks(e){return this.account?e?this.account.networks.map(r=>{const n=er({},r);return n.provider=void 0,n.relayer=void 0,n}):this.account.networks:(Se.warn("signer not set: getNetworks is returning an empty list"),[])}walletSession(e){if(!this.account)return;const r={walletContext:this.account.contexts,accountAddress:this.account.address,networks:this.account.networks.map(s=>er({},s,{provider:void 0,relayer:void 0}))};if(e){const s=Ns(r.networks,e);if(s){var n;(n=r.networks)==null||n.forEach(i=>delete i.isDefaultChain),s.isDefaultChain=!0}}return r}notifyConnect(e,r){var n;if(console.log("emit connect",e),this.events.emit("connect",e),(n=e.session)!=null&&n.accountAddress){var s;this.events.emit("accountsChanged",[(s=e.session)==null?void 0:s.accountAddress],r)}}notifyDisconnect(e){this.events.emit("accountsChanged",[],e),this.events.emit("disconnect",void 0,e)}notifyChainChanged(e,r){this.events.emit("chainChanged",pr(e),r)}async notifyNetworks(e){const r=e||await this.getNetworks(!0);if(this.events.emit("networks",r),r.length>0){const n=r.find(s=>s.chainId===this.defaultChainId());n&&this.events.emit("chainChanged",pr(n.chainId))}else this.events.emit("chainChanged","0x0")}async notifyWalletContext(){if(!this.account){Se.warn("signer not set: skipping to notify wallet context");return}const e=this.account.contexts;this.events.emit("walletContext",e)}notifyClose(e){this.events.emit("close",e)}setAccount(e){if(this.account=e,e!==void 0){for(let r=0;rc.canOnchainValidate||c.original.version===2&&n,o=await r.status(s);if(i(o))return!0;if(await e.promptConfirmWalletDeploy(s,this.connectOptions)){const c=await r.status(s);return i(c)?!0:(Se.error("WalletRequestHandler: result for promptConfirmWalletDeploy is not correct"),!1)}return!1}}function P3(t,e){return{context:e.original.context,config:e.onChain.config,address:ye.context.addressOf(e.original.context,e.original.imageHash),chainId:t,deployed:e.onChain.deployed,imageHash:e.imageHash,lastImageHash:e.onChain.imageHash,published:!0,status:e}}const Kfe=["net_version","eth_chainId","eth_getBalance","eth_getTransactionCount","eth_blockNumber","eth_getBlockByNumber","eth_getBlockByHash","eth_getTransactionByHash","eth_getCode","eth_estimateGas","eth_gasPrice","sequence_getWalletContext","sequence_getNetworks","sequence_setDefaultNetwork"];function Qfe(t,e){if(t==null)return{};var r={},n=Object.keys(t),s,i;for(i=0;i=0)&&(r[s]=t[s]);return r}class Sd{get utils(){return this.provider.utils}constructor(e,r){this.client=e,this.provider=r,this.singleNetworkSigners={},this._isSequenceSigner=!0}async getAddress(){return this.client.getAddress()}connect(e){if(!Td.is(e))throw new Error("SequenceSigner can only be connected to a SequenceProvider");return new Sd(this.client,e)}getSigner(e){if(!e)return this;const r=this.provider.toChainId(e);return this.singleNetworkSigners[r]||(this.singleNetworkSigners[r]=new Fk(this.client,this.provider,r)),this.singleNetworkSigners[r]}useChainId(e){return this.provider.toChainId(e)||this.client.getChainId()}async signMessage(e,r){const{eip6492:n=!0}=r||{},s=this.useChainId(r==null?void 0:r.chainId);return this.client.signMessage(e,{eip6492:n,chainId:s})}async signTypedData(e,r,n,s){const{eip6492:i=!0}=s||{},o=this.useChainId(s==null?void 0:s.chainId);return this.client.signTypedData({domain:e,types:r,message:n},{eip6492:i,chainId:o})}getProvider(e){return this.provider.getProvider(e)}async sendTransaction(e,r){const n=this.useChainId(r==null?void 0:r.chainId),s=await SF(e),i=await this.client.sendTransaction(s,{chainId:n}),o=this.getProvider(n);try{return await new Promise(c=>{(async function u(){const f=await o.getTransaction(i);if(f!==null)return c(f);await o.once("block",u)})()})}catch(a){throw a.transactionHash=i,a}}async getWalletConfig(e){const r=this.useChainId(e);return this.client.getOnchainWalletConfig({chainId:r})}getNetworks(){return this.client.getNetworks()}async getBalance(e,r){return this.getProvider(r==null?void 0:r.chainId).getBalance(this.getAddress(),e)}async estimateGas(e,r){return this.getProvider(r==null?void 0:r.chainId).estimateGas(e)}async call(e,r){return this.getProvider(r==null?void 0:r.chainId).call(e)}getChainId(){return Promise.resolve(this.client.getChainId())}async getFeeData(e){return this.getProvider(e==null?void 0:e.chainId).getFeeData()}async resolveName(e){const r=await this.provider.resolveName(e);if(r===null)throw new Error(`ENS name not found: ${e}`);return r}_checkProvider(e){}getNonce(e){throw new Error("SequenceSigner does not support getNonce")}populateCall(e){throw new Error("SequenceSigner does not support populateCall")}populateTransaction(e){throw new Error("SequenceSigner does not support populateTransaction")}checkTransaction(e){throw new Error("SequenceSigner does not support checkTransaction")}getTransactionCount(e){throw new Error("SequenceSigner does not support getTransactionCount")}signTransaction(e){throw new Error("SequenceWallet does not support signTransaction, use sendTransaction instead.")}static is(e){return e&&typeof e=="object"&&e._isSequenceSigner===!0}}class Fk extends Sd{constructor(e,r,n){super(e,r.getProvider(n)),this.chainId=n,this._isSingleNetworkSequenceSigner=!0}_useChainId(e){const r=this.provider.toChainId(e);if(r&&r!==this.chainId)throw new Error(`This signer only supports the network ${this.chainId}, but ${r} was requested.`);return r||this.provider.toChainId(this.chainId)}useChainId(e){return this._useChainId(e)}getChainId(){return Promise.resolve(this.provider.toChainId(this.chainId))}getProvider(e){return super.getProvider(this._useChainId(e))}getSigner(e){if(this._useChainId(e)!==this.chainId)throw new Error("Unreachable code");return this}static is(e){return e&&typeof e=="object"&&e._isSingleNetworkSequenceSigner===!0}}class Jfe{constructor(e){if(this.signer=e,Fk.is(e))throw new Error("WalletUtils does not support SingleNetworkSequenceSigner")}signMessage(e,r,n){return this.signer.signMessage(e,{chainId:r,eip6492:n})}signTypedData(e,r,n,s,i){return this.signer.signTypedData(e,r,n,{chainId:s,eip6492:i})}async isValidSignature(e,r,n,s){return ad(e,r,n,this.signer.getProvider(s))}async isValidMessageSignature(e,r,n,s){const i=this.signer.getProvider(s),o=pm(r),a=ik(o);return ad(e,a,n,i)}isValidTypedDataSignature(e,r,n,s){return this.isValidSignature(e,kd(r),n,s)}}const Yfe=["method"],I3=["connect","disconnect","chainChanged","accountsChanged"];class Td extends lo{constructor(e,r,n=id,s){super(e.getChainId(),s),this.client=e,this.providerFor=r,this.networks=n,this.options=s,this.singleNetworkProviders={},this._isSequenceProvider=!0,this.utils=void 0,this.signer=void 0,this.eip1193EventListeners=new Map,e.onConnect(i=>{var o;(o=this.eip1193EventListeners.get("connect"))==null||o.forEach(a=>a(i))}),e.onDisconnect(i=>{var o;(o=this.eip1193EventListeners.get("disconnect"))==null||o.forEach(a=>a(i))}),e.onDefaultChainIdChanged(i=>{var o;(o=this.eip1193EventListeners.get("chainChanged"))==null||o.forEach(a=>a(i))}),e.onAccountsChanged(i=>{var o;(o=this.eip1193EventListeners.get("accountsChanged"))==null||o.forEach(a=>a(i))}),this.signer=new Sd(this.client,this),this.utils=new Jfe(this.signer)}async on(e,r){if(I3.includes(e)){const n=this.eip1193EventListeners.get(e)||new Set;return n.add(r),this.eip1193EventListeners.set(e,n),this}return super.on(e,r)}async off(e,r){if(I3.includes(e)){const n=this.eip1193EventListeners.get(e);return n&&(r?n.delete(r):n.clear()),this}return super.off(e,r)}getSigner(e){return this.signer.getSigner(e)}connect(e){return this.client.connect(e)}disconnect(){return this.client.disconnect()}isConnected(){return this.client.isConnected()}getSession(){return this.client.getSession()}listAccounts(){return[this.client.getAddress()]}getAddress(){return this.client.getAddress()}getNetworks(){return this.client.getNetworks()}getChainId(){return this.client.getChainId()}setDefaultChainId(e){return this.client.setDefaultChainId(this.toChainId(e))}isOpened(){return this.client.isOpened()}closeWallet(){return this.client.closeWallet()}getWalletContext(){return this.client.getWalletContext()}async getWalletConfig(e){const r=await this.useChainId(e);return this.client.getOnchainWalletConfig({chainId:r})}authorize(e){return this.client.connect(er({},e,{authorize:!0}))}async openWallet(e,r){return await this.client.openWallet(e,r),!0}toChainId(e){if(e===void 0)return;const r=Ns(this.networks,e);if(!r)throw new Error(`Unsupported network ${e}`);return r.chainId}async useChainId(e){return this.toChainId(e)||this.client.getChainId()}getProvider(e){if(!e)return this;const r=this.toChainId(e);return this.singleNetworkProviders[r]||(this.singleNetworkProviders[r]=new MF(this.client,this.providerFor,r,this.options)),this.singleNetworkProviders[r]}async _getSubprovider(e){const r=await this.useChainId(e),n=this.providerFor(r);if(!n)throw new Error(`Unsupported network ${r}`);return n}async _perform(e){var r;const{method:n}=e,s=Qfe(e,Yfe),i=await this._getSubprovider(),o=(r=i.getRpcRequest(e))!=null?r:{method:n,args:Object.values(s)};if(!o)throw new Error(`Unsupported method ${e.method}`);return i.send(o.method,o.args)}async perform(e,r){if(e==="eth_chainId")return pr(await this.useChainId());if(e==="eth_accounts")return[this.client.getAddress()];if(e==="wallet_switchEthereumChain"){const n=r[0],s=_F(n);return this.setDefaultChainId(s)}return e==="eth_sendTransaction"||e==="eth_sign"||e==="eth_signTypedData"||e==="eth_signTypedData_v4"||e==="personal_sign"||e==="sequence_sign"||e==="sequence_signTypedData_v4"?this.client.request({method:e,params:r,chainId:this.getChainId()}):this._perform(er({method:e},r))}send(e,r){return this.perform(e,r)}request(e){return this.perform(e.method,e.params)}async _detectNetwork(){const e=this.client.getChainId(),r=Ns(this.networks,e);if(!r)throw new Error(`Unknown network ${e}`);return new ot(r.name,r.chainId)}async detectNetwork(){return this._detectNetwork()}async waitForTransaction(e,r,n,s){return(await this._getSubprovider(s==null?void 0:s.chainId)).waitForTransaction(e,r,n)}async getBlockNumber(e){return(await this._getSubprovider(e==null?void 0:e.chainId)).getBlockNumber()}async getFeeData(e){return(await this._getSubprovider(e==null?void 0:e.chainId)).getFeeData()}async getBalance(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getBalance(e,r)}async getTransactionCount(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getTransactionCount(e,r)}async getCode(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getCode(e,r)}async getStorage(e,r,n,s){return(await this._getSubprovider(s==null?void 0:s.chainId)).getStorage(e,r,n)}async call(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).call(e)}async estimateGas(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).estimateGas(e)}async getBlock(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getBlock(e,r)}async getTransaction(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).getTransaction(e)}async getLogs(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).getLogs(e)}async supportsENS(){return(await this.getNetworks()).some(r=>r.chainId===1)}async getResolver(e){return await this.supportsENS()?(await this._getSubprovider(1)).getResolver(e):null}async resolveName(e){return ON(e)?e:await this.supportsENS()?(await this._getSubprovider(1)).resolveName(e):null}async lookupAddress(e){return await this.supportsENS()?(await this._getSubprovider(1)).lookupAddress(e):null}async getAvatar(e){return await this.supportsENS()?(await this._getSubprovider(1)).getAvatar(e):null}}Td.is=t=>t&&typeof t=="object"&&t._isSequenceProvider===!0;function _F(t){return typeof t=="object"?_F(t.chainId):Number(t)}class MF extends Td{constructor(e,r,n,s){super(e,r,void 0,s),this.chainId=n,this._isSingleNetworkSequenceProvider=!0}_useChainId(e){const r=this.toChainId(e);if(r&&r!==this.chainId)throw new Error(`This provider only supports the network ${this.chainId}, but ${r} was requested.`);return r||super.toChainId(this.chainId)}useChainId(e){return Promise.resolve(this._useChainId(e))}getChainId(){return super.toChainId(this.chainId)}async getNetwork(){const e=await this.client.getNetworks(),r=Ns(e,this.chainId);if(!r)throw new Error(`Unsupported network ${this.chainId}`);return new ot(r.name,r.chainId)}getProvider(e){if(this._useChainId(e)!==this.chainId)throw new Error("Unreachable code");return this}getSigner(e){return super.getSigner(this._useChainId(e))}setDefaultChainId(e){throw new Error(`This provider only supports the network ${this.chainId}; use the parent provider to switch networks.`)}static is(e){return e&&typeof e=="object"&&e._isSingleNetworkSequenceProvider===!0}}class Xfe extends Efe{}const Zfe=(t,e)=>{e||(e="https://nodes.sequence.app");const r=!t,n={};return t&&(n.headers={"X-Access-Key":t}),new Xfe(e,n,{noop:r,defaultEnabled:!0,privacy:{userIdHash:!0,userAgentSalt:!1},initProps:()=>Qi()?{origin:window.location.origin}:{}})};class nl{constructor(e){this.store=e}connectedSession(){const e=this.getSession();if(e&&e.accountAddress&&e.walletContext&&e.networks)return{accountAddress:e.accountAddress,walletContext:e.walletContext,networks:e.networks};throw new Error("Sequence session not connected")}hasSession(){var e;return((e=this.getSession())==null?void 0:e.accountAddress)!==void 0}setSession(e){return this.store.setItem(nl.SESSION_LOCALSTORE_KEY,JSON.stringify(e))}getSession(){const e=this.store.getItem(nl.SESSION_LOCALSTORE_KEY);if(e)return JSON.parse(e)}async clearSession(){return this.store.removeItem(nl.SESSION_LOCALSTORE_KEY)}}nl.SESSION_LOCALSTORE_KEY="@sequence.session";class sl{constructor(e,r=1){this.store=e,this.startingChainId=r,this.callbacks=[],e.onItemChange(sl.SESSION_CHAIN_ID_KEY,n=>{if(n){const s=parseInt(n);this.callbacks.forEach(i=>i(s))}})}onDefaultChainIdChanged(e){return this.callbacks.push(e),()=>{this.callbacks=this.callbacks.filter(r=>r!==e)}}setDefaultChainId(e){e!==this.getDefaultChainId()&&this.store.setItem(sl.SESSION_CHAIN_ID_KEY,e.toString())}getDefaultChainId(){const e=this.store.getItem(sl.SESSION_CHAIN_ID_KEY);return!e||e.length===0?this.startingChainId:parseInt(e)}}sl.SESSION_CHAIN_ID_KEY="@sequence.session.defaultChainId";class Uk{constructor(e,r,n){var s,i;if(this.session=void 0,this.defaultChainId=void 0,this.callbacks={},this.transport=void 0,this.defaultEIP6492=void 0,this.projectAccessKey=void 0,this.analytics=void 0,NF(e))this.transport=ym.new(e);else if(gF(e))this.transport=e;else throw new Error("Invalid transport");const o=n==null?void 0:n.defaultChainId;if(this.defaultEIP6492=(s=n==null?void 0:n.defaultEIP6492)!=null?s:!1,this.session=new nl(r),this.defaultChainId=new sl(r,o),this.transport.on("accountsChanged",l=>{var u;l.length>1&&console.warn("SequenceClient: wallet-webapp returned more than one account"),(u=this.callbacks.accountsChanged)==null||u.forEach(f=>f(l))}),this.transport.on("connect",l=>{var u;const f=pr(this.getChainId());(u=this.callbacks.connect)==null||u.forEach(d=>d(er({},l,{chainId:f})))}),this.transport.on("disconnect",(l,u)=>{var f;(f=this.callbacks.disconnect)==null||f.forEach(d=>d(l,u))}),this.transport.on("networks",l=>{var u;(u=this.callbacks.networks)==null||u.forEach(f=>f(l))}),this.transport.on("walletContext",l=>{var u;(u=this.callbacks.walletContext)==null||u.forEach(f=>f(l))}),this.transport.on("open",l=>{var u;(u=this.callbacks.open)==null||u.forEach(f=>f(l))}),this.transport.on("close",()=>{var l;(l=this.callbacks.close)==null||l.forEach(u=>u())}),this.transport.on("chainChanged",(l,u)=>{var f;(f=this.callbacks.chainChanged)==null||f.forEach(d=>d(l,u))}),this.defaultChainId.onDefaultChainIdChanged(l=>{var u;const f=pr(l);(u=this.callbacks.chainChanged)==null||u.forEach(d=>d(f))}),n!=null&&n.projectAccessKey&&(this.projectAccessKey=n.projectAccessKey),this.projectAccessKey&&n!=null&&n.analytics&&(this.analytics=Zfe(this.projectAccessKey)),(i=this.session.getSession())!=null&&i.accountAddress){var a,c;(a=this.analytics)==null||a.identify((c=this.session.getSession())==null||(c=c.accountAddress)==null?void 0:c.toLowerCase())}}registerCallback(e,r){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(r),()=>{this.callbacks[e]=this.callbacks[e].filter(n=>n!==r)}}onOpen(e){return this.registerCallback("open",e)}onClose(e){return this.registerCallback("close",e)}onConnect(e){return this.registerCallback("connect",e)}onDisconnect(e){return this.registerCallback("disconnect",e)}onNetworks(e){return this.registerCallback("networks",e)}onAccountsChanged(e){return this.registerCallback("accountsChanged",e)}onWalletContext(e){return this.registerCallback("walletContext",e)}onChainChanged(e){return this.registerCallback("chainChanged",e)}onDefaultChainIdChanged(e){return this.registerCallback("chainChanged",e)}getChainId(){return this.defaultChainId.getDefaultChainId()}setDefaultChainId(e){return this.defaultChainId.setDefaultChainId(e)}async openWallet(e,r){return this.transport.openWallet(e,r,this.getChainId()),await this.transport.waitUntilOpened(),this.isOpened()}closeWallet(){return this.transport.closeWallet()}isOpened(){return this.transport.isOpened()}isConnected(){return this.session.hasSession()}getSession(){return this.session.getSession()}getAddress(){return this.session.connectedSession().accountAddress}async connect(e){if((e==null?void 0:e.authorizeVersion)===void 0&&(e.authorizeVersion=2),(e==null?void 0:e.refresh)===!0&&this.disconnect(),e.projectAccessKey=this.projectAccessKey,e&&e.authorize){if(!e.app)throw new Error("connecting with 'authorize' option also requires 'app' to be set");e.authorizeVersion===void 0&&(e.authorizeVersion=2)}await this.openWallet(void 0,{type:"connect",options:er({},e,{networkId:this.getChainId(),clientVersion:$r})});const r=await this.transport.waitUntilConnected().catch(i=>i instanceof Error?{connected:!1,error:i.message}:{connected:!1,error:JSON.stringify(i)});if(r.chainId&&(r.chainId=BigInt(r.chainId).toString()),r.connected){var n;if(!r.session)throw new Error("impossible state, connect response is missing session");if(this.session.setSession(r.session),(n=r.session)!=null&&n.accountAddress){var s;(s=this.analytics)==null||s.identify(r.session.accountAddress.toLowerCase())}}return r}disconnect(){var e;return this.isOpened()&&this.closeWallet(),(e=this.analytics)==null||e.reset(),this.session.clearSession()}async request(e){e.method=this.mapSignMethod(e.method);const r=await this.transport.request(e);return ede(r)}async getNetworks(e){const r=this.session.connectedSession();return e&&(r.networks=await this.request({method:"sequence_getNetworks"}),this.session.setSession(r)),r.networks}signMethod(e){return(e==null?void 0:e.eip6492)===void 0?"personal_sign":e.eip6492?"sequence_sign":"legacy_sign"}signTypedDataMethod(e){return(e==null?void 0:e.eip6492)===void 0?"eth_signTypedData_v4":e.eip6492?"sequence_signTypedData_v4":"legacy_signTypedData_v4"}mapSignMethod(e){return e==="personal_sign"?this.defaultEIP6492?"sequence_sign":"personal_sign":e==="eth_signTypedData_v4"?this.defaultEIP6492?"sequence_signTypedData_v4":"eth_signTypedData_v4":e==="legacy_sign"?"personal_sign":e==="legacy_signTypedData_v4"?"eth_signTypedData_v4":e}async signMessage(e,r){var n;const s=this.signMethod(r);return(n=this.analytics)==null||n.track({event:"SIGN_MESSAGE_REQUEST",props:{chainId:`${(r==null?void 0:r.chainId)||this.getChainId()}`}}),e=H(Lk(e)),this.request({method:s,params:[e,this.getAddress()],chainId:r==null?void 0:r.chainId})}async signTypedData(e,r){var n;const s=this.signTypedDataMethod(r),i=Bs.getPayload(e.domain,e.types,e.message);return(n=this.analytics)==null||n.track({event:"SIGN_TYPED_DATA_REQUEST",props:{chainId:`${(r==null?void 0:r.chainId)||this.getChainId()}`}}),this.request({method:s,params:[this.getAddress(),i],chainId:(r==null?void 0:r.chainId)||e.domain.chainId&&Number(e.domain.chainId)||this.getChainId()})}async sendTransaction(e,r){var n;const s=Array.isArray(e)?e:[e],i=Hfe(s);return(n=this.analytics)==null||n.track({event:"SEND_TRANSACTION_REQUEST",props:{chainId:`${(r==null?void 0:r.chainId)||this.getChainId()}`}}),this.request({method:"eth_sendTransaction",params:[i],chainId:r==null?void 0:r.chainId})}async getWalletContext(){return this.request({method:"sequence_getWalletContext"})}async getOnchainWalletConfig(e){const r=await this.request({method:"sequence_getWalletConfig",params:[(e==null?void 0:e.chainId)||this.getChainId()],chainId:e==null?void 0:e.chainId});return Array.isArray(r)?r[0]:r}}const ede=t=>t&&typeof t=="object"&&"jsonrpc"in t&&"result"in t?t.result:t,K2={transports:{walletAppURL:"https://sequence.app",windowTransport:{enabled:!0},proxyTransport:{enabled:!1}},defaultNetwork:1,analytics:!0};let li;const DF=(t,e)=>{var r,n,s;if(!t||typeof t!="string")throw new Error("Please pass a projectAccessKey in initWallet.");if(li)return li;const i=er({},K2,e,{transports:er({},K2.transports,e==null?void 0:e.transports)}),o={},a=(r=(n=i.networks)==null?void 0:n.filter(h=>{h.rpcUrl!==void 0&&h.chainId!==void 0&&id.find(y=>y.chainId===h.chainId)}))!=null?r:[],c=id.map(h=>{var y;const p=(y=i.networks)==null?void 0:y.find(b=>b.chainId===h.chainId);return p?er({},h,p):h}).concat(a).map(h=>(h.rpcUrl.includes(t)||(h.rpcUrl=h.rpcUrl+`/${t}`),h)),l=h=>{if(!o[h]){var y;const p=(y=c.find(b=>b.chainId===h))==null?void 0:y.rpcUrl;if(!p)throw new Error(`no rpcUrl found for chainId: ${h}`);o[h]=new zM(p,{middlewares:[WM,$M,new ak]},{cacheTimeout:-1})}return o[h]},u=i.defaultNetwork?(s=Ns(c,i.defaultNetwork))==null?void 0:s.chainId:void 0;if(!u&&i.defaultNetwork)throw new Error(`defaultNetwork not found for chainId: ${i.defaultNetwork}`);const f=i.localStorage||Ov(),d=new Uk(i.transports,f,{defaultChainId:u,defaultEIP6492:i.defaultEIP6492,projectAccessKey:t,analytics:i.analytics});return li=new Td(d,l),li},BF=()=>{li&&(li.client.closeWallet(),li.client.transport.unregister(),li=void 0)},LF=()=>{if(!li)throw new Error("Wallet has not been initialized, call sequence.initWallet(config) first.");return li},tde=Object.freeze(Object.defineProperty({__proto__:null,BaseInjectedTransport:Wfe,BaseProviderTransport:R1,BaseWalletTransport:N1,CHANNEL_ID:jk,DefaultChainIdTracker:sl,DefaultProviderConfig:K2,ErrSignedInRequired:xF,EventType:Ue,ExtensionMessageHandler:$fe,ExtensionMessageProvider:OF,InitState:dt,LocalStorage:M0,MemoryItemStore:AF,MuxMessageProvider:ym,OpenState:Kn,PROVIDER_OPEN_TIMEOUT:Bk,ProviderError:mF,ProxyMessageChannel:jfe,ProxyMessageChannelPort:q2,ProxyMessageHandler:Ffe,ProxyMessageProvider:TF,SequenceClient:Uk,SequenceClientSession:nl,SequenceProvider:Td,SequenceSigner:Sd,SingleNetworkSequenceProvider:MF,SingleNetworkSequenceSigner:Fk,UnrealMessageHandler:Ufe,UnrealMessageProvider:IF,WalletRequestHandler:qfe,WindowMessageHandler:Vfe,WindowMessageProvider:RF,WindowSessionParams:O1,getWallet:LF,initWallet:DF,isBrowserExtension:Iv,isMuxTransportTemplate:NF,isProviderTransport:gF,isUnityPlugin:EF,isValidMessageSignature:wF,isValidSignature:ad,isValidTypedDataSignature:CF,isWalletUpToDate:kF,messageToBytes:Lk,nextMessageIdx:bF,prefixEIP191Message:pm,resolveArrayProperties:SF,trimEIP191Prefix:Lfe,unregisterWallet:BF,useBestStore:Ov,validateTransactionRequest:G2},Symbol.toStringTag,{value:"Module"}));function en(t,e){return e.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in t)){var s=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(t)}var rde=en({__proto__:null},[Loe]),nde=en({__proto__:null},[zoe]),sde=en({__proto__:null},[Aue]),ide=en({__proto__:null},[Vue]),ode=en({__proto__:null},[mle]),ade=en({__proto__:null},[Ole]),cde=en({__proto__:null},[Uae]),lde=en({__proto__:null},[tde]),ude=en({__proto__:null},[Zce]);const fde=ye.transaction;var dde=Object.freeze({__proto__:null,transactions:fde}),hde=en({__proto__:null,isValidSignature:ad,isValidMessageSignature:wF,isValidTypedDataSignature:CF,isWalletUpToDate:kF},[Tae]),pde=en({__proto__:null},[Oce]),yde=en({__proto__:null},[ele]),vde=en({__proto__:null},[Cue]),gde=en({__proto__:null},[Bce]),mde=en({__proto__:null},[ile]),ze=Object.freeze({__proto__:null,abi:rde,api:nde,auth:sde,guard:ide,indexer:ode,metadata:ade,network:cde,provider:lde,relayer:ude,transactions:dde,utils:hde,core:pde,signhub:yde,sessions:vde,migration:gde,account:mde,initWallet:DF,getWallet:LF,unregisterWallet:BF,SequenceProvider:Td,SequenceClient:Uk,SequenceSigner:Sd});const O3=[{constant:!1,inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"}];var xde="_1e9z9271";const bde=({message:t,loading:e})=>{const r=()=>t?` +...`:"...";return ie.jsx(zq,{label:"Console",defaultOpen:!0,children:ie.jsxs(me,{as:"pre",color:"text80",style:{fontFamily:"monospace",whiteSpace:"break-spaces",overflowWrap:"anywhere"},children:[t,e&&r(),ie.jsx(me,{className:xde,display:"inline-block",fontSize:"large",lineHeight:"4",style:{top:"-4px",position:"relative"},children:"_"})]})})};var wde="_1q07ov40";const Po=t=>{const{label:e,children:r,style:n,className:s}=t;return ie.jsxs(me,{marginTop:"10",marginBottom:"8",marginX:"0",width:"full",className:s,style:n,children:[e&&ie.jsx(me,{marginBottom:"2",children:ie.jsx(Cde,{children:e})}),ie.jsx(me,{className:wde,children:Wr.Children.map(r,(i,o)=>ie.jsx(me,{children:i},o))})]})},Cde=t=>ie.jsx(Tt,{variant:"normal",fontWeight:"medium",color:"text50",children:t.children}),Ede=()=>{const t=window.localStorage.getItem("defaultChainId");return t==null?null:Number(t)},R3=t=>"0x"+t.toString(16),kde="/demo-dapp/assets/logo-EKCqYZBG.svg",N3="/demo-dapp/assets/skyweaver-banner-AT9gQtXT.png",Ade="/demo-dapp/assets/skyweaver-banner-large-Dt2dVXke.png",_3="AQAAAAAAAAbvrgpWEC2Aefg5qYStQmwjBpA";bM({logLevel:"DEBUG"});const jF=[{name:"production",walletUrl:"https://sequence.app"},{name:"development",walletUrl:"https://dev.sequence.app"},{name:"local",walletUrl:"http://localhost:3333"}],Sde="https://api.sequence.app",M3=Ede()||L.MAINNET,Cc=new URLSearchParams(window.location.search),FF=Cc.get("env")??"production",Tde=jF.find(t=>t.name===FF),vu=Cc.get("walletAppURL")??Tde.walletUrl,Pde=Cc.has("showProhibitedActions");vu&&vu.length>0?ze.initWallet(_3,{defaultNetwork:M3,transports:{walletAppURL:vu}}):ze.initWallet(_3,{defaultNetwork:M3,transports:{walletAppURL:vu}});const Ide=()=>{const[t,e]=m.useState(null),[r,n]=m.useState(null),[s,i]=m.useState(!1),[o,a]=m.useState(!1),c=ze.getWallet().getProvider(),[l,u]=m.useState(c.getChainId()),[f,d]=m.useState(!1),[h,y]=m.useState(!1);m.useMemo(()=>{c.on("chainChanged",U=>{u(Number(BigInt(U)))})},[]),m.useEffect(()=>{a(c.isConnected())},[c]),m.useEffect(()=>{de()},[o]),m.useEffect(()=>{c.client.onOpen(()=>{console.log("wallet window opened")}),c.client.onClose(()=>{console.log("wallet window closed")})},[c]);const p={app:"Demo Dapp",askForEmail:!0},b=async(U={app:"Demo dapp"})=>{if(o){ue(),K("Wallet already connected!"),i(!1);return}U={...p,...U,settings:{...p.settings,...U.settings}};try{ue(),K("Connecting");const se=ze.getWallet(),ae=await se.connect(U);if(U.authorize&&ae.connected){let Oe=Cc.get("apiUrl");(!Oe||Oe.length===0)&&(Oe=Sde);const rt=new ze.api.SequenceAPIClient(Oe),{isValid:Ut}=await rt.isValidETHAuthProof({chainId:ae.chainId,walletAddress:ae.session.accountAddress,ethAuthProofString:ae.proof.proofString});K(`isValid (API)?: ${Ut}`)}if(U.authorize){const Oe=new gv;if(ae.proof){const rt=await Oe.decodeProof(ae.proof.proofString,!0),Ut=await se.utils.isValidTypedDataSignature(se.getAddress(),ae.proof.typedData,rt.signature,Number(BigInt(ae.chainId)));K(`connected using chainId: ${BigInt(ae.chainId).toString()}`),K(`isValid (client)?: ${Ut}`)}}i(!1),ae.connected?(K("Wallet connected!"),K(`shared email: ${ae.email}`),a(!0)):K("Failed to connect wallet - "+ae.error)}catch(se){console.error(se),oe()}},v=()=>{ze.getWallet().disconnect(),de(),a(!1)},g=()=>{ze.getWallet().openWallet()},x=()=>{const U=ze.getWallet(),ae={type:"openWithOptions",options:{app:"Demo Dapp",settings:{theme:"light",includedPaymentProviders:["moonpay","ramp"],defaultFundingCurrency:"eth",defaultPurchaseAmount:400,lockFundingCurrencyToDefault:!1}}};U.openWallet("wallet/add-funds",ae)},k=()=>{ze.getWallet().closeWallet()},S=async()=>{ue();const U=ze.getWallet();K(`isConnected?: ${U.isConnected()}`),i(!1)},I=async()=>{ue();const U=ze.getWallet();K(`isOpened?: ${U.isOpened()}`),i(!1)},R=async()=>{try{ue();const U=c.getChainId();K(`top chainId: ${U}`);const ae=c.getProvider().getChainId();K(`provider.getChainId(): ${ae}`);const rt=await c.getSigner().getChainId();K(`signer.getChainId(): ${rt}`),i(!1)}catch(U){console.error(U),oe()}},_=async()=>{try{ue();const U=ze.getWallet(),se=U.getAddress();K(`getAddress(): ${se}`);const Oe=U.getProvider().listAccounts();K(`accounts: ${JSON.stringify(Oe)}`),i(!1)}catch(U){console.error(U),oe()}},V=async()=>{try{ue();const U=ze.getWallet(),se=U.getProvider(),ae=U.getAddress(),Oe=await se.getBalance(ae);K(`balance check 1: ${Oe.toString()}`);const Ut=await U.getSigner().getBalance();K(`balance check 2: ${Ut.toString()}`),i(!1)}catch(U){console.error(U),oe()}},F=async()=>{try{ue();const se=await ze.getWallet().getNetworks();K(`networks: ${JSON.stringify(se,null,2)}`),i(!1)}catch(U){console.error(U),oe()}},X=async()=>{try{ue();const U=ze.getWallet();K("signing message...");const se=U.getSigner(),ae=`1915 Robert Frost The Road Not Taken Two roads diverged in a yellow wood, @@ -163,6 +163,6 @@ Two roads diverged in a wood, and I— I took the one less traveled by, And that has made all the difference. -☁ ☀ ☂`,Oe=await se.signMessage(ae);K(`signature: ${Oe}`);const rt=await U.utils.isValidMessageSignature(U.getAddress(),ae,Oe,await se.getChainId());if(K(`isValid?: ${rt}`),!rt)throw new Error("sig invalid");i(!1)}catch(U){console.error(U),oe()}},re=async()=>{try{ue();const U=ze.getWallet();K("signing message...");const se=U.getSigner(),ae=H(mt("Hello, world!")),Oe=await se.signMessage(ae);K(`signature: ${Oe}`);const rt=await U.utils.isValidMessageSignature(U.getAddress(),ae,Oe,await se.getChainId());if(K(`isValid?: ${rt}`),!rt)throw new Error("sig invalid");i(!1)}catch(U){console.error(U),oe()}},le=async()=>{try{ue();const U=ze.getWallet();K("signing message...");const se=U.getSigner(),ae=mt("Hello, world!"),Oe=await se.signMessage(ae);K(`signature: ${Oe}`);const rt=await U.utils.isValidMessageSignature(U.getAddress(),ae,Oe,await se.getChainId());if(K(`isValid?: ${rt}`),!rt)throw new Error("sig invalid");i(!1)}catch(U){console.error(U),oe()}},ee=async()=>{try{ue();const U=ze.getWallet();K("signing typedData...");const se={types:{Person:[{name:"name",type:"string"},{name:"wallet",type:"address"}],Mail:[{name:"from",type:"Person"},{name:"to",type:"Person"},{name:"cc",type:"Person[]"},{name:"contents",type:"string"},{name:"attachements",type:"string[]"}]},primaryType:"Mail",domain:{name:"Ether Mail",version:"1",chainId:1,verifyingContract:"0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"},message:{from:{name:"Cow",wallet:"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826"},to:{name:"Bob",wallet:"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"},cc:[{name:"Dev Team",wallet:"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"},{name:"Accounting",wallet:"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"}],contents:"Hello, Bob!",attachements:["cat.png","dog.png"]}},ae=U.getSigner(),Oe=await ae.signTypedData(se.domain,se.types,se.message);K(`signature: ${Oe}`);const rt=await U.utils.isValidTypedDataSignature(U.getAddress(),se,Oe,await ae.getChainId());K(`isValid?: ${rt}`),i(!1)}catch(U){console.error(U),oe()}},D=async()=>{try{ue();const U=ze.getWallet(),se="0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",ae=new pt(["function withdraw(uint256 amount)"]),Oe={to:se,data:ae.encodeFunctionData("withdraw",["1000000000000000000"])},Ut=await U.getProvider().estimateGas(Oe);K(`estimated gas needed for wmatic withdrawal : ${Ut.toString()}`),i(!1)}catch(U){console.error(U),oe()}},G=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner(),K(`Transfer txn on ${U.getChainId()} chainId`);const ae=await U.getAddress(),Oe={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:ae,value:Iw("1.234"),data:"0x"},rt={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:ae,value:Iw("0.4242"),data:"0x"},Ut=U.provider,bi=await Ut.getBalance(ae);K(`balance of ${ae}, before: ${bi}`);const pm=await U.sendTransaction([Oe,rt]);K(`txnResponse: ${JSON.stringify(pm)}`);const ym=await Ut.getBalance(ae);K(`balance of ${ae}, after: ${ym}`),i(!1)}catch(se){console.error(se),oe()}},Z=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae=await U.getAddress(),Oe=rv("1",1),Ut={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:"0x07865c6e87b9f70255377e024ace6630c1eaa37f",value:0,data:new pt(P3).encodeFunctionData("transfer",[ae,I3(Oe)])},bi=await U.sendTransaction([Ut],{chainId:L.SEPOLIA});K(`txnResponse: ${JSON.stringify(bi)}`),i(!1)}catch(se){console.error(se),oe()}},C=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae=await U.getAddress(),Oe=rv("0.05",18),Ut={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",value:0,data:new pt(P3).encodeFunctionData("transfer",[ae,I3(Oe)])},bi=await U.sendTransaction([Ut]);K(`txnResponse: ${JSON.stringify(bi)}`),i(!1)}catch(se){console.error(se),oe()}},A=async()=>{try{const U=ze.getWallet(),se=U.getChainId()===L.ARBITRUM?L.OPTIMISM:L.ARBITRUM;G(U.getSigner(se))}catch(U){console.error(U),oe()}},O=async()=>{try{ue(),K("TODO"),i(!1)}catch(U){console.error(U),oe()}},M=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae=["function balanceOf(address owner) view returns (uint256)","function decimals() view returns (uint8)","function symbol() view returns (string)","function transfer(address to, uint amount) returns (bool)","event Transfer(address indexed from, address indexed to, uint amount)"],Oe="0x2791bca1f2de4661ed88a30c99a7a9449aa84174",rt=new dn(Oe,ae),Ut=await rt.symbol();K(`Token symbol: ${Ut}`);const bi=await rt.balanceOf(await U.getAddress());K(`Token Balance: ${bi.toString()}`),i(!1)}catch(se){console.error(se),oe()}},B=async()=>{try{ue();const U=ze.getWallet(),ae=await U.getSigner().getAddress(),rt=(await U.getNetworks()).find(ym=>ym.chainId===L.POLYGON);if(!rt)throw new Error("Could not find Polygon network in networks list");const Ut=new ze.indexer.SequenceIndexer(rt.indexerUrl),bi=await Ut.getTokenBalances({accountAddress:ae,includeMetadata:!0});K(`tokens in your account: ${JSON.stringify(bi)}`);const pm=await Ut.getTokenBalances({accountAddress:ae,includeMetadata:!0,contractAddress:"0x631998e91476DA5B870D741192fc5Cbc55F5a52E"});K(`skyweaver collectibles in your account: ${JSON.stringify(pm)}`),i(!1)}catch(U){console.error(U),oe()}},W=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),data:new pt(Gt.mainModule.abi).encodeFunctionData("updateImplementation",[mi])},Oe=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Oe)}`),i(!1)}catch(se){console.error(se),oe()}},q=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),data:new pt(Gt.mainModuleUpgradable.abi).encodeFunctionData("updateImageHash",[pl])},Oe=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Oe)}`),i(!1)}catch(se){console.error(se),oe()}},te=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),delegateCall:!0},Oe=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Oe)}`),i(!1)}catch(se){console.error(se),oe()}},J=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),data:new pt(["function addHook(bytes4 _signature, address _implementation)"]).encodeFunctionData("addHook",["0x01234567",mi])},Oe=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Oe)}`),i(!1)}catch(se){console.error(se),oe()}},$=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),data:new pt(["function setExtraImageHash(bytes32 _imageHash, uint256 _expiration)"]).encodeFunctionData("setExtraImageHash",[pl,AN])},Oe=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Oe)}`),i(!1)}catch(se){console.error(se),oe()}},K=(U,se=!1)=>(console.log(U),e(se?U:ae=>`${ae} +☁ ☀ ☂`,Oe=await se.signMessage(ae);K(`signature: ${Oe}`);const rt=await U.utils.isValidMessageSignature(U.getAddress(),ae,Oe,await se.getChainId());if(K(`isValid?: ${rt}`),!rt)throw new Error("sig invalid");i(!1)}catch(U){console.error(U),oe()}},re=async()=>{try{ue();const U=ze.getWallet();K("signing message...");const se=U.getSigner(),ae=H(mt("Hello, world!")),Oe=await se.signMessage(ae);K(`signature: ${Oe}`);const rt=await U.utils.isValidMessageSignature(U.getAddress(),ae,Oe,await se.getChainId());if(K(`isValid?: ${rt}`),!rt)throw new Error("sig invalid");i(!1)}catch(U){console.error(U),oe()}},le=async()=>{try{ue();const U=ze.getWallet();K("signing message...");const se=U.getSigner(),ae=mt("Hello, world!"),Oe=await se.signMessage(ae);K(`signature: ${Oe}`);const rt=await U.utils.isValidMessageSignature(U.getAddress(),ae,Oe,await se.getChainId());if(K(`isValid?: ${rt}`),!rt)throw new Error("sig invalid");i(!1)}catch(U){console.error(U),oe()}},ee=async()=>{try{ue();const U=ze.getWallet();K("signing typedData...");const se={types:{Person:[{name:"name",type:"string"},{name:"wallet",type:"address"}],Mail:[{name:"from",type:"Person"},{name:"to",type:"Person"},{name:"cc",type:"Person[]"},{name:"contents",type:"string"},{name:"attachements",type:"string[]"}]},primaryType:"Mail",domain:{name:"Ether Mail",version:"1",chainId:1,verifyingContract:"0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"},message:{from:{name:"Cow",wallet:"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826"},to:{name:"Bob",wallet:"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"},cc:[{name:"Dev Team",wallet:"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"},{name:"Accounting",wallet:"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"}],contents:"Hello, Bob!",attachements:["cat.png","dog.png"]}},ae=U.getSigner(),Oe=await ae.signTypedData(se.domain,se.types,se.message);K(`signature: ${Oe}`);const rt=await U.utils.isValidTypedDataSignature(U.getAddress(),se,Oe,await ae.getChainId());K(`isValid?: ${rt}`),i(!1)}catch(U){console.error(U),oe()}},D=async()=>{try{ue();const U=ze.getWallet(),se="0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",ae=new pt(["function withdraw(uint256 amount)"]),Oe={to:se,data:ae.encodeFunctionData("withdraw",["1000000000000000000"])},Ut=await U.getProvider().estimateGas(Oe);K(`estimated gas needed for wmatic withdrawal : ${Ut.toString()}`),i(!1)}catch(U){console.error(U),oe()}},G=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner(),K(`Transfer txn on ${U.getChainId()} chainId`);const ae=await U.getAddress(),Oe={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:ae,value:Rw("1.234"),data:"0x"},rt={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:ae,value:Rw("0.4242"),data:"0x"},Ut=U.provider,wi=await Ut.getBalance(ae);K(`balance of ${ae}, before: ${wi}`);const vm=await U.sendTransaction([Oe,rt]);K(`txnResponse: ${JSON.stringify(vm)}`);const gm=await Ut.getBalance(ae);K(`balance of ${ae}, after: ${gm}`),i(!1)}catch(se){console.error(se),oe()}},Z=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae=await U.getAddress(),Oe=nv("1",1),Ut={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:"0x07865c6e87b9f70255377e024ace6630c1eaa37f",value:0,data:new pt(O3).encodeFunctionData("transfer",[ae,R3(Oe)])},wi=await U.sendTransaction([Ut],{chainId:L.SEPOLIA});K(`txnResponse: ${JSON.stringify(wi)}`),i(!1)}catch(se){console.error(se),oe()}},C=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae=await U.getAddress(),Oe=nv("0.05",18),Ut={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",value:0,data:new pt(O3).encodeFunctionData("transfer",[ae,R3(Oe)])},wi=await U.sendTransaction([Ut]);K(`txnResponse: ${JSON.stringify(wi)}`),i(!1)}catch(se){console.error(se),oe()}},A=async()=>{try{const U=ze.getWallet(),se=U.getChainId()===L.ARBITRUM?L.OPTIMISM:L.ARBITRUM;G(U.getSigner(se))}catch(U){console.error(U),oe()}},O=async()=>{try{ue(),K("TODO"),i(!1)}catch(U){console.error(U),oe()}},M=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae=["function balanceOf(address owner) view returns (uint256)","function decimals() view returns (uint8)","function symbol() view returns (string)","function transfer(address to, uint amount) returns (bool)","event Transfer(address indexed from, address indexed to, uint amount)"],Oe="0x2791bca1f2de4661ed88a30c99a7a9449aa84174",rt=new dn(Oe,ae),Ut=await rt.symbol();K(`Token symbol: ${Ut}`);const wi=await rt.balanceOf(await U.getAddress());K(`Token Balance: ${wi.toString()}`),i(!1)}catch(se){console.error(se),oe()}},B=async()=>{try{ue();const U=ze.getWallet(),ae=await U.getSigner().getAddress(),rt=(await U.getNetworks()).find(gm=>gm.chainId===L.POLYGON);if(!rt)throw new Error("Could not find Polygon network in networks list");const Ut=new ze.indexer.SequenceIndexer(rt.indexerUrl),wi=await Ut.getTokenBalances({accountAddress:ae,includeMetadata:!0});K(`tokens in your account: ${JSON.stringify(wi)}`);const vm=await Ut.getTokenBalances({accountAddress:ae,includeMetadata:!0,contractAddress:"0x631998e91476DA5B870D741192fc5Cbc55F5a52E"});K(`skyweaver collectibles in your account: ${JSON.stringify(vm)}`),i(!1)}catch(U){console.error(U),oe()}},W=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),data:new pt(Gt.mainModule.abi).encodeFunctionData("updateImplementation",[xi])},Oe=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Oe)}`),i(!1)}catch(se){console.error(se),oe()}},q=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),data:new pt(Gt.mainModuleUpgradable.abi).encodeFunctionData("updateImageHash",[yl])},Oe=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Oe)}`),i(!1)}catch(se){console.error(se),oe()}},te=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),delegateCall:!0},Oe=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Oe)}`),i(!1)}catch(se){console.error(se),oe()}},J=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),data:new pt(["function addHook(bytes4 _signature, address _implementation)"]).encodeFunctionData("addHook",["0x01234567",xi])},Oe=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Oe)}`),i(!1)}catch(se){console.error(se),oe()}},$=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),data:new pt(["function setExtraImageHash(bytes32 _imageHash, uint256 _expiration)"]).encodeFunctionData("setExtraImageHash",[yl,TN])},Oe=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Oe)}`),i(!1)}catch(se){console.error(se),oe()}},K=(U,se=!1)=>(console.log(U),e(se?U:ae=>`${ae} -${U}`)),ue=()=>{i(!0)},de=()=>{i(!1),e(o?"Status: Wallet is connected :)":"Status: Wallet not connected. Please connect wallet first.")},oe=()=>{i(!1),e("An error occurred")},Ce=[L.RINKEBY,L.HARDHAT,L.HARDHAT_2,L.KOVAN,L.ROPSTEN,L.HOMEVERSE_TESTNET,L.BASE_GOERLI],Re=Object.values(ze.network.networks).filter(U=>U.type===_e.MAINNET).sort((U,se)=>U.chainId-se.chainId),xt=Object.values(ze.network.networks).filter(U=>U.type===_e.TESTNET).sort((U,se)=>U.chainId-se.chainId),tn=[...Re,...xt].filter(U=>!U.deprecated&&!Ce.includes(U.chainId));m.useEffect(()=>{r&&!f&&(console.log(r),b({app:"Demo Dapp",authorize:!0,settings:{signInWithEmail:r,theme:"dark",bannerUrl:`${window.location.origin}${O3}`}}),n(null))},[r,f]);const br=U=>(U=U.trim(),!!/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/.test(U));return ie.jsxs(me,{marginY:"0",marginX:"auto",paddingX:"6",style:{maxWidth:"720px",marginTop:"80px",marginBottom:"80px"},children:[ie.jsx(me,{marginBottom:"10",children:ie.jsx("a",{href:"https://sequence.xyz/",target:"_blank",rel:"noopener",children:ie.jsx(zE,{height:"6",alt:"logo",src:Cde})})}),ie.jsx(me,{children:ie.jsx(Tt,{variant:"normal",color:"text100",fontWeight:"bold",children:"Demo Dapp"})}),ie.jsx(me,{marginTop:"1",marginBottom:"4",children:ie.jsx(Tt,{variant:"normal",color:"text80",children:"A dapp example on how to use the Sequence Wallet. This covers how to connect, sign messages and send transctions."})}),ie.jsxs(eq,{background:"backgroundMuted",alignItems:"center",gap:"3",children:[ie.jsx(Tq,{}),ie.jsx(Tt,{variant:"normal",color:"text80",children:"Please open your browser dev inspector to view output of functions below."})]}),ie.jsx(cS,{background:"buttonGlass"}),ie.jsx(me,{marginBottom:"4",children:ie.jsx(jS,{name:"environment",label:"Environment",labelLocation:"top",onValueChange:U=>{wc.set("env",U),wc.delete("walletAppURL"),window.location.search=wc.toString()},value:LF,options:[...Object.values(BF).map(U=>({label:ie.jsx(me,{alignItems:"center",gap:"2",children:ie.jsx(Tt,{capitalize:!0,children:U.name})}),value:String(U.name)}))]})}),ie.jsxs(me,{marginBottom:"4",children:[ie.jsx(Tt,{as:"div",variant:"small",color:"text100",children:"Wallet URL"}),ie.jsxs(me,{as:"a",href:yu,target:"_blank",rel:"noopener",textDecoration:"none",gap:"1",marginTop:"1",alignItems:"center",color:"text80",children:[ie.jsx(Tt,{as:"div",variant:"normal",color:"text80",children:yu}),ie.jsx(Eq,{})]})]}),ie.jsx(cS,{background:"buttonGlass"}),ie.jsx(me,{marginBottom:"4",children:ie.jsx(jS,{name:"chainId",label:"Network",labelLocation:"top",onValueChange:U=>c.setDefaultChainId(Number(U)),value:String(l),options:[...Object.values(tn).map(U=>({label:ie.jsxs(me,{alignItems:"center",gap:"2",children:[ie.jsx(hee,{src:U.logoURI,size:"sm"}),ie.jsx(Tt,{children:U.title})]}),value:String(U.chainId)}))]})}),ie.jsxs(To,{label:"Connection",children:[ie.jsx(We,{width:"full",shape:"square",onClick:()=>b(),label:"Connect"}),ie.jsx(We,{width:"full",shape:"square",onClick:()=>b({app:"Demo Dapp",authorize:!0}),label:"Connect & Auth"}),ie.jsx(We,{width:"full",shape:"square",onClick:()=>b({app:"Demo Dapp",authorize:!0,settings:{theme:"dark",bannerUrl:`${window.location.origin}${Ede}`,bannerSize:"medium",includedPaymentProviders:["moonpay"],defaultFundingCurrency:"matic",defaultPurchaseAmount:111}}),label:"Connect with Settings"}),ie.jsx(We,{width:"full",shape:"square",onClick:()=>{d(!0)},label:"Connect with Email"}),ie.jsx(We,{width:"full",shape:"square",onClick:()=>{b({app:"Demo Dapp",authorize:!0,settings:{signInWith:"google",theme:"dark",bannerUrl:`${window.location.origin}${O3}`}})},label:"Connect with Google"}),ie.jsx(We,{width:"full",shape:"square",onClick:()=>v(),label:"Disconnect"})]}),ie.jsxs(To,{label:"Basics",children:[ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>g(),label:"Open Wallet"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>x(),label:"Open Wallet with Settings"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>k(),label:"Close Wallet"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>S(),label:"Is Connected?"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>I(),label:"Is Opened?"})]}),ie.jsxs(To,{label:"State",children:[ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>R(),label:"ChainID"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>F(),label:"Networks"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>_(),label:"Get Accounts"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>V(),label:"Get Balance"})]}),ie.jsxs(To,{label:"Signing",children:[ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>X(),label:"Sign Message"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>re(),label:"Sign Message (Hex)"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>le(),label:"Sign Message (Bytes)"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>ee(),label:"Sign TypedData"})]}),ie.jsx(To,{label:"Simulation",children:ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>D(),label:"Estimate Unwrap Gas"})}),ie.jsxs(To,{label:"Transactions",children:[ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>G(),label:"Send funds"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>A(),label:"Send on L2"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>C(),label:"Send DAI"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o||!0,onClick:()=>O(),label:"Send ERC-1155 Tokens"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>Z(),label:"Send USDC on Sepolia"})]}),ie.jsxs(To,{label:"Various",children:[ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>M(),label:"Read Symbol and Balance"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>B(),label:"Fetch Token Balances"})]}),Sde&&ie.jsxs(To,{label:"Prohibited Actions - FOR TESTING ONLY! DO NOT CONFIRM!",children:[ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>W(),label:"Update Implementation"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>q(),label:"Update Image Hash"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>te(),label:"Delegate Call"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>J(),label:"Add Hook"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>$(),label:"Set Extra Image Hash"})]}),ie.jsx(aI,{children:f&&ie.jsx(uX,{onClose:()=>d(!1),size:"sm",children:ie.jsx(me,{flexDirection:"column",justifyContent:"space-between",height:"full",padding:"16",children:ie.jsxs(me,{flexDirection:"column",children:[ie.jsx(me,{marginTop:"6",children:ie.jsx(Tt,{marginTop:"5",variant:"normal",color:"text80",children:"Auto-email login, please specify the email address"})}),ie.jsx(me,{marginTop:"4",children:ie.jsx(YE,{onChange:U=>{n(U.target.value)}})}),h?ie.jsx(me,{marginTop:"6",children:ie.jsx(Tt,{marginTop:"5",variant:"normal",color:"warning",children:"please input an email with correct format"})}):null,ie.jsx(me,{gap:"2",marginY:"4",children:ie.jsx(We,{variant:"primary",label:"Login",onClick:()=>{br(r)?(y(!1),d(!1)):y(!0)},"data-id":"login"})})]})})})}),ie.jsx(mde,{message:t,loading:s})]})},Pde=$r.memo(Tde),Ide=nR(document.getElementById("root"));Ide.render(ie.jsx($r.StrictMode,{children:ie.jsx(sX,{children:ie.jsx(Pde,{})})})); +${U}`)),ue=()=>{i(!0)},de=()=>{i(!1),e(o?"Status: Wallet is connected :)":"Status: Wallet not connected. Please connect wallet first.")},oe=()=>{i(!1),e("An error occurred")},Ce=[L.RINKEBY,L.HARDHAT,L.HARDHAT_2,L.KOVAN,L.ROPSTEN,L.HOMEVERSE_TESTNET,L.BASE_GOERLI],Re=Object.values(ze.network.networks).filter(U=>U.type===_e.MAINNET).sort((U,se)=>U.chainId-se.chainId),xt=Object.values(ze.network.networks).filter(U=>U.type===_e.TESTNET).sort((U,se)=>U.chainId-se.chainId),tn=[...Re,...xt].filter(U=>!U.deprecated&&!Ce.includes(U.chainId));m.useEffect(()=>{r&&!f&&(console.log(r),b({app:"Demo Dapp",authorize:!0,settings:{signInWithEmail:r,theme:"dark",bannerUrl:`${window.location.origin}${N3}`}}),n(null))},[r,f]);const br=U=>(U=U.trim(),!!/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/.test(U));return ie.jsxs(me,{marginY:"0",marginX:"auto",paddingX:"6",style:{maxWidth:"720px",marginTop:"80px",marginBottom:"80px"},children:[ie.jsx(me,{marginBottom:"10",children:ie.jsx("a",{href:"https://sequence.xyz/",target:"_blank",rel:"noopener",children:ie.jsx(qE,{height:"6",alt:"logo",src:kde})})}),ie.jsx(me,{children:ie.jsx(Tt,{variant:"normal",color:"text100",fontWeight:"bold",children:"Demo Dapp"})}),ie.jsx(me,{marginTop:"1",marginBottom:"4",children:ie.jsx(Tt,{variant:"normal",color:"text80",children:"A dapp example on how to use the Sequence Wallet. This covers how to connect, sign messages and send transctions."})}),ie.jsxs(rq,{background:"backgroundMuted",alignItems:"center",gap:"3",children:[ie.jsx(Iq,{}),ie.jsx(Tt,{variant:"normal",color:"text80",children:"Please open your browser dev inspector to view output of functions below."})]}),ie.jsx(uS,{background:"buttonGlass"}),ie.jsx(me,{marginBottom:"4",children:ie.jsx(US,{name:"environment",label:"Environment",labelLocation:"top",onValueChange:U=>{Cc.set("env",U),Cc.delete("walletAppURL"),window.location.search=Cc.toString()},value:FF,options:[...Object.values(jF).map(U=>({label:ie.jsx(me,{alignItems:"center",gap:"2",children:ie.jsx(Tt,{capitalize:!0,children:U.name})}),value:String(U.name)}))]})}),ie.jsxs(me,{marginBottom:"4",children:[ie.jsx(Tt,{as:"div",variant:"small",color:"text100",children:"Wallet URL"}),ie.jsxs(me,{as:"a",href:vu,target:"_blank",rel:"noopener",textDecoration:"none",gap:"1",marginTop:"1",alignItems:"center",color:"text80",children:[ie.jsx(Tt,{as:"div",variant:"normal",color:"text80",children:vu}),ie.jsx(Aq,{})]})]}),ie.jsx(uS,{background:"buttonGlass"}),ie.jsx(me,{marginBottom:"4",children:ie.jsx(US,{name:"chainId",label:"Network",labelLocation:"top",onValueChange:U=>c.setDefaultChainId(Number(U)),value:String(l),options:[...Object.values(tn).map(U=>({label:ie.jsxs(me,{alignItems:"center",gap:"2",children:[ie.jsx(yee,{src:U.logoURI,size:"sm"}),ie.jsx(Tt,{children:U.title})]}),value:String(U.chainId)}))]})}),ie.jsxs(Po,{label:"Connection",children:[ie.jsx(We,{width:"full",shape:"square",onClick:()=>b(),label:"Connect"}),ie.jsx(We,{width:"full",shape:"square",onClick:()=>b({app:"Demo Dapp",authorize:!0}),label:"Connect & Auth"}),ie.jsx(We,{width:"full",shape:"square",onClick:()=>b({app:"Demo Dapp",authorize:!0,settings:{theme:"dark",bannerUrl:`${window.location.origin}${Ade}`,bannerSize:"medium",includedPaymentProviders:["moonpay"],defaultFundingCurrency:"matic",defaultPurchaseAmount:111}}),label:"Connect with Settings"}),ie.jsx(We,{width:"full",shape:"square",onClick:()=>{d(!0)},label:"Connect with Email"}),ie.jsx(We,{width:"full",shape:"square",onClick:()=>{b({app:"Demo Dapp",authorize:!0,settings:{signInWith:"google",theme:"dark",bannerUrl:`${window.location.origin}${N3}`}})},label:"Connect with Google"}),ie.jsx(We,{width:"full",shape:"square",onClick:()=>v(),label:"Disconnect"})]}),ie.jsxs(Po,{label:"Basics",children:[ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>g(),label:"Open Wallet"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>x(),label:"Open Wallet with Settings"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>k(),label:"Close Wallet"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>S(),label:"Is Connected?"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>I(),label:"Is Opened?"})]}),ie.jsxs(Po,{label:"State",children:[ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>R(),label:"ChainID"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>F(),label:"Networks"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>_(),label:"Get Accounts"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>V(),label:"Get Balance"})]}),ie.jsxs(Po,{label:"Signing",children:[ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>X(),label:"Sign Message"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>re(),label:"Sign Message (Hex)"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>le(),label:"Sign Message (Bytes)"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>ee(),label:"Sign TypedData"})]}),ie.jsx(Po,{label:"Simulation",children:ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>D(),label:"Estimate Unwrap Gas"})}),ie.jsxs(Po,{label:"Transactions",children:[ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>G(),label:"Send funds"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>A(),label:"Send on L2"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>C(),label:"Send DAI"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o||!0,onClick:()=>O(),label:"Send ERC-1155 Tokens"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>Z(),label:"Send USDC on Sepolia"})]}),ie.jsxs(Po,{label:"Various",children:[ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>M(),label:"Read Symbol and Balance"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>B(),label:"Fetch Token Balances"})]}),Pde&&ie.jsxs(Po,{label:"Prohibited Actions - FOR TESTING ONLY! DO NOT CONFIRM!",children:[ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>W(),label:"Update Implementation"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>q(),label:"Update Image Hash"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>te(),label:"Delegate Call"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>J(),label:"Add Hook"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>$(),label:"Set Extra Image Hash"})]}),ie.jsx(lI,{children:f&&ie.jsx(dX,{onClose:()=>d(!1),size:"sm",children:ie.jsx(me,{flexDirection:"column",justifyContent:"space-between",height:"full",padding:"16",children:ie.jsxs(me,{flexDirection:"column",children:[ie.jsx(me,{marginTop:"6",children:ie.jsx(Tt,{marginTop:"5",variant:"normal",color:"text80",children:"Auto-email login, please specify the email address"})}),ie.jsx(me,{marginTop:"4",children:ie.jsx(ZE,{onChange:U=>{n(U.target.value)}})}),h?ie.jsx(me,{marginTop:"6",children:ie.jsx(Tt,{marginTop:"5",variant:"normal",color:"warning",children:"please input an email with correct format"})}):null,ie.jsx(me,{gap:"2",marginY:"4",children:ie.jsx(We,{variant:"primary",label:"Login",onClick:()=>{br(r)?(y(!1),d(!1)):y(!0)},"data-id":"login"})})]})})})}),ie.jsx(bde,{message:t,loading:s})]})},Ode=Wr.memo(Ide),Rde=iR(document.getElementById("root"));Rde.render(ie.jsx(Wr.StrictMode,{children:ie.jsx(oX,{children:ie.jsx(Ode,{})})})); diff --git a/index.html b/index.html index 63da7b1..7582739 100644 --- a/index.html +++ b/index.html @@ -25,8 +25,8 @@ Learn how to configure a non-root public URL by running `npm run build`. --> Sequence | Demo Dapp - - + +