diff --git a/build.zip b/build.zip new file mode 100644 index 000000000..01a387e40 Binary files /dev/null and b/build.zip differ diff --git a/build/Vector-logo.png b/build/Vector-logo.png index 838928b98..aa6071c35 100644 Binary files a/build/Vector-logo.png and b/build/Vector-logo.png differ diff --git a/build/app.js b/build/app.js index 0e4cdb2c8..0cb35985e 100644 --- a/build/app.js +++ b/build/app.js @@ -1,5 +1,5 @@ { - __sveltekit_1jtw59 = { + __sveltekit_87synt = { base: new URL('.', location).pathname.slice(0, -1), env: { PUBLIC_GATEWAY_URL: 'https://testnet.gateway.netsepio.com/api/v1.0', @@ -15,8 +15,8 @@ const data = [null, null]; Promise.all([ - import('./app/immutable/entry/start.a7d5422b.js'), - import('./app/immutable/entry/app.a1afa593.js') + import('./app/immutable/entry/start.f403ef4d.js'), + import('./app/immutable/entry/app.9f060ed2.js') ]).then(([kit, app]) => { kit.start(app, element, { node_ids: [0, 2], diff --git a/build/app/immutable/assets/0.b28a10ce.css b/build/app/immutable/assets/0.678956fe.css similarity index 87% rename from build/app/immutable/assets/0.b28a10ce.css rename to build/app/immutable/assets/0.678956fe.css index 8ec380414..c628a2995 100644 --- a/build/app/immutable/assets/0.b28a10ce.css +++ b/build/app/immutable/assets/0.678956fe.css @@ -1 +1 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root,[data-theme]{background-color:hsla(var(--b1) / var(--tw-bg-opacity, 1));color:hsla(var(--bc) / var(--tw-text-opacity, 1))}html{-webkit-tap-highlight-color:transparent}:root{color-scheme:light;--pf: 258.89 94.378% 40.941%;--sf: 314 100% 37.647%;--af: 174 60% 40.784%;--nf: 219 14.085% 22.275%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 258.89 94.378% 51.176%;--pc: 0 0% 100%;--s: 314 100% 47.059%;--sc: 0 0% 100%;--a: 174 60% 50.98%;--ac: 174.71 43.59% 15.294%;--n: 219 14.085% 27.843%;--nc: 0 0% 100%;--b1: 0 0% 100%;--b2: 0 0% 94.902%;--b3: 180 1.9608% 90%;--bc: 215 27.907% 16.863%}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--pf: 262.35 80.315% 40.157%;--sf: 315.75 70.196% 40%;--af: 174.69 70.335% 32.784%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 262.35 80.315% 50.196%;--pc: 0 0% 100%;--s: 315.75 70.196% 50%;--sc: 0 0% 100%;--a: 174.69 70.335% 40.98%;--ac: 0 0% 100%;--n: 218.18 18.033% 11.961%;--nf: 222.86 17.073% 8.0392%;--nc: 220 13.376% 69.216%;--b1: 220 17.647% 20%;--b2: 220 17.241% 17.059%;--b3: 218.57 17.949% 15.294%;--bc: 220 13.376% 69.216%}}[data-theme=light]{color-scheme:light;--pf: 258.89 94.378% 40.941%;--sf: 314 100% 37.647%;--af: 174 60% 40.784%;--nf: 219 14.085% 22.275%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 258.89 94.378% 51.176%;--pc: 0 0% 100%;--s: 314 100% 47.059%;--sc: 0 0% 100%;--a: 174 60% 50.98%;--ac: 174.71 43.59% 15.294%;--n: 219 14.085% 27.843%;--nc: 0 0% 100%;--b1: 0 0% 100%;--b2: 0 0% 94.902%;--b3: 180 1.9608% 90%;--bc: 215 27.907% 16.863%}[data-theme=dark]{color-scheme:dark;--pf: 262.35 80.315% 40.157%;--sf: 315.75 70.196% 40%;--af: 174.69 70.335% 32.784%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 262.35 80.315% 50.196%;--pc: 0 0% 100%;--s: 315.75 70.196% 50%;--sc: 0 0% 100%;--a: 174.69 70.335% 40.98%;--ac: 0 0% 100%;--n: 218.18 18.033% 11.961%;--nf: 222.86 17.073% 8.0392%;--nc: 220 13.376% 69.216%;--b1: 220 17.647% 20%;--b2: 220 17.241% 17.059%;--b3: 218.57 17.949% 15.294%;--bc: 220 13.376% 69.216%}[data-theme=cupcake]{color-scheme:light;--pf: 183.03 47.368% 47.216%;--sf: 338.25 71.429% 62.431%;--af: 39 84.112% 46.431%;--nf: 280 46.479% 11.137%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 183.03 100% 11.804%;--sc: 338.25 100% 15.608%;--ac: 39 100% 11.608%;--nc: 280 82.688% 82.784%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--p: 183.03 47.368% 59.02%;--s: 338.25 71.429% 78.039%;--a: 39 84.112% 58.039%;--n: 280 46.479% 13.922%;--b1: 24 33.333% 97.059%;--b2: 26.667 21.951% 91.961%;--b3: 22.5 14.286% 89.02%;--bc: 280 46.479% 13.922%;--rounded-btn: 1.9rem;--tab-border: 2px;--tab-radius: .5rem}[data-theme=bumblebee]{color-scheme:light;--pf: 41.124 74.167% 42.353%;--sf: 49.901 94.393% 46.431%;--af: 240 33.333% 11.294%;--nf: 240 33.333% 11.294%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 0 0% 20%;--ac: 240 60.274% 82.824%;--nc: 240 60.274% 82.824%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 41.124 74.167% 52.941%;--pc: 240 33.333% 14.118%;--s: 49.901 94.393% 58.039%;--sc: 240 33.333% 14.118%;--a: 240 33.333% 14.118%;--n: 240 33.333% 14.118%;--b1: 0 0% 100%}[data-theme=emerald]{color-scheme:light;--pf: 141.18 50% 48%;--sf: 218.88 96.078% 48%;--af: 9.8901 81.25% 44.863%;--nf: 219.23 20.312% 20.078%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--btn-text-case: uppercase;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 141.18 50% 60%;--pc: 151.11 28.421% 18.627%;--s: 218.88 96.078% 60%;--sc: 210 20% 98.039%;--a: 9.8901 81.25% 56.078%;--ac: 210 20% 98.039%;--n: 219.23 20.312% 25.098%;--nc: 210 20% 98.039%;--b1: 0 0% 100%;--bc: 219.23 20.312% 25.098%;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1}[data-theme=corporate]{color-scheme:light;--pf: 229.09 95.652% 51.137%;--sf: 214.91 26.316% 47.216%;--af: 154.2 49.02% 48%;--nf: 233.33 27.273% 10.353%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 229.09 100% 92.784%;--sc: 214.91 100% 11.804%;--ac: 154.2 100% 12%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--btn-text-case: uppercase;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 229.09 95.652% 63.922%;--s: 214.91 26.316% 59.02%;--a: 154.2 49.02% 60%;--n: 233.33 27.273% 12.941%;--nc: 210 38.462% 94.902%;--b1: 0 0% 100%;--bc: 233.33 27.273% 12.941%;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1}[data-theme=synthwave]{color-scheme:dark;--pf: 320.73 69.62% 55.216%;--sf: 197.03 86.592% 51.922%;--af: 48 89.041% 45.647%;--nf: 253.22 60.825% 15.216%;--b2: 253.85 59.091% 23.294%;--b3: 253.85 59.091% 20.965%;--pc: 320.73 100% 13.804%;--sc: 197.03 100% 12.98%;--ac: 48 100% 11.412%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 320.73 69.62% 69.02%;--s: 197.03 86.592% 64.902%;--a: 48 89.041% 57.059%;--n: 253.22 60.825% 19.02%;--nc: 260 60% 98.039%;--b1: 253.85 59.091% 25.882%;--bc: 260 60% 98.039%;--in: 199.13 86.957% 63.922%;--inc: 257.45 63.218% 17.059%;--su: 168.1 74.233% 68.039%;--suc: 257.45 63.218% 17.059%;--wa: 48 89.041% 57.059%;--wac: 257.45 63.218% 17.059%;--er: 351.85 73.636% 56.863%;--erc: 260 60% 98.039%}[data-theme=retro]{color-scheme:light;--pf: 2.6667 73.77% 60.863%;--sf: 144.62 27.273% 57.569%;--af: 49.024 67.213% 60.863%;--nf: 41.667 16.822% 33.569%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 2.6667 73.77% 76.078%;--pc: 345 5.2632% 14.902%;--s: 144.62 27.273% 71.961%;--sc: 345 5.2632% 14.902%;--a: 49.024 67.213% 76.078%;--ac: 345 5.2632% 14.902%;--n: 41.667 16.822% 41.961%;--nc: 45 47.059% 80%;--b1: 45 47.059% 80%;--b2: 45.283 37.063% 71.961%;--b3: 42.188 35.955% 65.098%;--bc: 345 5.2632% 14.902%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%;--rounded-box: .4rem;--rounded-btn: .4rem;--rounded-badge: .4rem}[data-theme=cyberpunk]{color-scheme:light;--pf: 344.78 100% 58.353%;--sf: 195.12 80.392% 56%;--af: 276 74.324% 56.784%;--nf: 57.273 100% 10.353%;--b2: 56 100% 45%;--b3: 56 100% 40.5%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 56 100% 10%;--pc: 344.78 100% 14.588%;--sc: 195.12 100% 14%;--ac: 276 100% 14.196%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;--p: 344.78 100% 72.941%;--s: 195.12 80.392% 70%;--a: 276 74.324% 70.98%;--n: 57.273 100% 12.941%;--nc: 56 100% 50%;--b1: 56 100% 50%;--rounded-box: 0;--rounded-btn: 0;--rounded-badge: 0;--tab-radius: 0}[data-theme=valentine]{color-scheme:light;--pf: 353.23 73.81% 53.647%;--sf: 254.12 86.441% 61.49%;--af: 181.41 55.556% 56%;--nf: 336 42.857% 38.431%;--b2: 318.46 46.429% 80.118%;--b3: 318.46 46.429% 72.106%;--pc: 353.23 100% 13.412%;--sc: 254.12 100% 15.373%;--ac: 181.41 100% 14%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 353.23 73.81% 67.059%;--s: 254.12 86.441% 76.863%;--a: 181.41 55.556% 70%;--n: 336 42.857% 48.039%;--nc: 318.46 46.429% 89.02%;--b1: 318.46 46.429% 89.02%;--bc: 343.64 38.462% 28.039%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%;--rounded-btn: 1.9rem}[data-theme=halloween]{color-scheme:dark;--pf: 31.927 89.344% 41.725%;--sf: 271.22 45.794% 33.569%;--af: 91.071 100% 26.353%;--nf: 180 3.5714% 8.7843%;--b2: 0 0% 11.647%;--b3: 0 0% 10.482%;--bc: 0 0% 82.588%;--sc: 271.22 100% 88.392%;--ac: 91.071 100% 6.5882%;--nc: 180 4.8458% 82.196%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 31.927 89.344% 52.157%;--pc: 180 7.3171% 8.0392%;--s: 271.22 45.794% 41.961%;--a: 91.071 100% 32.941%;--n: 180 3.5714% 10.98%;--b1: 0 0% 12.941%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%}[data-theme=garden]{color-scheme:light;--pf: 138.86 15.982% 34.353%;--sf: 96.923 37.143% 74.51%;--af: 0 67.742% 75.137%;--nf: 0 3.9106% 28.078%;--b2: 0 4.3478% 81.882%;--b3: 0 4.3478% 73.694%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 138.86 100% 88.588%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 138.86 15.982% 42.941%;--s: 96.923 37.143% 93.137%;--sc: 96 32.468% 15.098%;--a: 0 67.742% 93.922%;--ac: 0 21.951% 16.078%;--n: 0 3.9106% 35.098%;--nc: 0 4.3478% 90.98%;--b1: 0 4.3478% 90.98%;--bc: 0 3.2258% 6.0784%}[data-theme=forest]{color-scheme:dark;--pf: 141.04 71.963% 33.569%;--sf: 140.98 74.694% 38.431%;--af: 35.148 68.98% 41.569%;--nf: 0 9.6774% 4.8627%;--b2: 0 12.195% 7.2353%;--b3: 0 12.195% 6.5118%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 0 11.727% 81.608%;--sc: 140.98 100% 9.6078%;--ac: 35.148 100% 10.392%;--nc: 0 6.8894% 81.216%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 141.04 71.963% 41.961%;--pc: 140.66 100% 88.039%;--s: 140.98 74.694% 48.039%;--a: 35.148 68.98% 51.961%;--n: 0 9.6774% 6.0784%;--b1: 0 12.195% 8.0392%;--rounded-btn: 1.9rem}[data-theme=aqua]{color-scheme:dark;--pf: 181.79 92.857% 39.529%;--sf: 274.41 30.909% 45.49%;--af: 47.059 100% 64%;--nf: 205.4 53.725% 40%;--b2: 218.61 52.511% 38.647%;--b3: 218.61 52.511% 34.782%;--bc: 218.61 100% 88.588%;--sc: 274.41 100% 91.373%;--ac: 47.059 100% 16%;--nc: 205.4 100% 90%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 181.79 92.857% 49.412%;--pc: 181.41 100% 16.667%;--s: 274.41 30.909% 56.863%;--a: 47.059 100% 80%;--n: 205.4 53.725% 50%;--b1: 218.61 52.511% 42.941%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%}[data-theme=lofi]{color-scheme:light;--pf: 0 0% 4.0784%;--sf: 0 1.9608% 8%;--af: 0 0% 11.922%;--nf: 0 0% 0%;--btn-text-case: uppercase;--border-btn: 1px;--tab-border: 1px;--p: 0 0% 5.098%;--pc: 0 0% 100%;--s: 0 1.9608% 10%;--sc: 0 0% 100%;--a: 0 0% 14.902%;--ac: 0 0% 100%;--n: 0 0% 0%;--nc: 0 0% 100%;--b1: 0 0% 100%;--b2: 0 0% 94.902%;--b3: 0 1.9608% 90%;--bc: 0 0% 0%;--in: 212.35 100% 47.647%;--inc: 0 0% 100%;--su: 136.84 72.152% 46.471%;--suc: 0 0% 100%;--wa: 4.5614 100% 66.471%;--wac: 0 0% 100%;--er: 325.05 77.6% 49.02%;--erc: 0 0% 100%;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1;--tab-radius: 0}[data-theme=pastel]{color-scheme:light;--pf: 283.64 21.569% 64%;--sf: 351.63 70.492% 70.431%;--af: 158.49 54.639% 64.784%;--nf: 198.62 43.719% 48.784%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 0 0% 20%;--pc: 283.64 59.314% 16%;--sc: 351.63 100% 17.608%;--ac: 158.49 100% 16.196%;--nc: 198.62 100% 12.196%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 283.64 21.569% 80%;--s: 351.63 70.492% 88.039%;--a: 158.49 54.639% 80.98%;--n: 198.62 43.719% 60.98%;--b1: 0 0% 100%;--b2: 210 20% 98.039%;--b3: 216 12.195% 83.922%;--rounded-btn: 1.9rem}[data-theme=fantasy]{color-scheme:light;--pf: 296.04 82.813% 20.078%;--sf: 200 100% 29.647%;--af: 30.894 94.378% 40.941%;--nf: 215 27.907% 13.49%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 296.04 100% 85.02%;--sc: 200 100% 87.412%;--ac: 30.894 100% 10.235%;--nc: 215 62.264% 83.373%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 296.04 82.813% 25.098%;--s: 200 100% 37.059%;--a: 30.894 94.378% 51.176%;--n: 215 27.907% 16.863%;--b1: 0 0% 100%;--bc: 215 27.907% 16.863%}[data-theme=wireframe]{color-scheme:light;--pf: 0 0% 57.725%;--sf: 0 0% 57.725%;--af: 0 0% 57.725%;--nf: 0 0% 73.725%;--bc: 0 0% 20%;--pc: 0 0% 14.431%;--sc: 0 0% 14.431%;--ac: 0 0% 14.431%;--nc: 0 0% 18.431%;--inc: 240 100% 90%;--suc: 120 100% 85.02%;--wac: 60 100% 10%;--erc: 0 100% 90%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;font-family:Chalkboard,comic sans ms,sanssecondaryerif;--p: 0 0% 72.157%;--s: 0 0% 72.157%;--a: 0 0% 72.157%;--n: 0 0% 92.157%;--b1: 0 0% 100%;--b2: 0 0% 93.333%;--b3: 0 0% 86.667%;--in: 240 100% 50%;--su: 120 100% 25.098%;--wa: 60 30.196% 50%;--er: 0 100% 50%;--rounded-box: .2rem;--rounded-btn: .2rem;--rounded-badge: .2rem;--tab-radius: .2rem}[data-theme=black]{color-scheme:dark;--pf: 0 1.9608% 16%;--sf: 0 1.9608% 16%;--af: 0 1.9608% 16%;--bc: 0 0% 80%;--pc: 0 5.3922% 84%;--sc: 0 5.3922% 84%;--ac: 0 5.3922% 84%;--nc: 0 2.5404% 83.02%;--inc: 240 100% 90%;--suc: 120 100% 85.02%;--wac: 60 100% 10%;--erc: 0 100% 90%;--border-btn: 1px;--tab-border: 1px;--p: 0 1.9608% 20%;--s: 0 1.9608% 20%;--a: 0 1.9608% 20%;--b1: 0 0% 0%;--b2: 0 0% 5.098%;--b3: 0 1.9608% 10%;--n: 0 1.2987% 15.098%;--nf: 0 1.9608% 20%;--in: 240 100% 50%;--su: 120 100% 25.098%;--wa: 60 100% 50%;--er: 0 100% 50%;--rounded-box: 0;--rounded-btn: 0;--rounded-badge: 0;--animation-btn: 0;--animation-input: 0;--btn-text-case: lowercase;--btn-focus-scale: 1;--tab-radius: 0}[data-theme=luxury]{color-scheme:dark;--pf: 0 0% 80%;--sf: 218.4 54.348% 14.431%;--af: 318.62 21.805% 20.863%;--nf: 270 4.3478% 7.2157%;--pc: 0 0% 20%;--sc: 218.4 100% 83.608%;--ac: 318.62 84.615% 85.216%;--inc: 202.35 100% 14%;--suc: 89.007 100% 10.392%;--wac: 53.906 100% 12.706%;--erc: 0 100% 14.353%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 0 0% 100%;--s: 218.4 54.348% 18.039%;--a: 318.62 21.805% 26.078%;--n: 270 4.3478% 9.0196%;--nc: 37.083 67.29% 58.039%;--b1: 240 10% 3.9216%;--b2: 270 4.3478% 9.0196%;--b3: 270 2.1739% 18.039%;--bc: 37.083 67.29% 58.039%;--in: 202.35 100% 70%;--su: 89.007 61.633% 51.961%;--wa: 53.906 68.817% 63.529%;--er: 0 100% 71.765%}[data-theme=dracula]{color-scheme:dark;--pf: 325.52 100% 58.98%;--sf: 264.71 89.474% 62.118%;--af: 31.02 100% 56.941%;--nf: 229.57 15.033% 24%;--b2: 231.43 14.894% 16.588%;--b3: 231.43 14.894% 14.929%;--pc: 325.52 100% 14.745%;--sc: 264.71 100% 15.529%;--ac: 31.02 100% 14.235%;--nc: 229.57 70.868% 86%;--inc: 190.53 100% 15.373%;--suc: 135.18 100% 12.941%;--wac: 64.909 100% 15.294%;--erc: 0 100% 93.333%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 325.52 100% 73.725%;--s: 264.71 89.474% 77.647%;--a: 31.02 100% 71.176%;--n: 229.57 15.033% 30%;--b1: 231.43 14.894% 18.431%;--bc: 60 30% 96.078%;--in: 190.53 96.61% 76.863%;--su: 135.18 94.444% 64.706%;--wa: 64.909 91.667% 76.471%;--er: 0 100% 66.667%}[data-theme=cmyk]{color-scheme:light;--pf: 202.72 83.251% 48.157%;--sf: 335.25 77.67% 47.686%;--af: 56.195 100% 47.843%;--nf: 0 0% 8.1569%;--b2: 0 0% 90%;--b3: 0 0% 81%;--bc: 0 0% 20%;--pc: 202.72 100% 12.039%;--sc: 335.25 100% 91.922%;--ac: 56.195 100% 11.961%;--nc: 0 0% 82.039%;--inc: 192.2 100% 10.431%;--suc: 291.06 100% 87.608%;--wac: 25.027 100% 11.333%;--erc: 3.956 100% 91.137%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 202.72 83.251% 60.196%;--s: 335.25 77.67% 59.608%;--a: 56.195 100% 59.804%;--n: 0 0% 10.196%;--b1: 0 0% 100%;--in: 192.2 48.361% 52.157%;--su: 291.06 48.454% 38.039%;--wa: 25.027 84.615% 56.667%;--er: 3.956 80.531% 55.686%}[data-theme=autumn]{color-scheme:light;--pf: 344.23 95.804% 22.431%;--sf: .44444 63.38% 46.588%;--af: 27.477 56.021% 50.039%;--nf: 22.105 17.117% 34.824%;--b2: 0 0% 85.059%;--b3: 0 0% 76.553%;--bc: 0 0% 18.902%;--pc: 344.23 100% 85.608%;--sc: .44444 100% 91.647%;--ac: 27.477 100% 12.51%;--nc: 22.105 100% 88.706%;--inc: 186.94 100% 9.9216%;--suc: 164.59 100% 8.6275%;--wac: 30.141 100% 9.9216%;--erc: 353.6 100% 89.765%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 344.23 95.804% 28.039%;--s: .44444 63.38% 58.235%;--a: 27.477 56.021% 62.549%;--n: 22.105 17.117% 43.529%;--b1: 0 0% 94.51%;--in: 186.94 47.826% 49.608%;--su: 164.59 33.636% 43.137%;--wa: 30.141 84.19% 49.608%;--er: 353.6 79.116% 48.824%}[data-theme=business]{color-scheme:dark;--pf: 210 64.103% 24.471%;--sf: 200 12.931% 43.608%;--af: 12.515 79.512% 47.843%;--nf: 212.73 13.58% 12.706%;--b2: 0 0% 11.294%;--b3: 0 0% 10.165%;--bc: 0 0% 82.51%;--pc: 210 100% 86.118%;--sc: 200 100% 10.902%;--ac: 12.515 100% 11.961%;--nc: 212.73 28.205% 83.176%;--inc: 199.15 100% 88.353%;--suc: 144 100% 11.137%;--wac: 39.231 100% 12.078%;--erc: 6.3415 100% 88.667%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 210 64.103% 30.588%;--s: 200 12.931% 54.51%;--a: 12.515 79.512% 59.804%;--n: 212.73 13.58% 15.882%;--b1: 0 0% 12.549%;--in: 199.15 100% 41.765%;--su: 144 30.973% 55.686%;--wa: 39.231 64.356% 60.392%;--er: 6.3415 55.656% 43.333%;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem}[data-theme=acid]{color-scheme:light;--pf: 302.59 100% 40%;--sf: 27.294 100% 40%;--af: 72 98.425% 40.157%;--nf: 238.42 43.182% 13.804%;--b2: 0 0% 88.235%;--b3: 0 0% 79.412%;--bc: 0 0% 19.608%;--pc: 302.59 100% 90%;--sc: 27.294 100% 10%;--ac: 72 100% 10.039%;--nc: 238.42 99.052% 83.451%;--inc: 209.85 100% 11.569%;--suc: 148.87 100% 11.608%;--wac: 52.574 100% 11.451%;--erc: .78261 100% 89.02%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 302.59 100% 50%;--s: 27.294 100% 50%;--a: 72 98.425% 50.196%;--n: 238.42 43.182% 17.255%;--b1: 0 0% 98.039%;--in: 209.85 91.628% 57.843%;--su: 148.87 49.533% 58.039%;--wa: 52.574 92.661% 57.255%;--er: .78261 100% 45.098%;--rounded-box: 1.25rem;--rounded-btn: 1rem;--rounded-badge: 1rem}[data-theme=lemonade]{color-scheme:light;--pf: 88.8 96.154% 24.471%;--sf: 60 80.952% 43.765%;--af: 62.553 79.661% 70.745%;--nf: 238.42 43.182% 13.804%;--b2: 0 0% 90%;--b3: 0 0% 81%;--bc: 0 0% 20%;--pc: 88.8 100% 86.118%;--sc: 60 100% 10.941%;--ac: 62.553 100% 17.686%;--nc: 238.42 99.052% 83.451%;--inc: 191.61 79.118% 16.902%;--suc: 74.458 100% 15.725%;--wac: 50.182 100% 15.059%;--erc: .98361 100% 16.588%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 88.8 96.154% 30.588%;--s: 60 80.952% 54.706%;--a: 62.553 79.661% 88.431%;--n: 238.42 43.182% 17.255%;--b1: 0 0% 100%;--in: 191.61 39.241% 84.51%;--su: 74.458 76.147% 78.627%;--wa: 50.182 87.302% 75.294%;--er: .98361 70.115% 82.941%}[data-theme=night]{color-scheme:dark;--pf: 198.44 93.204% 47.686%;--sf: 234.45 89.474% 59.137%;--af: 328.85 85.621% 56%;--b2: 222.22 47.368% 10.059%;--b3: 222.22 47.368% 9.0529%;--bc: 222.22 65.563% 82.235%;--pc: 198.44 100% 11.922%;--sc: 234.45 100% 14.784%;--ac: 328.85 100% 14%;--nc: 217.24 75.772% 83.49%;--inc: 198.46 100% 9.6078%;--suc: 172.46 100% 10.078%;--wac: 40.61 100% 12.706%;--erc: 350.94 100% 14.235%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 198.44 93.204% 59.608%;--s: 234.45 89.474% 73.922%;--a: 328.85 85.621% 70%;--n: 217.24 32.584% 17.451%;--nf: 217.06 30.357% 21.961%;--b1: 222.22 47.368% 11.176%;--in: 198.46 90.204% 48.039%;--su: 172.46 66.008% 50.392%;--wa: 40.61 88.172% 63.529%;--er: 350.94 94.558% 71.176%}[data-theme=coffee]{color-scheme:dark;--pf: 29.583 66.667% 46.118%;--sf: 182.4 24.752% 15.843%;--af: 194.19 74.4% 19.608%;--nf: 300 20% 4.7059%;--b2: 306 18.519% 9.5294%;--b3: 306 18.519% 8.5765%;--pc: 29.583 100% 11.529%;--sc: 182.4 67.237% 83.961%;--ac: 194.19 100% 84.902%;--nc: 300 13.75% 81.176%;--inc: 171.15 100% 13.451%;--suc: 92.5 100% 12.471%;--wac: 43.125 100% 13.725%;--erc: 9.7561 100% 14.941%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 29.583 66.667% 57.647%;--s: 182.4 24.752% 19.804%;--a: 194.19 74.4% 24.51%;--n: 300 20% 5.8824%;--b1: 306 18.519% 10.588%;--bc: 36.667 8.3333% 42.353%;--in: 171.15 36.527% 67.255%;--su: 92.5 25% 62.353%;--wa: 43.125 100% 68.627%;--er: 9.7561 95.349% 74.706%}[data-theme=winter]{color-scheme:light;--pf: 211.79 100% 40.627%;--sf: 246.92 47.273% 34.51%;--af: 310.41 49.388% 41.569%;--nf: 217.02 92.157% 8%;--pc: 211.79 100% 90.157%;--sc: 246.92 100% 88.627%;--ac: 310.41 100% 90.392%;--nc: 217.02 100% 82%;--inc: 191.54 100% 15.608%;--suc: 181.5 100% 13.255%;--wac: 32.308 100% 16.706%;--erc: 0 100% 14.431%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 211.79 100% 50.784%;--s: 246.92 47.273% 43.137%;--a: 310.41 49.388% 51.961%;--n: 217.02 92.157% 10%;--b1: 0 0% 100%;--b2: 216.92 100% 97.451%;--b3: 218.82 43.59% 92.353%;--bc: 214.29 30.061% 31.961%;--in: 191.54 92.857% 78.039%;--su: 181.5 46.512% 66.275%;--wa: 32.308 61.905% 83.529%;--er: 0 63.38% 72.157%}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.alert{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:space-between;gap:1rem;--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));padding:1rem;border-radius:var(--rounded-box, 1rem)}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}@media (min-width: 768px){.alert{flex-direction:row}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}}.alert>:where(*){display:flex;align-items:center;gap:.5rem}.avatar{position:relative;display:inline-flex}.avatar>div{display:block;aspect-ratio:1 / 1;overflow:hidden}.avatar img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover}.avatar.placeholder>div{display:flex;align-items:center;justify-content:center}.btn{display:inline-flex;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;border-color:transparent;border-color:hsl(var(--n) / var(--tw-border-opacity));text-align:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);border-radius:var(--rounded-btn, .5rem);height:3rem;padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;line-height:1em;min-height:3rem;font-weight:600;text-transform:uppercase;text-transform:var(--btn-text-case, uppercase);text-decoration-line:none;border-width:var(--border-btn, 1px);animation:button-pop var(--animation-btn, .25s) ease-out;--tw-border-opacity: 1;--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-disabled,.btn[disabled]{pointer-events:none}.btn-circle{height:3rem;width:3rem;border-radius:9999px;padding:0}.btn.loading,.btn.loading:hover{pointer-events:none}.btn.loading:before{margin-right:.5rem;height:1rem;width:1rem;border-radius:9999px;border-width:2px;animation:spin 2s linear infinite;content:"";border-top-color:transparent;border-left-color:transparent;border-bottom-color:currentColor;border-right-color:currentColor}@media (prefers-reduced-motion: reduce){.btn.loading:before{animation:spin 10s linear infinite}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-group>input[type=radio].btn{-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn-group>input[type=radio].btn:before{content:attr(data-title)}.card-actions{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.5rem}.checkbox{flex-shrink:0;--chkbg: var(--bc);--chkfg: var(--b1);height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2;border-radius:var(--rounded-btn, .5rem)}.divider{display:flex;flex-direction:row;align-items:center;align-self:stretch;margin-top:1rem;margin-bottom:1rem;height:1rem;white-space:nowrap}.divider:before,.divider:after{content:"";flex-grow:1;height:.125rem;width:100%}.dropdown{position:relative;display:inline-block}.dropdown>*:focus{outline:2px solid transparent;outline-offset:2px}.dropdown .dropdown-content{visibility:hidden;position:absolute;z-index:50;opacity:0;transform-origin:top;--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.dropdown-end .dropdown-content{right:0}.dropdown-left .dropdown-content{top:0;right:100%;bottom:auto;transform-origin:right}.dropdown-right .dropdown-content{left:100%;top:0;bottom:auto;transform-origin:left}.dropdown-bottom .dropdown-content{bottom:auto;top:100%;transform-origin:top}.dropdown-top .dropdown-content{bottom:100%;top:auto;transform-origin:bottom}.dropdown-end.dropdown-right .dropdown-content,.dropdown-end.dropdown-left .dropdown-content{bottom:0;top:auto}.dropdown.dropdown-open .dropdown-content,.dropdown.dropdown-hover:hover .dropdown-content,.dropdown:not(.dropdown-hover):focus .dropdown-content,.dropdown:not(.dropdown-hover):focus-within .dropdown-content{visibility:visible;opacity:1}.form-control{display:flex;flex-direction:column}.label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:space-between;padding:.5rem .25rem}.input{flex-shrink:1;height:3rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:2;line-height:1.5rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));border-radius:var(--rounded-btn, .5rem)}.input-group>.input{isolation:isolate}.input-group>*,.input-group>.input,.input-group>.textarea,.input-group>.select{border-radius:0}.link{cursor:pointer;text-decoration-line:underline}.mask{-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}.menu{display:flex;flex-direction:column;flex-wrap:wrap}.menu.horizontal{display:inline-flex;flex-direction:row}.menu.horizontal :where(li){flex-direction:row}:where(.menu li){position:relative;display:flex;flex-shrink:0;flex-direction:column;flex-wrap:wrap;align-items:stretch}.menu :where(li:not(.menu-title))>:where(*:not(ul)){display:flex}.menu :where(li:not(.disabled):not(.menu-title))>:where(*:not(ul)){cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;outline:2px solid transparent;outline-offset:2px}.menu>:where(li>*:not(ul):focus){outline:2px solid transparent;outline-offset:2px}.menu>:where(li.disabled>*:not(ul):focus){cursor:auto}.menu>:where(li) :where(ul){display:flex;flex-direction:column;align-items:stretch}.menu>:where(li)>:where(ul){position:absolute;display:none;top:initial;left:100%;border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li:hover)>:where(ul){display:flex}.menu>:where(li:focus)>:where(ul){display:flex}.modal{pointer-events:none;visibility:hidden;position:fixed;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;opacity:0;z-index:999;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity));--tw-bg-opacity: .4;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:transform,opacity,visibility;overflow-y:hidden;overscroll-behavior:contain}:where(.modal){align-items:center}.modal-box{max-height:calc(100vh - 5em);--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));padding:1.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);width:91.666667%;max-width:32rem;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem);box-shadow:0 25px 50px -12px #00000040;overflow-y:auto;overscroll-behavior:contain}.modal-open,.modal:target,.modal-toggle:checked+.modal{pointer-events:auto;visibility:visible;opacity:1}.modal-action{display:flex;margin-top:1.5rem;justify-content:flex-end}.modal-toggle{position:fixed;height:0px;width:0px;-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0}.navbar{display:flex;align-items:center;padding:var(--navbar-padding, .5rem);min-height:4rem;width:100%}:where(.navbar>*){display:inline-flex;align-items:center}.radio{flex-shrink:0;--chkbg: var(--bc);height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:9999px;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2}.rating{position:relative;display:inline-flex}.rating :where(input){cursor:pointer;border-radius:0;animation:rating-pop var(--animation-input, .25s) ease-out;height:1.5rem;width:1.5rem;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: 1}.select{display:inline-flex;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;padding-left:1rem;padding-right:2.5rem;font-size:.875rem;line-height:1.25rem;line-height:2;min-height:3rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));font-weight:600;border-radius:var(--rounded-btn, .5rem);background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) calc(1px + 50%),calc(100% - 16px) calc(1px + 50%);background-size:4px 4px,4px 4px;background-repeat:no-repeat}.select[multiple]{height:auto}.\!stats{display:inline-grid!important;--tw-bg-opacity: 1 !important;background-color:hsl(var(--b1) / var(--tw-bg-opacity))!important;--tw-text-opacity: 1 !important;color:hsl(var(--bc) / var(--tw-text-opacity))!important;border-radius:var(--rounded-box, 1rem)!important}.stats{display:inline-grid;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity));border-radius:var(--rounded-box, 1rem)}:where(.\!stats){grid-auto-flow:column!important;overflow-x:auto!important}:where(.stats){grid-auto-flow:column;overflow-x:auto}.tabs{display:flex;flex-wrap:wrap;align-items:flex-end}.tab{position:relative;display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;text-align:center;height:2rem;font-size:.875rem;line-height:1.25rem;line-height:2;--tab-padding: 1rem;--tw-text-opacity: .5;--tab-color: hsla(var(--bc) / var(--tw-text-opacity, 1));--tab-bg: hsla(var(--b1) / var(--tw-bg-opacity, 1));--tab-border-color: hsla(var(--b3) / var(--tw-bg-opacity, 1));color:var(--tab-color);padding-left:var(--tab-padding, 1rem);padding-right:var(--tab-padding, 1rem)}.table{position:relative;text-align:left}.table th:first-child{position:sticky;left:0;z-index:11}.textarea{flex-shrink:1;min-height:3rem;padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem;line-height:2;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));border-radius:var(--rounded-btn, .5rem)}.avatar-group :where(.avatar){overflow:hidden;border-radius:9999px;border-width:4px;--tw-border-opacity: 1;border-color:hsl(var(--b1) / var(--tw-border-opacity))}.btm-nav>*:where(.active){border-top-width:2px;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}.btm-nav>*.disabled,.btm-nav>*.disabled:hover,.btm-nav>*[disabled],.btm-nav>*[disabled]:hover{pointer-events:none;--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .1;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.btm-nav>* .label{font-size:1rem;line-height:1.5rem}.btn:active:hover,.btn:active:focus{animation:none}.btn:not(.no-animation):active:hover,.btn:not(.no-animation):active:focus{transform:scale(var(--btn-focus-scale, .95))}.btn:hover,.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity))}.btn:focus-visible{outline:2px solid hsl(var(--nf));outline-offset:2px}.btn.glass:hover,.btn.glass.btn-active{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn.glass:focus-visible{outline:2px solid currentColor}.btn-disabled,.btn-disabled:hover,.btn[disabled],.btn[disabled]:hover{--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .2;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.btn.loading.btn-square:before,.btn.loading.btn-circle:before{margin-right:0}.btn.loading.btn-xl:before,.btn.loading.btn-lg:before{height:1.25rem;width:1.25rem}.btn.loading.btn-sm:before,.btn.loading.btn-xs:before{height:.75rem;width:.75rem}.btn-group>input[type=radio]:checked.btn,.btn-group>.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-group>input[type=radio]:checked.btn:focus-visible,.btn-group>.btn-active:focus-visible{outline:2px solid hsl(var(--p))}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale, .95))}40%{transform:scale(1.02)}to{transform:scale(1)}}.checkbox:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.checkbox:checked,.checkbox[checked=true],.checkbox[aria-checked=true]{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(-45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.checkbox:indeterminate{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(-90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(0deg,hsl(var(--chkbg)) 43%,hsl(var(--chkfg)) 43%,hsl(var(--chkfg)) 57%,hsl(var(--chkbg)) 57%)}.checkbox:disabled{cursor:not-allowed;border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));opacity:.2}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}[dir=rtl] .checkbox:checked,[dir=rtl] .checkbox[checked=true],[dir=rtl] .checkbox[aria-checked=true]{background-image:linear-gradient(45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(-45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.divider:before{background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}.divider:after{background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}.divider:not(:empty){gap:1rem}.dropdown.dropdown-open .dropdown-content,.dropdown.dropdown-hover:hover .dropdown-content,.dropdown:focus .dropdown-content,.dropdown:focus-within .dropdown-content{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.label-text{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.label a:hover{--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input-bordered{--tw-border-opacity: .2}.input:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.input-success{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity))}.input-success:focus{outline:2px solid hsl(var(--su))}.input-disabled,.input[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.input-disabled::-moz-placeholder,.input[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.input-disabled::placeholder,.input[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.link:focus{outline:2px solid transparent;outline-offset:2px}.link:focus-visible{outline:2px solid currentColor;outline-offset:2px}.mask-star-2{-webkit-mask-image:url("data:image/svg+xml,%3csvg width='192' height='180' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m96 153.044-58.779 26.243 7.02-63.513L.894 68.481l63.117-13.01L96 0l31.989 55.472 63.117 13.01-43.347 47.292 7.02 63.513z' fill-rule='evenodd'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg width='192' height='180' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m96 153.044-58.779 26.243 7.02-63.513L.894 68.481l63.117-13.01L96 0l31.989 55.472 63.117 13.01-43.347 47.292 7.02 63.513z' fill-rule='evenodd'/%3e%3c/svg%3e")}.menu.horizontal>li.bordered>a,.menu.horizontal>li.bordered>button,.menu.horizontal>li.bordered>span{border-left-width:0px;border-bottom-width:4px;--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.menu[class*=" px-"]:not(.menu[class*=" px-0"]) li>*,.menu[class^=px-]:not(.menu[class^=px-0]) li>*,.menu[class*=" p-"]:not(.menu[class*=" p-0"]) li>*,.menu[class^=p-]:not(.menu[class^=p-0]) li>*{border-radius:var(--rounded-btn, .5rem)}.menu :where(li.bordered>*){border-left-width:4px;--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.menu :where(li)>:where(*:not(ul)){gap:.75rem;padding:.75rem 1rem;color:currentColor}.menu :where(li:not(.menu-title):not(:empty))>:where(*:not(ul):focus),.menu :where(li:not(.menu-title):not(:empty))>:where(*:not(ul):hover){background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}.menu :where(li:not(.menu-title):not(:empty))>:where(:not(ul).active),.menu :where(li:not(.menu-title):not(:empty))>:where(*:not(ul):active){--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.menu :where(li:empty){margin:.5rem 1rem;height:1px;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}.menu li.disabled>*{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.menu li.disabled>*:hover{background-color:transparent}.menu li.hover-bordered a{border-left-width:4px;border-color:transparent}.menu li.hover-bordered a:hover{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.menu.compact li>a,.menu.compact li>span{padding-top:.5rem;padding-bottom:.5rem;font-size:.875rem;line-height:1.25rem}.menu .menu-title{font-size:.75rem;line-height:1rem;font-weight:700;opacity:.4}.menu .menu-title>*{padding-top:.25rem;padding-bottom:.25rem}.menu :where(li:not(.disabled))>:where(*:not(ul)){outline:2px solid transparent;outline-offset:2px;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.menu>:where(li:first-child){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li:first-child)>:where(:not(ul)){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li:last-child){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li:last-child)>:where(:not(ul)){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li:first-child:last-child){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li:first-child:last-child)>:where(:not(ul)){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li)>:where(ul) :where(li){width:100%;white-space:nowrap}.menu>:where(li)>:where(ul) :where(li) :where(ul){padding-left:1rem}.menu>:where(li)>:where(ul) :where(li)>:where(:not(ul)){width:100%;white-space:nowrap}.menu>:where(li)>:where(ul)>:where(li:first-child){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li)>:where(ul)>:where(li:first-child)>:where(:not(ul)){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li)>:where(ul)>:where(li:last-child){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li)>:where(ul)>:where(li:last-child)>:where(:not(ul)){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li)>:where(ul)>:where(li:first-child:last-child){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li)>:where(ul)>:where(li:first-child:last-child)>:where(:not(ul)){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.mockup-phone .display{overflow:hidden;border-radius:40px;margin-top:-25px}.modal-open .modal-box,.modal-toggle:checked+.modal .modal-box,.modal:target .modal-box{--tw-translate-y: 0px;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.modal-action>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}@keyframes progress-loading{50%{left:107%}}.radio:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.radio:checked,.radio[aria-checked=true]{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));animation:radiomark var(--animation-input, .2s) ease-in-out;box-shadow:0 0 0 4px hsl(var(--b1)) inset,0 0 0 4px hsl(var(--b1)) inset}.radio:disabled{cursor:not-allowed;opacity:.2}@keyframes radiomark{0%{box-shadow:0 0 0 12px hsl(var(--b1)) inset,0 0 0 12px hsl(var(--b1)) inset}50%{box-shadow:0 0 0 3px hsl(var(--b1)) inset,0 0 0 3px hsl(var(--b1)) inset}to{box-shadow:0 0 0 4px hsl(var(--b1)) inset,0 0 0 4px hsl(var(--b1)) inset}}.rating input{-moz-appearance:none;appearance:none;-webkit-appearance:none}.rating .rating-hidden{width:.5rem;background-color:transparent}.rating input:checked~input,.rating input[aria-checked=true]~input{--tw-bg-opacity: .2}.rating input:focus-visible{transition-property:transform;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);transform:translateY(-.125em)}.rating input:active:focus{animation:none;transform:translateY(-.125em)}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.select:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.select-success{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity))}.select-success:focus{outline:2px solid hsl(var(--su))}.select-disabled,.select[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.select-disabled::-moz-placeholder,.select[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.select-disabled::placeholder,.select[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.select-multiple,.select[multiple],.select[size].select:not([size="1"]){background-image:none;padding-right:1rem}[dir=rtl] .select{background-position:calc(0% + 12px) calc(1px + 50%),calc(0% + 16px) calc(1px + 50%)}:where(.\!stats)>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0 !important;border-right-width:calc(1px * var(--tw-divide-x-reverse))!important;border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))!important;--tw-divide-y-reverse: 0 !important;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)))!important;border-bottom-width:calc(0px * var(--tw-divide-y-reverse))!important}:where(.stats)>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)));--tw-divide-y-reverse: 0;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0px * var(--tw-divide-y-reverse))}.tab:hover{--tw-text-opacity: 1}.tab.tab-active:not(.tab-disabled):not([disabled]){border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 1;--tw-text-opacity: 1}.tab:focus{outline:2px solid transparent;outline-offset:2px}.tab:focus-visible{outline:2px solid currentColor;outline-offset:-3px}.tab:focus-visible.tab-lifted{border-bottom-right-radius:var(--tab-radius, .5rem);border-bottom-left-radius:var(--tab-radius, .5rem)}.tab-disabled,.tab-disabled:hover,.tab[disabled],.tab[disabled]:hover{cursor:not-allowed;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.tabs-boxed .tab{border-radius:var(--rounded-btn, .5rem)}.table :where(th,td){white-space:nowrap;padding:1rem;vertical-align:middle}.table tr.active th,.table tr.active td,.table tr.active:nth-child(2n) th,.table tr.active:nth-child(2n) td{--tw-bg-opacity: 1;background-color:hsl(var(--b3, var(--b2)) / var(--tw-bg-opacity))}.table tr.hover:hover th,.table tr.hover:hover td,.table tr.hover:nth-child(2n):hover th,.table tr.hover:nth-child(2n):hover td{--tw-bg-opacity: 1;background-color:hsl(var(--b3, var(--b2)) / var(--tw-bg-opacity))}.table:where(:not(.table-zebra)) :where(thead,tbody,tfoot) :where(tr:not(:last-child) :where(th,td)){border-bottom-width:1px;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity))}.table :where(thead,tfoot) :where(th,td){--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));font-size:.75rem;line-height:1rem;font-weight:700;text-transform:uppercase}.table :where(tbody th,tbody td){--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}:where(.table *:first-child) :where(*:first-child) :where(th,td):first-child{border-top-left-radius:var(--rounded-box, 1rem)}:where(.table *:first-child) :where(*:first-child) :where(th,td):last-child{border-top-right-radius:var(--rounded-box, 1rem)}:where(.table *:last-child) :where(*:last-child) :where(th,td):first-child{border-bottom-left-radius:var(--rounded-box, 1rem)}:where(.table *:last-child) :where(*:last-child) :where(th,td):last-child{border-bottom-right-radius:var(--rounded-box, 1rem)}.textarea:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.textarea-success{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity))}.textarea-success:focus{outline:2px solid hsl(var(--su))}.textarea-disabled,.textarea[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.textarea-disabled::-moz-placeholder,.textarea[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.textarea-disabled::placeholder,.textarea[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}.rounded-box{border-radius:var(--rounded-box, 1rem)}.artboard.phone{width:320px}.btm-nav-xs>*:where(.active){border-top-width:1px}.btm-nav-sm>*:where(.active){border-top-width:2px}.btm-nav-md>*:where(.active){border-top-width:2px}.btm-nav-lg>*:where(.active){border-top-width:4px}.btn-sm{height:2rem;padding-left:.75rem;padding-right:.75rem;min-height:2rem;font-size:.875rem}.btn-wide{width:16rem}.btn-square:where(.btn-sm){height:2rem;width:2rem;padding:0}.btn-circle:where(.btn-xs){height:1.5rem;width:1.5rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-sm){height:2rem;width:2rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-md){height:3rem;width:3rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-lg){height:4rem;width:4rem;border-radius:9999px;padding:0}.divider-horizontal{flex-direction:column}.divider-horizontal:before{height:100%;width:.125rem}.divider-horizontal:after{height:100%;width:.125rem}.input-md{height:3rem;padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;line-height:2}.input-lg{height:4rem;padding-left:1.5rem;padding-right:1.5rem;font-size:1.125rem;line-height:1.75rem;line-height:2}.menu-horizontal{display:inline-flex;width:-moz-max-content;width:max-content;flex-direction:row}.menu-horizontal :where(li){flex-direction:row}.menu-horizontal>:where(li)>:where(ul){top:100%;left:initial}.modal-bottom{align-items:flex-end}.avatar.online:before{content:"";position:absolute;z-index:10;display:block;border-radius:9999px;--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity));width:15%;height:15%;top:7%;right:7%;box-shadow:0 0 0 2px hsl(var(--b1))}.avatar.offline:before{content:"";position:absolute;z-index:10;display:block;border-radius:9999px;--tw-bg-opacity: 1;background-color:hsl(var(--b3, var(--b2)) / var(--tw-bg-opacity));width:15%;height:15%;top:7%;right:7%;box-shadow:0 0 0 2px hsl(var(--b1))}.btn-group .btn:not(:first-child):not(:last-child){border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:0;border-end-end-radius:0}.btn-group .btn:first-child:not(:last-child){margin-top:-0px;margin-left:-1px;border-start-start-radius:var(--rounded-btn, .5rem);border-start-end-radius:0;border-end-start-radius:var(--rounded-btn, .5rem);border-end-end-radius:0}.btn-group .btn:last-child:not(:first-child){border-start-start-radius:0;border-start-end-radius:var(--rounded-btn, .5rem);border-end-start-radius:0;border-end-end-radius:var(--rounded-btn, .5rem)}.btn-group-horizontal .btn:not(:first-child):not(:last-child){border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:0;border-end-end-radius:0}.btn-group-horizontal .btn:first-child:not(:last-child){margin-top:-0px;margin-left:-1px;border-start-start-radius:var(--rounded-btn, .5rem);border-start-end-radius:0;border-end-start-radius:var(--rounded-btn, .5rem);border-end-end-radius:0}.btn-group-horizontal .btn:last-child:not(:first-child){border-start-start-radius:0;border-start-end-radius:var(--rounded-btn, .5rem);border-end-start-radius:0;border-end-end-radius:var(--rounded-btn, .5rem)}.btn-group-vertical .btn:first-child:not(:last-child){margin-top:-1px;margin-left:-0px;border-start-start-radius:var(--rounded-btn, .5rem);border-start-end-radius:var(--rounded-btn, .5rem);border-end-start-radius:0;border-end-end-radius:0}.btn-group-vertical .btn:last-child:not(:first-child){border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:var(--rounded-btn, .5rem);border-end-end-radius:var(--rounded-btn, .5rem)}.divider-horizontal{margin-top:0;margin-bottom:0;margin-left:1rem;margin-right:1rem;height:auto;width:1rem}.menu-horizontal :where(li.bordered>*){border-left-width:0px;border-bottom-width:4px}.menu-horizontal>:where(li:first-child){border-top-left-radius:inherit;border-top-right-radius:unset;border-bottom-right-radius:unset;border-bottom-left-radius:inherit}.menu-horizontal>:where(li:first-child)>:where(*:not(ul)){border-top-left-radius:inherit;border-top-right-radius:unset;border-bottom-right-radius:unset;border-bottom-left-radius:inherit}.menu-horizontal>:where(li:last-child){border-top-left-radius:unset;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:unset}.menu-horizontal>:where(li:last-child)>:where(*:not(ul)){border-top-left-radius:unset;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:unset}.modal-bottom :where(.modal-box){width:100%;max-width:none;--tw-translate-y: 2.5rem;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-right-radius:0;border-bottom-left-radius:0}.modal-middle :where(.modal-box){width:91.666667%;max-width:32rem;--tw-translate-y: 0px;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-left-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem)}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.right-0{right:0}.right-2{right:.5rem}.top-0{top:0}.top-2{top:.5rem}.z-10{z-index:10}.z-50{z-index:50}.float-right{float:right}.m-1{margin:.25rem}.m-5{margin:1.25rem}.mx-0{margin-left:0;margin-right:0}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-28{margin-left:7rem;margin-right:7rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-48{margin-bottom:12rem}.mb-5{margin-bottom:1.25rem}.ml-1{margin-left:.25rem}.ml-24{margin-left:6rem}.ml-px{margin-left:1px}.mr-0{margin-right:0}.mr-0\.5{margin-right:.125rem}.mr-5{margin-right:1.25rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-28{margin-top:7rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.flex{display:flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-16{height:4rem}.h-32{height:8rem}.h-44{height:11rem}.h-\[40vh\]{height:40vh}.h-\[70vh\]{height:70vh}.h-auto{height:auto}.h-full{height:100%}.h-max{height:-moz-max-content;height:max-content}.h-screen{height:100vh}.max-h-max{max-height:-moz-max-content;max-height:max-content}.min-h-\[490px\]{min-height:490px}.min-h-\[667px\]{min-height:667px}.w-1\/2{width:50%}.w-1\/5{width:20%}.w-16{width:4rem}.w-2\/5{width:40%}.w-28{width:7rem}.w-32{width:8rem}.w-4\/5{width:80%}.w-52{width:13rem}.w-\[400px\]{width:400px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-grow{flex-grow:1}.basis-1\/4{flex-basis:25%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.content-around{align-content:space-around}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.gap-1{gap:.25rem}.gap-12{gap:3rem}.gap-28{gap:7rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.border-t-2{border-top-width:2px}.border-\[\#11D9C5\],.border-\[\#11d9c5\]{--tw-border-opacity: 1;border-color:rgb(17 217 197 / var(--tw-border-opacity))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-white\/50{border-color:#ffffff80}.border-zinc-600{--tw-border-opacity: 1;border-color:rgb(82 82 91 / var(--tw-border-opacity))}.bg-\[\#11D9C5\]{--tw-bg-opacity: 1;background-color:rgb(17 217 197 / var(--tw-bg-opacity))}.bg-base-100{--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-orange-400{--tw-bg-opacity: 1;background-color:rgb(251 146 60 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-zinc-200{--tw-bg-opacity: 1;background-color:rgb(228 228 231 / var(--tw-bg-opacity))}.bg-zinc-700{--tw-bg-opacity: 1;background-color:rgb(63 63 70 / var(--tw-bg-opacity))}.object-center{-o-object-position:center;object-position:center}.p-0{padding:0}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-10{padding-bottom:2.5rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.normal-case{text-transform:none}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-950{--tw-text-opacity: 1;color:rgb(3 7 18 / var(--tw-text-opacity))}.text-green-300{--tw-text-opacity: 1;color:rgb(134 239 172 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-lime-700{--tw-text-opacity: 1;color:rgb(77 124 15 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-gray-500\/50{--tw-shadow-color: rgb(107 114 128 / .5);--tw-shadow: var(--tw-shadow-colored)}body{transition:background-color .2s ease-in-out,color .2s ease-in-out;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}:is(.dark body){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-track{background:white}::-webkit-scrollbar-thumb{background:black}::-webkit-scrollbar-thumb:hover{background:black}@media (min-width: 640px){.sm\:modal-middle{align-items:center}.sm\:modal-middle :where(.modal-box){width:91.666667%;max-width:32rem;--tw-translate-y: 0px;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-left-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem)}}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.hover\:bg-slate-200:hover{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity))}.hover\:bg-slate-600:hover{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity))}.hover\:text-gray-200:hover{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.active\:bg-gray-200:active{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.active\:bg-gray-700:active{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.active\:bg-slate-500:active{--tw-bg-opacity: 1;background-color:rgb(100 116 139 / var(--tw-bg-opacity))}:is(.dark .dark\:border-green-400){--tw-border-opacity: 1;border-color:rgb(74 222 128 / var(--tw-border-opacity))}:is(.dark .dark\:border-zinc-600){--tw-border-opacity: 1;border-color:rgb(82 82 91 / var(--tw-border-opacity))}:is(.dark .dark\:bg-gray-300){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-700){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-500){--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}:is(.dark .dark\:text-black){--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-100){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-100){--tw-text-opacity: 1;color:rgb(220 252 231 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-300){--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}:is(.dark .dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-200){--tw-text-opacity: 1;color:rgb(254 240 138 / var(--tw-text-opacity))}:is(.dark .dark\:shadow-green-300\/30){--tw-shadow-color: rgb(134 239 172 / .3);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-green-300\/80){--tw-shadow-color: rgb(134 239 172 / .8);--tw-shadow: var(--tw-shadow-colored)} +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root,[data-theme]{background-color:hsla(var(--b1) / var(--tw-bg-opacity, 1));color:hsla(var(--bc) / var(--tw-text-opacity, 1))}html{-webkit-tap-highlight-color:transparent}:root{color-scheme:light;--pf: 258.89 94.378% 40.941%;--sf: 314 100% 37.647%;--af: 174 60% 40.784%;--nf: 219 14.085% 22.275%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 258.89 94.378% 51.176%;--pc: 0 0% 100%;--s: 314 100% 47.059%;--sc: 0 0% 100%;--a: 174 60% 50.98%;--ac: 174.71 43.59% 15.294%;--n: 219 14.085% 27.843%;--nc: 0 0% 100%;--b1: 0 0% 100%;--b2: 0 0% 94.902%;--b3: 180 1.9608% 90%;--bc: 215 27.907% 16.863%}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--pf: 262.35 80.315% 40.157%;--sf: 315.75 70.196% 40%;--af: 174.69 70.335% 32.784%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 262.35 80.315% 50.196%;--pc: 0 0% 100%;--s: 315.75 70.196% 50%;--sc: 0 0% 100%;--a: 174.69 70.335% 40.98%;--ac: 0 0% 100%;--n: 218.18 18.033% 11.961%;--nf: 222.86 17.073% 8.0392%;--nc: 220 13.376% 69.216%;--b1: 220 17.647% 20%;--b2: 220 17.241% 17.059%;--b3: 218.57 17.949% 15.294%;--bc: 220 13.376% 69.216%}}[data-theme=light]{color-scheme:light;--pf: 258.89 94.378% 40.941%;--sf: 314 100% 37.647%;--af: 174 60% 40.784%;--nf: 219 14.085% 22.275%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 258.89 94.378% 51.176%;--pc: 0 0% 100%;--s: 314 100% 47.059%;--sc: 0 0% 100%;--a: 174 60% 50.98%;--ac: 174.71 43.59% 15.294%;--n: 219 14.085% 27.843%;--nc: 0 0% 100%;--b1: 0 0% 100%;--b2: 0 0% 94.902%;--b3: 180 1.9608% 90%;--bc: 215 27.907% 16.863%}[data-theme=dark]{color-scheme:dark;--pf: 262.35 80.315% 40.157%;--sf: 315.75 70.196% 40%;--af: 174.69 70.335% 32.784%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 262.35 80.315% 50.196%;--pc: 0 0% 100%;--s: 315.75 70.196% 50%;--sc: 0 0% 100%;--a: 174.69 70.335% 40.98%;--ac: 0 0% 100%;--n: 218.18 18.033% 11.961%;--nf: 222.86 17.073% 8.0392%;--nc: 220 13.376% 69.216%;--b1: 220 17.647% 20%;--b2: 220 17.241% 17.059%;--b3: 218.57 17.949% 15.294%;--bc: 220 13.376% 69.216%}[data-theme=cupcake]{color-scheme:light;--pf: 183.03 47.368% 47.216%;--sf: 338.25 71.429% 62.431%;--af: 39 84.112% 46.431%;--nf: 280 46.479% 11.137%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 183.03 100% 11.804%;--sc: 338.25 100% 15.608%;--ac: 39 100% 11.608%;--nc: 280 82.688% 82.784%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--p: 183.03 47.368% 59.02%;--s: 338.25 71.429% 78.039%;--a: 39 84.112% 58.039%;--n: 280 46.479% 13.922%;--b1: 24 33.333% 97.059%;--b2: 26.667 21.951% 91.961%;--b3: 22.5 14.286% 89.02%;--bc: 280 46.479% 13.922%;--rounded-btn: 1.9rem;--tab-border: 2px;--tab-radius: .5rem}[data-theme=bumblebee]{color-scheme:light;--pf: 41.124 74.167% 42.353%;--sf: 49.901 94.393% 46.431%;--af: 240 33.333% 11.294%;--nf: 240 33.333% 11.294%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 0 0% 20%;--ac: 240 60.274% 82.824%;--nc: 240 60.274% 82.824%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 41.124 74.167% 52.941%;--pc: 240 33.333% 14.118%;--s: 49.901 94.393% 58.039%;--sc: 240 33.333% 14.118%;--a: 240 33.333% 14.118%;--n: 240 33.333% 14.118%;--b1: 0 0% 100%}[data-theme=emerald]{color-scheme:light;--pf: 141.18 50% 48%;--sf: 218.88 96.078% 48%;--af: 9.8901 81.25% 44.863%;--nf: 219.23 20.312% 20.078%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--btn-text-case: uppercase;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 141.18 50% 60%;--pc: 151.11 28.421% 18.627%;--s: 218.88 96.078% 60%;--sc: 210 20% 98.039%;--a: 9.8901 81.25% 56.078%;--ac: 210 20% 98.039%;--n: 219.23 20.312% 25.098%;--nc: 210 20% 98.039%;--b1: 0 0% 100%;--bc: 219.23 20.312% 25.098%;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1}[data-theme=corporate]{color-scheme:light;--pf: 229.09 95.652% 51.137%;--sf: 214.91 26.316% 47.216%;--af: 154.2 49.02% 48%;--nf: 233.33 27.273% 10.353%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 229.09 100% 92.784%;--sc: 214.91 100% 11.804%;--ac: 154.2 100% 12%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--btn-text-case: uppercase;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 229.09 95.652% 63.922%;--s: 214.91 26.316% 59.02%;--a: 154.2 49.02% 60%;--n: 233.33 27.273% 12.941%;--nc: 210 38.462% 94.902%;--b1: 0 0% 100%;--bc: 233.33 27.273% 12.941%;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1}[data-theme=synthwave]{color-scheme:dark;--pf: 320.73 69.62% 55.216%;--sf: 197.03 86.592% 51.922%;--af: 48 89.041% 45.647%;--nf: 253.22 60.825% 15.216%;--b2: 253.85 59.091% 23.294%;--b3: 253.85 59.091% 20.965%;--pc: 320.73 100% 13.804%;--sc: 197.03 100% 12.98%;--ac: 48 100% 11.412%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 320.73 69.62% 69.02%;--s: 197.03 86.592% 64.902%;--a: 48 89.041% 57.059%;--n: 253.22 60.825% 19.02%;--nc: 260 60% 98.039%;--b1: 253.85 59.091% 25.882%;--bc: 260 60% 98.039%;--in: 199.13 86.957% 63.922%;--inc: 257.45 63.218% 17.059%;--su: 168.1 74.233% 68.039%;--suc: 257.45 63.218% 17.059%;--wa: 48 89.041% 57.059%;--wac: 257.45 63.218% 17.059%;--er: 351.85 73.636% 56.863%;--erc: 260 60% 98.039%}[data-theme=retro]{color-scheme:light;--pf: 2.6667 73.77% 60.863%;--sf: 144.62 27.273% 57.569%;--af: 49.024 67.213% 60.863%;--nf: 41.667 16.822% 33.569%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 2.6667 73.77% 76.078%;--pc: 345 5.2632% 14.902%;--s: 144.62 27.273% 71.961%;--sc: 345 5.2632% 14.902%;--a: 49.024 67.213% 76.078%;--ac: 345 5.2632% 14.902%;--n: 41.667 16.822% 41.961%;--nc: 45 47.059% 80%;--b1: 45 47.059% 80%;--b2: 45.283 37.063% 71.961%;--b3: 42.188 35.955% 65.098%;--bc: 345 5.2632% 14.902%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%;--rounded-box: .4rem;--rounded-btn: .4rem;--rounded-badge: .4rem}[data-theme=cyberpunk]{color-scheme:light;--pf: 344.78 100% 58.353%;--sf: 195.12 80.392% 56%;--af: 276 74.324% 56.784%;--nf: 57.273 100% 10.353%;--b2: 56 100% 45%;--b3: 56 100% 40.5%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 56 100% 10%;--pc: 344.78 100% 14.588%;--sc: 195.12 100% 14%;--ac: 276 100% 14.196%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;--p: 344.78 100% 72.941%;--s: 195.12 80.392% 70%;--a: 276 74.324% 70.98%;--n: 57.273 100% 12.941%;--nc: 56 100% 50%;--b1: 56 100% 50%;--rounded-box: 0;--rounded-btn: 0;--rounded-badge: 0;--tab-radius: 0}[data-theme=valentine]{color-scheme:light;--pf: 353.23 73.81% 53.647%;--sf: 254.12 86.441% 61.49%;--af: 181.41 55.556% 56%;--nf: 336 42.857% 38.431%;--b2: 318.46 46.429% 80.118%;--b3: 318.46 46.429% 72.106%;--pc: 353.23 100% 13.412%;--sc: 254.12 100% 15.373%;--ac: 181.41 100% 14%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 353.23 73.81% 67.059%;--s: 254.12 86.441% 76.863%;--a: 181.41 55.556% 70%;--n: 336 42.857% 48.039%;--nc: 318.46 46.429% 89.02%;--b1: 318.46 46.429% 89.02%;--bc: 343.64 38.462% 28.039%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%;--rounded-btn: 1.9rem}[data-theme=halloween]{color-scheme:dark;--pf: 31.927 89.344% 41.725%;--sf: 271.22 45.794% 33.569%;--af: 91.071 100% 26.353%;--nf: 180 3.5714% 8.7843%;--b2: 0 0% 11.647%;--b3: 0 0% 10.482%;--bc: 0 0% 82.588%;--sc: 271.22 100% 88.392%;--ac: 91.071 100% 6.5882%;--nc: 180 4.8458% 82.196%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 31.927 89.344% 52.157%;--pc: 180 7.3171% 8.0392%;--s: 271.22 45.794% 41.961%;--a: 91.071 100% 32.941%;--n: 180 3.5714% 10.98%;--b1: 0 0% 12.941%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%}[data-theme=garden]{color-scheme:light;--pf: 138.86 15.982% 34.353%;--sf: 96.923 37.143% 74.51%;--af: 0 67.742% 75.137%;--nf: 0 3.9106% 28.078%;--b2: 0 4.3478% 81.882%;--b3: 0 4.3478% 73.694%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 138.86 100% 88.588%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 138.86 15.982% 42.941%;--s: 96.923 37.143% 93.137%;--sc: 96 32.468% 15.098%;--a: 0 67.742% 93.922%;--ac: 0 21.951% 16.078%;--n: 0 3.9106% 35.098%;--nc: 0 4.3478% 90.98%;--b1: 0 4.3478% 90.98%;--bc: 0 3.2258% 6.0784%}[data-theme=forest]{color-scheme:dark;--pf: 141.04 71.963% 33.569%;--sf: 140.98 74.694% 38.431%;--af: 35.148 68.98% 41.569%;--nf: 0 9.6774% 4.8627%;--b2: 0 12.195% 7.2353%;--b3: 0 12.195% 6.5118%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 0 11.727% 81.608%;--sc: 140.98 100% 9.6078%;--ac: 35.148 100% 10.392%;--nc: 0 6.8894% 81.216%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 141.04 71.963% 41.961%;--pc: 140.66 100% 88.039%;--s: 140.98 74.694% 48.039%;--a: 35.148 68.98% 51.961%;--n: 0 9.6774% 6.0784%;--b1: 0 12.195% 8.0392%;--rounded-btn: 1.9rem}[data-theme=aqua]{color-scheme:dark;--pf: 181.79 92.857% 39.529%;--sf: 274.41 30.909% 45.49%;--af: 47.059 100% 64%;--nf: 205.4 53.725% 40%;--b2: 218.61 52.511% 38.647%;--b3: 218.61 52.511% 34.782%;--bc: 218.61 100% 88.588%;--sc: 274.41 100% 91.373%;--ac: 47.059 100% 16%;--nc: 205.4 100% 90%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 181.79 92.857% 49.412%;--pc: 181.41 100% 16.667%;--s: 274.41 30.909% 56.863%;--a: 47.059 100% 80%;--n: 205.4 53.725% 50%;--b1: 218.61 52.511% 42.941%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%}[data-theme=lofi]{color-scheme:light;--pf: 0 0% 4.0784%;--sf: 0 1.9608% 8%;--af: 0 0% 11.922%;--nf: 0 0% 0%;--btn-text-case: uppercase;--border-btn: 1px;--tab-border: 1px;--p: 0 0% 5.098%;--pc: 0 0% 100%;--s: 0 1.9608% 10%;--sc: 0 0% 100%;--a: 0 0% 14.902%;--ac: 0 0% 100%;--n: 0 0% 0%;--nc: 0 0% 100%;--b1: 0 0% 100%;--b2: 0 0% 94.902%;--b3: 0 1.9608% 90%;--bc: 0 0% 0%;--in: 212.35 100% 47.647%;--inc: 0 0% 100%;--su: 136.84 72.152% 46.471%;--suc: 0 0% 100%;--wa: 4.5614 100% 66.471%;--wac: 0 0% 100%;--er: 325.05 77.6% 49.02%;--erc: 0 0% 100%;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1;--tab-radius: 0}[data-theme=pastel]{color-scheme:light;--pf: 283.64 21.569% 64%;--sf: 351.63 70.492% 70.431%;--af: 158.49 54.639% 64.784%;--nf: 198.62 43.719% 48.784%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 0 0% 20%;--pc: 283.64 59.314% 16%;--sc: 351.63 100% 17.608%;--ac: 158.49 100% 16.196%;--nc: 198.62 100% 12.196%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 283.64 21.569% 80%;--s: 351.63 70.492% 88.039%;--a: 158.49 54.639% 80.98%;--n: 198.62 43.719% 60.98%;--b1: 0 0% 100%;--b2: 210 20% 98.039%;--b3: 216 12.195% 83.922%;--rounded-btn: 1.9rem}[data-theme=fantasy]{color-scheme:light;--pf: 296.04 82.813% 20.078%;--sf: 200 100% 29.647%;--af: 30.894 94.378% 40.941%;--nf: 215 27.907% 13.49%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 296.04 100% 85.02%;--sc: 200 100% 87.412%;--ac: 30.894 100% 10.235%;--nc: 215 62.264% 83.373%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 296.04 82.813% 25.098%;--s: 200 100% 37.059%;--a: 30.894 94.378% 51.176%;--n: 215 27.907% 16.863%;--b1: 0 0% 100%;--bc: 215 27.907% 16.863%}[data-theme=wireframe]{color-scheme:light;--pf: 0 0% 57.725%;--sf: 0 0% 57.725%;--af: 0 0% 57.725%;--nf: 0 0% 73.725%;--bc: 0 0% 20%;--pc: 0 0% 14.431%;--sc: 0 0% 14.431%;--ac: 0 0% 14.431%;--nc: 0 0% 18.431%;--inc: 240 100% 90%;--suc: 120 100% 85.02%;--wac: 60 100% 10%;--erc: 0 100% 90%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;font-family:Chalkboard,comic sans ms,sanssecondaryerif;--p: 0 0% 72.157%;--s: 0 0% 72.157%;--a: 0 0% 72.157%;--n: 0 0% 92.157%;--b1: 0 0% 100%;--b2: 0 0% 93.333%;--b3: 0 0% 86.667%;--in: 240 100% 50%;--su: 120 100% 25.098%;--wa: 60 30.196% 50%;--er: 0 100% 50%;--rounded-box: .2rem;--rounded-btn: .2rem;--rounded-badge: .2rem;--tab-radius: .2rem}[data-theme=black]{color-scheme:dark;--pf: 0 1.9608% 16%;--sf: 0 1.9608% 16%;--af: 0 1.9608% 16%;--bc: 0 0% 80%;--pc: 0 5.3922% 84%;--sc: 0 5.3922% 84%;--ac: 0 5.3922% 84%;--nc: 0 2.5404% 83.02%;--inc: 240 100% 90%;--suc: 120 100% 85.02%;--wac: 60 100% 10%;--erc: 0 100% 90%;--border-btn: 1px;--tab-border: 1px;--p: 0 1.9608% 20%;--s: 0 1.9608% 20%;--a: 0 1.9608% 20%;--b1: 0 0% 0%;--b2: 0 0% 5.098%;--b3: 0 1.9608% 10%;--n: 0 1.2987% 15.098%;--nf: 0 1.9608% 20%;--in: 240 100% 50%;--su: 120 100% 25.098%;--wa: 60 100% 50%;--er: 0 100% 50%;--rounded-box: 0;--rounded-btn: 0;--rounded-badge: 0;--animation-btn: 0;--animation-input: 0;--btn-text-case: lowercase;--btn-focus-scale: 1;--tab-radius: 0}[data-theme=luxury]{color-scheme:dark;--pf: 0 0% 80%;--sf: 218.4 54.348% 14.431%;--af: 318.62 21.805% 20.863%;--nf: 270 4.3478% 7.2157%;--pc: 0 0% 20%;--sc: 218.4 100% 83.608%;--ac: 318.62 84.615% 85.216%;--inc: 202.35 100% 14%;--suc: 89.007 100% 10.392%;--wac: 53.906 100% 12.706%;--erc: 0 100% 14.353%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 0 0% 100%;--s: 218.4 54.348% 18.039%;--a: 318.62 21.805% 26.078%;--n: 270 4.3478% 9.0196%;--nc: 37.083 67.29% 58.039%;--b1: 240 10% 3.9216%;--b2: 270 4.3478% 9.0196%;--b3: 270 2.1739% 18.039%;--bc: 37.083 67.29% 58.039%;--in: 202.35 100% 70%;--su: 89.007 61.633% 51.961%;--wa: 53.906 68.817% 63.529%;--er: 0 100% 71.765%}[data-theme=dracula]{color-scheme:dark;--pf: 325.52 100% 58.98%;--sf: 264.71 89.474% 62.118%;--af: 31.02 100% 56.941%;--nf: 229.57 15.033% 24%;--b2: 231.43 14.894% 16.588%;--b3: 231.43 14.894% 14.929%;--pc: 325.52 100% 14.745%;--sc: 264.71 100% 15.529%;--ac: 31.02 100% 14.235%;--nc: 229.57 70.868% 86%;--inc: 190.53 100% 15.373%;--suc: 135.18 100% 12.941%;--wac: 64.909 100% 15.294%;--erc: 0 100% 93.333%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 325.52 100% 73.725%;--s: 264.71 89.474% 77.647%;--a: 31.02 100% 71.176%;--n: 229.57 15.033% 30%;--b1: 231.43 14.894% 18.431%;--bc: 60 30% 96.078%;--in: 190.53 96.61% 76.863%;--su: 135.18 94.444% 64.706%;--wa: 64.909 91.667% 76.471%;--er: 0 100% 66.667%}[data-theme=cmyk]{color-scheme:light;--pf: 202.72 83.251% 48.157%;--sf: 335.25 77.67% 47.686%;--af: 56.195 100% 47.843%;--nf: 0 0% 8.1569%;--b2: 0 0% 90%;--b3: 0 0% 81%;--bc: 0 0% 20%;--pc: 202.72 100% 12.039%;--sc: 335.25 100% 91.922%;--ac: 56.195 100% 11.961%;--nc: 0 0% 82.039%;--inc: 192.2 100% 10.431%;--suc: 291.06 100% 87.608%;--wac: 25.027 100% 11.333%;--erc: 3.956 100% 91.137%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 202.72 83.251% 60.196%;--s: 335.25 77.67% 59.608%;--a: 56.195 100% 59.804%;--n: 0 0% 10.196%;--b1: 0 0% 100%;--in: 192.2 48.361% 52.157%;--su: 291.06 48.454% 38.039%;--wa: 25.027 84.615% 56.667%;--er: 3.956 80.531% 55.686%}[data-theme=autumn]{color-scheme:light;--pf: 344.23 95.804% 22.431%;--sf: .44444 63.38% 46.588%;--af: 27.477 56.021% 50.039%;--nf: 22.105 17.117% 34.824%;--b2: 0 0% 85.059%;--b3: 0 0% 76.553%;--bc: 0 0% 18.902%;--pc: 344.23 100% 85.608%;--sc: .44444 100% 91.647%;--ac: 27.477 100% 12.51%;--nc: 22.105 100% 88.706%;--inc: 186.94 100% 9.9216%;--suc: 164.59 100% 8.6275%;--wac: 30.141 100% 9.9216%;--erc: 353.6 100% 89.765%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 344.23 95.804% 28.039%;--s: .44444 63.38% 58.235%;--a: 27.477 56.021% 62.549%;--n: 22.105 17.117% 43.529%;--b1: 0 0% 94.51%;--in: 186.94 47.826% 49.608%;--su: 164.59 33.636% 43.137%;--wa: 30.141 84.19% 49.608%;--er: 353.6 79.116% 48.824%}[data-theme=business]{color-scheme:dark;--pf: 210 64.103% 24.471%;--sf: 200 12.931% 43.608%;--af: 12.515 79.512% 47.843%;--nf: 212.73 13.58% 12.706%;--b2: 0 0% 11.294%;--b3: 0 0% 10.165%;--bc: 0 0% 82.51%;--pc: 210 100% 86.118%;--sc: 200 100% 10.902%;--ac: 12.515 100% 11.961%;--nc: 212.73 28.205% 83.176%;--inc: 199.15 100% 88.353%;--suc: 144 100% 11.137%;--wac: 39.231 100% 12.078%;--erc: 6.3415 100% 88.667%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 210 64.103% 30.588%;--s: 200 12.931% 54.51%;--a: 12.515 79.512% 59.804%;--n: 212.73 13.58% 15.882%;--b1: 0 0% 12.549%;--in: 199.15 100% 41.765%;--su: 144 30.973% 55.686%;--wa: 39.231 64.356% 60.392%;--er: 6.3415 55.656% 43.333%;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem}[data-theme=acid]{color-scheme:light;--pf: 302.59 100% 40%;--sf: 27.294 100% 40%;--af: 72 98.425% 40.157%;--nf: 238.42 43.182% 13.804%;--b2: 0 0% 88.235%;--b3: 0 0% 79.412%;--bc: 0 0% 19.608%;--pc: 302.59 100% 90%;--sc: 27.294 100% 10%;--ac: 72 100% 10.039%;--nc: 238.42 99.052% 83.451%;--inc: 209.85 100% 11.569%;--suc: 148.87 100% 11.608%;--wac: 52.574 100% 11.451%;--erc: .78261 100% 89.02%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 302.59 100% 50%;--s: 27.294 100% 50%;--a: 72 98.425% 50.196%;--n: 238.42 43.182% 17.255%;--b1: 0 0% 98.039%;--in: 209.85 91.628% 57.843%;--su: 148.87 49.533% 58.039%;--wa: 52.574 92.661% 57.255%;--er: .78261 100% 45.098%;--rounded-box: 1.25rem;--rounded-btn: 1rem;--rounded-badge: 1rem}[data-theme=lemonade]{color-scheme:light;--pf: 88.8 96.154% 24.471%;--sf: 60 80.952% 43.765%;--af: 62.553 79.661% 70.745%;--nf: 238.42 43.182% 13.804%;--b2: 0 0% 90%;--b3: 0 0% 81%;--bc: 0 0% 20%;--pc: 88.8 100% 86.118%;--sc: 60 100% 10.941%;--ac: 62.553 100% 17.686%;--nc: 238.42 99.052% 83.451%;--inc: 191.61 79.118% 16.902%;--suc: 74.458 100% 15.725%;--wac: 50.182 100% 15.059%;--erc: .98361 100% 16.588%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 88.8 96.154% 30.588%;--s: 60 80.952% 54.706%;--a: 62.553 79.661% 88.431%;--n: 238.42 43.182% 17.255%;--b1: 0 0% 100%;--in: 191.61 39.241% 84.51%;--su: 74.458 76.147% 78.627%;--wa: 50.182 87.302% 75.294%;--er: .98361 70.115% 82.941%}[data-theme=night]{color-scheme:dark;--pf: 198.44 93.204% 47.686%;--sf: 234.45 89.474% 59.137%;--af: 328.85 85.621% 56%;--b2: 222.22 47.368% 10.059%;--b3: 222.22 47.368% 9.0529%;--bc: 222.22 65.563% 82.235%;--pc: 198.44 100% 11.922%;--sc: 234.45 100% 14.784%;--ac: 328.85 100% 14%;--nc: 217.24 75.772% 83.49%;--inc: 198.46 100% 9.6078%;--suc: 172.46 100% 10.078%;--wac: 40.61 100% 12.706%;--erc: 350.94 100% 14.235%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 198.44 93.204% 59.608%;--s: 234.45 89.474% 73.922%;--a: 328.85 85.621% 70%;--n: 217.24 32.584% 17.451%;--nf: 217.06 30.357% 21.961%;--b1: 222.22 47.368% 11.176%;--in: 198.46 90.204% 48.039%;--su: 172.46 66.008% 50.392%;--wa: 40.61 88.172% 63.529%;--er: 350.94 94.558% 71.176%}[data-theme=coffee]{color-scheme:dark;--pf: 29.583 66.667% 46.118%;--sf: 182.4 24.752% 15.843%;--af: 194.19 74.4% 19.608%;--nf: 300 20% 4.7059%;--b2: 306 18.519% 9.5294%;--b3: 306 18.519% 8.5765%;--pc: 29.583 100% 11.529%;--sc: 182.4 67.237% 83.961%;--ac: 194.19 100% 84.902%;--nc: 300 13.75% 81.176%;--inc: 171.15 100% 13.451%;--suc: 92.5 100% 12.471%;--wac: 43.125 100% 13.725%;--erc: 9.7561 100% 14.941%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 29.583 66.667% 57.647%;--s: 182.4 24.752% 19.804%;--a: 194.19 74.4% 24.51%;--n: 300 20% 5.8824%;--b1: 306 18.519% 10.588%;--bc: 36.667 8.3333% 42.353%;--in: 171.15 36.527% 67.255%;--su: 92.5 25% 62.353%;--wa: 43.125 100% 68.627%;--er: 9.7561 95.349% 74.706%}[data-theme=winter]{color-scheme:light;--pf: 211.79 100% 40.627%;--sf: 246.92 47.273% 34.51%;--af: 310.41 49.388% 41.569%;--nf: 217.02 92.157% 8%;--pc: 211.79 100% 90.157%;--sc: 246.92 100% 88.627%;--ac: 310.41 100% 90.392%;--nc: 217.02 100% 82%;--inc: 191.54 100% 15.608%;--suc: 181.5 100% 13.255%;--wac: 32.308 100% 16.706%;--erc: 0 100% 14.431%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 211.79 100% 50.784%;--s: 246.92 47.273% 43.137%;--a: 310.41 49.388% 51.961%;--n: 217.02 92.157% 10%;--b1: 0 0% 100%;--b2: 216.92 100% 97.451%;--b3: 218.82 43.59% 92.353%;--bc: 214.29 30.061% 31.961%;--in: 191.54 92.857% 78.039%;--su: 181.5 46.512% 66.275%;--wa: 32.308 61.905% 83.529%;--er: 0 63.38% 72.157%}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.alert{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:space-between;gap:1rem;--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));padding:1rem;border-radius:var(--rounded-box, 1rem)}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}@media (min-width: 768px){.alert{flex-direction:row}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}}.alert>:where(*){display:flex;align-items:center;gap:.5rem}.avatar{position:relative;display:inline-flex}.avatar>div{display:block;aspect-ratio:1 / 1;overflow:hidden}.avatar img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover}.avatar.placeholder>div{display:flex;align-items:center;justify-content:center}.btn{display:inline-flex;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;border-color:transparent;border-color:hsl(var(--n) / var(--tw-border-opacity));text-align:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);border-radius:var(--rounded-btn, .5rem);height:3rem;padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;line-height:1em;min-height:3rem;font-weight:600;text-transform:uppercase;text-transform:var(--btn-text-case, uppercase);text-decoration-line:none;border-width:var(--border-btn, 1px);animation:button-pop var(--animation-btn, .25s) ease-out;--tw-border-opacity: 1;--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-disabled,.btn[disabled]{pointer-events:none}.btn-circle{height:3rem;width:3rem;border-radius:9999px;padding:0}.btn.loading,.btn.loading:hover{pointer-events:none}.btn.loading:before{margin-right:.5rem;height:1rem;width:1rem;border-radius:9999px;border-width:2px;animation:spin 2s linear infinite;content:"";border-top-color:transparent;border-left-color:transparent;border-bottom-color:currentColor;border-right-color:currentColor}@media (prefers-reduced-motion: reduce){.btn.loading:before{animation:spin 10s linear infinite}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-group>input[type=radio].btn{-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn-group>input[type=radio].btn:before{content:attr(data-title)}.card-actions{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.5rem}.checkbox{flex-shrink:0;--chkbg: var(--bc);--chkfg: var(--b1);height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2;border-radius:var(--rounded-btn, .5rem)}.divider{display:flex;flex-direction:row;align-items:center;align-self:stretch;margin-top:1rem;margin-bottom:1rem;height:1rem;white-space:nowrap}.divider:before,.divider:after{content:"";flex-grow:1;height:.125rem;width:100%}.dropdown{position:relative;display:inline-block}.dropdown>*:focus{outline:2px solid transparent;outline-offset:2px}.dropdown .dropdown-content{visibility:hidden;position:absolute;z-index:50;opacity:0;transform-origin:top;--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.dropdown-end .dropdown-content{right:0}.dropdown-left .dropdown-content{top:0;right:100%;bottom:auto;transform-origin:right}.dropdown-right .dropdown-content{left:100%;top:0;bottom:auto;transform-origin:left}.dropdown-bottom .dropdown-content{bottom:auto;top:100%;transform-origin:top}.dropdown-top .dropdown-content{bottom:100%;top:auto;transform-origin:bottom}.dropdown-end.dropdown-right .dropdown-content,.dropdown-end.dropdown-left .dropdown-content{bottom:0;top:auto}.dropdown.dropdown-open .dropdown-content,.dropdown.dropdown-hover:hover .dropdown-content,.dropdown:not(.dropdown-hover):focus .dropdown-content,.dropdown:not(.dropdown-hover):focus-within .dropdown-content{visibility:visible;opacity:1}.form-control{display:flex;flex-direction:column}.label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:space-between;padding:.5rem .25rem}.input{flex-shrink:1;height:3rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:2;line-height:1.5rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));border-radius:var(--rounded-btn, .5rem)}.input-group>.input{isolation:isolate}.input-group>*,.input-group>.input,.input-group>.textarea,.input-group>.select{border-radius:0}.link{cursor:pointer;text-decoration-line:underline}.mask{-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}.menu{display:flex;flex-direction:column;flex-wrap:wrap}.menu.horizontal{display:inline-flex;flex-direction:row}.menu.horizontal :where(li){flex-direction:row}:where(.menu li){position:relative;display:flex;flex-shrink:0;flex-direction:column;flex-wrap:wrap;align-items:stretch}.menu :where(li:not(.menu-title))>:where(*:not(ul)){display:flex}.menu :where(li:not(.disabled):not(.menu-title))>:where(*:not(ul)){cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;outline:2px solid transparent;outline-offset:2px}.menu>:where(li>*:not(ul):focus){outline:2px solid transparent;outline-offset:2px}.menu>:where(li.disabled>*:not(ul):focus){cursor:auto}.menu>:where(li) :where(ul){display:flex;flex-direction:column;align-items:stretch}.menu>:where(li)>:where(ul){position:absolute;display:none;top:initial;left:100%;border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li:hover)>:where(ul){display:flex}.menu>:where(li:focus)>:where(ul){display:flex}.modal{pointer-events:none;visibility:hidden;position:fixed;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;opacity:0;z-index:999;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity));--tw-bg-opacity: .4;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:transform,opacity,visibility;overflow-y:hidden;overscroll-behavior:contain}:where(.modal){align-items:center}.modal-box{max-height:calc(100vh - 5em);--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));padding:1.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);width:91.666667%;max-width:32rem;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem);box-shadow:0 25px 50px -12px #00000040;overflow-y:auto;overscroll-behavior:contain}.modal-open,.modal:target,.modal-toggle:checked+.modal{pointer-events:auto;visibility:visible;opacity:1}.modal-action{display:flex;margin-top:1.5rem;justify-content:flex-end}.modal-toggle{position:fixed;height:0px;width:0px;-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0}.navbar{display:flex;align-items:center;padding:var(--navbar-padding, .5rem);min-height:4rem;width:100%}:where(.navbar>*){display:inline-flex;align-items:center}.radio{flex-shrink:0;--chkbg: var(--bc);height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:9999px;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2}.rating{position:relative;display:inline-flex}.rating :where(input){cursor:pointer;border-radius:0;animation:rating-pop var(--animation-input, .25s) ease-out;height:1.5rem;width:1.5rem;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: 1}.select{display:inline-flex;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;padding-left:1rem;padding-right:2.5rem;font-size:.875rem;line-height:1.25rem;line-height:2;min-height:3rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));font-weight:600;border-radius:var(--rounded-btn, .5rem);background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) calc(1px + 50%),calc(100% - 16px) calc(1px + 50%);background-size:4px 4px,4px 4px;background-repeat:no-repeat}.select[multiple]{height:auto}.\!stats{display:inline-grid!important;--tw-bg-opacity: 1 !important;background-color:hsl(var(--b1) / var(--tw-bg-opacity))!important;--tw-text-opacity: 1 !important;color:hsl(var(--bc) / var(--tw-text-opacity))!important;border-radius:var(--rounded-box, 1rem)!important}.stats{display:inline-grid;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity));border-radius:var(--rounded-box, 1rem)}:where(.\!stats){grid-auto-flow:column!important;overflow-x:auto!important}:where(.stats){grid-auto-flow:column;overflow-x:auto}.tabs{display:flex;flex-wrap:wrap;align-items:flex-end}.tab{position:relative;display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;text-align:center;height:2rem;font-size:.875rem;line-height:1.25rem;line-height:2;--tab-padding: 1rem;--tw-text-opacity: .5;--tab-color: hsla(var(--bc) / var(--tw-text-opacity, 1));--tab-bg: hsla(var(--b1) / var(--tw-bg-opacity, 1));--tab-border-color: hsla(var(--b3) / var(--tw-bg-opacity, 1));color:var(--tab-color);padding-left:var(--tab-padding, 1rem);padding-right:var(--tab-padding, 1rem)}.table{position:relative;text-align:left}.table th:first-child{position:sticky;left:0;z-index:11}.textarea{flex-shrink:1;min-height:3rem;padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem;line-height:2;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));border-radius:var(--rounded-btn, .5rem)}.avatar-group :where(.avatar){overflow:hidden;border-radius:9999px;border-width:4px;--tw-border-opacity: 1;border-color:hsl(var(--b1) / var(--tw-border-opacity))}.btm-nav>*:where(.active){border-top-width:2px;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}.btm-nav>*.disabled,.btm-nav>*.disabled:hover,.btm-nav>*[disabled],.btm-nav>*[disabled]:hover{pointer-events:none;--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .1;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.btm-nav>* .label{font-size:1rem;line-height:1.5rem}.btn:active:hover,.btn:active:focus{animation:none}.btn:not(.no-animation):active:hover,.btn:not(.no-animation):active:focus{transform:scale(var(--btn-focus-scale, .95))}.btn:hover,.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity))}.btn:focus-visible{outline:2px solid hsl(var(--nf));outline-offset:2px}.btn.glass:hover,.btn.glass.btn-active{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn.glass:focus-visible{outline:2px solid currentColor}.btn-disabled,.btn-disabled:hover,.btn[disabled],.btn[disabled]:hover{--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .2;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.btn.loading.btn-square:before,.btn.loading.btn-circle:before{margin-right:0}.btn.loading.btn-xl:before,.btn.loading.btn-lg:before{height:1.25rem;width:1.25rem}.btn.loading.btn-sm:before,.btn.loading.btn-xs:before{height:.75rem;width:.75rem}.btn-group>input[type=radio]:checked.btn,.btn-group>.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-group>input[type=radio]:checked.btn:focus-visible,.btn-group>.btn-active:focus-visible{outline:2px solid hsl(var(--p))}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale, .95))}40%{transform:scale(1.02)}to{transform:scale(1)}}.checkbox:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.checkbox:checked,.checkbox[checked=true],.checkbox[aria-checked=true]{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(-45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.checkbox:indeterminate{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(-90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(0deg,hsl(var(--chkbg)) 43%,hsl(var(--chkfg)) 43%,hsl(var(--chkfg)) 57%,hsl(var(--chkbg)) 57%)}.checkbox:disabled{cursor:not-allowed;border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));opacity:.2}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}[dir=rtl] .checkbox:checked,[dir=rtl] .checkbox[checked=true],[dir=rtl] .checkbox[aria-checked=true]{background-image:linear-gradient(45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(-45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.divider:before{background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}.divider:after{background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}.divider:not(:empty){gap:1rem}.dropdown.dropdown-open .dropdown-content,.dropdown.dropdown-hover:hover .dropdown-content,.dropdown:focus .dropdown-content,.dropdown:focus-within .dropdown-content{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.label-text{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.label a:hover{--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input-bordered{--tw-border-opacity: .2}.input:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.input-success{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity))}.input-success:focus{outline:2px solid hsl(var(--su))}.input-disabled,.input[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.input-disabled::-moz-placeholder,.input[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.input-disabled::placeholder,.input[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.link:focus{outline:2px solid transparent;outline-offset:2px}.link:focus-visible{outline:2px solid currentColor;outline-offset:2px}.mask-star-2{-webkit-mask-image:url("data:image/svg+xml,%3csvg width='192' height='180' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m96 153.044-58.779 26.243 7.02-63.513L.894 68.481l63.117-13.01L96 0l31.989 55.472 63.117 13.01-43.347 47.292 7.02 63.513z' fill-rule='evenodd'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg width='192' height='180' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m96 153.044-58.779 26.243 7.02-63.513L.894 68.481l63.117-13.01L96 0l31.989 55.472 63.117 13.01-43.347 47.292 7.02 63.513z' fill-rule='evenodd'/%3e%3c/svg%3e")}.menu.horizontal>li.bordered>a,.menu.horizontal>li.bordered>button,.menu.horizontal>li.bordered>span{border-left-width:0px;border-bottom-width:4px;--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.menu[class*=" px-"]:not(.menu[class*=" px-0"]) li>*,.menu[class^=px-]:not(.menu[class^=px-0]) li>*,.menu[class*=" p-"]:not(.menu[class*=" p-0"]) li>*,.menu[class^=p-]:not(.menu[class^=p-0]) li>*{border-radius:var(--rounded-btn, .5rem)}.menu :where(li.bordered>*){border-left-width:4px;--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.menu :where(li)>:where(*:not(ul)){gap:.75rem;padding:.75rem 1rem;color:currentColor}.menu :where(li:not(.menu-title):not(:empty))>:where(*:not(ul):focus),.menu :where(li:not(.menu-title):not(:empty))>:where(*:not(ul):hover){background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}.menu :where(li:not(.menu-title):not(:empty))>:where(:not(ul).active),.menu :where(li:not(.menu-title):not(:empty))>:where(*:not(ul):active){--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.menu :where(li:empty){margin:.5rem 1rem;height:1px;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}.menu li.disabled>*{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.menu li.disabled>*:hover{background-color:transparent}.menu li.hover-bordered a{border-left-width:4px;border-color:transparent}.menu li.hover-bordered a:hover{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.menu.compact li>a,.menu.compact li>span{padding-top:.5rem;padding-bottom:.5rem;font-size:.875rem;line-height:1.25rem}.menu .menu-title{font-size:.75rem;line-height:1rem;font-weight:700;opacity:.4}.menu .menu-title>*{padding-top:.25rem;padding-bottom:.25rem}.menu :where(li:not(.disabled))>:where(*:not(ul)){outline:2px solid transparent;outline-offset:2px;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.menu>:where(li:first-child){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li:first-child)>:where(:not(ul)){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li:last-child){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li:last-child)>:where(:not(ul)){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li:first-child:last-child){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li:first-child:last-child)>:where(:not(ul)){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li)>:where(ul) :where(li){width:100%;white-space:nowrap}.menu>:where(li)>:where(ul) :where(li) :where(ul){padding-left:1rem}.menu>:where(li)>:where(ul) :where(li)>:where(:not(ul)){width:100%;white-space:nowrap}.menu>:where(li)>:where(ul)>:where(li:first-child){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li)>:where(ul)>:where(li:first-child)>:where(:not(ul)){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li)>:where(ul)>:where(li:last-child){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li)>:where(ul)>:where(li:last-child)>:where(:not(ul)){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li)>:where(ul)>:where(li:first-child:last-child){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li)>:where(ul)>:where(li:first-child:last-child)>:where(:not(ul)){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.mockup-phone .display{overflow:hidden;border-radius:40px;margin-top:-25px}.modal-open .modal-box,.modal-toggle:checked+.modal .modal-box,.modal:target .modal-box{--tw-translate-y: 0px;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.modal-action>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}@keyframes progress-loading{50%{left:107%}}.radio:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.radio:checked,.radio[aria-checked=true]{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));animation:radiomark var(--animation-input, .2s) ease-in-out;box-shadow:0 0 0 4px hsl(var(--b1)) inset,0 0 0 4px hsl(var(--b1)) inset}.radio:disabled{cursor:not-allowed;opacity:.2}@keyframes radiomark{0%{box-shadow:0 0 0 12px hsl(var(--b1)) inset,0 0 0 12px hsl(var(--b1)) inset}50%{box-shadow:0 0 0 3px hsl(var(--b1)) inset,0 0 0 3px hsl(var(--b1)) inset}to{box-shadow:0 0 0 4px hsl(var(--b1)) inset,0 0 0 4px hsl(var(--b1)) inset}}.rating input{-moz-appearance:none;appearance:none;-webkit-appearance:none}.rating .rating-hidden{width:.5rem;background-color:transparent}.rating input:checked~input,.rating input[aria-checked=true]~input{--tw-bg-opacity: .2}.rating input:focus-visible{transition-property:transform;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);transform:translateY(-.125em)}.rating input:active:focus{animation:none;transform:translateY(-.125em)}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.select:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.select-success{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity))}.select-success:focus{outline:2px solid hsl(var(--su))}.select-disabled,.select[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.select-disabled::-moz-placeholder,.select[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.select-disabled::placeholder,.select[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.select-multiple,.select[multiple],.select[size].select:not([size="1"]){background-image:none;padding-right:1rem}[dir=rtl] .select{background-position:calc(0% + 12px) calc(1px + 50%),calc(0% + 16px) calc(1px + 50%)}:where(.\!stats)>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0 !important;border-right-width:calc(1px * var(--tw-divide-x-reverse))!important;border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))!important;--tw-divide-y-reverse: 0 !important;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)))!important;border-bottom-width:calc(0px * var(--tw-divide-y-reverse))!important}:where(.stats)>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)));--tw-divide-y-reverse: 0;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0px * var(--tw-divide-y-reverse))}.tab:hover{--tw-text-opacity: 1}.tab.tab-active:not(.tab-disabled):not([disabled]){border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 1;--tw-text-opacity: 1}.tab:focus{outline:2px solid transparent;outline-offset:2px}.tab:focus-visible{outline:2px solid currentColor;outline-offset:-3px}.tab:focus-visible.tab-lifted{border-bottom-right-radius:var(--tab-radius, .5rem);border-bottom-left-radius:var(--tab-radius, .5rem)}.tab-disabled,.tab-disabled:hover,.tab[disabled],.tab[disabled]:hover{cursor:not-allowed;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.tabs-boxed .tab{border-radius:var(--rounded-btn, .5rem)}.table :where(th,td){white-space:nowrap;padding:1rem;vertical-align:middle}.table tr.active th,.table tr.active td,.table tr.active:nth-child(2n) th,.table tr.active:nth-child(2n) td{--tw-bg-opacity: 1;background-color:hsl(var(--b3, var(--b2)) / var(--tw-bg-opacity))}.table tr.hover:hover th,.table tr.hover:hover td,.table tr.hover:nth-child(2n):hover th,.table tr.hover:nth-child(2n):hover td{--tw-bg-opacity: 1;background-color:hsl(var(--b3, var(--b2)) / var(--tw-bg-opacity))}.table:where(:not(.table-zebra)) :where(thead,tbody,tfoot) :where(tr:not(:last-child) :where(th,td)){border-bottom-width:1px;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity))}.table :where(thead,tfoot) :where(th,td){--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));font-size:.75rem;line-height:1rem;font-weight:700;text-transform:uppercase}.table :where(tbody th,tbody td){--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}:where(.table *:first-child) :where(*:first-child) :where(th,td):first-child{border-top-left-radius:var(--rounded-box, 1rem)}:where(.table *:first-child) :where(*:first-child) :where(th,td):last-child{border-top-right-radius:var(--rounded-box, 1rem)}:where(.table *:last-child) :where(*:last-child) :where(th,td):first-child{border-bottom-left-radius:var(--rounded-box, 1rem)}:where(.table *:last-child) :where(*:last-child) :where(th,td):last-child{border-bottom-right-radius:var(--rounded-box, 1rem)}.textarea:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.textarea-success{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity))}.textarea-success:focus{outline:2px solid hsl(var(--su))}.textarea-disabled,.textarea[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.textarea-disabled::-moz-placeholder,.textarea[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.textarea-disabled::placeholder,.textarea[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}.rounded-box{border-radius:var(--rounded-box, 1rem)}.artboard.phone{width:320px}.btm-nav-xs>*:where(.active){border-top-width:1px}.btm-nav-sm>*:where(.active){border-top-width:2px}.btm-nav-md>*:where(.active){border-top-width:2px}.btm-nav-lg>*:where(.active){border-top-width:4px}.btn-sm{height:2rem;padding-left:.75rem;padding-right:.75rem;min-height:2rem;font-size:.875rem}.btn-wide{width:16rem}.btn-square:where(.btn-sm){height:2rem;width:2rem;padding:0}.btn-circle:where(.btn-xs){height:1.5rem;width:1.5rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-sm){height:2rem;width:2rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-md){height:3rem;width:3rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-lg){height:4rem;width:4rem;border-radius:9999px;padding:0}.divider-horizontal{flex-direction:column}.divider-horizontal:before{height:100%;width:.125rem}.divider-horizontal:after{height:100%;width:.125rem}.input-md{height:3rem;padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;line-height:2}.input-lg{height:4rem;padding-left:1.5rem;padding-right:1.5rem;font-size:1.125rem;line-height:1.75rem;line-height:2}.menu-horizontal{display:inline-flex;width:-moz-max-content;width:max-content;flex-direction:row}.menu-horizontal :where(li){flex-direction:row}.menu-horizontal>:where(li)>:where(ul){top:100%;left:initial}.modal-bottom{align-items:flex-end}.avatar.online:before{content:"";position:absolute;z-index:10;display:block;border-radius:9999px;--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity));width:15%;height:15%;top:7%;right:7%;box-shadow:0 0 0 2px hsl(var(--b1))}.avatar.offline:before{content:"";position:absolute;z-index:10;display:block;border-radius:9999px;--tw-bg-opacity: 1;background-color:hsl(var(--b3, var(--b2)) / var(--tw-bg-opacity));width:15%;height:15%;top:7%;right:7%;box-shadow:0 0 0 2px hsl(var(--b1))}.btn-group .btn:not(:first-child):not(:last-child){border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:0;border-end-end-radius:0}.btn-group .btn:first-child:not(:last-child){margin-top:-0px;margin-left:-1px;border-start-start-radius:var(--rounded-btn, .5rem);border-start-end-radius:0;border-end-start-radius:var(--rounded-btn, .5rem);border-end-end-radius:0}.btn-group .btn:last-child:not(:first-child){border-start-start-radius:0;border-start-end-radius:var(--rounded-btn, .5rem);border-end-start-radius:0;border-end-end-radius:var(--rounded-btn, .5rem)}.btn-group-horizontal .btn:not(:first-child):not(:last-child){border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:0;border-end-end-radius:0}.btn-group-horizontal .btn:first-child:not(:last-child){margin-top:-0px;margin-left:-1px;border-start-start-radius:var(--rounded-btn, .5rem);border-start-end-radius:0;border-end-start-radius:var(--rounded-btn, .5rem);border-end-end-radius:0}.btn-group-horizontal .btn:last-child:not(:first-child){border-start-start-radius:0;border-start-end-radius:var(--rounded-btn, .5rem);border-end-start-radius:0;border-end-end-radius:var(--rounded-btn, .5rem)}.btn-group-vertical .btn:first-child:not(:last-child){margin-top:-1px;margin-left:-0px;border-start-start-radius:var(--rounded-btn, .5rem);border-start-end-radius:var(--rounded-btn, .5rem);border-end-start-radius:0;border-end-end-radius:0}.btn-group-vertical .btn:last-child:not(:first-child){border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:var(--rounded-btn, .5rem);border-end-end-radius:var(--rounded-btn, .5rem)}.divider-horizontal{margin-top:0;margin-bottom:0;margin-left:1rem;margin-right:1rem;height:auto;width:1rem}.menu-horizontal :where(li.bordered>*){border-left-width:0px;border-bottom-width:4px}.menu-horizontal>:where(li:first-child){border-top-left-radius:inherit;border-top-right-radius:unset;border-bottom-right-radius:unset;border-bottom-left-radius:inherit}.menu-horizontal>:where(li:first-child)>:where(*:not(ul)){border-top-left-radius:inherit;border-top-right-radius:unset;border-bottom-right-radius:unset;border-bottom-left-radius:inherit}.menu-horizontal>:where(li:last-child){border-top-left-radius:unset;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:unset}.menu-horizontal>:where(li:last-child)>:where(*:not(ul)){border-top-left-radius:unset;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:unset}.modal-bottom :where(.modal-box){width:100%;max-width:none;--tw-translate-y: 2.5rem;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-right-radius:0;border-bottom-left-radius:0}.modal-middle :where(.modal-box){width:91.666667%;max-width:32rem;--tw-translate-y: 0px;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-left-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem)}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-left-20{left:-5rem}.right-0{right:0}.right-2{right:.5rem}.top-0{top:0}.top-2{top:.5rem}.z-10{z-index:10}.z-50{z-index:50}.float-right{float:right}.m-1{margin:.25rem}.m-5{margin:1.25rem}.mx-0{margin-left:0;margin-right:0}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-28{margin-left:7rem;margin-right:7rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-48{margin-bottom:12rem}.mb-5{margin-bottom:1.25rem}.ml-1{margin-left:.25rem}.ml-24{margin-left:6rem}.ml-px{margin-left:1px}.mr-0{margin-right:0}.mr-0\.5{margin-right:.125rem}.mr-5{margin-right:1.25rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-28{margin-top:7rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.flex{display:flex}.table{display:table}.grid{display:grid}.contents{display:contents}.h-16{height:4rem}.h-32{height:8rem}.h-44{height:11rem}.h-\[40vh\]{height:40vh}.h-\[70vh\]{height:70vh}.h-auto{height:auto}.h-full{height:100%}.h-max{height:-moz-max-content;height:max-content}.h-screen{height:100vh}.max-h-max{max-height:-moz-max-content;max-height:max-content}.min-h-\[490px\]{min-height:490px}.min-h-\[667px\]{min-height:667px}.w-1\/2{width:50%}.w-1\/5{width:20%}.w-16{width:4rem}.w-2\/5{width:40%}.w-28{width:7rem}.w-32{width:8rem}.w-4\/5{width:80%}.w-52{width:13rem}.w-\[400px\]{width:400px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-grow{flex-grow:1}.basis-1\/4{flex-basis:25%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.content-around{align-content:space-around}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.gap-1{gap:.25rem}.gap-12{gap:3rem}.gap-28{gap:7rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.border-t-2{border-top-width:2px}.border-\[\#11D9C5\],.border-\[\#11d9c5\]{--tw-border-opacity: 1;border-color:rgb(17 217 197 / var(--tw-border-opacity))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-white\/50{border-color:#ffffff80}.border-zinc-600{--tw-border-opacity: 1;border-color:rgb(82 82 91 / var(--tw-border-opacity))}.bg-\[\#11D9C5\]{--tw-bg-opacity: 1;background-color:rgb(17 217 197 / var(--tw-bg-opacity))}.bg-base-100{--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-orange-400{--tw-bg-opacity: 1;background-color:rgb(251 146 60 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-zinc-200{--tw-bg-opacity: 1;background-color:rgb(228 228 231 / var(--tw-bg-opacity))}.bg-zinc-700{--tw-bg-opacity: 1;background-color:rgb(63 63 70 / var(--tw-bg-opacity))}.object-center{-o-object-position:center;object-position:center}.p-0{padding:0}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-10{padding-bottom:2.5rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.normal-case{text-transform:none}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-950{--tw-text-opacity: 1;color:rgb(3 7 18 / var(--tw-text-opacity))}.text-green-300{--tw-text-opacity: 1;color:rgb(134 239 172 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-lime-700{--tw-text-opacity: 1;color:rgb(77 124 15 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-gray-500\/50{--tw-shadow-color: rgb(107 114 128 / .5);--tw-shadow: var(--tw-shadow-colored)}body{transition:background-color .2s ease-in-out,color .2s ease-in-out;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}:is(.dark body){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-track{background:white}::-webkit-scrollbar-thumb{background:black}::-webkit-scrollbar-thumb:hover{background:black}@media (min-width: 640px){.sm\:modal-middle{align-items:center}.sm\:modal-middle :where(.modal-box){width:91.666667%;max-width:32rem;--tw-translate-y: 0px;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-left-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem)}}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.hover\:bg-slate-200:hover{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity))}.hover\:bg-slate-600:hover{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity))}.hover\:text-gray-200:hover{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.active\:bg-gray-200:active{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.active\:bg-gray-700:active{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.active\:bg-slate-500:active{--tw-bg-opacity: 1;background-color:rgb(100 116 139 / var(--tw-bg-opacity))}:is(.dark .dark\:border-green-400){--tw-border-opacity: 1;border-color:rgb(74 222 128 / var(--tw-border-opacity))}:is(.dark .dark\:border-zinc-600){--tw-border-opacity: 1;border-color:rgb(82 82 91 / var(--tw-border-opacity))}:is(.dark .dark\:bg-gray-300){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-700){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-500){--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}:is(.dark .dark\:text-black){--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-100){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-100){--tw-text-opacity: 1;color:rgb(220 252 231 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-300){--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}:is(.dark .dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-200){--tw-text-opacity: 1;color:rgb(254 240 138 / var(--tw-text-opacity))}:is(.dark .dark\:shadow-green-300\/30){--tw-shadow-color: rgb(134 239 172 / .3);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-green-300\/80){--tw-shadow-color: rgb(134 239 172 / .8);--tw-shadow: var(--tw-shadow-colored)} diff --git a/build/app/immutable/assets/_layout.476f7c1c.css b/build/app/immutable/assets/_layout.e60e41c5.css similarity index 87% rename from build/app/immutable/assets/_layout.476f7c1c.css rename to build/app/immutable/assets/_layout.e60e41c5.css index 209be47cf..7129d041f 100644 --- a/build/app/immutable/assets/_layout.476f7c1c.css +++ b/build/app/immutable/assets/_layout.e60e41c5.css @@ -1 +1 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root,[data-theme]{background-color:hsla(var(--b1) / var(--tw-bg-opacity, 1));color:hsla(var(--bc) / var(--tw-text-opacity, 1))}html{-webkit-tap-highlight-color:transparent}:root{color-scheme:light;--pf: 258.89 94.378% 40.941%;--sf: 314 100% 37.647%;--af: 174 60% 40.784%;--nf: 219 14.085% 22.275%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 258.89 94.378% 51.176%;--pc: 0 0% 100%;--s: 314 100% 47.059%;--sc: 0 0% 100%;--a: 174 60% 50.98%;--ac: 174.71 43.59% 15.294%;--n: 219 14.085% 27.843%;--nc: 0 0% 100%;--b1: 0 0% 100%;--b2: 0 0% 94.902%;--b3: 180 1.9608% 90%;--bc: 215 27.907% 16.863%}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--pf: 262.35 80.315% 40.157%;--sf: 315.75 70.196% 40%;--af: 174.69 70.335% 32.784%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 262.35 80.315% 50.196%;--pc: 0 0% 100%;--s: 315.75 70.196% 50%;--sc: 0 0% 100%;--a: 174.69 70.335% 40.98%;--ac: 0 0% 100%;--n: 218.18 18.033% 11.961%;--nf: 222.86 17.073% 8.0392%;--nc: 220 13.376% 69.216%;--b1: 220 17.647% 20%;--b2: 220 17.241% 17.059%;--b3: 218.57 17.949% 15.294%;--bc: 220 13.376% 69.216%}}[data-theme=light]{color-scheme:light;--pf: 258.89 94.378% 40.941%;--sf: 314 100% 37.647%;--af: 174 60% 40.784%;--nf: 219 14.085% 22.275%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 258.89 94.378% 51.176%;--pc: 0 0% 100%;--s: 314 100% 47.059%;--sc: 0 0% 100%;--a: 174 60% 50.98%;--ac: 174.71 43.59% 15.294%;--n: 219 14.085% 27.843%;--nc: 0 0% 100%;--b1: 0 0% 100%;--b2: 0 0% 94.902%;--b3: 180 1.9608% 90%;--bc: 215 27.907% 16.863%}[data-theme=dark]{color-scheme:dark;--pf: 262.35 80.315% 40.157%;--sf: 315.75 70.196% 40%;--af: 174.69 70.335% 32.784%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 262.35 80.315% 50.196%;--pc: 0 0% 100%;--s: 315.75 70.196% 50%;--sc: 0 0% 100%;--a: 174.69 70.335% 40.98%;--ac: 0 0% 100%;--n: 218.18 18.033% 11.961%;--nf: 222.86 17.073% 8.0392%;--nc: 220 13.376% 69.216%;--b1: 220 17.647% 20%;--b2: 220 17.241% 17.059%;--b3: 218.57 17.949% 15.294%;--bc: 220 13.376% 69.216%}[data-theme=cupcake]{color-scheme:light;--pf: 183.03 47.368% 47.216%;--sf: 338.25 71.429% 62.431%;--af: 39 84.112% 46.431%;--nf: 280 46.479% 11.137%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 183.03 100% 11.804%;--sc: 338.25 100% 15.608%;--ac: 39 100% 11.608%;--nc: 280 82.688% 82.784%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--p: 183.03 47.368% 59.02%;--s: 338.25 71.429% 78.039%;--a: 39 84.112% 58.039%;--n: 280 46.479% 13.922%;--b1: 24 33.333% 97.059%;--b2: 26.667 21.951% 91.961%;--b3: 22.5 14.286% 89.02%;--bc: 280 46.479% 13.922%;--rounded-btn: 1.9rem;--tab-border: 2px;--tab-radius: .5rem}[data-theme=bumblebee]{color-scheme:light;--pf: 41.124 74.167% 42.353%;--sf: 49.901 94.393% 46.431%;--af: 240 33.333% 11.294%;--nf: 240 33.333% 11.294%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 0 0% 20%;--ac: 240 60.274% 82.824%;--nc: 240 60.274% 82.824%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 41.124 74.167% 52.941%;--pc: 240 33.333% 14.118%;--s: 49.901 94.393% 58.039%;--sc: 240 33.333% 14.118%;--a: 240 33.333% 14.118%;--n: 240 33.333% 14.118%;--b1: 0 0% 100%}[data-theme=emerald]{color-scheme:light;--pf: 141.18 50% 48%;--sf: 218.88 96.078% 48%;--af: 9.8901 81.25% 44.863%;--nf: 219.23 20.312% 20.078%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--btn-text-case: uppercase;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 141.18 50% 60%;--pc: 151.11 28.421% 18.627%;--s: 218.88 96.078% 60%;--sc: 210 20% 98.039%;--a: 9.8901 81.25% 56.078%;--ac: 210 20% 98.039%;--n: 219.23 20.312% 25.098%;--nc: 210 20% 98.039%;--b1: 0 0% 100%;--bc: 219.23 20.312% 25.098%;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1}[data-theme=corporate]{color-scheme:light;--pf: 229.09 95.652% 51.137%;--sf: 214.91 26.316% 47.216%;--af: 154.2 49.02% 48%;--nf: 233.33 27.273% 10.353%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 229.09 100% 92.784%;--sc: 214.91 100% 11.804%;--ac: 154.2 100% 12%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--btn-text-case: uppercase;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 229.09 95.652% 63.922%;--s: 214.91 26.316% 59.02%;--a: 154.2 49.02% 60%;--n: 233.33 27.273% 12.941%;--nc: 210 38.462% 94.902%;--b1: 0 0% 100%;--bc: 233.33 27.273% 12.941%;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1}[data-theme=synthwave]{color-scheme:dark;--pf: 320.73 69.62% 55.216%;--sf: 197.03 86.592% 51.922%;--af: 48 89.041% 45.647%;--nf: 253.22 60.825% 15.216%;--b2: 253.85 59.091% 23.294%;--b3: 253.85 59.091% 20.965%;--pc: 320.73 100% 13.804%;--sc: 197.03 100% 12.98%;--ac: 48 100% 11.412%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 320.73 69.62% 69.02%;--s: 197.03 86.592% 64.902%;--a: 48 89.041% 57.059%;--n: 253.22 60.825% 19.02%;--nc: 260 60% 98.039%;--b1: 253.85 59.091% 25.882%;--bc: 260 60% 98.039%;--in: 199.13 86.957% 63.922%;--inc: 257.45 63.218% 17.059%;--su: 168.1 74.233% 68.039%;--suc: 257.45 63.218% 17.059%;--wa: 48 89.041% 57.059%;--wac: 257.45 63.218% 17.059%;--er: 351.85 73.636% 56.863%;--erc: 260 60% 98.039%}[data-theme=retro]{color-scheme:light;--pf: 2.6667 73.77% 60.863%;--sf: 144.62 27.273% 57.569%;--af: 49.024 67.213% 60.863%;--nf: 41.667 16.822% 33.569%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 2.6667 73.77% 76.078%;--pc: 345 5.2632% 14.902%;--s: 144.62 27.273% 71.961%;--sc: 345 5.2632% 14.902%;--a: 49.024 67.213% 76.078%;--ac: 345 5.2632% 14.902%;--n: 41.667 16.822% 41.961%;--nc: 45 47.059% 80%;--b1: 45 47.059% 80%;--b2: 45.283 37.063% 71.961%;--b3: 42.188 35.955% 65.098%;--bc: 345 5.2632% 14.902%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%;--rounded-box: .4rem;--rounded-btn: .4rem;--rounded-badge: .4rem}[data-theme=cyberpunk]{color-scheme:light;--pf: 344.78 100% 58.353%;--sf: 195.12 80.392% 56%;--af: 276 74.324% 56.784%;--nf: 57.273 100% 10.353%;--b2: 56 100% 45%;--b3: 56 100% 40.5%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 56 100% 10%;--pc: 344.78 100% 14.588%;--sc: 195.12 100% 14%;--ac: 276 100% 14.196%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;--p: 344.78 100% 72.941%;--s: 195.12 80.392% 70%;--a: 276 74.324% 70.98%;--n: 57.273 100% 12.941%;--nc: 56 100% 50%;--b1: 56 100% 50%;--rounded-box: 0;--rounded-btn: 0;--rounded-badge: 0;--tab-radius: 0}[data-theme=valentine]{color-scheme:light;--pf: 353.23 73.81% 53.647%;--sf: 254.12 86.441% 61.49%;--af: 181.41 55.556% 56%;--nf: 336 42.857% 38.431%;--b2: 318.46 46.429% 80.118%;--b3: 318.46 46.429% 72.106%;--pc: 353.23 100% 13.412%;--sc: 254.12 100% 15.373%;--ac: 181.41 100% 14%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 353.23 73.81% 67.059%;--s: 254.12 86.441% 76.863%;--a: 181.41 55.556% 70%;--n: 336 42.857% 48.039%;--nc: 318.46 46.429% 89.02%;--b1: 318.46 46.429% 89.02%;--bc: 343.64 38.462% 28.039%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%;--rounded-btn: 1.9rem}[data-theme=halloween]{color-scheme:dark;--pf: 31.927 89.344% 41.725%;--sf: 271.22 45.794% 33.569%;--af: 91.071 100% 26.353%;--nf: 180 3.5714% 8.7843%;--b2: 0 0% 11.647%;--b3: 0 0% 10.482%;--bc: 0 0% 82.588%;--sc: 271.22 100% 88.392%;--ac: 91.071 100% 6.5882%;--nc: 180 4.8458% 82.196%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 31.927 89.344% 52.157%;--pc: 180 7.3171% 8.0392%;--s: 271.22 45.794% 41.961%;--a: 91.071 100% 32.941%;--n: 180 3.5714% 10.98%;--b1: 0 0% 12.941%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%}[data-theme=garden]{color-scheme:light;--pf: 138.86 15.982% 34.353%;--sf: 96.923 37.143% 74.51%;--af: 0 67.742% 75.137%;--nf: 0 3.9106% 28.078%;--b2: 0 4.3478% 81.882%;--b3: 0 4.3478% 73.694%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 138.86 100% 88.588%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 138.86 15.982% 42.941%;--s: 96.923 37.143% 93.137%;--sc: 96 32.468% 15.098%;--a: 0 67.742% 93.922%;--ac: 0 21.951% 16.078%;--n: 0 3.9106% 35.098%;--nc: 0 4.3478% 90.98%;--b1: 0 4.3478% 90.98%;--bc: 0 3.2258% 6.0784%}[data-theme=forest]{color-scheme:dark;--pf: 141.04 71.963% 33.569%;--sf: 140.98 74.694% 38.431%;--af: 35.148 68.98% 41.569%;--nf: 0 9.6774% 4.8627%;--b2: 0 12.195% 7.2353%;--b3: 0 12.195% 6.5118%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 0 11.727% 81.608%;--sc: 140.98 100% 9.6078%;--ac: 35.148 100% 10.392%;--nc: 0 6.8894% 81.216%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 141.04 71.963% 41.961%;--pc: 140.66 100% 88.039%;--s: 140.98 74.694% 48.039%;--a: 35.148 68.98% 51.961%;--n: 0 9.6774% 6.0784%;--b1: 0 12.195% 8.0392%;--rounded-btn: 1.9rem}[data-theme=aqua]{color-scheme:dark;--pf: 181.79 92.857% 39.529%;--sf: 274.41 30.909% 45.49%;--af: 47.059 100% 64%;--nf: 205.4 53.725% 40%;--b2: 218.61 52.511% 38.647%;--b3: 218.61 52.511% 34.782%;--bc: 218.61 100% 88.588%;--sc: 274.41 100% 91.373%;--ac: 47.059 100% 16%;--nc: 205.4 100% 90%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 181.79 92.857% 49.412%;--pc: 181.41 100% 16.667%;--s: 274.41 30.909% 56.863%;--a: 47.059 100% 80%;--n: 205.4 53.725% 50%;--b1: 218.61 52.511% 42.941%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%}[data-theme=lofi]{color-scheme:light;--pf: 0 0% 4.0784%;--sf: 0 1.9608% 8%;--af: 0 0% 11.922%;--nf: 0 0% 0%;--btn-text-case: uppercase;--border-btn: 1px;--tab-border: 1px;--p: 0 0% 5.098%;--pc: 0 0% 100%;--s: 0 1.9608% 10%;--sc: 0 0% 100%;--a: 0 0% 14.902%;--ac: 0 0% 100%;--n: 0 0% 0%;--nc: 0 0% 100%;--b1: 0 0% 100%;--b2: 0 0% 94.902%;--b3: 0 1.9608% 90%;--bc: 0 0% 0%;--in: 212.35 100% 47.647%;--inc: 0 0% 100%;--su: 136.84 72.152% 46.471%;--suc: 0 0% 100%;--wa: 4.5614 100% 66.471%;--wac: 0 0% 100%;--er: 325.05 77.6% 49.02%;--erc: 0 0% 100%;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1;--tab-radius: 0}[data-theme=pastel]{color-scheme:light;--pf: 283.64 21.569% 64%;--sf: 351.63 70.492% 70.431%;--af: 158.49 54.639% 64.784%;--nf: 198.62 43.719% 48.784%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 0 0% 20%;--pc: 283.64 59.314% 16%;--sc: 351.63 100% 17.608%;--ac: 158.49 100% 16.196%;--nc: 198.62 100% 12.196%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 283.64 21.569% 80%;--s: 351.63 70.492% 88.039%;--a: 158.49 54.639% 80.98%;--n: 198.62 43.719% 60.98%;--b1: 0 0% 100%;--b2: 210 20% 98.039%;--b3: 216 12.195% 83.922%;--rounded-btn: 1.9rem}[data-theme=fantasy]{color-scheme:light;--pf: 296.04 82.813% 20.078%;--sf: 200 100% 29.647%;--af: 30.894 94.378% 40.941%;--nf: 215 27.907% 13.49%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 296.04 100% 85.02%;--sc: 200 100% 87.412%;--ac: 30.894 100% 10.235%;--nc: 215 62.264% 83.373%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 296.04 82.813% 25.098%;--s: 200 100% 37.059%;--a: 30.894 94.378% 51.176%;--n: 215 27.907% 16.863%;--b1: 0 0% 100%;--bc: 215 27.907% 16.863%}[data-theme=wireframe]{color-scheme:light;--pf: 0 0% 57.725%;--sf: 0 0% 57.725%;--af: 0 0% 57.725%;--nf: 0 0% 73.725%;--bc: 0 0% 20%;--pc: 0 0% 14.431%;--sc: 0 0% 14.431%;--ac: 0 0% 14.431%;--nc: 0 0% 18.431%;--inc: 240 100% 90%;--suc: 120 100% 85.02%;--wac: 60 100% 10%;--erc: 0 100% 90%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;font-family:Chalkboard,comic sans ms,sanssecondaryerif;--p: 0 0% 72.157%;--s: 0 0% 72.157%;--a: 0 0% 72.157%;--n: 0 0% 92.157%;--b1: 0 0% 100%;--b2: 0 0% 93.333%;--b3: 0 0% 86.667%;--in: 240 100% 50%;--su: 120 100% 25.098%;--wa: 60 30.196% 50%;--er: 0 100% 50%;--rounded-box: .2rem;--rounded-btn: .2rem;--rounded-badge: .2rem;--tab-radius: .2rem}[data-theme=black]{color-scheme:dark;--pf: 0 1.9608% 16%;--sf: 0 1.9608% 16%;--af: 0 1.9608% 16%;--bc: 0 0% 80%;--pc: 0 5.3922% 84%;--sc: 0 5.3922% 84%;--ac: 0 5.3922% 84%;--nc: 0 2.5404% 83.02%;--inc: 240 100% 90%;--suc: 120 100% 85.02%;--wac: 60 100% 10%;--erc: 0 100% 90%;--border-btn: 1px;--tab-border: 1px;--p: 0 1.9608% 20%;--s: 0 1.9608% 20%;--a: 0 1.9608% 20%;--b1: 0 0% 0%;--b2: 0 0% 5.098%;--b3: 0 1.9608% 10%;--n: 0 1.2987% 15.098%;--nf: 0 1.9608% 20%;--in: 240 100% 50%;--su: 120 100% 25.098%;--wa: 60 100% 50%;--er: 0 100% 50%;--rounded-box: 0;--rounded-btn: 0;--rounded-badge: 0;--animation-btn: 0;--animation-input: 0;--btn-text-case: lowercase;--btn-focus-scale: 1;--tab-radius: 0}[data-theme=luxury]{color-scheme:dark;--pf: 0 0% 80%;--sf: 218.4 54.348% 14.431%;--af: 318.62 21.805% 20.863%;--nf: 270 4.3478% 7.2157%;--pc: 0 0% 20%;--sc: 218.4 100% 83.608%;--ac: 318.62 84.615% 85.216%;--inc: 202.35 100% 14%;--suc: 89.007 100% 10.392%;--wac: 53.906 100% 12.706%;--erc: 0 100% 14.353%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 0 0% 100%;--s: 218.4 54.348% 18.039%;--a: 318.62 21.805% 26.078%;--n: 270 4.3478% 9.0196%;--nc: 37.083 67.29% 58.039%;--b1: 240 10% 3.9216%;--b2: 270 4.3478% 9.0196%;--b3: 270 2.1739% 18.039%;--bc: 37.083 67.29% 58.039%;--in: 202.35 100% 70%;--su: 89.007 61.633% 51.961%;--wa: 53.906 68.817% 63.529%;--er: 0 100% 71.765%}[data-theme=dracula]{color-scheme:dark;--pf: 325.52 100% 58.98%;--sf: 264.71 89.474% 62.118%;--af: 31.02 100% 56.941%;--nf: 229.57 15.033% 24%;--b2: 231.43 14.894% 16.588%;--b3: 231.43 14.894% 14.929%;--pc: 325.52 100% 14.745%;--sc: 264.71 100% 15.529%;--ac: 31.02 100% 14.235%;--nc: 229.57 70.868% 86%;--inc: 190.53 100% 15.373%;--suc: 135.18 100% 12.941%;--wac: 64.909 100% 15.294%;--erc: 0 100% 93.333%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 325.52 100% 73.725%;--s: 264.71 89.474% 77.647%;--a: 31.02 100% 71.176%;--n: 229.57 15.033% 30%;--b1: 231.43 14.894% 18.431%;--bc: 60 30% 96.078%;--in: 190.53 96.61% 76.863%;--su: 135.18 94.444% 64.706%;--wa: 64.909 91.667% 76.471%;--er: 0 100% 66.667%}[data-theme=cmyk]{color-scheme:light;--pf: 202.72 83.251% 48.157%;--sf: 335.25 77.67% 47.686%;--af: 56.195 100% 47.843%;--nf: 0 0% 8.1569%;--b2: 0 0% 90%;--b3: 0 0% 81%;--bc: 0 0% 20%;--pc: 202.72 100% 12.039%;--sc: 335.25 100% 91.922%;--ac: 56.195 100% 11.961%;--nc: 0 0% 82.039%;--inc: 192.2 100% 10.431%;--suc: 291.06 100% 87.608%;--wac: 25.027 100% 11.333%;--erc: 3.956 100% 91.137%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 202.72 83.251% 60.196%;--s: 335.25 77.67% 59.608%;--a: 56.195 100% 59.804%;--n: 0 0% 10.196%;--b1: 0 0% 100%;--in: 192.2 48.361% 52.157%;--su: 291.06 48.454% 38.039%;--wa: 25.027 84.615% 56.667%;--er: 3.956 80.531% 55.686%}[data-theme=autumn]{color-scheme:light;--pf: 344.23 95.804% 22.431%;--sf: .44444 63.38% 46.588%;--af: 27.477 56.021% 50.039%;--nf: 22.105 17.117% 34.824%;--b2: 0 0% 85.059%;--b3: 0 0% 76.553%;--bc: 0 0% 18.902%;--pc: 344.23 100% 85.608%;--sc: .44444 100% 91.647%;--ac: 27.477 100% 12.51%;--nc: 22.105 100% 88.706%;--inc: 186.94 100% 9.9216%;--suc: 164.59 100% 8.6275%;--wac: 30.141 100% 9.9216%;--erc: 353.6 100% 89.765%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 344.23 95.804% 28.039%;--s: .44444 63.38% 58.235%;--a: 27.477 56.021% 62.549%;--n: 22.105 17.117% 43.529%;--b1: 0 0% 94.51%;--in: 186.94 47.826% 49.608%;--su: 164.59 33.636% 43.137%;--wa: 30.141 84.19% 49.608%;--er: 353.6 79.116% 48.824%}[data-theme=business]{color-scheme:dark;--pf: 210 64.103% 24.471%;--sf: 200 12.931% 43.608%;--af: 12.515 79.512% 47.843%;--nf: 212.73 13.58% 12.706%;--b2: 0 0% 11.294%;--b3: 0 0% 10.165%;--bc: 0 0% 82.51%;--pc: 210 100% 86.118%;--sc: 200 100% 10.902%;--ac: 12.515 100% 11.961%;--nc: 212.73 28.205% 83.176%;--inc: 199.15 100% 88.353%;--suc: 144 100% 11.137%;--wac: 39.231 100% 12.078%;--erc: 6.3415 100% 88.667%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 210 64.103% 30.588%;--s: 200 12.931% 54.51%;--a: 12.515 79.512% 59.804%;--n: 212.73 13.58% 15.882%;--b1: 0 0% 12.549%;--in: 199.15 100% 41.765%;--su: 144 30.973% 55.686%;--wa: 39.231 64.356% 60.392%;--er: 6.3415 55.656% 43.333%;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem}[data-theme=acid]{color-scheme:light;--pf: 302.59 100% 40%;--sf: 27.294 100% 40%;--af: 72 98.425% 40.157%;--nf: 238.42 43.182% 13.804%;--b2: 0 0% 88.235%;--b3: 0 0% 79.412%;--bc: 0 0% 19.608%;--pc: 302.59 100% 90%;--sc: 27.294 100% 10%;--ac: 72 100% 10.039%;--nc: 238.42 99.052% 83.451%;--inc: 209.85 100% 11.569%;--suc: 148.87 100% 11.608%;--wac: 52.574 100% 11.451%;--erc: .78261 100% 89.02%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 302.59 100% 50%;--s: 27.294 100% 50%;--a: 72 98.425% 50.196%;--n: 238.42 43.182% 17.255%;--b1: 0 0% 98.039%;--in: 209.85 91.628% 57.843%;--su: 148.87 49.533% 58.039%;--wa: 52.574 92.661% 57.255%;--er: .78261 100% 45.098%;--rounded-box: 1.25rem;--rounded-btn: 1rem;--rounded-badge: 1rem}[data-theme=lemonade]{color-scheme:light;--pf: 88.8 96.154% 24.471%;--sf: 60 80.952% 43.765%;--af: 62.553 79.661% 70.745%;--nf: 238.42 43.182% 13.804%;--b2: 0 0% 90%;--b3: 0 0% 81%;--bc: 0 0% 20%;--pc: 88.8 100% 86.118%;--sc: 60 100% 10.941%;--ac: 62.553 100% 17.686%;--nc: 238.42 99.052% 83.451%;--inc: 191.61 79.118% 16.902%;--suc: 74.458 100% 15.725%;--wac: 50.182 100% 15.059%;--erc: .98361 100% 16.588%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 88.8 96.154% 30.588%;--s: 60 80.952% 54.706%;--a: 62.553 79.661% 88.431%;--n: 238.42 43.182% 17.255%;--b1: 0 0% 100%;--in: 191.61 39.241% 84.51%;--su: 74.458 76.147% 78.627%;--wa: 50.182 87.302% 75.294%;--er: .98361 70.115% 82.941%}[data-theme=night]{color-scheme:dark;--pf: 198.44 93.204% 47.686%;--sf: 234.45 89.474% 59.137%;--af: 328.85 85.621% 56%;--b2: 222.22 47.368% 10.059%;--b3: 222.22 47.368% 9.0529%;--bc: 222.22 65.563% 82.235%;--pc: 198.44 100% 11.922%;--sc: 234.45 100% 14.784%;--ac: 328.85 100% 14%;--nc: 217.24 75.772% 83.49%;--inc: 198.46 100% 9.6078%;--suc: 172.46 100% 10.078%;--wac: 40.61 100% 12.706%;--erc: 350.94 100% 14.235%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 198.44 93.204% 59.608%;--s: 234.45 89.474% 73.922%;--a: 328.85 85.621% 70%;--n: 217.24 32.584% 17.451%;--nf: 217.06 30.357% 21.961%;--b1: 222.22 47.368% 11.176%;--in: 198.46 90.204% 48.039%;--su: 172.46 66.008% 50.392%;--wa: 40.61 88.172% 63.529%;--er: 350.94 94.558% 71.176%}[data-theme=coffee]{color-scheme:dark;--pf: 29.583 66.667% 46.118%;--sf: 182.4 24.752% 15.843%;--af: 194.19 74.4% 19.608%;--nf: 300 20% 4.7059%;--b2: 306 18.519% 9.5294%;--b3: 306 18.519% 8.5765%;--pc: 29.583 100% 11.529%;--sc: 182.4 67.237% 83.961%;--ac: 194.19 100% 84.902%;--nc: 300 13.75% 81.176%;--inc: 171.15 100% 13.451%;--suc: 92.5 100% 12.471%;--wac: 43.125 100% 13.725%;--erc: 9.7561 100% 14.941%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 29.583 66.667% 57.647%;--s: 182.4 24.752% 19.804%;--a: 194.19 74.4% 24.51%;--n: 300 20% 5.8824%;--b1: 306 18.519% 10.588%;--bc: 36.667 8.3333% 42.353%;--in: 171.15 36.527% 67.255%;--su: 92.5 25% 62.353%;--wa: 43.125 100% 68.627%;--er: 9.7561 95.349% 74.706%}[data-theme=winter]{color-scheme:light;--pf: 211.79 100% 40.627%;--sf: 246.92 47.273% 34.51%;--af: 310.41 49.388% 41.569%;--nf: 217.02 92.157% 8%;--pc: 211.79 100% 90.157%;--sc: 246.92 100% 88.627%;--ac: 310.41 100% 90.392%;--nc: 217.02 100% 82%;--inc: 191.54 100% 15.608%;--suc: 181.5 100% 13.255%;--wac: 32.308 100% 16.706%;--erc: 0 100% 14.431%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 211.79 100% 50.784%;--s: 246.92 47.273% 43.137%;--a: 310.41 49.388% 51.961%;--n: 217.02 92.157% 10%;--b1: 0 0% 100%;--b2: 216.92 100% 97.451%;--b3: 218.82 43.59% 92.353%;--bc: 214.29 30.061% 31.961%;--in: 191.54 92.857% 78.039%;--su: 181.5 46.512% 66.275%;--wa: 32.308 61.905% 83.529%;--er: 0 63.38% 72.157%}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.alert{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:space-between;gap:1rem;--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));padding:1rem;border-radius:var(--rounded-box, 1rem)}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}@media (min-width: 768px){.alert{flex-direction:row}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}}.alert>:where(*){display:flex;align-items:center;gap:.5rem}.avatar{position:relative;display:inline-flex}.avatar>div{display:block;aspect-ratio:1 / 1;overflow:hidden}.avatar img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover}.avatar.placeholder>div{display:flex;align-items:center;justify-content:center}.btn{display:inline-flex;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;border-color:transparent;border-color:hsl(var(--n) / var(--tw-border-opacity));text-align:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);border-radius:var(--rounded-btn, .5rem);height:3rem;padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;line-height:1em;min-height:3rem;font-weight:600;text-transform:uppercase;text-transform:var(--btn-text-case, uppercase);text-decoration-line:none;border-width:var(--border-btn, 1px);animation:button-pop var(--animation-btn, .25s) ease-out;--tw-border-opacity: 1;--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-disabled,.btn[disabled]{pointer-events:none}.btn-circle{height:3rem;width:3rem;border-radius:9999px;padding:0}.btn.loading,.btn.loading:hover{pointer-events:none}.btn.loading:before{margin-right:.5rem;height:1rem;width:1rem;border-radius:9999px;border-width:2px;animation:spin 2s linear infinite;content:"";border-top-color:transparent;border-left-color:transparent;border-bottom-color:currentColor;border-right-color:currentColor}@media (prefers-reduced-motion: reduce){.btn.loading:before{animation:spin 10s linear infinite}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-group>input[type=radio].btn{-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn-group>input[type=radio].btn:before{content:attr(data-title)}.card-actions{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.5rem}.checkbox{flex-shrink:0;--chkbg: var(--bc);--chkfg: var(--b1);height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2;border-radius:var(--rounded-btn, .5rem)}.divider{display:flex;flex-direction:row;align-items:center;align-self:stretch;margin-top:1rem;margin-bottom:1rem;height:1rem;white-space:nowrap}.divider:before,.divider:after{content:"";flex-grow:1;height:.125rem;width:100%}.dropdown{position:relative;display:inline-block}.dropdown>*:focus{outline:2px solid transparent;outline-offset:2px}.dropdown .dropdown-content{visibility:hidden;position:absolute;z-index:50;opacity:0;transform-origin:top;--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.dropdown-end .dropdown-content{right:0}.dropdown-left .dropdown-content{top:0;right:100%;bottom:auto;transform-origin:right}.dropdown-right .dropdown-content{left:100%;top:0;bottom:auto;transform-origin:left}.dropdown-bottom .dropdown-content{bottom:auto;top:100%;transform-origin:top}.dropdown-top .dropdown-content{bottom:100%;top:auto;transform-origin:bottom}.dropdown-end.dropdown-right .dropdown-content,.dropdown-end.dropdown-left .dropdown-content{bottom:0;top:auto}.dropdown.dropdown-open .dropdown-content,.dropdown.dropdown-hover:hover .dropdown-content,.dropdown:not(.dropdown-hover):focus .dropdown-content,.dropdown:not(.dropdown-hover):focus-within .dropdown-content{visibility:visible;opacity:1}.form-control{display:flex;flex-direction:column}.label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:space-between;padding:.5rem .25rem}.input{flex-shrink:1;height:3rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:2;line-height:1.5rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));border-radius:var(--rounded-btn, .5rem)}.input-group>.input{isolation:isolate}.input-group>*,.input-group>.input,.input-group>.textarea,.input-group>.select{border-radius:0}.link{cursor:pointer;text-decoration-line:underline}.mask{-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}.menu{display:flex;flex-direction:column;flex-wrap:wrap}.menu.horizontal{display:inline-flex;flex-direction:row}.menu.horizontal :where(li){flex-direction:row}:where(.menu li){position:relative;display:flex;flex-shrink:0;flex-direction:column;flex-wrap:wrap;align-items:stretch}.menu :where(li:not(.menu-title))>:where(*:not(ul)){display:flex}.menu :where(li:not(.disabled):not(.menu-title))>:where(*:not(ul)){cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;outline:2px solid transparent;outline-offset:2px}.menu>:where(li>*:not(ul):focus){outline:2px solid transparent;outline-offset:2px}.menu>:where(li.disabled>*:not(ul):focus){cursor:auto}.menu>:where(li) :where(ul){display:flex;flex-direction:column;align-items:stretch}.menu>:where(li)>:where(ul){position:absolute;display:none;top:initial;left:100%;border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li:hover)>:where(ul){display:flex}.menu>:where(li:focus)>:where(ul){display:flex}.modal{pointer-events:none;visibility:hidden;position:fixed;inset:0;display:flex;justify-content:center;opacity:0;z-index:999;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity));--tw-bg-opacity: .4;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:transform,opacity,visibility;overflow-y:hidden;overscroll-behavior:contain}:where(.modal){align-items:center}.modal-box{max-height:calc(100vh - 5em);--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));padding:1.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);width:91.666667%;max-width:32rem;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem);box-shadow:0 25px 50px -12px #00000040;overflow-y:auto;overscroll-behavior:contain}.modal-open,.modal:target,.modal-toggle:checked+.modal{pointer-events:auto;visibility:visible;opacity:1}.modal-action{display:flex;margin-top:1.5rem;justify-content:flex-end}.modal-toggle{position:fixed;height:0px;width:0px;-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0}.navbar{display:flex;align-items:center;padding:var(--navbar-padding, .5rem);min-height:4rem;width:100%}:where(.navbar>*){display:inline-flex;align-items:center}.radio{flex-shrink:0;--chkbg: var(--bc);height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:9999px;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2}.rating{position:relative;display:inline-flex}.rating :where(input){cursor:pointer;border-radius:0;animation:rating-pop var(--animation-input, .25s) ease-out;height:1.5rem;width:1.5rem;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: 1}.select{display:inline-flex;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;padding-left:1rem;padding-right:2.5rem;font-size:.875rem;line-height:1.25rem;line-height:2;min-height:3rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));font-weight:600;border-radius:var(--rounded-btn, .5rem);background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) calc(1px + 50%),calc(100% - 16px) calc(1px + 50%);background-size:4px 4px,4px 4px;background-repeat:no-repeat}.select[multiple]{height:auto}.\!stats{display:inline-grid!important;--tw-bg-opacity: 1 !important;background-color:hsl(var(--b1) / var(--tw-bg-opacity))!important;--tw-text-opacity: 1 !important;color:hsl(var(--bc) / var(--tw-text-opacity))!important;border-radius:var(--rounded-box, 1rem)!important}.stats{display:inline-grid;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity));border-radius:var(--rounded-box, 1rem)}:where(.\!stats){grid-auto-flow:column!important;overflow-x:auto!important}:where(.stats){grid-auto-flow:column;overflow-x:auto}.tabs{display:flex;flex-wrap:wrap;align-items:flex-end}.tab{position:relative;display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;text-align:center;height:2rem;font-size:.875rem;line-height:1.25rem;line-height:2;--tab-padding: 1rem;--tw-text-opacity: .5;--tab-color: hsla(var(--bc) / var(--tw-text-opacity, 1));--tab-bg: hsla(var(--b1) / var(--tw-bg-opacity, 1));--tab-border-color: hsla(var(--b3) / var(--tw-bg-opacity, 1));color:var(--tab-color);padding-left:var(--tab-padding, 1rem);padding-right:var(--tab-padding, 1rem)}.table{position:relative;text-align:left}.table th:first-child{position:sticky;left:0;z-index:11}.textarea{flex-shrink:1;min-height:3rem;padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem;line-height:2;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));border-radius:var(--rounded-btn, .5rem)}.avatar-group :where(.avatar){overflow:hidden;border-radius:9999px;border-width:4px;--tw-border-opacity: 1;border-color:hsl(var(--b1) / var(--tw-border-opacity))}.btm-nav>*:where(.active){border-top-width:2px;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}.btm-nav>*.disabled,.btm-nav>*.disabled:hover,.btm-nav>*[disabled],.btm-nav>*[disabled]:hover{pointer-events:none;--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .1;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.btm-nav>* .label{font-size:1rem;line-height:1.5rem}.btn:active:hover,.btn:active:focus{animation:none}.btn:not(.no-animation):active:hover,.btn:not(.no-animation):active:focus{transform:scale(var(--btn-focus-scale, .95))}.btn:hover,.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity))}.btn:focus-visible{outline:2px solid hsl(var(--nf));outline-offset:2px}.btn.glass:hover,.btn.glass.btn-active{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn.glass:focus-visible{outline:2px solid currentColor}.btn-disabled,.btn-disabled:hover,.btn[disabled],.btn[disabled]:hover{--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .2;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.btn.loading.btn-square:before,.btn.loading.btn-circle:before{margin-right:0}.btn.loading.btn-xl:before,.btn.loading.btn-lg:before{height:1.25rem;width:1.25rem}.btn.loading.btn-sm:before,.btn.loading.btn-xs:before{height:.75rem;width:.75rem}.btn-group>input[type=radio]:checked.btn,.btn-group>.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-group>input[type=radio]:checked.btn:focus-visible,.btn-group>.btn-active:focus-visible{outline:2px solid hsl(var(--p))}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale, .95))}40%{transform:scale(1.02)}to{transform:scale(1)}}.checkbox:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.checkbox:checked,.checkbox[checked=true],.checkbox[aria-checked=true]{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(-45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.checkbox:indeterminate{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(-90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(0deg,hsl(var(--chkbg)) 43%,hsl(var(--chkfg)) 43%,hsl(var(--chkfg)) 57%,hsl(var(--chkbg)) 57%)}.checkbox:disabled{cursor:not-allowed;border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));opacity:.2}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}[dir=rtl] .checkbox:checked,[dir=rtl] .checkbox[checked=true],[dir=rtl] .checkbox[aria-checked=true]{background-image:linear-gradient(45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(-45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.divider:before{background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}.divider:after{background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}.divider:not(:empty){gap:1rem}.dropdown.dropdown-open .dropdown-content,.dropdown.dropdown-hover:hover .dropdown-content,.dropdown:focus .dropdown-content,.dropdown:focus-within .dropdown-content{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.label-text{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.label a:hover{--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input-bordered{--tw-border-opacity: .2}.input:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.input-success{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity))}.input-success:focus{outline:2px solid hsl(var(--su))}.input-disabled,.input[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.input-disabled::-moz-placeholder,.input[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.input-disabled::placeholder,.input[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.link:focus{outline:2px solid transparent;outline-offset:2px}.link:focus-visible{outline:2px solid currentColor;outline-offset:2px}.mask-star-2{-webkit-mask-image:url("data:image/svg+xml,%3csvg width='192' height='180' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m96 153.044-58.779 26.243 7.02-63.513L.894 68.481l63.117-13.01L96 0l31.989 55.472 63.117 13.01-43.347 47.292 7.02 63.513z' fill-rule='evenodd'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg width='192' height='180' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m96 153.044-58.779 26.243 7.02-63.513L.894 68.481l63.117-13.01L96 0l31.989 55.472 63.117 13.01-43.347 47.292 7.02 63.513z' fill-rule='evenodd'/%3e%3c/svg%3e")}.menu.horizontal>li.bordered>a,.menu.horizontal>li.bordered>button,.menu.horizontal>li.bordered>span{border-left-width:0px;border-bottom-width:4px;--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.menu[class*=" px-"]:not(.menu[class*=" px-0"]) li>*,.menu[class^=px-]:not(.menu[class^=px-0]) li>*,.menu[class*=" p-"]:not(.menu[class*=" p-0"]) li>*,.menu[class^=p-]:not(.menu[class^=p-0]) li>*{border-radius:var(--rounded-btn, .5rem)}.menu :where(li.bordered>*){border-left-width:4px;--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.menu :where(li)>:where(*:not(ul)){gap:.75rem;padding:.75rem 1rem;color:currentColor}.menu :where(li:not(.menu-title):not(:empty))>:where(*:not(ul):focus),.menu :where(li:not(.menu-title):not(:empty))>:where(*:not(ul):hover){background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}.menu :where(li:not(.menu-title):not(:empty))>:where(:not(ul).active),.menu :where(li:not(.menu-title):not(:empty))>:where(*:not(ul):active){--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.menu :where(li:empty){margin:.5rem 1rem;height:1px;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}.menu li.disabled>*{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.menu li.disabled>*:hover{background-color:transparent}.menu li.hover-bordered a{border-left-width:4px;border-color:transparent}.menu li.hover-bordered a:hover{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.menu.compact li>a,.menu.compact li>span{padding-top:.5rem;padding-bottom:.5rem;font-size:.875rem;line-height:1.25rem}.menu .menu-title{font-size:.75rem;line-height:1rem;font-weight:700;opacity:.4}.menu .menu-title>*{padding-top:.25rem;padding-bottom:.25rem}.menu :where(li:not(.disabled))>:where(*:not(ul)){outline:2px solid transparent;outline-offset:2px;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.menu>:where(li:first-child){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li:first-child)>:where(:not(ul)){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li:last-child){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li:last-child)>:where(:not(ul)){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li:first-child:last-child){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li:first-child:last-child)>:where(:not(ul)){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li)>:where(ul) :where(li){width:100%;white-space:nowrap}.menu>:where(li)>:where(ul) :where(li) :where(ul){padding-left:1rem}.menu>:where(li)>:where(ul) :where(li)>:where(:not(ul)){width:100%;white-space:nowrap}.menu>:where(li)>:where(ul)>:where(li:first-child){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li)>:where(ul)>:where(li:first-child)>:where(:not(ul)){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li)>:where(ul)>:where(li:last-child){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li)>:where(ul)>:where(li:last-child)>:where(:not(ul)){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li)>:where(ul)>:where(li:first-child:last-child){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li)>:where(ul)>:where(li:first-child:last-child)>:where(:not(ul)){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.mockup-phone .display{overflow:hidden;border-radius:40px;margin-top:-25px}.modal-open .modal-box,.modal-toggle:checked+.modal .modal-box,.modal:target .modal-box{--tw-translate-y: 0px;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.modal-action>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}@keyframes progress-loading{50%{left:107%}}.radio:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.radio:checked,.radio[aria-checked=true]{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));animation:radiomark var(--animation-input, .2s) ease-in-out;box-shadow:0 0 0 4px hsl(var(--b1)) inset,0 0 0 4px hsl(var(--b1)) inset}.radio:disabled{cursor:not-allowed;opacity:.2}@keyframes radiomark{0%{box-shadow:0 0 0 12px hsl(var(--b1)) inset,0 0 0 12px hsl(var(--b1)) inset}50%{box-shadow:0 0 0 3px hsl(var(--b1)) inset,0 0 0 3px hsl(var(--b1)) inset}to{box-shadow:0 0 0 4px hsl(var(--b1)) inset,0 0 0 4px hsl(var(--b1)) inset}}.rating input{-moz-appearance:none;appearance:none;-webkit-appearance:none}.rating .rating-hidden{width:.5rem;background-color:transparent}.rating input:checked~input,.rating input[aria-checked=true]~input{--tw-bg-opacity: .2}.rating input:focus-visible{transition-property:transform;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);transform:translateY(-.125em)}.rating input:active:focus{animation:none;transform:translateY(-.125em)}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.select:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.select-success{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity))}.select-success:focus{outline:2px solid hsl(var(--su))}.select-disabled,.select[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.select-disabled::-moz-placeholder,.select[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.select-disabled::placeholder,.select[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.select-multiple,.select[multiple],.select[size].select:not([size="1"]){background-image:none;padding-right:1rem}[dir=rtl] .select{background-position:calc(0% + 12px) calc(1px + 50%),calc(0% + 16px) calc(1px + 50%)}:where(.\!stats)>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0 !important;border-right-width:calc(1px * var(--tw-divide-x-reverse))!important;border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))!important;--tw-divide-y-reverse: 0 !important;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)))!important;border-bottom-width:calc(0px * var(--tw-divide-y-reverse))!important}:where(.stats)>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)));--tw-divide-y-reverse: 0;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0px * var(--tw-divide-y-reverse))}.tab:hover{--tw-text-opacity: 1}.tab.tab-active:not(.tab-disabled):not([disabled]){border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 1;--tw-text-opacity: 1}.tab:focus{outline:2px solid transparent;outline-offset:2px}.tab:focus-visible{outline:2px solid currentColor;outline-offset:-3px}.tab:focus-visible.tab-lifted{border-bottom-right-radius:var(--tab-radius, .5rem);border-bottom-left-radius:var(--tab-radius, .5rem)}.tab-disabled,.tab-disabled:hover,.tab[disabled],.tab[disabled]:hover{cursor:not-allowed;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.tabs-boxed .tab{border-radius:var(--rounded-btn, .5rem)}.table :where(th,td){white-space:nowrap;padding:1rem;vertical-align:middle}.table tr.active th,.table tr.active td,.table tr.active:nth-child(2n) th,.table tr.active:nth-child(2n) td{--tw-bg-opacity: 1;background-color:hsl(var(--b3, var(--b2)) / var(--tw-bg-opacity))}.table tr.hover:hover th,.table tr.hover:hover td,.table tr.hover:nth-child(2n):hover th,.table tr.hover:nth-child(2n):hover td{--tw-bg-opacity: 1;background-color:hsl(var(--b3, var(--b2)) / var(--tw-bg-opacity))}.table:where(:not(.table-zebra)) :where(thead,tbody,tfoot) :where(tr:not(:last-child) :where(th,td)){border-bottom-width:1px;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity))}.table :where(thead,tfoot) :where(th,td){--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));font-size:.75rem;line-height:1rem;font-weight:700;text-transform:uppercase}.table :where(tbody th,tbody td){--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}:where(.table *:first-child) :where(*:first-child) :where(th,td):first-child{border-top-left-radius:var(--rounded-box, 1rem)}:where(.table *:first-child) :where(*:first-child) :where(th,td):last-child{border-top-right-radius:var(--rounded-box, 1rem)}:where(.table *:last-child) :where(*:last-child) :where(th,td):first-child{border-bottom-left-radius:var(--rounded-box, 1rem)}:where(.table *:last-child) :where(*:last-child) :where(th,td):last-child{border-bottom-right-radius:var(--rounded-box, 1rem)}.textarea:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.textarea-success{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity))}.textarea-success:focus{outline:2px solid hsl(var(--su))}.textarea-disabled,.textarea[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.textarea-disabled::-moz-placeholder,.textarea[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.textarea-disabled::placeholder,.textarea[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}.rounded-box{border-radius:var(--rounded-box, 1rem)}.artboard.phone{width:320px}.btm-nav-xs>*:where(.active){border-top-width:1px}.btm-nav-sm>*:where(.active){border-top-width:2px}.btm-nav-md>*:where(.active){border-top-width:2px}.btm-nav-lg>*:where(.active){border-top-width:4px}.btn-sm{height:2rem;padding-left:.75rem;padding-right:.75rem;min-height:2rem;font-size:.875rem}.btn-wide{width:16rem}.btn-square:where(.btn-sm){height:2rem;width:2rem;padding:0}.btn-circle:where(.btn-xs){height:1.5rem;width:1.5rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-sm){height:2rem;width:2rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-md){height:3rem;width:3rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-lg){height:4rem;width:4rem;border-radius:9999px;padding:0}.divider-horizontal{flex-direction:column}.divider-horizontal:before{height:100%;width:.125rem}.divider-horizontal:after{height:100%;width:.125rem}.input-md{height:3rem;padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;line-height:2}.input-lg{height:4rem;padding-left:1.5rem;padding-right:1.5rem;font-size:1.125rem;line-height:1.75rem;line-height:2}.menu-horizontal{display:inline-flex;width:-moz-max-content;width:max-content;flex-direction:row}.menu-horizontal :where(li){flex-direction:row}.menu-horizontal>:where(li)>:where(ul){top:100%;left:initial}.modal-bottom{align-items:flex-end}.avatar.online:before{content:"";position:absolute;z-index:10;display:block;border-radius:9999px;--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity));width:15%;height:15%;top:7%;right:7%;box-shadow:0 0 0 2px hsl(var(--b1))}.avatar.offline:before{content:"";position:absolute;z-index:10;display:block;border-radius:9999px;--tw-bg-opacity: 1;background-color:hsl(var(--b3, var(--b2)) / var(--tw-bg-opacity));width:15%;height:15%;top:7%;right:7%;box-shadow:0 0 0 2px hsl(var(--b1))}.btn-group .btn:not(:first-child):not(:last-child){border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:0;border-end-end-radius:0}.btn-group .btn:first-child:not(:last-child){margin-top:-0px;margin-left:-1px;border-start-start-radius:var(--rounded-btn, .5rem);border-start-end-radius:0;border-end-start-radius:var(--rounded-btn, .5rem);border-end-end-radius:0}.btn-group .btn:last-child:not(:first-child){border-start-start-radius:0;border-start-end-radius:var(--rounded-btn, .5rem);border-end-start-radius:0;border-end-end-radius:var(--rounded-btn, .5rem)}.btn-group-horizontal .btn:not(:first-child):not(:last-child){border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:0;border-end-end-radius:0}.btn-group-horizontal .btn:first-child:not(:last-child){margin-top:-0px;margin-left:-1px;border-start-start-radius:var(--rounded-btn, .5rem);border-start-end-radius:0;border-end-start-radius:var(--rounded-btn, .5rem);border-end-end-radius:0}.btn-group-horizontal .btn:last-child:not(:first-child){border-start-start-radius:0;border-start-end-radius:var(--rounded-btn, .5rem);border-end-start-radius:0;border-end-end-radius:var(--rounded-btn, .5rem)}.btn-group-vertical .btn:first-child:not(:last-child){margin-top:-1px;margin-left:-0px;border-start-start-radius:var(--rounded-btn, .5rem);border-start-end-radius:var(--rounded-btn, .5rem);border-end-start-radius:0;border-end-end-radius:0}.btn-group-vertical .btn:last-child:not(:first-child){border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:var(--rounded-btn, .5rem);border-end-end-radius:var(--rounded-btn, .5rem)}.divider-horizontal{margin-top:0;margin-bottom:0;margin-left:1rem;margin-right:1rem;height:auto;width:1rem}.menu-horizontal :where(li.bordered>*){border-left-width:0px;border-bottom-width:4px}.menu-horizontal>:where(li:first-child){border-top-left-radius:inherit;border-top-right-radius:unset;border-bottom-right-radius:unset;border-bottom-left-radius:inherit}.menu-horizontal>:where(li:first-child)>:where(*:not(ul)){border-top-left-radius:inherit;border-top-right-radius:unset;border-bottom-right-radius:unset;border-bottom-left-radius:inherit}.menu-horizontal>:where(li:last-child){border-top-left-radius:unset;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:unset}.menu-horizontal>:where(li:last-child)>:where(*:not(ul)){border-top-left-radius:unset;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:unset}.modal-bottom :where(.modal-box){width:100%;max-width:none;--tw-translate-y: 2.5rem;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-right-radius:0;border-bottom-left-radius:0}.modal-middle :where(.modal-box){width:91.666667%;max-width:32rem;--tw-translate-y: 0px;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-left-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem)}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.right-0{right:0}.right-2{right:.5rem}.top-0{top:0}.top-2{top:.5rem}.z-10{z-index:10}.z-50{z-index:50}.float-right{float:right}.m-1{margin:.25rem}.m-5{margin:1.25rem}.mx-0{margin-left:0;margin-right:0}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-28{margin-left:7rem;margin-right:7rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-48{margin-bottom:12rem}.mb-5{margin-bottom:1.25rem}.ml-1{margin-left:.25rem}.ml-24{margin-left:6rem}.ml-px{margin-left:1px}.mr-0{margin-right:0}.mr-0\.5{margin-right:.125rem}.mr-5{margin-right:1.25rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-28{margin-top:7rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.flex{display:flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-16{height:4rem}.h-32{height:8rem}.h-44{height:11rem}.h-\[40vh\]{height:40vh}.h-\[70vh\]{height:70vh}.h-auto{height:auto}.h-full{height:100%}.h-max{height:-moz-max-content;height:max-content}.h-screen{height:100vh}.max-h-max{max-height:-moz-max-content;max-height:max-content}.min-h-\[490px\]{min-height:490px}.min-h-\[667px\]{min-height:667px}.w-1\/2{width:50%}.w-1\/5{width:20%}.w-16{width:4rem}.w-2\/5{width:40%}.w-28{width:7rem}.w-32{width:8rem}.w-4\/5{width:80%}.w-52{width:13rem}.w-\[400px\]{width:400px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-grow{flex-grow:1}.basis-1\/4{flex-basis:25%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.content-around{align-content:space-around}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.gap-1{gap:.25rem}.gap-12{gap:3rem}.gap-28{gap:7rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.border-t-2{border-top-width:2px}.border-\[\#11D9C5\],.border-\[\#11d9c5\]{--tw-border-opacity: 1;border-color:rgb(17 217 197 / var(--tw-border-opacity))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-white\/50{border-color:#ffffff80}.border-zinc-600{--tw-border-opacity: 1;border-color:rgb(82 82 91 / var(--tw-border-opacity))}.bg-\[\#11D9C5\]{--tw-bg-opacity: 1;background-color:rgb(17 217 197 / var(--tw-bg-opacity))}.bg-base-100{--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-orange-400{--tw-bg-opacity: 1;background-color:rgb(251 146 60 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-zinc-200{--tw-bg-opacity: 1;background-color:rgb(228 228 231 / var(--tw-bg-opacity))}.bg-zinc-700{--tw-bg-opacity: 1;background-color:rgb(63 63 70 / var(--tw-bg-opacity))}.object-center{-o-object-position:center;object-position:center}.p-0{padding:0}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-10{padding-bottom:2.5rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.normal-case{text-transform:none}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-950{--tw-text-opacity: 1;color:rgb(3 7 18 / var(--tw-text-opacity))}.text-green-300{--tw-text-opacity: 1;color:rgb(134 239 172 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-lime-700{--tw-text-opacity: 1;color:rgb(77 124 15 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-gray-500\/50{--tw-shadow-color: rgb(107 114 128 / .5);--tw-shadow: var(--tw-shadow-colored)}body{transition:background-color .2s ease-in-out,color .2s ease-in-out;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}:is(.dark body){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-track{background:white}::-webkit-scrollbar-thumb{background:black}::-webkit-scrollbar-thumb:hover{background:black}@media (min-width: 640px){.sm\:modal-middle{align-items:center}.sm\:modal-middle :where(.modal-box){width:91.666667%;max-width:32rem;--tw-translate-y: 0px;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-left-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem)}}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.hover\:bg-slate-200:hover{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity))}.hover\:bg-slate-600:hover{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity))}.hover\:text-gray-200:hover{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.active\:bg-gray-200:active{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.active\:bg-gray-700:active{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.active\:bg-slate-500:active{--tw-bg-opacity: 1;background-color:rgb(100 116 139 / var(--tw-bg-opacity))}:is(.dark .dark\:border-green-400){--tw-border-opacity: 1;border-color:rgb(74 222 128 / var(--tw-border-opacity))}:is(.dark .dark\:border-zinc-600){--tw-border-opacity: 1;border-color:rgb(82 82 91 / var(--tw-border-opacity))}:is(.dark .dark\:bg-gray-300){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-700){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-500){--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}:is(.dark .dark\:text-black){--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-100){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-100){--tw-text-opacity: 1;color:rgb(220 252 231 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-300){--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}:is(.dark .dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-200){--tw-text-opacity: 1;color:rgb(254 240 138 / var(--tw-text-opacity))}:is(.dark .dark\:shadow-green-300\/30){--tw-shadow-color: rgb(134 239 172 / .3);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-green-300\/80){--tw-shadow-color: rgb(134 239 172 / .8);--tw-shadow: var(--tw-shadow-colored)} +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root,[data-theme]{background-color:hsla(var(--b1) / var(--tw-bg-opacity, 1));color:hsla(var(--bc) / var(--tw-text-opacity, 1))}html{-webkit-tap-highlight-color:transparent}:root{color-scheme:light;--pf: 258.89 94.378% 40.941%;--sf: 314 100% 37.647%;--af: 174 60% 40.784%;--nf: 219 14.085% 22.275%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 258.89 94.378% 51.176%;--pc: 0 0% 100%;--s: 314 100% 47.059%;--sc: 0 0% 100%;--a: 174 60% 50.98%;--ac: 174.71 43.59% 15.294%;--n: 219 14.085% 27.843%;--nc: 0 0% 100%;--b1: 0 0% 100%;--b2: 0 0% 94.902%;--b3: 180 1.9608% 90%;--bc: 215 27.907% 16.863%}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--pf: 262.35 80.315% 40.157%;--sf: 315.75 70.196% 40%;--af: 174.69 70.335% 32.784%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 262.35 80.315% 50.196%;--pc: 0 0% 100%;--s: 315.75 70.196% 50%;--sc: 0 0% 100%;--a: 174.69 70.335% 40.98%;--ac: 0 0% 100%;--n: 218.18 18.033% 11.961%;--nf: 222.86 17.073% 8.0392%;--nc: 220 13.376% 69.216%;--b1: 220 17.647% 20%;--b2: 220 17.241% 17.059%;--b3: 218.57 17.949% 15.294%;--bc: 220 13.376% 69.216%}}[data-theme=light]{color-scheme:light;--pf: 258.89 94.378% 40.941%;--sf: 314 100% 37.647%;--af: 174 60% 40.784%;--nf: 219 14.085% 22.275%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 258.89 94.378% 51.176%;--pc: 0 0% 100%;--s: 314 100% 47.059%;--sc: 0 0% 100%;--a: 174 60% 50.98%;--ac: 174.71 43.59% 15.294%;--n: 219 14.085% 27.843%;--nc: 0 0% 100%;--b1: 0 0% 100%;--b2: 0 0% 94.902%;--b3: 180 1.9608% 90%;--bc: 215 27.907% 16.863%}[data-theme=dark]{color-scheme:dark;--pf: 262.35 80.315% 40.157%;--sf: 315.75 70.196% 40%;--af: 174.69 70.335% 32.784%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 262.35 80.315% 50.196%;--pc: 0 0% 100%;--s: 315.75 70.196% 50%;--sc: 0 0% 100%;--a: 174.69 70.335% 40.98%;--ac: 0 0% 100%;--n: 218.18 18.033% 11.961%;--nf: 222.86 17.073% 8.0392%;--nc: 220 13.376% 69.216%;--b1: 220 17.647% 20%;--b2: 220 17.241% 17.059%;--b3: 218.57 17.949% 15.294%;--bc: 220 13.376% 69.216%}[data-theme=cupcake]{color-scheme:light;--pf: 183.03 47.368% 47.216%;--sf: 338.25 71.429% 62.431%;--af: 39 84.112% 46.431%;--nf: 280 46.479% 11.137%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 183.03 100% 11.804%;--sc: 338.25 100% 15.608%;--ac: 39 100% 11.608%;--nc: 280 82.688% 82.784%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--p: 183.03 47.368% 59.02%;--s: 338.25 71.429% 78.039%;--a: 39 84.112% 58.039%;--n: 280 46.479% 13.922%;--b1: 24 33.333% 97.059%;--b2: 26.667 21.951% 91.961%;--b3: 22.5 14.286% 89.02%;--bc: 280 46.479% 13.922%;--rounded-btn: 1.9rem;--tab-border: 2px;--tab-radius: .5rem}[data-theme=bumblebee]{color-scheme:light;--pf: 41.124 74.167% 42.353%;--sf: 49.901 94.393% 46.431%;--af: 240 33.333% 11.294%;--nf: 240 33.333% 11.294%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 0 0% 20%;--ac: 240 60.274% 82.824%;--nc: 240 60.274% 82.824%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 41.124 74.167% 52.941%;--pc: 240 33.333% 14.118%;--s: 49.901 94.393% 58.039%;--sc: 240 33.333% 14.118%;--a: 240 33.333% 14.118%;--n: 240 33.333% 14.118%;--b1: 0 0% 100%}[data-theme=emerald]{color-scheme:light;--pf: 141.18 50% 48%;--sf: 218.88 96.078% 48%;--af: 9.8901 81.25% 44.863%;--nf: 219.23 20.312% 20.078%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--btn-text-case: uppercase;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 141.18 50% 60%;--pc: 151.11 28.421% 18.627%;--s: 218.88 96.078% 60%;--sc: 210 20% 98.039%;--a: 9.8901 81.25% 56.078%;--ac: 210 20% 98.039%;--n: 219.23 20.312% 25.098%;--nc: 210 20% 98.039%;--b1: 0 0% 100%;--bc: 219.23 20.312% 25.098%;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1}[data-theme=corporate]{color-scheme:light;--pf: 229.09 95.652% 51.137%;--sf: 214.91 26.316% 47.216%;--af: 154.2 49.02% 48%;--nf: 233.33 27.273% 10.353%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 229.09 100% 92.784%;--sc: 214.91 100% 11.804%;--ac: 154.2 100% 12%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--btn-text-case: uppercase;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 229.09 95.652% 63.922%;--s: 214.91 26.316% 59.02%;--a: 154.2 49.02% 60%;--n: 233.33 27.273% 12.941%;--nc: 210 38.462% 94.902%;--b1: 0 0% 100%;--bc: 233.33 27.273% 12.941%;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1}[data-theme=synthwave]{color-scheme:dark;--pf: 320.73 69.62% 55.216%;--sf: 197.03 86.592% 51.922%;--af: 48 89.041% 45.647%;--nf: 253.22 60.825% 15.216%;--b2: 253.85 59.091% 23.294%;--b3: 253.85 59.091% 20.965%;--pc: 320.73 100% 13.804%;--sc: 197.03 100% 12.98%;--ac: 48 100% 11.412%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 320.73 69.62% 69.02%;--s: 197.03 86.592% 64.902%;--a: 48 89.041% 57.059%;--n: 253.22 60.825% 19.02%;--nc: 260 60% 98.039%;--b1: 253.85 59.091% 25.882%;--bc: 260 60% 98.039%;--in: 199.13 86.957% 63.922%;--inc: 257.45 63.218% 17.059%;--su: 168.1 74.233% 68.039%;--suc: 257.45 63.218% 17.059%;--wa: 48 89.041% 57.059%;--wac: 257.45 63.218% 17.059%;--er: 351.85 73.636% 56.863%;--erc: 260 60% 98.039%}[data-theme=retro]{color-scheme:light;--pf: 2.6667 73.77% 60.863%;--sf: 144.62 27.273% 57.569%;--af: 49.024 67.213% 60.863%;--nf: 41.667 16.822% 33.569%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 2.6667 73.77% 76.078%;--pc: 345 5.2632% 14.902%;--s: 144.62 27.273% 71.961%;--sc: 345 5.2632% 14.902%;--a: 49.024 67.213% 76.078%;--ac: 345 5.2632% 14.902%;--n: 41.667 16.822% 41.961%;--nc: 45 47.059% 80%;--b1: 45 47.059% 80%;--b2: 45.283 37.063% 71.961%;--b3: 42.188 35.955% 65.098%;--bc: 345 5.2632% 14.902%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%;--rounded-box: .4rem;--rounded-btn: .4rem;--rounded-badge: .4rem}[data-theme=cyberpunk]{color-scheme:light;--pf: 344.78 100% 58.353%;--sf: 195.12 80.392% 56%;--af: 276 74.324% 56.784%;--nf: 57.273 100% 10.353%;--b2: 56 100% 45%;--b3: 56 100% 40.5%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 56 100% 10%;--pc: 344.78 100% 14.588%;--sc: 195.12 100% 14%;--ac: 276 100% 14.196%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;--p: 344.78 100% 72.941%;--s: 195.12 80.392% 70%;--a: 276 74.324% 70.98%;--n: 57.273 100% 12.941%;--nc: 56 100% 50%;--b1: 56 100% 50%;--rounded-box: 0;--rounded-btn: 0;--rounded-badge: 0;--tab-radius: 0}[data-theme=valentine]{color-scheme:light;--pf: 353.23 73.81% 53.647%;--sf: 254.12 86.441% 61.49%;--af: 181.41 55.556% 56%;--nf: 336 42.857% 38.431%;--b2: 318.46 46.429% 80.118%;--b3: 318.46 46.429% 72.106%;--pc: 353.23 100% 13.412%;--sc: 254.12 100% 15.373%;--ac: 181.41 100% 14%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 353.23 73.81% 67.059%;--s: 254.12 86.441% 76.863%;--a: 181.41 55.556% 70%;--n: 336 42.857% 48.039%;--nc: 318.46 46.429% 89.02%;--b1: 318.46 46.429% 89.02%;--bc: 343.64 38.462% 28.039%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%;--rounded-btn: 1.9rem}[data-theme=halloween]{color-scheme:dark;--pf: 31.927 89.344% 41.725%;--sf: 271.22 45.794% 33.569%;--af: 91.071 100% 26.353%;--nf: 180 3.5714% 8.7843%;--b2: 0 0% 11.647%;--b3: 0 0% 10.482%;--bc: 0 0% 82.588%;--sc: 271.22 100% 88.392%;--ac: 91.071 100% 6.5882%;--nc: 180 4.8458% 82.196%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 31.927 89.344% 52.157%;--pc: 180 7.3171% 8.0392%;--s: 271.22 45.794% 41.961%;--a: 91.071 100% 32.941%;--n: 180 3.5714% 10.98%;--b1: 0 0% 12.941%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%}[data-theme=garden]{color-scheme:light;--pf: 138.86 15.982% 34.353%;--sf: 96.923 37.143% 74.51%;--af: 0 67.742% 75.137%;--nf: 0 3.9106% 28.078%;--b2: 0 4.3478% 81.882%;--b3: 0 4.3478% 73.694%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 138.86 100% 88.588%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 138.86 15.982% 42.941%;--s: 96.923 37.143% 93.137%;--sc: 96 32.468% 15.098%;--a: 0 67.742% 93.922%;--ac: 0 21.951% 16.078%;--n: 0 3.9106% 35.098%;--nc: 0 4.3478% 90.98%;--b1: 0 4.3478% 90.98%;--bc: 0 3.2258% 6.0784%}[data-theme=forest]{color-scheme:dark;--pf: 141.04 71.963% 33.569%;--sf: 140.98 74.694% 38.431%;--af: 35.148 68.98% 41.569%;--nf: 0 9.6774% 4.8627%;--b2: 0 12.195% 7.2353%;--b3: 0 12.195% 6.5118%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 0 11.727% 81.608%;--sc: 140.98 100% 9.6078%;--ac: 35.148 100% 10.392%;--nc: 0 6.8894% 81.216%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 141.04 71.963% 41.961%;--pc: 140.66 100% 88.039%;--s: 140.98 74.694% 48.039%;--a: 35.148 68.98% 51.961%;--n: 0 9.6774% 6.0784%;--b1: 0 12.195% 8.0392%;--rounded-btn: 1.9rem}[data-theme=aqua]{color-scheme:dark;--pf: 181.79 92.857% 39.529%;--sf: 274.41 30.909% 45.49%;--af: 47.059 100% 64%;--nf: 205.4 53.725% 40%;--b2: 218.61 52.511% 38.647%;--b3: 218.61 52.511% 34.782%;--bc: 218.61 100% 88.588%;--sc: 274.41 100% 91.373%;--ac: 47.059 100% 16%;--nc: 205.4 100% 90%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 181.79 92.857% 49.412%;--pc: 181.41 100% 16.667%;--s: 274.41 30.909% 56.863%;--a: 47.059 100% 80%;--n: 205.4 53.725% 50%;--b1: 218.61 52.511% 42.941%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%}[data-theme=lofi]{color-scheme:light;--pf: 0 0% 4.0784%;--sf: 0 1.9608% 8%;--af: 0 0% 11.922%;--nf: 0 0% 0%;--btn-text-case: uppercase;--border-btn: 1px;--tab-border: 1px;--p: 0 0% 5.098%;--pc: 0 0% 100%;--s: 0 1.9608% 10%;--sc: 0 0% 100%;--a: 0 0% 14.902%;--ac: 0 0% 100%;--n: 0 0% 0%;--nc: 0 0% 100%;--b1: 0 0% 100%;--b2: 0 0% 94.902%;--b3: 0 1.9608% 90%;--bc: 0 0% 0%;--in: 212.35 100% 47.647%;--inc: 0 0% 100%;--su: 136.84 72.152% 46.471%;--suc: 0 0% 100%;--wa: 4.5614 100% 66.471%;--wac: 0 0% 100%;--er: 325.05 77.6% 49.02%;--erc: 0 0% 100%;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1;--tab-radius: 0}[data-theme=pastel]{color-scheme:light;--pf: 283.64 21.569% 64%;--sf: 351.63 70.492% 70.431%;--af: 158.49 54.639% 64.784%;--nf: 198.62 43.719% 48.784%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 0 0% 20%;--pc: 283.64 59.314% 16%;--sc: 351.63 100% 17.608%;--ac: 158.49 100% 16.196%;--nc: 198.62 100% 12.196%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 283.64 21.569% 80%;--s: 351.63 70.492% 88.039%;--a: 158.49 54.639% 80.98%;--n: 198.62 43.719% 60.98%;--b1: 0 0% 100%;--b2: 210 20% 98.039%;--b3: 216 12.195% 83.922%;--rounded-btn: 1.9rem}[data-theme=fantasy]{color-scheme:light;--pf: 296.04 82.813% 20.078%;--sf: 200 100% 29.647%;--af: 30.894 94.378% 40.941%;--nf: 215 27.907% 13.49%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 296.04 100% 85.02%;--sc: 200 100% 87.412%;--ac: 30.894 100% 10.235%;--nc: 215 62.264% 83.373%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 296.04 82.813% 25.098%;--s: 200 100% 37.059%;--a: 30.894 94.378% 51.176%;--n: 215 27.907% 16.863%;--b1: 0 0% 100%;--bc: 215 27.907% 16.863%}[data-theme=wireframe]{color-scheme:light;--pf: 0 0% 57.725%;--sf: 0 0% 57.725%;--af: 0 0% 57.725%;--nf: 0 0% 73.725%;--bc: 0 0% 20%;--pc: 0 0% 14.431%;--sc: 0 0% 14.431%;--ac: 0 0% 14.431%;--nc: 0 0% 18.431%;--inc: 240 100% 90%;--suc: 120 100% 85.02%;--wac: 60 100% 10%;--erc: 0 100% 90%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;font-family:Chalkboard,comic sans ms,sanssecondaryerif;--p: 0 0% 72.157%;--s: 0 0% 72.157%;--a: 0 0% 72.157%;--n: 0 0% 92.157%;--b1: 0 0% 100%;--b2: 0 0% 93.333%;--b3: 0 0% 86.667%;--in: 240 100% 50%;--su: 120 100% 25.098%;--wa: 60 30.196% 50%;--er: 0 100% 50%;--rounded-box: .2rem;--rounded-btn: .2rem;--rounded-badge: .2rem;--tab-radius: .2rem}[data-theme=black]{color-scheme:dark;--pf: 0 1.9608% 16%;--sf: 0 1.9608% 16%;--af: 0 1.9608% 16%;--bc: 0 0% 80%;--pc: 0 5.3922% 84%;--sc: 0 5.3922% 84%;--ac: 0 5.3922% 84%;--nc: 0 2.5404% 83.02%;--inc: 240 100% 90%;--suc: 120 100% 85.02%;--wac: 60 100% 10%;--erc: 0 100% 90%;--border-btn: 1px;--tab-border: 1px;--p: 0 1.9608% 20%;--s: 0 1.9608% 20%;--a: 0 1.9608% 20%;--b1: 0 0% 0%;--b2: 0 0% 5.098%;--b3: 0 1.9608% 10%;--n: 0 1.2987% 15.098%;--nf: 0 1.9608% 20%;--in: 240 100% 50%;--su: 120 100% 25.098%;--wa: 60 100% 50%;--er: 0 100% 50%;--rounded-box: 0;--rounded-btn: 0;--rounded-badge: 0;--animation-btn: 0;--animation-input: 0;--btn-text-case: lowercase;--btn-focus-scale: 1;--tab-radius: 0}[data-theme=luxury]{color-scheme:dark;--pf: 0 0% 80%;--sf: 218.4 54.348% 14.431%;--af: 318.62 21.805% 20.863%;--nf: 270 4.3478% 7.2157%;--pc: 0 0% 20%;--sc: 218.4 100% 83.608%;--ac: 318.62 84.615% 85.216%;--inc: 202.35 100% 14%;--suc: 89.007 100% 10.392%;--wac: 53.906 100% 12.706%;--erc: 0 100% 14.353%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 0 0% 100%;--s: 218.4 54.348% 18.039%;--a: 318.62 21.805% 26.078%;--n: 270 4.3478% 9.0196%;--nc: 37.083 67.29% 58.039%;--b1: 240 10% 3.9216%;--b2: 270 4.3478% 9.0196%;--b3: 270 2.1739% 18.039%;--bc: 37.083 67.29% 58.039%;--in: 202.35 100% 70%;--su: 89.007 61.633% 51.961%;--wa: 53.906 68.817% 63.529%;--er: 0 100% 71.765%}[data-theme=dracula]{color-scheme:dark;--pf: 325.52 100% 58.98%;--sf: 264.71 89.474% 62.118%;--af: 31.02 100% 56.941%;--nf: 229.57 15.033% 24%;--b2: 231.43 14.894% 16.588%;--b3: 231.43 14.894% 14.929%;--pc: 325.52 100% 14.745%;--sc: 264.71 100% 15.529%;--ac: 31.02 100% 14.235%;--nc: 229.57 70.868% 86%;--inc: 190.53 100% 15.373%;--suc: 135.18 100% 12.941%;--wac: 64.909 100% 15.294%;--erc: 0 100% 93.333%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 325.52 100% 73.725%;--s: 264.71 89.474% 77.647%;--a: 31.02 100% 71.176%;--n: 229.57 15.033% 30%;--b1: 231.43 14.894% 18.431%;--bc: 60 30% 96.078%;--in: 190.53 96.61% 76.863%;--su: 135.18 94.444% 64.706%;--wa: 64.909 91.667% 76.471%;--er: 0 100% 66.667%}[data-theme=cmyk]{color-scheme:light;--pf: 202.72 83.251% 48.157%;--sf: 335.25 77.67% 47.686%;--af: 56.195 100% 47.843%;--nf: 0 0% 8.1569%;--b2: 0 0% 90%;--b3: 0 0% 81%;--bc: 0 0% 20%;--pc: 202.72 100% 12.039%;--sc: 335.25 100% 91.922%;--ac: 56.195 100% 11.961%;--nc: 0 0% 82.039%;--inc: 192.2 100% 10.431%;--suc: 291.06 100% 87.608%;--wac: 25.027 100% 11.333%;--erc: 3.956 100% 91.137%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 202.72 83.251% 60.196%;--s: 335.25 77.67% 59.608%;--a: 56.195 100% 59.804%;--n: 0 0% 10.196%;--b1: 0 0% 100%;--in: 192.2 48.361% 52.157%;--su: 291.06 48.454% 38.039%;--wa: 25.027 84.615% 56.667%;--er: 3.956 80.531% 55.686%}[data-theme=autumn]{color-scheme:light;--pf: 344.23 95.804% 22.431%;--sf: .44444 63.38% 46.588%;--af: 27.477 56.021% 50.039%;--nf: 22.105 17.117% 34.824%;--b2: 0 0% 85.059%;--b3: 0 0% 76.553%;--bc: 0 0% 18.902%;--pc: 344.23 100% 85.608%;--sc: .44444 100% 91.647%;--ac: 27.477 100% 12.51%;--nc: 22.105 100% 88.706%;--inc: 186.94 100% 9.9216%;--suc: 164.59 100% 8.6275%;--wac: 30.141 100% 9.9216%;--erc: 353.6 100% 89.765%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 344.23 95.804% 28.039%;--s: .44444 63.38% 58.235%;--a: 27.477 56.021% 62.549%;--n: 22.105 17.117% 43.529%;--b1: 0 0% 94.51%;--in: 186.94 47.826% 49.608%;--su: 164.59 33.636% 43.137%;--wa: 30.141 84.19% 49.608%;--er: 353.6 79.116% 48.824%}[data-theme=business]{color-scheme:dark;--pf: 210 64.103% 24.471%;--sf: 200 12.931% 43.608%;--af: 12.515 79.512% 47.843%;--nf: 212.73 13.58% 12.706%;--b2: 0 0% 11.294%;--b3: 0 0% 10.165%;--bc: 0 0% 82.51%;--pc: 210 100% 86.118%;--sc: 200 100% 10.902%;--ac: 12.515 100% 11.961%;--nc: 212.73 28.205% 83.176%;--inc: 199.15 100% 88.353%;--suc: 144 100% 11.137%;--wac: 39.231 100% 12.078%;--erc: 6.3415 100% 88.667%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 210 64.103% 30.588%;--s: 200 12.931% 54.51%;--a: 12.515 79.512% 59.804%;--n: 212.73 13.58% 15.882%;--b1: 0 0% 12.549%;--in: 199.15 100% 41.765%;--su: 144 30.973% 55.686%;--wa: 39.231 64.356% 60.392%;--er: 6.3415 55.656% 43.333%;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem}[data-theme=acid]{color-scheme:light;--pf: 302.59 100% 40%;--sf: 27.294 100% 40%;--af: 72 98.425% 40.157%;--nf: 238.42 43.182% 13.804%;--b2: 0 0% 88.235%;--b3: 0 0% 79.412%;--bc: 0 0% 19.608%;--pc: 302.59 100% 90%;--sc: 27.294 100% 10%;--ac: 72 100% 10.039%;--nc: 238.42 99.052% 83.451%;--inc: 209.85 100% 11.569%;--suc: 148.87 100% 11.608%;--wac: 52.574 100% 11.451%;--erc: .78261 100% 89.02%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 302.59 100% 50%;--s: 27.294 100% 50%;--a: 72 98.425% 50.196%;--n: 238.42 43.182% 17.255%;--b1: 0 0% 98.039%;--in: 209.85 91.628% 57.843%;--su: 148.87 49.533% 58.039%;--wa: 52.574 92.661% 57.255%;--er: .78261 100% 45.098%;--rounded-box: 1.25rem;--rounded-btn: 1rem;--rounded-badge: 1rem}[data-theme=lemonade]{color-scheme:light;--pf: 88.8 96.154% 24.471%;--sf: 60 80.952% 43.765%;--af: 62.553 79.661% 70.745%;--nf: 238.42 43.182% 13.804%;--b2: 0 0% 90%;--b3: 0 0% 81%;--bc: 0 0% 20%;--pc: 88.8 100% 86.118%;--sc: 60 100% 10.941%;--ac: 62.553 100% 17.686%;--nc: 238.42 99.052% 83.451%;--inc: 191.61 79.118% 16.902%;--suc: 74.458 100% 15.725%;--wac: 50.182 100% 15.059%;--erc: .98361 100% 16.588%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 88.8 96.154% 30.588%;--s: 60 80.952% 54.706%;--a: 62.553 79.661% 88.431%;--n: 238.42 43.182% 17.255%;--b1: 0 0% 100%;--in: 191.61 39.241% 84.51%;--su: 74.458 76.147% 78.627%;--wa: 50.182 87.302% 75.294%;--er: .98361 70.115% 82.941%}[data-theme=night]{color-scheme:dark;--pf: 198.44 93.204% 47.686%;--sf: 234.45 89.474% 59.137%;--af: 328.85 85.621% 56%;--b2: 222.22 47.368% 10.059%;--b3: 222.22 47.368% 9.0529%;--bc: 222.22 65.563% 82.235%;--pc: 198.44 100% 11.922%;--sc: 234.45 100% 14.784%;--ac: 328.85 100% 14%;--nc: 217.24 75.772% 83.49%;--inc: 198.46 100% 9.6078%;--suc: 172.46 100% 10.078%;--wac: 40.61 100% 12.706%;--erc: 350.94 100% 14.235%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 198.44 93.204% 59.608%;--s: 234.45 89.474% 73.922%;--a: 328.85 85.621% 70%;--n: 217.24 32.584% 17.451%;--nf: 217.06 30.357% 21.961%;--b1: 222.22 47.368% 11.176%;--in: 198.46 90.204% 48.039%;--su: 172.46 66.008% 50.392%;--wa: 40.61 88.172% 63.529%;--er: 350.94 94.558% 71.176%}[data-theme=coffee]{color-scheme:dark;--pf: 29.583 66.667% 46.118%;--sf: 182.4 24.752% 15.843%;--af: 194.19 74.4% 19.608%;--nf: 300 20% 4.7059%;--b2: 306 18.519% 9.5294%;--b3: 306 18.519% 8.5765%;--pc: 29.583 100% 11.529%;--sc: 182.4 67.237% 83.961%;--ac: 194.19 100% 84.902%;--nc: 300 13.75% 81.176%;--inc: 171.15 100% 13.451%;--suc: 92.5 100% 12.471%;--wac: 43.125 100% 13.725%;--erc: 9.7561 100% 14.941%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 29.583 66.667% 57.647%;--s: 182.4 24.752% 19.804%;--a: 194.19 74.4% 24.51%;--n: 300 20% 5.8824%;--b1: 306 18.519% 10.588%;--bc: 36.667 8.3333% 42.353%;--in: 171.15 36.527% 67.255%;--su: 92.5 25% 62.353%;--wa: 43.125 100% 68.627%;--er: 9.7561 95.349% 74.706%}[data-theme=winter]{color-scheme:light;--pf: 211.79 100% 40.627%;--sf: 246.92 47.273% 34.51%;--af: 310.41 49.388% 41.569%;--nf: 217.02 92.157% 8%;--pc: 211.79 100% 90.157%;--sc: 246.92 100% 88.627%;--ac: 310.41 100% 90.392%;--nc: 217.02 100% 82%;--inc: 191.54 100% 15.608%;--suc: 181.5 100% 13.255%;--wac: 32.308 100% 16.706%;--erc: 0 100% 14.431%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 211.79 100% 50.784%;--s: 246.92 47.273% 43.137%;--a: 310.41 49.388% 51.961%;--n: 217.02 92.157% 10%;--b1: 0 0% 100%;--b2: 216.92 100% 97.451%;--b3: 218.82 43.59% 92.353%;--bc: 214.29 30.061% 31.961%;--in: 191.54 92.857% 78.039%;--su: 181.5 46.512% 66.275%;--wa: 32.308 61.905% 83.529%;--er: 0 63.38% 72.157%}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.alert{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:space-between;gap:1rem;--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));padding:1rem;border-radius:var(--rounded-box, 1rem)}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}@media (min-width: 768px){.alert{flex-direction:row}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}}.alert>:where(*){display:flex;align-items:center;gap:.5rem}.avatar{position:relative;display:inline-flex}.avatar>div{display:block;aspect-ratio:1 / 1;overflow:hidden}.avatar img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover}.avatar.placeholder>div{display:flex;align-items:center;justify-content:center}.btn{display:inline-flex;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;border-color:transparent;border-color:hsl(var(--n) / var(--tw-border-opacity));text-align:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);border-radius:var(--rounded-btn, .5rem);height:3rem;padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;line-height:1em;min-height:3rem;font-weight:600;text-transform:uppercase;text-transform:var(--btn-text-case, uppercase);text-decoration-line:none;border-width:var(--border-btn, 1px);animation:button-pop var(--animation-btn, .25s) ease-out;--tw-border-opacity: 1;--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-disabled,.btn[disabled]{pointer-events:none}.btn-circle{height:3rem;width:3rem;border-radius:9999px;padding:0}.btn.loading,.btn.loading:hover{pointer-events:none}.btn.loading:before{margin-right:.5rem;height:1rem;width:1rem;border-radius:9999px;border-width:2px;animation:spin 2s linear infinite;content:"";border-top-color:transparent;border-left-color:transparent;border-bottom-color:currentColor;border-right-color:currentColor}@media (prefers-reduced-motion: reduce){.btn.loading:before{animation:spin 10s linear infinite}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-group>input[type=radio].btn{-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn-group>input[type=radio].btn:before{content:attr(data-title)}.card-actions{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.5rem}.checkbox{flex-shrink:0;--chkbg: var(--bc);--chkfg: var(--b1);height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2;border-radius:var(--rounded-btn, .5rem)}.divider{display:flex;flex-direction:row;align-items:center;align-self:stretch;margin-top:1rem;margin-bottom:1rem;height:1rem;white-space:nowrap}.divider:before,.divider:after{content:"";flex-grow:1;height:.125rem;width:100%}.dropdown{position:relative;display:inline-block}.dropdown>*:focus{outline:2px solid transparent;outline-offset:2px}.dropdown .dropdown-content{visibility:hidden;position:absolute;z-index:50;opacity:0;transform-origin:top;--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.dropdown-end .dropdown-content{right:0}.dropdown-left .dropdown-content{top:0;right:100%;bottom:auto;transform-origin:right}.dropdown-right .dropdown-content{left:100%;top:0;bottom:auto;transform-origin:left}.dropdown-bottom .dropdown-content{bottom:auto;top:100%;transform-origin:top}.dropdown-top .dropdown-content{bottom:100%;top:auto;transform-origin:bottom}.dropdown-end.dropdown-right .dropdown-content,.dropdown-end.dropdown-left .dropdown-content{bottom:0;top:auto}.dropdown.dropdown-open .dropdown-content,.dropdown.dropdown-hover:hover .dropdown-content,.dropdown:not(.dropdown-hover):focus .dropdown-content,.dropdown:not(.dropdown-hover):focus-within .dropdown-content{visibility:visible;opacity:1}.form-control{display:flex;flex-direction:column}.label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:space-between;padding:.5rem .25rem}.input{flex-shrink:1;height:3rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:2;line-height:1.5rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));border-radius:var(--rounded-btn, .5rem)}.input-group>.input{isolation:isolate}.input-group>*,.input-group>.input,.input-group>.textarea,.input-group>.select{border-radius:0}.link{cursor:pointer;text-decoration-line:underline}.mask{-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}.menu{display:flex;flex-direction:column;flex-wrap:wrap}.menu.horizontal{display:inline-flex;flex-direction:row}.menu.horizontal :where(li){flex-direction:row}:where(.menu li){position:relative;display:flex;flex-shrink:0;flex-direction:column;flex-wrap:wrap;align-items:stretch}.menu :where(li:not(.menu-title))>:where(*:not(ul)){display:flex}.menu :where(li:not(.disabled):not(.menu-title))>:where(*:not(ul)){cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;outline:2px solid transparent;outline-offset:2px}.menu>:where(li>*:not(ul):focus){outline:2px solid transparent;outline-offset:2px}.menu>:where(li.disabled>*:not(ul):focus){cursor:auto}.menu>:where(li) :where(ul){display:flex;flex-direction:column;align-items:stretch}.menu>:where(li)>:where(ul){position:absolute;display:none;top:initial;left:100%;border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li:hover)>:where(ul){display:flex}.menu>:where(li:focus)>:where(ul){display:flex}.modal{pointer-events:none;visibility:hidden;position:fixed;inset:0;display:flex;justify-content:center;opacity:0;z-index:999;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity));--tw-bg-opacity: .4;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:transform,opacity,visibility;overflow-y:hidden;overscroll-behavior:contain}:where(.modal){align-items:center}.modal-box{max-height:calc(100vh - 5em);--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));padding:1.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);width:91.666667%;max-width:32rem;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem);box-shadow:0 25px 50px -12px #00000040;overflow-y:auto;overscroll-behavior:contain}.modal-open,.modal:target,.modal-toggle:checked+.modal{pointer-events:auto;visibility:visible;opacity:1}.modal-action{display:flex;margin-top:1.5rem;justify-content:flex-end}.modal-toggle{position:fixed;height:0px;width:0px;-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0}.navbar{display:flex;align-items:center;padding:var(--navbar-padding, .5rem);min-height:4rem;width:100%}:where(.navbar>*){display:inline-flex;align-items:center}.radio{flex-shrink:0;--chkbg: var(--bc);height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:9999px;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2}.rating{position:relative;display:inline-flex}.rating :where(input){cursor:pointer;border-radius:0;animation:rating-pop var(--animation-input, .25s) ease-out;height:1.5rem;width:1.5rem;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: 1}.select{display:inline-flex;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;padding-left:1rem;padding-right:2.5rem;font-size:.875rem;line-height:1.25rem;line-height:2;min-height:3rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));font-weight:600;border-radius:var(--rounded-btn, .5rem);background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) calc(1px + 50%),calc(100% - 16px) calc(1px + 50%);background-size:4px 4px,4px 4px;background-repeat:no-repeat}.select[multiple]{height:auto}.\!stats{display:inline-grid!important;--tw-bg-opacity: 1 !important;background-color:hsl(var(--b1) / var(--tw-bg-opacity))!important;--tw-text-opacity: 1 !important;color:hsl(var(--bc) / var(--tw-text-opacity))!important;border-radius:var(--rounded-box, 1rem)!important}.stats{display:inline-grid;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity));border-radius:var(--rounded-box, 1rem)}:where(.\!stats){grid-auto-flow:column!important;overflow-x:auto!important}:where(.stats){grid-auto-flow:column;overflow-x:auto}.tabs{display:flex;flex-wrap:wrap;align-items:flex-end}.tab{position:relative;display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;text-align:center;height:2rem;font-size:.875rem;line-height:1.25rem;line-height:2;--tab-padding: 1rem;--tw-text-opacity: .5;--tab-color: hsla(var(--bc) / var(--tw-text-opacity, 1));--tab-bg: hsla(var(--b1) / var(--tw-bg-opacity, 1));--tab-border-color: hsla(var(--b3) / var(--tw-bg-opacity, 1));color:var(--tab-color);padding-left:var(--tab-padding, 1rem);padding-right:var(--tab-padding, 1rem)}.table{position:relative;text-align:left}.table th:first-child{position:sticky;left:0;z-index:11}.textarea{flex-shrink:1;min-height:3rem;padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem;line-height:2;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));border-radius:var(--rounded-btn, .5rem)}.avatar-group :where(.avatar){overflow:hidden;border-radius:9999px;border-width:4px;--tw-border-opacity: 1;border-color:hsl(var(--b1) / var(--tw-border-opacity))}.btm-nav>*:where(.active){border-top-width:2px;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}.btm-nav>*.disabled,.btm-nav>*.disabled:hover,.btm-nav>*[disabled],.btm-nav>*[disabled]:hover{pointer-events:none;--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .1;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.btm-nav>* .label{font-size:1rem;line-height:1.5rem}.btn:active:hover,.btn:active:focus{animation:none}.btn:not(.no-animation):active:hover,.btn:not(.no-animation):active:focus{transform:scale(var(--btn-focus-scale, .95))}.btn:hover,.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity))}.btn:focus-visible{outline:2px solid hsl(var(--nf));outline-offset:2px}.btn.glass:hover,.btn.glass.btn-active{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn.glass:focus-visible{outline:2px solid currentColor}.btn-disabled,.btn-disabled:hover,.btn[disabled],.btn[disabled]:hover{--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .2;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.btn.loading.btn-square:before,.btn.loading.btn-circle:before{margin-right:0}.btn.loading.btn-xl:before,.btn.loading.btn-lg:before{height:1.25rem;width:1.25rem}.btn.loading.btn-sm:before,.btn.loading.btn-xs:before{height:.75rem;width:.75rem}.btn-group>input[type=radio]:checked.btn,.btn-group>.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-group>input[type=radio]:checked.btn:focus-visible,.btn-group>.btn-active:focus-visible{outline:2px solid hsl(var(--p))}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale, .95))}40%{transform:scale(1.02)}to{transform:scale(1)}}.checkbox:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.checkbox:checked,.checkbox[checked=true],.checkbox[aria-checked=true]{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(-45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.checkbox:indeterminate{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(-90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(0deg,hsl(var(--chkbg)) 43%,hsl(var(--chkfg)) 43%,hsl(var(--chkfg)) 57%,hsl(var(--chkbg)) 57%)}.checkbox:disabled{cursor:not-allowed;border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));opacity:.2}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}[dir=rtl] .checkbox:checked,[dir=rtl] .checkbox[checked=true],[dir=rtl] .checkbox[aria-checked=true]{background-image:linear-gradient(45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(-45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.divider:before{background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}.divider:after{background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}.divider:not(:empty){gap:1rem}.dropdown.dropdown-open .dropdown-content,.dropdown.dropdown-hover:hover .dropdown-content,.dropdown:focus .dropdown-content,.dropdown:focus-within .dropdown-content{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.label-text{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.label a:hover{--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input-bordered{--tw-border-opacity: .2}.input:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.input-success{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity))}.input-success:focus{outline:2px solid hsl(var(--su))}.input-disabled,.input[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.input-disabled::-moz-placeholder,.input[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.input-disabled::placeholder,.input[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.link:focus{outline:2px solid transparent;outline-offset:2px}.link:focus-visible{outline:2px solid currentColor;outline-offset:2px}.mask-star-2{-webkit-mask-image:url("data:image/svg+xml,%3csvg width='192' height='180' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m96 153.044-58.779 26.243 7.02-63.513L.894 68.481l63.117-13.01L96 0l31.989 55.472 63.117 13.01-43.347 47.292 7.02 63.513z' fill-rule='evenodd'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg width='192' height='180' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='m96 153.044-58.779 26.243 7.02-63.513L.894 68.481l63.117-13.01L96 0l31.989 55.472 63.117 13.01-43.347 47.292 7.02 63.513z' fill-rule='evenodd'/%3e%3c/svg%3e")}.menu.horizontal>li.bordered>a,.menu.horizontal>li.bordered>button,.menu.horizontal>li.bordered>span{border-left-width:0px;border-bottom-width:4px;--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.menu[class*=" px-"]:not(.menu[class*=" px-0"]) li>*,.menu[class^=px-]:not(.menu[class^=px-0]) li>*,.menu[class*=" p-"]:not(.menu[class*=" p-0"]) li>*,.menu[class^=p-]:not(.menu[class^=p-0]) li>*{border-radius:var(--rounded-btn, .5rem)}.menu :where(li.bordered>*){border-left-width:4px;--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.menu :where(li)>:where(*:not(ul)){gap:.75rem;padding:.75rem 1rem;color:currentColor}.menu :where(li:not(.menu-title):not(:empty))>:where(*:not(ul):focus),.menu :where(li:not(.menu-title):not(:empty))>:where(*:not(ul):hover){background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}.menu :where(li:not(.menu-title):not(:empty))>:where(:not(ul).active),.menu :where(li:not(.menu-title):not(:empty))>:where(*:not(ul):active){--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.menu :where(li:empty){margin:.5rem 1rem;height:1px;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}.menu li.disabled>*{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.menu li.disabled>*:hover{background-color:transparent}.menu li.hover-bordered a{border-left-width:4px;border-color:transparent}.menu li.hover-bordered a:hover{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.menu.compact li>a,.menu.compact li>span{padding-top:.5rem;padding-bottom:.5rem;font-size:.875rem;line-height:1.25rem}.menu .menu-title{font-size:.75rem;line-height:1rem;font-weight:700;opacity:.4}.menu .menu-title>*{padding-top:.25rem;padding-bottom:.25rem}.menu :where(li:not(.disabled))>:where(*:not(ul)){outline:2px solid transparent;outline-offset:2px;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.menu>:where(li:first-child){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li:first-child)>:where(:not(ul)){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li:last-child){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li:last-child)>:where(:not(ul)){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li:first-child:last-child){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li:first-child:last-child)>:where(:not(ul)){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li)>:where(ul) :where(li){width:100%;white-space:nowrap}.menu>:where(li)>:where(ul) :where(li) :where(ul){padding-left:1rem}.menu>:where(li)>:where(ul) :where(li)>:where(:not(ul)){width:100%;white-space:nowrap}.menu>:where(li)>:where(ul)>:where(li:first-child){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li)>:where(ul)>:where(li:first-child)>:where(:not(ul)){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li)>:where(ul)>:where(li:last-child){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li)>:where(ul)>:where(li:last-child)>:where(:not(ul)){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li)>:where(ul)>:where(li:first-child:last-child){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li)>:where(ul)>:where(li:first-child:last-child)>:where(:not(ul)){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.mockup-phone .display{overflow:hidden;border-radius:40px;margin-top:-25px}.modal-open .modal-box,.modal-toggle:checked+.modal .modal-box,.modal:target .modal-box{--tw-translate-y: 0px;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.modal-action>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}@keyframes progress-loading{50%{left:107%}}.radio:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.radio:checked,.radio[aria-checked=true]{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));animation:radiomark var(--animation-input, .2s) ease-in-out;box-shadow:0 0 0 4px hsl(var(--b1)) inset,0 0 0 4px hsl(var(--b1)) inset}.radio:disabled{cursor:not-allowed;opacity:.2}@keyframes radiomark{0%{box-shadow:0 0 0 12px hsl(var(--b1)) inset,0 0 0 12px hsl(var(--b1)) inset}50%{box-shadow:0 0 0 3px hsl(var(--b1)) inset,0 0 0 3px hsl(var(--b1)) inset}to{box-shadow:0 0 0 4px hsl(var(--b1)) inset,0 0 0 4px hsl(var(--b1)) inset}}.rating input{-moz-appearance:none;appearance:none;-webkit-appearance:none}.rating .rating-hidden{width:.5rem;background-color:transparent}.rating input:checked~input,.rating input[aria-checked=true]~input{--tw-bg-opacity: .2}.rating input:focus-visible{transition-property:transform;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);transform:translateY(-.125em)}.rating input:active:focus{animation:none;transform:translateY(-.125em)}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.select:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.select-success{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity))}.select-success:focus{outline:2px solid hsl(var(--su))}.select-disabled,.select[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.select-disabled::-moz-placeholder,.select[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.select-disabled::placeholder,.select[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.select-multiple,.select[multiple],.select[size].select:not([size="1"]){background-image:none;padding-right:1rem}[dir=rtl] .select{background-position:calc(0% + 12px) calc(1px + 50%),calc(0% + 16px) calc(1px + 50%)}:where(.\!stats)>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0 !important;border-right-width:calc(1px * var(--tw-divide-x-reverse))!important;border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))!important;--tw-divide-y-reverse: 0 !important;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)))!important;border-bottom-width:calc(0px * var(--tw-divide-y-reverse))!important}:where(.stats)>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)));--tw-divide-y-reverse: 0;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0px * var(--tw-divide-y-reverse))}.tab:hover{--tw-text-opacity: 1}.tab.tab-active:not(.tab-disabled):not([disabled]){border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 1;--tw-text-opacity: 1}.tab:focus{outline:2px solid transparent;outline-offset:2px}.tab:focus-visible{outline:2px solid currentColor;outline-offset:-3px}.tab:focus-visible.tab-lifted{border-bottom-right-radius:var(--tab-radius, .5rem);border-bottom-left-radius:var(--tab-radius, .5rem)}.tab-disabled,.tab-disabled:hover,.tab[disabled],.tab[disabled]:hover{cursor:not-allowed;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.tabs-boxed .tab{border-radius:var(--rounded-btn, .5rem)}.table :where(th,td){white-space:nowrap;padding:1rem;vertical-align:middle}.table tr.active th,.table tr.active td,.table tr.active:nth-child(2n) th,.table tr.active:nth-child(2n) td{--tw-bg-opacity: 1;background-color:hsl(var(--b3, var(--b2)) / var(--tw-bg-opacity))}.table tr.hover:hover th,.table tr.hover:hover td,.table tr.hover:nth-child(2n):hover th,.table tr.hover:nth-child(2n):hover td{--tw-bg-opacity: 1;background-color:hsl(var(--b3, var(--b2)) / var(--tw-bg-opacity))}.table:where(:not(.table-zebra)) :where(thead,tbody,tfoot) :where(tr:not(:last-child) :where(th,td)){border-bottom-width:1px;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity))}.table :where(thead,tfoot) :where(th,td){--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));font-size:.75rem;line-height:1rem;font-weight:700;text-transform:uppercase}.table :where(tbody th,tbody td){--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}:where(.table *:first-child) :where(*:first-child) :where(th,td):first-child{border-top-left-radius:var(--rounded-box, 1rem)}:where(.table *:first-child) :where(*:first-child) :where(th,td):last-child{border-top-right-radius:var(--rounded-box, 1rem)}:where(.table *:last-child) :where(*:last-child) :where(th,td):first-child{border-bottom-left-radius:var(--rounded-box, 1rem)}:where(.table *:last-child) :where(*:last-child) :where(th,td):last-child{border-bottom-right-radius:var(--rounded-box, 1rem)}.textarea:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.textarea-success{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity))}.textarea-success:focus{outline:2px solid hsl(var(--su))}.textarea-disabled,.textarea[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.textarea-disabled::-moz-placeholder,.textarea[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.textarea-disabled::placeholder,.textarea[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}.rounded-box{border-radius:var(--rounded-box, 1rem)}.artboard.phone{width:320px}.btm-nav-xs>*:where(.active){border-top-width:1px}.btm-nav-sm>*:where(.active){border-top-width:2px}.btm-nav-md>*:where(.active){border-top-width:2px}.btm-nav-lg>*:where(.active){border-top-width:4px}.btn-sm{height:2rem;padding-left:.75rem;padding-right:.75rem;min-height:2rem;font-size:.875rem}.btn-wide{width:16rem}.btn-square:where(.btn-sm){height:2rem;width:2rem;padding:0}.btn-circle:where(.btn-xs){height:1.5rem;width:1.5rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-sm){height:2rem;width:2rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-md){height:3rem;width:3rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-lg){height:4rem;width:4rem;border-radius:9999px;padding:0}.divider-horizontal{flex-direction:column}.divider-horizontal:before{height:100%;width:.125rem}.divider-horizontal:after{height:100%;width:.125rem}.input-md{height:3rem;padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;line-height:2}.input-lg{height:4rem;padding-left:1.5rem;padding-right:1.5rem;font-size:1.125rem;line-height:1.75rem;line-height:2}.menu-horizontal{display:inline-flex;width:-moz-max-content;width:max-content;flex-direction:row}.menu-horizontal :where(li){flex-direction:row}.menu-horizontal>:where(li)>:where(ul){top:100%;left:initial}.modal-bottom{align-items:flex-end}.avatar.online:before{content:"";position:absolute;z-index:10;display:block;border-radius:9999px;--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity));width:15%;height:15%;top:7%;right:7%;box-shadow:0 0 0 2px hsl(var(--b1))}.avatar.offline:before{content:"";position:absolute;z-index:10;display:block;border-radius:9999px;--tw-bg-opacity: 1;background-color:hsl(var(--b3, var(--b2)) / var(--tw-bg-opacity));width:15%;height:15%;top:7%;right:7%;box-shadow:0 0 0 2px hsl(var(--b1))}.btn-group .btn:not(:first-child):not(:last-child){border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:0;border-end-end-radius:0}.btn-group .btn:first-child:not(:last-child){margin-top:-0px;margin-left:-1px;border-start-start-radius:var(--rounded-btn, .5rem);border-start-end-radius:0;border-end-start-radius:var(--rounded-btn, .5rem);border-end-end-radius:0}.btn-group .btn:last-child:not(:first-child){border-start-start-radius:0;border-start-end-radius:var(--rounded-btn, .5rem);border-end-start-radius:0;border-end-end-radius:var(--rounded-btn, .5rem)}.btn-group-horizontal .btn:not(:first-child):not(:last-child){border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:0;border-end-end-radius:0}.btn-group-horizontal .btn:first-child:not(:last-child){margin-top:-0px;margin-left:-1px;border-start-start-radius:var(--rounded-btn, .5rem);border-start-end-radius:0;border-end-start-radius:var(--rounded-btn, .5rem);border-end-end-radius:0}.btn-group-horizontal .btn:last-child:not(:first-child){border-start-start-radius:0;border-start-end-radius:var(--rounded-btn, .5rem);border-end-start-radius:0;border-end-end-radius:var(--rounded-btn, .5rem)}.btn-group-vertical .btn:first-child:not(:last-child){margin-top:-1px;margin-left:-0px;border-start-start-radius:var(--rounded-btn, .5rem);border-start-end-radius:var(--rounded-btn, .5rem);border-end-start-radius:0;border-end-end-radius:0}.btn-group-vertical .btn:last-child:not(:first-child){border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:var(--rounded-btn, .5rem);border-end-end-radius:var(--rounded-btn, .5rem)}.divider-horizontal{margin-top:0;margin-bottom:0;margin-left:1rem;margin-right:1rem;height:auto;width:1rem}.menu-horizontal :where(li.bordered>*){border-left-width:0px;border-bottom-width:4px}.menu-horizontal>:where(li:first-child){border-top-left-radius:inherit;border-top-right-radius:unset;border-bottom-right-radius:unset;border-bottom-left-radius:inherit}.menu-horizontal>:where(li:first-child)>:where(*:not(ul)){border-top-left-radius:inherit;border-top-right-radius:unset;border-bottom-right-radius:unset;border-bottom-left-radius:inherit}.menu-horizontal>:where(li:last-child){border-top-left-radius:unset;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:unset}.menu-horizontal>:where(li:last-child)>:where(*:not(ul)){border-top-left-radius:unset;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:unset}.modal-bottom :where(.modal-box){width:100%;max-width:none;--tw-translate-y: 2.5rem;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-right-radius:0;border-bottom-left-radius:0}.modal-middle :where(.modal-box){width:91.666667%;max-width:32rem;--tw-translate-y: 0px;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-left-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem)}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-left-20{left:-5rem}.right-0{right:0}.right-2{right:.5rem}.top-0{top:0}.top-2{top:.5rem}.z-10{z-index:10}.z-50{z-index:50}.float-right{float:right}.m-1{margin:.25rem}.m-5{margin:1.25rem}.mx-0{margin-left:0;margin-right:0}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-28{margin-left:7rem;margin-right:7rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-48{margin-bottom:12rem}.mb-5{margin-bottom:1.25rem}.ml-1{margin-left:.25rem}.ml-24{margin-left:6rem}.ml-px{margin-left:1px}.mr-0{margin-right:0}.mr-0\.5{margin-right:.125rem}.mr-5{margin-right:1.25rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-28{margin-top:7rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.flex{display:flex}.table{display:table}.grid{display:grid}.contents{display:contents}.h-16{height:4rem}.h-32{height:8rem}.h-44{height:11rem}.h-\[40vh\]{height:40vh}.h-\[70vh\]{height:70vh}.h-auto{height:auto}.h-full{height:100%}.h-max{height:-moz-max-content;height:max-content}.h-screen{height:100vh}.max-h-max{max-height:-moz-max-content;max-height:max-content}.min-h-\[490px\]{min-height:490px}.min-h-\[667px\]{min-height:667px}.w-1\/2{width:50%}.w-1\/5{width:20%}.w-16{width:4rem}.w-2\/5{width:40%}.w-28{width:7rem}.w-32{width:8rem}.w-4\/5{width:80%}.w-52{width:13rem}.w-\[400px\]{width:400px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-grow{flex-grow:1}.basis-1\/4{flex-basis:25%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.content-around{align-content:space-around}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.gap-1{gap:.25rem}.gap-12{gap:3rem}.gap-28{gap:7rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.border-t-2{border-top-width:2px}.border-\[\#11D9C5\],.border-\[\#11d9c5\]{--tw-border-opacity: 1;border-color:rgb(17 217 197 / var(--tw-border-opacity))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-white\/50{border-color:#ffffff80}.border-zinc-600{--tw-border-opacity: 1;border-color:rgb(82 82 91 / var(--tw-border-opacity))}.bg-\[\#11D9C5\]{--tw-bg-opacity: 1;background-color:rgb(17 217 197 / var(--tw-bg-opacity))}.bg-base-100{--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-orange-400{--tw-bg-opacity: 1;background-color:rgb(251 146 60 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-zinc-200{--tw-bg-opacity: 1;background-color:rgb(228 228 231 / var(--tw-bg-opacity))}.bg-zinc-700{--tw-bg-opacity: 1;background-color:rgb(63 63 70 / var(--tw-bg-opacity))}.object-center{-o-object-position:center;object-position:center}.p-0{padding:0}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-10{padding-bottom:2.5rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.normal-case{text-transform:none}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-950{--tw-text-opacity: 1;color:rgb(3 7 18 / var(--tw-text-opacity))}.text-green-300{--tw-text-opacity: 1;color:rgb(134 239 172 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-lime-700{--tw-text-opacity: 1;color:rgb(77 124 15 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-gray-500\/50{--tw-shadow-color: rgb(107 114 128 / .5);--tw-shadow: var(--tw-shadow-colored)}body{transition:background-color .2s ease-in-out,color .2s ease-in-out;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}:is(.dark body){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-track{background:white}::-webkit-scrollbar-thumb{background:black}::-webkit-scrollbar-thumb:hover{background:black}@media (min-width: 640px){.sm\:modal-middle{align-items:center}.sm\:modal-middle :where(.modal-box){width:91.666667%;max-width:32rem;--tw-translate-y: 0px;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-left-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem)}}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.hover\:bg-slate-200:hover{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity))}.hover\:bg-slate-600:hover{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity))}.hover\:text-gray-200:hover{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.active\:bg-gray-200:active{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.active\:bg-gray-700:active{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.active\:bg-slate-500:active{--tw-bg-opacity: 1;background-color:rgb(100 116 139 / var(--tw-bg-opacity))}:is(.dark .dark\:border-green-400){--tw-border-opacity: 1;border-color:rgb(74 222 128 / var(--tw-border-opacity))}:is(.dark .dark\:border-zinc-600){--tw-border-opacity: 1;border-color:rgb(82 82 91 / var(--tw-border-opacity))}:is(.dark .dark\:bg-gray-300){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-700){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-500){--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}:is(.dark .dark\:text-black){--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-100){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-100){--tw-text-opacity: 1;color:rgb(220 252 231 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-300){--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}:is(.dark .dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-200){--tw-text-opacity: 1;color:rgb(254 240 138 / var(--tw-text-opacity))}:is(.dark .dark\:shadow-green-300\/30){--tw-shadow-color: rgb(134 239 172 / .3);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-green-300\/80){--tw-shadow-color: rgb(134 239 172 / .8);--tw-shadow: var(--tw-shadow-colored)} diff --git a/build/app/immutable/chunks/AskToLogin.9a7bb0f7.js b/build/app/immutable/chunks/AskToLogin.c273dc76.js similarity index 89% rename from build/app/immutable/chunks/AskToLogin.9a7bb0f7.js rename to build/app/immutable/chunks/AskToLogin.c273dc76.js index e0381a472..1ea2721fe 100644 --- a/build/app/immutable/chunks/AskToLogin.9a7bb0f7.js +++ b/build/app/immutable/chunks/AskToLogin.c273dc76.js @@ -1 +1 @@ -import{S as m,i as p,s as _,k as o,q as v,l as h,m as d,r as x,h as r,n as i,b as A,D as u,H as l}from"./index.83ca82d8.js";function b(f){let t,e,n;return{c(){t=o("div"),e=o("a"),n=v("Get Authenticated"),this.h()},l(a){t=h(a,"DIV",{class:!0});var s=d(t);e=h(s,"A",{href:!0,class:!0});var c=d(e);n=x(c,"Get Authenticated"),c.forEach(r),s.forEach(r),this.h()},h(){i(e,"href","/Onboarding"),i(e,"class","btn p-5"),i(t,"class","p-10 flex justify-center items-center h-full")},m(a,s){A(a,t,s),u(t,e),u(e,n)},p:l,i:l,o:l,d(a){a&&r(t)}}}class y extends m{constructor(t){super(),p(this,t,null,b,_,{})}}export{y as A}; +import{S as m,i as p,s as _,k as o,q as v,l as h,m as d,r as x,h as r,n as i,b as A,D as u,H as l}from"./index.f3b06f47.js";function b(f){let t,e,n;return{c(){t=o("div"),e=o("a"),n=v("Get Authenticated"),this.h()},l(a){t=h(a,"DIV",{class:!0});var s=d(t);e=h(s,"A",{href:!0,class:!0});var c=d(e);n=x(c,"Get Authenticated"),c.forEach(r),s.forEach(r),this.h()},h(){i(e,"href","/Onboarding"),i(e,"class","btn p-5"),i(t,"class","p-10 flex justify-center items-center h-full")},m(a,s){A(a,t,s),u(t,e),u(e,n)},p:l,i:l,o:l,d(a){a&&r(t)}}}class y extends m{constructor(t){super(),p(this,t,null,b,_,{})}}export{y as A}; diff --git a/build/app/immutable/chunks/Header.80bfed2a.js b/build/app/immutable/chunks/Header.b7ab37a3.js similarity index 63% rename from build/app/immutable/chunks/Header.80bfed2a.js rename to build/app/immutable/chunks/Header.b7ab37a3.js index 3d1bca9f8..bd480fe28 100644 --- a/build/app/immutable/chunks/Header.80bfed2a.js +++ b/build/app/immutable/chunks/Header.b7ab37a3.js @@ -1 +1 @@ -import{S as Z,i as ee,s as te,k as u,l as f,m as d,h as a,n as c,b as k,J as re,H as Y,q as x,r as L,a as D,y as ae,c as W,z as le,V as se,D as o,A as oe,g as ce,d as ie,B as ne,o as ue}from"./index.83ca82d8.js";import{c as fe}from"./secondAuth.d664856c.js";function de(_){let e;return{c(){e=x("Light Mode")},l(t){e=L(t,"Light Mode")},m(t,r){k(t,e,r)},d(t){t&&a(e)}}}function he(_){let e;return{c(){e=x("Dark Mode")},l(t){e=L(t,"Dark Mode")},m(t,r){k(t,e,r)},d(t){t&&a(e)}}}function _e(_){let e,t,r;function l(n,g){if(n[0]==!1)return he;if(n[0]==!0)return de}let h=l(_),s=h&&h(_);return{c(){e=u("button"),s&&s.c(),this.h()},l(n){e=f(n,"BUTTON",{class:!0});var g=d(e);s&&s.l(g),g.forEach(a),this.h()},h(){c(e,"class","hover:bg-gray-600 hover:text-gray-200 active:bg-gray-200")},m(n,g){k(n,e,g),s&&s.m(e,null),t||(r=re(e,"click",_[1]),t=!0)},p(n,[g]){h!==(h=l(n))&&(s&&s.d(1),s=h&&h(n),s&&(s.c(),s.m(e,null)))},i:Y,o:Y,d(n){n&&a(e),s&&s.d(),t=!1,r()}}}function me(_,e,t){let r=!0;function l(){t(0,r=!r),localStorage.setItem("theme",r?"dark":"light"),r?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")}return localStorage.theme==="dark"||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?(document.documentElement.classList.add("dark"),r=!0):(document.documentElement.classList.remove("dark"),r=!1),[r,l]}class ge extends Z{constructor(e){super(),ee(this,e,me,_e,te,{})}}function ve(_){let e,t;return{c(){e=u("a"),t=x("Wallet"),this.h()},l(r){e=f(r,"A",{class:!0,href:!0});var l=d(e);t=L(l,"Wallet"),l.forEach(a),this.h()},h(){c(e,"class","text-sm"),c(e,"href","/Onboarding")},m(r,l){k(r,e,l),o(e,t)},d(r){r&&a(e)}}}function be(_){let e,t;return{c(){e=u("a"),t=x("Wallet"),this.h()},l(r){e=f(r,"A",{class:!0,href:!0});var l=d(e);t=L(l,"Wallet"),l.forEach(a),this.h()},h(){c(e,"class","text-sm"),c(e,"href","/wallet")},m(r,l){k(r,e,l),o(e,t)},d(r){r&&a(e)}}}function pe(_){let e,t,r,l,h,s,n,g,$,v,b;return{c(){e=u("li"),t=u("a"),r=x("Profile"),l=D(),h=u("li"),s=u("a"),n=x("Settings"),g=D(),$=u("li"),v=u("a"),b=x("Help & Feedback"),this.h()},l(i){e=f(i,"LI",{});var p=d(e);t=f(p,"A",{href:!0,class:!0});var E=d(t);r=L(E,"Profile"),E.forEach(a),p.forEach(a),l=W(i),h=f(i,"LI",{});var I=d(h);s=f(I,"A",{href:!0,class:!0});var H=d(s);n=L(H,"Settings"),H.forEach(a),I.forEach(a),g=W(i),$=f(i,"LI",{});var U=d($);v=f(U,"A",{href:!0,class:!0});var y=d(v);b=L(y,"Help & Feedback"),y.forEach(a),U.forEach(a),this.h()},h(){c(t,"href","/profile"),c(t,"class","hover:bg-gray-600 hover:text-gray-200 active:bg-gray-700"),c(s,"href","/settings"),c(s,"class","hover:bg-gray-600 hover:text-gray-200 active:bg-gray-700"),c(v,"href","/feedback"),c(v,"class","hover:bg-gray-600 hover:text-gray-200 active:bg-gray-700")},m(i,p){k(i,e,p),o(e,t),o(t,r),k(i,l,p),k(i,h,p),o(h,s),o(s,n),k(i,g,p),k(i,$,p),o($,v),o(v,b)},d(i){i&&a(e),i&&a(l),i&&a(h),i&&a(g),i&&a($)}}}function ye(_){let e,t,r;return{c(){e=u("li"),t=u("a"),r=x("Setup Wallet"),this.h()},l(l){e=f(l,"LI",{});var h=d(e);t=f(h,"A",{href:!0,class:!0});var s=d(t);r=L(s,"Setup Wallet"),s.forEach(a),h.forEach(a),this.h()},h(){c(t,"href","/Onboarding"),c(t,"class","hover:bg-gray-600 hover:text-gray-200 active:bg-gray-700")},m(l,h){k(l,e,h),o(e,t),o(t,r)},d(l){l&&a(e)}}}function ke(_){let e,t,r,l,h,s,n,g,$,v,b,i,p,E,I,H,U,y,V,A,C,N;function G(m,S){return m[0]?be:ve}let O=G(_),M=O(_);A=new ge({});function J(m,S){return m[0]==!1?ye:pe}let T=J(_),w=T(_);return{c(){e=u("div"),t=u("div"),r=u("div"),l=u("img"),s=D(),n=u("a"),g=x("Netsepio"),$=D(),v=u("div"),b=u("ul"),i=u("li"),M.c(),p=D(),E=u("li"),I=u("button"),H=x("Menu"),U=D(),y=u("ul"),V=u("li"),ae(A.$$.fragment),C=D(),w.c(),this.h()},l(m){e=f(m,"DIV",{});var S=d(e);t=f(S,"DIV",{class:!0});var q=d(t);r=f(q,"DIV",{class:!0});var z=d(r);l=f(z,"IMG",{src:!0,alt:!0,class:!0}),s=W(z),n=f(z,"A",{class:!0,href:!0});var j=d(n);g=L(j,"Netsepio"),j.forEach(a),z.forEach(a),$=W(q),v=f(q,"DIV",{class:!0});var K=d(v);b=f(K,"UL",{class:!0});var B=d(b);i=f(B,"LI",{class:!0});var Q=d(i);M.l(Q),Q.forEach(a),p=W(B),E=f(B,"LI",{tabindex:!0});var F=d(E);I=f(F,"BUTTON",{class:!0});var R=d(I);H=L(R,"Menu"),R.forEach(a),U=W(F),y=f(F,"UL",{class:!0});var P=d(y);V=f(P,"LI",{});var X=d(V);le(A.$$.fragment,X),X.forEach(a),C=W(P),w.l(P),P.forEach(a),F.forEach(a),B.forEach(a),K.forEach(a),q.forEach(a),S.forEach(a),this.h()},h(){se(l.src,h=Ee)||c(l,"src",h),c(l,"alt","logo"),c(l,"class","w-1/5"),c(n,"class","normal-case text-xl"),c(n,"href","/"),c(r,"class","flex-1"),c(i,"class","hover:bg-gray-600 active:bg-gray-700 hover:text-gray-200 rounded-lg"),c(I,"class","text-sm hover:bg-gray-600 active:bg-gray-700 hover:text-gray-200"),c(y,"class","p-2 bg-white dark:bg-gray-900"),c(E,"tabindex",0),c(b,"class","menu menu-horizontal px-1 z-10"),c(v,"class","flex-none"),c(t,"class","navbar rounded-lg shadow-lg shadow-gray-500/50 px-2 py-4 dark:shadow-green-300/80 gap-12")},m(m,S){k(m,e,S),o(e,t),o(t,r),o(r,l),o(r,s),o(r,n),o(n,g),o(t,$),o(t,v),o(v,b),o(b,i),M.m(i,null),o(b,p),o(b,E),o(E,I),o(I,H),o(E,U),o(E,y),o(y,V),oe(A,V,null),o(y,C),w.m(y,null),N=!0},p(m,[S]){O!==(O=G(m))&&(M.d(1),M=O(m),M&&(M.c(),M.m(i,null))),T!==(T=J(m))&&(w.d(1),w=T(m),w&&(w.c(),w.m(y,null)))},i(m){N||(ce(A.$$.fragment,m),N=!0)},o(m){ie(A.$$.fragment,m),N=!1},d(m){m&&a(e),M.d(),ne(A),w.d()}}}let Ee="/logo-3.png";function $e(_,e,t){let r;return ue(async()=>{t(0,[r]=await fe(),r)}),[r]}class Ie extends Z{constructor(e){super(),ee(this,e,$e,ke,te,{})}}export{Ie as H}; +import{S as Z,i as ee,s as te,k as u,l as f,m as d,h as a,n as c,b as k,J as re,H as Y,q as x,r as L,a as D,y as ae,c as U,z as le,U as se,D as o,A as oe,g as ce,d as ie,B as ne,o as ue}from"./index.f3b06f47.js";import{c as fe}from"./secondAuth.f9ee4b2a.js";function de(_){let e;return{c(){e=x("Light Mode")},l(t){e=L(t,"Light Mode")},m(t,r){k(t,e,r)},d(t){t&&a(e)}}}function he(_){let e;return{c(){e=x("Dark Mode")},l(t){e=L(t,"Dark Mode")},m(t,r){k(t,e,r)},d(t){t&&a(e)}}}function _e(_){let e,t,r;function l(n,g){if(n[0]==!1)return he;if(n[0]==!0)return de}let h=l(_),s=h&&h(_);return{c(){e=u("button"),s&&s.c(),this.h()},l(n){e=f(n,"BUTTON",{class:!0});var g=d(e);s&&s.l(g),g.forEach(a),this.h()},h(){c(e,"class","hover:bg-gray-600 hover:text-gray-200 active:bg-gray-200")},m(n,g){k(n,e,g),s&&s.m(e,null),t||(r=re(e,"click",_[1]),t=!0)},p(n,[g]){h!==(h=l(n))&&(s&&s.d(1),s=h&&h(n),s&&(s.c(),s.m(e,null)))},i:Y,o:Y,d(n){n&&a(e),s&&s.d(),t=!1,r()}}}function me(_,e,t){let r=!0;function l(){t(0,r=!r),localStorage.setItem("theme",r?"dark":"light"),r?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")}return localStorage.theme==="dark"||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?(document.documentElement.classList.add("dark"),r=!0):(document.documentElement.classList.remove("dark"),r=!1),[r,l]}class ge extends Z{constructor(e){super(),ee(this,e,me,_e,te,{})}}function ve(_){let e,t;return{c(){e=u("a"),t=x("Wallet"),this.h()},l(r){e=f(r,"A",{class:!0,href:!0});var l=d(e);t=L(l,"Wallet"),l.forEach(a),this.h()},h(){c(e,"class","text-sm"),c(e,"href","/Onboarding")},m(r,l){k(r,e,l),o(e,t)},d(r){r&&a(e)}}}function be(_){let e,t;return{c(){e=u("a"),t=x("Wallet"),this.h()},l(r){e=f(r,"A",{class:!0,href:!0});var l=d(e);t=L(l,"Wallet"),l.forEach(a),this.h()},h(){c(e,"class","text-sm"),c(e,"href","/wallet")},m(r,l){k(r,e,l),o(e,t)},d(r){r&&a(e)}}}function pe(_){let e,t,r,l,h,s,n,g,$,v,b;return{c(){e=u("li"),t=u("a"),r=x("Profile"),l=D(),h=u("li"),s=u("a"),n=x("Settings"),g=D(),$=u("li"),v=u("a"),b=x("Help & Feedback"),this.h()},l(i){e=f(i,"LI",{});var p=d(e);t=f(p,"A",{href:!0,class:!0});var E=d(t);r=L(E,"Profile"),E.forEach(a),p.forEach(a),l=U(i),h=f(i,"LI",{});var I=d(h);s=f(I,"A",{href:!0,class:!0});var W=d(s);n=L(W,"Settings"),W.forEach(a),I.forEach(a),g=U(i),$=f(i,"LI",{});var H=d($);v=f(H,"A",{href:!0,class:!0});var y=d(v);b=L(y,"Help & Feedback"),y.forEach(a),H.forEach(a),this.h()},h(){c(t,"href","/profile"),c(t,"class","hover:bg-gray-600 hover:text-gray-200 active:bg-gray-700"),c(s,"href","/settings"),c(s,"class","hover:bg-gray-600 hover:text-gray-200 active:bg-gray-700"),c(v,"href","/feedback"),c(v,"class","hover:bg-gray-600 hover:text-gray-200 active:bg-gray-700")},m(i,p){k(i,e,p),o(e,t),o(t,r),k(i,l,p),k(i,h,p),o(h,s),o(s,n),k(i,g,p),k(i,$,p),o($,v),o(v,b)},d(i){i&&a(e),i&&a(l),i&&a(h),i&&a(g),i&&a($)}}}function ye(_){let e,t,r;return{c(){e=u("li"),t=u("a"),r=x("Setup Wallet"),this.h()},l(l){e=f(l,"LI",{});var h=d(e);t=f(h,"A",{href:!0,class:!0});var s=d(t);r=L(s,"Setup Wallet"),s.forEach(a),h.forEach(a),this.h()},h(){c(t,"href","/Onboarding"),c(t,"class","hover:bg-gray-600 hover:text-gray-200 active:bg-gray-700")},m(l,h){k(l,e,h),o(e,t),o(t,r)},d(l){l&&a(e)}}}function ke(_){let e,t,r,l,h,s,n,g,$,v,b,i,p,E,I,W,H,y,N,A,C,O;function G(m,S){return m[0]?be:ve}let T=G(_),M=T(_);A=new ge({});function J(m,S){return m[0]==!1?ye:pe}let V=J(_),w=V(_);return{c(){e=u("div"),t=u("div"),r=u("div"),l=u("img"),s=D(),n=u("a"),g=x("Netsepio"),$=D(),v=u("div"),b=u("ul"),i=u("li"),M.c(),p=D(),E=u("li"),I=u("button"),W=x("Menu"),H=D(),y=u("ul"),N=u("li"),ae(A.$$.fragment),C=D(),w.c(),this.h()},l(m){e=f(m,"DIV",{});var S=d(e);t=f(S,"DIV",{class:!0});var q=d(t);r=f(q,"DIV",{class:!0});var z=d(r);l=f(z,"IMG",{src:!0,alt:!0,class:!0}),s=U(z),n=f(z,"A",{class:!0,href:!0});var j=d(n);g=L(j,"Netsepio"),j.forEach(a),z.forEach(a),$=U(q),v=f(q,"DIV",{class:!0});var K=d(v);b=f(K,"UL",{class:!0});var B=d(b);i=f(B,"LI",{class:!0});var Q=d(i);M.l(Q),Q.forEach(a),p=U(B),E=f(B,"LI",{tabindex:!0});var F=d(E);I=f(F,"BUTTON",{class:!0});var R=d(I);W=L(R,"Menu"),R.forEach(a),H=U(F),y=f(F,"UL",{class:!0});var P=d(y);N=f(P,"LI",{});var X=d(N);le(A.$$.fragment,X),X.forEach(a),C=U(P),w.l(P),P.forEach(a),F.forEach(a),B.forEach(a),K.forEach(a),q.forEach(a),S.forEach(a),this.h()},h(){se(l.src,h=Ee)||c(l,"src",h),c(l,"alt","logo"),c(l,"class","w-1/5"),c(n,"class","normal-case text-xl"),c(n,"href","/"),c(r,"class","flex-1"),c(i,"class","hover:bg-gray-600 active:bg-gray-700 hover:text-gray-200 rounded-lg"),c(I,"class","text-sm hover:bg-gray-600 active:bg-gray-700 hover:text-gray-200"),c(y,"class","p-2 bg-white dark:bg-gray-900 -left-20"),c(E,"tabindex",0),c(b,"class","menu menu-horizontal px-1 z-10"),c(v,"class","flex-none"),c(t,"class","navbar rounded-lg shadow-lg shadow-gray-500/50 px-2 py-4 dark:shadow-green-300/80 gap-12")},m(m,S){k(m,e,S),o(e,t),o(t,r),o(r,l),o(r,s),o(r,n),o(n,g),o(t,$),o(t,v),o(v,b),o(b,i),M.m(i,null),o(b,p),o(b,E),o(E,I),o(I,W),o(E,H),o(E,y),o(y,N),oe(A,N,null),o(y,C),w.m(y,null),O=!0},p(m,[S]){T!==(T=G(m))&&(M.d(1),M=T(m),M&&(M.c(),M.m(i,null))),V!==(V=J(m))&&(w.d(1),w=V(m),w&&(w.c(),w.m(y,null)))},i(m){O||(ce(A.$$.fragment,m),O=!0)},o(m){ie(A.$$.fragment,m),O=!1},d(m){m&&a(e),M.d(),ne(A),w.d()}}}let Ee="/logo-3.png";function $e(_,e,t){let r;return ue(async()=>{t(0,[r]=await fe(),r)}),[r]}class Ie extends Z{constructor(e){super(),ee(this,e,$e,ke,te,{})}}export{Ie as H}; diff --git a/build/app/immutable/chunks/Loader.7a0edb34.js b/build/app/immutable/chunks/Loader.d36557e7.js similarity index 89% rename from build/app/immutable/chunks/Loader.7a0edb34.js rename to build/app/immutable/chunks/Loader.d36557e7.js index 65b55d716..9eccb1368 100644 --- a/build/app/immutable/chunks/Loader.7a0edb34.js +++ b/build/app/immutable/chunks/Loader.d36557e7.js @@ -1 +1 @@ -import{S as h,i as f,s as m,k as i,l as o,m as c,h as r,n as d,b as p,D as u,H as n}from"./index.83ca82d8.js";function v(l){let e,s;return{c(){e=i("div"),s=i("div"),this.h()},l(t){e=o(t,"DIV",{class:!0});var a=c(e);s=o(a,"DIV",{class:!0}),c(s).forEach(r),a.forEach(r),this.h()},h(){d(s,"class","animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-[#11d9c5]"),d(e,"class","fixed top-0 right-0 h-screen w-screen z-50 flex justify-center items-center p-10")},m(t,a){p(t,e,a),u(e,s)},p:n,i:n,o:n,d(t){t&&r(e)}}}class b extends h{constructor(e){super(),f(this,e,null,v,m,{})}}export{b as L}; +import{S as h,i as f,s as m,k as i,l as o,m as c,h as r,n as d,b as p,D as u,H as n}from"./index.f3b06f47.js";function v(l){let e,s;return{c(){e=i("div"),s=i("div"),this.h()},l(t){e=o(t,"DIV",{class:!0});var a=c(e);s=o(a,"DIV",{class:!0}),c(s).forEach(r),a.forEach(r),this.h()},h(){d(s,"class","animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-[#11d9c5]"),d(e,"class","fixed top-0 right-0 h-screen w-screen z-50 flex justify-center items-center p-10")},m(t,a){p(t,e,a),u(e,s)},p:n,i:n,o:n,d(t){t&&r(e)}}}class b extends h{constructor(e){super(),f(this,e,null,v,m,{})}}export{b as L}; diff --git a/build/app/immutable/chunks/Logout.35258e20.js b/build/app/immutable/chunks/Logout.35258e20.js new file mode 100644 index 000000000..5b63e6020 --- /dev/null +++ b/build/app/immutable/chunks/Logout.35258e20.js @@ -0,0 +1 @@ +import{S as W,i as z,s as C,k as h,q as T,a as D,l as m,m as b,r as y,h as i,c as R,n as u,K as J,b as V,D as r,Q as M,J as w,H as S,L as K}from"./index.f3b06f47.js";import{m as Q,s as j,w as F,o as G,d as X}from"./store.26750aee.js";function Y(d){let t,e,l;return{c(){t=h("div"),e=h("button"),l=T("Reset"),this.h()},l(o){t=m(o,"DIV",{class:!0});var a=b(t);e=m(a,"BUTTON",{class:!0});var s=b(e);l=y(s,"Reset"),s.forEach(i),a.forEach(i),this.h()},h(){u(e,"class","btn"),e.disabled=!0,u(t,"class","modal-action")},m(o,a){V(o,t,a),r(t,e),r(e,l)},p:S,d(o){o&&i(t)}}}function Z(d){let t,e,l,o,a,s;return{c(){t=h("div"),e=h("a"),l=h("button"),o=T("Reset"),this.h()},l(n){t=m(n,"DIV",{class:!0});var v=b(t);e=m(v,"A",{href:!0});var k=b(e);l=m(k,"BUTTON",{class:!0});var g=b(l);o=y(g,"Reset"),g.forEach(i),k.forEach(i),v.forEach(i),this.h()},h(){u(l,"class","btn"),u(e,"href","/"),u(t,"class","modal-action")},m(n,v){V(n,t,v),r(t,e),r(e,l),r(l,o),a||(s=w(l,"click",d[3]),a=!0)},p:S,d(n){n&&i(t),a=!1,s()}}}function $(d){let t,e,l,o,a,s,n,v,k,g,x,L,f,N,U,B;function O(c,_){return c[1]?Z:Y}let I=O(d),p=I(d);return{c(){t=h("div"),e=h("button"),l=T("Reset Wallet"),o=D(),a=h("div"),s=h("div"),n=h("button"),v=T("✕"),k=D(),g=h("p"),x=T("Enter 'reset'"),L=D(),f=h("input"),N=D(),p.c(),this.h()},l(c){t=m(c,"DIV",{});var _=b(t);e=m(_,"BUTTON",{class:!0});var P=b(e);l=y(P,"Reset Wallet"),P.forEach(i),o=R(_),a=m(_,"DIV",{class:!0});var q=b(a);s=m(q,"DIV",{class:!0});var E=b(s);n=m(E,"BUTTON",{class:!0});var A=b(n);v=y(A,"✕"),A.forEach(i),k=R(E),g=m(E,"P",{class:!0});var H=b(g);x=y(H,"Enter 'reset'"),H.forEach(i),L=R(E),f=m(E,"INPUT",{type:!0,placeholder:!0,class:!0}),N=R(E),p.l(E),E.forEach(i),q.forEach(i),_.forEach(i),this.h()},h(){u(e,"class","block rounded-lg shadow-lg bg-red-500 dark:bg-red-500 text-white p-2 w-full h-auto hover:bg-slate-600 active:bg-slate-500 text-xl text-center"),u(n,"class","btn btn-sm btn-circle absolute right-2 top-2"),u(g,"class","text-md mt-5 mb-3 text-center"),u(f,"type","text"),u(f,"placeholder","reset"),u(f,"class","input input-bordered dark:bg-gray-900 dark:text-white dark:border-zinc-600 input-md w-full max-w-xs"),u(s,"class","modal-box dark:bg-gray-900 dark:text-white"),u(a,"class","modal modal-bottom sm:modal-middle"),J(a,"modal-open",d[0])},m(c,_){V(c,t,_),r(t,e),r(e,l),r(t,o),r(t,a),r(a,s),r(s,n),r(n,v),r(s,k),r(s,g),r(g,x),r(s,L),r(s,f),M(f,d[2]),r(s,N),p.m(s,null),U||(B=[w(e,"click",d[4]),w(n,"click",d[5]),w(f,"input",d[6]),w(f,"change",d[7])],U=!0)},p(c,[_]){_&4&&f.value!==c[2]&&M(f,c[2]),I===(I=O(c))&&p?p.p(c,_):(p.d(1),p=I(c),p&&(p.c(),p.m(s,null))),_&1&&J(a,"modal-open",c[0])},i:S,o:S,d(c){c&&i(t),p.d(),U=!1,K(B)}}}function ee(d,t,e){let l=!1,o=!1,a="";const s=async()=>{await Q.remove(),j(""),F.set(""),G.set(3),localStorage.removeItem("encryptedMnemonic"),localStorage.removeItem("iv"),localStorage.removeItem("mnemonicHash"),X.set(""),e(0,l=!1)},n=()=>e(0,l=!0),v=()=>{e(0,l=!1)};function k(){a=this.value,e(2,a)}return[l,o,a,s,n,v,k,()=>{a=="reset"&&e(1,o=!0)}]}class se extends W{constructor(t){super(),z(this,t,ee,$,C,{})}}export{se as L}; diff --git a/build/app/immutable/chunks/functionsForLogin.e1c9cab8.js b/build/app/immutable/chunks/functionsForLogin.1a2a5d01.js similarity index 84% rename from build/app/immutable/chunks/functionsForLogin.e1c9cab8.js rename to build/app/immutable/chunks/functionsForLogin.1a2a5d01.js index e795009b3..63ebcff43 100644 --- a/build/app/immutable/chunks/functionsForLogin.e1c9cab8.js +++ b/build/app/immutable/chunks/functionsForLogin.1a2a5d01.js @@ -1,3 +1,3 @@ -import{w as d,b as u,p}from"./store.e259513c.js";import{a as c}from"./public.02ab71de.js";import{A as l}from"./index.045ff416.js";const b=async()=>{let t="";return d.subscribe(a=>t=a),(await fetch(`${c}/flowid?walletAddress=${t}`)).json()},A=async(t,e,a)=>{let r=new Headers;r.append("Content-Type","application/json");let o=JSON.stringify({flowId:t,signature:e,pubKey:a}),n={method:"POST",headers:r,body:o,redirect:"follow"};return await(await fetch(`${c}/authenticate`,n)).json()},h=async t=>{let e="",a="";u.subscribe(n=>a=n),p.subscribe(n=>e=n);function r(n){return new Uint8Array(n.match(/.{1,2}/g).map(s=>parseInt(s,16)))}let o=new TextEncoder().encode(`APTOS +import{w as d,b as u,p}from"./store.26750aee.js";import{a as c}from"./public.02ab71de.js";import{A as l}from"./index.ec3c65db.js";const b=async()=>{let t="";return d.subscribe(a=>t=a),(await fetch(`${c}/flowid?walletAddress=${t}`)).json()},A=async(t,e,a)=>{let r=new Headers;r.append("Content-Type","application/json");let o=JSON.stringify({flowId:t,signature:e,pubKey:a}),n={method:"POST",headers:r,body:o,redirect:"follow"};return await(await fetch(`${c}/authenticate`,n)).json()},h=async t=>{let e="",a="";u.subscribe(n=>a=n),p.subscribe(n=>e=n);function r(n){return new Uint8Array(n.match(/.{1,2}/g).map(s=>parseInt(s,16)))}let o=new TextEncoder().encode(`APTOS message: ${t==null?void 0:t.eula} nonce: ${t==null?void 0:t.flowId}`);if(e!==""){const n=r(e);return{signature:new l(n).signBuffer(o).hex(),pubKey:a}}};export{b as a,A as b,h as s}; diff --git a/build/app/immutable/chunks/index.1fc1f291.js b/build/app/immutable/chunks/index.3a682f2f.js similarity index 85% rename from build/app/immutable/chunks/index.1fc1f291.js rename to build/app/immutable/chunks/index.3a682f2f.js index 1ff7456cc..b8ea630c0 100644 --- a/build/app/immutable/chunks/index.1fc1f291.js +++ b/build/app/immutable/chunks/index.3a682f2f.js @@ -1 +1 @@ -import{H as f,s as l}from"./index.83ca82d8.js";const e=[];function h(n,u=f){let i;const o=new Set;function r(t){if(l(n,t)&&(n=t,i)){const c=!e.length;for(const s of o)s[1](),e.push(s,n);if(c){for(let s=0;s{o.delete(s),o.size===0&&i&&(i(),i=null)}}return{set:r,update:b,subscribe:p}}export{h as w}; +import{H as f,s as l}from"./index.f3b06f47.js";const e=[];function h(n,u=f){let i;const o=new Set;function r(t){if(l(n,t)&&(n=t,i)){const c=!e.length;for(const s of o)s[1](),e.push(s,n);if(c){for(let s=0;s{o.delete(s),o.size===0&&i&&(i(),i=null)}}return{set:r,update:b,subscribe:p}}export{h as w}; diff --git a/build/app/immutable/chunks/index.83ca82d8.js b/build/app/immutable/chunks/index.83ca82d8.js deleted file mode 100644 index 2f297558e..000000000 --- a/build/app/immutable/chunks/index.83ca82d8.js +++ /dev/null @@ -1 +0,0 @@ -function w(){}function W(t,n){for(const e in n)t[e]=n[e];return t}function O(t){return t()}function q(){return Object.create(null)}function g(t){t.forEach(O)}function B(t){return typeof t=="function"}function lt(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}let x;function at(t,n){return x||(x=document.createElement("a")),x.href=n,t===x.href}function G(t){return Object.keys(t).length===0}function P(t,...n){if(t==null)return w;const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function ft(t){let n;return P(t,e=>n=e)(),n}function _t(t,n,e){t.$$.on_destroy.push(P(n,e))}function dt(t,n,e,i){if(t){const r=T(t,n,e,i);return t[0](r)}}function T(t,n,e,i){return t[1]&&i?W(e.ctx.slice(),t[1](i(n))):e.ctx}function ht(t,n,e,i){if(t[2]&&i){const r=t[2](i(e));if(n.dirty===void 0)return r;if(typeof r=="object"){const l=[],u=Math.max(n.dirty.length,r.length);for(let o=0;o32){const n=[],e=t.ctx.length/32;for(let i=0;i>1);e(r)<=i?t=r+1:n=r}return t}function R(t){if(t.hydrate_init)return;t.hydrate_init=!0;let n=t.childNodes;if(t.nodeName==="HEAD"){const c=[];for(let s=0;s0&&n[e[r]].claim_order<=s?r+1:Q(1,r,b=>n[e[b]].claim_order,s))-1;i[c]=e[f]+1;const a=f+1;e[a]=c,r=Math.max(a,r)}const l=[],u=[];let o=n.length-1;for(let c=e[r]+1;c!=0;c=i[c-1]){for(l.push(n[c-1]);o>=c;o--)u.push(n[o]);o--}for(;o>=0;o--)u.push(n[o]);l.reverse(),u.sort((c,s)=>c.claim_order-s.claim_order);for(let c=0,s=0;c=l[s].claim_order;)s++;const f=st.removeEventListener(n,e,i)}function Z(t,n,e){e==null?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function wt(t,n){for(const e in n)Z(t,e,n[e])}function vt(t){return t===""?null:+t}function tt(t){return Array.from(t.childNodes)}function nt(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function D(t,n,e,i,r=!1){nt(t);const l=(()=>{for(let u=t.claim_info.last_index;u=0;u--){const o=t[u];if(n(o)){const c=e(o);return c===void 0?t.splice(u,1):t[u]=c,r?c===void 0&&t.claim_info.last_index--:t.claim_info.last_index=u,o}}return i()})();return l.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,l}function I(t,n,e,i){return D(t,r=>r.nodeName===n,r=>{const l=[];for(let u=0;ur.removeAttribute(u))},()=>i(n))}function Et(t,n,e){return I(t,n,e,X)}function kt(t,n,e){return I(t,n,e,Y)}function et(t,n){return D(t,e=>e.nodeType===3,e=>{const i=""+n;if(e.data.startsWith(i)){if(e.data.length!==i.length)return e.splitText(i.length)}else e.data=i},()=>A(n),!0)}function Nt(t){return et(t," ")}function St(t,n){n=""+n,t.data!==n&&(t.data=n)}function At(t,n){t.value=n??""}function jt(t,n,e,i){e==null?t.style.removeProperty(n):t.style.setProperty(n,e,i?"important":"")}function Ct(t,n,e){for(let i=0;ii.call(this,n))}const h=[],L=[];let m=[];const k=[],z=Promise.resolve();let N=!1;function F(){N||(N=!0,z.then(H))}function Dt(){return F(),z}function S(t){m.push(t)}function It(t){k.push(t)}const E=new Set;let d=0;function H(){if(d!==0)return;const t=y;do{try{for(;dt.indexOf(i)===-1?n.push(i):e.push(i)),e.forEach(i=>i()),m=n}const $=new Set;let _;function zt(){_={r:0,c:[],p:_}}function Ft(){_.r||g(_.c),_=_.p}function ct(t,n){t&&t.i&&($.delete(t),t.i(n))}function Ht(t,n,e,i){if(t&&t.o){if($.has(t))return;$.add(t),_.c.push(()=>{$.delete(t),i&&(e&&t.d(1),i())}),t.o(n)}else i&&i()}function Wt(t,n){const e={},i={},r={$$scope:1};let l=t.length;for(;l--;){const u=t[l],o=n[l];if(o){for(const c in u)c in o||(i[c]=1);for(const c in o)r[c]||(e[c]=o[c],r[c]=1);t[l]=o}else for(const c in u)r[c]=1}for(const u in i)u in e||(e[u]=void 0);return e}function Gt(t,n,e){const i=t.$$.props[n];i!==void 0&&(t.$$.bound[i]=e,e(t.$$.ctx[i]))}function Jt(t){t&&t.c()}function Kt(t,n){t&&t.l(n)}function ut(t,n,e,i){const{fragment:r,after_update:l}=t.$$;r&&r.m(n,e),i||S(()=>{const u=t.$$.on_mount.map(O).filter(B);t.$$.on_destroy?t.$$.on_destroy.push(...u):g(u),t.$$.on_mount=[]}),l.forEach(S)}function ot(t,n){const e=t.$$;e.fragment!==null&&(rt(e.after_update),g(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function st(t,n){t.$$.dirty[0]===-1&&(h.push(t),F(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<{const M=C.length?C[0]:b;return s.ctx&&r(s.ctx[a],s.ctx[a]=M)&&(!s.skip_bound&&s.bound[a]&&s.bound[a](M),f&&st(t,a)),b}):[],s.update(),f=!0,g(s.before_update),s.fragment=i?i(s.ctx):!1,n.target){if(n.hydrate){J();const a=tt(n.target);s.fragment&&s.fragment.l(a),a.forEach(V)}else s.fragment&&s.fragment.c();n.intro&&ct(t.$$.fragment),ut(t,n.target,n.anchor,n.customElement),K(),H()}p(c)}class Rt{$destroy(){ot(this,1),this.$destroy=w}$on(n,e){if(!B(e))return w;const i=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return i.push(e),()=>{const r=i.indexOf(e);r!==-1&&i.splice(r,1)}}$set(n){this.$$set&&!G(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}export{kt as $,ut as A,ot as B,dt as C,U as D,mt as E,pt as F,ht as G,w as H,_t as I,$t as J,qt as K,g as L,vt as M,Mt as N,S as O,At as P,Ct as Q,Pt as R,Rt as S,Tt as T,ft as U,at as V,gt as W,Gt as X,It as Y,W as Z,Y as _,bt as a,wt as a0,Wt as a1,yt as b,Nt as c,Ht as d,xt as e,Ft as f,ct as g,V as h,Qt as i,Bt as j,X as k,Et as l,tt as m,Z as n,Ot as o,jt as p,A as q,et as r,lt as s,Dt as t,St as u,zt as v,L as w,Lt as x,Jt as y,Kt as z}; diff --git a/build/app/immutable/chunks/index.045ff416.js b/build/app/immutable/chunks/index.ec3c65db.js similarity index 99% rename from build/app/immutable/chunks/index.045ff416.js rename to build/app/immutable/chunks/index.ec3c65db.js index 877d100f1..06c028564 100644 --- a/build/app/immutable/chunks/index.045ff416.js +++ b/build/app/immutable/chunks/index.ec3c65db.js @@ -1,4 +1,4 @@ -import{e as Da,r as Ma,g as to,a as Fa}from"./store.e259513c.js";/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function qa(e){if(!Number.isSafeInteger(e))throw new Error(`Wrong integer: ${e}`)}function ot(...e){const t=(i,a)=>c=>i(a(c)),n=Array.from(e).reverse().reduce((i,a)=>i?t(i,a.encode):a.encode,void 0),r=e.reduce((i,a)=>i?t(i,a.decode):a.decode,void 0);return{encode:n,decode:r}}function ut(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="number")throw new Error("alphabet.encode input should be an array of numbers");return t.map(n=>{if(n<0||n>=e.length)throw new Error(`Digit index outside alphabet: ${n} (alphabet: ${e.length})`);return e[n]})},decode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="string")throw new Error("alphabet.decode input should be array of strings");return t.map(n=>{if(typeof n!="string")throw new Error(`alphabet.decode: not string element=${n}`);const r=e.indexOf(n);if(r===-1)throw new Error(`Unknown letter: "${n}". Allowed: ${e}`);return r})}}}function lt(e=""){if(typeof e!="string")throw new Error("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="string")throw new Error("join.encode input should be array of strings");for(let n of t)if(typeof n!="string")throw new Error(`join.encode: non-string input=${n}`);return t.join(e)},decode:t=>{if(typeof t!="string")throw new Error("join.decode input should be string");return t.split(e)}}}function Cn(e,t="="){if(typeof t!="string")throw new Error("padding chr should be string");return{encode(n){if(!Array.isArray(n)||n.length&&typeof n[0]!="string")throw new Error("padding.encode input should be array of strings");for(let r of n)if(typeof r!="string")throw new Error(`padding.encode: non-string input=${r}`);for(;n.length*e%8;)n.push(t);return n},decode(n){if(!Array.isArray(n)||n.length&&typeof n[0]!="string")throw new Error("padding.encode input should be array of strings");for(let i of n)if(typeof i!="string")throw new Error(`padding.decode: non-string input=${i}`);let r=n.length;if(r*e%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;r>0&&n[r-1]===t;r--)if(!((r-1)*e%8))throw new Error("Invalid padding: string has too much padding");return n.slice(0,r)}}}function no(e){if(typeof e!="function")throw new Error("normalize fn should be function");return{encode:t=>t,decode:t=>e(t)}}function yi(e,t,n){if(t<2)throw new Error(`convertRadix: wrong from=${t}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: wrong to=${n}, base cannot be less than 2`);if(!Array.isArray(e))throw new Error("convertRadix: data should be array");if(!e.length)return[];let r=0;const i=[],a=Array.from(e);for(a.forEach(c=>{if(c<0||c>=t)throw new Error(`Wrong integer: ${c}`)});;){let c=0,d=!0;for(let h=r;ht?ro(t,e%t):e,or=(e,t)=>e+(t-ro(e,t));function ws(e,t,n,r){if(!Array.isArray(e))throw new Error("convertRadix2: data should be array");if(t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(or(t,n)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${or(t,n)}`);let i=0,a=0;const c=2**n-1,d=[];for(const h of e){if(h>=2**t)throw new Error(`convertRadix2: invalid data word=${h} from=${t}`);if(i=i<32)throw new Error(`convertRadix2: carry overflow pos=${a} from=${t}`);for(a+=t;a>=n;a-=n)d.push((i>>a-n&c)>>>0);i&=2**a-1}if(i=i<=t)throw new Error("Excess padding");if(!r&&i)throw new Error(`Non-zero padding: ${i}`);return r&&a>0&&d.push(i>>>0),d}function so(e){return{encode:t=>{if(!(t instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return yi(Array.from(t),2**8,e)},decode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="number")throw new Error("radix.decode input should be array of strings");return Uint8Array.from(yi(t,e,2**8))}}}function pt(e,t=!1){if(e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(or(8,e)>32||or(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!(n instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return ws(Array.from(n),8,e,!t)},decode:n=>{if(!Array.isArray(n)||n.length&&typeof n[0]!="number")throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(ws(n,e,8,t))}}}function bi(e){if(typeof e!="function")throw new Error("unsafeWrapper fn should be function");return function(...t){try{return e.apply(null,t)}catch{}}}function io(e,t){if(typeof t!="function")throw new Error("checksum fn should be function");return{encode(n){if(!(n instanceof Uint8Array))throw new Error("checksum.encode: input should be Uint8Array");const r=t(n).slice(0,e),i=new Uint8Array(n.length+e);return i.set(n),i.set(r,n.length),i},decode(n){if(!(n instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");const r=n.slice(0,-e),i=t(r).slice(0,e),a=n.slice(-e);for(let c=0;ce.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),co=ot(pt(6),ut("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),Cn(6),lt("")),fo=ot(pt(6),ut("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),Cn(6),lt("")),Wa=ot(pt(6),ut("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),lt("")),Is=e=>ot(so(58),ut(e),lt("")),Sn=Is("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),Ya=Is("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),Va=Is("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),_i=[0,2,3,5,6,7,9,10,11],uo={encode(e){let t="";for(let n=0;not(io(4,t=>e(e(t))),Sn),gs=ot(ut("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),lt("")),wi=[996825010,642813549,513874426,1027748829,705979059];function mn(e){const t=e>>25;let n=(e&33554431)<<5;for(let r=0;r>r&1)===1&&(n^=wi[r]);return n}function gi(e,t,n=1){const r=e.length;let i=1;for(let a=0;a126)throw new Error(`Invalid prefix (${e})`);i=mn(i)^c>>5}i=mn(i);for(let a=0;aw)throw new TypeError(`Length ${U} exceeds limit ${w}`);const O=b.toLowerCase(),z=gi(O,p,t);return`${O}1${gs.encode(p)}${z}`}function d(b,p=90){if(typeof b!="string")throw new Error(`bech32.decode input should be string, not ${typeof b}`);if(b.length<8||p!==!1&&b.length>p)throw new TypeError(`Wrong string length: ${b.length} (${b}). Expected (8..${p})`);const w=b.toLowerCase();if(b!==w&&b!==b.toUpperCase())throw new Error("String must be lowercase or uppercase");b=w;const U=b.lastIndexOf("1");if(U===0||U===-1)throw new Error('Letter "1" must be present between prefix and data only');const O=b.slice(0,U),z=b.slice(U+1);if(z.length<6)throw new Error("Data must be at least 6 characters long");const L=gs.decode(z).slice(0,-6),Q=gi(O,L,t);if(!z.endsWith(Q))throw new Error(`Invalid checksum in ${b}: expected "${Q}"`);return{prefix:O,words:L}}const h=bi(d);function y(b){const{prefix:p,words:w}=d(b,!1);return{prefix:p,words:w,bytes:r(w)}}return{encode:c,decode:d,decodeToBytes:y,decodeUnsafe:h,fromWords:r,fromWordsUnsafe:a,toWords:i}}const Qa=lo("bech32"),Ja=lo("bech32m"),ho={encode:e=>new TextDecoder().decode(e),decode:e=>new TextEncoder().encode(e)},xo=ot(pt(4),ut("0123456789abcdef"),lt(""),no(e=>{if(typeof e!="string"||e.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);return e.toLowerCase()})),ar={utf8:ho,hex:xo,base16:oo,base32:ao,base64:co,base64url:fo,base58:Sn,base58xmr:uo},po="Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr",yo=(e,t)=>{if(typeof e!="string"||!ar.hasOwnProperty(e))throw new TypeError(po);if(!(t instanceof Uint8Array))throw new TypeError("bytesToString() expects Uint8Array");return ar[e].encode(t)},Za=yo,bo=(e,t)=>{if(!ar.hasOwnProperty(e))throw new TypeError(po);if(typeof t!="string")throw new TypeError("stringToBytes() expects string");return ar[e].decode(t)},ec=bo,tc=Object.freeze(Object.defineProperty({__proto__:null,assertNumber:qa,base16:oo,base32:ao,base32crockford:Ka,base32hex:Ga,base58:Sn,base58check:Xa,base58flickr:Ya,base58xmr:uo,base58xrp:Va,base64:co,base64url:fo,base64urlnopad:Wa,bech32:Qa,bech32m:Ja,bytes:ec,bytesToString:yo,hex:xo,str:Za,stringToBytes:bo,utf8:ho,utils:ja},Symbol.toStringTag,{value:"Module"}));var _o={exports:{}};(function(e){(function(t){var n=function(o){var u,f=new Float64Array(16);if(o)for(u=0;u>24&255,o[u+1]=f>>16&255,o[u+2]=f>>8&255,o[u+3]=f&255,o[u+4]=s>>24&255,o[u+5]=s>>16&255,o[u+6]=s>>8&255,o[u+7]=s&255}function z(o,u,f,s,l){var _,g=0;for(_=0;_>>8)-1}function L(o,u,f,s){return z(o,u,f,s,16)}function Q(o,u,f,s){return z(o,u,f,s,32)}function he(o,u,f,s){for(var l=s[0]&255|(s[1]&255)<<8|(s[2]&255)<<16|(s[3]&255)<<24,_=f[0]&255|(f[1]&255)<<8|(f[2]&255)<<16|(f[3]&255)<<24,g=f[4]&255|(f[5]&255)<<8|(f[6]&255)<<16|(f[7]&255)<<24,E=f[8]&255|(f[9]&255)<<8|(f[10]&255)<<16|(f[11]&255)<<24,k=f[12]&255|(f[13]&255)<<8|(f[14]&255)<<16|(f[15]&255)<<24,K=s[4]&255|(s[5]&255)<<8|(s[6]&255)<<16|(s[7]&255)<<24,N=u[0]&255|(u[1]&255)<<8|(u[2]&255)<<16|(u[3]&255)<<24,we=u[4]&255|(u[5]&255)<<8|(u[6]&255)<<16|(u[7]&255)<<24,D=u[8]&255|(u[9]&255)<<8|(u[10]&255)<<16|(u[11]&255)<<24,X=u[12]&255|(u[13]&255)<<8|(u[14]&255)<<16|(u[15]&255)<<24,J=s[8]&255|(s[9]&255)<<8|(s[10]&255)<<16|(s[11]&255)<<24,se=f[16]&255|(f[17]&255)<<8|(f[18]&255)<<16|(f[19]&255)<<24,re=f[20]&255|(f[21]&255)<<8|(f[22]&255)<<16|(f[23]&255)<<24,Z=f[24]&255|(f[25]&255)<<8|(f[26]&255)<<16|(f[27]&255)<<24,te=f[28]&255|(f[29]&255)<<8|(f[30]&255)<<16|(f[31]&255)<<24,ee=s[12]&255|(s[13]&255)<<8|(s[14]&255)<<16|(s[15]&255)<<24,F=l,Y=_,P=g,q=E,G=k,H=K,v=N,m=we,B=D,A=X,T=J,C=se,V=re,ie=Z,ce=te,oe=ee,x,de=0;de<20;de+=2)x=F+V|0,G^=x<<7|x>>>32-7,x=G+F|0,B^=x<<9|x>>>32-9,x=B+G|0,V^=x<<13|x>>>32-13,x=V+B|0,F^=x<<18|x>>>32-18,x=H+Y|0,A^=x<<7|x>>>32-7,x=A+H|0,ie^=x<<9|x>>>32-9,x=ie+A|0,Y^=x<<13|x>>>32-13,x=Y+ie|0,H^=x<<18|x>>>32-18,x=T+v|0,ce^=x<<7|x>>>32-7,x=ce+T|0,P^=x<<9|x>>>32-9,x=P+ce|0,v^=x<<13|x>>>32-13,x=v+P|0,T^=x<<18|x>>>32-18,x=oe+C|0,q^=x<<7|x>>>32-7,x=q+oe|0,m^=x<<9|x>>>32-9,x=m+q|0,C^=x<<13|x>>>32-13,x=C+m|0,oe^=x<<18|x>>>32-18,x=F+q|0,Y^=x<<7|x>>>32-7,x=Y+F|0,P^=x<<9|x>>>32-9,x=P+Y|0,q^=x<<13|x>>>32-13,x=q+P|0,F^=x<<18|x>>>32-18,x=H+G|0,v^=x<<7|x>>>32-7,x=v+H|0,m^=x<<9|x>>>32-9,x=m+v|0,G^=x<<13|x>>>32-13,x=G+m|0,H^=x<<18|x>>>32-18,x=T+A|0,C^=x<<7|x>>>32-7,x=C+T|0,B^=x<<9|x>>>32-9,x=B+C|0,A^=x<<13|x>>>32-13,x=A+B|0,T^=x<<18|x>>>32-18,x=oe+ce|0,V^=x<<7|x>>>32-7,x=V+oe|0,ie^=x<<9|x>>>32-9,x=ie+V|0,ce^=x<<13|x>>>32-13,x=ce+ie|0,oe^=x<<18|x>>>32-18;F=F+l|0,Y=Y+_|0,P=P+g|0,q=q+E|0,G=G+k|0,H=H+K|0,v=v+N|0,m=m+we|0,B=B+D|0,A=A+X|0,T=T+J|0,C=C+se|0,V=V+re|0,ie=ie+Z|0,ce=ce+te|0,oe=oe+ee|0,o[0]=F>>>0&255,o[1]=F>>>8&255,o[2]=F>>>16&255,o[3]=F>>>24&255,o[4]=Y>>>0&255,o[5]=Y>>>8&255,o[6]=Y>>>16&255,o[7]=Y>>>24&255,o[8]=P>>>0&255,o[9]=P>>>8&255,o[10]=P>>>16&255,o[11]=P>>>24&255,o[12]=q>>>0&255,o[13]=q>>>8&255,o[14]=q>>>16&255,o[15]=q>>>24&255,o[16]=G>>>0&255,o[17]=G>>>8&255,o[18]=G>>>16&255,o[19]=G>>>24&255,o[20]=H>>>0&255,o[21]=H>>>8&255,o[22]=H>>>16&255,o[23]=H>>>24&255,o[24]=v>>>0&255,o[25]=v>>>8&255,o[26]=v>>>16&255,o[27]=v>>>24&255,o[28]=m>>>0&255,o[29]=m>>>8&255,o[30]=m>>>16&255,o[31]=m>>>24&255,o[32]=B>>>0&255,o[33]=B>>>8&255,o[34]=B>>>16&255,o[35]=B>>>24&255,o[36]=A>>>0&255,o[37]=A>>>8&255,o[38]=A>>>16&255,o[39]=A>>>24&255,o[40]=T>>>0&255,o[41]=T>>>8&255,o[42]=T>>>16&255,o[43]=T>>>24&255,o[44]=C>>>0&255,o[45]=C>>>8&255,o[46]=C>>>16&255,o[47]=C>>>24&255,o[48]=V>>>0&255,o[49]=V>>>8&255,o[50]=V>>>16&255,o[51]=V>>>24&255,o[52]=ie>>>0&255,o[53]=ie>>>8&255,o[54]=ie>>>16&255,o[55]=ie>>>24&255,o[56]=ce>>>0&255,o[57]=ce>>>8&255,o[58]=ce>>>16&255,o[59]=ce>>>24&255,o[60]=oe>>>0&255,o[61]=oe>>>8&255,o[62]=oe>>>16&255,o[63]=oe>>>24&255}function $(o,u,f,s){for(var l=s[0]&255|(s[1]&255)<<8|(s[2]&255)<<16|(s[3]&255)<<24,_=f[0]&255|(f[1]&255)<<8|(f[2]&255)<<16|(f[3]&255)<<24,g=f[4]&255|(f[5]&255)<<8|(f[6]&255)<<16|(f[7]&255)<<24,E=f[8]&255|(f[9]&255)<<8|(f[10]&255)<<16|(f[11]&255)<<24,k=f[12]&255|(f[13]&255)<<8|(f[14]&255)<<16|(f[15]&255)<<24,K=s[4]&255|(s[5]&255)<<8|(s[6]&255)<<16|(s[7]&255)<<24,N=u[0]&255|(u[1]&255)<<8|(u[2]&255)<<16|(u[3]&255)<<24,we=u[4]&255|(u[5]&255)<<8|(u[6]&255)<<16|(u[7]&255)<<24,D=u[8]&255|(u[9]&255)<<8|(u[10]&255)<<16|(u[11]&255)<<24,X=u[12]&255|(u[13]&255)<<8|(u[14]&255)<<16|(u[15]&255)<<24,J=s[8]&255|(s[9]&255)<<8|(s[10]&255)<<16|(s[11]&255)<<24,se=f[16]&255|(f[17]&255)<<8|(f[18]&255)<<16|(f[19]&255)<<24,re=f[20]&255|(f[21]&255)<<8|(f[22]&255)<<16|(f[23]&255)<<24,Z=f[24]&255|(f[25]&255)<<8|(f[26]&255)<<16|(f[27]&255)<<24,te=f[28]&255|(f[29]&255)<<8|(f[30]&255)<<16|(f[31]&255)<<24,ee=s[12]&255|(s[13]&255)<<8|(s[14]&255)<<16|(s[15]&255)<<24,F=l,Y=_,P=g,q=E,G=k,H=K,v=N,m=we,B=D,A=X,T=J,C=se,V=re,ie=Z,ce=te,oe=ee,x,de=0;de<20;de+=2)x=F+V|0,G^=x<<7|x>>>32-7,x=G+F|0,B^=x<<9|x>>>32-9,x=B+G|0,V^=x<<13|x>>>32-13,x=V+B|0,F^=x<<18|x>>>32-18,x=H+Y|0,A^=x<<7|x>>>32-7,x=A+H|0,ie^=x<<9|x>>>32-9,x=ie+A|0,Y^=x<<13|x>>>32-13,x=Y+ie|0,H^=x<<18|x>>>32-18,x=T+v|0,ce^=x<<7|x>>>32-7,x=ce+T|0,P^=x<<9|x>>>32-9,x=P+ce|0,v^=x<<13|x>>>32-13,x=v+P|0,T^=x<<18|x>>>32-18,x=oe+C|0,q^=x<<7|x>>>32-7,x=q+oe|0,m^=x<<9|x>>>32-9,x=m+q|0,C^=x<<13|x>>>32-13,x=C+m|0,oe^=x<<18|x>>>32-18,x=F+q|0,Y^=x<<7|x>>>32-7,x=Y+F|0,P^=x<<9|x>>>32-9,x=P+Y|0,q^=x<<13|x>>>32-13,x=q+P|0,F^=x<<18|x>>>32-18,x=H+G|0,v^=x<<7|x>>>32-7,x=v+H|0,m^=x<<9|x>>>32-9,x=m+v|0,G^=x<<13|x>>>32-13,x=G+m|0,H^=x<<18|x>>>32-18,x=T+A|0,C^=x<<7|x>>>32-7,x=C+T|0,B^=x<<9|x>>>32-9,x=B+C|0,A^=x<<13|x>>>32-13,x=A+B|0,T^=x<<18|x>>>32-18,x=oe+ce|0,V^=x<<7|x>>>32-7,x=V+oe|0,ie^=x<<9|x>>>32-9,x=ie+V|0,ce^=x<<13|x>>>32-13,x=ce+ie|0,oe^=x<<18|x>>>32-18;o[0]=F>>>0&255,o[1]=F>>>8&255,o[2]=F>>>16&255,o[3]=F>>>24&255,o[4]=H>>>0&255,o[5]=H>>>8&255,o[6]=H>>>16&255,o[7]=H>>>24&255,o[8]=T>>>0&255,o[9]=T>>>8&255,o[10]=T>>>16&255,o[11]=T>>>24&255,o[12]=oe>>>0&255,o[13]=oe>>>8&255,o[14]=oe>>>16&255,o[15]=oe>>>24&255,o[16]=v>>>0&255,o[17]=v>>>8&255,o[18]=v>>>16&255,o[19]=v>>>24&255,o[20]=m>>>0&255,o[21]=m>>>8&255,o[22]=m>>>16&255,o[23]=m>>>24&255,o[24]=B>>>0&255,o[25]=B>>>8&255,o[26]=B>>>16&255,o[27]=B>>>24&255,o[28]=A>>>0&255,o[29]=A>>>8&255,o[30]=A>>>16&255,o[31]=A>>>24&255}function I(o,u,f,s){he(o,u,f,s)}function S(o,u,f,s){$(o,u,f,s)}var fe=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function ye(o,u,f,s,l,_,g){var E=new Uint8Array(16),k=new Uint8Array(64),K,N;for(N=0;N<16;N++)E[N]=0;for(N=0;N<8;N++)E[N]=_[N];for(;l>=64;){for(I(k,E,g,fe),N=0;N<64;N++)o[u+N]=f[s+N]^k[N];for(K=1,N=8;N<16;N++)K=K+(E[N]&255)|0,E[N]=K&255,K>>>=8;l-=64,u+=64,s+=64}if(l>0)for(I(k,E,g,fe),N=0;N=64;){for(I(g,_,l,fe),k=0;k<64;k++)o[u+k]=g[k];for(E=1,k=8;k<16;k++)E=E+(_[k]&255)|0,_[k]=E&255,E>>>=8;f-=64,u+=64}if(f>0)for(I(g,_,l,fe),k=0;k>>13|f<<3)&8191,s=o[4]&255|(o[5]&255)<<8,this.r[2]=(f>>>10|s<<6)&7939,l=o[6]&255|(o[7]&255)<<8,this.r[3]=(s>>>7|l<<9)&8191,_=o[8]&255|(o[9]&255)<<8,this.r[4]=(l>>>4|_<<12)&255,this.r[5]=_>>>1&8190,g=o[10]&255|(o[11]&255)<<8,this.r[6]=(_>>>14|g<<2)&8191,E=o[12]&255|(o[13]&255)<<8,this.r[7]=(g>>>11|E<<5)&8065,k=o[14]&255|(o[15]&255)<<8,this.r[8]=(E>>>8|k<<8)&8191,this.r[9]=k>>>5&127,this.pad[0]=o[16]&255|(o[17]&255)<<8,this.pad[1]=o[18]&255|(o[19]&255)<<8,this.pad[2]=o[20]&255|(o[21]&255)<<8,this.pad[3]=o[22]&255|(o[23]&255)<<8,this.pad[4]=o[24]&255|(o[25]&255)<<8,this.pad[5]=o[26]&255|(o[27]&255)<<8,this.pad[6]=o[28]&255|(o[29]&255)<<8,this.pad[7]=o[30]&255|(o[31]&255)<<8};W.prototype.blocks=function(o,u,f){for(var s=this.fin?0:2048,l,_,g,E,k,K,N,we,D,X,J,se,re,Z,te,ee,F,Y,P,q=this.h[0],G=this.h[1],H=this.h[2],v=this.h[3],m=this.h[4],B=this.h[5],A=this.h[6],T=this.h[7],C=this.h[8],V=this.h[9],ie=this.r[0],ce=this.r[1],oe=this.r[2],x=this.r[3],de=this.r[4],ge=this.r[5],ve=this.r[6],ue=this.r[7],be=this.r[8],_e=this.r[9];f>=16;)l=o[u+0]&255|(o[u+1]&255)<<8,q+=l&8191,_=o[u+2]&255|(o[u+3]&255)<<8,G+=(l>>>13|_<<3)&8191,g=o[u+4]&255|(o[u+5]&255)<<8,H+=(_>>>10|g<<6)&8191,E=o[u+6]&255|(o[u+7]&255)<<8,v+=(g>>>7|E<<9)&8191,k=o[u+8]&255|(o[u+9]&255)<<8,m+=(E>>>4|k<<12)&8191,B+=k>>>1&8191,K=o[u+10]&255|(o[u+11]&255)<<8,A+=(k>>>14|K<<2)&8191,N=o[u+12]&255|(o[u+13]&255)<<8,T+=(K>>>11|N<<5)&8191,we=o[u+14]&255|(o[u+15]&255)<<8,C+=(N>>>8|we<<8)&8191,V+=we>>>5|s,D=0,X=D,X+=q*ie,X+=G*(5*_e),X+=H*(5*be),X+=v*(5*ue),X+=m*(5*ve),D=X>>>13,X&=8191,X+=B*(5*ge),X+=A*(5*de),X+=T*(5*x),X+=C*(5*oe),X+=V*(5*ce),D+=X>>>13,X&=8191,J=D,J+=q*ce,J+=G*ie,J+=H*(5*_e),J+=v*(5*be),J+=m*(5*ue),D=J>>>13,J&=8191,J+=B*(5*ve),J+=A*(5*ge),J+=T*(5*de),J+=C*(5*x),J+=V*(5*oe),D+=J>>>13,J&=8191,se=D,se+=q*oe,se+=G*ce,se+=H*ie,se+=v*(5*_e),se+=m*(5*be),D=se>>>13,se&=8191,se+=B*(5*ue),se+=A*(5*ve),se+=T*(5*ge),se+=C*(5*de),se+=V*(5*x),D+=se>>>13,se&=8191,re=D,re+=q*x,re+=G*oe,re+=H*ce,re+=v*ie,re+=m*(5*_e),D=re>>>13,re&=8191,re+=B*(5*be),re+=A*(5*ue),re+=T*(5*ve),re+=C*(5*ge),re+=V*(5*de),D+=re>>>13,re&=8191,Z=D,Z+=q*de,Z+=G*x,Z+=H*oe,Z+=v*ce,Z+=m*ie,D=Z>>>13,Z&=8191,Z+=B*(5*_e),Z+=A*(5*be),Z+=T*(5*ue),Z+=C*(5*ve),Z+=V*(5*ge),D+=Z>>>13,Z&=8191,te=D,te+=q*ge,te+=G*de,te+=H*x,te+=v*oe,te+=m*ce,D=te>>>13,te&=8191,te+=B*ie,te+=A*(5*_e),te+=T*(5*be),te+=C*(5*ue),te+=V*(5*ve),D+=te>>>13,te&=8191,ee=D,ee+=q*ve,ee+=G*ge,ee+=H*de,ee+=v*x,ee+=m*oe,D=ee>>>13,ee&=8191,ee+=B*ce,ee+=A*ie,ee+=T*(5*_e),ee+=C*(5*be),ee+=V*(5*ue),D+=ee>>>13,ee&=8191,F=D,F+=q*ue,F+=G*ve,F+=H*ge,F+=v*de,F+=m*x,D=F>>>13,F&=8191,F+=B*oe,F+=A*ce,F+=T*ie,F+=C*(5*_e),F+=V*(5*be),D+=F>>>13,F&=8191,Y=D,Y+=q*be,Y+=G*ue,Y+=H*ve,Y+=v*ge,Y+=m*de,D=Y>>>13,Y&=8191,Y+=B*x,Y+=A*oe,Y+=T*ce,Y+=C*ie,Y+=V*(5*_e),D+=Y>>>13,Y&=8191,P=D,P+=q*_e,P+=G*be,P+=H*ue,P+=v*ve,P+=m*ge,D=P>>>13,P&=8191,P+=B*de,P+=A*x,P+=T*oe,P+=C*ce,P+=V*ie,D+=P>>>13,P&=8191,D=(D<<2)+D|0,D=D+X|0,X=D&8191,D=D>>>13,J+=D,q=X,G=J,H=se,v=re,m=Z,B=te,A=ee,T=F,C=Y,V=P,u+=16,f-=16;this.h[0]=q,this.h[1]=G,this.h[2]=H,this.h[3]=v,this.h[4]=m,this.h[5]=B,this.h[6]=A,this.h[7]=T,this.h[8]=C,this.h[9]=V},W.prototype.finish=function(o,u){var f=new Uint16Array(10),s,l,_,g;if(this.leftover){for(g=this.leftover,this.buffer[g++]=1;g<16;g++)this.buffer[g]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(s=this.h[1]>>>13,this.h[1]&=8191,g=2;g<10;g++)this.h[g]+=s,s=this.h[g]>>>13,this.h[g]&=8191;for(this.h[0]+=s*5,s=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=s,s=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=s,f[0]=this.h[0]+5,s=f[0]>>>13,f[0]&=8191,g=1;g<10;g++)f[g]=this.h[g]+s,s=f[g]>>>13,f[g]&=8191;for(f[9]-=8192,l=(s^1)-1,g=0;g<10;g++)f[g]&=l;for(l=~l,g=0;g<10;g++)this.h[g]=this.h[g]&l|f[g];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,_=this.h[0]+this.pad[0],this.h[0]=_&65535,g=1;g<8;g++)_=(this.h[g]+this.pad[g]|0)+(_>>>16)|0,this.h[g]=_&65535;o[u+0]=this.h[0]>>>0&255,o[u+1]=this.h[0]>>>8&255,o[u+2]=this.h[1]>>>0&255,o[u+3]=this.h[1]>>>8&255,o[u+4]=this.h[2]>>>0&255,o[u+5]=this.h[2]>>>8&255,o[u+6]=this.h[3]>>>0&255,o[u+7]=this.h[3]>>>8&255,o[u+8]=this.h[4]>>>0&255,o[u+9]=this.h[4]>>>8&255,o[u+10]=this.h[5]>>>0&255,o[u+11]=this.h[5]>>>8&255,o[u+12]=this.h[6]>>>0&255,o[u+13]=this.h[6]>>>8&255,o[u+14]=this.h[7]>>>0&255,o[u+15]=this.h[7]>>>8&255},W.prototype.update=function(o,u,f){var s,l;if(this.leftover){for(l=16-this.leftover,l>f&&(l=f),s=0;s=16&&(l=f-f%16,this.blocks(o,u,l),u+=l,f-=l),f){for(s=0;s>16&1),_[f-1]&=65535;_[15]=g[15]-32767-(_[14]>>16&1),l=_[15]>>16&1,_[14]&=65535,Wt(g,_,1-l)}for(f=0;f<16;f++)o[2*f]=g[f]&255,o[2*f+1]=g[f]>>8}function ri(o,u){var f=new Uint8Array(32),s=new Uint8Array(32);return Yt(f,o),Yt(s,u),Q(f,0,s,0)}function si(o){var u=new Uint8Array(32);return Yt(u,o),u[0]&1}function jr(o,u){var f;for(f=0;f<16;f++)o[f]=u[2*f]+(u[2*f+1]<<8);o[15]&=32767}function at(o,u,f){for(var s=0;s<16;s++)o[s]=u[s]+f[s]}function ct(o,u,f){for(var s=0;s<16;s++)o[s]=u[s]-f[s]}function pe(o,u,f){var s,l,_=0,g=0,E=0,k=0,K=0,N=0,we=0,D=0,X=0,J=0,se=0,re=0,Z=0,te=0,ee=0,F=0,Y=0,P=0,q=0,G=0,H=0,v=0,m=0,B=0,A=0,T=0,C=0,V=0,ie=0,ce=0,oe=0,x=f[0],de=f[1],ge=f[2],ve=f[3],ue=f[4],be=f[5],_e=f[6],Oe=f[7],Ue=f[8],Ce=f[9],$e=f[10],ke=f[11],He=f[12],qe=f[13],je=f[14],Ge=f[15];s=u[0],_+=s*x,g+=s*de,E+=s*ge,k+=s*ve,K+=s*ue,N+=s*be,we+=s*_e,D+=s*Oe,X+=s*Ue,J+=s*Ce,se+=s*$e,re+=s*ke,Z+=s*He,te+=s*qe,ee+=s*je,F+=s*Ge,s=u[1],g+=s*x,E+=s*de,k+=s*ge,K+=s*ve,N+=s*ue,we+=s*be,D+=s*_e,X+=s*Oe,J+=s*Ue,se+=s*Ce,re+=s*$e,Z+=s*ke,te+=s*He,ee+=s*qe,F+=s*je,Y+=s*Ge,s=u[2],E+=s*x,k+=s*de,K+=s*ge,N+=s*ve,we+=s*ue,D+=s*be,X+=s*_e,J+=s*Oe,se+=s*Ue,re+=s*Ce,Z+=s*$e,te+=s*ke,ee+=s*He,F+=s*qe,Y+=s*je,P+=s*Ge,s=u[3],k+=s*x,K+=s*de,N+=s*ge,we+=s*ve,D+=s*ue,X+=s*be,J+=s*_e,se+=s*Oe,re+=s*Ue,Z+=s*Ce,te+=s*$e,ee+=s*ke,F+=s*He,Y+=s*qe,P+=s*je,q+=s*Ge,s=u[4],K+=s*x,N+=s*de,we+=s*ge,D+=s*ve,X+=s*ue,J+=s*be,se+=s*_e,re+=s*Oe,Z+=s*Ue,te+=s*Ce,ee+=s*$e,F+=s*ke,Y+=s*He,P+=s*qe,q+=s*je,G+=s*Ge,s=u[5],N+=s*x,we+=s*de,D+=s*ge,X+=s*ve,J+=s*ue,se+=s*be,re+=s*_e,Z+=s*Oe,te+=s*Ue,ee+=s*Ce,F+=s*$e,Y+=s*ke,P+=s*He,q+=s*qe,G+=s*je,H+=s*Ge,s=u[6],we+=s*x,D+=s*de,X+=s*ge,J+=s*ve,se+=s*ue,re+=s*be,Z+=s*_e,te+=s*Oe,ee+=s*Ue,F+=s*Ce,Y+=s*$e,P+=s*ke,q+=s*He,G+=s*qe,H+=s*je,v+=s*Ge,s=u[7],D+=s*x,X+=s*de,J+=s*ge,se+=s*ve,re+=s*ue,Z+=s*be,te+=s*_e,ee+=s*Oe,F+=s*Ue,Y+=s*Ce,P+=s*$e,q+=s*ke,G+=s*He,H+=s*qe,v+=s*je,m+=s*Ge,s=u[8],X+=s*x,J+=s*de,se+=s*ge,re+=s*ve,Z+=s*ue,te+=s*be,ee+=s*_e,F+=s*Oe,Y+=s*Ue,P+=s*Ce,q+=s*$e,G+=s*ke,H+=s*He,v+=s*qe,m+=s*je,B+=s*Ge,s=u[9],J+=s*x,se+=s*de,re+=s*ge,Z+=s*ve,te+=s*ue,ee+=s*be,F+=s*_e,Y+=s*Oe,P+=s*Ue,q+=s*Ce,G+=s*$e,H+=s*ke,v+=s*He,m+=s*qe,B+=s*je,A+=s*Ge,s=u[10],se+=s*x,re+=s*de,Z+=s*ge,te+=s*ve,ee+=s*ue,F+=s*be,Y+=s*_e,P+=s*Oe,q+=s*Ue,G+=s*Ce,H+=s*$e,v+=s*ke,m+=s*He,B+=s*qe,A+=s*je,T+=s*Ge,s=u[11],re+=s*x,Z+=s*de,te+=s*ge,ee+=s*ve,F+=s*ue,Y+=s*be,P+=s*_e,q+=s*Oe,G+=s*Ue,H+=s*Ce,v+=s*$e,m+=s*ke,B+=s*He,A+=s*qe,T+=s*je,C+=s*Ge,s=u[12],Z+=s*x,te+=s*de,ee+=s*ge,F+=s*ve,Y+=s*ue,P+=s*be,q+=s*_e,G+=s*Oe,H+=s*Ue,v+=s*Ce,m+=s*$e,B+=s*ke,A+=s*He,T+=s*qe,C+=s*je,V+=s*Ge,s=u[13],te+=s*x,ee+=s*de,F+=s*ge,Y+=s*ve,P+=s*ue,q+=s*be,G+=s*_e,H+=s*Oe,v+=s*Ue,m+=s*Ce,B+=s*$e,A+=s*ke,T+=s*He,C+=s*qe,V+=s*je,ie+=s*Ge,s=u[14],ee+=s*x,F+=s*de,Y+=s*ge,P+=s*ve,q+=s*ue,G+=s*be,H+=s*_e,v+=s*Oe,m+=s*Ue,B+=s*Ce,A+=s*$e,T+=s*ke,C+=s*He,V+=s*qe,ie+=s*je,ce+=s*Ge,s=u[15],F+=s*x,Y+=s*de,P+=s*ge,q+=s*ve,G+=s*ue,H+=s*be,v+=s*_e,m+=s*Oe,B+=s*Ue,A+=s*Ce,T+=s*$e,C+=s*ke,V+=s*He,ie+=s*qe,ce+=s*je,oe+=s*Ge,_+=38*Y,g+=38*P,E+=38*q,k+=38*G,K+=38*H,N+=38*v,we+=38*m,D+=38*B,X+=38*A,J+=38*T,se+=38*C,re+=38*V,Z+=38*ie,te+=38*ce,ee+=38*oe,l=1,s=_+l+65535,l=Math.floor(s/65536),_=s-l*65536,s=g+l+65535,l=Math.floor(s/65536),g=s-l*65536,s=E+l+65535,l=Math.floor(s/65536),E=s-l*65536,s=k+l+65535,l=Math.floor(s/65536),k=s-l*65536,s=K+l+65535,l=Math.floor(s/65536),K=s-l*65536,s=N+l+65535,l=Math.floor(s/65536),N=s-l*65536,s=we+l+65535,l=Math.floor(s/65536),we=s-l*65536,s=D+l+65535,l=Math.floor(s/65536),D=s-l*65536,s=X+l+65535,l=Math.floor(s/65536),X=s-l*65536,s=J+l+65535,l=Math.floor(s/65536),J=s-l*65536,s=se+l+65535,l=Math.floor(s/65536),se=s-l*65536,s=re+l+65535,l=Math.floor(s/65536),re=s-l*65536,s=Z+l+65535,l=Math.floor(s/65536),Z=s-l*65536,s=te+l+65535,l=Math.floor(s/65536),te=s-l*65536,s=ee+l+65535,l=Math.floor(s/65536),ee=s-l*65536,s=F+l+65535,l=Math.floor(s/65536),F=s-l*65536,_+=l-1+37*(l-1),l=1,s=_+l+65535,l=Math.floor(s/65536),_=s-l*65536,s=g+l+65535,l=Math.floor(s/65536),g=s-l*65536,s=E+l+65535,l=Math.floor(s/65536),E=s-l*65536,s=k+l+65535,l=Math.floor(s/65536),k=s-l*65536,s=K+l+65535,l=Math.floor(s/65536),K=s-l*65536,s=N+l+65535,l=Math.floor(s/65536),N=s-l*65536,s=we+l+65535,l=Math.floor(s/65536),we=s-l*65536,s=D+l+65535,l=Math.floor(s/65536),D=s-l*65536,s=X+l+65535,l=Math.floor(s/65536),X=s-l*65536,s=J+l+65535,l=Math.floor(s/65536),J=s-l*65536,s=se+l+65535,l=Math.floor(s/65536),se=s-l*65536,s=re+l+65535,l=Math.floor(s/65536),re=s-l*65536,s=Z+l+65535,l=Math.floor(s/65536),Z=s-l*65536,s=te+l+65535,l=Math.floor(s/65536),te=s-l*65536,s=ee+l+65535,l=Math.floor(s/65536),ee=s-l*65536,s=F+l+65535,l=Math.floor(s/65536),F=s-l*65536,_+=l-1+37*(l-1),o[0]=_,o[1]=g,o[2]=E,o[3]=k,o[4]=K,o[5]=N,o[6]=we,o[7]=D,o[8]=X,o[9]=J,o[10]=se,o[11]=re,o[12]=Z,o[13]=te,o[14]=ee,o[15]=F}function tt(o,u){pe(o,u,u)}function ii(o,u){var f=n(),s;for(s=0;s<16;s++)f[s]=u[s];for(s=253;s>=0;s--)tt(f,f),s!==2&&s!==4&&pe(f,f,u);for(s=0;s<16;s++)o[s]=f[s]}function oi(o,u){var f=n(),s;for(s=0;s<16;s++)f[s]=u[s];for(s=250;s>=0;s--)tt(f,f),s!==1&&pe(f,f,u);for(s=0;s<16;s++)o[s]=f[s]}function Mn(o,u,f){var s=new Uint8Array(32),l=new Float64Array(80),_,g,E=n(),k=n(),K=n(),N=n(),we=n(),D=n();for(g=0;g<31;g++)s[g]=u[g];for(s[31]=u[31]&127|64,s[0]&=248,jr(l,f),g=0;g<16;g++)k[g]=l[g],N[g]=E[g]=K[g]=0;for(E[0]=N[0]=1,g=254;g>=0;--g)_=s[g>>>3]>>>(g&7)&1,Wt(E,k,_),Wt(K,N,_),at(we,E,K),ct(E,E,K),at(K,k,N),ct(k,k,N),tt(N,we),tt(D,E),pe(E,K,E),pe(K,k,we),at(we,E,K),ct(E,E,K),tt(k,E),ct(K,N,D),pe(E,K,h),at(E,E,N),pe(K,K,E),pe(E,N,D),pe(N,k,l),tt(k,we),Wt(E,k,_),Wt(K,N,_);for(g=0;g<16;g++)l[g+16]=E[g],l[g+32]=K[g],l[g+48]=k[g],l[g+64]=N[g];var X=l.subarray(32),J=l.subarray(16);return ii(X,X),pe(J,J,X),Yt(o,J),0}function Fn(o,u){return Mn(o,u,a)}function ai(o,u){return r(u,32),Fn(o,u)}function qn(o,u,f){var s=new Uint8Array(32);return Mn(s,f,u),S(o,i,s,fe)}var ci=Ee,La=Ke;function Oa(o,u,f,s,l,_){var g=new Uint8Array(32);return qn(g,l,_),ci(o,u,f,s,g)}function za(o,u,f,s,l,_){var g=new Uint8Array(32);return qn(g,l,_),La(o,u,f,s,g)}var fi=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function ui(o,u,f,s){for(var l=new Int32Array(16),_=new Int32Array(16),g,E,k,K,N,we,D,X,J,se,re,Z,te,ee,F,Y,P,q,G,H,v,m,B,A,T,C,V=o[0],ie=o[1],ce=o[2],oe=o[3],x=o[4],de=o[5],ge=o[6],ve=o[7],ue=u[0],be=u[1],_e=u[2],Oe=u[3],Ue=u[4],Ce=u[5],$e=u[6],ke=u[7],He=0;s>=128;){for(G=0;G<16;G++)H=8*G+He,l[G]=f[H+0]<<24|f[H+1]<<16|f[H+2]<<8|f[H+3],_[G]=f[H+4]<<24|f[H+5]<<16|f[H+6]<<8|f[H+7];for(G=0;G<80;G++)if(g=V,E=ie,k=ce,K=oe,N=x,we=de,D=ge,X=ve,J=ue,se=be,re=_e,Z=Oe,te=Ue,ee=Ce,F=$e,Y=ke,v=ve,m=ke,B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=(x>>>14|Ue<<32-14)^(x>>>18|Ue<<32-18)^(Ue>>>41-32|x<<32-(41-32)),m=(Ue>>>14|x<<32-14)^(Ue>>>18|x<<32-18)^(x>>>41-32|Ue<<32-(41-32)),B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,v=x&de^~x&ge,m=Ue&Ce^~Ue&$e,B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,v=fi[G*2],m=fi[G*2+1],B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,v=l[G%16],m=_[G%16],B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,P=T&65535|C<<16,q=B&65535|A<<16,v=P,m=q,B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=(V>>>28|ue<<32-28)^(ue>>>34-32|V<<32-(34-32))^(ue>>>39-32|V<<32-(39-32)),m=(ue>>>28|V<<32-28)^(V>>>34-32|ue<<32-(34-32))^(V>>>39-32|ue<<32-(39-32)),B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,v=V&ie^V&ce^ie&ce,m=ue&be^ue&_e^be&_e,B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,X=T&65535|C<<16,Y=B&65535|A<<16,v=K,m=Z,B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=P,m=q,B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,K=T&65535|C<<16,Z=B&65535|A<<16,ie=g,ce=E,oe=k,x=K,de=N,ge=we,ve=D,V=X,be=J,_e=se,Oe=re,Ue=Z,Ce=te,$e=ee,ke=F,ue=Y,G%16===15)for(H=0;H<16;H++)v=l[H],m=_[H],B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=l[(H+9)%16],m=_[(H+9)%16],B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,P=l[(H+1)%16],q=_[(H+1)%16],v=(P>>>1|q<<32-1)^(P>>>8|q<<32-8)^P>>>7,m=(q>>>1|P<<32-1)^(q>>>8|P<<32-8)^(q>>>7|P<<32-7),B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,P=l[(H+14)%16],q=_[(H+14)%16],v=(P>>>19|q<<32-19)^(q>>>61-32|P<<32-(61-32))^P>>>6,m=(q>>>19|P<<32-19)^(P>>>61-32|q<<32-(61-32))^(q>>>6|P<<32-6),B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,l[H]=T&65535|C<<16,_[H]=B&65535|A<<16;v=V,m=ue,B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=o[0],m=u[0],B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,o[0]=V=T&65535|C<<16,u[0]=ue=B&65535|A<<16,v=ie,m=be,B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=o[1],m=u[1],B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,o[1]=ie=T&65535|C<<16,u[1]=be=B&65535|A<<16,v=ce,m=_e,B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=o[2],m=u[2],B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,o[2]=ce=T&65535|C<<16,u[2]=_e=B&65535|A<<16,v=oe,m=Oe,B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=o[3],m=u[3],B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,o[3]=oe=T&65535|C<<16,u[3]=Oe=B&65535|A<<16,v=x,m=Ue,B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=o[4],m=u[4],B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,o[4]=x=T&65535|C<<16,u[4]=Ue=B&65535|A<<16,v=de,m=Ce,B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=o[5],m=u[5],B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,o[5]=de=T&65535|C<<16,u[5]=Ce=B&65535|A<<16,v=ge,m=$e,B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=o[6],m=u[6],B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,o[6]=ge=T&65535|C<<16,u[6]=$e=B&65535|A<<16,v=ve,m=ke,B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=o[7],m=u[7],B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,o[7]=ve=T&65535|C<<16,u[7]=ke=B&65535|A<<16,He+=128,s-=128}return s}function zt(o,u,f){var s=new Int32Array(8),l=new Int32Array(8),_=new Uint8Array(256),g,E=f;for(s[0]=1779033703,s[1]=3144134277,s[2]=1013904242,s[3]=2773480762,s[4]=1359893119,s[5]=2600822924,s[6]=528734635,s[7]=1541459225,l[0]=4089235720,l[1]=2227873595,l[2]=4271175723,l[3]=1595750129,l[4]=2917565137,l[5]=725511199,l[6]=4215389547,l[7]=327033209,ui(s,l,u,f),f%=128,g=0;g=0;--l)s=f[l/8|0]>>(l&7)&1,li(o,u,s),jn(u,o),jn(o,o),li(o,u,s)}function Gn(o,u){var f=[n(),n(),n(),n()];We(f[0],p),We(f[1],w),We(f[2],d),pe(f[3],p,w),Kr(o,f,u)}function Wr(o,u,f){var s=new Uint8Array(64),l=[n(),n(),n(),n()],_;for(f||r(u,32),zt(s,u,32),s[0]&=248,s[31]&=127,s[31]|=64,Gn(l,s),Gr(o,l),_=0;_<32;_++)u[_+32]=o[_];return 0}var Kn=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Yr(o,u){var f,s,l,_;for(s=63;s>=32;--s){for(f=0,l=s-32,_=s-12;l<_;++l)u[l]+=f-16*u[s]*Kn[l-(s-32)],f=Math.floor((u[l]+128)/256),u[l]-=f*256;u[l]+=f,u[s]=0}for(f=0,l=0;l<32;l++)u[l]+=f-(u[31]>>4)*Kn[l],f=u[l]>>8,u[l]&=255;for(l=0;l<32;l++)u[l]-=f*Kn[l];for(s=0;s<32;s++)u[s+1]+=u[s]>>8,o[s]=u[s]&255}function Vr(o){var u=new Float64Array(64),f;for(f=0;f<64;f++)u[f]=o[f];for(f=0;f<64;f++)o[f]=0;Yr(o,u)}function di(o,u,f,s){var l=new Uint8Array(64),_=new Uint8Array(64),g=new Uint8Array(64),E,k,K=new Float64Array(64),N=[n(),n(),n(),n()];zt(l,s,32),l[0]&=248,l[31]&=127,l[31]|=64;var we=f+64;for(E=0;E>7&&ct(o[0],c,o[0]),pe(o[3],o[0],o[1]),0)}function Xr(o,u,f,s){var l,_=new Uint8Array(32),g=new Uint8Array(64),E=[n(),n(),n(),n()],k=[n(),n(),n(),n()];if(f<64||Ha(k,s))return-1;for(l=0;l=0},t.sign.keyPair=function(){var o=new Uint8Array(Ht),u=new Uint8Array(Xt);return Wr(o,u),{publicKey:o,secretKey:u}},t.sign.keyPair.fromSecretKey=function(o){if(Qe(o),o.length!==Xt)throw new Error("bad secret key size");for(var u=new Uint8Array(Ht),f=0;f0&&!t.includes(e.length))throw new TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}Re.bytes=Cs;function go(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");cr(e.outputLen),cr(e.blockLen)}Re.hash=go;function vo(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}Re.exists=vo;function mo(e,t){Cs(e);const n=t.outputLen;if(e.lengthnew Uint8Array(I.buffer,I.byteOffset,I.byteLength);e.u8=n;const r=I=>new Uint32Array(I.buffer,I.byteOffset,Math.floor(I.byteLength/4));e.u32=r;const i=I=>new DataView(I.buffer,I.byteOffset,I.byteLength);e.createView=i;const a=(I,S)=>I<<32-S|I>>>S;if(e.rotr=a,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!e.isLE)throw new Error("Non little-endian hardware is not supported");const c=Array.from({length:256},(I,S)=>S.toString(16).padStart(2,"0"));function d(I){if(!(I instanceof Uint8Array))throw new Error("Uint8Array expected");let S="";for(let fe=0;fe{};e.nextTick=y;async function b(I,S,fe){let ye=Date.now();for(let ae=0;ae=0&&xeye instanceof Uint8Array))throw new Error("Uint8Array list expected");if(I.length===1)return I[0];const S=I.reduce((ye,ae)=>ye+ae.length,0),fe=new Uint8Array(S);for(let ye=0,ae=0;yeObject.prototype.toString.call(I)==="[object Object]"&&I.constructor===Object;function L(I,S){if(S!==void 0&&(typeof S!="object"||!z(S)))throw new TypeError("Options should be object or undefined");return Object.assign(I,S)}e.checkOpts=L;function Q(I){const S=ye=>I().update(w(ye)).digest(),fe=I();return S.outputLen=fe.outputLen,S.blockLen=fe.blockLen,S.create=()=>I(),S}e.wrapConstructor=Q;function he(I){const S=(ye,ae)=>I(ae).update(w(ye)).digest(),fe=I({});return S.outputLen=fe.outputLen,S.blockLen=fe.blockLen,S.create=ye=>I(ye),S}e.wrapConstructorWithOpts=he;function $(I=32){if(t.crypto.web)return t.crypto.web.getRandomValues(new Uint8Array(I));if(t.crypto.node)return new Uint8Array(t.crypto.node.randomBytes(I).buffer);throw new Error("The environment doesn't have randomBytes function")}e.randomBytes=$})(Dt);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=void 0;const t=Re,n=Dt;class r extends n.Hash{constructor(c,d){super(),this.finished=!1,this.destroyed=!1,t.default.hash(c);const h=(0,n.toBytes)(d);if(this.iHash=c.create(),typeof this.iHash.update!="function")throw new TypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const y=this.blockLen,b=new Uint8Array(y);b.set(h.length>y?c.create().update(h).digest():h);for(let p=0;pnew r(a,c).update(d).digest();e.hmac=i,e.hmac.create=(a,c)=>new r(a,c)})(Ao);Object.defineProperty(sn,"__esModule",{value:!0});sn.pbkdf2Async=sn.pbkdf2=void 0;const Xn=Re,sc=Ao,tn=Dt;function Eo(e,t,n,r){Xn.default.hash(e);const i=(0,tn.checkOpts)({dkLen:32,asyncTick:10},r),{c:a,dkLen:c,asyncTick:d}=i;if(Xn.default.number(a),Xn.default.number(c),Xn.default.number(d),a<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const h=(0,tn.toBytes)(t),y=(0,tn.toBytes)(n),b=new Uint8Array(c),p=sc.hmac.create(e,h),w=p._cloneInto().update(y);return{c:a,dkLen:c,asyncTick:d,DK:b,PRF:p,PRFSalt:w}}function To(e,t,n,r,i){return e.destroy(),t.destroy(),r&&r.destroy(),i.fill(0),n}function ic(e,t,n,r){const{c:i,dkLen:a,DK:c,PRF:d,PRFSalt:h}=Eo(e,t,n,r);let y;const b=new Uint8Array(4),p=(0,tn.createView)(b),w=new Uint8Array(d.outputLen);for(let U=1,O=0;O{h._cloneInto(b).update(U).digestInto(U);for(let he=0;he>i&a),d=Number(n&a),h=r?4:0,y=r?0:4;e.setUint32(t+h,c,r),e.setUint32(t+y,d,r)}let cc=class extends An.Hash{constructor(t,n,r,i){super(),this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=(0,An.createView)(this.buffer)}update(t){ts.default.exists(this);const{view:n,buffer:r,blockLen:i}=this;t=(0,An.toBytes)(t);const a=t.length;for(let c=0;ci-c&&(this.process(r,0),c=0);for(let p=c;pb.length)throw new Error("_sha2: outputLen bigger than state");for(let p=0;pe&t^~e&n,lc=(e,t,n)=>e&t^e&n^t&n,dc=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]),wt=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),gt=new Uint32Array(64);let Uo=class extends fc.SHA2{constructor(){super(64,32,8,!1),this.A=wt[0]|0,this.B=wt[1]|0,this.C=wt[2]|0,this.D=wt[3]|0,this.E=wt[4]|0,this.F=wt[5]|0,this.G=wt[6]|0,this.H=wt[7]|0}get(){const{A:t,B:n,C:r,D:i,E:a,F:c,G:d,H:h}=this;return[t,n,r,i,a,c,d,h]}set(t,n,r,i,a,c,d,h){this.A=t|0,this.B=n|0,this.C=r|0,this.D=i|0,this.E=a|0,this.F=c|0,this.G=d|0,this.H=h|0}process(t,n){for(let p=0;p<16;p++,n+=4)gt[p]=t.getUint32(n,!1);for(let p=16;p<64;p++){const w=gt[p-15],U=gt[p-2],O=(0,nt.rotr)(w,7)^(0,nt.rotr)(w,18)^w>>>3,z=(0,nt.rotr)(U,17)^(0,nt.rotr)(U,19)^U>>>10;gt[p]=z+gt[p-7]+O+gt[p-16]|0}let{A:r,B:i,C:a,D:c,E:d,F:h,G:y,H:b}=this;for(let p=0;p<64;p++){const w=(0,nt.rotr)(d,6)^(0,nt.rotr)(d,11)^(0,nt.rotr)(d,25),U=b+w+uc(d,h,y)+dc[p]+gt[p]|0,z=((0,nt.rotr)(r,2)^(0,nt.rotr)(r,13)^(0,nt.rotr)(r,22))+lc(r,i,a)|0;b=y,y=h,h=d,d=c+U|0,c=a,a=i,i=r,r=U+z|0}r=r+this.A|0,i=i+this.B|0,a=a+this.C|0,c=c+this.D|0,d=d+this.E|0,h=h+this.F|0,y=y+this.G|0,b=b+this.H|0,this.set(r,i,a,c,d,h,y,b)}roundClean(){gt.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};class hc extends Uo{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}on.sha256=(0,nt.wrapConstructor)(()=>new Uo);on.sha224=(0,nt.wrapConstructor)(()=>new hc);var it={},So={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.add=e.toBig=e.split=e.fromBig=void 0;const t=BigInt(2**32-1),n=BigInt(32);function r(M,W=!1){return W?{h:Number(M&t),l:Number(M>>n&t)}:{h:Number(M>>n&t)|0,l:Number(M&t)|0}}e.fromBig=r;function i(M,W=!1){let R=new Uint32Array(M.length),Ae=new Uint32Array(M.length);for(let Ee=0;EeBigInt(M>>>0)<>>0);e.toBig=a;const c=(M,W,R)=>M>>>R,d=(M,W,R)=>M<<32-R|W>>>R,h=(M,W,R)=>M>>>R|W<<32-R,y=(M,W,R)=>M<<32-R|W>>>R,b=(M,W,R)=>M<<64-R|W>>>R-32,p=(M,W,R)=>M>>>R-32|W<<64-R,w=(M,W)=>W,U=(M,W)=>M,O=(M,W,R)=>M<>>32-R,z=(M,W,R)=>W<>>32-R,L=(M,W,R)=>W<>>64-R,Q=(M,W,R)=>M<>>64-R;function he(M,W,R,Ae){const Ee=(W>>>0)+(Ae>>>0);return{h:M+R+(Ee/2**32|0)|0,l:Ee|0}}e.add=he;const $=(M,W,R)=>(M>>>0)+(W>>>0)+(R>>>0),I=(M,W,R,Ae)=>W+R+Ae+(M/2**32|0)|0,S=(M,W,R,Ae)=>(M>>>0)+(W>>>0)+(R>>>0)+(Ae>>>0),fe=(M,W,R,Ae,Ee)=>W+R+Ae+Ee+(M/2**32|0)|0,ye=(M,W,R,Ae,Ee)=>(M>>>0)+(W>>>0)+(R>>>0)+(Ae>>>0)+(Ee>>>0),ae=(M,W,R,Ae,Ee,Ke)=>W+R+Ae+Ee+Ke+(M/2**32|0)|0,xe={fromBig:r,split:i,toBig:e.toBig,shrSH:c,shrSL:d,rotrSH:h,rotrSL:y,rotrBH:b,rotrBL:p,rotr32H:w,rotr32L:U,rotlSH:O,rotlSL:z,rotlBH:L,rotlBL:Q,add:he,add3L:$,add3H:I,add4L:S,add4H:fe,add5H:ae,add5L:ye};e.default=xe})(So);Object.defineProperty(it,"__esModule",{value:!0});it.sha384=it.sha512_256=it.sha512_224=it.sha512=it.SHA512=void 0;const xc=$n,le=So,hr=Dt,[pc,yc]=le.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),vt=new Uint32Array(80),mt=new Uint32Array(80);let kn=class extends xc.SHA2{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:t,Al:n,Bh:r,Bl:i,Ch:a,Cl:c,Dh:d,Dl:h,Eh:y,El:b,Fh:p,Fl:w,Gh:U,Gl:O,Hh:z,Hl:L}=this;return[t,n,r,i,a,c,d,h,y,b,p,w,U,O,z,L]}set(t,n,r,i,a,c,d,h,y,b,p,w,U,O,z,L){this.Ah=t|0,this.Al=n|0,this.Bh=r|0,this.Bl=i|0,this.Ch=a|0,this.Cl=c|0,this.Dh=d|0,this.Dl=h|0,this.Eh=y|0,this.El=b|0,this.Fh=p|0,this.Fl=w|0,this.Gh=U|0,this.Gl=O|0,this.Hh=z|0,this.Hl=L|0}process(t,n){for(let $=0;$<16;$++,n+=4)vt[$]=t.getUint32(n),mt[$]=t.getUint32(n+=4);for(let $=16;$<80;$++){const I=vt[$-15]|0,S=mt[$-15]|0,fe=le.default.rotrSH(I,S,1)^le.default.rotrSH(I,S,8)^le.default.shrSH(I,S,7),ye=le.default.rotrSL(I,S,1)^le.default.rotrSL(I,S,8)^le.default.shrSL(I,S,7),ae=vt[$-2]|0,xe=mt[$-2]|0,M=le.default.rotrSH(ae,xe,19)^le.default.rotrBH(ae,xe,61)^le.default.shrSH(ae,xe,6),W=le.default.rotrSL(ae,xe,19)^le.default.rotrBL(ae,xe,61)^le.default.shrSL(ae,xe,6),R=le.default.add4L(ye,W,mt[$-7],mt[$-16]),Ae=le.default.add4H(R,fe,M,vt[$-7],vt[$-16]);vt[$]=Ae|0,mt[$]=R|0}let{Ah:r,Al:i,Bh:a,Bl:c,Ch:d,Cl:h,Dh:y,Dl:b,Eh:p,El:w,Fh:U,Fl:O,Gh:z,Gl:L,Hh:Q,Hl:he}=this;for(let $=0;$<80;$++){const I=le.default.rotrSH(p,w,14)^le.default.rotrSH(p,w,18)^le.default.rotrBH(p,w,41),S=le.default.rotrSL(p,w,14)^le.default.rotrSL(p,w,18)^le.default.rotrBL(p,w,41),fe=p&U^~p&z,ye=w&O^~w&L,ae=le.default.add5L(he,S,ye,yc[$],mt[$]),xe=le.default.add5H(ae,Q,I,fe,pc[$],vt[$]),M=ae|0,W=le.default.rotrSH(r,i,28)^le.default.rotrBH(r,i,34)^le.default.rotrBH(r,i,39),R=le.default.rotrSL(r,i,28)^le.default.rotrBL(r,i,34)^le.default.rotrBL(r,i,39),Ae=r&a^r&d^a&d,Ee=i&c^i&h^c&h;Q=z|0,he=L|0,z=U|0,L=O|0,U=p|0,O=w|0,{h:p,l:w}=le.default.add(y|0,b|0,xe|0,M|0),y=d|0,b=h|0,d=a|0,h=c|0,a=r|0,c=i|0;const Ke=le.default.add3L(M,R,Ee);r=le.default.add3H(Ke,xe,W,Ae),i=Ke|0}({h:r,l:i}=le.default.add(this.Ah|0,this.Al|0,r|0,i|0)),{h:a,l:c}=le.default.add(this.Bh|0,this.Bl|0,a|0,c|0),{h:d,l:h}=le.default.add(this.Ch|0,this.Cl|0,d|0,h|0),{h:y,l:b}=le.default.add(this.Dh|0,this.Dl|0,y|0,b|0),{h:p,l:w}=le.default.add(this.Eh|0,this.El|0,p|0,w|0),{h:U,l:O}=le.default.add(this.Fh|0,this.Fl|0,U|0,O|0),{h:z,l:L}=le.default.add(this.Gh|0,this.Gl|0,z|0,L|0),{h:Q,l:he}=le.default.add(this.Hh|0,this.Hl|0,Q|0,he|0),this.set(r,i,a,c,d,h,y,b,p,w,U,O,z,L,Q,he)}roundClean(){vt.fill(0),mt.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)}};it.SHA512=kn;class bc extends kn{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}let _c=class extends kn{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}},wc=class extends kn{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}};it.sha512=(0,hr.wrapConstructor)(()=>new kn);it.sha512_224=(0,hr.wrapConstructor)(()=>new bc);it.sha512_256=(0,hr.wrapConstructor)(()=>new _c);it.sha384=(0,hr.wrapConstructor)(()=>new wc);const gc=Fa(tc);Object.defineProperty(Ze,"__esModule",{value:!0});var Bo=Ze.mnemonicToSeedSync=Ze.mnemonicToSeed=Ze.validateMnemonic=Ze.entropyToMnemonic=Ze.mnemonicToEntropy=Ze.generateMnemonic=void 0;/*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */const Io=Re,Co=sn,vc=on,$o=it,mc=Dt,Qn=gc,Ac=e=>e[0]==="あいこくしん";function ko(e){if(typeof e!="string")throw new TypeError(`Invalid mnemonic type: ${typeof e}`);return e.normalize("NFKD")}function $s(e){const t=ko(e),n=t.split(" ");if(![12,15,18,21,24].includes(n.length))throw new Error("Invalid mnemonic");return{nfkd:t,words:n}}function Lo(e){Io.default.bytes(e,16,20,24,28,32)}function Ec(e,t=128){if(Io.default.number(t),t%32!==0||t>256)throw new TypeError("Invalid entropy");return Ho((0,mc.randomBytes)(t/8),e)}Ze.generateMnemonic=Ec;const Tc=e=>{const t=8-e.length/4;return new Uint8Array([(0,vc.sha256)(e)[0]>>t<{if(typeof t!="string")throw new Error(`Wordlist: non-string element: ${t}`)}),Qn.utils.chain(Qn.utils.checksum(1,Tc),Qn.utils.radix2(11,!0),Qn.utils.alphabet(e))}function zo(e,t){const{words:n}=$s(e),r=Oo(t).decode(n);return Lo(r),r}Ze.mnemonicToEntropy=zo;function Ho(e,t){return Lo(e),Oo(t).encode(e).join(Ac(t)?" ":" ")}Ze.entropyToMnemonic=Ho;function Uc(e,t){try{zo(e,t)}catch{return!1}return!0}Ze.validateMnemonic=Uc;const No=e=>ko(`mnemonic${e}`);function Sc(e,t=""){return(0,Co.pbkdf2Async)($o.sha512,$s(e).nfkd,No(t),{c:2048,dkLen:64})}Ze.mnemonicToSeed=Sc;function Bc(e,t=""){return(0,Co.pbkdf2)($o.sha512,$s(e).nfkd,No(t),{c:2048,dkLen:64})}Bo=Ze.mnemonicToSeedSync=Bc;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ic=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),ns=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),ht=(e,t)=>e<<32-t|e>>>t,Cc=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!Cc)throw new Error("Non little-endian hardware is not supported");const $c=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Ro(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected");let t="";for(let n=0;ne().update(Ln(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function Lc(e){const t=(r,i)=>e(i).update(Ln(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}function vs(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function Oc(e){if(typeof e!="boolean")throw new Error(`Expected boolean, not ${e}`)}function Do(e,...t){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function zc(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");vs(e.outputLen),vs(e.blockLen)}function Hc(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Nc(e,t){Do(e);const n=t.outputLen;if(e.length>i&a),d=Number(n&a),h=r?4:0,y=r?0:4;e.setUint32(t+h,c,r),e.setUint32(t+y,d,r)}class Mo extends ks{constructor(t,n,r,i){super(),this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=ns(this.buffer)}update(t){et.exists(this);const{view:n,buffer:r,blockLen:i}=this;t=Ln(t);const a=t.length;for(let c=0;ci-c&&(this.process(r,0),c=0);for(let h=c;hd.setUint32(4*y,h,a))}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:r,length:i,finished:a,destroyed:c,pos:d}=this;return t.length=i,t.pos=d,t.finished=a,t.destroyed=c,i%n&&t.buffer.set(r),t}}const Pc=(e,t,n)=>e&t^~e&n,Dc=(e,t,n)=>e&t^e&n^t&n,Mc=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]),At=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Et=new Uint32Array(64);class Fc extends Mo{constructor(){super(64,32,8,!1),this.A=At[0]|0,this.B=At[1]|0,this.C=At[2]|0,this.D=At[3]|0,this.E=At[4]|0,this.F=At[5]|0,this.G=At[6]|0,this.H=At[7]|0}get(){const{A:t,B:n,C:r,D:i,E:a,F:c,G:d,H:h}=this;return[t,n,r,i,a,c,d,h]}set(t,n,r,i,a,c,d,h){this.A=t|0,this.B=n|0,this.C=r|0,this.D=i|0,this.E=a|0,this.F=c|0,this.G=d|0,this.H=h|0}process(t,n){for(let p=0;p<16;p++,n+=4)Et[p]=t.getUint32(n,!1);for(let p=16;p<64;p++){const w=Et[p-15],U=Et[p-2],O=ht(w,7)^ht(w,18)^w>>>3,z=ht(U,17)^ht(U,19)^U>>>10;Et[p]=z+Et[p-7]+O+Et[p-16]|0}let{A:r,B:i,C:a,D:c,E:d,F:h,G:y,H:b}=this;for(let p=0;p<64;p++){const w=ht(d,6)^ht(d,11)^ht(d,25),U=b+w+Pc(d,h,y)+Mc[p]+Et[p]|0,z=(ht(r,2)^ht(r,13)^ht(r,22))+Dc(r,i,a)|0;b=y,y=h,h=d,d=c+U|0,c=a,a=i,i=r,r=U+z|0}r=r+this.A|0,i=i+this.B|0,a=a+this.C|0,c=c+this.D|0,d=d+this.E|0,h=h+this.F|0,y=y+this.G|0,b=b+this.H|0,this.set(r,i,a,c,d,h,y,b)}roundClean(){Et.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const qc=On(()=>new Fc),Jn=BigInt(2**32-1),ms=BigInt(32);function Fo(e,t=!1){return t?{h:Number(e&Jn),l:Number(e>>ms&Jn)}:{h:Number(e>>ms&Jn)|0,l:Number(e&Jn)|0}}function jc(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let i=0;iBigInt(e>>>0)<>>0),Kc=(e,t,n)=>e>>>n,Wc=(e,t,n)=>e<<32-n|t>>>n,Yc=(e,t,n)=>e>>>n|t<<32-n,Vc=(e,t,n)=>e<<32-n|t>>>n,Xc=(e,t,n)=>e<<64-n|t>>>n-32,Qc=(e,t,n)=>e>>>n-32|t<<64-n,Jc=(e,t)=>t,Zc=(e,t)=>e,ef=(e,t,n)=>e<>>32-n,tf=(e,t,n)=>t<>>32-n,nf=(e,t,n)=>t<>>64-n,rf=(e,t,n)=>e<>>64-n;function sf(e,t,n,r){const i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:i|0}}const of=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),af=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,cf=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),ff=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0,uf=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0),lf=(e,t,n,r,i,a)=>t+n+r+i+a+(e/2**32|0)|0,ne={fromBig:Fo,split:jc,toBig:Gc,shrSH:Kc,shrSL:Wc,rotrSH:Yc,rotrSL:Vc,rotrBH:Xc,rotrBL:Qc,rotr32H:Jc,rotr32L:Zc,rotlSH:ef,rotlSL:tf,rotlBH:nf,rotlBL:rf,add:sf,add3L:of,add3H:af,add4L:cf,add4H:ff,add5H:lf,add5L:uf},[qo,jo,Go]=[[],[],[]],df=BigInt(0),En=BigInt(1),hf=BigInt(2),xf=BigInt(7),pf=BigInt(256),yf=BigInt(113);for(let e=0,t=En,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],qo.push(2*(5*r+n)),jo.push((e+1)*(e+2)/2%64);let i=df;for(let a=0;a<7;a++)t=(t<>xf)*yf)%pf,t&hf&&(i^=En<<(En<n>32?ne.rotlBH(e,t,n):ne.rotlSH(e,t,n),mi=(e,t,n)=>n>32?ne.rotlBL(e,t,n):ne.rotlSL(e,t,n);function wf(e,t=24){const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let c=0;c<10;c++)n[c]=e[c]^e[c+10]^e[c+20]^e[c+30]^e[c+40];for(let c=0;c<10;c+=2){const d=(c+8)%10,h=(c+2)%10,y=n[h],b=n[h+1],p=vi(y,b,1)^n[d],w=mi(y,b,1)^n[d+1];for(let U=0;U<50;U+=10)e[c+U]^=p,e[c+U+1]^=w}let i=e[2],a=e[3];for(let c=0;c<24;c++){const d=jo[c],h=vi(i,a,d),y=mi(i,a,d),b=qo[c];i=e[b],a=e[b+1],e[b]=h,e[b+1]=y}for(let c=0;c<50;c+=10){for(let d=0;d<10;d++)n[d]=e[c+d];for(let d=0;d<10;d++)e[c+d]^=~n[(d+2)%10]&n[(d+4)%10]}e[0]^=bf[r],e[1]^=_f[r]}n.fill(0)}class xr extends ks{constructor(t,n,r,i=!1,a=24){if(super(),this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=i,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,et.number(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=Ic(this.state)}keccak(){wf(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){et.exists(this);const{blockLen:n,state:r}=this;t=Ln(t);const i=t.length;for(let a=0;a=r&&this.keccak();const c=Math.min(r-this.posOut,a-i);t.set(n.subarray(this.posOut,this.posOut+c),i),this.posOut+=c,i+=c}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return et.number(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(et.output(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:n,suffix:r,outputLen:i,rounds:a,enableXOF:c}=this;return t||(t=new xr(n,r,i,c,a)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=a,t.suffix=r,t.outputLen=i,t.enableXOF=c,t.destroyed=this.destroyed,t}}const Ot=(e,t,n)=>On(()=>new xr(t,e,n));Ot(6,144,224/8);const an=Ot(6,136,256/8);Ot(6,104,384/8);Ot(6,72,512/8);Ot(1,144,224/8);Ot(1,136,256/8);Ot(1,104,384/8);Ot(1,72,512/8);const Ko=(e,t,n)=>Lc((r={})=>new xr(t,e,r.dkLen===void 0?n:r.dkLen,!0));Ko(31,168,128/8);Ko(31,136,256/8);class Wo extends ks{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,et.hash(t);const r=Ln(n);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new TypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,a=new Uint8Array(i);a.set(r.length>i?t.create().update(r).digest():r);for(let c=0;cnew Wo(e,t).update(n).digest();Ls.create=(e,t)=>new Wo(e,t);const[gf,vf]=ne.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),Tt=new Uint32Array(80),Ut=new Uint32Array(80);class Os extends Mo{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:t,Al:n,Bh:r,Bl:i,Ch:a,Cl:c,Dh:d,Dl:h,Eh:y,El:b,Fh:p,Fl:w,Gh:U,Gl:O,Hh:z,Hl:L}=this;return[t,n,r,i,a,c,d,h,y,b,p,w,U,O,z,L]}set(t,n,r,i,a,c,d,h,y,b,p,w,U,O,z,L){this.Ah=t|0,this.Al=n|0,this.Bh=r|0,this.Bl=i|0,this.Ch=a|0,this.Cl=c|0,this.Dh=d|0,this.Dl=h|0,this.Eh=y|0,this.El=b|0,this.Fh=p|0,this.Fl=w|0,this.Gh=U|0,this.Gl=O|0,this.Hh=z|0,this.Hl=L|0}process(t,n){for(let $=0;$<16;$++,n+=4)Tt[$]=t.getUint32(n),Ut[$]=t.getUint32(n+=4);for(let $=16;$<80;$++){const I=Tt[$-15]|0,S=Ut[$-15]|0,fe=ne.rotrSH(I,S,1)^ne.rotrSH(I,S,8)^ne.shrSH(I,S,7),ye=ne.rotrSL(I,S,1)^ne.rotrSL(I,S,8)^ne.shrSL(I,S,7),ae=Tt[$-2]|0,xe=Ut[$-2]|0,M=ne.rotrSH(ae,xe,19)^ne.rotrBH(ae,xe,61)^ne.shrSH(ae,xe,6),W=ne.rotrSL(ae,xe,19)^ne.rotrBL(ae,xe,61)^ne.shrSL(ae,xe,6),R=ne.add4L(ye,W,Ut[$-7],Ut[$-16]),Ae=ne.add4H(R,fe,M,Tt[$-7],Tt[$-16]);Tt[$]=Ae|0,Ut[$]=R|0}let{Ah:r,Al:i,Bh:a,Bl:c,Ch:d,Cl:h,Dh:y,Dl:b,Eh:p,El:w,Fh:U,Fl:O,Gh:z,Gl:L,Hh:Q,Hl:he}=this;for(let $=0;$<80;$++){const I=ne.rotrSH(p,w,14)^ne.rotrSH(p,w,18)^ne.rotrBH(p,w,41),S=ne.rotrSL(p,w,14)^ne.rotrSL(p,w,18)^ne.rotrBL(p,w,41),fe=p&U^~p&z,ye=w&O^~w&L,ae=ne.add5L(he,S,ye,vf[$],Ut[$]),xe=ne.add5H(ae,Q,I,fe,gf[$],Tt[$]),M=ae|0,W=ne.rotrSH(r,i,28)^ne.rotrBH(r,i,34)^ne.rotrBH(r,i,39),R=ne.rotrSL(r,i,28)^ne.rotrBL(r,i,34)^ne.rotrBL(r,i,39),Ae=r&a^r&d^a&d,Ee=i&c^i&h^c&h;Q=z|0,he=L|0,z=U|0,L=O|0,U=p|0,O=w|0,{h:p,l:w}=ne.add(y|0,b|0,xe|0,M|0),y=d|0,b=h|0,d=a|0,h=c|0,a=r|0,c=i|0;const Ke=ne.add3L(M,R,Ee);r=ne.add3H(Ke,xe,W,Ae),i=Ke|0}({h:r,l:i}=ne.add(this.Ah|0,this.Al|0,r|0,i|0)),{h:a,l:c}=ne.add(this.Bh|0,this.Bl|0,a|0,c|0),{h:d,l:h}=ne.add(this.Ch|0,this.Cl|0,d|0,h|0),{h:y,l:b}=ne.add(this.Dh|0,this.Dl|0,y|0,b|0),{h:p,l:w}=ne.add(this.Eh|0,this.El|0,p|0,w|0),{h:U,l:O}=ne.add(this.Fh|0,this.Fl|0,U|0,O|0),{h:z,l:L}=ne.add(this.Gh|0,this.Gl|0,z|0,L|0),{h:Q,l:he}=ne.add(this.Hh|0,this.Hl|0,Q|0,he|0),this.set(r,i,a,c,d,h,y,b,p,w,U,O,z,L,Q,he)}roundClean(){Tt.fill(0),Ut.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)}}class mf extends Os{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class Af extends Os{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}const Yo=On(()=>new Os);On(()=>new mf);On(()=>new Af);var zs={exports:{}},Vo=function(t,n){return function(){for(var i=new Array(arguments.length),a=0;a"u"}function Tf(e){return e!==null&&!fr(e)&&e.constructor!==null&&!fr(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var Xo=Mt("ArrayBuffer");function Uf(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Xo(e.buffer),t}function Sf(e){return typeof e=="string"}function Bf(e){return typeof e=="number"}function Qo(e){return e!==null&&typeof e=="object"}function er(e){if(Ns(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var If=Mt("Date"),Cf=Mt("File"),$f=Mt("Blob"),kf=Mt("FileList");function Ps(e){return Hs.call(e)==="[object Function]"}function Lf(e){return Qo(e)&&Ps(e.pipe)}function Of(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Hs.call(e)===t||Ps(e.toString)&&e.toString()===t)}var zf=Mt("URLSearchParams");function Hf(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Nf(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Ds(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Rs(e))for(var n=0,r=e.length;n0;)a=r[i],c[a]||(t[a]=e[a],c[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function Ff(e,t,n){e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return r!==-1&&r===n}function qf(e){if(!e)return null;var t=e.length;if(fr(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var jf=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),Fe={isArray:Rs,isArrayBuffer:Xo,isBuffer:Tf,isFormData:Of,isArrayBufferView:Uf,isString:Sf,isNumber:Bf,isObject:Qo,isPlainObject:er,isUndefined:fr,isDate:If,isFile:Cf,isBlob:$f,isFunction:Ps,isStream:Lf,isURLSearchParams:zf,isStandardBrowserEnv:Nf,forEach:Ds,merge:As,extend:Rf,trim:Hf,stripBOM:Pf,inherits:Df,toFlatObject:Mf,kindOf:Ns,kindOfTest:Mt,endsWith:Ff,toArray:qf,isTypedArray:jf,isFileList:kf},Qt=Fe;function Ai(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Jo=function(t,n,r){if(!n)return t;var i;if(r)i=r(n);else if(Qt.isURLSearchParams(n))i=n.toString();else{var a=[];Qt.forEach(n,function(h,y){h===null||typeof h>"u"||(Qt.isArray(h)?y=y+"[]":h=[h],Qt.forEach(h,function(p){Qt.isDate(p)?p=p.toISOString():Qt.isObject(p)&&(p=JSON.stringify(p)),a.push(Ai(y)+"="+Ai(p))}))}),i=a.join("&")}if(i){var c=t.indexOf("#");c!==-1&&(t=t.slice(0,c)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},Gf=Fe;function pr(){this.handlers=[]}pr.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};pr.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};pr.prototype.forEach=function(t){Gf.forEach(this.handlers,function(r){r!==null&&t(r)})};var Kf=pr,Wf=Fe,Yf=function(t,n){Wf.forEach(t,function(i,a){a!==n&&a.toUpperCase()===n.toUpperCase()&&(t[n]=i,delete t[a])})},Zo=Fe;function cn(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}Zo.inherits(cn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var ea=cn.prototype,ta={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){ta[e]={value:e}});Object.defineProperties(cn,ta);Object.defineProperty(ea,"isAxiosError",{value:!0});cn.from=function(e,t,n,r,i,a){var c=Object.create(ea);return Zo.toFlatObject(e,c,function(h){return h!==Error.prototype}),cn.call(c,e.message,t,n,r,i),c.name=e.name,a&&Object.assign(c,a),c};var ln=cn,na={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ft=Fe;function Vf(e,t){t=t||new FormData;var n=[];function r(a){return a===null?"":ft.isDate(a)?a.toISOString():ft.isArrayBuffer(a)||ft.isTypedArray(a)?typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function i(a,c){if(ft.isPlainObject(a)||ft.isArray(a)){if(n.indexOf(a)!==-1)throw Error("Circular reference detected in "+c);n.push(a),ft.forEach(a,function(h,y){if(!ft.isUndefined(h)){var b=c?c+"."+y:y,p;if(h&&!c&&typeof h=="object"){if(ft.endsWith(y,"{}"))h=JSON.stringify(h);else if(ft.endsWith(y,"[]")&&(p=ft.toArray(h))){p.forEach(function(w){!ft.isUndefined(w)&&t.append(b,r(w))});return}}i(h,b)}}),n.pop()}else t.append(c,r(a))}return i(e),t}var ra=Vf,rs,Ei;function Xf(){if(Ei)return rs;Ei=1;var e=ln;return rs=function(n,r,i){var a=i.config.validateStatus;!i.status||!a||a(i.status)?n(i):r(new e("Request failed with status code "+i.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))},rs}var ss,Ti;function Qf(){if(Ti)return ss;Ti=1;var e=Fe;return ss=e.isStandardBrowserEnv()?function(){return{write:function(r,i,a,c,d,h){var y=[];y.push(r+"="+encodeURIComponent(i)),e.isNumber(a)&&y.push("expires="+new Date(a).toGMTString()),e.isString(c)&&y.push("path="+c),e.isString(d)&&y.push("domain="+d),h===!0&&y.push("secure"),document.cookie=y.join("; ")},read:function(r){var i=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),ss}var Jf=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},Zf=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},eu=Jf,tu=Zf,sa=function(t,n){return t&&!eu(n)?tu(t,n):n},is,Ui;function nu(){if(Ui)return is;Ui=1;var e=Fe,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return is=function(r){var i={},a,c,d;return r&&e.forEach(r.split(` +import{e as Da,r as Ma,g as to,a as Fa}from"./store.26750aee.js";/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function qa(e){if(!Number.isSafeInteger(e))throw new Error(`Wrong integer: ${e}`)}function ot(...e){const t=(i,a)=>c=>i(a(c)),n=Array.from(e).reverse().reduce((i,a)=>i?t(i,a.encode):a.encode,void 0),r=e.reduce((i,a)=>i?t(i,a.decode):a.decode,void 0);return{encode:n,decode:r}}function ut(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="number")throw new Error("alphabet.encode input should be an array of numbers");return t.map(n=>{if(n<0||n>=e.length)throw new Error(`Digit index outside alphabet: ${n} (alphabet: ${e.length})`);return e[n]})},decode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="string")throw new Error("alphabet.decode input should be array of strings");return t.map(n=>{if(typeof n!="string")throw new Error(`alphabet.decode: not string element=${n}`);const r=e.indexOf(n);if(r===-1)throw new Error(`Unknown letter: "${n}". Allowed: ${e}`);return r})}}}function lt(e=""){if(typeof e!="string")throw new Error("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="string")throw new Error("join.encode input should be array of strings");for(let n of t)if(typeof n!="string")throw new Error(`join.encode: non-string input=${n}`);return t.join(e)},decode:t=>{if(typeof t!="string")throw new Error("join.decode input should be string");return t.split(e)}}}function Cn(e,t="="){if(typeof t!="string")throw new Error("padding chr should be string");return{encode(n){if(!Array.isArray(n)||n.length&&typeof n[0]!="string")throw new Error("padding.encode input should be array of strings");for(let r of n)if(typeof r!="string")throw new Error(`padding.encode: non-string input=${r}`);for(;n.length*e%8;)n.push(t);return n},decode(n){if(!Array.isArray(n)||n.length&&typeof n[0]!="string")throw new Error("padding.encode input should be array of strings");for(let i of n)if(typeof i!="string")throw new Error(`padding.decode: non-string input=${i}`);let r=n.length;if(r*e%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;r>0&&n[r-1]===t;r--)if(!((r-1)*e%8))throw new Error("Invalid padding: string has too much padding");return n.slice(0,r)}}}function no(e){if(typeof e!="function")throw new Error("normalize fn should be function");return{encode:t=>t,decode:t=>e(t)}}function yi(e,t,n){if(t<2)throw new Error(`convertRadix: wrong from=${t}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: wrong to=${n}, base cannot be less than 2`);if(!Array.isArray(e))throw new Error("convertRadix: data should be array");if(!e.length)return[];let r=0;const i=[],a=Array.from(e);for(a.forEach(c=>{if(c<0||c>=t)throw new Error(`Wrong integer: ${c}`)});;){let c=0,d=!0;for(let h=r;ht?ro(t,e%t):e,or=(e,t)=>e+(t-ro(e,t));function ws(e,t,n,r){if(!Array.isArray(e))throw new Error("convertRadix2: data should be array");if(t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(or(t,n)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${or(t,n)}`);let i=0,a=0;const c=2**n-1,d=[];for(const h of e){if(h>=2**t)throw new Error(`convertRadix2: invalid data word=${h} from=${t}`);if(i=i<32)throw new Error(`convertRadix2: carry overflow pos=${a} from=${t}`);for(a+=t;a>=n;a-=n)d.push((i>>a-n&c)>>>0);i&=2**a-1}if(i=i<=t)throw new Error("Excess padding");if(!r&&i)throw new Error(`Non-zero padding: ${i}`);return r&&a>0&&d.push(i>>>0),d}function so(e){return{encode:t=>{if(!(t instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return yi(Array.from(t),2**8,e)},decode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="number")throw new Error("radix.decode input should be array of strings");return Uint8Array.from(yi(t,e,2**8))}}}function pt(e,t=!1){if(e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(or(8,e)>32||or(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!(n instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return ws(Array.from(n),8,e,!t)},decode:n=>{if(!Array.isArray(n)||n.length&&typeof n[0]!="number")throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(ws(n,e,8,t))}}}function bi(e){if(typeof e!="function")throw new Error("unsafeWrapper fn should be function");return function(...t){try{return e.apply(null,t)}catch{}}}function io(e,t){if(typeof t!="function")throw new Error("checksum fn should be function");return{encode(n){if(!(n instanceof Uint8Array))throw new Error("checksum.encode: input should be Uint8Array");const r=t(n).slice(0,e),i=new Uint8Array(n.length+e);return i.set(n),i.set(r,n.length),i},decode(n){if(!(n instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");const r=n.slice(0,-e),i=t(r).slice(0,e),a=n.slice(-e);for(let c=0;ce.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),co=ot(pt(6),ut("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),Cn(6),lt("")),fo=ot(pt(6),ut("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),Cn(6),lt("")),Wa=ot(pt(6),ut("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),lt("")),Is=e=>ot(so(58),ut(e),lt("")),Sn=Is("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),Ya=Is("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),Va=Is("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),_i=[0,2,3,5,6,7,9,10,11],uo={encode(e){let t="";for(let n=0;not(io(4,t=>e(e(t))),Sn),gs=ot(ut("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),lt("")),wi=[996825010,642813549,513874426,1027748829,705979059];function mn(e){const t=e>>25;let n=(e&33554431)<<5;for(let r=0;r>r&1)===1&&(n^=wi[r]);return n}function gi(e,t,n=1){const r=e.length;let i=1;for(let a=0;a126)throw new Error(`Invalid prefix (${e})`);i=mn(i)^c>>5}i=mn(i);for(let a=0;aw)throw new TypeError(`Length ${U} exceeds limit ${w}`);const O=b.toLowerCase(),z=gi(O,p,t);return`${O}1${gs.encode(p)}${z}`}function d(b,p=90){if(typeof b!="string")throw new Error(`bech32.decode input should be string, not ${typeof b}`);if(b.length<8||p!==!1&&b.length>p)throw new TypeError(`Wrong string length: ${b.length} (${b}). Expected (8..${p})`);const w=b.toLowerCase();if(b!==w&&b!==b.toUpperCase())throw new Error("String must be lowercase or uppercase");b=w;const U=b.lastIndexOf("1");if(U===0||U===-1)throw new Error('Letter "1" must be present between prefix and data only');const O=b.slice(0,U),z=b.slice(U+1);if(z.length<6)throw new Error("Data must be at least 6 characters long");const L=gs.decode(z).slice(0,-6),Q=gi(O,L,t);if(!z.endsWith(Q))throw new Error(`Invalid checksum in ${b}: expected "${Q}"`);return{prefix:O,words:L}}const h=bi(d);function y(b){const{prefix:p,words:w}=d(b,!1);return{prefix:p,words:w,bytes:r(w)}}return{encode:c,decode:d,decodeToBytes:y,decodeUnsafe:h,fromWords:r,fromWordsUnsafe:a,toWords:i}}const Qa=lo("bech32"),Ja=lo("bech32m"),ho={encode:e=>new TextDecoder().decode(e),decode:e=>new TextEncoder().encode(e)},xo=ot(pt(4),ut("0123456789abcdef"),lt(""),no(e=>{if(typeof e!="string"||e.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);return e.toLowerCase()})),ar={utf8:ho,hex:xo,base16:oo,base32:ao,base64:co,base64url:fo,base58:Sn,base58xmr:uo},po="Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr",yo=(e,t)=>{if(typeof e!="string"||!ar.hasOwnProperty(e))throw new TypeError(po);if(!(t instanceof Uint8Array))throw new TypeError("bytesToString() expects Uint8Array");return ar[e].encode(t)},Za=yo,bo=(e,t)=>{if(!ar.hasOwnProperty(e))throw new TypeError(po);if(typeof t!="string")throw new TypeError("stringToBytes() expects string");return ar[e].decode(t)},ec=bo,tc=Object.freeze(Object.defineProperty({__proto__:null,assertNumber:qa,base16:oo,base32:ao,base32crockford:Ka,base32hex:Ga,base58:Sn,base58check:Xa,base58flickr:Ya,base58xmr:uo,base58xrp:Va,base64:co,base64url:fo,base64urlnopad:Wa,bech32:Qa,bech32m:Ja,bytes:ec,bytesToString:yo,hex:xo,str:Za,stringToBytes:bo,utf8:ho,utils:ja},Symbol.toStringTag,{value:"Module"}));var _o={exports:{}};(function(e){(function(t){var n=function(o){var u,f=new Float64Array(16);if(o)for(u=0;u>24&255,o[u+1]=f>>16&255,o[u+2]=f>>8&255,o[u+3]=f&255,o[u+4]=s>>24&255,o[u+5]=s>>16&255,o[u+6]=s>>8&255,o[u+7]=s&255}function z(o,u,f,s,l){var _,g=0;for(_=0;_>>8)-1}function L(o,u,f,s){return z(o,u,f,s,16)}function Q(o,u,f,s){return z(o,u,f,s,32)}function he(o,u,f,s){for(var l=s[0]&255|(s[1]&255)<<8|(s[2]&255)<<16|(s[3]&255)<<24,_=f[0]&255|(f[1]&255)<<8|(f[2]&255)<<16|(f[3]&255)<<24,g=f[4]&255|(f[5]&255)<<8|(f[6]&255)<<16|(f[7]&255)<<24,E=f[8]&255|(f[9]&255)<<8|(f[10]&255)<<16|(f[11]&255)<<24,k=f[12]&255|(f[13]&255)<<8|(f[14]&255)<<16|(f[15]&255)<<24,K=s[4]&255|(s[5]&255)<<8|(s[6]&255)<<16|(s[7]&255)<<24,N=u[0]&255|(u[1]&255)<<8|(u[2]&255)<<16|(u[3]&255)<<24,we=u[4]&255|(u[5]&255)<<8|(u[6]&255)<<16|(u[7]&255)<<24,D=u[8]&255|(u[9]&255)<<8|(u[10]&255)<<16|(u[11]&255)<<24,X=u[12]&255|(u[13]&255)<<8|(u[14]&255)<<16|(u[15]&255)<<24,J=s[8]&255|(s[9]&255)<<8|(s[10]&255)<<16|(s[11]&255)<<24,se=f[16]&255|(f[17]&255)<<8|(f[18]&255)<<16|(f[19]&255)<<24,re=f[20]&255|(f[21]&255)<<8|(f[22]&255)<<16|(f[23]&255)<<24,Z=f[24]&255|(f[25]&255)<<8|(f[26]&255)<<16|(f[27]&255)<<24,te=f[28]&255|(f[29]&255)<<8|(f[30]&255)<<16|(f[31]&255)<<24,ee=s[12]&255|(s[13]&255)<<8|(s[14]&255)<<16|(s[15]&255)<<24,F=l,Y=_,P=g,q=E,G=k,H=K,v=N,m=we,B=D,A=X,T=J,C=se,V=re,ie=Z,ce=te,oe=ee,x,de=0;de<20;de+=2)x=F+V|0,G^=x<<7|x>>>32-7,x=G+F|0,B^=x<<9|x>>>32-9,x=B+G|0,V^=x<<13|x>>>32-13,x=V+B|0,F^=x<<18|x>>>32-18,x=H+Y|0,A^=x<<7|x>>>32-7,x=A+H|0,ie^=x<<9|x>>>32-9,x=ie+A|0,Y^=x<<13|x>>>32-13,x=Y+ie|0,H^=x<<18|x>>>32-18,x=T+v|0,ce^=x<<7|x>>>32-7,x=ce+T|0,P^=x<<9|x>>>32-9,x=P+ce|0,v^=x<<13|x>>>32-13,x=v+P|0,T^=x<<18|x>>>32-18,x=oe+C|0,q^=x<<7|x>>>32-7,x=q+oe|0,m^=x<<9|x>>>32-9,x=m+q|0,C^=x<<13|x>>>32-13,x=C+m|0,oe^=x<<18|x>>>32-18,x=F+q|0,Y^=x<<7|x>>>32-7,x=Y+F|0,P^=x<<9|x>>>32-9,x=P+Y|0,q^=x<<13|x>>>32-13,x=q+P|0,F^=x<<18|x>>>32-18,x=H+G|0,v^=x<<7|x>>>32-7,x=v+H|0,m^=x<<9|x>>>32-9,x=m+v|0,G^=x<<13|x>>>32-13,x=G+m|0,H^=x<<18|x>>>32-18,x=T+A|0,C^=x<<7|x>>>32-7,x=C+T|0,B^=x<<9|x>>>32-9,x=B+C|0,A^=x<<13|x>>>32-13,x=A+B|0,T^=x<<18|x>>>32-18,x=oe+ce|0,V^=x<<7|x>>>32-7,x=V+oe|0,ie^=x<<9|x>>>32-9,x=ie+V|0,ce^=x<<13|x>>>32-13,x=ce+ie|0,oe^=x<<18|x>>>32-18;F=F+l|0,Y=Y+_|0,P=P+g|0,q=q+E|0,G=G+k|0,H=H+K|0,v=v+N|0,m=m+we|0,B=B+D|0,A=A+X|0,T=T+J|0,C=C+se|0,V=V+re|0,ie=ie+Z|0,ce=ce+te|0,oe=oe+ee|0,o[0]=F>>>0&255,o[1]=F>>>8&255,o[2]=F>>>16&255,o[3]=F>>>24&255,o[4]=Y>>>0&255,o[5]=Y>>>8&255,o[6]=Y>>>16&255,o[7]=Y>>>24&255,o[8]=P>>>0&255,o[9]=P>>>8&255,o[10]=P>>>16&255,o[11]=P>>>24&255,o[12]=q>>>0&255,o[13]=q>>>8&255,o[14]=q>>>16&255,o[15]=q>>>24&255,o[16]=G>>>0&255,o[17]=G>>>8&255,o[18]=G>>>16&255,o[19]=G>>>24&255,o[20]=H>>>0&255,o[21]=H>>>8&255,o[22]=H>>>16&255,o[23]=H>>>24&255,o[24]=v>>>0&255,o[25]=v>>>8&255,o[26]=v>>>16&255,o[27]=v>>>24&255,o[28]=m>>>0&255,o[29]=m>>>8&255,o[30]=m>>>16&255,o[31]=m>>>24&255,o[32]=B>>>0&255,o[33]=B>>>8&255,o[34]=B>>>16&255,o[35]=B>>>24&255,o[36]=A>>>0&255,o[37]=A>>>8&255,o[38]=A>>>16&255,o[39]=A>>>24&255,o[40]=T>>>0&255,o[41]=T>>>8&255,o[42]=T>>>16&255,o[43]=T>>>24&255,o[44]=C>>>0&255,o[45]=C>>>8&255,o[46]=C>>>16&255,o[47]=C>>>24&255,o[48]=V>>>0&255,o[49]=V>>>8&255,o[50]=V>>>16&255,o[51]=V>>>24&255,o[52]=ie>>>0&255,o[53]=ie>>>8&255,o[54]=ie>>>16&255,o[55]=ie>>>24&255,o[56]=ce>>>0&255,o[57]=ce>>>8&255,o[58]=ce>>>16&255,o[59]=ce>>>24&255,o[60]=oe>>>0&255,o[61]=oe>>>8&255,o[62]=oe>>>16&255,o[63]=oe>>>24&255}function $(o,u,f,s){for(var l=s[0]&255|(s[1]&255)<<8|(s[2]&255)<<16|(s[3]&255)<<24,_=f[0]&255|(f[1]&255)<<8|(f[2]&255)<<16|(f[3]&255)<<24,g=f[4]&255|(f[5]&255)<<8|(f[6]&255)<<16|(f[7]&255)<<24,E=f[8]&255|(f[9]&255)<<8|(f[10]&255)<<16|(f[11]&255)<<24,k=f[12]&255|(f[13]&255)<<8|(f[14]&255)<<16|(f[15]&255)<<24,K=s[4]&255|(s[5]&255)<<8|(s[6]&255)<<16|(s[7]&255)<<24,N=u[0]&255|(u[1]&255)<<8|(u[2]&255)<<16|(u[3]&255)<<24,we=u[4]&255|(u[5]&255)<<8|(u[6]&255)<<16|(u[7]&255)<<24,D=u[8]&255|(u[9]&255)<<8|(u[10]&255)<<16|(u[11]&255)<<24,X=u[12]&255|(u[13]&255)<<8|(u[14]&255)<<16|(u[15]&255)<<24,J=s[8]&255|(s[9]&255)<<8|(s[10]&255)<<16|(s[11]&255)<<24,se=f[16]&255|(f[17]&255)<<8|(f[18]&255)<<16|(f[19]&255)<<24,re=f[20]&255|(f[21]&255)<<8|(f[22]&255)<<16|(f[23]&255)<<24,Z=f[24]&255|(f[25]&255)<<8|(f[26]&255)<<16|(f[27]&255)<<24,te=f[28]&255|(f[29]&255)<<8|(f[30]&255)<<16|(f[31]&255)<<24,ee=s[12]&255|(s[13]&255)<<8|(s[14]&255)<<16|(s[15]&255)<<24,F=l,Y=_,P=g,q=E,G=k,H=K,v=N,m=we,B=D,A=X,T=J,C=se,V=re,ie=Z,ce=te,oe=ee,x,de=0;de<20;de+=2)x=F+V|0,G^=x<<7|x>>>32-7,x=G+F|0,B^=x<<9|x>>>32-9,x=B+G|0,V^=x<<13|x>>>32-13,x=V+B|0,F^=x<<18|x>>>32-18,x=H+Y|0,A^=x<<7|x>>>32-7,x=A+H|0,ie^=x<<9|x>>>32-9,x=ie+A|0,Y^=x<<13|x>>>32-13,x=Y+ie|0,H^=x<<18|x>>>32-18,x=T+v|0,ce^=x<<7|x>>>32-7,x=ce+T|0,P^=x<<9|x>>>32-9,x=P+ce|0,v^=x<<13|x>>>32-13,x=v+P|0,T^=x<<18|x>>>32-18,x=oe+C|0,q^=x<<7|x>>>32-7,x=q+oe|0,m^=x<<9|x>>>32-9,x=m+q|0,C^=x<<13|x>>>32-13,x=C+m|0,oe^=x<<18|x>>>32-18,x=F+q|0,Y^=x<<7|x>>>32-7,x=Y+F|0,P^=x<<9|x>>>32-9,x=P+Y|0,q^=x<<13|x>>>32-13,x=q+P|0,F^=x<<18|x>>>32-18,x=H+G|0,v^=x<<7|x>>>32-7,x=v+H|0,m^=x<<9|x>>>32-9,x=m+v|0,G^=x<<13|x>>>32-13,x=G+m|0,H^=x<<18|x>>>32-18,x=T+A|0,C^=x<<7|x>>>32-7,x=C+T|0,B^=x<<9|x>>>32-9,x=B+C|0,A^=x<<13|x>>>32-13,x=A+B|0,T^=x<<18|x>>>32-18,x=oe+ce|0,V^=x<<7|x>>>32-7,x=V+oe|0,ie^=x<<9|x>>>32-9,x=ie+V|0,ce^=x<<13|x>>>32-13,x=ce+ie|0,oe^=x<<18|x>>>32-18;o[0]=F>>>0&255,o[1]=F>>>8&255,o[2]=F>>>16&255,o[3]=F>>>24&255,o[4]=H>>>0&255,o[5]=H>>>8&255,o[6]=H>>>16&255,o[7]=H>>>24&255,o[8]=T>>>0&255,o[9]=T>>>8&255,o[10]=T>>>16&255,o[11]=T>>>24&255,o[12]=oe>>>0&255,o[13]=oe>>>8&255,o[14]=oe>>>16&255,o[15]=oe>>>24&255,o[16]=v>>>0&255,o[17]=v>>>8&255,o[18]=v>>>16&255,o[19]=v>>>24&255,o[20]=m>>>0&255,o[21]=m>>>8&255,o[22]=m>>>16&255,o[23]=m>>>24&255,o[24]=B>>>0&255,o[25]=B>>>8&255,o[26]=B>>>16&255,o[27]=B>>>24&255,o[28]=A>>>0&255,o[29]=A>>>8&255,o[30]=A>>>16&255,o[31]=A>>>24&255}function I(o,u,f,s){he(o,u,f,s)}function S(o,u,f,s){$(o,u,f,s)}var fe=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function ye(o,u,f,s,l,_,g){var E=new Uint8Array(16),k=new Uint8Array(64),K,N;for(N=0;N<16;N++)E[N]=0;for(N=0;N<8;N++)E[N]=_[N];for(;l>=64;){for(I(k,E,g,fe),N=0;N<64;N++)o[u+N]=f[s+N]^k[N];for(K=1,N=8;N<16;N++)K=K+(E[N]&255)|0,E[N]=K&255,K>>>=8;l-=64,u+=64,s+=64}if(l>0)for(I(k,E,g,fe),N=0;N=64;){for(I(g,_,l,fe),k=0;k<64;k++)o[u+k]=g[k];for(E=1,k=8;k<16;k++)E=E+(_[k]&255)|0,_[k]=E&255,E>>>=8;f-=64,u+=64}if(f>0)for(I(g,_,l,fe),k=0;k>>13|f<<3)&8191,s=o[4]&255|(o[5]&255)<<8,this.r[2]=(f>>>10|s<<6)&7939,l=o[6]&255|(o[7]&255)<<8,this.r[3]=(s>>>7|l<<9)&8191,_=o[8]&255|(o[9]&255)<<8,this.r[4]=(l>>>4|_<<12)&255,this.r[5]=_>>>1&8190,g=o[10]&255|(o[11]&255)<<8,this.r[6]=(_>>>14|g<<2)&8191,E=o[12]&255|(o[13]&255)<<8,this.r[7]=(g>>>11|E<<5)&8065,k=o[14]&255|(o[15]&255)<<8,this.r[8]=(E>>>8|k<<8)&8191,this.r[9]=k>>>5&127,this.pad[0]=o[16]&255|(o[17]&255)<<8,this.pad[1]=o[18]&255|(o[19]&255)<<8,this.pad[2]=o[20]&255|(o[21]&255)<<8,this.pad[3]=o[22]&255|(o[23]&255)<<8,this.pad[4]=o[24]&255|(o[25]&255)<<8,this.pad[5]=o[26]&255|(o[27]&255)<<8,this.pad[6]=o[28]&255|(o[29]&255)<<8,this.pad[7]=o[30]&255|(o[31]&255)<<8};W.prototype.blocks=function(o,u,f){for(var s=this.fin?0:2048,l,_,g,E,k,K,N,we,D,X,J,se,re,Z,te,ee,F,Y,P,q=this.h[0],G=this.h[1],H=this.h[2],v=this.h[3],m=this.h[4],B=this.h[5],A=this.h[6],T=this.h[7],C=this.h[8],V=this.h[9],ie=this.r[0],ce=this.r[1],oe=this.r[2],x=this.r[3],de=this.r[4],ge=this.r[5],ve=this.r[6],ue=this.r[7],be=this.r[8],_e=this.r[9];f>=16;)l=o[u+0]&255|(o[u+1]&255)<<8,q+=l&8191,_=o[u+2]&255|(o[u+3]&255)<<8,G+=(l>>>13|_<<3)&8191,g=o[u+4]&255|(o[u+5]&255)<<8,H+=(_>>>10|g<<6)&8191,E=o[u+6]&255|(o[u+7]&255)<<8,v+=(g>>>7|E<<9)&8191,k=o[u+8]&255|(o[u+9]&255)<<8,m+=(E>>>4|k<<12)&8191,B+=k>>>1&8191,K=o[u+10]&255|(o[u+11]&255)<<8,A+=(k>>>14|K<<2)&8191,N=o[u+12]&255|(o[u+13]&255)<<8,T+=(K>>>11|N<<5)&8191,we=o[u+14]&255|(o[u+15]&255)<<8,C+=(N>>>8|we<<8)&8191,V+=we>>>5|s,D=0,X=D,X+=q*ie,X+=G*(5*_e),X+=H*(5*be),X+=v*(5*ue),X+=m*(5*ve),D=X>>>13,X&=8191,X+=B*(5*ge),X+=A*(5*de),X+=T*(5*x),X+=C*(5*oe),X+=V*(5*ce),D+=X>>>13,X&=8191,J=D,J+=q*ce,J+=G*ie,J+=H*(5*_e),J+=v*(5*be),J+=m*(5*ue),D=J>>>13,J&=8191,J+=B*(5*ve),J+=A*(5*ge),J+=T*(5*de),J+=C*(5*x),J+=V*(5*oe),D+=J>>>13,J&=8191,se=D,se+=q*oe,se+=G*ce,se+=H*ie,se+=v*(5*_e),se+=m*(5*be),D=se>>>13,se&=8191,se+=B*(5*ue),se+=A*(5*ve),se+=T*(5*ge),se+=C*(5*de),se+=V*(5*x),D+=se>>>13,se&=8191,re=D,re+=q*x,re+=G*oe,re+=H*ce,re+=v*ie,re+=m*(5*_e),D=re>>>13,re&=8191,re+=B*(5*be),re+=A*(5*ue),re+=T*(5*ve),re+=C*(5*ge),re+=V*(5*de),D+=re>>>13,re&=8191,Z=D,Z+=q*de,Z+=G*x,Z+=H*oe,Z+=v*ce,Z+=m*ie,D=Z>>>13,Z&=8191,Z+=B*(5*_e),Z+=A*(5*be),Z+=T*(5*ue),Z+=C*(5*ve),Z+=V*(5*ge),D+=Z>>>13,Z&=8191,te=D,te+=q*ge,te+=G*de,te+=H*x,te+=v*oe,te+=m*ce,D=te>>>13,te&=8191,te+=B*ie,te+=A*(5*_e),te+=T*(5*be),te+=C*(5*ue),te+=V*(5*ve),D+=te>>>13,te&=8191,ee=D,ee+=q*ve,ee+=G*ge,ee+=H*de,ee+=v*x,ee+=m*oe,D=ee>>>13,ee&=8191,ee+=B*ce,ee+=A*ie,ee+=T*(5*_e),ee+=C*(5*be),ee+=V*(5*ue),D+=ee>>>13,ee&=8191,F=D,F+=q*ue,F+=G*ve,F+=H*ge,F+=v*de,F+=m*x,D=F>>>13,F&=8191,F+=B*oe,F+=A*ce,F+=T*ie,F+=C*(5*_e),F+=V*(5*be),D+=F>>>13,F&=8191,Y=D,Y+=q*be,Y+=G*ue,Y+=H*ve,Y+=v*ge,Y+=m*de,D=Y>>>13,Y&=8191,Y+=B*x,Y+=A*oe,Y+=T*ce,Y+=C*ie,Y+=V*(5*_e),D+=Y>>>13,Y&=8191,P=D,P+=q*_e,P+=G*be,P+=H*ue,P+=v*ve,P+=m*ge,D=P>>>13,P&=8191,P+=B*de,P+=A*x,P+=T*oe,P+=C*ce,P+=V*ie,D+=P>>>13,P&=8191,D=(D<<2)+D|0,D=D+X|0,X=D&8191,D=D>>>13,J+=D,q=X,G=J,H=se,v=re,m=Z,B=te,A=ee,T=F,C=Y,V=P,u+=16,f-=16;this.h[0]=q,this.h[1]=G,this.h[2]=H,this.h[3]=v,this.h[4]=m,this.h[5]=B,this.h[6]=A,this.h[7]=T,this.h[8]=C,this.h[9]=V},W.prototype.finish=function(o,u){var f=new Uint16Array(10),s,l,_,g;if(this.leftover){for(g=this.leftover,this.buffer[g++]=1;g<16;g++)this.buffer[g]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(s=this.h[1]>>>13,this.h[1]&=8191,g=2;g<10;g++)this.h[g]+=s,s=this.h[g]>>>13,this.h[g]&=8191;for(this.h[0]+=s*5,s=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=s,s=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=s,f[0]=this.h[0]+5,s=f[0]>>>13,f[0]&=8191,g=1;g<10;g++)f[g]=this.h[g]+s,s=f[g]>>>13,f[g]&=8191;for(f[9]-=8192,l=(s^1)-1,g=0;g<10;g++)f[g]&=l;for(l=~l,g=0;g<10;g++)this.h[g]=this.h[g]&l|f[g];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,_=this.h[0]+this.pad[0],this.h[0]=_&65535,g=1;g<8;g++)_=(this.h[g]+this.pad[g]|0)+(_>>>16)|0,this.h[g]=_&65535;o[u+0]=this.h[0]>>>0&255,o[u+1]=this.h[0]>>>8&255,o[u+2]=this.h[1]>>>0&255,o[u+3]=this.h[1]>>>8&255,o[u+4]=this.h[2]>>>0&255,o[u+5]=this.h[2]>>>8&255,o[u+6]=this.h[3]>>>0&255,o[u+7]=this.h[3]>>>8&255,o[u+8]=this.h[4]>>>0&255,o[u+9]=this.h[4]>>>8&255,o[u+10]=this.h[5]>>>0&255,o[u+11]=this.h[5]>>>8&255,o[u+12]=this.h[6]>>>0&255,o[u+13]=this.h[6]>>>8&255,o[u+14]=this.h[7]>>>0&255,o[u+15]=this.h[7]>>>8&255},W.prototype.update=function(o,u,f){var s,l;if(this.leftover){for(l=16-this.leftover,l>f&&(l=f),s=0;s=16&&(l=f-f%16,this.blocks(o,u,l),u+=l,f-=l),f){for(s=0;s>16&1),_[f-1]&=65535;_[15]=g[15]-32767-(_[14]>>16&1),l=_[15]>>16&1,_[14]&=65535,Wt(g,_,1-l)}for(f=0;f<16;f++)o[2*f]=g[f]&255,o[2*f+1]=g[f]>>8}function ri(o,u){var f=new Uint8Array(32),s=new Uint8Array(32);return Yt(f,o),Yt(s,u),Q(f,0,s,0)}function si(o){var u=new Uint8Array(32);return Yt(u,o),u[0]&1}function jr(o,u){var f;for(f=0;f<16;f++)o[f]=u[2*f]+(u[2*f+1]<<8);o[15]&=32767}function at(o,u,f){for(var s=0;s<16;s++)o[s]=u[s]+f[s]}function ct(o,u,f){for(var s=0;s<16;s++)o[s]=u[s]-f[s]}function pe(o,u,f){var s,l,_=0,g=0,E=0,k=0,K=0,N=0,we=0,D=0,X=0,J=0,se=0,re=0,Z=0,te=0,ee=0,F=0,Y=0,P=0,q=0,G=0,H=0,v=0,m=0,B=0,A=0,T=0,C=0,V=0,ie=0,ce=0,oe=0,x=f[0],de=f[1],ge=f[2],ve=f[3],ue=f[4],be=f[5],_e=f[6],Oe=f[7],Ue=f[8],Ce=f[9],$e=f[10],ke=f[11],He=f[12],qe=f[13],je=f[14],Ge=f[15];s=u[0],_+=s*x,g+=s*de,E+=s*ge,k+=s*ve,K+=s*ue,N+=s*be,we+=s*_e,D+=s*Oe,X+=s*Ue,J+=s*Ce,se+=s*$e,re+=s*ke,Z+=s*He,te+=s*qe,ee+=s*je,F+=s*Ge,s=u[1],g+=s*x,E+=s*de,k+=s*ge,K+=s*ve,N+=s*ue,we+=s*be,D+=s*_e,X+=s*Oe,J+=s*Ue,se+=s*Ce,re+=s*$e,Z+=s*ke,te+=s*He,ee+=s*qe,F+=s*je,Y+=s*Ge,s=u[2],E+=s*x,k+=s*de,K+=s*ge,N+=s*ve,we+=s*ue,D+=s*be,X+=s*_e,J+=s*Oe,se+=s*Ue,re+=s*Ce,Z+=s*$e,te+=s*ke,ee+=s*He,F+=s*qe,Y+=s*je,P+=s*Ge,s=u[3],k+=s*x,K+=s*de,N+=s*ge,we+=s*ve,D+=s*ue,X+=s*be,J+=s*_e,se+=s*Oe,re+=s*Ue,Z+=s*Ce,te+=s*$e,ee+=s*ke,F+=s*He,Y+=s*qe,P+=s*je,q+=s*Ge,s=u[4],K+=s*x,N+=s*de,we+=s*ge,D+=s*ve,X+=s*ue,J+=s*be,se+=s*_e,re+=s*Oe,Z+=s*Ue,te+=s*Ce,ee+=s*$e,F+=s*ke,Y+=s*He,P+=s*qe,q+=s*je,G+=s*Ge,s=u[5],N+=s*x,we+=s*de,D+=s*ge,X+=s*ve,J+=s*ue,se+=s*be,re+=s*_e,Z+=s*Oe,te+=s*Ue,ee+=s*Ce,F+=s*$e,Y+=s*ke,P+=s*He,q+=s*qe,G+=s*je,H+=s*Ge,s=u[6],we+=s*x,D+=s*de,X+=s*ge,J+=s*ve,se+=s*ue,re+=s*be,Z+=s*_e,te+=s*Oe,ee+=s*Ue,F+=s*Ce,Y+=s*$e,P+=s*ke,q+=s*He,G+=s*qe,H+=s*je,v+=s*Ge,s=u[7],D+=s*x,X+=s*de,J+=s*ge,se+=s*ve,re+=s*ue,Z+=s*be,te+=s*_e,ee+=s*Oe,F+=s*Ue,Y+=s*Ce,P+=s*$e,q+=s*ke,G+=s*He,H+=s*qe,v+=s*je,m+=s*Ge,s=u[8],X+=s*x,J+=s*de,se+=s*ge,re+=s*ve,Z+=s*ue,te+=s*be,ee+=s*_e,F+=s*Oe,Y+=s*Ue,P+=s*Ce,q+=s*$e,G+=s*ke,H+=s*He,v+=s*qe,m+=s*je,B+=s*Ge,s=u[9],J+=s*x,se+=s*de,re+=s*ge,Z+=s*ve,te+=s*ue,ee+=s*be,F+=s*_e,Y+=s*Oe,P+=s*Ue,q+=s*Ce,G+=s*$e,H+=s*ke,v+=s*He,m+=s*qe,B+=s*je,A+=s*Ge,s=u[10],se+=s*x,re+=s*de,Z+=s*ge,te+=s*ve,ee+=s*ue,F+=s*be,Y+=s*_e,P+=s*Oe,q+=s*Ue,G+=s*Ce,H+=s*$e,v+=s*ke,m+=s*He,B+=s*qe,A+=s*je,T+=s*Ge,s=u[11],re+=s*x,Z+=s*de,te+=s*ge,ee+=s*ve,F+=s*ue,Y+=s*be,P+=s*_e,q+=s*Oe,G+=s*Ue,H+=s*Ce,v+=s*$e,m+=s*ke,B+=s*He,A+=s*qe,T+=s*je,C+=s*Ge,s=u[12],Z+=s*x,te+=s*de,ee+=s*ge,F+=s*ve,Y+=s*ue,P+=s*be,q+=s*_e,G+=s*Oe,H+=s*Ue,v+=s*Ce,m+=s*$e,B+=s*ke,A+=s*He,T+=s*qe,C+=s*je,V+=s*Ge,s=u[13],te+=s*x,ee+=s*de,F+=s*ge,Y+=s*ve,P+=s*ue,q+=s*be,G+=s*_e,H+=s*Oe,v+=s*Ue,m+=s*Ce,B+=s*$e,A+=s*ke,T+=s*He,C+=s*qe,V+=s*je,ie+=s*Ge,s=u[14],ee+=s*x,F+=s*de,Y+=s*ge,P+=s*ve,q+=s*ue,G+=s*be,H+=s*_e,v+=s*Oe,m+=s*Ue,B+=s*Ce,A+=s*$e,T+=s*ke,C+=s*He,V+=s*qe,ie+=s*je,ce+=s*Ge,s=u[15],F+=s*x,Y+=s*de,P+=s*ge,q+=s*ve,G+=s*ue,H+=s*be,v+=s*_e,m+=s*Oe,B+=s*Ue,A+=s*Ce,T+=s*$e,C+=s*ke,V+=s*He,ie+=s*qe,ce+=s*je,oe+=s*Ge,_+=38*Y,g+=38*P,E+=38*q,k+=38*G,K+=38*H,N+=38*v,we+=38*m,D+=38*B,X+=38*A,J+=38*T,se+=38*C,re+=38*V,Z+=38*ie,te+=38*ce,ee+=38*oe,l=1,s=_+l+65535,l=Math.floor(s/65536),_=s-l*65536,s=g+l+65535,l=Math.floor(s/65536),g=s-l*65536,s=E+l+65535,l=Math.floor(s/65536),E=s-l*65536,s=k+l+65535,l=Math.floor(s/65536),k=s-l*65536,s=K+l+65535,l=Math.floor(s/65536),K=s-l*65536,s=N+l+65535,l=Math.floor(s/65536),N=s-l*65536,s=we+l+65535,l=Math.floor(s/65536),we=s-l*65536,s=D+l+65535,l=Math.floor(s/65536),D=s-l*65536,s=X+l+65535,l=Math.floor(s/65536),X=s-l*65536,s=J+l+65535,l=Math.floor(s/65536),J=s-l*65536,s=se+l+65535,l=Math.floor(s/65536),se=s-l*65536,s=re+l+65535,l=Math.floor(s/65536),re=s-l*65536,s=Z+l+65535,l=Math.floor(s/65536),Z=s-l*65536,s=te+l+65535,l=Math.floor(s/65536),te=s-l*65536,s=ee+l+65535,l=Math.floor(s/65536),ee=s-l*65536,s=F+l+65535,l=Math.floor(s/65536),F=s-l*65536,_+=l-1+37*(l-1),l=1,s=_+l+65535,l=Math.floor(s/65536),_=s-l*65536,s=g+l+65535,l=Math.floor(s/65536),g=s-l*65536,s=E+l+65535,l=Math.floor(s/65536),E=s-l*65536,s=k+l+65535,l=Math.floor(s/65536),k=s-l*65536,s=K+l+65535,l=Math.floor(s/65536),K=s-l*65536,s=N+l+65535,l=Math.floor(s/65536),N=s-l*65536,s=we+l+65535,l=Math.floor(s/65536),we=s-l*65536,s=D+l+65535,l=Math.floor(s/65536),D=s-l*65536,s=X+l+65535,l=Math.floor(s/65536),X=s-l*65536,s=J+l+65535,l=Math.floor(s/65536),J=s-l*65536,s=se+l+65535,l=Math.floor(s/65536),se=s-l*65536,s=re+l+65535,l=Math.floor(s/65536),re=s-l*65536,s=Z+l+65535,l=Math.floor(s/65536),Z=s-l*65536,s=te+l+65535,l=Math.floor(s/65536),te=s-l*65536,s=ee+l+65535,l=Math.floor(s/65536),ee=s-l*65536,s=F+l+65535,l=Math.floor(s/65536),F=s-l*65536,_+=l-1+37*(l-1),o[0]=_,o[1]=g,o[2]=E,o[3]=k,o[4]=K,o[5]=N,o[6]=we,o[7]=D,o[8]=X,o[9]=J,o[10]=se,o[11]=re,o[12]=Z,o[13]=te,o[14]=ee,o[15]=F}function tt(o,u){pe(o,u,u)}function ii(o,u){var f=n(),s;for(s=0;s<16;s++)f[s]=u[s];for(s=253;s>=0;s--)tt(f,f),s!==2&&s!==4&&pe(f,f,u);for(s=0;s<16;s++)o[s]=f[s]}function oi(o,u){var f=n(),s;for(s=0;s<16;s++)f[s]=u[s];for(s=250;s>=0;s--)tt(f,f),s!==1&&pe(f,f,u);for(s=0;s<16;s++)o[s]=f[s]}function Mn(o,u,f){var s=new Uint8Array(32),l=new Float64Array(80),_,g,E=n(),k=n(),K=n(),N=n(),we=n(),D=n();for(g=0;g<31;g++)s[g]=u[g];for(s[31]=u[31]&127|64,s[0]&=248,jr(l,f),g=0;g<16;g++)k[g]=l[g],N[g]=E[g]=K[g]=0;for(E[0]=N[0]=1,g=254;g>=0;--g)_=s[g>>>3]>>>(g&7)&1,Wt(E,k,_),Wt(K,N,_),at(we,E,K),ct(E,E,K),at(K,k,N),ct(k,k,N),tt(N,we),tt(D,E),pe(E,K,E),pe(K,k,we),at(we,E,K),ct(E,E,K),tt(k,E),ct(K,N,D),pe(E,K,h),at(E,E,N),pe(K,K,E),pe(E,N,D),pe(N,k,l),tt(k,we),Wt(E,k,_),Wt(K,N,_);for(g=0;g<16;g++)l[g+16]=E[g],l[g+32]=K[g],l[g+48]=k[g],l[g+64]=N[g];var X=l.subarray(32),J=l.subarray(16);return ii(X,X),pe(J,J,X),Yt(o,J),0}function Fn(o,u){return Mn(o,u,a)}function ai(o,u){return r(u,32),Fn(o,u)}function qn(o,u,f){var s=new Uint8Array(32);return Mn(s,f,u),S(o,i,s,fe)}var ci=Ee,La=Ke;function Oa(o,u,f,s,l,_){var g=new Uint8Array(32);return qn(g,l,_),ci(o,u,f,s,g)}function za(o,u,f,s,l,_){var g=new Uint8Array(32);return qn(g,l,_),La(o,u,f,s,g)}var fi=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function ui(o,u,f,s){for(var l=new Int32Array(16),_=new Int32Array(16),g,E,k,K,N,we,D,X,J,se,re,Z,te,ee,F,Y,P,q,G,H,v,m,B,A,T,C,V=o[0],ie=o[1],ce=o[2],oe=o[3],x=o[4],de=o[5],ge=o[6],ve=o[7],ue=u[0],be=u[1],_e=u[2],Oe=u[3],Ue=u[4],Ce=u[5],$e=u[6],ke=u[7],He=0;s>=128;){for(G=0;G<16;G++)H=8*G+He,l[G]=f[H+0]<<24|f[H+1]<<16|f[H+2]<<8|f[H+3],_[G]=f[H+4]<<24|f[H+5]<<16|f[H+6]<<8|f[H+7];for(G=0;G<80;G++)if(g=V,E=ie,k=ce,K=oe,N=x,we=de,D=ge,X=ve,J=ue,se=be,re=_e,Z=Oe,te=Ue,ee=Ce,F=$e,Y=ke,v=ve,m=ke,B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=(x>>>14|Ue<<32-14)^(x>>>18|Ue<<32-18)^(Ue>>>41-32|x<<32-(41-32)),m=(Ue>>>14|x<<32-14)^(Ue>>>18|x<<32-18)^(x>>>41-32|Ue<<32-(41-32)),B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,v=x&de^~x&ge,m=Ue&Ce^~Ue&$e,B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,v=fi[G*2],m=fi[G*2+1],B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,v=l[G%16],m=_[G%16],B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,P=T&65535|C<<16,q=B&65535|A<<16,v=P,m=q,B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=(V>>>28|ue<<32-28)^(ue>>>34-32|V<<32-(34-32))^(ue>>>39-32|V<<32-(39-32)),m=(ue>>>28|V<<32-28)^(V>>>34-32|ue<<32-(34-32))^(V>>>39-32|ue<<32-(39-32)),B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,v=V&ie^V&ce^ie&ce,m=ue&be^ue&_e^be&_e,B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,X=T&65535|C<<16,Y=B&65535|A<<16,v=K,m=Z,B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=P,m=q,B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,K=T&65535|C<<16,Z=B&65535|A<<16,ie=g,ce=E,oe=k,x=K,de=N,ge=we,ve=D,V=X,be=J,_e=se,Oe=re,Ue=Z,Ce=te,$e=ee,ke=F,ue=Y,G%16===15)for(H=0;H<16;H++)v=l[H],m=_[H],B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=l[(H+9)%16],m=_[(H+9)%16],B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,P=l[(H+1)%16],q=_[(H+1)%16],v=(P>>>1|q<<32-1)^(P>>>8|q<<32-8)^P>>>7,m=(q>>>1|P<<32-1)^(q>>>8|P<<32-8)^(q>>>7|P<<32-7),B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,P=l[(H+14)%16],q=_[(H+14)%16],v=(P>>>19|q<<32-19)^(q>>>61-32|P<<32-(61-32))^P>>>6,m=(q>>>19|P<<32-19)^(P>>>61-32|q<<32-(61-32))^(q>>>6|P<<32-6),B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,l[H]=T&65535|C<<16,_[H]=B&65535|A<<16;v=V,m=ue,B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=o[0],m=u[0],B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,o[0]=V=T&65535|C<<16,u[0]=ue=B&65535|A<<16,v=ie,m=be,B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=o[1],m=u[1],B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,o[1]=ie=T&65535|C<<16,u[1]=be=B&65535|A<<16,v=ce,m=_e,B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=o[2],m=u[2],B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,o[2]=ce=T&65535|C<<16,u[2]=_e=B&65535|A<<16,v=oe,m=Oe,B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=o[3],m=u[3],B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,o[3]=oe=T&65535|C<<16,u[3]=Oe=B&65535|A<<16,v=x,m=Ue,B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=o[4],m=u[4],B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,o[4]=x=T&65535|C<<16,u[4]=Ue=B&65535|A<<16,v=de,m=Ce,B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=o[5],m=u[5],B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,o[5]=de=T&65535|C<<16,u[5]=Ce=B&65535|A<<16,v=ge,m=$e,B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=o[6],m=u[6],B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,o[6]=ge=T&65535|C<<16,u[6]=$e=B&65535|A<<16,v=ve,m=ke,B=m&65535,A=m>>>16,T=v&65535,C=v>>>16,v=o[7],m=u[7],B+=m&65535,A+=m>>>16,T+=v&65535,C+=v>>>16,A+=B>>>16,T+=A>>>16,C+=T>>>16,o[7]=ve=T&65535|C<<16,u[7]=ke=B&65535|A<<16,He+=128,s-=128}return s}function zt(o,u,f){var s=new Int32Array(8),l=new Int32Array(8),_=new Uint8Array(256),g,E=f;for(s[0]=1779033703,s[1]=3144134277,s[2]=1013904242,s[3]=2773480762,s[4]=1359893119,s[5]=2600822924,s[6]=528734635,s[7]=1541459225,l[0]=4089235720,l[1]=2227873595,l[2]=4271175723,l[3]=1595750129,l[4]=2917565137,l[5]=725511199,l[6]=4215389547,l[7]=327033209,ui(s,l,u,f),f%=128,g=0;g=0;--l)s=f[l/8|0]>>(l&7)&1,li(o,u,s),jn(u,o),jn(o,o),li(o,u,s)}function Gn(o,u){var f=[n(),n(),n(),n()];We(f[0],p),We(f[1],w),We(f[2],d),pe(f[3],p,w),Kr(o,f,u)}function Wr(o,u,f){var s=new Uint8Array(64),l=[n(),n(),n(),n()],_;for(f||r(u,32),zt(s,u,32),s[0]&=248,s[31]&=127,s[31]|=64,Gn(l,s),Gr(o,l),_=0;_<32;_++)u[_+32]=o[_];return 0}var Kn=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Yr(o,u){var f,s,l,_;for(s=63;s>=32;--s){for(f=0,l=s-32,_=s-12;l<_;++l)u[l]+=f-16*u[s]*Kn[l-(s-32)],f=Math.floor((u[l]+128)/256),u[l]-=f*256;u[l]+=f,u[s]=0}for(f=0,l=0;l<32;l++)u[l]+=f-(u[31]>>4)*Kn[l],f=u[l]>>8,u[l]&=255;for(l=0;l<32;l++)u[l]-=f*Kn[l];for(s=0;s<32;s++)u[s+1]+=u[s]>>8,o[s]=u[s]&255}function Vr(o){var u=new Float64Array(64),f;for(f=0;f<64;f++)u[f]=o[f];for(f=0;f<64;f++)o[f]=0;Yr(o,u)}function di(o,u,f,s){var l=new Uint8Array(64),_=new Uint8Array(64),g=new Uint8Array(64),E,k,K=new Float64Array(64),N=[n(),n(),n(),n()];zt(l,s,32),l[0]&=248,l[31]&=127,l[31]|=64;var we=f+64;for(E=0;E>7&&ct(o[0],c,o[0]),pe(o[3],o[0],o[1]),0)}function Xr(o,u,f,s){var l,_=new Uint8Array(32),g=new Uint8Array(64),E=[n(),n(),n(),n()],k=[n(),n(),n(),n()];if(f<64||Ha(k,s))return-1;for(l=0;l=0},t.sign.keyPair=function(){var o=new Uint8Array(Ht),u=new Uint8Array(Xt);return Wr(o,u),{publicKey:o,secretKey:u}},t.sign.keyPair.fromSecretKey=function(o){if(Qe(o),o.length!==Xt)throw new Error("bad secret key size");for(var u=new Uint8Array(Ht),f=0;f0&&!t.includes(e.length))throw new TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}Re.bytes=Cs;function go(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");cr(e.outputLen),cr(e.blockLen)}Re.hash=go;function vo(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}Re.exists=vo;function mo(e,t){Cs(e);const n=t.outputLen;if(e.lengthnew Uint8Array(I.buffer,I.byteOffset,I.byteLength);e.u8=n;const r=I=>new Uint32Array(I.buffer,I.byteOffset,Math.floor(I.byteLength/4));e.u32=r;const i=I=>new DataView(I.buffer,I.byteOffset,I.byteLength);e.createView=i;const a=(I,S)=>I<<32-S|I>>>S;if(e.rotr=a,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!e.isLE)throw new Error("Non little-endian hardware is not supported");const c=Array.from({length:256},(I,S)=>S.toString(16).padStart(2,"0"));function d(I){if(!(I instanceof Uint8Array))throw new Error("Uint8Array expected");let S="";for(let fe=0;fe{};e.nextTick=y;async function b(I,S,fe){let ye=Date.now();for(let ae=0;ae=0&&xeye instanceof Uint8Array))throw new Error("Uint8Array list expected");if(I.length===1)return I[0];const S=I.reduce((ye,ae)=>ye+ae.length,0),fe=new Uint8Array(S);for(let ye=0,ae=0;yeObject.prototype.toString.call(I)==="[object Object]"&&I.constructor===Object;function L(I,S){if(S!==void 0&&(typeof S!="object"||!z(S)))throw new TypeError("Options should be object or undefined");return Object.assign(I,S)}e.checkOpts=L;function Q(I){const S=ye=>I().update(w(ye)).digest(),fe=I();return S.outputLen=fe.outputLen,S.blockLen=fe.blockLen,S.create=()=>I(),S}e.wrapConstructor=Q;function he(I){const S=(ye,ae)=>I(ae).update(w(ye)).digest(),fe=I({});return S.outputLen=fe.outputLen,S.blockLen=fe.blockLen,S.create=ye=>I(ye),S}e.wrapConstructorWithOpts=he;function $(I=32){if(t.crypto.web)return t.crypto.web.getRandomValues(new Uint8Array(I));if(t.crypto.node)return new Uint8Array(t.crypto.node.randomBytes(I).buffer);throw new Error("The environment doesn't have randomBytes function")}e.randomBytes=$})(Dt);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=void 0;const t=Re,n=Dt;class r extends n.Hash{constructor(c,d){super(),this.finished=!1,this.destroyed=!1,t.default.hash(c);const h=(0,n.toBytes)(d);if(this.iHash=c.create(),typeof this.iHash.update!="function")throw new TypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const y=this.blockLen,b=new Uint8Array(y);b.set(h.length>y?c.create().update(h).digest():h);for(let p=0;pnew r(a,c).update(d).digest();e.hmac=i,e.hmac.create=(a,c)=>new r(a,c)})(Ao);Object.defineProperty(sn,"__esModule",{value:!0});sn.pbkdf2Async=sn.pbkdf2=void 0;const Xn=Re,sc=Ao,tn=Dt;function Eo(e,t,n,r){Xn.default.hash(e);const i=(0,tn.checkOpts)({dkLen:32,asyncTick:10},r),{c:a,dkLen:c,asyncTick:d}=i;if(Xn.default.number(a),Xn.default.number(c),Xn.default.number(d),a<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const h=(0,tn.toBytes)(t),y=(0,tn.toBytes)(n),b=new Uint8Array(c),p=sc.hmac.create(e,h),w=p._cloneInto().update(y);return{c:a,dkLen:c,asyncTick:d,DK:b,PRF:p,PRFSalt:w}}function To(e,t,n,r,i){return e.destroy(),t.destroy(),r&&r.destroy(),i.fill(0),n}function ic(e,t,n,r){const{c:i,dkLen:a,DK:c,PRF:d,PRFSalt:h}=Eo(e,t,n,r);let y;const b=new Uint8Array(4),p=(0,tn.createView)(b),w=new Uint8Array(d.outputLen);for(let U=1,O=0;O{h._cloneInto(b).update(U).digestInto(U);for(let he=0;he>i&a),d=Number(n&a),h=r?4:0,y=r?0:4;e.setUint32(t+h,c,r),e.setUint32(t+y,d,r)}let cc=class extends An.Hash{constructor(t,n,r,i){super(),this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=(0,An.createView)(this.buffer)}update(t){ts.default.exists(this);const{view:n,buffer:r,blockLen:i}=this;t=(0,An.toBytes)(t);const a=t.length;for(let c=0;ci-c&&(this.process(r,0),c=0);for(let p=c;pb.length)throw new Error("_sha2: outputLen bigger than state");for(let p=0;pe&t^~e&n,lc=(e,t,n)=>e&t^e&n^t&n,dc=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]),wt=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),gt=new Uint32Array(64);let Uo=class extends fc.SHA2{constructor(){super(64,32,8,!1),this.A=wt[0]|0,this.B=wt[1]|0,this.C=wt[2]|0,this.D=wt[3]|0,this.E=wt[4]|0,this.F=wt[5]|0,this.G=wt[6]|0,this.H=wt[7]|0}get(){const{A:t,B:n,C:r,D:i,E:a,F:c,G:d,H:h}=this;return[t,n,r,i,a,c,d,h]}set(t,n,r,i,a,c,d,h){this.A=t|0,this.B=n|0,this.C=r|0,this.D=i|0,this.E=a|0,this.F=c|0,this.G=d|0,this.H=h|0}process(t,n){for(let p=0;p<16;p++,n+=4)gt[p]=t.getUint32(n,!1);for(let p=16;p<64;p++){const w=gt[p-15],U=gt[p-2],O=(0,nt.rotr)(w,7)^(0,nt.rotr)(w,18)^w>>>3,z=(0,nt.rotr)(U,17)^(0,nt.rotr)(U,19)^U>>>10;gt[p]=z+gt[p-7]+O+gt[p-16]|0}let{A:r,B:i,C:a,D:c,E:d,F:h,G:y,H:b}=this;for(let p=0;p<64;p++){const w=(0,nt.rotr)(d,6)^(0,nt.rotr)(d,11)^(0,nt.rotr)(d,25),U=b+w+uc(d,h,y)+dc[p]+gt[p]|0,z=((0,nt.rotr)(r,2)^(0,nt.rotr)(r,13)^(0,nt.rotr)(r,22))+lc(r,i,a)|0;b=y,y=h,h=d,d=c+U|0,c=a,a=i,i=r,r=U+z|0}r=r+this.A|0,i=i+this.B|0,a=a+this.C|0,c=c+this.D|0,d=d+this.E|0,h=h+this.F|0,y=y+this.G|0,b=b+this.H|0,this.set(r,i,a,c,d,h,y,b)}roundClean(){gt.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};class hc extends Uo{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}on.sha256=(0,nt.wrapConstructor)(()=>new Uo);on.sha224=(0,nt.wrapConstructor)(()=>new hc);var it={},So={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.add=e.toBig=e.split=e.fromBig=void 0;const t=BigInt(2**32-1),n=BigInt(32);function r(M,W=!1){return W?{h:Number(M&t),l:Number(M>>n&t)}:{h:Number(M>>n&t)|0,l:Number(M&t)|0}}e.fromBig=r;function i(M,W=!1){let R=new Uint32Array(M.length),Ae=new Uint32Array(M.length);for(let Ee=0;EeBigInt(M>>>0)<>>0);e.toBig=a;const c=(M,W,R)=>M>>>R,d=(M,W,R)=>M<<32-R|W>>>R,h=(M,W,R)=>M>>>R|W<<32-R,y=(M,W,R)=>M<<32-R|W>>>R,b=(M,W,R)=>M<<64-R|W>>>R-32,p=(M,W,R)=>M>>>R-32|W<<64-R,w=(M,W)=>W,U=(M,W)=>M,O=(M,W,R)=>M<>>32-R,z=(M,W,R)=>W<>>32-R,L=(M,W,R)=>W<>>64-R,Q=(M,W,R)=>M<>>64-R;function he(M,W,R,Ae){const Ee=(W>>>0)+(Ae>>>0);return{h:M+R+(Ee/2**32|0)|0,l:Ee|0}}e.add=he;const $=(M,W,R)=>(M>>>0)+(W>>>0)+(R>>>0),I=(M,W,R,Ae)=>W+R+Ae+(M/2**32|0)|0,S=(M,W,R,Ae)=>(M>>>0)+(W>>>0)+(R>>>0)+(Ae>>>0),fe=(M,W,R,Ae,Ee)=>W+R+Ae+Ee+(M/2**32|0)|0,ye=(M,W,R,Ae,Ee)=>(M>>>0)+(W>>>0)+(R>>>0)+(Ae>>>0)+(Ee>>>0),ae=(M,W,R,Ae,Ee,Ke)=>W+R+Ae+Ee+Ke+(M/2**32|0)|0,xe={fromBig:r,split:i,toBig:e.toBig,shrSH:c,shrSL:d,rotrSH:h,rotrSL:y,rotrBH:b,rotrBL:p,rotr32H:w,rotr32L:U,rotlSH:O,rotlSL:z,rotlBH:L,rotlBL:Q,add:he,add3L:$,add3H:I,add4L:S,add4H:fe,add5H:ae,add5L:ye};e.default=xe})(So);Object.defineProperty(it,"__esModule",{value:!0});it.sha384=it.sha512_256=it.sha512_224=it.sha512=it.SHA512=void 0;const xc=$n,le=So,hr=Dt,[pc,yc]=le.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),vt=new Uint32Array(80),mt=new Uint32Array(80);let kn=class extends xc.SHA2{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:t,Al:n,Bh:r,Bl:i,Ch:a,Cl:c,Dh:d,Dl:h,Eh:y,El:b,Fh:p,Fl:w,Gh:U,Gl:O,Hh:z,Hl:L}=this;return[t,n,r,i,a,c,d,h,y,b,p,w,U,O,z,L]}set(t,n,r,i,a,c,d,h,y,b,p,w,U,O,z,L){this.Ah=t|0,this.Al=n|0,this.Bh=r|0,this.Bl=i|0,this.Ch=a|0,this.Cl=c|0,this.Dh=d|0,this.Dl=h|0,this.Eh=y|0,this.El=b|0,this.Fh=p|0,this.Fl=w|0,this.Gh=U|0,this.Gl=O|0,this.Hh=z|0,this.Hl=L|0}process(t,n){for(let $=0;$<16;$++,n+=4)vt[$]=t.getUint32(n),mt[$]=t.getUint32(n+=4);for(let $=16;$<80;$++){const I=vt[$-15]|0,S=mt[$-15]|0,fe=le.default.rotrSH(I,S,1)^le.default.rotrSH(I,S,8)^le.default.shrSH(I,S,7),ye=le.default.rotrSL(I,S,1)^le.default.rotrSL(I,S,8)^le.default.shrSL(I,S,7),ae=vt[$-2]|0,xe=mt[$-2]|0,M=le.default.rotrSH(ae,xe,19)^le.default.rotrBH(ae,xe,61)^le.default.shrSH(ae,xe,6),W=le.default.rotrSL(ae,xe,19)^le.default.rotrBL(ae,xe,61)^le.default.shrSL(ae,xe,6),R=le.default.add4L(ye,W,mt[$-7],mt[$-16]),Ae=le.default.add4H(R,fe,M,vt[$-7],vt[$-16]);vt[$]=Ae|0,mt[$]=R|0}let{Ah:r,Al:i,Bh:a,Bl:c,Ch:d,Cl:h,Dh:y,Dl:b,Eh:p,El:w,Fh:U,Fl:O,Gh:z,Gl:L,Hh:Q,Hl:he}=this;for(let $=0;$<80;$++){const I=le.default.rotrSH(p,w,14)^le.default.rotrSH(p,w,18)^le.default.rotrBH(p,w,41),S=le.default.rotrSL(p,w,14)^le.default.rotrSL(p,w,18)^le.default.rotrBL(p,w,41),fe=p&U^~p&z,ye=w&O^~w&L,ae=le.default.add5L(he,S,ye,yc[$],mt[$]),xe=le.default.add5H(ae,Q,I,fe,pc[$],vt[$]),M=ae|0,W=le.default.rotrSH(r,i,28)^le.default.rotrBH(r,i,34)^le.default.rotrBH(r,i,39),R=le.default.rotrSL(r,i,28)^le.default.rotrBL(r,i,34)^le.default.rotrBL(r,i,39),Ae=r&a^r&d^a&d,Ee=i&c^i&h^c&h;Q=z|0,he=L|0,z=U|0,L=O|0,U=p|0,O=w|0,{h:p,l:w}=le.default.add(y|0,b|0,xe|0,M|0),y=d|0,b=h|0,d=a|0,h=c|0,a=r|0,c=i|0;const Ke=le.default.add3L(M,R,Ee);r=le.default.add3H(Ke,xe,W,Ae),i=Ke|0}({h:r,l:i}=le.default.add(this.Ah|0,this.Al|0,r|0,i|0)),{h:a,l:c}=le.default.add(this.Bh|0,this.Bl|0,a|0,c|0),{h:d,l:h}=le.default.add(this.Ch|0,this.Cl|0,d|0,h|0),{h:y,l:b}=le.default.add(this.Dh|0,this.Dl|0,y|0,b|0),{h:p,l:w}=le.default.add(this.Eh|0,this.El|0,p|0,w|0),{h:U,l:O}=le.default.add(this.Fh|0,this.Fl|0,U|0,O|0),{h:z,l:L}=le.default.add(this.Gh|0,this.Gl|0,z|0,L|0),{h:Q,l:he}=le.default.add(this.Hh|0,this.Hl|0,Q|0,he|0),this.set(r,i,a,c,d,h,y,b,p,w,U,O,z,L,Q,he)}roundClean(){vt.fill(0),mt.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)}};it.SHA512=kn;class bc extends kn{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}let _c=class extends kn{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}},wc=class extends kn{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}};it.sha512=(0,hr.wrapConstructor)(()=>new kn);it.sha512_224=(0,hr.wrapConstructor)(()=>new bc);it.sha512_256=(0,hr.wrapConstructor)(()=>new _c);it.sha384=(0,hr.wrapConstructor)(()=>new wc);const gc=Fa(tc);Object.defineProperty(Ze,"__esModule",{value:!0});var Bo=Ze.mnemonicToSeedSync=Ze.mnemonicToSeed=Ze.validateMnemonic=Ze.entropyToMnemonic=Ze.mnemonicToEntropy=Ze.generateMnemonic=void 0;/*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */const Io=Re,Co=sn,vc=on,$o=it,mc=Dt,Qn=gc,Ac=e=>e[0]==="あいこくしん";function ko(e){if(typeof e!="string")throw new TypeError(`Invalid mnemonic type: ${typeof e}`);return e.normalize("NFKD")}function $s(e){const t=ko(e),n=t.split(" ");if(![12,15,18,21,24].includes(n.length))throw new Error("Invalid mnemonic");return{nfkd:t,words:n}}function Lo(e){Io.default.bytes(e,16,20,24,28,32)}function Ec(e,t=128){if(Io.default.number(t),t%32!==0||t>256)throw new TypeError("Invalid entropy");return Ho((0,mc.randomBytes)(t/8),e)}Ze.generateMnemonic=Ec;const Tc=e=>{const t=8-e.length/4;return new Uint8Array([(0,vc.sha256)(e)[0]>>t<{if(typeof t!="string")throw new Error(`Wordlist: non-string element: ${t}`)}),Qn.utils.chain(Qn.utils.checksum(1,Tc),Qn.utils.radix2(11,!0),Qn.utils.alphabet(e))}function zo(e,t){const{words:n}=$s(e),r=Oo(t).decode(n);return Lo(r),r}Ze.mnemonicToEntropy=zo;function Ho(e,t){return Lo(e),Oo(t).encode(e).join(Ac(t)?" ":" ")}Ze.entropyToMnemonic=Ho;function Uc(e,t){try{zo(e,t)}catch{return!1}return!0}Ze.validateMnemonic=Uc;const No=e=>ko(`mnemonic${e}`);function Sc(e,t=""){return(0,Co.pbkdf2Async)($o.sha512,$s(e).nfkd,No(t),{c:2048,dkLen:64})}Ze.mnemonicToSeed=Sc;function Bc(e,t=""){return(0,Co.pbkdf2)($o.sha512,$s(e).nfkd,No(t),{c:2048,dkLen:64})}Bo=Ze.mnemonicToSeedSync=Bc;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ic=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),ns=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),ht=(e,t)=>e<<32-t|e>>>t,Cc=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!Cc)throw new Error("Non little-endian hardware is not supported");const $c=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Ro(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected");let t="";for(let n=0;ne().update(Ln(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function Lc(e){const t=(r,i)=>e(i).update(Ln(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}function vs(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function Oc(e){if(typeof e!="boolean")throw new Error(`Expected boolean, not ${e}`)}function Do(e,...t){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function zc(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");vs(e.outputLen),vs(e.blockLen)}function Hc(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Nc(e,t){Do(e);const n=t.outputLen;if(e.length>i&a),d=Number(n&a),h=r?4:0,y=r?0:4;e.setUint32(t+h,c,r),e.setUint32(t+y,d,r)}class Mo extends ks{constructor(t,n,r,i){super(),this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=ns(this.buffer)}update(t){et.exists(this);const{view:n,buffer:r,blockLen:i}=this;t=Ln(t);const a=t.length;for(let c=0;ci-c&&(this.process(r,0),c=0);for(let h=c;hd.setUint32(4*y,h,a))}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:r,length:i,finished:a,destroyed:c,pos:d}=this;return t.length=i,t.pos=d,t.finished=a,t.destroyed=c,i%n&&t.buffer.set(r),t}}const Pc=(e,t,n)=>e&t^~e&n,Dc=(e,t,n)=>e&t^e&n^t&n,Mc=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]),At=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Et=new Uint32Array(64);class Fc extends Mo{constructor(){super(64,32,8,!1),this.A=At[0]|0,this.B=At[1]|0,this.C=At[2]|0,this.D=At[3]|0,this.E=At[4]|0,this.F=At[5]|0,this.G=At[6]|0,this.H=At[7]|0}get(){const{A:t,B:n,C:r,D:i,E:a,F:c,G:d,H:h}=this;return[t,n,r,i,a,c,d,h]}set(t,n,r,i,a,c,d,h){this.A=t|0,this.B=n|0,this.C=r|0,this.D=i|0,this.E=a|0,this.F=c|0,this.G=d|0,this.H=h|0}process(t,n){for(let p=0;p<16;p++,n+=4)Et[p]=t.getUint32(n,!1);for(let p=16;p<64;p++){const w=Et[p-15],U=Et[p-2],O=ht(w,7)^ht(w,18)^w>>>3,z=ht(U,17)^ht(U,19)^U>>>10;Et[p]=z+Et[p-7]+O+Et[p-16]|0}let{A:r,B:i,C:a,D:c,E:d,F:h,G:y,H:b}=this;for(let p=0;p<64;p++){const w=ht(d,6)^ht(d,11)^ht(d,25),U=b+w+Pc(d,h,y)+Mc[p]+Et[p]|0,z=(ht(r,2)^ht(r,13)^ht(r,22))+Dc(r,i,a)|0;b=y,y=h,h=d,d=c+U|0,c=a,a=i,i=r,r=U+z|0}r=r+this.A|0,i=i+this.B|0,a=a+this.C|0,c=c+this.D|0,d=d+this.E|0,h=h+this.F|0,y=y+this.G|0,b=b+this.H|0,this.set(r,i,a,c,d,h,y,b)}roundClean(){Et.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const qc=On(()=>new Fc),Jn=BigInt(2**32-1),ms=BigInt(32);function Fo(e,t=!1){return t?{h:Number(e&Jn),l:Number(e>>ms&Jn)}:{h:Number(e>>ms&Jn)|0,l:Number(e&Jn)|0}}function jc(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let i=0;iBigInt(e>>>0)<>>0),Kc=(e,t,n)=>e>>>n,Wc=(e,t,n)=>e<<32-n|t>>>n,Yc=(e,t,n)=>e>>>n|t<<32-n,Vc=(e,t,n)=>e<<32-n|t>>>n,Xc=(e,t,n)=>e<<64-n|t>>>n-32,Qc=(e,t,n)=>e>>>n-32|t<<64-n,Jc=(e,t)=>t,Zc=(e,t)=>e,ef=(e,t,n)=>e<>>32-n,tf=(e,t,n)=>t<>>32-n,nf=(e,t,n)=>t<>>64-n,rf=(e,t,n)=>e<>>64-n;function sf(e,t,n,r){const i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:i|0}}const of=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),af=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,cf=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),ff=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0,uf=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0),lf=(e,t,n,r,i,a)=>t+n+r+i+a+(e/2**32|0)|0,ne={fromBig:Fo,split:jc,toBig:Gc,shrSH:Kc,shrSL:Wc,rotrSH:Yc,rotrSL:Vc,rotrBH:Xc,rotrBL:Qc,rotr32H:Jc,rotr32L:Zc,rotlSH:ef,rotlSL:tf,rotlBH:nf,rotlBL:rf,add:sf,add3L:of,add3H:af,add4L:cf,add4H:ff,add5H:lf,add5L:uf},[qo,jo,Go]=[[],[],[]],df=BigInt(0),En=BigInt(1),hf=BigInt(2),xf=BigInt(7),pf=BigInt(256),yf=BigInt(113);for(let e=0,t=En,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],qo.push(2*(5*r+n)),jo.push((e+1)*(e+2)/2%64);let i=df;for(let a=0;a<7;a++)t=(t<>xf)*yf)%pf,t&hf&&(i^=En<<(En<n>32?ne.rotlBH(e,t,n):ne.rotlSH(e,t,n),mi=(e,t,n)=>n>32?ne.rotlBL(e,t,n):ne.rotlSL(e,t,n);function wf(e,t=24){const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let c=0;c<10;c++)n[c]=e[c]^e[c+10]^e[c+20]^e[c+30]^e[c+40];for(let c=0;c<10;c+=2){const d=(c+8)%10,h=(c+2)%10,y=n[h],b=n[h+1],p=vi(y,b,1)^n[d],w=mi(y,b,1)^n[d+1];for(let U=0;U<50;U+=10)e[c+U]^=p,e[c+U+1]^=w}let i=e[2],a=e[3];for(let c=0;c<24;c++){const d=jo[c],h=vi(i,a,d),y=mi(i,a,d),b=qo[c];i=e[b],a=e[b+1],e[b]=h,e[b+1]=y}for(let c=0;c<50;c+=10){for(let d=0;d<10;d++)n[d]=e[c+d];for(let d=0;d<10;d++)e[c+d]^=~n[(d+2)%10]&n[(d+4)%10]}e[0]^=bf[r],e[1]^=_f[r]}n.fill(0)}class xr extends ks{constructor(t,n,r,i=!1,a=24){if(super(),this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=i,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,et.number(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=Ic(this.state)}keccak(){wf(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){et.exists(this);const{blockLen:n,state:r}=this;t=Ln(t);const i=t.length;for(let a=0;a=r&&this.keccak();const c=Math.min(r-this.posOut,a-i);t.set(n.subarray(this.posOut,this.posOut+c),i),this.posOut+=c,i+=c}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return et.number(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(et.output(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:n,suffix:r,outputLen:i,rounds:a,enableXOF:c}=this;return t||(t=new xr(n,r,i,c,a)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=a,t.suffix=r,t.outputLen=i,t.enableXOF=c,t.destroyed=this.destroyed,t}}const Ot=(e,t,n)=>On(()=>new xr(t,e,n));Ot(6,144,224/8);const an=Ot(6,136,256/8);Ot(6,104,384/8);Ot(6,72,512/8);Ot(1,144,224/8);Ot(1,136,256/8);Ot(1,104,384/8);Ot(1,72,512/8);const Ko=(e,t,n)=>Lc((r={})=>new xr(t,e,r.dkLen===void 0?n:r.dkLen,!0));Ko(31,168,128/8);Ko(31,136,256/8);class Wo extends ks{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,et.hash(t);const r=Ln(n);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new TypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,a=new Uint8Array(i);a.set(r.length>i?t.create().update(r).digest():r);for(let c=0;cnew Wo(e,t).update(n).digest();Ls.create=(e,t)=>new Wo(e,t);const[gf,vf]=ne.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),Tt=new Uint32Array(80),Ut=new Uint32Array(80);class Os extends Mo{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:t,Al:n,Bh:r,Bl:i,Ch:a,Cl:c,Dh:d,Dl:h,Eh:y,El:b,Fh:p,Fl:w,Gh:U,Gl:O,Hh:z,Hl:L}=this;return[t,n,r,i,a,c,d,h,y,b,p,w,U,O,z,L]}set(t,n,r,i,a,c,d,h,y,b,p,w,U,O,z,L){this.Ah=t|0,this.Al=n|0,this.Bh=r|0,this.Bl=i|0,this.Ch=a|0,this.Cl=c|0,this.Dh=d|0,this.Dl=h|0,this.Eh=y|0,this.El=b|0,this.Fh=p|0,this.Fl=w|0,this.Gh=U|0,this.Gl=O|0,this.Hh=z|0,this.Hl=L|0}process(t,n){for(let $=0;$<16;$++,n+=4)Tt[$]=t.getUint32(n),Ut[$]=t.getUint32(n+=4);for(let $=16;$<80;$++){const I=Tt[$-15]|0,S=Ut[$-15]|0,fe=ne.rotrSH(I,S,1)^ne.rotrSH(I,S,8)^ne.shrSH(I,S,7),ye=ne.rotrSL(I,S,1)^ne.rotrSL(I,S,8)^ne.shrSL(I,S,7),ae=Tt[$-2]|0,xe=Ut[$-2]|0,M=ne.rotrSH(ae,xe,19)^ne.rotrBH(ae,xe,61)^ne.shrSH(ae,xe,6),W=ne.rotrSL(ae,xe,19)^ne.rotrBL(ae,xe,61)^ne.shrSL(ae,xe,6),R=ne.add4L(ye,W,Ut[$-7],Ut[$-16]),Ae=ne.add4H(R,fe,M,Tt[$-7],Tt[$-16]);Tt[$]=Ae|0,Ut[$]=R|0}let{Ah:r,Al:i,Bh:a,Bl:c,Ch:d,Cl:h,Dh:y,Dl:b,Eh:p,El:w,Fh:U,Fl:O,Gh:z,Gl:L,Hh:Q,Hl:he}=this;for(let $=0;$<80;$++){const I=ne.rotrSH(p,w,14)^ne.rotrSH(p,w,18)^ne.rotrBH(p,w,41),S=ne.rotrSL(p,w,14)^ne.rotrSL(p,w,18)^ne.rotrBL(p,w,41),fe=p&U^~p&z,ye=w&O^~w&L,ae=ne.add5L(he,S,ye,vf[$],Ut[$]),xe=ne.add5H(ae,Q,I,fe,gf[$],Tt[$]),M=ae|0,W=ne.rotrSH(r,i,28)^ne.rotrBH(r,i,34)^ne.rotrBH(r,i,39),R=ne.rotrSL(r,i,28)^ne.rotrBL(r,i,34)^ne.rotrBL(r,i,39),Ae=r&a^r&d^a&d,Ee=i&c^i&h^c&h;Q=z|0,he=L|0,z=U|0,L=O|0,U=p|0,O=w|0,{h:p,l:w}=ne.add(y|0,b|0,xe|0,M|0),y=d|0,b=h|0,d=a|0,h=c|0,a=r|0,c=i|0;const Ke=ne.add3L(M,R,Ee);r=ne.add3H(Ke,xe,W,Ae),i=Ke|0}({h:r,l:i}=ne.add(this.Ah|0,this.Al|0,r|0,i|0)),{h:a,l:c}=ne.add(this.Bh|0,this.Bl|0,a|0,c|0),{h:d,l:h}=ne.add(this.Ch|0,this.Cl|0,d|0,h|0),{h:y,l:b}=ne.add(this.Dh|0,this.Dl|0,y|0,b|0),{h:p,l:w}=ne.add(this.Eh|0,this.El|0,p|0,w|0),{h:U,l:O}=ne.add(this.Fh|0,this.Fl|0,U|0,O|0),{h:z,l:L}=ne.add(this.Gh|0,this.Gl|0,z|0,L|0),{h:Q,l:he}=ne.add(this.Hh|0,this.Hl|0,Q|0,he|0),this.set(r,i,a,c,d,h,y,b,p,w,U,O,z,L,Q,he)}roundClean(){Tt.fill(0),Ut.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)}}class mf extends Os{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class Af extends Os{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}const Yo=On(()=>new Os);On(()=>new mf);On(()=>new Af);var zs={exports:{}},Vo=function(t,n){return function(){for(var i=new Array(arguments.length),a=0;a"u"}function Tf(e){return e!==null&&!fr(e)&&e.constructor!==null&&!fr(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var Xo=Mt("ArrayBuffer");function Uf(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Xo(e.buffer),t}function Sf(e){return typeof e=="string"}function Bf(e){return typeof e=="number"}function Qo(e){return e!==null&&typeof e=="object"}function er(e){if(Ns(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var If=Mt("Date"),Cf=Mt("File"),$f=Mt("Blob"),kf=Mt("FileList");function Ps(e){return Hs.call(e)==="[object Function]"}function Lf(e){return Qo(e)&&Ps(e.pipe)}function Of(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Hs.call(e)===t||Ps(e.toString)&&e.toString()===t)}var zf=Mt("URLSearchParams");function Hf(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Nf(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Ds(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Rs(e))for(var n=0,r=e.length;n0;)a=r[i],c[a]||(t[a]=e[a],c[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function Ff(e,t,n){e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return r!==-1&&r===n}function qf(e){if(!e)return null;var t=e.length;if(fr(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var jf=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),Fe={isArray:Rs,isArrayBuffer:Xo,isBuffer:Tf,isFormData:Of,isArrayBufferView:Uf,isString:Sf,isNumber:Bf,isObject:Qo,isPlainObject:er,isUndefined:fr,isDate:If,isFile:Cf,isBlob:$f,isFunction:Ps,isStream:Lf,isURLSearchParams:zf,isStandardBrowserEnv:Nf,forEach:Ds,merge:As,extend:Rf,trim:Hf,stripBOM:Pf,inherits:Df,toFlatObject:Mf,kindOf:Ns,kindOfTest:Mt,endsWith:Ff,toArray:qf,isTypedArray:jf,isFileList:kf},Qt=Fe;function Ai(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Jo=function(t,n,r){if(!n)return t;var i;if(r)i=r(n);else if(Qt.isURLSearchParams(n))i=n.toString();else{var a=[];Qt.forEach(n,function(h,y){h===null||typeof h>"u"||(Qt.isArray(h)?y=y+"[]":h=[h],Qt.forEach(h,function(p){Qt.isDate(p)?p=p.toISOString():Qt.isObject(p)&&(p=JSON.stringify(p)),a.push(Ai(y)+"="+Ai(p))}))}),i=a.join("&")}if(i){var c=t.indexOf("#");c!==-1&&(t=t.slice(0,c)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},Gf=Fe;function pr(){this.handlers=[]}pr.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};pr.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};pr.prototype.forEach=function(t){Gf.forEach(this.handlers,function(r){r!==null&&t(r)})};var Kf=pr,Wf=Fe,Yf=function(t,n){Wf.forEach(t,function(i,a){a!==n&&a.toUpperCase()===n.toUpperCase()&&(t[n]=i,delete t[a])})},Zo=Fe;function cn(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}Zo.inherits(cn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var ea=cn.prototype,ta={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){ta[e]={value:e}});Object.defineProperties(cn,ta);Object.defineProperty(ea,"isAxiosError",{value:!0});cn.from=function(e,t,n,r,i,a){var c=Object.create(ea);return Zo.toFlatObject(e,c,function(h){return h!==Error.prototype}),cn.call(c,e.message,t,n,r,i),c.name=e.name,a&&Object.assign(c,a),c};var ln=cn,na={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ft=Fe;function Vf(e,t){t=t||new FormData;var n=[];function r(a){return a===null?"":ft.isDate(a)?a.toISOString():ft.isArrayBuffer(a)||ft.isTypedArray(a)?typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function i(a,c){if(ft.isPlainObject(a)||ft.isArray(a)){if(n.indexOf(a)!==-1)throw Error("Circular reference detected in "+c);n.push(a),ft.forEach(a,function(h,y){if(!ft.isUndefined(h)){var b=c?c+"."+y:y,p;if(h&&!c&&typeof h=="object"){if(ft.endsWith(y,"{}"))h=JSON.stringify(h);else if(ft.endsWith(y,"[]")&&(p=ft.toArray(h))){p.forEach(function(w){!ft.isUndefined(w)&&t.append(b,r(w))});return}}i(h,b)}}),n.pop()}else t.append(c,r(a))}return i(e),t}var ra=Vf,rs,Ei;function Xf(){if(Ei)return rs;Ei=1;var e=ln;return rs=function(n,r,i){var a=i.config.validateStatus;!i.status||!a||a(i.status)?n(i):r(new e("Request failed with status code "+i.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))},rs}var ss,Ti;function Qf(){if(Ti)return ss;Ti=1;var e=Fe;return ss=e.isStandardBrowserEnv()?function(){return{write:function(r,i,a,c,d,h){var y=[];y.push(r+"="+encodeURIComponent(i)),e.isNumber(a)&&y.push("expires="+new Date(a).toGMTString()),e.isString(c)&&y.push("path="+c),e.isString(d)&&y.push("domain="+d),h===!0&&y.push("secure"),document.cookie=y.join("; ")},read:function(r){var i=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),ss}var Jf=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},Zf=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},eu=Jf,tu=Zf,sa=function(t,n){return t&&!eu(n)?tu(t,n):n},is,Ui;function nu(){if(Ui)return is;Ui=1;var e=Fe,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return is=function(r){var i={},a,c,d;return r&&e.forEach(r.split(` `),function(y){if(d=y.indexOf(":"),a=e.trim(y.substr(0,d)).toLowerCase(),c=e.trim(y.substr(d+1)),a){if(i[a]&&t.indexOf(a)>=0)return;a==="set-cookie"?i[a]=(i[a]?i[a]:[]).concat([c]):i[a]=i[a]?i[a]+", "+c:c}}),i},is}var os,Si;function ru(){if(Si)return os;Si=1;var e=Fe;return os=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),i;function a(c){var d=c;return n&&(r.setAttribute("href",d),d=r.href),r.setAttribute("href",d),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=a(window.location.href),function(d){var h=e.isString(d)?a(d):d;return h.protocol===i.protocol&&h.host===i.host}}():function(){return function(){return!0}}(),os}var as,Bi;function yr(){if(Bi)return as;Bi=1;var e=ln,t=Fe;function n(r){e.call(this,r??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(n,e,{__CANCEL__:!0}),as=n,as}var cs,Ii;function su(){return Ii||(Ii=1,cs=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),cs}var fs,Ci;function $i(){if(Ci)return fs;Ci=1;var e=Fe,t=Xf(),n=Qf(),r=Jo,i=sa,a=nu(),c=ru(),d=na,h=ln,y=yr(),b=su();return fs=function(w){return new Promise(function(O,z){var L=w.data,Q=w.headers,he=w.responseType,$;function I(){w.cancelToken&&w.cancelToken.unsubscribe($),w.signal&&w.signal.removeEventListener("abort",$)}e.isFormData(L)&&e.isStandardBrowserEnv()&&delete Q["Content-Type"];var S=new XMLHttpRequest;if(w.auth){var fe=w.auth.username||"",ye=w.auth.password?unescape(encodeURIComponent(w.auth.password)):"";Q.Authorization="Basic "+btoa(fe+":"+ye)}var ae=i(w.baseURL,w.url);S.open(w.method.toUpperCase(),r(ae,w.params,w.paramsSerializer),!0),S.timeout=w.timeout;function xe(){if(S){var R="getAllResponseHeaders"in S?a(S.getAllResponseHeaders()):null,Ae=!he||he==="text"||he==="json"?S.responseText:S.response,Ee={data:Ae,status:S.status,statusText:S.statusText,headers:R,config:w,request:S};t(function(We){O(We),I()},function(We){z(We),I()},Ee),S=null}}if("onloadend"in S?S.onloadend=xe:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(xe)},S.onabort=function(){S&&(z(new h("Request aborted",h.ECONNABORTED,w,S)),S=null)},S.onerror=function(){z(new h("Network Error",h.ERR_NETWORK,w,S,S)),S=null},S.ontimeout=function(){var Ae=w.timeout?"timeout of "+w.timeout+"ms exceeded":"timeout exceeded",Ee=w.transitional||d;w.timeoutErrorMessage&&(Ae=w.timeoutErrorMessage),z(new h(Ae,Ee.clarifyTimeoutError?h.ETIMEDOUT:h.ECONNABORTED,w,S)),S=null},e.isStandardBrowserEnv()){var M=(w.withCredentials||c(ae))&&w.xsrfCookieName?n.read(w.xsrfCookieName):void 0;M&&(Q[w.xsrfHeaderName]=M)}"setRequestHeader"in S&&e.forEach(Q,function(Ae,Ee){typeof L>"u"&&Ee.toLowerCase()==="content-type"?delete Q[Ee]:S.setRequestHeader(Ee,Ae)}),e.isUndefined(w.withCredentials)||(S.withCredentials=!!w.withCredentials),he&&he!=="json"&&(S.responseType=w.responseType),typeof w.onDownloadProgress=="function"&&S.addEventListener("progress",w.onDownloadProgress),typeof w.onUploadProgress=="function"&&S.upload&&S.upload.addEventListener("progress",w.onUploadProgress),(w.cancelToken||w.signal)&&($=function(R){S&&(z(!R||R&&R.type?new y:R),S.abort(),S=null)},w.cancelToken&&w.cancelToken.subscribe($),w.signal&&(w.signal.aborted?$():w.signal.addEventListener("abort",$))),L||(L=null);var W=b(ae);if(W&&["http","https","file"].indexOf(W)===-1){z(new h("Unsupported protocol "+W+":",h.ERR_BAD_REQUEST,w));return}S.send(L)})},fs}var us,ki;function iu(){return ki||(ki=1,us=null),us}var Ne=Fe,Li=Yf,Oi=ln,ou=na,au=ra,cu={"Content-Type":"application/x-www-form-urlencoded"};function zi(e,t){!Ne.isUndefined(e)&&Ne.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function fu(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=$i()),e}function uu(e,t,n){if(Ne.isString(e))try{return(t||JSON.parse)(e),Ne.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var br={transitional:ou,adapter:fu(),transformRequest:[function(t,n){if(Li(n,"Accept"),Li(n,"Content-Type"),Ne.isFormData(t)||Ne.isArrayBuffer(t)||Ne.isBuffer(t)||Ne.isStream(t)||Ne.isFile(t)||Ne.isBlob(t))return t;if(Ne.isArrayBufferView(t))return t.buffer;if(Ne.isURLSearchParams(t))return zi(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r=Ne.isObject(t),i=n&&n["Content-Type"],a;if((a=Ne.isFileList(t))||r&&i==="multipart/form-data"){var c=this.env&&this.env.FormData;return au(a?{"files[]":t}:t,c&&new c)}else if(r||i==="application/json")return zi(n,"application/json"),uu(t);return t}],transformResponse:[function(t){var n=this.transitional||br.transitional,r=n&&n.silentJSONParsing,i=n&&n.forcedJSONParsing,a=!r&&this.responseType==="json";if(a||i&&Ne.isString(t)&&t.length)try{return JSON.parse(t)}catch(c){if(a)throw c.name==="SyntaxError"?Oi.from(c,Oi.ERR_BAD_RESPONSE,this,null,this.response):c}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:iu()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ne.forEach(["delete","get","head"],function(t){br.headers[t]={}});Ne.forEach(["post","put","patch"],function(t){br.headers[t]=Ne.merge(cu)});var Ms=br,lu=Fe,du=Ms,hu=function(t,n,r){var i=this||du;return lu.forEach(r,function(c){t=c.call(i,t,n)}),t},ls,Hi;function ia(){return Hi||(Hi=1,ls=function(t){return!!(t&&t.__CANCEL__)}),ls}var Ni=Fe,ds=hu,xu=ia(),pu=Ms,yu=yr();function hs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yu}var bu=function(t){hs(t),t.headers=t.headers||{},t.data=ds.call(t,t.data,t.headers,t.transformRequest),t.headers=Ni.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Ni.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var n=t.adapter||pu.adapter;return n(t).then(function(i){return hs(t),i.data=ds.call(t,i.data,i.headers,t.transformResponse),i},function(i){return xu(i)||(hs(t),i&&i.response&&(i.response.data=ds.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Je=Fe,oa=function(t,n){n=n||{};var r={};function i(b,p){return Je.isPlainObject(b)&&Je.isPlainObject(p)?Je.merge(b,p):Je.isPlainObject(p)?Je.merge({},p):Je.isArray(p)?p.slice():p}function a(b){if(Je.isUndefined(n[b])){if(!Je.isUndefined(t[b]))return i(void 0,t[b])}else return i(t[b],n[b])}function c(b){if(!Je.isUndefined(n[b]))return i(void 0,n[b])}function d(b){if(Je.isUndefined(n[b])){if(!Je.isUndefined(t[b]))return i(void 0,t[b])}else return i(void 0,n[b])}function h(b){if(b in n)return i(t[b],n[b]);if(b in t)return i(void 0,t[b])}var y={url:c,method:c,data:c,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:h};return Je.forEach(Object.keys(t).concat(Object.keys(n)),function(p){var w=y[p]||a,U=w(p);Je.isUndefined(U)&&w!==h||(r[p]=U)}),r},xs,Ri;function aa(){return Ri||(Ri=1,xs={version:"0.27.2"}),xs}var _u=aa().version,It=ln,Fs={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Fs[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var Pi={};Fs.transitional=function(t,n,r){function i(a,c){return"[Axios v"+_u+"] Transitional option '"+a+"'"+c+(r?". "+r:"")}return function(a,c,d){if(t===!1)throw new It(i(c," has been removed"+(n?" in "+n:"")),It.ERR_DEPRECATED);return n&&!Pi[c]&&(Pi[c]=!0,console.warn(i(c," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,c,d):!0}};function wu(e,t,n){if(typeof e!="object")throw new It("options must be an object",It.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],c=t[a];if(c){var d=e[a],h=d===void 0||c(d,a,e);if(h!==!0)throw new It("option "+a+" must be "+h,It.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new It("Unknown option "+a,It.ERR_BAD_OPTION)}}var gu={assertOptions:wu,validators:Fs},ca=Fe,vu=Jo,Di=Kf,Mi=bu,_r=oa,mu=sa,fa=gu,Jt=fa.validators;function fn(e){this.defaults=e,this.interceptors={request:new Di,response:new Di}}fn.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=_r(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&fa.assertOptions(r,{silentJSONParsing:Jt.transitional(Jt.boolean),forcedJSONParsing:Jt.transitional(Jt.boolean),clarifyTimeoutError:Jt.transitional(Jt.boolean)},!1);var i=[],a=!0;this.interceptors.request.forEach(function(U){typeof U.runWhen=="function"&&U.runWhen(n)===!1||(a=a&&U.synchronous,i.unshift(U.fulfilled,U.rejected))});var c=[];this.interceptors.response.forEach(function(U){c.push(U.fulfilled,U.rejected)});var d;if(!a){var h=[Mi,void 0];for(Array.prototype.unshift.apply(h,i),h=h.concat(c),d=Promise.resolve(n);h.length;)d=d.then(h.shift(),h.shift());return d}for(var y=n;i.length;){var b=i.shift(),p=i.shift();try{y=b(y)}catch(w){p(w);break}}try{d=Mi(y)}catch(w){return Promise.reject(w)}for(;c.length;)d=d.then(c.shift(),c.shift());return d};fn.prototype.getUri=function(t){t=_r(this.defaults,t);var n=mu(t.baseURL,t.url);return vu(n,t.params,t.paramsSerializer)};ca.forEach(["delete","get","head","options"],function(t){fn.prototype[t]=function(n,r){return this.request(_r(r||{},{method:t,url:n,data:(r||{}).data}))}});ca.forEach(["post","put","patch"],function(t){function n(r){return function(a,c,d){return this.request(_r(d||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:c}))}}fn.prototype[t]=n(),fn.prototype[t+"Form"]=n(!0)});var Au=fn,ps,Fi;function Eu(){if(Fi)return ps;Fi=1;var e=yr();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(c){r=c});var i=this;this.promise.then(function(a){if(i._listeners){var c,d=i._listeners.length;for(c=0;c{for(var n in t)la(e,n,{get:t[n],enumerable:!0})},Te=(e,t,n,r)=>{for(var i=r>1?void 0:r?zu(t,n):t,a=e.length-1,c;a>=0;a--)(c=e[a])&&(i=(r?c(t,n,i):c(i))||i);return r&&i&&la(t,n,i),i},Hu=/^m(\/[0-9]+')+$/,da=e=>e.replace("'",""),Nu="ed25519 seed",Ru=2147483648,Pu=e=>{const n=Ls.create(Yo,Nu).update(Po(e)).digest(),r=n.slice(0,32),i=n.slice(32);return{key:r,chainCode:i}},Du=({key:e,chainCode:t},n)=>{const r=new ArrayBuffer(4);new DataView(r).setUint32(0,n);const i=new Uint8Array(r),a=new Uint8Array([0]),c=new Uint8Array([...a,...e,...i]),d=Ls.create(Yo,t).update(c).digest(),h=d.slice(0,32),y=d.slice(32);return{key:h,chainCode:y}},Mu=e=>Hu.test(e)?!e.split("/").slice(1).map(da).some(Number.isNaN):!1,Fu=(e,t,n=Ru)=>{if(!Mu(e))throw new Error("Invalid derivation path");const{key:r,chainCode:i}=Pu(t);return e.split("/").slice(1).map(da).map(c=>parseInt(c,10)).reduce((c,d)=>Du(c,d+n),{key:r,chainCode:i})},qu="1.20.0";async function ju(e){return new Promise(t=>{setTimeout(t,e)})}var Ki="/v1";function Gu(e){let t=`${e}`;return t.endsWith("/")&&(t=t.substring(0,t.length-1)),t.endsWith(Ki)||(t=`${t}${Ki}`),t}var ha=2e5,xa=20,Ku=20,Es="0x1::aptos_coin::AptosCoin";function gr(e){let t,n,r;return typeof e=="object"?(t=e.hashFunction,n=e.ttlMs,r=e.tags):t=e,(i,a,c)=>{if(c.value!=null)c.value=Wi(c.value,t,n,r);else if(c.get!=null)c.get=Wi(c.get,t,n,r);else throw new Error("Only put a Memoize() decorator on a method or get accessor.")}}function pa(e,t){return gr({ttlMs:e,hashFunction:t})}var nr=new Map;function Wu(e){const t=new Set;for(const n of e){const r=nr.get(n);if(r)for(const i of r)t.has(i)||(i.clear(),t.add(i))}return t.size}function Wi(e,t,n=0,r){const i=Symbol("__memoized_map__");return function(...a){let c;const d=this;d.hasOwnProperty(i)||Object.defineProperty(d,i,{configurable:!1,enumerable:!1,writable:!1,value:new Map});const h=d[i];if(Array.isArray(r))for(const y of r)nr.has(y)?nr.get(y).push(h):nr.set(y,[h]);if(t||a.length>0||n>0){let y;t===!0?y=a.map(w=>w.toString()).join("!"):t?y=t.apply(d,a):y=a[0];const b=`${y}__timestamp`;let p=!1;if(n>0)if(!h.has(b))p=!0;else{const w=h.get(b);p=Date.now()-w>n}h.has(y)&&!p?c=h.get(y):(c=e.apply(d,a),h.set(y,c),n>0&&h.set(b,Date.now()))}else{const y=d;h.has(y)?c=h.get(y):(c=e.apply(d,a),h.set(y,c))}return c}}var ya=class extends Error{constructor(e,t,n){super(n),this.name="AptosApiError",this.url=t.url,this.status=t.status,this.statusText=t.statusText,this.data=t.data,this.request=e}},Yu={400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",429:"Too Many Requests",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"};async function Vu(e,t,n,r,i,a){const c={...a==null?void 0:a.HEADERS,"x-aptos-client":`aptos-ts-sdk/${qu}`,"content-type":r??"application/json"};return a!=null&&a.TOKEN&&(c.Authorization=`Bearer ${a==null?void 0:a.TOKEN}`),await Lu({url:e,method:t,body:n,params:i,headers:c,overrides:a})}async function ba(e){const{url:t,endpoint:n,method:r,body:i,contentType:a,params:c,overrides:d}=e,h=`${t}/${n??""}`,y=await Vu(h,r,i,a,c,d),b={status:y.status,statusText:y.statusText,data:y.data,headers:y.headers,config:y.config,url:h};if(b.status>=200&&b.status<300)return b;const p=Yu[b.status];throw new ya(e,b,p??"Generic Error")}async function Ve(e){return await ba({...e,method:"GET"})}async function Tn(e){return await ba({...e,method:"POST"})}async function Yi(e){const t=[];let n;const r=e.params;for(;;){r.start=n;const i=await Ve({url:e.url,endpoint:e.endpoint,params:r,originMethod:e.originMethod,overrides:e.overrides});if(n=i.headers["x-aptos-cursor"],delete i.headers,t.push(...i.data),n==null)break}return t}var Ts={mainnet:"https://indexer.mainnet.aptoslabs.com/v1/graphql",testnet:"https://indexer-testnet.staging.gcp.aptosdev.com/v1/graphql",devnet:"https://indexer-devnet.staging.gcp.aptosdev.com/v1/graphql"},Xu={mainnet:"https://fullnode.mainnet.aptoslabs.com/v1",testnet:"https://fullnode.testnet.aptoslabs.com/v1",devnet:"https://fullnode.devnet.aptoslabs.com/v1",local:"http://localhost:8080/v1"},Vi={"https://fullnode.mainnet.aptoslabs.com/v1":"mainnet","https://fullnode.testnet.aptoslabs.com/v1":"testnet","https://fullnode.devnet.aptoslabs.com/v1":"devnet","http://localhost:8080/v1":"local"},Qu=(e=>(e.MAINNET="mainnet",e.TESTNET="testnet",e.DEVNET="devnet",e.LOCAL="local",e))(Qu||{}),j=class{static fromBuffer(e){return j.fromUint8Array(e)}static fromUint8Array(e){return new j(Ro(e))}static ensure(e){return typeof e=="string"?new j(e):e}constructor(e){e.startsWith("0x")?this.hexString=e:this.hexString=`0x${e}`}hex(){return this.hexString}noPrefix(){return this.hexString.slice(2)}toString(){return this.hex()}toShortString(){return`0x${this.hexString.replace(/^0x0*/,"")}`}toUint8Array(){return Uint8Array.from(Po(this.noPrefix()))}},Se={};wr(Se,{AccountAddress:()=>me,AccountAuthenticator:()=>Ct,AccountAuthenticatorEd25519:()=>Ks,AccountAuthenticatorMultiEd25519:()=>Ws,ArgumentABI:()=>Pn,AuthenticationKey:()=>Pt,ChainId:()=>Ir,ChangeSet:()=>yl,Ed25519PublicKey:()=>st,Ed25519Signature:()=>xt,EntryFunction:()=>Nt,EntryFunctionABI:()=>un,FeePayerRawTransaction:()=>Ur,Identifier:()=>De,Module:()=>va,ModuleId:()=>Rt,MultiAgentRawTransaction:()=>Tr,MultiEd25519PublicKey:()=>zn,MultiEd25519Signature:()=>vr,MultiSig:()=>Qs,MultiSigTransactionPayload:()=>Xs,RawTransaction:()=>Kt,RawTransactionWithData:()=>Js,RotationProofChallenge:()=>_l,Script:()=>Er,ScriptABI:()=>Pr,SignedTransaction:()=>Hn,StructTag:()=>Lt,Transaction:()=>ma,TransactionArgument:()=>dt,TransactionArgumentAddress:()=>Hr,TransactionArgumentBool:()=>Rr,TransactionArgumentU128:()=>Or,TransactionArgumentU16:()=>$r,TransactionArgumentU256:()=>zr,TransactionArgumentU32:()=>kr,TransactionArgumentU64:()=>Lr,TransactionArgumentU8:()=>Cr,TransactionArgumentU8Vector:()=>Nr,TransactionAuthenticator:()=>dn,TransactionAuthenticatorEd25519:()=>mr,TransactionAuthenticatorFeePayer:()=>Gs,TransactionAuthenticatorMultiAgent:()=>js,TransactionAuthenticatorMultiEd25519:()=>Ar,TransactionPayload:()=>Nn,TransactionPayloadEntryFunction:()=>Br,TransactionPayloadMultisig:()=>Zs,TransactionPayloadScript:()=>Sr,TransactionScriptABI:()=>Dr,TypeArgumentABI:()=>Rn,TypeTag:()=>Me,TypeTagAddress:()=>$t,TypeTagBool:()=>qt,TypeTagParser:()=>bn,TypeTagParserError:()=>ga,TypeTagSigner:()=>Ys,TypeTagStruct:()=>kt,TypeTagU128:()=>Gt,TypeTagU16:()=>hn,TypeTagU256:()=>pn,TypeTagU32:()=>xn,TypeTagU64:()=>jt,TypeTagU8:()=>_t,TypeTagVector:()=>yn,UserTransaction:()=>ei,WriteSet:()=>bl,objectStructTag:()=>dl,optionStructTag:()=>ll,stringStructTag:()=>Vs});var Ju={};wr(Ju,{Deserializer:()=>qs,Serializer:()=>Ie,bcsSerializeBool:()=>cl,bcsSerializeBytes:()=>St,bcsSerializeFixedBytes:()=>ul,bcsSerializeStr:()=>fl,bcsSerializeU128:()=>ol,bcsSerializeU16:()=>sl,bcsSerializeU256:()=>al,bcsSerializeU32:()=>il,bcsSerializeU8:()=>Us,bcsSerializeUint64:()=>rl,bcsToBytes:()=>bt,deserializeVector:()=>Ye,serializeVector:()=>Pe,serializeVectorWithFunc:()=>nl});var Zu=2**8-1,el=2**16-1,Bn=2**32-1,_a=BigInt(2**64)-BigInt(1),wa=BigInt(2**128)-BigInt(1),tl=BigInt(2**256)-BigInt(1),Ie=class{constructor(){this.buffer=new ArrayBuffer(64),this.offset=0}ensureBufferWillHandleSize(e){for(;this.buffer.byteLength>BigInt(32);this.serializeU32(Number(t)),this.serializeU32(Number(n))}serializeU128(e){const t=BigInt(e.toString())&_a,n=BigInt(e.toString())>>BigInt(64);this.serializeU64(t),this.serializeU64(n)}serializeU256(e){const t=BigInt(e.toString())&wa,n=BigInt(e.toString())>>BigInt(128);this.serializeU128(t),this.serializeU128(n)}serializeU32AsUleb128(e){let t=e;const n=[];for(;t>>>7;)n.push(t&127|128),t>>>=7;n.push(t),this.serialize(new Uint8Array(n))}getBytes(){return new Uint8Array(this.buffer).slice(0,this.offset)}};Te([Ft(0,Zu)],Ie.prototype,"serializeU8",1);Te([Ft(0,el)],Ie.prototype,"serializeU16",1);Te([Ft(0,Bn)],Ie.prototype,"serializeU32",1);Te([Ft(BigInt(0),_a)],Ie.prototype,"serializeU64",1);Te([Ft(BigInt(0),wa)],Ie.prototype,"serializeU128",1);Te([Ft(BigInt(0),tl)],Ie.prototype,"serializeU256",1);Te([Ft(0,Bn)],Ie.prototype,"serializeU32AsUleb128",1);function Ft(e,t,n){return(r,i,a)=>{const c=a.value;return a.value=function(h){const y=BigInt(h.toString());if(y>BigInt(t.toString())||ythis.buffer.byteLength)throw new Error("Reached to the end of buffer");const t=this.buffer.slice(this.offset,this.offset+e);return this.offset+=e,t}deserializeStr(){const e=this.deserializeBytes();return new TextDecoder().decode(e)}deserializeBytes(){const e=this.deserializeUleb128AsU32();return new Uint8Array(this.read(e))}deserializeFixedBytes(e){return new Uint8Array(this.read(e))}deserializeBool(){const e=new Uint8Array(this.read(1))[0];if(e!==1&&e!==0)throw new Error("Invalid boolean value");return e===1}deserializeU8(){return new DataView(this.read(1)).getUint8(0)}deserializeU16(){return new DataView(this.read(2)).getUint16(0,!0)}deserializeU32(){return new DataView(this.read(4)).getUint32(0,!0)}deserializeU64(){const e=this.deserializeU32(),t=this.deserializeU32();return BigInt(BigInt(t)<Bn)throw new Error("Overflow while parsing uleb128-encoded uint32 value");return Number(e)}};function Pe(e,t){t.serializeU32AsUleb128(e.length),e.forEach(n=>{n.serialize(t)})}function nl(e,t){const n=new Ie;n.serializeU32AsUleb128(e.length);const r=n[t];return e.forEach(i=>{r.call(n,i)}),n.getBytes()}function Ye(e,t){const n=e.deserializeUleb128AsU32(),r=[];for(let i=0;irt.LENGTH)throw new Error("Hex string is too long. Address's length is 32 bytes.");if(n.length===rt.LENGTH)return new rt(n);const r=new Uint8Array(rt.LENGTH);return r.set(n,rt.LENGTH-n.length),new rt(r)}static isValid(e){if(e==="")return!1;let t=j.ensure(e);return t.noPrefix().length%2!==0&&(t=new j(`0${t.noPrefix()}`)),t.toUint8Array().length<=rt.LENGTH}toHexString(){return j.fromUint8Array(this.address).hex()}serialize(e){e.serializeFixedBytes(this.address)}static deserialize(e){return new rt(e.deserializeFixedBytes(rt.LENGTH))}static standardizeAddress(e){const t=e.toLowerCase();return`0x${(t.startsWith("0x")?t.slice(2):t).padStart(64,"0")}`}},me=rt;me.LENGTH=32;me.CORE_CODE_ADDRESS=rt.fromHex("0x1");var rr=class{constructor(e){if(e.length!==rr.LENGTH)throw new Error(`Ed25519PublicKey length should be ${rr.LENGTH}`);this.value=e}toBytes(){return this.value}serialize(e){e.serializeBytes(this.value)}static deserialize(e){const t=e.deserializeBytes();return new rr(t)}},st=rr;st.LENGTH=32;var sr=class{constructor(e){if(this.value=e,e.length!==sr.LENGTH)throw new Error(`Ed25519Signature length should be ${sr.LENGTH}`)}serialize(e){e.serializeBytes(this.value)}static deserialize(e){const t=e.deserializeBytes();return new sr(t)}},xt=sr;xt.LENGTH=64;var Ss=32,zn=class{constructor(e,t){if(this.public_keys=e,this.threshold=t,t>Ss)throw new Error(`"threshold" cannot be larger than ${Ss}`)}toBytes(){const e=new Uint8Array(this.public_keys.length*st.LENGTH+1);return this.public_keys.forEach((t,n)=>{e.set(t.value,n*st.LENGTH)}),e[this.public_keys.length*st.LENGTH]=this.threshold,e}serialize(e){e.serializeBytes(this.toBytes())}static deserialize(e){const t=e.deserializeBytes(),n=t[t.length-1],r=[];for(let i=0;i{e.set(t.value,n*xt.LENGTH)}),e.set(this.bitmap,this.signatures.length*xt.LENGTH),e}static createBitmap(e){const n=new Uint8Array([0,0,0,0]),r=new Set;return e.forEach(i=>{if(i>=Ss)throw new Error(`Invalid bit value ${i}.`);if(r.has(i))throw new Error("Duplicated bits detected.");r.add(i);const a=Math.floor(i/8);let c=n[a];c|=128>>i%8,n[a]=c}),n}serialize(e){e.serializeBytes(this.toBytes())}static deserialize(e){const t=e.deserializeBytes(),n=t.subarray(t.length-4),r=[];for(let i=0;i")return[["GT",">"],1];if(n===",")return[["COMMA",","],1];if(Xi(n)){let r="";for(let i=t;i";)this.tokens[0][1]==="<"&&this.consumeWholeGeneric(),this.tokens.shift();this.consume(">")}parseCommaList(e,t){const n=[];for(this.tokens.length<=0&&Bt("Invalid type tag.");this.tokens[0][1]!==e&&(n.push(this.parseTypeTag()),!(this.tokens.length>0&&this.tokens[0][1]===e||(this.consume(","),this.tokens.length>0&&this.tokens[0][1]===e&&t)));)this.tokens.length<=0&&Bt("Invalid type tag.");return n}parseTypeTag(){this.tokens.length===0&&Bt("Invalid type tag.");const[e,t]=this.tokens.shift();if(t==="u8")return new _t;if(t==="u16")return new hn;if(t==="u32")return new xn;if(t==="u64")return new jt;if(t==="u128")return new Gt;if(t==="u256")return new pn;if(t==="bool")return new qt;if(t==="address")return new $t;if(t==="vector"){this.consume("<");const n=this.parseTypeTag();return this.consume(">"),new yn(n)}if(t==="string")return new kt(Vs);if(e==="IDENT"&&(t.startsWith("0x")||t.startsWith("0X"))){const n=me.fromHex(t);this.consume("::");const[r,i]=this.tokens.shift();r!=="IDENT"&&Bt("Invalid type tag."),this.consume("::");const[a,c]=this.tokens.shift();if(a!=="IDENT"&&Bt("Invalid type tag."),me.CORE_CODE_ADDRESS.toHexString()===n.toHexString()&&i==="object"&&c==="Object")return this.consumeWholeGeneric(),new $t;let d=[];this.tokens.length>0&&this.tokens[0][1]==="<"&&(this.consume("<"),d=this.parseCommaList(">",!0),this.consume(">"));const h=new Lt(n,new De(i),new De(c),d);return new kt(h)}if(e==="GENERIC"){this.typeTags.length===0&&Bt("Can't convert generic type since no typeTags were specified.");const n=parseInt(t.substring(1),10);return new bn(this.typeTags[n]).parseTypeTag()}throw new Error("Invalid type tag.")}},ga=class extends Error{constructor(e){super(e),this.name="TypeTagParserError"}},Kt=class{constructor(e,t,n,r,i,a,c){this.sender=e,this.sequence_number=t,this.payload=n,this.max_gas_amount=r,this.gas_unit_price=i,this.expiration_timestamp_secs=a,this.chain_id=c}serialize(e){this.sender.serialize(e),e.serializeU64(this.sequence_number),this.payload.serialize(e),e.serializeU64(this.max_gas_amount),e.serializeU64(this.gas_unit_price),e.serializeU64(this.expiration_timestamp_secs),this.chain_id.serialize(e)}static deserialize(e){const t=me.deserialize(e),n=e.deserializeU64(),r=Nn.deserialize(e),i=e.deserializeU64(),a=e.deserializeU64(),c=e.deserializeU64(),d=Ir.deserialize(e);return new Kt(t,n,r,i,a,c,d)}},Er=class{constructor(e,t,n){this.code=e,this.ty_args=t,this.args=n}serialize(e){e.serializeBytes(this.code),Pe(this.ty_args,e),Pe(this.args,e)}static deserialize(e){const t=e.deserializeBytes(),n=Ye(e,Me),r=Ye(e,dt);return new Er(t,n,r)}},Nt=class{constructor(e,t,n,r){this.module_name=e,this.function_name=t,this.ty_args=n,this.args=r}static natural(e,t,n,r){return new Nt(Rt.fromStr(e),new De(t),n,r)}static natual(e,t,n,r){return Nt.natural(e,t,n,r)}serialize(e){this.module_name.serialize(e),this.function_name.serialize(e),Pe(this.ty_args,e),e.serializeU32AsUleb128(this.args.length),this.args.forEach(t=>{e.serializeBytes(t)})}static deserialize(e){const t=Rt.deserialize(e),n=De.deserialize(e),r=Ye(e,Me),i=e.deserializeUleb128AsU32(),a=[];for(let d=0;di.toLowerCase()).join(" "),{key:r}=Fu(e,Ro(Bo(n)));return new ir(r)}constructor(e,t){e?this.signingKey=Vn.sign.keyPair.fromSeed(e.slice(0,32)):this.signingKey=Vn.sign.keyPair(),this.accountAddress=j.ensure(t||this.authKey().hex())}address(){return this.accountAddress}authKey(){const e=new st(this.signingKey.publicKey);return Pt.fromEd25519PublicKey(e).derivedAddress()}static getResourceAccountAddress(e,t){const n=bt(me.fromHex(e)),r=new Uint8Array([...n,...t,Pt.DERIVE_RESOURCE_ACCOUNT_SCHEME]),i=an.create();return i.update(r),j.fromUint8Array(i.digest())}static getCollectionID(e,t){const n=new TextEncoder().encode(`${e}::${t}`),r=qc.create();return r.update(n),j.fromUint8Array(r.digest())}pubKey(){return j.fromUint8Array(this.signingKey.publicKey)}signBuffer(e){const t=Vn.sign.detached(e,this.signingKey.secretKey);return j.fromUint8Array(t)}signHexString(e){const t=j.ensure(e).toUint8Array();return this.signBuffer(t)}verifySignature(e,t){const n=j.ensure(e).toUint8Array(),r=j.ensure(t).toUint8Array();return Vn.sign.detached.verify(n,r,this.signingKey.publicKey)}toPrivateKeyObject(){return{address:this.address().hex(),publicKeyHex:this.pubKey().hex(),privateKeyHex:j.fromUint8Array(this.signingKey.secretKey.slice(0,32)).hex()}}},ur=ir;Te([gr()],ur.prototype,"authKey",1);function Zn(e){return e instanceof ur?e.address():j.ensure(e)}var Dn=` fragment CurrentTokenOwnershipFields on current_token_ownerships_v2 { token_standard diff --git a/build/app/immutable/chunks/index.f3b06f47.js b/build/app/immutable/chunks/index.f3b06f47.js new file mode 100644 index 000000000..f28af2b8c --- /dev/null +++ b/build/app/immutable/chunks/index.f3b06f47.js @@ -0,0 +1 @@ +function w(){}function H(t,n){for(const e in n)t[e]=n[e];return t}function O(t){return t()}function q(){return Object.create(null)}function g(t){t.forEach(O)}function B(t){return typeof t=="function"}function lt(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}let x;function at(t,n){return x||(x=document.createElement("a")),x.href=n,t===x.href}function W(t){return Object.keys(t).length===0}function G(t,...n){if(t==null)return w;const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function ft(t,n,e){t.$$.on_destroy.push(G(n,e))}function _t(t,n,e,i){if(t){const r=P(t,n,e,i);return t[0](r)}}function P(t,n,e,i){return t[1]&&i?H(e.ctx.slice(),t[1](i(n))):e.ctx}function dt(t,n,e,i){if(t[2]&&i){const r=t[2](i(e));if(n.dirty===void 0)return r;if(typeof r=="object"){const l=[],u=Math.max(n.dirty.length,r.length);for(let o=0;o32){const n=[],e=t.ctx.length/32;for(let i=0;i>1);e(r)<=i?t=r+1:n=r}return t}function R(t){if(t.hydrate_init)return;t.hydrate_init=!0;let n=t.childNodes;if(t.nodeName==="HEAD"){const c=[];for(let s=0;s0&&n[e[r]].claim_order<=s?r+1:Q(1,r,b=>n[e[b]].claim_order,s))-1;i[c]=e[f]+1;const a=f+1;e[a]=c,r=Math.max(a,r)}const l=[],u=[];let o=n.length-1;for(let c=e[r]+1;c!=0;c=i[c-1]){for(l.push(n[c-1]);o>=c;o--)u.push(n[o]);o--}for(;o>=0;o--)u.push(n[o]);l.reverse(),u.sort((c,s)=>c.claim_order-s.claim_order);for(let c=0,s=0;c=l[s].claim_order;)s++;const f=st.removeEventListener(n,e,i)}function Z(t,n,e){e==null?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function $t(t,n){for(const e in n)Z(t,e,n[e])}function wt(t){return t===""?null:+t}function tt(t){return Array.from(t.childNodes)}function nt(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function T(t,n,e,i,r=!1){nt(t);const l=(()=>{for(let u=t.claim_info.last_index;u=0;u--){const o=t[u];if(n(o)){const c=e(o);return c===void 0?t.splice(u,1):t[u]=c,r?c===void 0&&t.claim_info.last_index--:t.claim_info.last_index=u,o}}return i()})();return l.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,l}function D(t,n,e,i){return T(t,r=>r.nodeName===n,r=>{const l=[];for(let u=0;ur.removeAttribute(u))},()=>i(n))}function vt(t,n,e){return D(t,n,e,X)}function Et(t,n,e){return D(t,n,e,Y)}function et(t,n){return T(t,e=>e.nodeType===3,e=>{const i=""+n;if(e.data.startsWith(i)){if(e.data.length!==i.length)return e.splitText(i.length)}else e.data=i},()=>A(n),!0)}function kt(t){return et(t," ")}function Nt(t,n){n=""+n,t.data!==n&&(t.data=n)}function St(t,n){t.value=n??""}function At(t,n,e,i){e==null?t.style.removeProperty(n):t.style.setProperty(n,e,i?"important":"")}function jt(t,n,e){for(let i=0;ii.call(this,n))}const h=[],L=[];let m=[];const k=[],I=Promise.resolve();let N=!1;function z(){N||(N=!0,I.then(F))}function Tt(){return z(),I}function S(t){m.push(t)}function Dt(t){k.push(t)}const E=new Set;let d=0;function F(){if(d!==0)return;const t=y;do{try{for(;dt.indexOf(i)===-1?n.push(i):e.push(i)),e.forEach(i=>i()),m=n}const $=new Set;let _;function It(){_={r:0,c:[],p:_}}function zt(){_.r||g(_.c),_=_.p}function ct(t,n){t&&t.i&&($.delete(t),t.i(n))}function Ft(t,n,e,i){if(t&&t.o){if($.has(t))return;$.add(t),_.c.push(()=>{$.delete(t),i&&(e&&t.d(1),i())}),t.o(n)}else i&&i()}function Ht(t,n){const e={},i={},r={$$scope:1};let l=t.length;for(;l--;){const u=t[l],o=n[l];if(o){for(const c in u)c in o||(i[c]=1);for(const c in o)r[c]||(e[c]=o[c],r[c]=1);t[l]=o}else for(const c in u)r[c]=1}for(const u in i)u in e||(e[u]=void 0);return e}function Wt(t,n,e){const i=t.$$.props[n];i!==void 0&&(t.$$.bound[i]=e,e(t.$$.ctx[i]))}function Gt(t){t&&t.c()}function Jt(t,n){t&&t.l(n)}function ut(t,n,e,i){const{fragment:r,after_update:l}=t.$$;r&&r.m(n,e),i||S(()=>{const u=t.$$.on_mount.map(O).filter(B);t.$$.on_destroy?t.$$.on_destroy.push(...u):g(u),t.$$.on_mount=[]}),l.forEach(S)}function ot(t,n){const e=t.$$;e.fragment!==null&&(rt(e.after_update),g(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function st(t,n){t.$$.dirty[0]===-1&&(h.push(t),z(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<{const M=C.length?C[0]:b;return s.ctx&&r(s.ctx[a],s.ctx[a]=M)&&(!s.skip_bound&&s.bound[a]&&s.bound[a](M),f&&st(t,a)),b}):[],s.update(),f=!0,g(s.before_update),s.fragment=i?i(s.ctx):!1,n.target){if(n.hydrate){J();const a=tt(n.target);s.fragment&&s.fragment.l(a),a.forEach(V)}else s.fragment&&s.fragment.c();n.intro&&ct(t.$$.fragment),ut(t,n.target,n.anchor,n.customElement),K(),F()}p(c)}class Qt{$destroy(){ot(this,1),this.$destroy=w}$on(n,e){if(!B(e))return w;const i=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return i.push(e),()=>{const r=i.indexOf(e);r!==-1&&i.splice(r,1)}}$set(n){this.$$set&&!W(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}export{$t as $,ut as A,ot as B,_t as C,U as D,ht as E,mt as F,dt as G,w as H,ft as I,xt as J,Mt as K,g as L,Ct as M,wt as N,S as O,jt as P,St as Q,Bt as R,Qt as S,Pt as T,at as U,yt as V,Wt as W,Dt as X,H as Y,Y as Z,Et as _,gt as a,Ht as a0,pt as b,kt as c,Ft as d,bt as e,zt as f,ct as g,V as h,Kt as i,Ot as j,X as k,vt as l,tt as m,Z as n,Lt as o,At as p,A as q,et as r,lt as s,Tt as t,Nt as u,It as v,L as w,qt as x,Gt as y,Jt as z}; diff --git a/build/app/immutable/chunks/qrCode.2a0c2c54.js b/build/app/immutable/chunks/qrCode.9ed71917.js similarity index 63% rename from build/app/immutable/chunks/qrCode.2a0c2c54.js rename to build/app/immutable/chunks/qrCode.9ed71917.js index 9e3e84845..800dce8b2 100644 --- a/build/app/immutable/chunks/qrCode.2a0c2c54.js +++ b/build/app/immutable/chunks/qrCode.9ed71917.js @@ -1,4 +1,4 @@ -import{S as _t,i as Dt,s as Ut,Z as Ft,_ as kt,$ as vt,m as zt,h as lt,a0 as ft,b as Ht,a1 as Vt,H as gt}from"./index.83ca82d8.js";function Kt(e){let t,i=[{width:e[1]},{height:e[1]},{"stroke-width":"0"},{class:e[2]},e[0].a,e[4],{xmlns:"http://www.w3.org/2000/svg"}],o={};for(let r=0;r{"src"in c&&i(0,o=c.src),"size"in c&&i(1,r=c.size),"color"in c&&i(5,n=c.color),"title"in c&&i(6,s=c.title),"className"in c&&i(2,a=c.className)},e.$$.update=()=>{e.$$.dirty&33&&(i(4,l={}),n&&(o.a.stroke!=="none"&&i(4,l.stroke=n,l),o.a.fill!=="none"&&i(4,l.fill=n,l))),e.$$.dirty&65&&i(3,u=(s?`${s}`:"")+o.c)},[o,r,a,u,l,n,s]}class De extends _t{constructor(t){super(),Dt(this,t,Jt,Kt,Ut,{src:0,size:1,color:5,title:6,className:2})}}const Ue={a:{viewBox:"0 0 512 512"},c:''};var H={},Yt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},mt={},N={};let it;const Ot=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];N.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};N.getSymbolTotalCodewords=function(t){return Ot[t]};N.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};N.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');it=t};N.isKanjiModeEnabled=function(){return typeof it<"u"};N.toSJIS=function(t){return it(t)};var j={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+i)}}e.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},e.from=function(o,r){if(e.isValid(o))return o;try{return t(o)}catch{return r}}})(j);function Ct(){this.buffer=[],this.length=0}Ct.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let i=0;i>>t-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var jt=Ct;function V(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}V.prototype.set=function(e,t,i,o){const r=e*this.size+t;this.data[r]=i,o&&(this.reservedBit[r]=!0)};V.prototype.get=function(e,t){return this.data[e*this.size+t]};V.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i};V.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Gt=V,yt={};(function(e){const t=N.getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const r=Math.floor(o/7)+2,n=t(o),s=n===145?26:Math.ceil((n-13)/(2*r-2))*2,a=[n-7];for(let u=1;u=0&&r<=7},e.from=function(r){return e.isValid(r)?parseInt(r,10):void 0},e.getPenaltyN1=function(r){const n=r.size;let s=0,a=0,u=0,l=null,c=null;for(let B=0;B=5&&(s+=t.N1+(a-5)),l=f,a=1),f=r.get(w,B),f===c?u++:(u>=5&&(s+=t.N1+(u-5)),c=f,u=1)}a>=5&&(s+=t.N1+(a-5)),u>=5&&(s+=t.N1+(u-5))}return s},e.getPenaltyN2=function(r){const n=r.size;let s=0;for(let a=0;a=10&&(a===1488||a===93)&&s++,u=u<<1&2047|r.get(c,l),c>=10&&(u===1488||u===93)&&s++}return s*t.N3},e.getPenaltyN4=function(r){let n=0;const s=r.data.length;for(let u=0;u=0;){const s=n[0];for(let u=0;u0){const n=new Uint8Array(this.degree);return n.set(o,r),n}return o};var Qt=st,It={},L={},ut={};ut.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var S={};const Nt="[0-9]+",Zt="[A-Z $%*+\\-./:]+";let z="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";z=z.replace(/u/g,"\\u");const Wt="(?:(?![A-Z0-9 $%*+\\-./:]|"+z+`)(?:.|[\r +import{S as _t,i as Dt,s as Ut,Y as Ft,Z as kt,_ as vt,m as zt,h as lt,$ as ft,b as Ht,a0 as Vt,H as gt}from"./index.f3b06f47.js";function Kt(e){let t,i=[{width:e[1]},{height:e[1]},{"stroke-width":"0"},{class:e[2]},e[0].a,e[4],{xmlns:"http://www.w3.org/2000/svg"}],o={};for(let r=0;r{"src"in c&&i(0,o=c.src),"size"in c&&i(1,r=c.size),"color"in c&&i(5,n=c.color),"title"in c&&i(6,s=c.title),"className"in c&&i(2,a=c.className)},e.$$.update=()=>{e.$$.dirty&33&&(i(4,l={}),n&&(o.a.stroke!=="none"&&i(4,l.stroke=n,l),o.a.fill!=="none"&&i(4,l.fill=n,l))),e.$$.dirty&65&&i(3,u=(s?`${s}`:"")+o.c)},[o,r,a,u,l,n,s]}class De extends _t{constructor(t){super(),Dt(this,t,Jt,Kt,Ut,{src:0,size:1,color:5,title:6,className:2})}}const Ue={a:{viewBox:"0 0 512 512"},c:''};var H={},Yt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},mt={},N={};let it;const Ot=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];N.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};N.getSymbolTotalCodewords=function(t){return Ot[t]};N.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};N.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');it=t};N.isKanjiModeEnabled=function(){return typeof it<"u"};N.toSJIS=function(t){return it(t)};var j={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+i)}}e.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},e.from=function(o,r){if(e.isValid(o))return o;try{return t(o)}catch{return r}}})(j);function Ct(){this.buffer=[],this.length=0}Ct.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let i=0;i>>t-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var jt=Ct;function V(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}V.prototype.set=function(e,t,i,o){const r=e*this.size+t;this.data[r]=i,o&&(this.reservedBit[r]=!0)};V.prototype.get=function(e,t){return this.data[e*this.size+t]};V.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i};V.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Gt=V,yt={};(function(e){const t=N.getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const r=Math.floor(o/7)+2,n=t(o),s=n===145?26:Math.ceil((n-13)/(2*r-2))*2,a=[n-7];for(let u=1;u=0&&r<=7},e.from=function(r){return e.isValid(r)?parseInt(r,10):void 0},e.getPenaltyN1=function(r){const n=r.size;let s=0,a=0,u=0,l=null,c=null;for(let B=0;B=5&&(s+=t.N1+(a-5)),l=f,a=1),f=r.get(w,B),f===c?u++:(u>=5&&(s+=t.N1+(u-5)),c=f,u=1)}a>=5&&(s+=t.N1+(a-5)),u>=5&&(s+=t.N1+(u-5))}return s},e.getPenaltyN2=function(r){const n=r.size;let s=0;for(let a=0;a=10&&(a===1488||a===93)&&s++,u=u<<1&2047|r.get(c,l),c>=10&&(u===1488||u===93)&&s++}return s*t.N3},e.getPenaltyN4=function(r){let n=0;const s=r.data.length;for(let u=0;u=0;){const s=n[0];for(let u=0;u0){const n=new Uint8Array(this.degree);return n.set(o,r),n}return o};var Qt=st,It={},L={},ut={};ut.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var S={};const Nt="[0-9]+",Zt="[A-Z $%*+\\-./:]+";let z="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";z=z.replace(/u/g,"\\u");const Wt="(?:(?![A-Z0-9 $%*+\\-./:]|"+z+`)(?:.|[\r ]))+`;S.KANJI=new RegExp(z,"g");S.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");S.BYTE=new RegExp(Wt,"g");S.NUMERIC=new RegExp(Nt,"g");S.ALPHANUMERIC=new RegExp(Zt,"g");const Xt=new RegExp("^"+z+"$"),xt=new RegExp("^"+Nt+"$"),$t=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");S.testKanji=function(t){return Xt.test(t)};S.testNumeric=function(t){return xt.test(t)};S.testAlphanumeric=function(t){return $t.test(t)};(function(e){const t=ut,i=S;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(n,s){if(!n.ccBits)throw new Error("Invalid mode: "+n);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?n.ccBits[0]:s<27?n.ccBits[1]:n.ccBits[2]},e.getBestModeForData=function(n){return i.testNumeric(n)?e.NUMERIC:i.testAlphanumeric(n)?e.ALPHANUMERIC:i.testKanji(n)?e.KANJI:e.BYTE},e.toString=function(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")},e.isValid=function(n){return n&&n.bit&&n.ccBits};function o(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+r)}}e.from=function(n,s){if(e.isValid(n))return n;try{return o(n)}catch{return s}}})(L);(function(e){const t=N,i=G,o=j,r=L,n=ut,s=7973,a=t.getBCHDigit(s);function u(w,f,m){for(let C=1;C<=40;C++)if(f<=e.getCapacity(C,m,w))return C}function l(w,f){return r.getCharCountIndicator(w,f)+4}function c(w,f){let m=0;return w.forEach(function(C){const I=l(C.mode,f);m+=I+C.getBitsLength()}),m}function B(w,f){for(let m=1;m<=40;m++)if(c(w,m)<=e.getCapacity(m,f,r.MIXED))return m}e.from=function(f,m){return n.isValid(f)?parseInt(f,10):m},e.getCapacity=function(f,m,C){if(!n.isValid(f))throw new Error("Invalid QR Code version");typeof C>"u"&&(C=r.BYTE);const I=t.getSymbolTotalCodewords(f),d=i.getTotalCodewordsCount(f,m),y=(I-d)*8;if(C===r.MIXED)return y;const h=y-l(C,f);switch(C){case r.NUMERIC:return Math.floor(h/10*3);case r.ALPHANUMERIC:return Math.floor(h/11*2);case r.KANJI:return Math.floor(h/13);case r.BYTE:default:return Math.floor(h/8)}},e.getBestVersionForData=function(f,m){let C;const I=o.from(m,o.M);if(Array.isArray(f)){if(f.length>1)return B(f,I);if(f.length===0)return 1;C=f[0]}else C=f;return u(C.mode,C.getLength(),I)},e.getEncodedBits=function(f){if(!n.isValid(f)||f<7)throw new Error("Invalid QR Code version");let m=f<<12;for(;t.getBCHDigit(m)-a>=0;)m^=s<=0;)r^=Mt<0&&(o=this.data.substr(i),r=parseInt(o,10),t.put(r,n*3+1))};var ne=_;const re=L,W=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function D(e){this.mode=re.ALPHANUMERIC,this.data=e}D.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};D.prototype.getLength=function(){return this.data.length};D.prototype.getBitsLength=function(){return D.getBitsLength(this.data.length)};D.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let o=W.indexOf(this.data[i])*45;o+=W.indexOf(this.data[i+1]),t.put(o,11)}this.data.length%2&&t.put(W.indexOf(this.data[i]),6)};var oe=D,ie=function(t){for(var i=[],o=t.length,r=0;r=55296&&n<=56319&&o>r+1){var s=t.charCodeAt(r+1);s>=56320&&s<=57343&&(n=(n-55296)*1024+s-56320+65536,r+=1)}if(n<128){i.push(n);continue}if(n<2048){i.push(n>>6|192),i.push(n&63|128);continue}if(n<55296||n>=57344&&n<65536){i.push(n>>12|224),i.push(n>>6&63|128),i.push(n&63|128);continue}if(n>=65536&&n<=1114111){i.push(n>>18|240),i.push(n>>12&63|128),i.push(n>>6&63|128),i.push(n&63|128);continue}i.push(239,191,189)}return new Uint8Array(i).buffer};const se=ie,ue=L;function U(e){this.mode=ue.BYTE,typeof e=="string"&&(e=se(e)),this.data=new Uint8Array(e)}U.getBitsLength=function(t){return t*8};U.prototype.getLength=function(){return this.data.length};U.prototype.getBitsLength=function(){return U.getBitsLength(this.data.length)};U.prototype.write=function(e){for(let t=0,i=this.data.length;t=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),e.put(i,13)}};var fe=F,bt={exports:{}};(function(e){var t={single_source_shortest_paths:function(i,o,r){var n={},s={};s[o]=0;var a=t.PriorityQueue.make();a.push(o,0);for(var u,l,c,B,w,f,m,C,I;!a.empty();){u=a.pop(),l=u.value,B=u.cost,w=i[l]||{};for(c in w)w.hasOwnProperty(c)&&(f=w[c],m=B+f,C=s[c],I=typeof s[c]>"u",(I||C>m)&&(s[c]=m,a.push(c,m),n[c]=l))}if(typeof r<"u"&&typeof s[r]>"u"){var d=["Could not find a path from ",o," to ",r,"."].join("");throw new Error(d)}return n},extract_shortest_path_from_predecessor_list:function(i,o){for(var r=[],n=o;n;)r.push(n),i[n],n=i[n];return r.reverse(),r},find_path:function(i,o,r){var n=t.single_source_shortest_paths(i,o,r);return t.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(i){var o=t.PriorityQueue,r={},n;i=i||{};for(n in o)o.hasOwnProperty(n)&&(r[n]=o[n]);return r.queue=[],r.sorter=i.sorter||o.default_sorter,r},default_sorter:function(i,o){return i.cost-o.cost},push:function(i,o){var r={value:i,cost:o};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(bt);var ge=bt.exports;(function(e){const t=L,i=ne,o=oe,r=ae,n=fe,s=S,a=N,u=ge;function l(d){return unescape(encodeURIComponent(d)).length}function c(d,y,h){const g=[];let E;for(;(E=d.exec(h))!==null;)g.push({data:E[0],index:E.index,mode:y,length:E[0].length});return g}function B(d){const y=c(s.NUMERIC,t.NUMERIC,d),h=c(s.ALPHANUMERIC,t.ALPHANUMERIC,d);let g,E;return a.isKanjiModeEnabled()?(g=c(s.BYTE,t.BYTE,d),E=c(s.KANJI,t.KANJI,d)):(g=c(s.BYTE_KANJI,t.BYTE,d),E=[]),y.concat(h,g,E).sort(function(p,T){return p.index-T.index}).map(function(p){return{data:p.data,mode:p.mode,length:p.length}})}function w(d,y){switch(y){case t.NUMERIC:return i.getBitsLength(d);case t.ALPHANUMERIC:return o.getBitsLength(d);case t.KANJI:return n.getBitsLength(d);case t.BYTE:return r.getBitsLength(d)}}function f(d){return d.reduce(function(y,h){const g=y.length-1>=0?y[y.length-1]:null;return g&&g.mode===h.mode?(y[y.length-1].data+=h.data,y):(y.push(h),y)},[])}function m(d){const y=[];for(let h=0;h=0&&a<=6&&(u===0||u===6)||u>=0&&u<=6&&(a===0||a===6)||a>=2&&a<=4&&u>=2&&u<=4?e.set(n+a,s+u,!0,!0):e.set(n+a,s+u,!1,!0))}}function Ae(e){const t=e.size;for(let i=8;i>a&1)===1,e.set(r,n,s,!0),e.set(n,r,s,!0)}function $(e,t,i){const o=e.size,r=ye.getEncodedBits(t,i);let n,s;for(n=0;n<15;n++)s=(r>>n&1)===1,n<6?e.set(n,8,s,!0):n<8?e.set(n+1,8,s,!0):e.set(o-15+n,8,s,!0),n<8?e.set(8,o-n-1,s,!0):n<9?e.set(8,15-n-1+1,s,!0):e.set(8,15-n-1,s,!0);e.set(o-8,8,1,!0)}function Ne(e,t){const i=e.size;let o=-1,r=i-1,n=7,s=0;for(let a=i-1;a>0;a-=2)for(a===6&&a--;;){for(let u=0;u<2;u++)if(!e.isReserved(r,a-u)){let l=!1;s>>n&1)===1),e.set(r,a-u,l),n--,n===-1&&(s++,n=7)}if(r+=o,r<0||i<=r){r-=o,o=-o;break}}}function Te(e,t,i){const o=new he;i.forEach(function(u){o.put(u.mode.bit,4),o.put(u.getLength(),Ee.getCharCountIndicator(u.mode,e)),u.write(o)});const r=Q.getSymbolTotalCodewords(e),n=rt.getTotalCodewordsCount(e,t),s=(r-n)*8;for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);const a=(s-o.getLengthInBits())/8;for(let u=0;u>>2]>>>24-A%4*8&255;n[E+A>>>2]|=_<<24-(E+A)%4*8}else for(var S=0;S>>2]=i[S>>>2];return this.sigBytes+=C,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=a.ceil(n/4)},clone:function(){var t=e.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var n=[],i=0;i>>2]>>>24-C%4*8&255;E.push((A>>>4).toString(16)),E.push((A&15).toString(16))}return E.join("")},parse:function(t){for(var n=t.length,i=[],E=0;E>>3]|=parseInt(t.substr(E,2),16)<<24-E%8*4;return new d.init(i,n/2)}},o=r.Latin1={stringify:function(t){for(var n=t.words,i=t.sigBytes,E=[],C=0;C>>2]>>>24-C%4*8&255;E.push(String.fromCharCode(A))}return E.join("")},parse:function(t){for(var n=t.length,i=[],E=0;E>>2]|=(t.charCodeAt(E)&255)<<24-E%4*8;return new d.init(i,n)}},c=r.Utf8={stringify:function(t){try{return decodeURIComponent(escape(o.stringify(t)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(t){return o.parse(unescape(encodeURIComponent(t)))}},f=x.BufferedBlockAlgorithm=e.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(t){typeof t=="string"&&(t=c.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var n,i=this._data,E=i.words,C=i.sigBytes,A=this.blockSize,_=A*4,S=C/_;t?S=a.ceil(S):S=a.max((S|0)-this._minBufferSize,0);var u=S*A,F=a.min(u*4,C);if(u){for(var y=0;y>>2]|=h[d]<<24-d%4*8;H.call(this,e,x)}else H.apply(this,arguments)};B.prototype=D}}(),v.lib.WordArray})}(_0)),_0.exports}var b0={exports:{}},Fx;function Cr(){return Fx||(Fx=1,function(R,P){(function(v,a){R.exports=a(T())})(L,function(v){return function(){var a=v,p=a.lib,D=p.WordArray,H=a.enc;H.Utf16=H.Utf16BE={stringify:function(h){for(var x=h.words,e=h.sigBytes,d=[],r=0;r>>2]>>>16-r%4*8&65535;d.push(String.fromCharCode(s))}return d.join("")},parse:function(h){for(var x=h.length,e=[],d=0;d>>1]|=h.charCodeAt(d)<<16-d%2*16;return D.create(e,x*2)}},H.Utf16LE={stringify:function(h){for(var x=h.words,e=h.sigBytes,d=[],r=0;r>>2]>>>16-r%4*8&65535);d.push(String.fromCharCode(s))}return d.join("")},parse:function(h){for(var x=h.length,e=[],d=0;d>>1]|=B(h.charCodeAt(d)<<16-d%2*16);return D.create(e,x*2)}};function B(h){return h<<8&4278255360|h>>>8&16711935}}(),v.enc.Utf16})}(b0)),b0.exports}var y0={exports:{}},Dx;function t0(){return Dx||(Dx=1,function(R,P){(function(v,a){R.exports=a(T())})(L,function(v){return function(){var a=v,p=a.lib,D=p.WordArray,H=a.enc;H.Base64={stringify:function(h){var x=h.words,e=h.sigBytes,d=this._map;h.clamp();for(var r=[],s=0;s>>2]>>>24-s%4*8&255,c=x[s+1>>>2]>>>24-(s+1)%4*8&255,f=x[s+2>>>2]>>>24-(s+2)%4*8&255,l=o<<16|c<<8|f,t=0;t<4&&s+t*.75>>6*(3-t)&63));var n=d.charAt(64);if(n)for(;r.length%4;)r.push(n);return r.join("")},parse:function(h){var x=h.length,e=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var r=0;r>>6-s%4*2,f=o|c;d[r>>>2]|=f<<24-r%4*8,r++}return D.create(d,r)}}(),v.enc.Base64})}(y0)),y0.exports}var g0={exports:{}},px;function Er(){return px||(px=1,function(R,P){(function(v,a){R.exports=a(T())})(L,function(v){return function(){var a=v,p=a.lib,D=p.WordArray,H=a.enc;H.Base64url={stringify:function(h,x){x===void 0&&(x=!0);var e=h.words,d=h.sigBytes,r=x?this._safe_map:this._map;h.clamp();for(var s=[],o=0;o>>2]>>>24-o%4*8&255,f=e[o+1>>>2]>>>24-(o+1)%4*8&255,l=e[o+2>>>2]>>>24-(o+2)%4*8&255,t=c<<16|f<<8|l,n=0;n<4&&o+n*.75>>6*(3-n)&63));var i=r.charAt(64);if(i)for(;s.length%4;)s.push(i);return s.join("")},parse:function(h,x){x===void 0&&(x=!0);var e=h.length,d=x?this._safe_map:this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var s=0;s>>6-s%4*2,f=o|c;d[r>>>2]|=f<<24-r%4*8,r++}return D.create(d,r)}}(),v.enc.Base64url})}(g0)),g0.exports}var k0={exports:{}},_x;function a0(){return _x||(_x=1,function(R,P){(function(v,a){R.exports=a(T())})(L,function(v){return function(a){var p=v,D=p.lib,H=D.WordArray,B=D.Hasher,h=p.algo,x=[];(function(){for(var c=0;c<64;c++)x[c]=a.abs(a.sin(c+1))*4294967296|0})();var e=h.MD5=B.extend({_doReset:function(){this._hash=new H.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(c,f){for(var l=0;l<16;l++){var t=f+l,n=c[t];c[t]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360}var i=this._hash.words,E=c[f+0],C=c[f+1],A=c[f+2],_=c[f+3],S=c[f+4],u=c[f+5],F=c[f+6],y=c[f+7],g=c[f+8],z=c[f+9],q=c[f+10],W=c[f+11],O=c[f+12],X=c[f+13],U=c[f+14],N=c[f+15],b=i[0],w=i[1],m=i[2],k=i[3];b=d(b,w,m,k,E,7,x[0]),k=d(k,b,w,m,C,12,x[1]),m=d(m,k,b,w,A,17,x[2]),w=d(w,m,k,b,_,22,x[3]),b=d(b,w,m,k,S,7,x[4]),k=d(k,b,w,m,u,12,x[5]),m=d(m,k,b,w,F,17,x[6]),w=d(w,m,k,b,y,22,x[7]),b=d(b,w,m,k,g,7,x[8]),k=d(k,b,w,m,z,12,x[9]),m=d(m,k,b,w,q,17,x[10]),w=d(w,m,k,b,W,22,x[11]),b=d(b,w,m,k,O,7,x[12]),k=d(k,b,w,m,X,12,x[13]),m=d(m,k,b,w,U,17,x[14]),w=d(w,m,k,b,N,22,x[15]),b=r(b,w,m,k,C,5,x[16]),k=r(k,b,w,m,F,9,x[17]),m=r(m,k,b,w,W,14,x[18]),w=r(w,m,k,b,E,20,x[19]),b=r(b,w,m,k,u,5,x[20]),k=r(k,b,w,m,q,9,x[21]),m=r(m,k,b,w,N,14,x[22]),w=r(w,m,k,b,S,20,x[23]),b=r(b,w,m,k,z,5,x[24]),k=r(k,b,w,m,U,9,x[25]),m=r(m,k,b,w,_,14,x[26]),w=r(w,m,k,b,g,20,x[27]),b=r(b,w,m,k,X,5,x[28]),k=r(k,b,w,m,A,9,x[29]),m=r(m,k,b,w,y,14,x[30]),w=r(w,m,k,b,O,20,x[31]),b=s(b,w,m,k,u,4,x[32]),k=s(k,b,w,m,g,11,x[33]),m=s(m,k,b,w,W,16,x[34]),w=s(w,m,k,b,U,23,x[35]),b=s(b,w,m,k,C,4,x[36]),k=s(k,b,w,m,S,11,x[37]),m=s(m,k,b,w,y,16,x[38]),w=s(w,m,k,b,q,23,x[39]),b=s(b,w,m,k,X,4,x[40]),k=s(k,b,w,m,E,11,x[41]),m=s(m,k,b,w,_,16,x[42]),w=s(w,m,k,b,F,23,x[43]),b=s(b,w,m,k,z,4,x[44]),k=s(k,b,w,m,O,11,x[45]),m=s(m,k,b,w,N,16,x[46]),w=s(w,m,k,b,A,23,x[47]),b=o(b,w,m,k,E,6,x[48]),k=o(k,b,w,m,y,10,x[49]),m=o(m,k,b,w,U,15,x[50]),w=o(w,m,k,b,u,21,x[51]),b=o(b,w,m,k,O,6,x[52]),k=o(k,b,w,m,_,10,x[53]),m=o(m,k,b,w,q,15,x[54]),w=o(w,m,k,b,C,21,x[55]),b=o(b,w,m,k,g,6,x[56]),k=o(k,b,w,m,N,10,x[57]),m=o(m,k,b,w,F,15,x[58]),w=o(w,m,k,b,X,21,x[59]),b=o(b,w,m,k,S,6,x[60]),k=o(k,b,w,m,W,10,x[61]),m=o(m,k,b,w,A,15,x[62]),w=o(w,m,k,b,z,21,x[63]),i[0]=i[0]+b|0,i[1]=i[1]+w|0,i[2]=i[2]+m|0,i[3]=i[3]+k|0},_doFinalize:function(){var c=this._data,f=c.words,l=this._nDataBytes*8,t=c.sigBytes*8;f[t>>>5]|=128<<24-t%32;var n=a.floor(l/4294967296),i=l;f[(t+64>>>9<<4)+15]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,f[(t+64>>>9<<4)+14]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,c.sigBytes=(f.length+1)*4,this._process();for(var E=this._hash,C=E.words,A=0;A<4;A++){var _=C[A];C[A]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return E},clone:function(){var c=B.clone.call(this);return c._hash=this._hash.clone(),c}});function d(c,f,l,t,n,i,E){var C=c+(f&l|~f&t)+n+E;return(C<>>32-i)+f}function r(c,f,l,t,n,i,E){var C=c+(f&t|l&~t)+n+E;return(C<>>32-i)+f}function s(c,f,l,t,n,i,E){var C=c+(f^l^t)+n+E;return(C<>>32-i)+f}function o(c,f,l,t,n,i,E){var C=c+(l^(f|~t))+n+E;return(C<>>32-i)+f}p.MD5=B._createHelper(e),p.HmacMD5=B._createHmacHelper(e)}(Math),v.MD5})}(k0)),k0.exports}var H0={exports:{}},bx;function Jx(){return bx||(bx=1,function(R,P){(function(v,a){R.exports=a(T())})(L,function(v){return function(){var a=v,p=a.lib,D=p.WordArray,H=p.Hasher,B=a.algo,h=[],x=B.SHA1=H.extend({_doReset:function(){this._hash=new D.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,d){for(var r=this._hash.words,s=r[0],o=r[1],c=r[2],f=r[3],l=r[4],t=0;t<80;t++){if(t<16)h[t]=e[d+t]|0;else{var n=h[t-3]^h[t-8]^h[t-14]^h[t-16];h[t]=n<<1|n>>>31}var i=(s<<5|s>>>27)+l+h[t];t<20?i+=(o&c|~o&f)+1518500249:t<40?i+=(o^c^f)+1859775393:t<60?i+=(o&c|o&f|c&f)-1894007588:i+=(o^c^f)-899497514,l=f,f=c,c=o<<30|o>>>2,o=s,s=i}r[0]=r[0]+s|0,r[1]=r[1]+o|0,r[2]=r[2]+c|0,r[3]=r[3]+f|0,r[4]=r[4]+l|0},_doFinalize:function(){var e=this._data,d=e.words,r=this._nDataBytes*8,s=e.sigBytes*8;return d[s>>>5]|=128<<24-s%32,d[(s+64>>>9<<4)+14]=Math.floor(r/4294967296),d[(s+64>>>9<<4)+15]=r,e.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var e=H.clone.call(this);return e._hash=this._hash.clone(),e}});a.SHA1=H._createHelper(x),a.HmacSHA1=H._createHmacHelper(x)}(),v.SHA1})}(H0)),H0.exports}var w0={exports:{}},yx;function tx(){return yx||(yx=1,function(R,P){(function(v,a){R.exports=a(T())})(L,function(v){return function(a){var p=v,D=p.lib,H=D.WordArray,B=D.Hasher,h=p.algo,x=[],e=[];(function(){function s(l){for(var t=a.sqrt(l),n=2;n<=t;n++)if(!(l%n))return!1;return!0}function o(l){return(l-(l|0))*4294967296|0}for(var c=2,f=0;f<64;)s(c)&&(f<8&&(x[f]=o(a.pow(c,1/2))),e[f]=o(a.pow(c,1/3)),f++),c++})();var d=[],r=h.SHA256=B.extend({_doReset:function(){this._hash=new H.init(x.slice(0))},_doProcessBlock:function(s,o){for(var c=this._hash.words,f=c[0],l=c[1],t=c[2],n=c[3],i=c[4],E=c[5],C=c[6],A=c[7],_=0;_<64;_++){if(_<16)d[_]=s[o+_]|0;else{var S=d[_-15],u=(S<<25|S>>>7)^(S<<14|S>>>18)^S>>>3,F=d[_-2],y=(F<<15|F>>>17)^(F<<13|F>>>19)^F>>>10;d[_]=u+d[_-7]+y+d[_-16]}var g=i&E^~i&C,z=f&l^f&t^l&t,q=(f<<30|f>>>2)^(f<<19|f>>>13)^(f<<10|f>>>22),W=(i<<26|i>>>6)^(i<<21|i>>>11)^(i<<7|i>>>25),O=A+W+g+e[_]+d[_],X=q+z;A=C,C=E,E=i,i=n+O|0,n=t,t=l,l=f,f=O+X|0}c[0]=c[0]+f|0,c[1]=c[1]+l|0,c[2]=c[2]+t|0,c[3]=c[3]+n|0,c[4]=c[4]+i|0,c[5]=c[5]+E|0,c[6]=c[6]+C|0,c[7]=c[7]+A|0},_doFinalize:function(){var s=this._data,o=s.words,c=this._nDataBytes*8,f=s.sigBytes*8;return o[f>>>5]|=128<<24-f%32,o[(f+64>>>9<<4)+14]=a.floor(c/4294967296),o[(f+64>>>9<<4)+15]=c,s.sigBytes=o.length*4,this._process(),this._hash},clone:function(){var s=B.clone.call(this);return s._hash=this._hash.clone(),s}});p.SHA256=B._createHelper(r),p.HmacSHA256=B._createHmacHelper(r)}(Math),v.SHA256})}(w0)),w0.exports}var m0={exports:{}},gx;function Ar(){return gx||(gx=1,function(R,P){(function(v,a,p){R.exports=a(T(),tx())})(L,function(v){return function(){var a=v,p=a.lib,D=p.WordArray,H=a.algo,B=H.SHA256,h=H.SHA224=B.extend({_doReset:function(){this._hash=new D.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var x=B._doFinalize.call(this);return x.sigBytes-=4,x}});a.SHA224=B._createHelper(h),a.HmacSHA224=B._createHmacHelper(h)}(),v.SHA224})}(m0)),m0.exports}var S0={exports:{}},kx;function xr(){return kx||(kx=1,function(R,P){(function(v,a,p){R.exports=a(T(),E0())})(L,function(v){return function(){var a=v,p=a.lib,D=p.Hasher,H=a.x64,B=H.Word,h=H.WordArray,x=a.algo;function e(){return B.create.apply(B,arguments)}var d=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],r=[];(function(){for(var o=0;o<80;o++)r[o]=e()})();var s=x.SHA512=D.extend({_doReset:function(){this._hash=new h.init([new B.init(1779033703,4089235720),new B.init(3144134277,2227873595),new B.init(1013904242,4271175723),new B.init(2773480762,1595750129),new B.init(1359893119,2917565137),new B.init(2600822924,725511199),new B.init(528734635,4215389547),new B.init(1541459225,327033209)])},_doProcessBlock:function(o,c){for(var f=this._hash.words,l=f[0],t=f[1],n=f[2],i=f[3],E=f[4],C=f[5],A=f[6],_=f[7],S=l.high,u=l.low,F=t.high,y=t.low,g=n.high,z=n.low,q=i.high,W=i.low,O=E.high,X=E.low,U=C.high,N=C.low,b=A.high,w=A.low,m=_.high,k=_.low,G=S,K=u,M=F,I=y,f0=g,n0=z,A0=q,s0=W,V=O,$=X,h0=U,c0=N,l0=b,v0=w,F0=m,u0=k,j=0;j<80;j++){var Y,x0,C0=r[j];if(j<16)x0=C0.high=o[c+j*2]|0,Y=C0.low=o[c+j*2+1]|0;else{var nx=r[j-15],o0=nx.high,B0=nx.low,rr=(o0>>>1|B0<<31)^(o0>>>8|B0<<24)^o0>>>7,ox=(B0>>>1|o0<<31)^(B0>>>8|o0<<24)^(B0>>>7|o0<<25),ix=r[j-2],i0=ix.high,d0=ix.low,er=(i0>>>19|d0<<13)^(i0<<3|d0>>>29)^i0>>>6,fx=(d0>>>19|i0<<13)^(d0<<3|i0>>>29)^(d0>>>6|i0<<26),sx=r[j-7],tr=sx.high,ar=sx.low,cx=r[j-16],nr=cx.high,vx=cx.low;Y=ox+ar,x0=rr+tr+(Y>>>0>>0?1:0),Y=Y+fx,x0=x0+er+(Y>>>0>>0?1:0),Y=Y+vx,x0=x0+nr+(Y>>>0>>0?1:0),C0.high=x0,C0.low=Y}var or=V&h0^~V&l0,ux=$&c0^~$&v0,ir=G&M^G&f0^M&f0,fr=K&I^K&n0^I&n0,sr=(G>>>28|K<<4)^(G<<30|K>>>2)^(G<<25|K>>>7),Bx=(K>>>28|G<<4)^(K<<30|G>>>2)^(K<<25|G>>>7),cr=(V>>>14|$<<18)^(V>>>18|$<<14)^(V<<23|$>>>9),vr=($>>>14|V<<18)^($>>>18|V<<14)^($<<23|V>>>9),dx=d[j],ur=dx.high,hx=dx.low,Q=u0+vr,r0=F0+cr+(Q>>>0>>0?1:0),Q=Q+ux,r0=r0+or+(Q>>>0>>0?1:0),Q=Q+hx,r0=r0+ur+(Q>>>0>>0?1:0),Q=Q+Y,r0=r0+x0+(Q>>>0>>0?1:0),lx=Bx+fr,Br=sr+ir+(lx>>>0>>0?1:0);F0=l0,u0=v0,l0=h0,v0=c0,h0=V,c0=$,$=s0+Q|0,V=A0+r0+($>>>0>>0?1:0)|0,A0=f0,s0=n0,f0=M,n0=I,M=G,I=K,K=Q+lx|0,G=r0+Br+(K>>>0>>0?1:0)|0}u=l.low=u+K,l.high=S+G+(u>>>0>>0?1:0),y=t.low=y+I,t.high=F+M+(y>>>0>>0?1:0),z=n.low=z+n0,n.high=g+f0+(z>>>0>>0?1:0),W=i.low=W+s0,i.high=q+A0+(W>>>0>>0?1:0),X=E.low=X+$,E.high=O+V+(X>>>0<$>>>0?1:0),N=C.low=N+c0,C.high=U+h0+(N>>>0>>0?1:0),w=A.low=w+v0,A.high=b+l0+(w>>>0>>0?1:0),k=_.low=k+u0,_.high=m+F0+(k>>>0>>0?1:0)},_doFinalize:function(){var o=this._data,c=o.words,f=this._nDataBytes*8,l=o.sigBytes*8;c[l>>>5]|=128<<24-l%32,c[(l+128>>>10<<5)+30]=Math.floor(f/4294967296),c[(l+128>>>10<<5)+31]=f,o.sigBytes=c.length*4,this._process();var t=this._hash.toX32();return t},clone:function(){var o=D.clone.call(this);return o._hash=this._hash.clone(),o},blockSize:1024/32});a.SHA512=D._createHelper(s),a.HmacSHA512=D._createHmacHelper(s)}(),v.SHA512})}(S0)),S0.exports}var R0={exports:{}},Hx;function Fr(){return Hx||(Hx=1,function(R,P){(function(v,a,p){R.exports=a(T(),E0(),xr())})(L,function(v){return function(){var a=v,p=a.x64,D=p.Word,H=p.WordArray,B=a.algo,h=B.SHA512,x=B.SHA384=h.extend({_doReset:function(){this._hash=new H.init([new D.init(3418070365,3238371032),new D.init(1654270250,914150663),new D.init(2438529370,812702999),new D.init(355462360,4144912697),new D.init(1731405415,4290775857),new D.init(2394180231,1750603025),new D.init(3675008525,1694076839),new D.init(1203062813,3204075428)])},_doFinalize:function(){var e=h._doFinalize.call(this);return e.sigBytes-=16,e}});a.SHA384=h._createHelper(x),a.HmacSHA384=h._createHmacHelper(x)}(),v.SHA384})}(R0)),R0.exports}var z0={exports:{}},wx;function Dr(){return wx||(wx=1,function(R,P){(function(v,a,p){R.exports=a(T(),E0())})(L,function(v){return function(a){var p=v,D=p.lib,H=D.WordArray,B=D.Hasher,h=p.x64,x=h.Word,e=p.algo,d=[],r=[],s=[];(function(){for(var f=1,l=0,t=0;t<24;t++){d[f+5*l]=(t+1)*(t+2)/2%64;var n=l%5,i=(2*f+3*l)%5;f=n,l=i}for(var f=0;f<5;f++)for(var l=0;l<5;l++)r[f+5*l]=l+(2*f+3*l)%5*5;for(var E=1,C=0;C<24;C++){for(var A=0,_=0,S=0;S<7;S++){if(E&1){var u=(1<>>24)&16711935|(E<<24|E>>>8)&4278255360,C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360;var A=t[i];A.high^=C,A.low^=E}for(var _=0;_<24;_++){for(var S=0;S<5;S++){for(var u=0,F=0,y=0;y<5;y++){var A=t[S+5*y];u^=A.high,F^=A.low}var g=o[S];g.high=u,g.low=F}for(var S=0;S<5;S++)for(var z=o[(S+4)%5],q=o[(S+1)%5],W=q.high,O=q.low,u=z.high^(W<<1|O>>>31),F=z.low^(O<<1|W>>>31),y=0;y<5;y++){var A=t[S+5*y];A.high^=u,A.low^=F}for(var X=1;X<25;X++){var u,F,A=t[X],U=A.high,N=A.low,b=d[X];b<32?(u=U<>>32-b,F=N<>>32-b):(u=N<>>64-b,F=U<>>64-b);var w=o[r[X]];w.high=u,w.low=F}var m=o[0],k=t[0];m.high=k.high,m.low=k.low;for(var S=0;S<5;S++)for(var y=0;y<5;y++){var X=S+5*y,A=t[X],G=o[X],K=o[(S+1)%5+5*y],M=o[(S+2)%5+5*y];A.high=G.high^~K.high&M.high,A.low=G.low^~K.low&M.low}var A=t[0],I=s[_];A.high^=I.high,A.low^=I.low}},_doFinalize:function(){var f=this._data,l=f.words;this._nDataBytes*8;var t=f.sigBytes*8,n=this.blockSize*32;l[t>>>5]|=1<<24-t%32,l[(a.ceil((t+1)/n)*n>>>5)-1]|=128,f.sigBytes=l.length*4,this._process();for(var i=this._state,E=this.cfg.outputLength/8,C=E/8,A=[],_=0;_>>24)&16711935|(u<<24|u>>>8)&4278255360,F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,A.push(F),A.push(u)}return new H.init(A,E)},clone:function(){for(var f=B.clone.call(this),l=f._state=this._state.slice(0),t=0;t<25;t++)l[t]=l[t].clone();return f}});p.SHA3=B._createHelper(c),p.HmacSHA3=B._createHmacHelper(c)}(Math),v.SHA3})}(z0)),z0.exports}var q0={exports:{}},mx;function pr(){return mx||(mx=1,function(R,P){(function(v,a){R.exports=a(T())})(L,function(v){/** @preserve +import{e as dr,r as hr,c as L,m as ex}from"./store.26750aee.js";var jx={exports:{}},D0={exports:{}},Cx;function T(){return Cx||(Cx=1,function(R,P){(function(v,a){R.exports=a()})(L,function(){var v=v||function(a,p){var D;if(typeof window<"u"&&window.crypto&&(D=window.crypto),typeof self<"u"&&self.crypto&&(D=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(D=globalThis.crypto),!D&&typeof window<"u"&&window.msCrypto&&(D=window.msCrypto),!D&&typeof L<"u"&&L.crypto&&(D=L.crypto),!D&&typeof dr=="function")try{D=hr}catch{}var H=function(){if(D){if(typeof D.getRandomValues=="function")try{return D.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof D.randomBytes=="function")try{return D.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},B=Object.create||function(){function t(){}return function(n){var i;return t.prototype=n,i=new t,t.prototype=null,i}}(),h={},x=h.lib={},e=x.Base=function(){return{extend:function(t){var n=B(this);return t&&n.mixIn(t),(!n.hasOwnProperty("init")||this.init===n.init)&&(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),d=x.WordArray=e.extend({init:function(t,n){t=this.words=t||[],n!=p?this.sigBytes=n:this.sigBytes=t.length*4},toString:function(t){return(t||s).stringify(this)},concat:function(t){var n=this.words,i=t.words,E=this.sigBytes,C=t.sigBytes;if(this.clamp(),E%4)for(var A=0;A>>2]>>>24-A%4*8&255;n[E+A>>>2]|=_<<24-(E+A)%4*8}else for(var S=0;S>>2]=i[S>>>2];return this.sigBytes+=C,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=a.ceil(n/4)},clone:function(){var t=e.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var n=[],i=0;i>>2]>>>24-C%4*8&255;E.push((A>>>4).toString(16)),E.push((A&15).toString(16))}return E.join("")},parse:function(t){for(var n=t.length,i=[],E=0;E>>3]|=parseInt(t.substr(E,2),16)<<24-E%8*4;return new d.init(i,n/2)}},o=r.Latin1={stringify:function(t){for(var n=t.words,i=t.sigBytes,E=[],C=0;C>>2]>>>24-C%4*8&255;E.push(String.fromCharCode(A))}return E.join("")},parse:function(t){for(var n=t.length,i=[],E=0;E>>2]|=(t.charCodeAt(E)&255)<<24-E%4*8;return new d.init(i,n)}},c=r.Utf8={stringify:function(t){try{return decodeURIComponent(escape(o.stringify(t)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(t){return o.parse(unescape(encodeURIComponent(t)))}},f=x.BufferedBlockAlgorithm=e.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(t){typeof t=="string"&&(t=c.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var n,i=this._data,E=i.words,C=i.sigBytes,A=this.blockSize,_=A*4,S=C/_;t?S=a.ceil(S):S=a.max((S|0)-this._minBufferSize,0);var u=S*A,F=a.min(u*4,C);if(u){for(var y=0;y>>2]|=h[d]<<24-d%4*8;H.call(this,e,x)}else H.apply(this,arguments)};B.prototype=D}}(),v.lib.WordArray})}(_0)),_0.exports}var b0={exports:{}},Fx;function Cr(){return Fx||(Fx=1,function(R,P){(function(v,a){R.exports=a(T())})(L,function(v){return function(){var a=v,p=a.lib,D=p.WordArray,H=a.enc;H.Utf16=H.Utf16BE={stringify:function(h){for(var x=h.words,e=h.sigBytes,d=[],r=0;r>>2]>>>16-r%4*8&65535;d.push(String.fromCharCode(s))}return d.join("")},parse:function(h){for(var x=h.length,e=[],d=0;d>>1]|=h.charCodeAt(d)<<16-d%2*16;return D.create(e,x*2)}},H.Utf16LE={stringify:function(h){for(var x=h.words,e=h.sigBytes,d=[],r=0;r>>2]>>>16-r%4*8&65535);d.push(String.fromCharCode(s))}return d.join("")},parse:function(h){for(var x=h.length,e=[],d=0;d>>1]|=B(h.charCodeAt(d)<<16-d%2*16);return D.create(e,x*2)}};function B(h){return h<<8&4278255360|h>>>8&16711935}}(),v.enc.Utf16})}(b0)),b0.exports}var y0={exports:{}},Dx;function t0(){return Dx||(Dx=1,function(R,P){(function(v,a){R.exports=a(T())})(L,function(v){return function(){var a=v,p=a.lib,D=p.WordArray,H=a.enc;H.Base64={stringify:function(h){var x=h.words,e=h.sigBytes,d=this._map;h.clamp();for(var r=[],s=0;s>>2]>>>24-s%4*8&255,c=x[s+1>>>2]>>>24-(s+1)%4*8&255,f=x[s+2>>>2]>>>24-(s+2)%4*8&255,l=o<<16|c<<8|f,t=0;t<4&&s+t*.75>>6*(3-t)&63));var n=d.charAt(64);if(n)for(;r.length%4;)r.push(n);return r.join("")},parse:function(h){var x=h.length,e=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var r=0;r>>6-s%4*2,f=o|c;d[r>>>2]|=f<<24-r%4*8,r++}return D.create(d,r)}}(),v.enc.Base64})}(y0)),y0.exports}var g0={exports:{}},px;function Er(){return px||(px=1,function(R,P){(function(v,a){R.exports=a(T())})(L,function(v){return function(){var a=v,p=a.lib,D=p.WordArray,H=a.enc;H.Base64url={stringify:function(h,x){x===void 0&&(x=!0);var e=h.words,d=h.sigBytes,r=x?this._safe_map:this._map;h.clamp();for(var s=[],o=0;o>>2]>>>24-o%4*8&255,f=e[o+1>>>2]>>>24-(o+1)%4*8&255,l=e[o+2>>>2]>>>24-(o+2)%4*8&255,t=c<<16|f<<8|l,n=0;n<4&&o+n*.75>>6*(3-n)&63));var i=r.charAt(64);if(i)for(;s.length%4;)s.push(i);return s.join("")},parse:function(h,x){x===void 0&&(x=!0);var e=h.length,d=x?this._safe_map:this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var s=0;s>>6-s%4*2,f=o|c;d[r>>>2]|=f<<24-r%4*8,r++}return D.create(d,r)}}(),v.enc.Base64url})}(g0)),g0.exports}var k0={exports:{}},_x;function a0(){return _x||(_x=1,function(R,P){(function(v,a){R.exports=a(T())})(L,function(v){return function(a){var p=v,D=p.lib,H=D.WordArray,B=D.Hasher,h=p.algo,x=[];(function(){for(var c=0;c<64;c++)x[c]=a.abs(a.sin(c+1))*4294967296|0})();var e=h.MD5=B.extend({_doReset:function(){this._hash=new H.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(c,f){for(var l=0;l<16;l++){var t=f+l,n=c[t];c[t]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360}var i=this._hash.words,E=c[f+0],C=c[f+1],A=c[f+2],_=c[f+3],S=c[f+4],u=c[f+5],F=c[f+6],y=c[f+7],g=c[f+8],z=c[f+9],q=c[f+10],W=c[f+11],O=c[f+12],X=c[f+13],U=c[f+14],N=c[f+15],b=i[0],w=i[1],m=i[2],k=i[3];b=d(b,w,m,k,E,7,x[0]),k=d(k,b,w,m,C,12,x[1]),m=d(m,k,b,w,A,17,x[2]),w=d(w,m,k,b,_,22,x[3]),b=d(b,w,m,k,S,7,x[4]),k=d(k,b,w,m,u,12,x[5]),m=d(m,k,b,w,F,17,x[6]),w=d(w,m,k,b,y,22,x[7]),b=d(b,w,m,k,g,7,x[8]),k=d(k,b,w,m,z,12,x[9]),m=d(m,k,b,w,q,17,x[10]),w=d(w,m,k,b,W,22,x[11]),b=d(b,w,m,k,O,7,x[12]),k=d(k,b,w,m,X,12,x[13]),m=d(m,k,b,w,U,17,x[14]),w=d(w,m,k,b,N,22,x[15]),b=r(b,w,m,k,C,5,x[16]),k=r(k,b,w,m,F,9,x[17]),m=r(m,k,b,w,W,14,x[18]),w=r(w,m,k,b,E,20,x[19]),b=r(b,w,m,k,u,5,x[20]),k=r(k,b,w,m,q,9,x[21]),m=r(m,k,b,w,N,14,x[22]),w=r(w,m,k,b,S,20,x[23]),b=r(b,w,m,k,z,5,x[24]),k=r(k,b,w,m,U,9,x[25]),m=r(m,k,b,w,_,14,x[26]),w=r(w,m,k,b,g,20,x[27]),b=r(b,w,m,k,X,5,x[28]),k=r(k,b,w,m,A,9,x[29]),m=r(m,k,b,w,y,14,x[30]),w=r(w,m,k,b,O,20,x[31]),b=s(b,w,m,k,u,4,x[32]),k=s(k,b,w,m,g,11,x[33]),m=s(m,k,b,w,W,16,x[34]),w=s(w,m,k,b,U,23,x[35]),b=s(b,w,m,k,C,4,x[36]),k=s(k,b,w,m,S,11,x[37]),m=s(m,k,b,w,y,16,x[38]),w=s(w,m,k,b,q,23,x[39]),b=s(b,w,m,k,X,4,x[40]),k=s(k,b,w,m,E,11,x[41]),m=s(m,k,b,w,_,16,x[42]),w=s(w,m,k,b,F,23,x[43]),b=s(b,w,m,k,z,4,x[44]),k=s(k,b,w,m,O,11,x[45]),m=s(m,k,b,w,N,16,x[46]),w=s(w,m,k,b,A,23,x[47]),b=o(b,w,m,k,E,6,x[48]),k=o(k,b,w,m,y,10,x[49]),m=o(m,k,b,w,U,15,x[50]),w=o(w,m,k,b,u,21,x[51]),b=o(b,w,m,k,O,6,x[52]),k=o(k,b,w,m,_,10,x[53]),m=o(m,k,b,w,q,15,x[54]),w=o(w,m,k,b,C,21,x[55]),b=o(b,w,m,k,g,6,x[56]),k=o(k,b,w,m,N,10,x[57]),m=o(m,k,b,w,F,15,x[58]),w=o(w,m,k,b,X,21,x[59]),b=o(b,w,m,k,S,6,x[60]),k=o(k,b,w,m,W,10,x[61]),m=o(m,k,b,w,A,15,x[62]),w=o(w,m,k,b,z,21,x[63]),i[0]=i[0]+b|0,i[1]=i[1]+w|0,i[2]=i[2]+m|0,i[3]=i[3]+k|0},_doFinalize:function(){var c=this._data,f=c.words,l=this._nDataBytes*8,t=c.sigBytes*8;f[t>>>5]|=128<<24-t%32;var n=a.floor(l/4294967296),i=l;f[(t+64>>>9<<4)+15]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,f[(t+64>>>9<<4)+14]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,c.sigBytes=(f.length+1)*4,this._process();for(var E=this._hash,C=E.words,A=0;A<4;A++){var _=C[A];C[A]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return E},clone:function(){var c=B.clone.call(this);return c._hash=this._hash.clone(),c}});function d(c,f,l,t,n,i,E){var C=c+(f&l|~f&t)+n+E;return(C<>>32-i)+f}function r(c,f,l,t,n,i,E){var C=c+(f&t|l&~t)+n+E;return(C<>>32-i)+f}function s(c,f,l,t,n,i,E){var C=c+(f^l^t)+n+E;return(C<>>32-i)+f}function o(c,f,l,t,n,i,E){var C=c+(l^(f|~t))+n+E;return(C<>>32-i)+f}p.MD5=B._createHelper(e),p.HmacMD5=B._createHmacHelper(e)}(Math),v.MD5})}(k0)),k0.exports}var H0={exports:{}},bx;function Jx(){return bx||(bx=1,function(R,P){(function(v,a){R.exports=a(T())})(L,function(v){return function(){var a=v,p=a.lib,D=p.WordArray,H=p.Hasher,B=a.algo,h=[],x=B.SHA1=H.extend({_doReset:function(){this._hash=new D.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,d){for(var r=this._hash.words,s=r[0],o=r[1],c=r[2],f=r[3],l=r[4],t=0;t<80;t++){if(t<16)h[t]=e[d+t]|0;else{var n=h[t-3]^h[t-8]^h[t-14]^h[t-16];h[t]=n<<1|n>>>31}var i=(s<<5|s>>>27)+l+h[t];t<20?i+=(o&c|~o&f)+1518500249:t<40?i+=(o^c^f)+1859775393:t<60?i+=(o&c|o&f|c&f)-1894007588:i+=(o^c^f)-899497514,l=f,f=c,c=o<<30|o>>>2,o=s,s=i}r[0]=r[0]+s|0,r[1]=r[1]+o|0,r[2]=r[2]+c|0,r[3]=r[3]+f|0,r[4]=r[4]+l|0},_doFinalize:function(){var e=this._data,d=e.words,r=this._nDataBytes*8,s=e.sigBytes*8;return d[s>>>5]|=128<<24-s%32,d[(s+64>>>9<<4)+14]=Math.floor(r/4294967296),d[(s+64>>>9<<4)+15]=r,e.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var e=H.clone.call(this);return e._hash=this._hash.clone(),e}});a.SHA1=H._createHelper(x),a.HmacSHA1=H._createHmacHelper(x)}(),v.SHA1})}(H0)),H0.exports}var w0={exports:{}},yx;function tx(){return yx||(yx=1,function(R,P){(function(v,a){R.exports=a(T())})(L,function(v){return function(a){var p=v,D=p.lib,H=D.WordArray,B=D.Hasher,h=p.algo,x=[],e=[];(function(){function s(l){for(var t=a.sqrt(l),n=2;n<=t;n++)if(!(l%n))return!1;return!0}function o(l){return(l-(l|0))*4294967296|0}for(var c=2,f=0;f<64;)s(c)&&(f<8&&(x[f]=o(a.pow(c,1/2))),e[f]=o(a.pow(c,1/3)),f++),c++})();var d=[],r=h.SHA256=B.extend({_doReset:function(){this._hash=new H.init(x.slice(0))},_doProcessBlock:function(s,o){for(var c=this._hash.words,f=c[0],l=c[1],t=c[2],n=c[3],i=c[4],E=c[5],C=c[6],A=c[7],_=0;_<64;_++){if(_<16)d[_]=s[o+_]|0;else{var S=d[_-15],u=(S<<25|S>>>7)^(S<<14|S>>>18)^S>>>3,F=d[_-2],y=(F<<15|F>>>17)^(F<<13|F>>>19)^F>>>10;d[_]=u+d[_-7]+y+d[_-16]}var g=i&E^~i&C,z=f&l^f&t^l&t,q=(f<<30|f>>>2)^(f<<19|f>>>13)^(f<<10|f>>>22),W=(i<<26|i>>>6)^(i<<21|i>>>11)^(i<<7|i>>>25),O=A+W+g+e[_]+d[_],X=q+z;A=C,C=E,E=i,i=n+O|0,n=t,t=l,l=f,f=O+X|0}c[0]=c[0]+f|0,c[1]=c[1]+l|0,c[2]=c[2]+t|0,c[3]=c[3]+n|0,c[4]=c[4]+i|0,c[5]=c[5]+E|0,c[6]=c[6]+C|0,c[7]=c[7]+A|0},_doFinalize:function(){var s=this._data,o=s.words,c=this._nDataBytes*8,f=s.sigBytes*8;return o[f>>>5]|=128<<24-f%32,o[(f+64>>>9<<4)+14]=a.floor(c/4294967296),o[(f+64>>>9<<4)+15]=c,s.sigBytes=o.length*4,this._process(),this._hash},clone:function(){var s=B.clone.call(this);return s._hash=this._hash.clone(),s}});p.SHA256=B._createHelper(r),p.HmacSHA256=B._createHmacHelper(r)}(Math),v.SHA256})}(w0)),w0.exports}var m0={exports:{}},gx;function Ar(){return gx||(gx=1,function(R,P){(function(v,a,p){R.exports=a(T(),tx())})(L,function(v){return function(){var a=v,p=a.lib,D=p.WordArray,H=a.algo,B=H.SHA256,h=H.SHA224=B.extend({_doReset:function(){this._hash=new D.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var x=B._doFinalize.call(this);return x.sigBytes-=4,x}});a.SHA224=B._createHelper(h),a.HmacSHA224=B._createHmacHelper(h)}(),v.SHA224})}(m0)),m0.exports}var S0={exports:{}},kx;function xr(){return kx||(kx=1,function(R,P){(function(v,a,p){R.exports=a(T(),E0())})(L,function(v){return function(){var a=v,p=a.lib,D=p.Hasher,H=a.x64,B=H.Word,h=H.WordArray,x=a.algo;function e(){return B.create.apply(B,arguments)}var d=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],r=[];(function(){for(var o=0;o<80;o++)r[o]=e()})();var s=x.SHA512=D.extend({_doReset:function(){this._hash=new h.init([new B.init(1779033703,4089235720),new B.init(3144134277,2227873595),new B.init(1013904242,4271175723),new B.init(2773480762,1595750129),new B.init(1359893119,2917565137),new B.init(2600822924,725511199),new B.init(528734635,4215389547),new B.init(1541459225,327033209)])},_doProcessBlock:function(o,c){for(var f=this._hash.words,l=f[0],t=f[1],n=f[2],i=f[3],E=f[4],C=f[5],A=f[6],_=f[7],S=l.high,u=l.low,F=t.high,y=t.low,g=n.high,z=n.low,q=i.high,W=i.low,O=E.high,X=E.low,U=C.high,N=C.low,b=A.high,w=A.low,m=_.high,k=_.low,G=S,K=u,M=F,I=y,f0=g,n0=z,A0=q,s0=W,V=O,$=X,h0=U,c0=N,l0=b,v0=w,F0=m,u0=k,j=0;j<80;j++){var Y,x0,C0=r[j];if(j<16)x0=C0.high=o[c+j*2]|0,Y=C0.low=o[c+j*2+1]|0;else{var nx=r[j-15],o0=nx.high,B0=nx.low,rr=(o0>>>1|B0<<31)^(o0>>>8|B0<<24)^o0>>>7,ox=(B0>>>1|o0<<31)^(B0>>>8|o0<<24)^(B0>>>7|o0<<25),ix=r[j-2],i0=ix.high,d0=ix.low,er=(i0>>>19|d0<<13)^(i0<<3|d0>>>29)^i0>>>6,fx=(d0>>>19|i0<<13)^(d0<<3|i0>>>29)^(d0>>>6|i0<<26),sx=r[j-7],tr=sx.high,ar=sx.low,cx=r[j-16],nr=cx.high,vx=cx.low;Y=ox+ar,x0=rr+tr+(Y>>>0>>0?1:0),Y=Y+fx,x0=x0+er+(Y>>>0>>0?1:0),Y=Y+vx,x0=x0+nr+(Y>>>0>>0?1:0),C0.high=x0,C0.low=Y}var or=V&h0^~V&l0,ux=$&c0^~$&v0,ir=G&M^G&f0^M&f0,fr=K&I^K&n0^I&n0,sr=(G>>>28|K<<4)^(G<<30|K>>>2)^(G<<25|K>>>7),Bx=(K>>>28|G<<4)^(K<<30|G>>>2)^(K<<25|G>>>7),cr=(V>>>14|$<<18)^(V>>>18|$<<14)^(V<<23|$>>>9),vr=($>>>14|V<<18)^($>>>18|V<<14)^($<<23|V>>>9),dx=d[j],ur=dx.high,hx=dx.low,Q=u0+vr,r0=F0+cr+(Q>>>0>>0?1:0),Q=Q+ux,r0=r0+or+(Q>>>0>>0?1:0),Q=Q+hx,r0=r0+ur+(Q>>>0>>0?1:0),Q=Q+Y,r0=r0+x0+(Q>>>0>>0?1:0),lx=Bx+fr,Br=sr+ir+(lx>>>0>>0?1:0);F0=l0,u0=v0,l0=h0,v0=c0,h0=V,c0=$,$=s0+Q|0,V=A0+r0+($>>>0>>0?1:0)|0,A0=f0,s0=n0,f0=M,n0=I,M=G,I=K,K=Q+lx|0,G=r0+Br+(K>>>0>>0?1:0)|0}u=l.low=u+K,l.high=S+G+(u>>>0>>0?1:0),y=t.low=y+I,t.high=F+M+(y>>>0>>0?1:0),z=n.low=z+n0,n.high=g+f0+(z>>>0>>0?1:0),W=i.low=W+s0,i.high=q+A0+(W>>>0>>0?1:0),X=E.low=X+$,E.high=O+V+(X>>>0<$>>>0?1:0),N=C.low=N+c0,C.high=U+h0+(N>>>0>>0?1:0),w=A.low=w+v0,A.high=b+l0+(w>>>0>>0?1:0),k=_.low=k+u0,_.high=m+F0+(k>>>0>>0?1:0)},_doFinalize:function(){var o=this._data,c=o.words,f=this._nDataBytes*8,l=o.sigBytes*8;c[l>>>5]|=128<<24-l%32,c[(l+128>>>10<<5)+30]=Math.floor(f/4294967296),c[(l+128>>>10<<5)+31]=f,o.sigBytes=c.length*4,this._process();var t=this._hash.toX32();return t},clone:function(){var o=D.clone.call(this);return o._hash=this._hash.clone(),o},blockSize:1024/32});a.SHA512=D._createHelper(s),a.HmacSHA512=D._createHmacHelper(s)}(),v.SHA512})}(S0)),S0.exports}var R0={exports:{}},Hx;function Fr(){return Hx||(Hx=1,function(R,P){(function(v,a,p){R.exports=a(T(),E0(),xr())})(L,function(v){return function(){var a=v,p=a.x64,D=p.Word,H=p.WordArray,B=a.algo,h=B.SHA512,x=B.SHA384=h.extend({_doReset:function(){this._hash=new H.init([new D.init(3418070365,3238371032),new D.init(1654270250,914150663),new D.init(2438529370,812702999),new D.init(355462360,4144912697),new D.init(1731405415,4290775857),new D.init(2394180231,1750603025),new D.init(3675008525,1694076839),new D.init(1203062813,3204075428)])},_doFinalize:function(){var e=h._doFinalize.call(this);return e.sigBytes-=16,e}});a.SHA384=h._createHelper(x),a.HmacSHA384=h._createHmacHelper(x)}(),v.SHA384})}(R0)),R0.exports}var z0={exports:{}},wx;function Dr(){return wx||(wx=1,function(R,P){(function(v,a,p){R.exports=a(T(),E0())})(L,function(v){return function(a){var p=v,D=p.lib,H=D.WordArray,B=D.Hasher,h=p.x64,x=h.Word,e=p.algo,d=[],r=[],s=[];(function(){for(var f=1,l=0,t=0;t<24;t++){d[f+5*l]=(t+1)*(t+2)/2%64;var n=l%5,i=(2*f+3*l)%5;f=n,l=i}for(var f=0;f<5;f++)for(var l=0;l<5;l++)r[f+5*l]=l+(2*f+3*l)%5*5;for(var E=1,C=0;C<24;C++){for(var A=0,_=0,S=0;S<7;S++){if(E&1){var u=(1<>>24)&16711935|(E<<24|E>>>8)&4278255360,C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360;var A=t[i];A.high^=C,A.low^=E}for(var _=0;_<24;_++){for(var S=0;S<5;S++){for(var u=0,F=0,y=0;y<5;y++){var A=t[S+5*y];u^=A.high,F^=A.low}var g=o[S];g.high=u,g.low=F}for(var S=0;S<5;S++)for(var z=o[(S+4)%5],q=o[(S+1)%5],W=q.high,O=q.low,u=z.high^(W<<1|O>>>31),F=z.low^(O<<1|W>>>31),y=0;y<5;y++){var A=t[S+5*y];A.high^=u,A.low^=F}for(var X=1;X<25;X++){var u,F,A=t[X],U=A.high,N=A.low,b=d[X];b<32?(u=U<>>32-b,F=N<>>32-b):(u=N<>>64-b,F=U<>>64-b);var w=o[r[X]];w.high=u,w.low=F}var m=o[0],k=t[0];m.high=k.high,m.low=k.low;for(var S=0;S<5;S++)for(var y=0;y<5;y++){var X=S+5*y,A=t[X],G=o[X],K=o[(S+1)%5+5*y],M=o[(S+2)%5+5*y];A.high=G.high^~K.high&M.high,A.low=G.low^~K.low&M.low}var A=t[0],I=s[_];A.high^=I.high,A.low^=I.low}},_doFinalize:function(){var f=this._data,l=f.words;this._nDataBytes*8;var t=f.sigBytes*8,n=this.blockSize*32;l[t>>>5]|=1<<24-t%32,l[(a.ceil((t+1)/n)*n>>>5)-1]|=128,f.sigBytes=l.length*4,this._process();for(var i=this._state,E=this.cfg.outputLength/8,C=E/8,A=[],_=0;_>>24)&16711935|(u<<24|u>>>8)&4278255360,F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,A.push(F),A.push(u)}return new H.init(A,E)},clone:function(){for(var f=B.clone.call(this),l=f._state=this._state.slice(0),t=0;t<25;t++)l[t]=l[t].clone();return f}});p.SHA3=B._createHelper(c),p.HmacSHA3=B._createHmacHelper(c)}(Math),v.SHA3})}(z0)),z0.exports}var q0={exports:{}},mx;function pr(){return mx||(mx=1,function(R,P){(function(v,a){R.exports=a(T())})(L,function(v){/** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: diff --git a/build/app/immutable/chunks/singletons.52dc892b.js b/build/app/immutable/chunks/singletons.de356790.js similarity index 72% rename from build/app/immutable/chunks/singletons.52dc892b.js rename to build/app/immutable/chunks/singletons.de356790.js index 5b8117dc2..e0351ee1f 100644 --- a/build/app/immutable/chunks/singletons.52dc892b.js +++ b/build/app/immutable/chunks/singletons.de356790.js @@ -1 +1 @@ -import{w as u}from"./index.1fc1f291.js";var _;const v=((_=globalThis.__sveltekit_1jtw59)==null?void 0:_.base)??"";var g;const k=((g=globalThis.__sveltekit_1jtw59)==null?void 0:g.assets)??v,w="1700659441027",R="sveltekit:snapshot",T="sveltekit:scroll",y="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1};function I(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function S(){return{x:pageXOffset,y:pageYOffset}}function c(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function h(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function x(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=h(e)}}function O(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const o=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!o||E(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),l=(n==null?void 0:n.origin)===location.origin&&e.hasAttribute("download");return{url:n,external:r,target:o,download:l}}function U(e){let t=null,n=null,o=null,r=null,l=null,a=null,s=e;for(;s&&s!==document.documentElement;)o===null&&(o=c(s,"preload-code")),r===null&&(r=c(s,"preload-data")),t===null&&(t=c(s,"keepfocus")),n===null&&(n=c(s,"noscroll")),l===null&&(l=c(s,"reload")),a===null&&(a=c(s,"replacestate")),s=h(s);function i(b){switch(b){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:d[o??"off"],preload_data:d[r??"off"],keep_focus:i(t),noscroll:i(n),reload:i(l),replace_state:i(a)}}function p(e){const t=u(e);let n=!0;function o(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function l(a){let s;return t.subscribe(i=>{(s===void 0||n&&i!==s)&&a(s=i)})}return{notify:o,set:r,subscribe:l}}function m(){const{set:e,subscribe:t}=u(!1);let n;async function o(){clearTimeout(n);try{const r=await fetch(`${k}/app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==w;return a&&(e(!0),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:o}}function E(e,t){return e.origin!==location.origin||!e.pathname.startsWith(t)}function L(e){e.client}const N={url:p({}),page:p({}),navigating:u(null),updated:m()};export{y as I,f as P,T as S,R as a,O as b,U as c,N as d,v as e,x as f,I as g,L as h,E as i,S as s}; +import{w as u}from"./index.3a682f2f.js";var _;const v=((_=globalThis.__sveltekit_87synt)==null?void 0:_.base)??"";var g;const k=((g=globalThis.__sveltekit_87synt)==null?void 0:g.assets)??v,m="1701430280745",A="sveltekit:snapshot",R="sveltekit:scroll",T="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1};function I(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function S(){return{x:pageXOffset,y:pageYOffset}}function c(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function h(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function x(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=h(e)}}function O(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const o=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!o||y(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),l=(n==null?void 0:n.origin)===location.origin&&e.hasAttribute("download");return{url:n,external:r,target:o,download:l}}function U(e){let t=null,n=null,o=null,r=null,l=null,a=null,s=e;for(;s&&s!==document.documentElement;)o===null&&(o=c(s,"preload-code")),r===null&&(r=c(s,"preload-data")),t===null&&(t=c(s,"keepfocus")),n===null&&(n=c(s,"noscroll")),l===null&&(l=c(s,"reload")),a===null&&(a=c(s,"replacestate")),s=h(s);function i(b){switch(b){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:d[o??"off"],preload_data:d[r??"off"],keep_focus:i(t),noscroll:i(n),reload:i(l),replace_state:i(a)}}function p(e){const t=u(e);let n=!0;function o(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function l(a){let s;return t.subscribe(i=>{(s===void 0||n&&i!==s)&&a(s=i)})}return{notify:o,set:r,subscribe:l}}function w(){const{set:e,subscribe:t}=u(!1);let n;async function o(){clearTimeout(n);try{const r=await fetch(`${k}/app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==m;return a&&(e(!0),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:o}}function y(e,t){return e.origin!==location.origin||!e.pathname.startsWith(t)}function L(e){e.client}const N={url:p({}),page:p({}),navigating:u(null),updated:w()};export{T as I,f as P,R as S,A as a,O as b,U as c,N as d,v as e,x as f,I as g,L as h,y as i,S as s}; diff --git a/build/app/immutable/chunks/store.e259513c.js b/build/app/immutable/chunks/store.26750aee.js similarity index 56% rename from build/app/immutable/chunks/store.e259513c.js rename to build/app/immutable/chunks/store.26750aee.js index 64d89ea0b..a9b8e9c42 100644 --- a/build/app/immutable/chunks/store.e259513c.js +++ b/build/app/immutable/chunks/store.26750aee.js @@ -1 +1 @@ -import{w as t}from"./index.1fc1f291.js";const l=!0,u=l;var P=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function L(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var o=function s(){return this instanceof s?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};o.prototype=r.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var c=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(o,s,c.get?c:{enumerable:!0,get:function(){return e[s]}})}),o}function T(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}const m={},b=Object.freeze(Object.defineProperty({__proto__:null,default:m},Symbol.toStringTag,{value:"Module"})),M=g(b),f=t(localStorage.getItem("walletAddress")||"");f.subscribe(e=>localStorage.setItem("walletAddress",e));const d=t(sessionStorage.getItem("privateKey")||""),p=t(sessionStorage.getItem("publicKey")||"");d.subscribe(e=>sessionStorage.setItem("privateKey",e));p.subscribe(e=>sessionStorage.setItem("publicKey",e));async function S(e){try{return u&&sessionStorage.setItem("mnemonicPhrase",e),!0}catch{return!1}}async function y(){try{return sessionStorage.getItem("mnemonicPhrase")}catch{return}}async function w(){try{return await sessionStorage.removeItem("mnemonicPhrase"),!0}catch{return!1}}const $={get:y,set:S,remove:w},i=t(localStorage.getItem("jwtToken")||"");i.subscribe(e=>localStorage.setItem("jwtToken",e));const q=e=>{localStorage.setItem("jwtToken",`${e}`),i.set(e)},a=t(Number(localStorage.getItem("onboardingStepsLeft"))||4);a.subscribe(e=>localStorage.setItem("onboardingStepsLeft",e));const I=e=>{localStorage.setItem("onboardingStepsLeft",`${e}`),a.set(e)},h=()=>{a.update(e=>(localStorage.setItem("onboardingStepsLeft",`${e-1}`),e-1))},v=()=>{a.update(e=>(localStorage.setItem("onboardingStepsLeft",e+1),e+1))},E={subscribe:a.subscribe,set:I,decrease:h,increase:v},j=t(localStorage.getItem("iv")||"");j.subscribe(e=>localStorage.setItem("iv",e));const n=t(localStorage.getItem("avatar")||"");n.subscribe(e=>localStorage.setItem("avatar",e));const _=e=>{localStorage.setItem("avatar",`${e}`),n.set(e)},K={set:_,subscribe:n.subscribe};export{g as a,p as b,P as c,K as d,T as e,L as g,i as j,$ as m,E as o,d as p,M as r,q as s,f as w}; +import{w as t}from"./index.3a682f2f.js";const l=!0,u=l;var P=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function L(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var o=function s(){return this instanceof s?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};o.prototype=r.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var c=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(o,s,c.get?c:{enumerable:!0,get:function(){return e[s]}})}),o}function T(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}const m={},b=Object.freeze(Object.defineProperty({__proto__:null,default:m},Symbol.toStringTag,{value:"Module"})),M=g(b),f=t(localStorage.getItem("walletAddress")||"");f.subscribe(e=>localStorage.setItem("walletAddress",e));const d=t(sessionStorage.getItem("privateKey")||""),p=t(sessionStorage.getItem("publicKey")||"");d.subscribe(e=>sessionStorage.setItem("privateKey",e));p.subscribe(e=>sessionStorage.setItem("publicKey",e));async function S(e){try{return u&&sessionStorage.setItem("mnemonicPhrase",e),!0}catch{return!1}}async function y(){try{return sessionStorage.getItem("mnemonicPhrase")}catch{return}}async function w(){try{return sessionStorage.removeItem("mnemonicPhrase"),!0}catch{return!1}}const $={get:y,set:S,remove:w},i=t(localStorage.getItem("jwtToken")||"");i.subscribe(e=>localStorage.setItem("jwtToken",e));const q=e=>{localStorage.setItem("jwtToken",`${e}`),i.set(e)},n=t(Number(localStorage.getItem("onboardingStepsLeft"))||4);n.subscribe(e=>localStorage.setItem("onboardingStepsLeft",e));const I=e=>{localStorage.setItem("onboardingStepsLeft",`${e}`),n.set(e)},h=()=>{n.update(e=>(localStorage.setItem("onboardingStepsLeft",`${e-1}`),e-1))},v=()=>{n.update(e=>(localStorage.setItem("onboardingStepsLeft",e+1),e+1))},E={subscribe:n.subscribe,set:I,decrease:h,increase:v},j=t(localStorage.getItem("iv")||"");j.subscribe(e=>localStorage.setItem("iv",e));const a=t(localStorage.getItem("avatar")||"");a.subscribe(e=>localStorage.setItem("avatar",e));const _=e=>{localStorage.setItem("avatar",`${e}`),a.set(e)},K={set:_,subscribe:a.subscribe};export{g as a,p as b,P as c,K as d,T as e,L as g,i as j,$ as m,E as o,d as p,M as r,q as s,f as w}; diff --git a/build/app/immutable/chunks/stores.1e365101.js b/build/app/immutable/chunks/stores.fcb3ce1c.js similarity index 73% rename from build/app/immutable/chunks/stores.1e365101.js rename to build/app/immutable/chunks/stores.fcb3ce1c.js index 9e5fc3778..fd9ce1376 100644 --- a/build/app/immutable/chunks/stores.1e365101.js +++ b/build/app/immutable/chunks/stores.fcb3ce1c.js @@ -1 +1 @@ -import{d as e}from"./singletons.52dc892b.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p}; +import{d as e}from"./singletons.de356790.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p}; diff --git a/build/app/immutable/entry/app.a1afa593.js b/build/app/immutable/entry/app.9f060ed2.js similarity index 50% rename from build/app/immutable/entry/app.a1afa593.js rename to build/app/immutable/entry/app.9f060ed2.js index 03d1f1e92..17c8e3ee4 100644 --- a/build/app/immutable/entry/app.a1afa593.js +++ b/build/app/immutable/entry/app.9f060ed2.js @@ -1 +1 @@ -import{S as C,i as q,s as U,a as j,e as d,c as z,b as E,d as h,f as L,g,h as w,j as W,o as F,k as G,l as H,m as J,n as I,p,q as K,r as M,u as Q,v as P,t as X,w as A,x as v,y as k,z as D,A as O,B as R}from"../chunks/index.83ca82d8.js";const Y="modulepreload",Z=function(a,e){return new URL(a,e).href},T={},m=function(e,n,i){if(!n||n.length===0)return e();const r=document.getElementsByTagName("link");return Promise.all(n.map(_=>{if(_=Z(_,i),_ in T)return;T[_]=!0;const t=_.endsWith(".css"),o=t?'[rel="stylesheet"]':"";if(!!i)for(let l=r.length-1;l>=0;l--){const u=r[l];if(u.href===_&&(!t||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${o}`))return;const s=document.createElement("link");if(s.rel=t?"stylesheet":Y,t||(s.as="script",s.crossOrigin=""),s.href=_,document.head.appendChild(s),t)return new Promise((l,u)=>{s.addEventListener("load",l),s.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${_}`)))})})).then(()=>e()).catch(_=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=_,window.dispatchEvent(t),!t.defaultPrevented)throw _})},re={};function $(a){let e,n,i;var r=a[1][0];function _(t){return{props:{data:t[3],form:t[2]}}}return r&&(e=v(r,_(a)),a[12](e)),{c(){e&&k(e.$$.fragment),n=d()},l(t){e&&D(e.$$.fragment,t),n=d()},m(t,o){e&&O(e,t,o),E(t,n,o),i=!0},p(t,o){const c={};if(o&8&&(c.data=t[3]),o&4&&(c.form=t[2]),o&2&&r!==(r=t[1][0])){if(e){P();const s=e;h(s.$$.fragment,1,0,()=>{R(s,1)}),L()}r?(e=v(r,_(t)),t[12](e),k(e.$$.fragment),g(e.$$.fragment,1),O(e,n.parentNode,n)):e=null}else r&&e.$set(c)},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){a[12](null),t&&w(n),e&&R(e,t)}}}function x(a){let e,n,i;var r=a[1][0];function _(t){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return r&&(e=v(r,_(a)),a[11](e)),{c(){e&&k(e.$$.fragment),n=d()},l(t){e&&D(e.$$.fragment,t),n=d()},m(t,o){e&&O(e,t,o),E(t,n,o),i=!0},p(t,o){const c={};if(o&8&&(c.data=t[3]),o&8215&&(c.$$scope={dirty:o,ctx:t}),o&2&&r!==(r=t[1][0])){if(e){P();const s=e;h(s.$$.fragment,1,0,()=>{R(s,1)}),L()}r?(e=v(r,_(t)),t[11](e),k(e.$$.fragment),g(e.$$.fragment,1),O(e,n.parentNode,n)):e=null}else r&&e.$set(c)},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){a[11](null),t&&w(n),e&&R(e,t)}}}function ee(a){let e,n,i;var r=a[1][1];function _(t){return{props:{data:t[4],form:t[2]}}}return r&&(e=v(r,_(a)),a[10](e)),{c(){e&&k(e.$$.fragment),n=d()},l(t){e&&D(e.$$.fragment,t),n=d()},m(t,o){e&&O(e,t,o),E(t,n,o),i=!0},p(t,o){const c={};if(o&16&&(c.data=t[4]),o&4&&(c.form=t[2]),o&2&&r!==(r=t[1][1])){if(e){P();const s=e;h(s.$$.fragment,1,0,()=>{R(s,1)}),L()}r?(e=v(r,_(t)),t[10](e),k(e.$$.fragment),g(e.$$.fragment,1),O(e,n.parentNode,n)):e=null}else r&&e.$set(c)},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){a[10](null),t&&w(n),e&&R(e,t)}}}function V(a){let e,n=a[6]&&y(a);return{c(){e=G("div"),n&&n.c(),this.h()},l(i){e=H(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var r=J(e);n&&n.l(r),r.forEach(w),this.h()},h(){I(e,"id","svelte-announcer"),I(e,"aria-live","assertive"),I(e,"aria-atomic","true"),p(e,"position","absolute"),p(e,"left","0"),p(e,"top","0"),p(e,"clip","rect(0 0 0 0)"),p(e,"clip-path","inset(50%)"),p(e,"overflow","hidden"),p(e,"white-space","nowrap"),p(e,"width","1px"),p(e,"height","1px")},m(i,r){E(i,e,r),n&&n.m(e,null)},p(i,r){i[6]?n?n.p(i,r):(n=y(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&w(e),n&&n.d()}}}function y(a){let e;return{c(){e=K(a[7])},l(n){e=M(n,a[7])},m(n,i){E(n,e,i)},p(n,i){i&128&&Q(e,n[7])},d(n){n&&w(e)}}}function te(a){let e,n,i,r,_;const t=[x,$],o=[];function c(l,u){return l[1][1]?0:1}e=c(a),n=o[e]=t[e](a);let s=a[5]&&V(a);return{c(){n.c(),i=j(),s&&s.c(),r=d()},l(l){n.l(l),i=z(l),s&&s.l(l),r=d()},m(l,u){o[e].m(l,u),E(l,i,u),s&&s.m(l,u),E(l,r,u),_=!0},p(l,[u]){let b=e;e=c(l),e===b?o[e].p(l,u):(P(),h(o[b],1,1,()=>{o[b]=null}),L(),n=o[e],n?n.p(l,u):(n=o[e]=t[e](l),n.c()),g(n,1),n.m(i.parentNode,i)),l[5]?s?s.p(l,u):(s=V(l),s.c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null)},i(l){_||(g(n),_=!0)},o(l){h(n),_=!1},d(l){o[e].d(l),l&&w(i),s&&s.d(l),l&&w(r)}}}function ne(a,e,n){let{stores:i}=e,{page:r}=e,{constructors:_}=e,{components:t=[]}=e,{form:o}=e,{data_0:c=null}=e,{data_1:s=null}=e;W(i.page.notify);let l=!1,u=!1,b=null;F(()=>{const f=i.page.subscribe(()=>{l&&(n(6,u=!0),X().then(()=>{n(7,b=document.title||"untitled page")}))});return n(5,l=!0),f});function N(f){A[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function S(f){A[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function B(f){A[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return a.$$set=f=>{"stores"in f&&n(8,i=f.stores),"page"in f&&n(9,r=f.page),"constructors"in f&&n(1,_=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(2,o=f.form),"data_0"in f&&n(3,c=f.data_0),"data_1"in f&&n(4,s=f.data_1)},a.$$.update=()=>{a.$$.dirty&768&&i.page.set(r)},[t,_,o,c,s,l,u,b,i,r,N,S,B]}class oe extends C{constructor(e){super(),q(this,e,ne,te,U,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const se=[()=>m(()=>import("../nodes/0.bdaf50e9.js"),["..\\nodes\\0.bdaf50e9.js","..\\chunks\\index.83ca82d8.js","..\\assets\\0.b28a10ce.css"],import.meta.url),()=>m(()=>import("../nodes/1.fbb8753e.js"),["..\\nodes\\1.fbb8753e.js","..\\chunks\\index.83ca82d8.js","..\\chunks\\stores.1e365101.js","..\\chunks\\singletons.52dc892b.js","..\\chunks\\index.1fc1f291.js"],import.meta.url),()=>m(()=>import("../nodes/2.b9864e19.js"),["..\\nodes\\2.b9864e19.js","..\\chunks\\index.83ca82d8.js","..\\chunks\\Header.80bfed2a.js","..\\chunks\\secondAuth.d664856c.js","..\\chunks\\store.e259513c.js","..\\chunks\\index.1fc1f291.js","..\\chunks\\public.02ab71de.js","..\\chunks\\Loader.7a0edb34.js"],import.meta.url),()=>m(()=>import("../nodes/3.99515f80.js"),["..\\nodes\\3.99515f80.js","..\\chunks\\index.83ca82d8.js","..\\chunks\\Header.80bfed2a.js","..\\chunks\\secondAuth.d664856c.js","..\\chunks\\store.e259513c.js","..\\chunks\\index.1fc1f291.js","..\\chunks\\public.02ab71de.js","..\\chunks\\AskToLogin.9a7bb0f7.js"],import.meta.url),()=>m(()=>import("../nodes/4.557b3876.js"),["..\\nodes\\4.557b3876.js","..\\chunks\\index.83ca82d8.js","..\\chunks\\Header.80bfed2a.js","..\\chunks\\secondAuth.d664856c.js","..\\chunks\\store.e259513c.js","..\\chunks\\index.1fc1f291.js"],import.meta.url),()=>m(()=>import("../nodes/5.980f4279.js"),["..\\nodes\\5.980f4279.js","..\\chunks\\index.83ca82d8.js","..\\chunks\\store.e259513c.js","..\\chunks\\index.1fc1f291.js","..\\chunks\\Header.80bfed2a.js","..\\chunks\\secondAuth.d664856c.js","..\\chunks\\index.045ff416.js"],import.meta.url),()=>m(()=>import("../nodes/6.04deffbc.js"),["..\\nodes\\6.04deffbc.js","..\\chunks\\index.83ca82d8.js","..\\chunks\\functionsForLogin.e1c9cab8.js","..\\chunks\\store.e259513c.js","..\\chunks\\index.1fc1f291.js","..\\chunks\\public.02ab71de.js","..\\chunks\\index.045ff416.js","..\\chunks\\Header.80bfed2a.js","..\\chunks\\secondAuth.d664856c.js"],import.meta.url),()=>m(()=>import("../nodes/7.3360f074.js"),["..\\nodes\\7.3360f074.js","..\\chunks\\index.83ca82d8.js","..\\chunks\\store.e259513c.js","..\\chunks\\index.1fc1f291.js","..\\chunks\\Header.80bfed2a.js","..\\chunks\\secondAuth.d664856c.js","..\\chunks\\index.045ff416.js"],import.meta.url),()=>m(()=>import("../nodes/8.2382664c.js"),["..\\nodes\\8.2382664c.js","..\\chunks\\index.83ca82d8.js","..\\chunks\\functionsForLogin.e1c9cab8.js","..\\chunks\\store.e259513c.js","..\\chunks\\index.1fc1f291.js","..\\chunks\\public.02ab71de.js","..\\chunks\\index.045ff416.js","..\\chunks\\Header.80bfed2a.js","..\\chunks\\secondAuth.d664856c.js"],import.meta.url),()=>m(()=>import("../nodes/9.da97ad2b.js"),["..\\nodes\\9.da97ad2b.js","..\\chunks\\index.83ca82d8.js","..\\chunks\\Header.80bfed2a.js","..\\chunks\\secondAuth.d664856c.js","..\\chunks\\store.e259513c.js","..\\chunks\\index.1fc1f291.js","..\\chunks\\qrCode.2a0c2c54.js","..\\chunks\\public.02ab71de.js","..\\chunks\\AskToLogin.9a7bb0f7.js"],import.meta.url),()=>m(()=>import("../nodes/10.5108159e.js"),["..\\nodes\\10.5108159e.js","..\\chunks\\index.83ca82d8.js","..\\chunks\\Header.80bfed2a.js","..\\chunks\\secondAuth.d664856c.js","..\\chunks\\store.e259513c.js","..\\chunks\\index.1fc1f291.js"],import.meta.url),()=>m(()=>import("../nodes/11.ec51fcef.js"),["..\\nodes\\11.ec51fcef.js","..\\chunks\\index.83ca82d8.js","..\\chunks\\Header.80bfed2a.js","..\\chunks\\secondAuth.d664856c.js","..\\chunks\\store.e259513c.js","..\\chunks\\index.1fc1f291.js"],import.meta.url),()=>m(()=>import("../nodes/12.5b7f6b3a.js"),["..\\nodes\\12.5b7f6b3a.js","..\\chunks\\index.83ca82d8.js","..\\chunks\\secondAuth.d664856c.js","..\\chunks\\store.e259513c.js","..\\chunks\\index.1fc1f291.js"],import.meta.url),()=>m(()=>import("../nodes/13.f4cffe6b.js"),["..\\nodes\\13.f4cffe6b.js","..\\chunks\\index.83ca82d8.js","..\\chunks\\stores.1e365101.js","..\\chunks\\singletons.52dc892b.js","..\\chunks\\index.1fc1f291.js","..\\chunks\\store.e259513c.js","..\\chunks\\index.045ff416.js","..\\chunks\\Loader.7a0edb34.js"],import.meta.url),()=>m(()=>import("../nodes/14.95a4dbfd.js"),["..\\nodes\\14.95a4dbfd.js","..\\chunks\\index.83ca82d8.js","..\\chunks\\secondAuth.d664856c.js","..\\chunks\\store.e259513c.js","..\\chunks\\index.1fc1f291.js","..\\chunks\\qrCode.2a0c2c54.js","..\\chunks\\index.045ff416.js","..\\chunks\\public.02ab71de.js","..\\chunks\\Loader.7a0edb34.js","..\\chunks\\Header.80bfed2a.js"],import.meta.url)],ae=[],le={"/":[2],"/Onboarding":[4],"/Onboarding/get-secret-key":[5],"/Onboarding/get-secret-key/create-password":[6],"/Onboarding/import-old-wallet":[7],"/Onboarding/import-old-wallet/create-password":[8],"/feedback":[3],"/profile":[9],"/settings":[10],"/settings/show-secret-key":[11],"/signIn":[12],"/transaction/[hash]":[13],"/wallet":[14]},_e={handleError:({error:a})=>{console.error(a)}};export{le as dictionary,_e as hooks,re as matchers,se as nodes,oe as root,ae as server_loads}; +import{S as C,i as q,s as U,a as j,e as d,c as z,b as E,d as h,f as L,g,h as w,j as W,o as F,k as G,l as H,m as J,n as I,p,q as K,r as M,u as Q,v as P,t as X,w as A,x as v,y as k,z as D,A as O,B as R}from"../chunks/index.f3b06f47.js";const Y="modulepreload",Z=function(a,e){return new URL(a,e).href},T={},m=function(e,n,i){if(!n||n.length===0)return e();const r=document.getElementsByTagName("link");return Promise.all(n.map(_=>{if(_=Z(_,i),_ in T)return;T[_]=!0;const t=_.endsWith(".css"),o=t?'[rel="stylesheet"]':"";if(!!i)for(let l=r.length-1;l>=0;l--){const u=r[l];if(u.href===_&&(!t||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${o}`))return;const s=document.createElement("link");if(s.rel=t?"stylesheet":Y,t||(s.as="script",s.crossOrigin=""),s.href=_,document.head.appendChild(s),t)return new Promise((l,u)=>{s.addEventListener("load",l),s.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${_}`)))})})).then(()=>e()).catch(_=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=_,window.dispatchEvent(t),!t.defaultPrevented)throw _})},re={};function $(a){let e,n,i;var r=a[1][0];function _(t){return{props:{data:t[3],form:t[2]}}}return r&&(e=v(r,_(a)),a[12](e)),{c(){e&&k(e.$$.fragment),n=d()},l(t){e&&D(e.$$.fragment,t),n=d()},m(t,o){e&&O(e,t,o),E(t,n,o),i=!0},p(t,o){const c={};if(o&8&&(c.data=t[3]),o&4&&(c.form=t[2]),o&2&&r!==(r=t[1][0])){if(e){P();const s=e;h(s.$$.fragment,1,0,()=>{R(s,1)}),L()}r?(e=v(r,_(t)),t[12](e),k(e.$$.fragment),g(e.$$.fragment,1),O(e,n.parentNode,n)):e=null}else r&&e.$set(c)},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){a[12](null),t&&w(n),e&&R(e,t)}}}function x(a){let e,n,i;var r=a[1][0];function _(t){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return r&&(e=v(r,_(a)),a[11](e)),{c(){e&&k(e.$$.fragment),n=d()},l(t){e&&D(e.$$.fragment,t),n=d()},m(t,o){e&&O(e,t,o),E(t,n,o),i=!0},p(t,o){const c={};if(o&8&&(c.data=t[3]),o&8215&&(c.$$scope={dirty:o,ctx:t}),o&2&&r!==(r=t[1][0])){if(e){P();const s=e;h(s.$$.fragment,1,0,()=>{R(s,1)}),L()}r?(e=v(r,_(t)),t[11](e),k(e.$$.fragment),g(e.$$.fragment,1),O(e,n.parentNode,n)):e=null}else r&&e.$set(c)},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){a[11](null),t&&w(n),e&&R(e,t)}}}function ee(a){let e,n,i;var r=a[1][1];function _(t){return{props:{data:t[4],form:t[2]}}}return r&&(e=v(r,_(a)),a[10](e)),{c(){e&&k(e.$$.fragment),n=d()},l(t){e&&D(e.$$.fragment,t),n=d()},m(t,o){e&&O(e,t,o),E(t,n,o),i=!0},p(t,o){const c={};if(o&16&&(c.data=t[4]),o&4&&(c.form=t[2]),o&2&&r!==(r=t[1][1])){if(e){P();const s=e;h(s.$$.fragment,1,0,()=>{R(s,1)}),L()}r?(e=v(r,_(t)),t[10](e),k(e.$$.fragment),g(e.$$.fragment,1),O(e,n.parentNode,n)):e=null}else r&&e.$set(c)},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){a[10](null),t&&w(n),e&&R(e,t)}}}function V(a){let e,n=a[6]&&y(a);return{c(){e=G("div"),n&&n.c(),this.h()},l(i){e=H(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var r=J(e);n&&n.l(r),r.forEach(w),this.h()},h(){I(e,"id","svelte-announcer"),I(e,"aria-live","assertive"),I(e,"aria-atomic","true"),p(e,"position","absolute"),p(e,"left","0"),p(e,"top","0"),p(e,"clip","rect(0 0 0 0)"),p(e,"clip-path","inset(50%)"),p(e,"overflow","hidden"),p(e,"white-space","nowrap"),p(e,"width","1px"),p(e,"height","1px")},m(i,r){E(i,e,r),n&&n.m(e,null)},p(i,r){i[6]?n?n.p(i,r):(n=y(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&w(e),n&&n.d()}}}function y(a){let e;return{c(){e=K(a[7])},l(n){e=M(n,a[7])},m(n,i){E(n,e,i)},p(n,i){i&128&&Q(e,n[7])},d(n){n&&w(e)}}}function te(a){let e,n,i,r,_;const t=[x,$],o=[];function c(l,u){return l[1][1]?0:1}e=c(a),n=o[e]=t[e](a);let s=a[5]&&V(a);return{c(){n.c(),i=j(),s&&s.c(),r=d()},l(l){n.l(l),i=z(l),s&&s.l(l),r=d()},m(l,u){o[e].m(l,u),E(l,i,u),s&&s.m(l,u),E(l,r,u),_=!0},p(l,[u]){let b=e;e=c(l),e===b?o[e].p(l,u):(P(),h(o[b],1,1,()=>{o[b]=null}),L(),n=o[e],n?n.p(l,u):(n=o[e]=t[e](l),n.c()),g(n,1),n.m(i.parentNode,i)),l[5]?s?s.p(l,u):(s=V(l),s.c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null)},i(l){_||(g(n),_=!0)},o(l){h(n),_=!1},d(l){o[e].d(l),l&&w(i),s&&s.d(l),l&&w(r)}}}function ne(a,e,n){let{stores:i}=e,{page:r}=e,{constructors:_}=e,{components:t=[]}=e,{form:o}=e,{data_0:c=null}=e,{data_1:s=null}=e;W(i.page.notify);let l=!1,u=!1,b=null;F(()=>{const f=i.page.subscribe(()=>{l&&(n(6,u=!0),X().then(()=>{n(7,b=document.title||"untitled page")}))});return n(5,l=!0),f});function N(f){A[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function S(f){A[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function B(f){A[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return a.$$set=f=>{"stores"in f&&n(8,i=f.stores),"page"in f&&n(9,r=f.page),"constructors"in f&&n(1,_=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(2,o=f.form),"data_0"in f&&n(3,c=f.data_0),"data_1"in f&&n(4,s=f.data_1)},a.$$.update=()=>{a.$$.dirty&768&&i.page.set(r)},[t,_,o,c,s,l,u,b,i,r,N,S,B]}class oe extends C{constructor(e){super(),q(this,e,ne,te,U,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const se=[()=>m(()=>import("../nodes/0.56f78fc3.js"),["..\\nodes\\0.56f78fc3.js","..\\chunks\\index.f3b06f47.js","..\\assets\\0.678956fe.css"],import.meta.url),()=>m(()=>import("../nodes/1.ab77d065.js"),["..\\nodes\\1.ab77d065.js","..\\chunks\\index.f3b06f47.js","..\\chunks\\stores.fcb3ce1c.js","..\\chunks\\singletons.de356790.js","..\\chunks\\index.3a682f2f.js"],import.meta.url),()=>m(()=>import("../nodes/2.fcc26c31.js"),["..\\nodes\\2.fcc26c31.js","..\\chunks\\index.f3b06f47.js","..\\chunks\\Header.b7ab37a3.js","..\\chunks\\secondAuth.f9ee4b2a.js","..\\chunks\\store.26750aee.js","..\\chunks\\index.3a682f2f.js","..\\chunks\\public.02ab71de.js","..\\chunks\\Loader.d36557e7.js"],import.meta.url),()=>m(()=>import("../nodes/3.5063bed6.js"),["..\\nodes\\3.5063bed6.js","..\\chunks\\index.f3b06f47.js","..\\chunks\\Header.b7ab37a3.js","..\\chunks\\secondAuth.f9ee4b2a.js","..\\chunks\\store.26750aee.js","..\\chunks\\index.3a682f2f.js","..\\chunks\\public.02ab71de.js","..\\chunks\\AskToLogin.c273dc76.js"],import.meta.url),()=>m(()=>import("../nodes/4.b7bd329e.js"),["..\\nodes\\4.b7bd329e.js","..\\chunks\\index.f3b06f47.js","..\\chunks\\Header.b7ab37a3.js","..\\chunks\\secondAuth.f9ee4b2a.js","..\\chunks\\store.26750aee.js","..\\chunks\\index.3a682f2f.js"],import.meta.url),()=>m(()=>import("../nodes/5.2e37ee17.js"),["..\\nodes\\5.2e37ee17.js","..\\chunks\\index.f3b06f47.js","..\\chunks\\store.26750aee.js","..\\chunks\\index.3a682f2f.js","..\\chunks\\Header.b7ab37a3.js","..\\chunks\\secondAuth.f9ee4b2a.js","..\\chunks\\index.ec3c65db.js"],import.meta.url),()=>m(()=>import("../nodes/6.84af78c8.js"),["..\\nodes\\6.84af78c8.js","..\\chunks\\index.f3b06f47.js","..\\chunks\\functionsForLogin.1a2a5d01.js","..\\chunks\\store.26750aee.js","..\\chunks\\index.3a682f2f.js","..\\chunks\\public.02ab71de.js","..\\chunks\\index.ec3c65db.js","..\\chunks\\Header.b7ab37a3.js","..\\chunks\\secondAuth.f9ee4b2a.js"],import.meta.url),()=>m(()=>import("../nodes/7.22545cd2.js"),["..\\nodes\\7.22545cd2.js","..\\chunks\\index.f3b06f47.js","..\\chunks\\store.26750aee.js","..\\chunks\\index.3a682f2f.js","..\\chunks\\Header.b7ab37a3.js","..\\chunks\\secondAuth.f9ee4b2a.js","..\\chunks\\index.ec3c65db.js"],import.meta.url),()=>m(()=>import("../nodes/8.eaf2523e.js"),["..\\nodes\\8.eaf2523e.js","..\\chunks\\index.f3b06f47.js","..\\chunks\\functionsForLogin.1a2a5d01.js","..\\chunks\\store.26750aee.js","..\\chunks\\index.3a682f2f.js","..\\chunks\\public.02ab71de.js","..\\chunks\\index.ec3c65db.js","..\\chunks\\Header.b7ab37a3.js","..\\chunks\\secondAuth.f9ee4b2a.js"],import.meta.url),()=>m(()=>import("../nodes/9.821502a3.js"),["..\\nodes\\9.821502a3.js","..\\chunks\\index.f3b06f47.js","..\\chunks\\Header.b7ab37a3.js","..\\chunks\\secondAuth.f9ee4b2a.js","..\\chunks\\store.26750aee.js","..\\chunks\\index.3a682f2f.js","..\\chunks\\qrCode.9ed71917.js","..\\chunks\\public.02ab71de.js","..\\chunks\\AskToLogin.c273dc76.js"],import.meta.url),()=>m(()=>import("../nodes/10.99a1db5c.js"),["..\\nodes\\10.99a1db5c.js","..\\chunks\\index.f3b06f47.js","..\\chunks\\Header.b7ab37a3.js","..\\chunks\\secondAuth.f9ee4b2a.js","..\\chunks\\store.26750aee.js","..\\chunks\\index.3a682f2f.js","..\\chunks\\Logout.35258e20.js"],import.meta.url),()=>m(()=>import("../nodes/11.5d5fd754.js"),["..\\nodes\\11.5d5fd754.js","..\\chunks\\index.f3b06f47.js","..\\chunks\\Header.b7ab37a3.js","..\\chunks\\secondAuth.f9ee4b2a.js","..\\chunks\\store.26750aee.js","..\\chunks\\index.3a682f2f.js"],import.meta.url),()=>m(()=>import("../nodes/12.e61ea9bd.js"),["..\\nodes\\12.e61ea9bd.js","..\\chunks\\index.f3b06f47.js","..\\chunks\\secondAuth.f9ee4b2a.js","..\\chunks\\store.26750aee.js","..\\chunks\\index.3a682f2f.js"],import.meta.url),()=>m(()=>import("../nodes/13.34858a47.js"),["..\\nodes\\13.34858a47.js","..\\chunks\\index.f3b06f47.js","..\\chunks\\stores.fcb3ce1c.js","..\\chunks\\singletons.de356790.js","..\\chunks\\index.3a682f2f.js","..\\chunks\\store.26750aee.js","..\\chunks\\index.ec3c65db.js","..\\chunks\\Loader.d36557e7.js"],import.meta.url),()=>m(()=>import("../nodes/14.64b23fc3.js"),["..\\nodes\\14.64b23fc3.js","..\\chunks\\index.f3b06f47.js","..\\chunks\\secondAuth.f9ee4b2a.js","..\\chunks\\store.26750aee.js","..\\chunks\\index.3a682f2f.js","..\\chunks\\qrCode.9ed71917.js","..\\chunks\\index.ec3c65db.js","..\\chunks\\public.02ab71de.js","..\\chunks\\Loader.d36557e7.js","..\\chunks\\Logout.35258e20.js","..\\chunks\\Header.b7ab37a3.js"],import.meta.url)],ae=[],le={"/":[2],"/Onboarding":[4],"/Onboarding/get-secret-key":[5],"/Onboarding/get-secret-key/create-password":[6],"/Onboarding/import-old-wallet":[7],"/Onboarding/import-old-wallet/create-password":[8],"/feedback":[3],"/profile":[9],"/settings":[10],"/settings/show-secret-key":[11],"/signIn":[12],"/transaction/[hash]":[13],"/wallet":[14]},_e={handleError:({error:a})=>{console.error(a)}};export{le as dictionary,_e as hooks,re as matchers,se as nodes,oe as root,ae as server_loads}; diff --git a/build/app/immutable/entry/start.a7d5422b.js b/build/app/immutable/entry/start.f403ef4d.js similarity index 99% rename from build/app/immutable/entry/start.a7d5422b.js rename to build/app/immutable/entry/start.f403ef4d.js index d8fc486fb..aefd8e1eb 100644 --- a/build/app/immutable/entry/start.a7d5422b.js +++ b/build/app/immutable/entry/start.f403ef4d.js @@ -1,3 +1,3 @@ -import{o as me,t as we}from"../chunks/index.83ca82d8.js";import{S as Be,a as Ge,I as M,g as De,f as Ce,b as _e,c as le,s as te,i as ye,d as F,e as J,P as Me,h as Xe}from"../chunks/singletons.52dc892b.js";function Ze(t,r){return t==="/"||r==="ignore"?t:r==="never"?t.endsWith("/")?t.slice(0,-1):t:r==="always"&&!t.endsWith("/")?t+"/":t}function Qe(t){return t.split("%25").map(decodeURI).join("%25")}function et(t){for(const r in t)t[r]=decodeURIComponent(t[r]);return t}const tt=["href","pathname","search","searchParams","toString","toJSON"];function nt(t,r){const f=new URL(t);for(const s of tt)Object.defineProperty(f,s,{get(){return r(),t[s]},enumerable:!0,configurable:!0});return at(f),f}function at(t){Object.defineProperty(t,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const rt="/__data.json";function ot(t){return t.replace(/\/$/,"")+rt}function it(...t){let r=5381;for(const f of t)if(typeof f=="string"){let s=f.length;for(;s;)r=r*33^f.charCodeAt(--s)}else if(ArrayBuffer.isView(f)){const s=new Uint8Array(f.buffer,f.byteOffset,f.byteLength);let d=s.length;for(;d;)r=r*33^s[--d]}else throw new TypeError("value must be a string or TypedArray");return(r>>>0).toString(36)}const Je=window.fetch;window.fetch=(t,r)=>((t instanceof Request?t.method:(r==null?void 0:r.method)||"GET")!=="GET"&&ae.delete(Se(t)),Je(t,r));const ae=new Map;function st(t,r){const f=Se(t,r),s=document.querySelector(f);if(s!=null&&s.textContent){const{body:d,...u}=JSON.parse(s.textContent),E=s.getAttribute("data-ttl");return E&&ae.set(f,{body:d,init:u,ttl:1e3*Number(E)}),Promise.resolve(new Response(d,u))}return window.fetch(t,r)}function ct(t,r,f){if(ae.size>0){const s=Se(t,f),d=ae.get(s);if(d){if(performance.now(){const d=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(s);if(d)return r.push({name:d[1],matcher:d[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const u=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(s);if(u)return r.push({name:u[1],matcher:u[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!s)return;const E=s.split(/\[(.+?)\](?!\])/);return"/"+E.map((g,m)=>{if(m%2){if(g.startsWith("x+"))return ve(String.fromCharCode(parseInt(g.slice(2),16)));if(g.startsWith("u+"))return ve(String.fromCharCode(...g.slice(2).split("-").map(U=>parseInt(U,16))));const h=lt.exec(g);if(!h)throw new Error(`Invalid param: ${g}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,x,j,k,N]=h;return r.push({name:k,matcher:N,optional:!!x,rest:!!j,chained:j?m===1&&E[0]==="":!1}),j?"(.*?)":x?"([^/]*)?":"([^/]+?)"}return ve(g)}).join("")}).join("")}/?$`),params:r}}function ut(t){return!/^\([^)]+\)$/.test(t)}function dt(t){return t.slice(1).split("/").filter(ut)}function pt(t,r,f){const s={},d=t.slice(1),u=d.filter(l=>l!==void 0);let E=0;for(let l=0;lh).join("/"),E=0),m===void 0){g.rest&&(s[g.name]="");continue}if(!g.matcher||f[g.matcher](m)){s[g.name]=m;const h=r[l+1],x=d[l+1];h&&!h.rest&&h.optional&&x&&g.chained&&(E=0),!h&&!x&&Object.keys(s).length===u.length&&(E=0);continue}if(g.optional&&g.chained){E++;continue}return}if(!E)return s}function ve(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function ht({nodes:t,server_loads:r,dictionary:f,matchers:s}){const d=new Set(r);return Object.entries(f).map(([l,[g,m,h]])=>{const{pattern:x,params:j}=ft(l),k={id:l,exec:N=>{const U=x.exec(N);if(U)return pt(U,j,s)},errors:[1,...h||[]].map(N=>t[N]),layouts:[0,...m||[]].map(E),leaf:u(g)};return k.errors.length=k.layouts.length=Math.max(k.errors.length,k.layouts.length),k});function u(l){const g=l<0;return g&&(l=~l),[g,t[l]]}function E(l){return l===void 0?l:[d.has(l),t[l]]}}function Ke(t){try{return JSON.parse(sessionStorage[t])}catch{}}function Ve(t,r){const f=JSON.stringify(r);try{sessionStorage[t]=f}catch{}}const gt=-1,mt=-2,wt=-3,_t=-4,yt=-5,vt=-6;function bt(t,r){if(typeof t=="number")return d(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const f=t,s=Array(f.length);function d(u,E=!1){if(u===gt)return;if(u===wt)return NaN;if(u===_t)return 1/0;if(u===yt)return-1/0;if(u===vt)return-0;if(E)throw new Error("Invalid input");if(u in s)return s[u];const l=f[u];if(!l||typeof l!="object")s[u]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const g=l[0],m=r==null?void 0:r[g];if(m)return s[u]=m(d(l[1]));switch(g){case"Date":s[u]=new Date(l[1]);break;case"Set":const h=new Set;s[u]=h;for(let k=1;kr!=null)}const ze=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...ze];const St=new Set([...ze]);[...St];async function kt(t){var r;for(const f in t)if(typeof((r=t[f])==null?void 0:r.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(t).map(async([s,d])=>[s,await d])));return t}class ne{constructor(r,f){this.status=r,typeof f=="string"?this.body={message:f}:f?this.body=f:this.body={message:`Error: ${r}`}}toString(){return JSON.stringify(this.body)}}class qe{constructor(r,f){this.status=r,this.location=f}}const Rt="x-sveltekit-invalidated",At="x-sveltekit-trailing-slash",K=Ke(Be)??{},ee=Ke(Ge)??{};function be(t){K[t]=te()}function It(t,r){var Ne;const f=ht(t),s=t.nodes[0],d=t.nodes[1];s(),d();const u=document.documentElement,E=[],l=[];let g=null;const m={before_navigate:[],on_navigate:[],after_navigate:[]};let h={branch:[],error:null,url:null},x=!1,j=!1,k=!0,N=!1,U=!1,H=!1,B=!1,V,D=(Ne=history.state)==null?void 0:Ne[M];D||(D=Date.now(),history.replaceState({...history.state,[M]:D},"",location.href));const fe=K[D];fe&&(history.scrollRestoration="manual",scrollTo(fe.x,fe.y));let q,z,Y;async function ke(){if(Y=Y||Promise.resolve(),await Y,!Y)return;Y=null;const e=new URL(location.href),i=Z(e,!0);g=null;const n=z={},o=i&&await pe(i);if(n===z&&o){if(o.type==="redirect")return re(new URL(o.location,e).href,{},1,n);o.props.page!==void 0&&(q=o.props.page),V.$set(o.props)}}function Re(e){l.some(i=>i==null?void 0:i.snapshot)&&(ee[e]=l.map(i=>{var n;return(n=i==null?void 0:i.snapshot)==null?void 0:n.capture()}))}function Ae(e){var i;(i=ee[e])==null||i.forEach((n,o)=>{var a,c;(c=(a=l[o])==null?void 0:a.snapshot)==null||c.restore(n)})}function Ie(){be(D),Ve(Be,K),Re(D),Ve(Ge,ee)}async function re(e,{noScroll:i=!1,replaceState:n=!1,keepFocus:o=!1,state:a={},invalidateAll:c=!1},p,v){return typeof e=="string"&&(e=new URL(e,De(document))),ce({url:e,scroll:i?te():null,keepfocus:o,redirect_count:p,details:{state:a,replaceState:n},nav_token:v,accepted:()=>{c&&(B=!0)},blocked:()=>{},type:"goto"})}async function Le(e){return g={id:e.id,promise:pe(e).then(i=>(i.type==="loaded"&&i.state.error&&(g=null),i))},g.promise}async function oe(...e){const n=f.filter(o=>e.some(a=>o.exec(a))).map(o=>Promise.all([...o.layouts,o.leaf].map(a=>a==null?void 0:a[1]())));await Promise.all(n)}function Pe(e){var o;h=e.state;const i=document.querySelector("style[data-sveltekit]");i&&i.remove(),q=e.props.page,V=new t.root({target:r,props:{...e.props,stores:F,components:l},hydrate:!0}),Ae(D);const n={from:null,to:{params:h.params,route:{id:((o=h.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};m.after_navigate.forEach(a=>a(n)),j=!0}async function X({url:e,params:i,branch:n,status:o,error:a,route:c,form:p}){let v="never";for(const _ of n)(_==null?void 0:_.slash)!==void 0&&(v=_.slash);e.pathname=Ze(e.pathname,v),e.search=e.search;const b={type:"loaded",state:{url:e,params:i,branch:n,error:a,route:c},props:{constructors:Et(n).map(_=>_.node.component)}};p!==void 0&&(b.props.form=p);let y={},L=!q,A=0;for(let _=0;_(v.route=!0,w[O])}),params:new Proxy(o,{get:(w,O)=>(v.params.add(O),w[O])}),data:(c==null?void 0:c.data)??null,url:nt(n,()=>{v.url=!0}),async fetch(w,O){let $;w instanceof Request?($=w.url,O={body:w.method==="GET"||w.method==="HEAD"?void 0:await w.blob(),cache:w.cache,credentials:w.credentials,headers:w.headers,integrity:w.integrity,keepalive:w.keepalive,method:w.method,mode:w.mode,redirect:w.redirect,referrer:w.referrer,referrerPolicy:w.referrerPolicy,signal:w.signal,...O}):$=w;const C=new URL($,n);return P(C.href),C.origin===n.origin&&($=C.href.slice(n.origin.length)),j?ct($,C.href,O):st($,O)},setHeaders:()=>{},depends:P,parent(){return v.parent=!0,i()}};p=await b.universal.load.call(null,_)??null,p=p?await kt(p):null}return{node:b,loader:e,server:c,universal:(L=b.universal)!=null&&L.load?{type:"data",data:p,uses:v}:null,data:p??(c==null?void 0:c.data)??null,slash:((A=b.universal)==null?void 0:A.trailingSlash)??(c==null?void 0:c.slash)}}function Oe(e,i,n,o,a){if(B)return!0;if(!o)return!1;if(o.parent&&e||o.route&&i||o.url&&n)return!0;for(const c of o.params)if(a[c]!==h.params[c])return!0;for(const c of o.dependencies)if(E.some(p=>p(new URL(c))))return!0;return!1}function de(e,i){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?i??null:null}async function pe({id:e,invalidating:i,url:n,params:o,route:a}){if((g==null?void 0:g.id)===e)return g.promise;const{errors:c,layouts:p,leaf:v}=a,b=[...p,v];c.forEach(S=>S==null?void 0:S().catch(()=>{})),b.forEach(S=>S==null?void 0:S[1]().catch(()=>{}));let y=null;const L=h.url?e!==h.url.pathname+h.url.search:!1,A=h.route?a.id!==h.route.id:!1;let P=!1;const _=b.map((S,I)=>{var G;const R=h.branch[I],T=!!(S!=null&&S[0])&&((R==null?void 0:R.loader)!==S[1]||Oe(P,A,L,(G=R.server)==null?void 0:G.uses,o));return T&&(P=!0),T});if(_.some(Boolean)){try{y=await Fe(n,_)}catch(S){return ie({status:S instanceof ne?S.status:500,error:await Q(S,{url:n,params:o,route:{id:a.id}}),url:n,route:a})}if(y.type==="redirect")return y}const w=y==null?void 0:y.nodes;let O=!1;const $=b.map(async(S,I)=>{var he;if(!S)return;const R=h.branch[I],T=w==null?void 0:w[I];if((!T||T.type==="skip")&&S[1]===(R==null?void 0:R.loader)&&!Oe(O,A,L,(he=R.universal)==null?void 0:he.uses,o))return R;if(O=!0,(T==null?void 0:T.type)==="error")throw T;return ue({loader:S[1],url:n,params:o,route:a,parent:async()=>{var Te;const $e={};for(let ge=0;ge{});const C=[];for(let S=0;SPromise.resolve({}),server_data_node:de(c)}),b={node:await d(),loader:d,universal:null,server:null,data:null};return await X({url:n,params:a,branch:[v,b],status:e,error:i,route:null})}function Z(e,i){if(ye(e,J))return;const n=se(e);for(const o of f){const a=o.exec(n);if(a)return{id:e.pathname+e.search,invalidating:i,route:o,params:et(a),url:e}}}function se(e){return Qe(e.pathname.slice(J.length)||"/")}function xe({url:e,type:i,intent:n,delta:o}){let a=!1;const c=He(h,n,e,i);o!==void 0&&(c.navigation.delta=o);const p={...c.navigation,cancel:()=>{a=!0,c.reject(new Error("navigation was cancelled"))}};return U||m.before_navigate.forEach(v=>v(p)),a?null:c}async function ce({url:e,scroll:i,keepfocus:n,redirect_count:o,details:a,type:c,delta:p,nav_token:v={},accepted:b,blocked:y}){var $,C,S;const L=Z(e,!1),A=xe({url:e,type:c,delta:p,intent:L});if(!A){y();return}const P=D;b(),U=!0,j&&F.navigating.set(A.navigation),z=v;let _=L&&await pe(L);if(!_){if(ye(e,J))return await W(e);_=await je(e,{id:null},await Q(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(L==null?void 0:L.url)||e,z!==v)return A.reject(new Error("navigation was aborted")),!1;if(_.type==="redirect")if(o>=20)_=await ie({status:500,error:await Q(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(_.location,e).href,{},o+1,v),!1;else(($=_.props.page)==null?void 0:$.status)>=400&&await F.updated.check()&&await W(e);if(E.length=0,B=!1,N=!0,be(P),Re(P),(C=_.props.page)!=null&&C.url&&_.props.page.url.pathname!==e.pathname&&(e.pathname=(S=_.props.page)==null?void 0:S.url.pathname),a){const I=a.replaceState?0:1;if(a.state[M]=D+=I,history[a.replaceState?"replaceState":"pushState"](a.state,"",e),!a.replaceState){let R=D+1;for(;ee[R]||K[R];)delete ee[R],delete K[R],R+=1}}if(g=null,j){h=_.state,_.props.page&&(_.props.page.url=e);const I=(await Promise.all(m.on_navigate.map(R=>R(A.navigation)))).filter(R=>typeof R=="function");if(I.length>0){let R=function(){m.after_navigate=m.after_navigate.filter(T=>!I.includes(T))};I.push(R),m.after_navigate.push(...I)}V.$set(_.props)}else Pe(_);const{activeElement:w}=document;if(await we(),k){const I=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));i?scrollTo(i.x,i.y):I?I.scrollIntoView():scrollTo(0,0)}const O=document.activeElement!==w&&document.activeElement!==document.body;!n&&!O&&Ee(),k=!0,_.props.page&&(q=_.props.page),U=!1,c==="popstate"&&Ae(D),A.fulfil(void 0),m.after_navigate.forEach(I=>I(A.navigation)),F.navigating.set(null),N=!1}async function je(e,i,n,o){return e.origin===location.origin&&e.pathname===location.pathname&&!x?await ie({status:o,error:n,url:e,route:i}):await W(e)}function W(e){return location.href=e.href,new Promise(()=>{})}function Ye(){let e;u.addEventListener("mousemove",c=>{const p=c.target;clearTimeout(e),e=setTimeout(()=>{o(p,2)},20)});function i(c){o(c.composedPath()[0],1)}u.addEventListener("mousedown",i),u.addEventListener("touchstart",i,{passive:!0});const n=new IntersectionObserver(c=>{for(const p of c)p.isIntersecting&&(oe(se(new URL(p.target.href))),n.unobserve(p.target))},{threshold:0});function o(c,p){const v=Ce(c,u);if(!v)return;const{url:b,external:y,download:L}=_e(v,J);if(y||L)return;const A=le(v);if(!A.reload)if(p<=A.preload_data){const P=Z(b,!1);P&&Le(P)}else p<=A.preload_code&&oe(se(b))}function a(){n.disconnect();for(const c of u.querySelectorAll("a")){const{url:p,external:v,download:b}=_e(c,J);if(v||b)continue;const y=le(c);y.reload||(y.preload_code===Me.viewport&&n.observe(c),y.preload_code===Me.eager&&oe(se(p)))}}m.after_navigate.push(a),a()}function Q(e,i){return e instanceof ne?e.body:t.hooks.handleError({error:e,event:i})??{message:i.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:e=>{me(()=>(m.after_navigate.push(e),()=>{const i=m.after_navigate.indexOf(e);m.after_navigate.splice(i,1)}))},before_navigate:e=>{me(()=>(m.before_navigate.push(e),()=>{const i=m.before_navigate.indexOf(e);m.before_navigate.splice(i,1)}))},on_navigate:e=>{me(()=>(m.on_navigate.push(e),()=>{const i=m.on_navigate.indexOf(e);m.on_navigate.splice(i,1)}))},disable_scroll_handling:()=>{(N||!j)&&(k=!1)},goto:(e,i={})=>re(e,i,0),invalidate:e=>{if(typeof e=="function")E.push(e);else{const{href:i}=new URL(e,location.href);E.push(n=>n.href===i)}return ke()},invalidate_all:()=>(B=!0,ke()),preload_data:async e=>{const i=new URL(e,De(document)),n=Z(i,!1);if(!n)throw new Error(`Attempted to preload a URL that does not belong to this app: ${i}`);await Le(n)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const i=new URL(location.href),{branch:n,route:o}=h;if(!o)return;const a=await Ue(h.branch.length,n,o.errors);if(a){const c=await X({url:i,params:h.params,branch:n.slice(0,a.idx).concat(a.node),status:e.status??500,error:e.error,route:o});h=c.state,V.$set(c.props),we().then(Ee)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},0):(V.$set({form:null,page:{...q,form:e.data,status:e.status}}),await we(),V.$set({form:e.data}),e.type==="success"&&Ee())},_start_router:()=>{var i;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let o=!1;if(Ie(),!U){const a=He(h,void 0,null,"leave"),c={...a.navigation,cancel:()=>{o=!0,a.reject(new Error("navigation was cancelled"))}};m.before_navigate.forEach(p=>p(c))}o?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ie()}),(i=navigator.connection)!=null&&i.saveData||Ye(),u.addEventListener("click",n=>{var P;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const o=Ce(n.composedPath()[0],u);if(!o)return;const{url:a,external:c,target:p,download:v}=_e(o,J);if(!a)return;if(p==="_parent"||p==="_top"){if(window.parent!==window)return}else if(p&&p!=="_self")return;const b=le(o);if(!(o instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||v)return;if(c||b.reload){xe({url:a,type:"link"})?U=!0:n.preventDefault();return}const[L,A]=a.href.split("#");if(A!==void 0&&L===location.href.split("#")[0]){if(h.url.hash===a.hash){n.preventDefault(),(P=o.ownerDocument.getElementById(A))==null||P.scrollIntoView();return}if(H=!0,be(D),e(a),!b.replace_state)return;H=!1,n.preventDefault()}ce({url:a,scroll:b.noscroll?te():null,keepfocus:b.keep_focus??!1,redirect_count:0,details:{state:{},replaceState:b.replace_state??a.href===location.href},accepted:()=>n.preventDefault(),blocked:()=>n.preventDefault(),type:"link"})}),u.addEventListener("submit",n=>{if(n.defaultPrevented)return;const o=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||o.method)!=="get")return;const p=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||o.action);if(ye(p,J))return;const v=n.target,{keep_focus:b,noscroll:y,reload:L,replace_state:A}=le(v);if(L)return;n.preventDefault(),n.stopPropagation();const P=new FormData(v),_=a==null?void 0:a.getAttribute("name");_&&P.append(_,(a==null?void 0:a.getAttribute("value"))??""),p.search=new URLSearchParams(P).toString(),ce({url:p,scroll:y?te():null,keepfocus:b??!1,redirect_count:0,details:{state:{},replaceState:A??p.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async n=>{var o;if(z={},(o=n.state)!=null&&o[M]){if(n.state[M]===D)return;const a=K[n.state[M]],c=new URL(location.href);if(h.url.href.split("#")[0]===location.href.split("#")[0]){e(c),K[D]=te(),D=n.state[M],scrollTo(a.x,a.y);return}const p=n.state[M]-D;await ce({url:c,scroll:a,keepfocus:!1,redirect_count:0,details:null,accepted:()=>{D=n.state[M]},blocked:()=>{history.go(-p)},type:"popstate",delta:p,nav_token:z})}else if(!H){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{H&&(H=!1,history.replaceState({...history.state,[M]:++D},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&F.navigating.set(null)});function e(n){h.url=n,F.page.set({...q,url:n}),F.page.notify()}},_hydrate:async({status:e=200,error:i,node_ids:n,params:o,route:a,data:c,form:p})=>{x=!0;const v=new URL(location.href);({params:o={},route:a={id:null}}=Z(v,!1)||{});let b;try{const y=n.map(async(P,_)=>{const w=c[_];return w!=null&&w.uses&&(w.uses=We(w.uses)),ue({loader:t.nodes[P],url:v,params:o,route:a,parent:async()=>{const O={};for(let $=0;$<_;$+=1)Object.assign(O,(await y[$]).data);return O},server_data_node:de(w)})}),L=await Promise.all(y),A=f.find(({id:P})=>P===a.id);if(A){const P=A.layouts;for(let _=0;_d?"1":"0").join(""));const s=await Je(f.href);if(!s.ok)throw new ne(s.status,await s.json());return new Promise(async d=>{var h;const u=new Map,E=s.body.getReader(),l=new TextDecoder;function g(x){return bt(x,{Promise:j=>new Promise((k,N)=>{u.set(j,{fulfil:k,reject:N})})})}let m="";for(;;){const{done:x,value:j}=await E.read();if(x&&!m)break;for(m+=!j&&m?` +import{o as me,t as we}from"../chunks/index.f3b06f47.js";import{S as Be,a as Ge,I as M,g as De,f as Ce,b as _e,c as le,s as te,i as ye,d as F,e as J,P as Me,h as Xe}from"../chunks/singletons.de356790.js";function Ze(t,r){return t==="/"||r==="ignore"?t:r==="never"?t.endsWith("/")?t.slice(0,-1):t:r==="always"&&!t.endsWith("/")?t+"/":t}function Qe(t){return t.split("%25").map(decodeURI).join("%25")}function et(t){for(const r in t)t[r]=decodeURIComponent(t[r]);return t}const tt=["href","pathname","search","searchParams","toString","toJSON"];function nt(t,r){const f=new URL(t);for(const s of tt)Object.defineProperty(f,s,{get(){return r(),t[s]},enumerable:!0,configurable:!0});return at(f),f}function at(t){Object.defineProperty(t,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const rt="/__data.json";function ot(t){return t.replace(/\/$/,"")+rt}function it(...t){let r=5381;for(const f of t)if(typeof f=="string"){let s=f.length;for(;s;)r=r*33^f.charCodeAt(--s)}else if(ArrayBuffer.isView(f)){const s=new Uint8Array(f.buffer,f.byteOffset,f.byteLength);let d=s.length;for(;d;)r=r*33^s[--d]}else throw new TypeError("value must be a string or TypedArray");return(r>>>0).toString(36)}const Je=window.fetch;window.fetch=(t,r)=>((t instanceof Request?t.method:(r==null?void 0:r.method)||"GET")!=="GET"&&ae.delete(Se(t)),Je(t,r));const ae=new Map;function st(t,r){const f=Se(t,r),s=document.querySelector(f);if(s!=null&&s.textContent){const{body:d,...u}=JSON.parse(s.textContent),E=s.getAttribute("data-ttl");return E&&ae.set(f,{body:d,init:u,ttl:1e3*Number(E)}),Promise.resolve(new Response(d,u))}return window.fetch(t,r)}function ct(t,r,f){if(ae.size>0){const s=Se(t,f),d=ae.get(s);if(d){if(performance.now(){const d=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(s);if(d)return r.push({name:d[1],matcher:d[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const u=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(s);if(u)return r.push({name:u[1],matcher:u[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!s)return;const E=s.split(/\[(.+?)\](?!\])/);return"/"+E.map((g,m)=>{if(m%2){if(g.startsWith("x+"))return ve(String.fromCharCode(parseInt(g.slice(2),16)));if(g.startsWith("u+"))return ve(String.fromCharCode(...g.slice(2).split("-").map(U=>parseInt(U,16))));const h=lt.exec(g);if(!h)throw new Error(`Invalid param: ${g}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,x,j,k,N]=h;return r.push({name:k,matcher:N,optional:!!x,rest:!!j,chained:j?m===1&&E[0]==="":!1}),j?"(.*?)":x?"([^/]*)?":"([^/]+?)"}return ve(g)}).join("")}).join("")}/?$`),params:r}}function ut(t){return!/^\([^)]+\)$/.test(t)}function dt(t){return t.slice(1).split("/").filter(ut)}function pt(t,r,f){const s={},d=t.slice(1),u=d.filter(l=>l!==void 0);let E=0;for(let l=0;lh).join("/"),E=0),m===void 0){g.rest&&(s[g.name]="");continue}if(!g.matcher||f[g.matcher](m)){s[g.name]=m;const h=r[l+1],x=d[l+1];h&&!h.rest&&h.optional&&x&&g.chained&&(E=0),!h&&!x&&Object.keys(s).length===u.length&&(E=0);continue}if(g.optional&&g.chained){E++;continue}return}if(!E)return s}function ve(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function ht({nodes:t,server_loads:r,dictionary:f,matchers:s}){const d=new Set(r);return Object.entries(f).map(([l,[g,m,h]])=>{const{pattern:x,params:j}=ft(l),k={id:l,exec:N=>{const U=x.exec(N);if(U)return pt(U,j,s)},errors:[1,...h||[]].map(N=>t[N]),layouts:[0,...m||[]].map(E),leaf:u(g)};return k.errors.length=k.layouts.length=Math.max(k.errors.length,k.layouts.length),k});function u(l){const g=l<0;return g&&(l=~l),[g,t[l]]}function E(l){return l===void 0?l:[d.has(l),t[l]]}}function Ke(t){try{return JSON.parse(sessionStorage[t])}catch{}}function Ve(t,r){const f=JSON.stringify(r);try{sessionStorage[t]=f}catch{}}const gt=-1,mt=-2,wt=-3,_t=-4,yt=-5,vt=-6;function bt(t,r){if(typeof t=="number")return d(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const f=t,s=Array(f.length);function d(u,E=!1){if(u===gt)return;if(u===wt)return NaN;if(u===_t)return 1/0;if(u===yt)return-1/0;if(u===vt)return-0;if(E)throw new Error("Invalid input");if(u in s)return s[u];const l=f[u];if(!l||typeof l!="object")s[u]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const g=l[0],m=r==null?void 0:r[g];if(m)return s[u]=m(d(l[1]));switch(g){case"Date":s[u]=new Date(l[1]);break;case"Set":const h=new Set;s[u]=h;for(let k=1;kr!=null)}const ze=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...ze];const St=new Set([...ze]);[...St];async function kt(t){var r;for(const f in t)if(typeof((r=t[f])==null?void 0:r.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(t).map(async([s,d])=>[s,await d])));return t}class ne{constructor(r,f){this.status=r,typeof f=="string"?this.body={message:f}:f?this.body=f:this.body={message:`Error: ${r}`}}toString(){return JSON.stringify(this.body)}}class qe{constructor(r,f){this.status=r,this.location=f}}const Rt="x-sveltekit-invalidated",At="x-sveltekit-trailing-slash",K=Ke(Be)??{},ee=Ke(Ge)??{};function be(t){K[t]=te()}function It(t,r){var Ne;const f=ht(t),s=t.nodes[0],d=t.nodes[1];s(),d();const u=document.documentElement,E=[],l=[];let g=null;const m={before_navigate:[],on_navigate:[],after_navigate:[]};let h={branch:[],error:null,url:null},x=!1,j=!1,k=!0,N=!1,U=!1,H=!1,B=!1,V,D=(Ne=history.state)==null?void 0:Ne[M];D||(D=Date.now(),history.replaceState({...history.state,[M]:D},"",location.href));const fe=K[D];fe&&(history.scrollRestoration="manual",scrollTo(fe.x,fe.y));let q,z,Y;async function ke(){if(Y=Y||Promise.resolve(),await Y,!Y)return;Y=null;const e=new URL(location.href),i=Z(e,!0);g=null;const n=z={},o=i&&await pe(i);if(n===z&&o){if(o.type==="redirect")return re(new URL(o.location,e).href,{},1,n);o.props.page!==void 0&&(q=o.props.page),V.$set(o.props)}}function Re(e){l.some(i=>i==null?void 0:i.snapshot)&&(ee[e]=l.map(i=>{var n;return(n=i==null?void 0:i.snapshot)==null?void 0:n.capture()}))}function Ae(e){var i;(i=ee[e])==null||i.forEach((n,o)=>{var a,c;(c=(a=l[o])==null?void 0:a.snapshot)==null||c.restore(n)})}function Ie(){be(D),Ve(Be,K),Re(D),Ve(Ge,ee)}async function re(e,{noScroll:i=!1,replaceState:n=!1,keepFocus:o=!1,state:a={},invalidateAll:c=!1},p,v){return typeof e=="string"&&(e=new URL(e,De(document))),ce({url:e,scroll:i?te():null,keepfocus:o,redirect_count:p,details:{state:a,replaceState:n},nav_token:v,accepted:()=>{c&&(B=!0)},blocked:()=>{},type:"goto"})}async function Le(e){return g={id:e.id,promise:pe(e).then(i=>(i.type==="loaded"&&i.state.error&&(g=null),i))},g.promise}async function oe(...e){const n=f.filter(o=>e.some(a=>o.exec(a))).map(o=>Promise.all([...o.layouts,o.leaf].map(a=>a==null?void 0:a[1]())));await Promise.all(n)}function Pe(e){var o;h=e.state;const i=document.querySelector("style[data-sveltekit]");i&&i.remove(),q=e.props.page,V=new t.root({target:r,props:{...e.props,stores:F,components:l},hydrate:!0}),Ae(D);const n={from:null,to:{params:h.params,route:{id:((o=h.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};m.after_navigate.forEach(a=>a(n)),j=!0}async function X({url:e,params:i,branch:n,status:o,error:a,route:c,form:p}){let v="never";for(const _ of n)(_==null?void 0:_.slash)!==void 0&&(v=_.slash);e.pathname=Ze(e.pathname,v),e.search=e.search;const b={type:"loaded",state:{url:e,params:i,branch:n,error:a,route:c},props:{constructors:Et(n).map(_=>_.node.component)}};p!==void 0&&(b.props.form=p);let y={},L=!q,A=0;for(let _=0;_(v.route=!0,w[O])}),params:new Proxy(o,{get:(w,O)=>(v.params.add(O),w[O])}),data:(c==null?void 0:c.data)??null,url:nt(n,()=>{v.url=!0}),async fetch(w,O){let $;w instanceof Request?($=w.url,O={body:w.method==="GET"||w.method==="HEAD"?void 0:await w.blob(),cache:w.cache,credentials:w.credentials,headers:w.headers,integrity:w.integrity,keepalive:w.keepalive,method:w.method,mode:w.mode,redirect:w.redirect,referrer:w.referrer,referrerPolicy:w.referrerPolicy,signal:w.signal,...O}):$=w;const C=new URL($,n);return P(C.href),C.origin===n.origin&&($=C.href.slice(n.origin.length)),j?ct($,C.href,O):st($,O)},setHeaders:()=>{},depends:P,parent(){return v.parent=!0,i()}};p=await b.universal.load.call(null,_)??null,p=p?await kt(p):null}return{node:b,loader:e,server:c,universal:(L=b.universal)!=null&&L.load?{type:"data",data:p,uses:v}:null,data:p??(c==null?void 0:c.data)??null,slash:((A=b.universal)==null?void 0:A.trailingSlash)??(c==null?void 0:c.slash)}}function Oe(e,i,n,o,a){if(B)return!0;if(!o)return!1;if(o.parent&&e||o.route&&i||o.url&&n)return!0;for(const c of o.params)if(a[c]!==h.params[c])return!0;for(const c of o.dependencies)if(E.some(p=>p(new URL(c))))return!0;return!1}function de(e,i){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?i??null:null}async function pe({id:e,invalidating:i,url:n,params:o,route:a}){if((g==null?void 0:g.id)===e)return g.promise;const{errors:c,layouts:p,leaf:v}=a,b=[...p,v];c.forEach(S=>S==null?void 0:S().catch(()=>{})),b.forEach(S=>S==null?void 0:S[1]().catch(()=>{}));let y=null;const L=h.url?e!==h.url.pathname+h.url.search:!1,A=h.route?a.id!==h.route.id:!1;let P=!1;const _=b.map((S,I)=>{var G;const R=h.branch[I],T=!!(S!=null&&S[0])&&((R==null?void 0:R.loader)!==S[1]||Oe(P,A,L,(G=R.server)==null?void 0:G.uses,o));return T&&(P=!0),T});if(_.some(Boolean)){try{y=await Fe(n,_)}catch(S){return ie({status:S instanceof ne?S.status:500,error:await Q(S,{url:n,params:o,route:{id:a.id}}),url:n,route:a})}if(y.type==="redirect")return y}const w=y==null?void 0:y.nodes;let O=!1;const $=b.map(async(S,I)=>{var he;if(!S)return;const R=h.branch[I],T=w==null?void 0:w[I];if((!T||T.type==="skip")&&S[1]===(R==null?void 0:R.loader)&&!Oe(O,A,L,(he=R.universal)==null?void 0:he.uses,o))return R;if(O=!0,(T==null?void 0:T.type)==="error")throw T;return ue({loader:S[1],url:n,params:o,route:a,parent:async()=>{var Te;const $e={};for(let ge=0;ge{});const C=[];for(let S=0;SPromise.resolve({}),server_data_node:de(c)}),b={node:await d(),loader:d,universal:null,server:null,data:null};return await X({url:n,params:a,branch:[v,b],status:e,error:i,route:null})}function Z(e,i){if(ye(e,J))return;const n=se(e);for(const o of f){const a=o.exec(n);if(a)return{id:e.pathname+e.search,invalidating:i,route:o,params:et(a),url:e}}}function se(e){return Qe(e.pathname.slice(J.length)||"/")}function xe({url:e,type:i,intent:n,delta:o}){let a=!1;const c=He(h,n,e,i);o!==void 0&&(c.navigation.delta=o);const p={...c.navigation,cancel:()=>{a=!0,c.reject(new Error("navigation was cancelled"))}};return U||m.before_navigate.forEach(v=>v(p)),a?null:c}async function ce({url:e,scroll:i,keepfocus:n,redirect_count:o,details:a,type:c,delta:p,nav_token:v={},accepted:b,blocked:y}){var $,C,S;const L=Z(e,!1),A=xe({url:e,type:c,delta:p,intent:L});if(!A){y();return}const P=D;b(),U=!0,j&&F.navigating.set(A.navigation),z=v;let _=L&&await pe(L);if(!_){if(ye(e,J))return await W(e);_=await je(e,{id:null},await Q(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(L==null?void 0:L.url)||e,z!==v)return A.reject(new Error("navigation was aborted")),!1;if(_.type==="redirect")if(o>=20)_=await ie({status:500,error:await Q(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(_.location,e).href,{},o+1,v),!1;else(($=_.props.page)==null?void 0:$.status)>=400&&await F.updated.check()&&await W(e);if(E.length=0,B=!1,N=!0,be(P),Re(P),(C=_.props.page)!=null&&C.url&&_.props.page.url.pathname!==e.pathname&&(e.pathname=(S=_.props.page)==null?void 0:S.url.pathname),a){const I=a.replaceState?0:1;if(a.state[M]=D+=I,history[a.replaceState?"replaceState":"pushState"](a.state,"",e),!a.replaceState){let R=D+1;for(;ee[R]||K[R];)delete ee[R],delete K[R],R+=1}}if(g=null,j){h=_.state,_.props.page&&(_.props.page.url=e);const I=(await Promise.all(m.on_navigate.map(R=>R(A.navigation)))).filter(R=>typeof R=="function");if(I.length>0){let R=function(){m.after_navigate=m.after_navigate.filter(T=>!I.includes(T))};I.push(R),m.after_navigate.push(...I)}V.$set(_.props)}else Pe(_);const{activeElement:w}=document;if(await we(),k){const I=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));i?scrollTo(i.x,i.y):I?I.scrollIntoView():scrollTo(0,0)}const O=document.activeElement!==w&&document.activeElement!==document.body;!n&&!O&&Ee(),k=!0,_.props.page&&(q=_.props.page),U=!1,c==="popstate"&&Ae(D),A.fulfil(void 0),m.after_navigate.forEach(I=>I(A.navigation)),F.navigating.set(null),N=!1}async function je(e,i,n,o){return e.origin===location.origin&&e.pathname===location.pathname&&!x?await ie({status:o,error:n,url:e,route:i}):await W(e)}function W(e){return location.href=e.href,new Promise(()=>{})}function Ye(){let e;u.addEventListener("mousemove",c=>{const p=c.target;clearTimeout(e),e=setTimeout(()=>{o(p,2)},20)});function i(c){o(c.composedPath()[0],1)}u.addEventListener("mousedown",i),u.addEventListener("touchstart",i,{passive:!0});const n=new IntersectionObserver(c=>{for(const p of c)p.isIntersecting&&(oe(se(new URL(p.target.href))),n.unobserve(p.target))},{threshold:0});function o(c,p){const v=Ce(c,u);if(!v)return;const{url:b,external:y,download:L}=_e(v,J);if(y||L)return;const A=le(v);if(!A.reload)if(p<=A.preload_data){const P=Z(b,!1);P&&Le(P)}else p<=A.preload_code&&oe(se(b))}function a(){n.disconnect();for(const c of u.querySelectorAll("a")){const{url:p,external:v,download:b}=_e(c,J);if(v||b)continue;const y=le(c);y.reload||(y.preload_code===Me.viewport&&n.observe(c),y.preload_code===Me.eager&&oe(se(p)))}}m.after_navigate.push(a),a()}function Q(e,i){return e instanceof ne?e.body:t.hooks.handleError({error:e,event:i})??{message:i.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:e=>{me(()=>(m.after_navigate.push(e),()=>{const i=m.after_navigate.indexOf(e);m.after_navigate.splice(i,1)}))},before_navigate:e=>{me(()=>(m.before_navigate.push(e),()=>{const i=m.before_navigate.indexOf(e);m.before_navigate.splice(i,1)}))},on_navigate:e=>{me(()=>(m.on_navigate.push(e),()=>{const i=m.on_navigate.indexOf(e);m.on_navigate.splice(i,1)}))},disable_scroll_handling:()=>{(N||!j)&&(k=!1)},goto:(e,i={})=>re(e,i,0),invalidate:e=>{if(typeof e=="function")E.push(e);else{const{href:i}=new URL(e,location.href);E.push(n=>n.href===i)}return ke()},invalidate_all:()=>(B=!0,ke()),preload_data:async e=>{const i=new URL(e,De(document)),n=Z(i,!1);if(!n)throw new Error(`Attempted to preload a URL that does not belong to this app: ${i}`);await Le(n)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const i=new URL(location.href),{branch:n,route:o}=h;if(!o)return;const a=await Ue(h.branch.length,n,o.errors);if(a){const c=await X({url:i,params:h.params,branch:n.slice(0,a.idx).concat(a.node),status:e.status??500,error:e.error,route:o});h=c.state,V.$set(c.props),we().then(Ee)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},0):(V.$set({form:null,page:{...q,form:e.data,status:e.status}}),await we(),V.$set({form:e.data}),e.type==="success"&&Ee())},_start_router:()=>{var i;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let o=!1;if(Ie(),!U){const a=He(h,void 0,null,"leave"),c={...a.navigation,cancel:()=>{o=!0,a.reject(new Error("navigation was cancelled"))}};m.before_navigate.forEach(p=>p(c))}o?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ie()}),(i=navigator.connection)!=null&&i.saveData||Ye(),u.addEventListener("click",n=>{var P;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const o=Ce(n.composedPath()[0],u);if(!o)return;const{url:a,external:c,target:p,download:v}=_e(o,J);if(!a)return;if(p==="_parent"||p==="_top"){if(window.parent!==window)return}else if(p&&p!=="_self")return;const b=le(o);if(!(o instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||v)return;if(c||b.reload){xe({url:a,type:"link"})?U=!0:n.preventDefault();return}const[L,A]=a.href.split("#");if(A!==void 0&&L===location.href.split("#")[0]){if(h.url.hash===a.hash){n.preventDefault(),(P=o.ownerDocument.getElementById(A))==null||P.scrollIntoView();return}if(H=!0,be(D),e(a),!b.replace_state)return;H=!1,n.preventDefault()}ce({url:a,scroll:b.noscroll?te():null,keepfocus:b.keep_focus??!1,redirect_count:0,details:{state:{},replaceState:b.replace_state??a.href===location.href},accepted:()=>n.preventDefault(),blocked:()=>n.preventDefault(),type:"link"})}),u.addEventListener("submit",n=>{if(n.defaultPrevented)return;const o=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||o.method)!=="get")return;const p=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||o.action);if(ye(p,J))return;const v=n.target,{keep_focus:b,noscroll:y,reload:L,replace_state:A}=le(v);if(L)return;n.preventDefault(),n.stopPropagation();const P=new FormData(v),_=a==null?void 0:a.getAttribute("name");_&&P.append(_,(a==null?void 0:a.getAttribute("value"))??""),p.search=new URLSearchParams(P).toString(),ce({url:p,scroll:y?te():null,keepfocus:b??!1,redirect_count:0,details:{state:{},replaceState:A??p.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async n=>{var o;if(z={},(o=n.state)!=null&&o[M]){if(n.state[M]===D)return;const a=K[n.state[M]],c=new URL(location.href);if(h.url.href.split("#")[0]===location.href.split("#")[0]){e(c),K[D]=te(),D=n.state[M],scrollTo(a.x,a.y);return}const p=n.state[M]-D;await ce({url:c,scroll:a,keepfocus:!1,redirect_count:0,details:null,accepted:()=>{D=n.state[M]},blocked:()=>{history.go(-p)},type:"popstate",delta:p,nav_token:z})}else if(!H){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{H&&(H=!1,history.replaceState({...history.state,[M]:++D},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&F.navigating.set(null)});function e(n){h.url=n,F.page.set({...q,url:n}),F.page.notify()}},_hydrate:async({status:e=200,error:i,node_ids:n,params:o,route:a,data:c,form:p})=>{x=!0;const v=new URL(location.href);({params:o={},route:a={id:null}}=Z(v,!1)||{});let b;try{const y=n.map(async(P,_)=>{const w=c[_];return w!=null&&w.uses&&(w.uses=We(w.uses)),ue({loader:t.nodes[P],url:v,params:o,route:a,parent:async()=>{const O={};for(let $=0;$<_;$+=1)Object.assign(O,(await y[$]).data);return O},server_data_node:de(w)})}),L=await Promise.all(y),A=f.find(({id:P})=>P===a.id);if(A){const P=A.layouts;for(let _=0;_d?"1":"0").join(""));const s=await Je(f.href);if(!s.ok)throw new ne(s.status,await s.json());return new Promise(async d=>{var h;const u=new Map,E=s.body.getReader(),l=new TextDecoder;function g(x){return bt(x,{Promise:j=>new Promise((k,N)=>{u.set(j,{fulfil:k,reject:N})})})}let m="";for(;;){const{done:x,value:j}=await E.read();if(x&&!m)break;for(m+=!j&&m?` `:l.decode(j);;){const k=m.indexOf(` `);if(k===-1)break;const N=JSON.parse(m.slice(0,k));if(m=m.slice(k+1),N.type==="redirect")return d(N);if(N.type==="data")(h=N.nodes)==null||h.forEach(U=>{(U==null?void 0:U.type)==="data"&&(U.uses=We(U.uses),U.data=g(U.data))}),d(N);else if(N.type==="chunk"){const{id:U,data:H,error:B}=N,V=u.get(U);u.delete(U),B?V.reject(g(B)):V.fulfil(g(H))}}}})}function We(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url)}}function Ee(){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const r=document.body,f=r.getAttribute("tabindex");r.tabIndex=-1,r.focus({preventScroll:!0,focusVisible:!1}),f!==null?r.setAttribute("tabindex",f):r.removeAttribute("tabindex");const s=getSelection();if(s&&s.type!=="None"){const d=[];for(let u=0;u{if(s.rangeCount===d.length){for(let u=0;u{d=h,u=x});return E.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((g=t.route)==null?void 0:g.id)??null},url:t.url},to:f&&{params:(r==null?void 0:r.params)??null,route:{id:((m=r==null?void 0:r.route)==null?void 0:m.id)??null},url:f},willUnload:!r,type:s,complete:E},fulfil:d,reject:u}}async function Ot(t,r,f){const s=It(t,r);Xe({client:s}),f?await s._hydrate(f):s.goto(location.href,{replaceState:!0}),s._start_router()}export{Ot as start}; diff --git a/build/app/immutable/nodes/0.bdaf50e9.js b/build/app/immutable/nodes/0.56f78fc3.js similarity index 92% rename from build/app/immutable/nodes/0.bdaf50e9.js rename to build/app/immutable/nodes/0.56f78fc3.js index c500c46e8..0765328dd 100644 --- a/build/app/immutable/nodes/0.bdaf50e9.js +++ b/build/app/immutable/nodes/0.56f78fc3.js @@ -1 +1 @@ -import{S as m,i as d,s as p,C as h,k as _,l as c,m as f,h as r,n as $,b as v,D as g,E as y,F as E,G as b,g as C,d as D}from"../chunks/index.83ca82d8.js";function I(o){let e,n,a;const i=o[1].default,t=h(i,o,o[0],null);return{c(){e=_("div"),n=_("main"),t&&t.c(),this.h()},l(s){e=c(s,"DIV",{class:!0});var l=f(e);n=c(l,"MAIN",{});var u=f(n);t&&t.l(u),u.forEach(r),l.forEach(r),this.h()},h(){$(e,"class","p-8 w-[400px] min-h-[667px] mx-auto")},m(s,l){v(s,e,l),g(e,n),t&&t.m(n,null),a=!0},p(s,[l]){t&&t.p&&(!a||l&1)&&y(t,i,s,s[0],a?b(i,s[0],l,null):E(s[0]),null)},i(s){a||(C(t,s),a=!0)},o(s){D(t,s),a=!1},d(s){s&&r(e),t&&t.d(s)}}}function S(o,e,n){let{$$slots:a={},$$scope:i}=e;return o.$$set=t=>{"$$scope"in t&&n(0,i=t.$$scope)},[i,a]}class q extends m{constructor(e){super(),d(this,e,S,I,p,{})}}export{q as component}; +import{S as m,i as d,s as p,C as h,k as _,l as c,m as f,h as r,n as $,b as v,D as g,E as y,F as E,G as b,g as C,d as D}from"../chunks/index.f3b06f47.js";function I(o){let e,n,a;const i=o[1].default,t=h(i,o,o[0],null);return{c(){e=_("div"),n=_("main"),t&&t.c(),this.h()},l(s){e=c(s,"DIV",{class:!0});var l=f(e);n=c(l,"MAIN",{});var u=f(n);t&&t.l(u),u.forEach(r),l.forEach(r),this.h()},h(){$(e,"class","p-8 w-[400px] min-h-[667px] mx-auto")},m(s,l){v(s,e,l),g(e,n),t&&t.m(n,null),a=!0},p(s,[l]){t&&t.p&&(!a||l&1)&&y(t,i,s,s[0],a?b(i,s[0],l,null):E(s[0]),null)},i(s){a||(C(t,s),a=!0)},o(s){D(t,s),a=!1},d(s){s&&r(e),t&&t.d(s)}}}function S(o,e,n){let{$$slots:a={},$$scope:i}=e;return o.$$set=t=>{"$$scope"in t&&n(0,i=t.$$scope)},[i,a]}class q extends m{constructor(e){super(),d(this,e,S,I,p,{})}}export{q as component}; diff --git a/build/app/immutable/nodes/1.fbb8753e.js b/build/app/immutable/nodes/1.ab77d065.js similarity index 84% rename from build/app/immutable/nodes/1.fbb8753e.js rename to build/app/immutable/nodes/1.ab77d065.js index 4888aa2d7..af14a2794 100644 --- a/build/app/immutable/nodes/1.fbb8753e.js +++ b/build/app/immutable/nodes/1.ab77d065.js @@ -1 +1 @@ -import{S as x,i as H,s as S,k as u,q as h,a as g,l as d,m as v,r as b,h as m,c as k,b as _,D as E,u as $,H as q,I as y}from"../chunks/index.83ca82d8.js";import{p as C}from"../chunks/stores.1e365101.js";function D(l){var f;let a,t=l[0].status+"",r,o,n,p=((f=l[0].error)==null?void 0:f.message)+"",c;return{c(){a=u("h1"),r=h(t),o=g(),n=u("p"),c=h(p)},l(e){a=d(e,"H1",{});var s=v(a);r=b(s,t),s.forEach(m),o=k(e),n=d(e,"P",{});var i=v(n);c=b(i,p),i.forEach(m)},m(e,s){_(e,a,s),E(a,r),_(e,o,s),_(e,n,s),E(n,c)},p(e,[s]){var i;s&1&&t!==(t=e[0].status+"")&&$(r,t),s&1&&p!==(p=((i=e[0].error)==null?void 0:i.message)+"")&&$(c,p)},i:q,o:q,d(e){e&&m(a),e&&m(o),e&&m(n)}}}function I(l,a,t){let r;return y(l,C,o=>t(0,r=o)),[r]}class w extends x{constructor(a){super(),H(this,a,I,D,S,{})}}export{w as component}; +import{S as x,i as H,s as S,k as u,q as h,a as g,l as d,m as v,r as b,h as m,c as k,b as _,D as E,u as $,H as q,I as y}from"../chunks/index.f3b06f47.js";import{p as C}from"../chunks/stores.fcb3ce1c.js";function D(l){var f;let a,t=l[0].status+"",r,o,n,p=((f=l[0].error)==null?void 0:f.message)+"",c;return{c(){a=u("h1"),r=h(t),o=g(),n=u("p"),c=h(p)},l(e){a=d(e,"H1",{});var s=v(a);r=b(s,t),s.forEach(m),o=k(e),n=d(e,"P",{});var i=v(n);c=b(i,p),i.forEach(m)},m(e,s){_(e,a,s),E(a,r),_(e,o,s),_(e,n,s),E(n,c)},p(e,[s]){var i;s&1&&t!==(t=e[0].status+"")&&$(r,t),s&1&&p!==(p=((i=e[0].error)==null?void 0:i.message)+"")&&$(c,p)},i:q,o:q,d(e){e&&m(a),e&&m(o),e&&m(n)}}}function I(l,a,t){let r;return y(l,C,o=>t(0,r=o)),[r]}class w extends x{constructor(a){super(),H(this,a,I,D,S,{})}}export{w as component}; diff --git a/build/app/immutable/nodes/10.5108159e.js b/build/app/immutable/nodes/10.5108159e.js deleted file mode 100644 index 1f431c7e2..000000000 --- a/build/app/immutable/nodes/10.5108159e.js +++ /dev/null @@ -1 +0,0 @@ -import{S as G,i as Q,s as Z,k as f,q as L,a as I,l as h,m as b,r as N,h as a,c as $,n as _,K as J,b as g,D as c,P as ae,J as A,H,L as oe,y as K,z as X,A as Y,d as q,f as ne,g as z,B as F,o as ce,v as ie,w as ue,X as de,Y as fe}from"../chunks/index.83ca82d8.js";import{H as he}from"../chunks/Header.80bfed2a.js";import{m as re,s as me,w as _e,o as be,d as ve}from"../chunks/store.e259513c.js";import{c as pe}from"../chunks/secondAuth.d664856c.js";function ke(m){let e,l,o;return{c(){e=f("div"),l=f("button"),o=L("Reset"),this.h()},l(n){e=h(n,"DIV",{class:!0});var s=b(e);l=h(s,"BUTTON",{class:!0});var r=b(l);o=N(r,"Reset"),r.forEach(a),s.forEach(a),this.h()},h(){_(l,"class","btn"),l.disabled=!0,_(e,"class","modal-action")},m(n,s){g(n,e,s),c(e,l),c(l,o)},p:H,d(n){n&&a(e)}}}function we(m){let e,l,o,n,s,r;return{c(){e=f("div"),l=f("a"),o=f("button"),n=L("Reset"),this.h()},l(d){e=h(d,"DIV",{class:!0});var u=b(e);l=h(u,"A",{href:!0});var v=b(l);o=h(v,"BUTTON",{class:!0});var i=b(o);n=N(i,"Reset"),i.forEach(a),v.forEach(a),u.forEach(a),this.h()},h(){_(o,"class","btn"),_(l,"href","/"),_(e,"class","modal-action")},m(d,u){g(d,e,u),c(e,l),c(l,o),c(o,n),s||(r=A(o,"click",m[3]),s=!0)},p:H,d(d){d&&a(e),s=!1,r()}}}function ge(m){let e,l,o,n,s,r,d,u,v,i,E,T,k,W,B,D;function S(y,p){return y[1]?we:ke}let O=S(m),U=O(m);return{c(){e=f("div"),l=f("button"),o=L("Reset Wallet"),n=I(),s=f("div"),r=f("div"),d=f("button"),u=L("✕"),v=I(),i=f("p"),E=L("Enter 'reset'"),T=I(),k=f("input"),W=I(),U.c(),this.h()},l(y){e=h(y,"DIV",{});var p=b(e);l=h(p,"BUTTON",{class:!0});var x=b(l);o=N(x,"Reset Wallet"),x.forEach(a),n=$(p),s=h(p,"DIV",{class:!0});var P=b(s);r=h(P,"DIV",{class:!0});var V=b(r);d=h(V,"BUTTON",{class:!0});var R=b(d);u=N(R,"✕"),R.forEach(a),v=$(V),i=h(V,"P",{class:!0});var M=b(i);E=N(M,"Enter 'reset'"),M.forEach(a),T=$(V),k=h(V,"INPUT",{type:!0,placeholder:!0,class:!0}),W=$(V),U.l(V),V.forEach(a),P.forEach(a),p.forEach(a),this.h()},h(){_(l,"class","block rounded-lg shadow-lg bg-red-500 dark:bg-red-500 text-white p-5 w-full h-auto hover:bg-slate-600 active:bg-slate-500 text-xl text-center"),_(d,"class","btn btn-sm btn-circle absolute right-2 top-2"),_(i,"class","text-md mt-5 mb-3 text-center"),_(k,"type","text"),_(k,"placeholder","reset"),_(k,"class","input input-bordered dark:bg-gray-900 dark:text-white dark:border-zinc-600 input-md w-full max-w-xs"),_(r,"class","modal-box dark:bg-gray-900 dark:text-white"),_(s,"class","modal modal-bottom sm:modal-middle"),J(s,"modal-open",m[0])},m(y,p){g(y,e,p),c(e,l),c(l,o),c(e,n),c(e,s),c(s,r),c(r,d),c(d,u),c(r,v),c(r,i),c(i,E),c(r,T),c(r,k),ae(k,m[2]),c(r,W),U.m(r,null),B||(D=[A(l,"click",m[4]),A(d,"click",m[5]),A(k,"input",m[6]),A(k,"change",m[7])],B=!0)},p(y,[p]){p&4&&k.value!==y[2]&&ae(k,y[2]),O===(O=S(y))&&U?U.p(y,p):(U.d(1),U=O(y),U&&(U.c(),U.m(r,null))),p&1&&J(s,"modal-open",y[0])},i:H,o:H,d(y){y&&a(e),U.d(),B=!1,oe(D)}}}function Ee(m,e,l){let o=!1,n=!1,s="";const r=async()=>{await re.remove(),me(""),_e.set(""),be.set(3),localStorage.removeItem("encryptedMnemonic"),localStorage.removeItem("iv"),localStorage.removeItem("mnemonicHash"),ve.set(""),l(0,o=!1)},d=()=>l(0,o=!0),u=()=>{l(0,o=!1)};function v(){s=this.value,l(2,s)}return[o,n,s,r,d,u,v,()=>{s=="reset"&&l(1,n=!0)}]}class ye extends G{constructor(e){super(),Q(this,e,Ee,ge,Z,{})}}function Ue(m){let e,l,o,n,s,r,d,u,v,i,E,T,k,W,B,D,S,O,U,y;return{c(){e=f("div"),l=f("button"),o=L("Lock Wallet"),n=I(),s=f("div"),r=f("div"),d=f("button"),u=L("✕"),v=I(),i=f("p"),E=L("Sure want to lock the wallet?"),T=I(),k=f("div"),W=f("button"),B=L("Cancel"),D=I(),S=f("button"),O=L("Lock"),this.h()},l(p){e=h(p,"DIV",{});var x=b(e);l=h(x,"BUTTON",{class:!0});var P=b(l);o=N(P,"Lock Wallet"),P.forEach(a),n=$(x),s=h(x,"DIV",{class:!0});var V=b(s);r=h(V,"DIV",{class:!0});var R=b(r);d=h(R,"BUTTON",{class:!0});var M=b(d);u=N(M,"✕"),M.forEach(a),v=$(R),i=h(R,"P",{class:!0});var C=b(i);E=N(C,"Sure want to lock the wallet?"),C.forEach(a),T=$(R),k=h(R,"DIV",{class:!0});var t=b(k);W=h(t,"BUTTON",{class:!0});var w=b(W);B=N(w,"Cancel"),w.forEach(a),D=$(t),S=h(t,"BUTTON",{class:!0});var j=b(S);O=N(j,"Lock"),j.forEach(a),t.forEach(a),R.forEach(a),V.forEach(a),x.forEach(a),this.h()},h(){_(l,"class","block rounded-lg shadow-lg bg-white dark:bg-gray-800 dark:text-white p-5 w-full h-auto hover:bg-slate-200 active:bg-slate-500 text-xl text-center"),_(d,"class","btn btn-sm btn-circle absolute right-2 top-2"),_(i,"class","text-xl mt-5 mb-3"),_(W,"class","btn"),_(S,"class","btn"),_(k,"class","modal-action"),_(r,"class","modal-box dark:bg-gray-900 dark:text-white"),_(s,"class","modal modal-bottom sm:modal-middle"),J(s,"modal-open",m[0])},m(p,x){g(p,e,x),c(e,l),c(l,o),c(e,n),c(e,s),c(s,r),c(r,d),c(d,u),c(r,v),c(r,i),c(i,E),c(r,T),c(r,k),c(k,W),c(W,B),c(k,D),c(k,S),c(S,O),U||(y=[A(l,"click",m[3]),A(d,"click",m[4]),A(W,"click",m[5]),A(S,"click",m[1])],U=!0)},p(p,[x]){x&1&&J(s,"modal-open",p[0])},i:H,o:H,d(p){p&&a(e),U=!1,oe(y)}}}function xe(m,e,l){let o=!1,{isWalletUnlocked:n}=e;const s=async()=>{await re.remove(),l(2,n=!1),l(0,o=!1)},r=()=>l(0,o=!0),d=()=>{l(0,o=!1)},u=()=>{l(0,o=!1)};return m.$$set=v=>{"isWalletUnlocked"in v&&l(2,n=v.isWalletUnlocked)},[o,s,n,r,d,u]}class Ie extends G{constructor(e){super(),Q(this,e,xe,Ue,Z,{isWalletUnlocked:2})}}function $e(m){let e,l,o,n,s,r;return{c(){e=f("div"),l=f("h1"),o=L("Unlock the wallet"),n=I(),s=f("a"),r=L("Unlock"),this.h()},l(d){e=h(d,"DIV",{class:!0});var u=b(e);l=h(u,"H1",{class:!0});var v=b(l);o=N(v,"Unlock the wallet"),v.forEach(a),n=$(u),s=h(u,"A",{href:!0,class:!0});var i=b(s);r=N(i,"Unlock"),i.forEach(a),u.forEach(a),this.h()},h(){_(l,"class","text-3xl dark:text-yellow-200"),_(s,"href","/wallet"),_(s,"class","btn"),_(e,"class","h-[40vh] w-full p-5 flex flex-col items-center justify-evenly")},m(d,u){g(d,e,u),c(e,l),c(l,o),c(e,n),c(e,s),c(s,r)},p:H,i:H,o:H,d(d){d&&a(e)}}}function Te(m){let e,l,o,n,s,r,d,u,v,i,E,T,k,W,B,D,S,O,U,y,p,x,P,V,R;function M(t){m[1](t)}let C={};return m[0]!==void 0&&(C.isWalletUnlocked=m[0]),D=new Ie({props:C}),ue.push(()=>de(D,"isWalletUnlocked",M)),x=new ye({}),{c(){e=f("br"),l=I(),o=f("h1"),n=L("Settings"),s=I(),r=f("br"),d=I(),u=f("div"),v=f("a"),i=f("div"),E=L("Show Seed Phrase"),T=I(),k=f("br"),W=I(),B=f("div"),K(D.$$.fragment),O=I(),U=f("br"),y=I(),p=f("div"),K(x.$$.fragment),P=I(),V=f("br"),this.h()},l(t){e=h(t,"BR",{}),l=$(t),o=h(t,"H1",{class:!0});var w=b(o);n=N(w,"Settings"),w.forEach(a),s=$(t),r=h(t,"BR",{}),d=$(t),u=h(t,"DIV",{class:!0});var j=b(u);v=h(j,"A",{href:!0,class:!0});var ee=b(v);i=h(ee,"DIV",{class:!0});var te=b(i);E=N(te,"Show Seed Phrase"),te.forEach(a),ee.forEach(a),j.forEach(a),T=$(t),k=h(t,"BR",{}),W=$(t),B=h(t,"DIV",{class:!0});var le=b(B);X(D.$$.fragment,le),le.forEach(a),O=$(t),U=h(t,"BR",{}),y=$(t),p=h(t,"DIV",{class:!0});var se=b(p);X(x.$$.fragment,se),se.forEach(a),P=$(t),V=h(t,"BR",{}),this.h()},h(){_(o,"class","text-3xl mt-5 mb-2 text-center"),_(i,"class","block rounded-lg shadow-lg bg-white dark:bg-gray-800 dark:text-white p-5 h-auto hover:bg-slate-200 active:bg-slate-500"),_(v,"href","/settings/show-secret-key"),_(v,"class","text-xl text-center"),_(u,"class","justify-center"),_(B,"class","justify-center"),_(p,"class","justify-center")},m(t,w){g(t,e,w),g(t,l,w),g(t,o,w),c(o,n),g(t,s,w),g(t,r,w),g(t,d,w),g(t,u,w),c(u,v),c(v,i),c(i,E),g(t,T,w),g(t,k,w),g(t,W,w),g(t,B,w),Y(D,B,null),g(t,O,w),g(t,U,w),g(t,y,w),g(t,p,w),Y(x,p,null),g(t,P,w),g(t,V,w),R=!0},p(t,w){const j={};!S&&w&1&&(S=!0,j.isWalletUnlocked=t[0],fe(()=>S=!1)),D.$set(j)},i(t){R||(z(D.$$.fragment,t),z(x.$$.fragment,t),R=!0)},o(t){q(D.$$.fragment,t),q(x.$$.fragment,t),R=!1},d(t){t&&a(e),t&&a(l),t&&a(o),t&&a(s),t&&a(r),t&&a(d),t&&a(u),t&&a(T),t&&a(k),t&&a(W),t&&a(B),F(D),t&&a(O),t&&a(U),t&&a(y),t&&a(p),F(x),t&&a(P),t&&a(V)}}}function We(m){let e,l,o,n,s,r;l=new he({});const d=[Te,$e],u=[];function v(i,E){return i[0]?0:1}return n=v(m),s=u[n]=d[n](m),{c(){e=f("div"),K(l.$$.fragment),o=I(),s.c()},l(i){e=h(i,"DIV",{});var E=b(e);X(l.$$.fragment,E),o=$(E),s.l(E),E.forEach(a)},m(i,E){g(i,e,E),Y(l,e,null),c(e,o),u[n].m(e,null),r=!0},p(i,[E]){let T=n;n=v(i),n===T?u[n].p(i,E):(ie(),q(u[T],1,1,()=>{u[T]=null}),ne(),s=u[n],s?s.p(i,E):(s=u[n]=d[n](i),s.c()),z(s,1),s.m(e,null))},i(i){r||(z(l.$$.fragment,i),z(s),r=!0)},o(i){q(l.$$.fragment,i),q(s),r=!1},d(i){i&&a(e),F(l),u[n].d()}}}function De(m,e,l){let o=!1;ce(async()=>{l(0,[,o]=await pe(),o)});function n(s){o=s,l(0,o)}return[o,n]}class Le extends G{constructor(e){super(),Q(this,e,De,We,Z,{})}}export{Le as component}; diff --git a/build/app/immutable/nodes/10.99a1db5c.js b/build/app/immutable/nodes/10.99a1db5c.js new file mode 100644 index 000000000..23907d828 --- /dev/null +++ b/build/app/immutable/nodes/10.99a1db5c.js @@ -0,0 +1 @@ +import{S as et,i as lt,s as st,k as d,q as V,a as $,l as _,m as h,r as L,h as l,c as x,n as v,K as tt,b as k,D as i,J as z,H as O,L as at,y as J,z as K,A as X,d as C,f as ot,g as q,B as F,o as rt,v as ct,w as nt,W as it,X as ft}from"../chunks/index.f3b06f47.js";import{H as ut}from"../chunks/Header.b7ab37a3.js";import{L as dt}from"../chunks/Logout.35258e20.js";import{c as _t}from"../chunks/secondAuth.f9ee4b2a.js";import{m as mt}from"../chunks/store.26750aee.js";function bt(p){let e,a,r,c,s,f,m,n,b,o,w,g,y,D,B,W,I,T,H,R;return{c(){e=d("div"),a=d("button"),r=V("Lock Wallet"),c=$(),s=d("div"),f=d("div"),m=d("button"),n=V("✕"),b=$(),o=d("p"),w=V("Sure want to lock the wallet?"),g=$(),y=d("div"),D=d("button"),B=V("Cancel"),W=$(),I=d("button"),T=V("Lock"),this.h()},l(U){e=_(U,"DIV",{});var E=h(e);a=_(E,"BUTTON",{class:!0});var j=h(a);r=L(j,"Lock Wallet"),j.forEach(l),c=x(E),s=_(E,"DIV",{class:!0});var A=h(s);f=_(A,"DIV",{class:!0});var S=h(f);m=_(S,"BUTTON",{class:!0});var M=h(m);n=L(M,"✕"),M.forEach(l),b=x(S),o=_(S,"P",{class:!0});var N=h(o);w=L(N,"Sure want to lock the wallet?"),N.forEach(l),g=x(S),y=_(S,"DIV",{class:!0});var t=h(y);D=_(t,"BUTTON",{class:!0});var u=h(D);B=L(u,"Cancel"),u.forEach(l),W=x(t),I=_(t,"BUTTON",{class:!0});var P=h(I);T=L(P,"Lock"),P.forEach(l),t.forEach(l),S.forEach(l),A.forEach(l),E.forEach(l),this.h()},h(){v(a,"class","block rounded-lg shadow-lg bg-white dark:bg-gray-800 dark:text-white p-5 w-full h-auto hover:bg-slate-200 active:bg-slate-500 text-xl text-center"),v(m,"class","btn btn-sm btn-circle absolute right-2 top-2"),v(o,"class","text-xl mt-5 mb-3"),v(D,"class","btn"),v(I,"class","btn"),v(y,"class","modal-action"),v(f,"class","modal-box dark:bg-gray-900 dark:text-white"),v(s,"class","modal modal-bottom sm:modal-middle"),tt(s,"modal-open",p[0])},m(U,E){k(U,e,E),i(e,a),i(a,r),i(e,c),i(e,s),i(s,f),i(f,m),i(m,n),i(f,b),i(f,o),i(o,w),i(f,g),i(f,y),i(y,D),i(D,B),i(y,W),i(y,I),i(I,T),H||(R=[z(a,"click",p[3]),z(m,"click",p[4]),z(D,"click",p[5]),z(I,"click",p[1])],H=!0)},p(U,[E]){E&1&&tt(s,"modal-open",U[0])},i:O,o:O,d(U){U&&l(e),H=!1,at(R)}}}function kt(p,e,a){let r=!1,{isWalletUnlocked:c}=e;const s=async()=>{await mt.remove(),a(2,c=!1),a(0,r=!1)},f=()=>a(0,r=!0),m=()=>{a(0,r=!1)},n=()=>{a(0,r=!1)};return p.$$set=b=>{"isWalletUnlocked"in b&&a(2,c=b.isWalletUnlocked)},[r,s,c,f,m,n]}class ht extends et{constructor(e){super(),lt(this,e,kt,bt,st,{isWalletUnlocked:2})}}function vt(p){let e,a,r,c,s,f;return{c(){e=d("div"),a=d("h1"),r=V("Unlock the wallet"),c=$(),s=d("a"),f=V("Unlock"),this.h()},l(m){e=_(m,"DIV",{class:!0});var n=h(e);a=_(n,"H1",{class:!0});var b=h(a);r=L(b,"Unlock the wallet"),b.forEach(l),c=x(n),s=_(n,"A",{href:!0,class:!0});var o=h(s);f=L(o,"Unlock"),o.forEach(l),n.forEach(l),this.h()},h(){v(a,"class","text-3xl dark:text-yellow-200"),v(s,"href","/wallet"),v(s,"class","btn"),v(e,"class","h-[40vh] w-full p-5 flex flex-col items-center justify-evenly")},m(m,n){k(m,e,n),i(e,a),i(a,r),i(e,c),i(e,s),i(s,f)},p:O,i:O,o:O,d(m){m&&l(e)}}}function pt(p){let e,a,r,c,s,f,m,n,b,o,w,g,y,D,B,W,I,T,H,R,U,E,j,A,S;function M(t){p[1](t)}let N={};return p[0]!==void 0&&(N.isWalletUnlocked=p[0]),W=new ht({props:N}),nt.push(()=>it(W,"isWalletUnlocked",M)),E=new dt({}),{c(){e=d("br"),a=$(),r=d("h1"),c=V("Settings"),s=$(),f=d("br"),m=$(),n=d("div"),b=d("a"),o=d("div"),w=V("Show Seed Phrase"),g=$(),y=d("br"),D=$(),B=d("div"),J(W.$$.fragment),T=$(),H=d("br"),R=$(),U=d("div"),J(E.$$.fragment),j=$(),A=d("br"),this.h()},l(t){e=_(t,"BR",{}),a=x(t),r=_(t,"H1",{class:!0});var u=h(r);c=L(u,"Settings"),u.forEach(l),s=x(t),f=_(t,"BR",{}),m=x(t),n=_(t,"DIV",{class:!0});var P=h(n);b=_(P,"A",{href:!0,class:!0});var G=h(b);o=_(G,"DIV",{class:!0});var Q=h(o);w=L(Q,"Show Seed Phrase"),Q.forEach(l),G.forEach(l),P.forEach(l),g=x(t),y=_(t,"BR",{}),D=x(t),B=_(t,"DIV",{class:!0});var Y=h(B);K(W.$$.fragment,Y),Y.forEach(l),T=x(t),H=_(t,"BR",{}),R=x(t),U=_(t,"DIV",{class:!0});var Z=h(U);K(E.$$.fragment,Z),Z.forEach(l),j=x(t),A=_(t,"BR",{}),this.h()},h(){v(r,"class","text-3xl mt-5 mb-2 text-center"),v(o,"class","block rounded-lg shadow-lg bg-white dark:bg-gray-800 dark:text-white p-5 h-auto hover:bg-slate-200 active:bg-slate-500"),v(b,"href","/settings/show-secret-key"),v(b,"class","text-xl text-center"),v(n,"class","justify-center"),v(B,"class","justify-center"),v(U,"class","justify-center")},m(t,u){k(t,e,u),k(t,a,u),k(t,r,u),i(r,c),k(t,s,u),k(t,f,u),k(t,m,u),k(t,n,u),i(n,b),i(b,o),i(o,w),k(t,g,u),k(t,y,u),k(t,D,u),k(t,B,u),X(W,B,null),k(t,T,u),k(t,H,u),k(t,R,u),k(t,U,u),X(E,U,null),k(t,j,u),k(t,A,u),S=!0},p(t,u){const P={};!I&&u&1&&(I=!0,P.isWalletUnlocked=t[0],ft(()=>I=!1)),W.$set(P)},i(t){S||(q(W.$$.fragment,t),q(E.$$.fragment,t),S=!0)},o(t){C(W.$$.fragment,t),C(E.$$.fragment,t),S=!1},d(t){t&&l(e),t&&l(a),t&&l(r),t&&l(s),t&&l(f),t&&l(m),t&&l(n),t&&l(g),t&&l(y),t&&l(D),t&&l(B),F(W),t&&l(T),t&&l(H),t&&l(R),t&&l(U),F(E),t&&l(j),t&&l(A)}}}function wt(p){let e,a,r,c,s,f;a=new ut({});const m=[pt,vt],n=[];function b(o,w){return o[0]?0:1}return c=b(p),s=n[c]=m[c](p),{c(){e=d("div"),J(a.$$.fragment),r=$(),s.c()},l(o){e=_(o,"DIV",{});var w=h(e);K(a.$$.fragment,w),r=x(w),s.l(w),w.forEach(l)},m(o,w){k(o,e,w),X(a,e,null),i(e,r),n[c].m(e,null),f=!0},p(o,[w]){let g=c;c=b(o),c===g?n[c].p(o,w):(ct(),C(n[g],1,1,()=>{n[g]=null}),ot(),s=n[c],s?s.p(o,w):(s=n[c]=m[c](o),s.c()),q(s,1),s.m(e,null))},i(o){f||(q(a.$$.fragment,o),q(s),f=!0)},o(o){C(a.$$.fragment,o),C(s),f=!1},d(o){o&&l(e),F(a),n[c].d()}}}function Et(p,e,a){let r=!1;rt(async()=>{a(0,[,r]=await _t(),r)});function c(s){r=s,a(0,r)}return[r,c]}class gt extends et{constructor(e){super(),lt(this,e,Et,wt,st,{})}}export{gt as component}; diff --git a/build/app/immutable/nodes/11.ec51fcef.js b/build/app/immutable/nodes/11.5d5fd754.js similarity index 55% rename from build/app/immutable/nodes/11.ec51fcef.js rename to build/app/immutable/nodes/11.5d5fd754.js index c96a99974..4e530ee2c 100644 --- a/build/app/immutable/nodes/11.ec51fcef.js +++ b/build/app/immutable/nodes/11.5d5fd754.js @@ -1 +1 @@ -import{S as O,i as V,s as $,k as w,y as N,a as E,l as v,m as k,z as j,c as P,h as _,b as I,A as q,D as l,g as C,d as K,B as M,q as x,r as y,n as g,J as U,u as H,K as R,P as T,L as z}from"../chunks/index.83ca82d8.js";import{H as A}from"../chunks/Header.80bfed2a.js";import{a as J}from"../chunks/secondAuth.d664856c.js";import{m as F}from"../chunks/store.e259513c.js";const G=u=>{const e="mnemonic.txt",t=new Blob([u],{type:"text/plain"}),o=window.URL.createObjectURL(t),i=document.createElement("a");i.href=o,i.download=e,i.click(),window.URL.revokeObjectURL(o)};function Q(u){let e,t,o,i,s,c,p,d,a,n,r;return{c(){e=w("div"),t=w("h1"),o=x("Show Seed Phrase"),i=E(),s=w("div"),c=x(u[2]),p=E(),d=w("button"),a=x("Export mnemonic"),this.h()},l(b){e=v(b,"DIV",{});var m=k(e);t=v(m,"H1",{class:!0});var S=k(t);o=y(S,"Show Seed Phrase"),S.forEach(_),i=P(m),s=v(m,"DIV",{class:!0});var f=k(s);c=y(f,u[2]),f.forEach(_),p=P(m),d=v(m,"BUTTON",{class:!0});var h=k(d);a=y(h,"Export mnemonic"),h.forEach(_),m.forEach(_),this.h()},h(){g(t,"class","text-5xl text-left text-black dark:text-white"),g(s,"class","p-5 text-lg border rounded-md mt-5 font-semibold"),g(d,"class","btn mt-5")},m(b,m){I(b,e,m),l(e,t),l(t,o),l(e,i),l(e,s),l(s,c),l(e,p),l(e,d),l(d,a),n||(r=U(d,"click",u[4]),n=!0)},p(b,m){m&4&&H(c,b[2])},d(b){b&&_(e),n=!1,r()}}}function W(u){let e,t,o,i,s,c=(u[1].length>1?u[1]:"Enter Password")+"",p,d,a,n,r,b,m,S;return{c(){e=w("div"),t=w("h1"),o=x("Show Seed Phrase"),i=E(),s=w("p"),p=x(c),d=E(),a=w("input"),n=E(),r=w("button"),b=x("Unlock"),this.h()},l(f){e=v(f,"DIV",{});var h=k(e);t=v(h,"H1",{class:!0});var D=k(t);o=y(D,"Show Seed Phrase"),D.forEach(_),i=P(h),s=v(h,"P",{class:!0});var B=k(s);p=y(B,c),B.forEach(_),d=P(h),a=v(h,"INPUT",{type:!0,placeholder:!0,class:!0}),n=P(h),r=v(h,"BUTTON",{class:!0});var L=k(r);b=y(L,"Unlock"),L.forEach(_),h.forEach(_),this.h()},h(){g(t,"class","text-5xl text-left text-black dark:text-white"),g(s,"class","text-md mt-5 mb-3 dark:text-white dark:bg-gray-900"),R(s,"text-red-500",u[1].length>1),g(a,"type","password"),g(a,"placeholder","Enter Password"),g(a,"class","input input-bordered input-md w-full max-w-xs dark:bg-gray-700 dark:text-white"),g(r,"class","btn mt-5")},m(f,h){I(f,e,h),l(e,t),l(t,o),l(e,i),l(e,s),l(s,p),l(e,d),l(e,a),T(a,u[0]),l(e,n),l(e,r),l(r,b),m||(S=[U(a,"input",u[6]),U(r,"click",u[5])],m=!0)},p(f,h){h&2&&c!==(c=(f[1].length>1?f[1]:"Enter Password")+"")&&H(p,c),h&2&&R(s,"text-red-500",f[1].length>1),h&1&&a.value!==f[0]&&T(a,f[0])},d(f){f&&_(e),m=!1,z(S)}}}function X(u){let e,t,o,i,s,c;t=new A({});function p(n,r){return n[3]?Q:W}let d=p(u),a=d(u);return{c(){e=w("div"),N(t.$$.fragment),o=E(),i=w("br"),s=E(),a.c()},l(n){e=v(n,"DIV",{});var r=k(e);j(t.$$.fragment,r),o=P(r),i=v(r,"BR",{}),s=P(r),a.l(r),r.forEach(_)},m(n,r){I(n,e,r),q(t,e,null),l(e,o),l(e,i),l(e,s),a.m(e,null),c=!0},p(n,[r]){d===(d=p(n))&&a?a.p(n,r):(a.d(1),a=d(n),a&&(a.c(),a.m(e,null)))},i(n){c||(C(t.$$.fragment,n),c=!0)},o(n){K(t.$$.fragment,n),c=!1},d(n){n&&_(e),M(t),a.d()}}}function Y(u,e,t){let o="",i="",s="",c=!1;const p=()=>{G(s)},d=async()=>{o.length>=6?(t(3,c=J(o)),c?t(2,s=await F.get()):t(1,i="Invalid password")):t(1,i="Invalid password")};function a(){o=this.value,t(0,o)}return[o,i,s,c,p,d,a]}class se extends O{constructor(e){super(),V(this,e,Y,X,$,{})}}export{se as component}; +import{S as O,i as V,s as $,k as w,y as N,a as E,l as v,m as k,z as j,c as x,h as _,b as I,A as q,D as l,g as C,d as K,B as M,q as y,r as P,n as g,J as U,u as H,K as R,Q as T,L as z}from"../chunks/index.f3b06f47.js";import{H as A}from"../chunks/Header.b7ab37a3.js";import{a as J}from"../chunks/secondAuth.f9ee4b2a.js";import{m as Q}from"../chunks/store.26750aee.js";const F=u=>{const e="mnemonic.txt",t=new Blob([u],{type:"text/plain"}),o=window.URL.createObjectURL(t),i=document.createElement("a");i.href=o,i.download=e,i.click(),window.URL.revokeObjectURL(o)};function G(u){let e,t,o,i,s,c,p,d,a,n,r;return{c(){e=w("div"),t=w("h1"),o=y("Show Seed Phrase"),i=E(),s=w("div"),c=y(u[2]),p=E(),d=w("button"),a=y("Export mnemonic"),this.h()},l(b){e=v(b,"DIV",{});var m=k(e);t=v(m,"H1",{class:!0});var S=k(t);o=P(S,"Show Seed Phrase"),S.forEach(_),i=x(m),s=v(m,"DIV",{class:!0});var f=k(s);c=P(f,u[2]),f.forEach(_),p=x(m),d=v(m,"BUTTON",{class:!0});var h=k(d);a=P(h,"Export mnemonic"),h.forEach(_),m.forEach(_),this.h()},h(){g(t,"class","text-5xl text-left text-black dark:text-white"),g(s,"class","p-5 text-lg border rounded-md mt-5 font-semibold"),g(d,"class","btn mt-5")},m(b,m){I(b,e,m),l(e,t),l(t,o),l(e,i),l(e,s),l(s,c),l(e,p),l(e,d),l(d,a),n||(r=U(d,"click",u[4]),n=!0)},p(b,m){m&4&&H(c,b[2])},d(b){b&&_(e),n=!1,r()}}}function W(u){let e,t,o,i,s,c=(u[1].length>1?u[1]:"Enter Password")+"",p,d,a,n,r,b,m,S;return{c(){e=w("div"),t=w("h1"),o=y("Show Seed Phrase"),i=E(),s=w("p"),p=y(c),d=E(),a=w("input"),n=E(),r=w("button"),b=y("Unlock"),this.h()},l(f){e=v(f,"DIV",{});var h=k(e);t=v(h,"H1",{class:!0});var D=k(t);o=P(D,"Show Seed Phrase"),D.forEach(_),i=x(h),s=v(h,"P",{class:!0});var B=k(s);p=P(B,c),B.forEach(_),d=x(h),a=v(h,"INPUT",{type:!0,placeholder:!0,class:!0}),n=x(h),r=v(h,"BUTTON",{class:!0});var L=k(r);b=P(L,"Unlock"),L.forEach(_),h.forEach(_),this.h()},h(){g(t,"class","text-5xl text-left text-black dark:text-white"),g(s,"class","text-md mt-5 mb-3 dark:text-white dark:bg-gray-900"),R(s,"text-red-500",u[1].length>1),g(a,"type","password"),g(a,"placeholder","Enter Password"),g(a,"class","input input-bordered input-md w-full max-w-xs dark:bg-gray-700 dark:text-white"),g(r,"class","btn mt-5")},m(f,h){I(f,e,h),l(e,t),l(t,o),l(e,i),l(e,s),l(s,p),l(e,d),l(e,a),T(a,u[0]),l(e,n),l(e,r),l(r,b),m||(S=[U(a,"input",u[6]),U(r,"click",u[5])],m=!0)},p(f,h){h&2&&c!==(c=(f[1].length>1?f[1]:"Enter Password")+"")&&H(p,c),h&2&&R(s,"text-red-500",f[1].length>1),h&1&&a.value!==f[0]&&T(a,f[0])},d(f){f&&_(e),m=!1,z(S)}}}function X(u){let e,t,o,i,s,c;t=new A({});function p(n,r){return n[3]?G:W}let d=p(u),a=d(u);return{c(){e=w("div"),N(t.$$.fragment),o=E(),i=w("br"),s=E(),a.c()},l(n){e=v(n,"DIV",{});var r=k(e);j(t.$$.fragment,r),o=x(r),i=v(r,"BR",{}),s=x(r),a.l(r),r.forEach(_)},m(n,r){I(n,e,r),q(t,e,null),l(e,o),l(e,i),l(e,s),a.m(e,null),c=!0},p(n,[r]){d===(d=p(n))&&a?a.p(n,r):(a.d(1),a=d(n),a&&(a.c(),a.m(e,null)))},i(n){c||(C(t.$$.fragment,n),c=!0)},o(n){K(t.$$.fragment,n),c=!1},d(n){n&&_(e),M(t),a.d()}}}function Y(u,e,t){let o="",i="",s="",c=!1;const p=()=>{F(s)},d=async()=>{o.length>=6?(t(3,c=J(o)),c?t(2,s=await Q.get()):t(1,i="Invalid password")):t(1,i="Invalid password")};function a(){o=this.value,t(0,o)}return[o,i,s,c,p,d,a]}class se extends O{constructor(e){super(),V(this,e,Y,X,$,{})}}export{se as component}; diff --git a/build/app/immutable/nodes/12.5b7f6b3a.js b/build/app/immutable/nodes/12.e61ea9bd.js similarity index 89% rename from build/app/immutable/nodes/12.5b7f6b3a.js rename to build/app/immutable/nodes/12.e61ea9bd.js index 453ad5a4c..8a2a26d36 100644 --- a/build/app/immutable/nodes/12.5b7f6b3a.js +++ b/build/app/immutable/nodes/12.e61ea9bd.js @@ -1 +1 @@ -import{S as A,i as L,s as V,k as p,l as m,m as b,h as r,n as f,b as v,H as I,o as q,q as x,a as C,r as y,c as H,D as h,P as S,J as T,L as B}from"../chunks/index.83ca82d8.js";import{a as N}from"../chunks/secondAuth.d664856c.js";function W(k){let e,n,s,a,l,o,i,d,c,_,E;return{c(){e=p("div"),n=p("h3"),s=x("Congratulations!"),a=C(),l=p("p"),o=x("Click below to go to home page"),i=C(),d=p("div"),c=p("label"),_=p("a"),E=x("Home"),this.h()},l(w){e=m(w,"DIV",{class:!0});var t=b(e);n=m(t,"H3",{class:!0});var u=b(n);s=y(u,"Congratulations!"),u.forEach(r),a=H(t),l=m(t,"P",{class:!0});var g=b(l);o=y(g,"Click below to go to home page"),g.forEach(r),i=H(t),d=m(t,"DIV",{class:!0});var P=b(d);c=m(P,"LABEL",{for:!0,class:!0});var U=b(c);_=m(U,"A",{href:!0});var D=b(_);E=y(D,"Home"),D.forEach(r),U.forEach(r),P.forEach(r),t.forEach(r),this.h()},h(){f(n,"class","font-bold text-lg"),f(l,"class","py-4"),f(_,"href","/"),f(c,"for","my-modal"),f(c,"class","btn"),f(d,"class","modal-action"),f(e,"class","modal-box dark:text-white dark:bg-gray-800")},m(w,t){v(w,e,t),h(e,n),h(n,s),h(e,a),h(e,l),h(l,o),h(e,i),h(e,d),h(d,c),h(c,_),h(_,E)},p:I,d(w){w&&r(e)}}}function $(k){let e,n,s,a,l,o,i,d,c,_,E,w;return{c(){e=p("h1"),n=x("Wallet is locked!"),s=C(),a=p("p"),l=x("Enter Password"),o=C(),i=p("input"),d=C(),c=p("button"),_=x("Unlock"),this.h()},l(t){e=m(t,"H1",{class:!0});var u=b(e);n=y(u,"Wallet is locked!"),u.forEach(r),s=H(t),a=m(t,"P",{class:!0});var g=b(a);l=y(g,"Enter Password"),g.forEach(r),o=H(t),i=m(t,"INPUT",{type:!0,placeholder:!0,class:!0}),d=H(t),c=m(t,"BUTTON",{class:!0});var P=b(c);_=y(P,"Unlock"),P.forEach(r),this.h()},h(){f(e,"class","text-5xl text-left text-black dark:text-white"),f(a,"class","text-md mt-5 mb-3 dark:text-white dark:bg-gray-900"),f(i,"type","password"),f(i,"placeholder","Enter Password"),f(i,"class","input input-bordered input-md w-full max-w-xs dark:bg-gray-700 dark:text-white"),f(c,"class","btn mt-5")},m(t,u){v(t,e,u),h(e,n),v(t,s,u),v(t,a,u),h(a,l),v(t,o,u),v(t,i,u),S(i,k[0]),v(t,d,u),v(t,c,u),h(c,_),E||(w=[T(i,"input",k[3]),T(c,"click",k[2])],E=!0)},p(t,u){u&1&&i.value!==t[0]&&S(i,t[0])},d(t){t&&r(e),t&&r(s),t&&r(a),t&&r(o),t&&r(i),t&&r(d),t&&r(c),E=!1,B(w)}}}function j(k){let e;function n(l,o){return l[1]==!1?$:W}let s=n(k),a=s(k);return{c(){e=p("div"),a.c(),this.h()},l(l){e=m(l,"DIV",{class:!0});var o=b(e);a.l(o),o.forEach(r),this.h()},h(){f(e,"class","bg-white dark:text-white dark:bg-gray-900")},m(l,o){v(l,e,o),a.m(e,null)},p(l,[o]){s===(s=n(l))&&a?a.p(l,o):(a.d(1),a=s(l),a&&(a.c(),a.m(e,null)))},i:I,o:I,d(l){l&&r(e),a.d()}}}function J(k,e,n){let s="",a=!1;function l(){return N(s)}const o=()=>{s.length>=6&&l()&&n(1,a=!0)};q(()=>{localStorage.removeItem("jwtToken")});function i(){s=this.value,n(0,s)}return[s,a,o,i]}class z extends A{constructor(e){super(),L(this,e,J,j,V,{})}}export{z as component}; +import{S as A,i as L,s as V,k as p,l as m,m as b,h as r,n as f,b as v,H as I,o as q,q as x,a as C,r as y,c as H,D as h,Q as S,J as T,L as B}from"../chunks/index.f3b06f47.js";import{a as N}from"../chunks/secondAuth.f9ee4b2a.js";function W(k){let e,n,s,a,l,o,i,d,c,_,E;return{c(){e=p("div"),n=p("h3"),s=x("Congratulations!"),a=C(),l=p("p"),o=x("Click below to go to home page"),i=C(),d=p("div"),c=p("label"),_=p("a"),E=x("Home"),this.h()},l(w){e=m(w,"DIV",{class:!0});var t=b(e);n=m(t,"H3",{class:!0});var u=b(n);s=y(u,"Congratulations!"),u.forEach(r),a=H(t),l=m(t,"P",{class:!0});var g=b(l);o=y(g,"Click below to go to home page"),g.forEach(r),i=H(t),d=m(t,"DIV",{class:!0});var P=b(d);c=m(P,"LABEL",{for:!0,class:!0});var U=b(c);_=m(U,"A",{href:!0});var D=b(_);E=y(D,"Home"),D.forEach(r),U.forEach(r),P.forEach(r),t.forEach(r),this.h()},h(){f(n,"class","font-bold text-lg"),f(l,"class","py-4"),f(_,"href","/"),f(c,"for","my-modal"),f(c,"class","btn"),f(d,"class","modal-action"),f(e,"class","modal-box dark:text-white dark:bg-gray-800")},m(w,t){v(w,e,t),h(e,n),h(n,s),h(e,a),h(e,l),h(l,o),h(e,i),h(e,d),h(d,c),h(c,_),h(_,E)},p:I,d(w){w&&r(e)}}}function $(k){let e,n,s,a,l,o,i,d,c,_,E,w;return{c(){e=p("h1"),n=x("Wallet is locked!"),s=C(),a=p("p"),l=x("Enter Password"),o=C(),i=p("input"),d=C(),c=p("button"),_=x("Unlock"),this.h()},l(t){e=m(t,"H1",{class:!0});var u=b(e);n=y(u,"Wallet is locked!"),u.forEach(r),s=H(t),a=m(t,"P",{class:!0});var g=b(a);l=y(g,"Enter Password"),g.forEach(r),o=H(t),i=m(t,"INPUT",{type:!0,placeholder:!0,class:!0}),d=H(t),c=m(t,"BUTTON",{class:!0});var P=b(c);_=y(P,"Unlock"),P.forEach(r),this.h()},h(){f(e,"class","text-5xl text-left text-black dark:text-white"),f(a,"class","text-md mt-5 mb-3 dark:text-white dark:bg-gray-900"),f(i,"type","password"),f(i,"placeholder","Enter Password"),f(i,"class","input input-bordered input-md w-full max-w-xs dark:bg-gray-700 dark:text-white"),f(c,"class","btn mt-5")},m(t,u){v(t,e,u),h(e,n),v(t,s,u),v(t,a,u),h(a,l),v(t,o,u),v(t,i,u),S(i,k[0]),v(t,d,u),v(t,c,u),h(c,_),E||(w=[T(i,"input",k[3]),T(c,"click",k[2])],E=!0)},p(t,u){u&1&&i.value!==t[0]&&S(i,t[0])},d(t){t&&r(e),t&&r(s),t&&r(a),t&&r(o),t&&r(i),t&&r(d),t&&r(c),E=!1,B(w)}}}function j(k){let e;function n(l,o){return l[1]==!1?$:W}let s=n(k),a=s(k);return{c(){e=p("div"),a.c(),this.h()},l(l){e=m(l,"DIV",{class:!0});var o=b(e);a.l(o),o.forEach(r),this.h()},h(){f(e,"class","bg-white dark:text-white dark:bg-gray-900")},m(l,o){v(l,e,o),a.m(e,null)},p(l,[o]){s===(s=n(l))&&a?a.p(l,o):(a.d(1),a=s(l),a&&(a.c(),a.m(e,null)))},i:I,o:I,d(l){l&&r(e),a.d()}}}function J(k,e,n){let s="",a=!1;function l(){return N(s)}const o=()=>{s.length>=6&&l()&&n(1,a=!0)};q(()=>{localStorage.removeItem("jwtToken")});function i(){s=this.value,n(0,s)}return[s,a,o,i]}class Q extends A{constructor(e){super(),L(this,e,J,j,V,{})}}export{Q as component}; diff --git a/build/app/immutable/nodes/13.f4cffe6b.js b/build/app/immutable/nodes/13.34858a47.js similarity index 95% rename from build/app/immutable/nodes/13.f4cffe6b.js rename to build/app/immutable/nodes/13.34858a47.js index c6044e118..e5d7f83d9 100644 --- a/build/app/immutable/nodes/13.f4cffe6b.js +++ b/build/app/immutable/nodes/13.34858a47.js @@ -1 +1 @@ -import{S as Ie,i as we,s as He,k as d,q as I,a as k,y as Pe,l as u,m as p,r as w,h as f,c as D,z as Ve,n as y,K as be,b as C,D as s,A as Te,u as K,g as Ae,d as Se,B as $e,I as Le,o as Ne}from"../chunks/index.83ca82d8.js";import{p as qe}from"../chunks/stores.1e365101.js";import{w as ze}from"../chunks/store.e259513c.js";import{P as Be,N as Ge}from"../chunks/index.045ff416.js";import{L as Re}from"../chunks/Loader.7a0edb34.js";function Ee(n){var h,c;let e,l=((h=n[0])==null?void 0:h.sender.substring(0,6))+"......"+((c=n[0])==null?void 0:c.sender.slice(-4)),o;return{c(){e=d("p"),o=I(l)},l(a){e=u(a,"P",{});var r=p(e);o=w(r,l),r.forEach(f)},m(a,r){C(a,e,r),s(e,o)},p(a,r){var t,m;r&1&&l!==(l=((t=a[0])==null?void 0:t.sender.substring(0,6))+"......"+((m=a[0])==null?void 0:m.sender.slice(-4)))&&K(o,l)},d(a){a&&f(e)}}}function ye(n){var h,c;let e,l=((h=n[0])==null?void 0:h.hash.substring(0,8))+"......"+((c=n[0])==null?void 0:c.hash.slice(-4)),o;return{c(){e=d("p"),o=I(l)},l(a){e=u(a,"P",{});var r=p(e);o=w(r,l),r.forEach(f)},m(a,r){C(a,e,r),s(e,o)},p(a,r){var t,m;r&1&&l!==(l=((t=a[0])==null?void 0:t.hash.substring(0,8))+"......"+((m=a[0])==null?void 0:m.hash.slice(-4)))&&K(o,l)},d(a){a&&f(e)}}}function ke(n){var h;let e,l=parseInt((h=n[0])==null?void 0:h.payload.arguments[1])/1e5+"",o;return{c(){e=d("p"),o=I(l)},l(c){e=u(c,"P",{});var a=p(e);o=w(a,l),a.forEach(f)},m(c,a){C(c,e,a),s(e,o)},p(c,a){var r;a&1&&l!==(l=parseInt((r=c[0])==null?void 0:r.payload.arguments[1])/1e5+"")&&K(o,l)},d(c){c&&f(e)}}}function De(n){var h,c;let e,l=((h=n[0])==null?void 0:h.payload.arguments[0].substring(0,8))+"......"+((c=n[0])==null?void 0:c.payload.arguments[0].slice(-4)),o;return{c(){e=d("p"),o=I(l)},l(a){e=u(a,"P",{});var r=p(e);o=w(r,l),r.forEach(f)},m(a,r){C(a,e,r),s(e,o)},p(a,r){var t,m;r&1&&l!==(l=((t=a[0])==null?void 0:t.payload.arguments[0].substring(0,8))+"......"+((m=a[0])==null?void 0:m.payload.arguments[0].slice(-4)))&&K(o,l)},d(a){a&&f(e)}}}function je(n){let e,l,o,h,c,a,r,t,m,L,W,X,Y,P,N,Z,x,ee,A,q,ae,se,R,j=n[0].gas_unit_price+"",M,le,V,z,te,re,ne,T,B,oe,ie,ce,S,$,G,v=n[0].sender&&Ee(n),g=n[0].hash&&ye(n),b=n[0].payload&&n[0].payload.arguments&&ke(n),E=n[0].payload&&n[0].payload.arguments&&De(n);return $=new Re({}),{c(){e=d("div"),l=d("a"),o=I("back"),h=k(),c=d("h3"),a=I("Transaction Details"),r=k(),t=d("div"),m=d("div"),L=d("h3"),W=I("Sender:"),X=k(),v&&v.c(),Y=k(),P=d("div"),N=d("h3"),Z=I("Hash:"),x=k(),g&&g.c(),ee=k(),A=d("div"),q=d("h3"),ae=I("Gas:"),se=k(),R=d("p"),M=I(j),le=k(),V=d("div"),z=d("h3"),te=I("Amount:"),re=k(),b&&b.c(),ne=k(),T=d("div"),B=d("h3"),oe=I("Receiver:"),ie=k(),E&&E.c(),ce=k(),S=d("div"),Pe($.$$.fragment),this.h()},l(i){e=u(i,"DIV",{class:!0});var _=p(e);l=u(_,"A",{href:!0,class:!0});var fe=p(l);o=w(fe,"back"),fe.forEach(f),h=D(_),c=u(_,"H3",{class:!0});var de=p(c);a=w(de,"Transaction Details"),de.forEach(f),r=D(_),t=u(_,"DIV",{class:!0});var H=p(t);m=u(H,"DIV",{class:!0});var F=p(m);L=u(F,"H3",{class:!0});var ue=p(L);W=w(ue,"Sender:"),ue.forEach(f),X=D(F),v&&v.l(F),F.forEach(f),Y=D(H),P=u(H,"DIV",{class:!0});var J=p(P);N=u(J,"H3",{class:!0});var pe=p(N);Z=w(pe,"Hash:"),pe.forEach(f),x=D(J),g&&g.l(J),J.forEach(f),ee=D(H),A=u(H,"DIV",{class:!0});var O=p(A);q=u(O,"H3",{class:!0});var he=p(q);ae=w(he,"Gas:"),he.forEach(f),se=D(O),R=u(O,"P",{});var me=p(R);M=w(me,j),me.forEach(f),O.forEach(f),le=D(H),V=u(H,"DIV",{class:!0});var Q=p(V);z=u(Q,"H3",{class:!0});var _e=p(z);te=w(_e,"Amount:"),_e.forEach(f),re=D(Q),b&&b.l(Q),Q.forEach(f),ne=D(H),T=u(H,"DIV",{class:!0});var U=p(T);B=u(U,"H3",{class:!0});var ve=p(B);oe=w(ve,"Receiver:"),ve.forEach(f),ie=D(U),E&&E.l(U),U.forEach(f),H.forEach(f),ce=D(_),S=u(_,"DIV",{class:!0});var ge=p(S);Ve($.$$.fragment,ge),ge.forEach(f),_.forEach(f),this.h()},h(){y(l,"href","/wallet"),y(l,"class","text-gray-900 dark:text-white no-underline"),y(c,"class","text-center font-bold"),y(L,"class","basis-1/4"),y(m,"class","flex gap-4"),y(N,"class","basis-1/4"),y(P,"class","flex gap-4"),y(q,"class","basis-1/4"),y(A,"class","flex gap-4"),y(z,"class","basis-1/4"),y(V,"class","flex gap-4"),y(B,"class","basis-1/4"),y(T,"class","flex gap-4"),y(t,"class","p-4 my-8 border border-white rounded-lg"),y(S,"class","modal h-screen z-10 absolute top-0 flex justify-center items-center"),be(S,"modal-open",n[1]),y(e,"class","p-8")},m(i,_){C(i,e,_),s(e,l),s(l,o),s(e,h),s(e,c),s(c,a),s(e,r),s(e,t),s(t,m),s(m,L),s(L,W),s(m,X),v&&v.m(m,null),s(t,Y),s(t,P),s(P,N),s(N,Z),s(P,x),g&&g.m(P,null),s(t,ee),s(t,A),s(A,q),s(q,ae),s(A,se),s(A,R),s(R,M),s(t,le),s(t,V),s(V,z),s(z,te),s(V,re),b&&b.m(V,null),s(t,ne),s(t,T),s(T,B),s(B,oe),s(T,ie),E&&E.m(T,null),s(e,ce),s(e,S),Te($,S,null),G=!0},p(i,[_]){i[0].sender?v?v.p(i,_):(v=Ee(i),v.c(),v.m(m,null)):v&&(v.d(1),v=null),i[0].hash?g?g.p(i,_):(g=ye(i),g.c(),g.m(P,null)):g&&(g.d(1),g=null),(!G||_&1)&&j!==(j=i[0].gas_unit_price+"")&&K(M,j),i[0].payload&&i[0].payload.arguments?b?b.p(i,_):(b=ke(i),b.c(),b.m(V,null)):b&&(b.d(1),b=null),i[0].payload&&i[0].payload.arguments?E?E.p(i,_):(E=De(i),E.c(),E.m(T,null)):E&&(E.d(1),E=null),(!G||_&2)&&be(S,"modal-open",i[1])},i(i){G||(Ae($.$$.fragment,i),G=!0)},o(i){Se($.$$.fragment,i),G=!1},d(i){i&&f(e),v&&v.d(),g&&g.d(),b&&b.d(),E&&E.d(),$e($)}}}function Ce(n,e,l){let o;Le(n,qe,t=>l(3,o=t));let h=[],{params:c}=o,a=!1;ze.subscribe(t=>t);const r=async()=>{l(1,a=!0);try{const t=new Be(Ge.TESTNET);l(0,h=await t.getTransactionByHash(c.hash))}catch{}finally{l(1,a=!1)}};return Ne(()=>{r()}),[h,a]}class Qe extends Ie{constructor(e){super(),we(this,e,Ce,je,He,{})}}export{Qe as component}; +import{S as Ie,i as we,s as He,k as d,q as I,a as k,y as Pe,l as u,m as p,r as w,h as f,c as D,z as Ve,n as y,K as be,b as C,D as s,A as Te,u as K,g as Ae,d as Se,B as $e,I as Le,o as Ne}from"../chunks/index.f3b06f47.js";import{p as qe}from"../chunks/stores.fcb3ce1c.js";import{w as ze}from"../chunks/store.26750aee.js";import{P as Be,N as Ge}from"../chunks/index.ec3c65db.js";import{L as Re}from"../chunks/Loader.d36557e7.js";function Ee(n){var h,c;let e,l=((h=n[0])==null?void 0:h.sender.substring(0,6))+"......"+((c=n[0])==null?void 0:c.sender.slice(-4)),o;return{c(){e=d("p"),o=I(l)},l(a){e=u(a,"P",{});var r=p(e);o=w(r,l),r.forEach(f)},m(a,r){C(a,e,r),s(e,o)},p(a,r){var t,m;r&1&&l!==(l=((t=a[0])==null?void 0:t.sender.substring(0,6))+"......"+((m=a[0])==null?void 0:m.sender.slice(-4)))&&K(o,l)},d(a){a&&f(e)}}}function ye(n){var h,c;let e,l=((h=n[0])==null?void 0:h.hash.substring(0,8))+"......"+((c=n[0])==null?void 0:c.hash.slice(-4)),o;return{c(){e=d("p"),o=I(l)},l(a){e=u(a,"P",{});var r=p(e);o=w(r,l),r.forEach(f)},m(a,r){C(a,e,r),s(e,o)},p(a,r){var t,m;r&1&&l!==(l=((t=a[0])==null?void 0:t.hash.substring(0,8))+"......"+((m=a[0])==null?void 0:m.hash.slice(-4)))&&K(o,l)},d(a){a&&f(e)}}}function ke(n){var h;let e,l=parseInt((h=n[0])==null?void 0:h.payload.arguments[1])/1e5+"",o;return{c(){e=d("p"),o=I(l)},l(c){e=u(c,"P",{});var a=p(e);o=w(a,l),a.forEach(f)},m(c,a){C(c,e,a),s(e,o)},p(c,a){var r;a&1&&l!==(l=parseInt((r=c[0])==null?void 0:r.payload.arguments[1])/1e5+"")&&K(o,l)},d(c){c&&f(e)}}}function De(n){var h,c;let e,l=((h=n[0])==null?void 0:h.payload.arguments[0].substring(0,8))+"......"+((c=n[0])==null?void 0:c.payload.arguments[0].slice(-4)),o;return{c(){e=d("p"),o=I(l)},l(a){e=u(a,"P",{});var r=p(e);o=w(r,l),r.forEach(f)},m(a,r){C(a,e,r),s(e,o)},p(a,r){var t,m;r&1&&l!==(l=((t=a[0])==null?void 0:t.payload.arguments[0].substring(0,8))+"......"+((m=a[0])==null?void 0:m.payload.arguments[0].slice(-4)))&&K(o,l)},d(a){a&&f(e)}}}function je(n){let e,l,o,h,c,a,r,t,m,L,W,X,Y,P,N,Z,x,ee,A,q,ae,se,R,j=n[0].gas_unit_price+"",M,le,V,z,te,re,ne,T,B,oe,ie,ce,S,$,G,v=n[0].sender&&Ee(n),g=n[0].hash&&ye(n),b=n[0].payload&&n[0].payload.arguments&&ke(n),E=n[0].payload&&n[0].payload.arguments&&De(n);return $=new Re({}),{c(){e=d("div"),l=d("a"),o=I("back"),h=k(),c=d("h3"),a=I("Transaction Details"),r=k(),t=d("div"),m=d("div"),L=d("h3"),W=I("Sender:"),X=k(),v&&v.c(),Y=k(),P=d("div"),N=d("h3"),Z=I("Hash:"),x=k(),g&&g.c(),ee=k(),A=d("div"),q=d("h3"),ae=I("Gas:"),se=k(),R=d("p"),M=I(j),le=k(),V=d("div"),z=d("h3"),te=I("Amount:"),re=k(),b&&b.c(),ne=k(),T=d("div"),B=d("h3"),oe=I("Receiver:"),ie=k(),E&&E.c(),ce=k(),S=d("div"),Pe($.$$.fragment),this.h()},l(i){e=u(i,"DIV",{class:!0});var _=p(e);l=u(_,"A",{href:!0,class:!0});var fe=p(l);o=w(fe,"back"),fe.forEach(f),h=D(_),c=u(_,"H3",{class:!0});var de=p(c);a=w(de,"Transaction Details"),de.forEach(f),r=D(_),t=u(_,"DIV",{class:!0});var H=p(t);m=u(H,"DIV",{class:!0});var F=p(m);L=u(F,"H3",{class:!0});var ue=p(L);W=w(ue,"Sender:"),ue.forEach(f),X=D(F),v&&v.l(F),F.forEach(f),Y=D(H),P=u(H,"DIV",{class:!0});var J=p(P);N=u(J,"H3",{class:!0});var pe=p(N);Z=w(pe,"Hash:"),pe.forEach(f),x=D(J),g&&g.l(J),J.forEach(f),ee=D(H),A=u(H,"DIV",{class:!0});var O=p(A);q=u(O,"H3",{class:!0});var he=p(q);ae=w(he,"Gas:"),he.forEach(f),se=D(O),R=u(O,"P",{});var me=p(R);M=w(me,j),me.forEach(f),O.forEach(f),le=D(H),V=u(H,"DIV",{class:!0});var Q=p(V);z=u(Q,"H3",{class:!0});var _e=p(z);te=w(_e,"Amount:"),_e.forEach(f),re=D(Q),b&&b.l(Q),Q.forEach(f),ne=D(H),T=u(H,"DIV",{class:!0});var U=p(T);B=u(U,"H3",{class:!0});var ve=p(B);oe=w(ve,"Receiver:"),ve.forEach(f),ie=D(U),E&&E.l(U),U.forEach(f),H.forEach(f),ce=D(_),S=u(_,"DIV",{class:!0});var ge=p(S);Ve($.$$.fragment,ge),ge.forEach(f),_.forEach(f),this.h()},h(){y(l,"href","/wallet"),y(l,"class","text-gray-900 dark:text-white no-underline"),y(c,"class","text-center font-bold"),y(L,"class","basis-1/4"),y(m,"class","flex gap-4"),y(N,"class","basis-1/4"),y(P,"class","flex gap-4"),y(q,"class","basis-1/4"),y(A,"class","flex gap-4"),y(z,"class","basis-1/4"),y(V,"class","flex gap-4"),y(B,"class","basis-1/4"),y(T,"class","flex gap-4"),y(t,"class","p-4 my-8 border border-white rounded-lg"),y(S,"class","modal h-screen z-10 absolute top-0 flex justify-center items-center"),be(S,"modal-open",n[1]),y(e,"class","p-8")},m(i,_){C(i,e,_),s(e,l),s(l,o),s(e,h),s(e,c),s(c,a),s(e,r),s(e,t),s(t,m),s(m,L),s(L,W),s(m,X),v&&v.m(m,null),s(t,Y),s(t,P),s(P,N),s(N,Z),s(P,x),g&&g.m(P,null),s(t,ee),s(t,A),s(A,q),s(q,ae),s(A,se),s(A,R),s(R,M),s(t,le),s(t,V),s(V,z),s(z,te),s(V,re),b&&b.m(V,null),s(t,ne),s(t,T),s(T,B),s(B,oe),s(T,ie),E&&E.m(T,null),s(e,ce),s(e,S),Te($,S,null),G=!0},p(i,[_]){i[0].sender?v?v.p(i,_):(v=Ee(i),v.c(),v.m(m,null)):v&&(v.d(1),v=null),i[0].hash?g?g.p(i,_):(g=ye(i),g.c(),g.m(P,null)):g&&(g.d(1),g=null),(!G||_&1)&&j!==(j=i[0].gas_unit_price+"")&&K(M,j),i[0].payload&&i[0].payload.arguments?b?b.p(i,_):(b=ke(i),b.c(),b.m(V,null)):b&&(b.d(1),b=null),i[0].payload&&i[0].payload.arguments?E?E.p(i,_):(E=De(i),E.c(),E.m(T,null)):E&&(E.d(1),E=null),(!G||_&2)&&be(S,"modal-open",i[1])},i(i){G||(Ae($.$$.fragment,i),G=!0)},o(i){Se($.$$.fragment,i),G=!1},d(i){i&&f(e),v&&v.d(),g&&g.d(),b&&b.d(),E&&E.d(),$e($)}}}function Ce(n,e,l){let o;Le(n,qe,t=>l(3,o=t));let h=[],{params:c}=o,a=!1;ze.subscribe(t=>t);const r=async()=>{l(1,a=!0);try{const t=new Be(Ge.TESTNET);l(0,h=await t.getTransactionByHash(c.hash))}catch{}finally{l(1,a=!1)}};return Ne(()=>{r()}),[h,a]}class Qe extends Ie{constructor(e){super(),we(this,e,Ce,je,He,{})}}export{Qe as component}; diff --git a/build/app/immutable/nodes/14.64b23fc3.js b/build/app/immutable/nodes/14.64b23fc3.js new file mode 100644 index 000000000..4da19c7b3 --- /dev/null +++ b/build/app/immutable/nodes/14.64b23fc3.js @@ -0,0 +1,9 @@ +import{S as he,i as _e,s as pe,k as f,a as D,q as U,l as h,m as g,h as c,c as A,r as S,n as i,K as oe,U as xe,b as L,D as r,J as ee,v as ye,d as F,f as we,g as Q,u as ne,L as Ee,o as ve,y as te,z as le,A as re,H as K,B as ae,V as Qe,Q as He}from"../chunks/index.f3b06f47.js";import{c as Le,a as Me}from"../chunks/secondAuth.f9ee4b2a.js";import{g as Fe,I as Ge,a as je}from"../chunks/qrCode.9ed71917.js";import{w as $e}from"../chunks/store.26750aee.js";import{P as qe,N as Ye,A as Je,a as Ke,C as Xe}from"../chunks/index.ec3c65db.js";import{b as Ze,c as et}from"../chunks/public.02ab71de.js";import{L as tt}from"../chunks/Loader.d36557e7.js";import{L as lt}from"../chunks/Logout.35258e20.js";import{H as rt}from"../chunks/Header.b7ab37a3.js";function at(d){let e,l;return e=new Ge({props:{src:je,color:"#11D9C5"}}),{c(){te(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,a){re(e,t,a),l=!0},p:K,i(t){l||(Q(e.$$.fragment,t),l=!0)},o(t){F(e.$$.fragment,t),l=!1},d(t){ae(e,t)}}}function st(d){let e;return{c(){e=U("COPIED")},l(l){e=S(l,"COPIED")},m(l,t){L(l,e,t)},p:K,i:K,o:K,d(l){l&&c(e)}}}function nt(d){let e,l;return{c(){e=f("p"),l=U("Generating QR code...")},l(t){e=h(t,"P",{});var a=g(e);l=S(a,"Generating QR code..."),a.forEach(c)},m(t,a){L(t,e,a),r(e,l)},p:K,d(t){t&&c(e)}}}function ot(d){let e,l;return{c(){e=f("img"),this.h()},l(t){e=h(t,"IMG",{src:!0,alt:!0,class:!0}),this.h()},h(){xe(e.src,l=d[3])||i(e,"src",l),i(e,"alt","QR Code"),i(e,"class","w-full")},m(t,a){L(t,e,a)},p(t,a){a&8&&!xe(e.src,l=t[3])&&i(e,"src",l)},d(t){t&&c(e)}}}function ct(d){let e,l,t,a,p,s,o,n,u,b,$,P,N,B,m,_,C,v,y,T,E,w=d[1].substring(0,25)+"...",k,x,V,I,H,O,z,q,G,se=d[0].substring(0,5)+"...",Y,J,Z,ie,W;const me=[st,at],X=[];function be(R,M){return R[2]?0:1}a=be(d),p=X[a]=me[a](d);function ge(R,M){return R[3]?ot:nt}let ce=ge(d),j=ce(d);return{c(){e=f("div"),l=f("div"),t=f("button"),p.c(),s=D(),o=f("div"),n=f("label"),u=f("button"),b=U("Show QR Code"),$=D(),P=f("input"),N=D(),B=f("div"),m=f("div"),_=f("label"),C=U("✕"),v=D(),y=f("div"),j.c(),T=D(),E=f("p"),k=U(w),x=D(),V=f("div"),I=f("div"),H=f("img"),z=D(),q=f("div"),G=f("span"),Y=U(se),J=U(" APT"),this.h()},l(R){e=h(R,"DIV",{class:!0});var M=g(e);l=h(M,"DIV",{class:!0});var de=g(l);t=h(de,"BUTTON",{class:!0});var De=g(t);p.l(De),De.forEach(c),de.forEach(c),s=A(M),o=h(M,"DIV",{class:!0});var ue=g(o);n=h(ue,"LABEL",{for:!0});var Ae=g(n);u=h(Ae,"BUTTON",{class:!0});var Ie=g(u);b=S(Ie,"Show QR Code"),Ie.forEach(c),Ae.forEach(c),$=A(ue),P=h(ue,"INPUT",{type:!0,id:!0,class:!0}),N=A(ue),B=h(ue,"DIV",{class:!0});var Pe=g(B);m=h(Pe,"DIV",{class:!0});var fe=g(m);_=h(fe,"LABEL",{for:!0,class:!0});var Ne=g(_);C=S(Ne,"✕"),Ne.forEach(c),v=A(fe),y=h(fe,"DIV",{class:!0});var Be=g(y);j.l(Be),Be.forEach(c),T=A(fe),E=h(fe,"P",{});var Ce=g(E);k=S(Ce,w),Ce.forEach(c),fe.forEach(c),Pe.forEach(c),ue.forEach(c),x=A(M),V=h(M,"DIV",{class:!0});var ke=g(V);I=h(ke,"DIV",{class:!0});var Ue=g(I);H=h(Ue,"IMG",{src:!0,alt:!0,class:!0}),Ue.forEach(c),z=A(ke),q=h(ke,"DIV",{class:!0});var Se=g(q);G=h(Se,"SPAN",{class:!0});var Te=g(G);Y=S(Te,se),J=S(Te," APT"),Te.forEach(c),Se.forEach(c),ke.forEach(c),M.forEach(c),this.h()},h(){i(t,"class","ml-1 px-4 py-2 rounded-xl bg-zinc-200 text-white w-auto h-auto content-around border border-[#11D9C5] dark:bg-gray-700"),oe(t,"bg-gray-600",d[2]),i(l,"class","flex items-center mb-4"),i(u,"class","ml-1 px-4 py-2 rounded-xl bg-zinc-200 text-black w-auto h-auto content-around dark:bg-gray-700 dark:text-white"),i(n,"for","my-modal-3"),i(P,"type","checkbox"),i(P,"id","my-modal-3"),i(P,"class","modal-toggle"),i(_,"for","my-modal-3"),i(_,"class","btn btn-sm btn-circle absolute right-2 top-2"),i(y,"class","py-10"),i(m,"class","modal-box relative dark:bg-gray-800 dark:text-gray-100"),i(B,"class","modal"),i(o,"class","flex items-center mb-4"),xe(H.src,O=it)||i(H,"src",O),i(H,"alt","Netsepio "),i(H,"class","h-16 w-16 flex items-center mx-28 mb-4"),i(I,"class","flex items-center mb-4"),i(G,"class","text-3xl text-center"),i(q,"class","flex justify-center"),i(V,"class","flex flex-col mb-4"),i(e,"class","flex flex-col items-center")},m(R,M){L(R,e,M),r(e,l),r(l,t),X[a].m(t,null),r(e,s),r(e,o),r(o,n),r(n,u),r(u,b),r(o,$),r(o,P),r(o,N),r(o,B),r(B,m),r(m,_),r(_,C),r(m,v),r(m,y),j.m(y,null),r(m,T),r(m,E),r(E,k),r(e,x),r(e,V),r(V,I),r(I,H),r(V,z),r(V,q),r(q,G),r(G,Y),r(G,J),Z=!0,ie||(W=[ee(t,"click",d[4]),ee(u,"click",d[5])],ie=!0)},p(R,[M]){let de=a;a=be(R),a===de?X[a].p(R,M):(ye(),F(X[de],1,1,()=>{X[de]=null}),we(),p=X[a],p?p.p(R,M):(p=X[a]=me[a](R),p.c()),Q(p,1),p.m(t,null)),(!Z||M&4)&&oe(t,"bg-gray-600",R[2]),ce===(ce=ge(R))&&j?j.p(R,M):(j.d(1),j=ce(R),j&&(j.c(),j.m(y,null))),(!Z||M&2)&&w!==(w=R[1].substring(0,25)+"...")&&ne(k,w),(!Z||M&1)&&se!==(se=R[0].substring(0,5)+"...")&&ne(Y,se)},i(R){Z||(Q(p),Z=!0)},o(R){F(p),Z=!1},d(R){R&&c(e),X[a].d(),j.d(),ie=!1,Ee(W)}}}let it="/aptos-logo.png";function dt(d,e,l){let t,a="",p=!1,s="",{balance:o}=e;$e.subscribe($=>l(1,a=$));const n=()=>{navigator.clipboard.writeText(a),l(2,p=!0)};async function u(){l(3,s=await Fe(a))}function b(){const $=document.getElementById("my-modal-3");$.checked=!0}return ve(async()=>{u()}),d.$$set=$=>{"balance"in $&&l(6,o=$.balance)},d.$$.update=()=>{d.$$.dirty&64&&l(0,t=Number(o/1e8).toFixed(8))},[t,a,p,s,n,b,o]}class ut extends he{constructor(e){super(),_e(this,e,dt,ct,pe,{balance:6})}}function Ve(d,e,l){const t=d.slice();return t[3]=e[l],t}function ft(d){let e,l;return{c(){e=f("h1"),l=U("No data to show"),this.h()},l(t){e=h(t,"H1",{class:!0});var a=g(e);l=S(a,"No data to show"),a.forEach(c),this.h()},h(){i(e,"class","text-lg text-center")},m(t,a){L(t,e,a),r(e,l)},p:K,d(t){t&&c(e)}}}function ht(d){let e,l,t,a,p,s,o,n,u,b,$,P,N,B,m,_,C=d[0],v=[];for(let y=0;y0?ht:ft}let s=p(d),o=s(d);return{c(){e=f("div"),l=f("label"),t=U("Activity"),a=D(),o.c(),this.h()},l(n){e=h(n,"DIV",{class:!0});var u=g(e);l=h(u,"LABEL",{class:!0,for:!0});var b=g(l);t=S(b,"Activity"),b.forEach(c),a=A(u),o.l(u),u.forEach(c),this.h()},h(){i(l,"class","text-lg font-bold mb-2"),i(l,"for","transactions-table"),i(e,"class","flex flex-col mb-4")},m(n,u){L(n,e,u),r(e,l),r(l,t),r(e,a),o.m(e,null)},p(n,[u]){s===(s=p(n))&&o?o.p(n,u):(o.d(1),o=s(n),o&&(o.c(),o.m(e,null)))},i:K,o:K,d(n){n&&c(e),o.d()}}}function bt(d,e,l){let t=[],a;$e.subscribe(s=>l(1,a=s));const p=async()=>{const s=new qe(Ye.TESTNET);l(0,t=await s.getAccountTransactions(a))};return ve(()=>{p()}),[t,a]}class gt extends he{constructor(e){super(),_e(this,e,bt,mt,pe,{})}}const vt=` +query MyQuery($walletAddress: String!) { + reviewCreateds(where: {receiver: $walletAddress}) { + tokenId + domainAddress + metadataURI + } +} +`,kt=async(d,e={})=>{try{const t=await(await fetch(Ze,{method:"POST",redirect:"follow",body:JSON.stringify({query:d,variables:e})})).json();if(t.errors)throw new Error(t.errors[0].message);return t.data}catch(l){throw l}};function Oe(d,e,l){const t=d.slice();return t[5]=e[l],t}function yt(d){let e,l,t,a,p,s,o,n,u,b,$,P,N,B=d[0],m=[];for(let _=0;_{$e.subscribe(u=>p=u);let n=await kt(vt,{walletAddress:p});l(0,t=n.reviewCreateds)}),[t,a,()=>l(1,a=!1),()=>l(1,a=!1)]}class Tt extends he{constructor(e){super(),_e(this,e,$t,Et,pe,{})}}function xt(d){let e,l;return e=new gt({}),{c(){te(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,a){re(e,t,a),l=!0},i(t){l||(Q(e.$$.fragment,t),l=!0)},o(t){F(e.$$.fragment,t),l=!1},d(t){ae(e,t)}}}function Dt(d){let e,l;return e=new Tt({}),{c(){te(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,a){re(e,t,a),l=!0},i(t){l||(Q(e.$$.fragment,t),l=!0)},o(t){F(e.$$.fragment,t),l=!1},d(t){ae(e,t)}}}function At(d){let e,l,t,a,p,s,o,n,u,b,$,P,N,B,m,_,C,v,y,T,E,w;l=new ut({props:{balance:d[1]}});const k=[Dt,xt],x=[];function V(I,H){return I[0]?0:1}return m=V(d),_=x[m]=k[m](d),y=new tt({}),{c(){e=f("div"),te(l.$$.fragment),t=D(),a=f("br"),p=D(),s=f("div"),o=f("button"),n=U("Assets"),b=D(),$=f("button"),P=U("Activity"),B=D(),_.c(),C=D(),v=f("div"),te(y.$$.fragment),this.h()},l(I){e=h(I,"DIV",{class:!0});var H=g(e);le(l.$$.fragment,H),t=A(H),a=h(H,"BR",{}),p=A(H),s=h(H,"DIV",{class:!0});var O=g(s);o=h(O,"BUTTON",{class:!0});var z=g(o);n=S(z,"Assets"),z.forEach(c),b=A(O),$=h(O,"BUTTON",{class:!0});var q=g($);P=S(q,"Activity"),q.forEach(c),O.forEach(c),B=A(H),_.l(H),C=A(H),v=h(H,"DIV",{class:!0});var G=g(v);le(y.$$.fragment,G),G.forEach(c),H.forEach(c),this.h()},h(){i(o,"class",u=`px-4 py-2 rounded-md ${d[0]?"shadow-lg bg-zinc-700 text-white dark:bg-gray-900 dark:text-white":"bg-gray-200 text-gray-700 dark:bg-gray-900 dark:text-white shadow-lg"}`),i($,"class",N=`px-4 py-2 rounded-md dark:bg-gray-900 dark:text-white ${d[0]?"bg-gray-200 text-gray-700 dark:bg-gray-900 dark:text-white shadow-lg":"shadow-lg bg-zinc-700 text-white dark:bg-gray-900 dark:text-white"}`),i(s,"class","flex justify-between mb-4"),i(v,"class","modal h-screen z-10 absolute top-0 flex justify-center items-center"),oe(v,"modal-open",d[2]),i(e,"class","flex flex-col p-4 rounded-lg shadow-lg")},m(I,H){L(I,e,H),re(l,e,null),r(e,t),r(e,a),r(e,p),r(e,s),r(s,o),r(o,n),r(s,b),r(s,$),r($,P),r(e,B),x[m].m(e,null),r(e,C),r(e,v),re(y,v,null),T=!0,E||(w=[ee(o,"click",d[3]),ee($,"click",d[4])],E=!0)},p(I,[H]){const O={};H&2&&(O.balance=I[1]),l.$set(O),(!T||H&1&&u!==(u=`px-4 py-2 rounded-md ${I[0]?"shadow-lg bg-zinc-700 text-white dark:bg-gray-900 dark:text-white":"bg-gray-200 text-gray-700 dark:bg-gray-900 dark:text-white shadow-lg"}`))&&i(o,"class",u),(!T||H&1&&N!==(N=`px-4 py-2 rounded-md dark:bg-gray-900 dark:text-white ${I[0]?"bg-gray-200 text-gray-700 dark:bg-gray-900 dark:text-white shadow-lg":"shadow-lg bg-zinc-700 text-white dark:bg-gray-900 dark:text-white"}`))&&i($,"class",N);let z=m;m=V(I),m!==z&&(ye(),F(x[z],1,1,()=>{x[z]=null}),we(),_=x[m],_||(_=x[m]=k[m](I),_.c()),Q(_,1),_.m(e,C)),(!T||H&4)&&oe(v,"modal-open",I[2])},i(I){T||(Q(l.$$.fragment,I),Q(_),Q(y.$$.fragment,I),T=!0)},o(I){F(l.$$.fragment,I),F(_),F(y.$$.fragment,I),T=!1},d(I){I&&c(e),ae(l),x[m].d(),ae(y),E=!1,Ee(w)}}}function It(d,e,l){let t=!1,a="",p,s=!1;$e.subscribe(b=>a=b);const o=async()=>{l(2,s=!0),new Je;try{const b=new Ke(et);let P=await new Xe(b).checkBalance(a);l(1,p=Number(P))}catch(b){b&&l(1,p=0),console.log(b)}finally{l(2,s=!1)}};return ve(async()=>{await o()}),[t,p,s,()=>l(0,t=!0),()=>l(0,t=!1)]}class Pt extends he{constructor(e){super(),_e(this,e,It,At,pe,{})}}function Nt(d){let e,l;return e=new Pt({}),{c(){te(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,a){re(e,t,a),l=!0},p:K,i(t){l||(Q(e.$$.fragment,t),l=!0)},o(t){F(e.$$.fragment,t),l=!1},d(t){ae(e,t)}}}function Bt(d){let e,l,t,a,p,s,o=(d[1].length>1?d[1]:"Enter Password")+"",n,u,b,$,P,N,B,m,_,C,v,y,T,E,w=d[4]&&ze();return{c(){e=f("br"),l=D(),t=f("h1"),a=U("Wallet is locked!"),p=D(),s=f("p"),n=U(o),u=D(),b=f("input"),$=D(),P=f("button"),N=U("Forgot password?"),B=D(),m=f("div"),_=f("button"),C=U("Unlock"),v=D(),w&&w.c(),this.h()},l(k){e=h(k,"BR",{}),l=A(k),t=h(k,"H1",{class:!0});var x=g(t);a=S(x,"Wallet is locked!"),x.forEach(c),p=A(k),s=h(k,"P",{class:!0});var V=g(s);n=S(V,o),V.forEach(c),u=A(k),b=h(k,"INPUT",{type:!0,placeholder:!0,class:!0}),$=A(k),P=h(k,"BUTTON",{class:!0});var I=g(P);N=S(I,"Forgot password?"),I.forEach(c),B=A(k),m=h(k,"DIV",{class:!0});var H=g(m);_=h(H,"BUTTON",{class:!0});var O=g(_);C=S(O,"Unlock"),O.forEach(c),v=A(H),w&&w.l(H),H.forEach(c),this.h()},h(){i(t,"class","text-3xl text-center text-black dark:text-white"),i(s,"class","text-lg mt-5 mb-3 dark:text-white dark:bg-gray-900"),oe(s,"text-red-500",d[1].length>1),i(b,"type","password"),i(b,"placeholder","Enter Password"),i(b,"class","input input-bordered input-md w-full max-w-xs dark:bg-gray-700 dark:text-white"),i(P,"class","block text-1xl"),i(_,"class","btn mt-5"),i(m,"class","flex justify-between items-baseline")},m(k,x){L(k,e,x),L(k,l,x),L(k,t,x),r(t,a),L(k,p,x),L(k,s,x),r(s,n),L(k,u,x),L(k,b,x),He(b,d[0]),L(k,$,x),L(k,P,x),r(P,N),L(k,B,x),L(k,m,x),r(m,_),r(_,C),r(m,v),w&&w.m(m,null),y=!0,T||(E=[ee(b,"input",d[6]),ee(P,"click",d[7]),ee(_,"click",d[5])],T=!0)},p(k,x){(!y||x&2)&&o!==(o=(k[1].length>1?k[1]:"Enter Password")+"")&&ne(n,o),(!y||x&2)&&oe(s,"text-red-500",k[1].length>1),x&1&&b.value!==k[0]&&He(b,k[0]),k[4]?w?x&16&&Q(w,1):(w=ze(),w.c(),Q(w,1),w.m(m,null)):w&&(ye(),F(w,1,1,()=>{w=null}),we())},i(k){y||(Q(w),y=!0)},o(k){F(w),y=!1},d(k){k&&c(e),k&&c(l),k&&c(t),k&&c(p),k&&c(s),k&&c(u),k&&c(b),k&&c($),k&&c(P),k&&c(B),k&&c(m),w&&w.d(),T=!1,Ee(E)}}}function ze(d){let e,l;return e=new lt({}),{c(){te(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,a){re(e,t,a),l=!0},i(t){l||(Q(e.$$.fragment,t),l=!0)},o(t){F(e.$$.fragment,t),l=!1},d(t){ae(e,t)}}}function Ct(d){let e,l,t,a;const p=[Bt,Nt],s=[];function o(n,u){return n[2]&&!n[3]?0:n[2]&&n[3]?1:-1}return~(l=o(d))&&(t=s[l]=p[l](d)),{c(){e=f("div"),t&&t.c()},l(n){e=h(n,"DIV",{});var u=g(e);t&&t.l(u),u.forEach(c)},m(n,u){L(n,e,u),~l&&s[l].m(e,null),a=!0},p(n,[u]){let b=l;l=o(n),l===b?~l&&s[l].p(n,u):(t&&(ye(),F(s[b],1,1,()=>{s[b]=null}),we()),~l?(t=s[l],t?t.p(n,u):(t=s[l]=p[l](n),t.c()),Q(t,1),t.m(e,null)):t=null)},i(n){a||(Q(t),a=!0)},o(n){F(t),a=!1},d(n){n&&c(e),~l&&s[l].d()}}}function Ut(d,e,l){let t="",a="",p=!1,s=!1,o=!1;const n=async()=>{if(t.length>=6)try{Me(t)&&(l(1,a=""),l(2,[p,s]=await Le(),p,l(3,s)))}catch($){l(1,a="Invalid password"),console.log($)}};ve(async()=>{l(2,[p,s]=await Le(),p,l(3,s))});function u(){t=this.value,l(0,t)}return[t,a,p,s,o,n,u,()=>l(4,o=!0)]}class St extends he{constructor(e){super(),_e(this,e,Ut,Ct,pe,{})}}function Ht(d){let e,l,t,a,p,s,o;return l=new rt({}),s=new St({}),{c(){e=f("div"),te(l.$$.fragment),t=D(),a=f("br"),p=D(),te(s.$$.fragment),this.h()},l(n){e=h(n,"DIV",{class:!0});var u=g(e);le(l.$$.fragment,u),t=A(u),a=h(u,"BR",{}),p=A(u),le(s.$$.fragment,u),u.forEach(c),this.h()},h(){i(e,"class","dark:text-white dark:bg-gray-900")},m(n,u){L(n,e,u),re(l,e,null),r(e,t),r(e,a),r(e,p),re(s,e,null),o=!0},p:K,i(n){o||(Q(l.$$.fragment,n),Q(s.$$.fragment,n),o=!0)},o(n){F(l.$$.fragment,n),F(s.$$.fragment,n),o=!1},d(n){n&&c(e),ae(l),ae(s)}}}class Gt extends he{constructor(e){super(),_e(this,e,null,Ht,pe,{})}}export{Gt as component}; diff --git a/build/app/immutable/nodes/14.95a4dbfd.js b/build/app/immutable/nodes/14.95a4dbfd.js deleted file mode 100644 index 449ebc98a..000000000 --- a/build/app/immutable/nodes/14.95a4dbfd.js +++ /dev/null @@ -1,9 +0,0 @@ -import{S as ht,i as _t,s as pt,k as h,a as x,q as N,l as _,m as b,h as i,c as D,r as B,n as d,K as lt,V as Tt,b as S,D as r,J as rt,v as $t,d as F,f as xt,g as j,u as et,L as yt,o as vt,y as at,z as st,A as nt,H as q,B as ot,W as zt,P as Ht}from"../chunks/index.83ca82d8.js";import{c as Rt,a as Mt}from"../chunks/secondAuth.d664856c.js";import{g as Qt,I as Gt,a as Ft}from"../chunks/qrCode.2a0c2c54.js";import{w as wt}from"../chunks/store.e259513c.js";import{P as jt,N as qt,A as Yt,a as Jt,C as Kt}from"../chunks/index.045ff416.js";import{b as Xt,c as Zt}from"../chunks/public.02ab71de.js";import{L as te}from"../chunks/Loader.7a0edb34.js";import{H as ee}from"../chunks/Header.80bfed2a.js";function le(u){let t,l;return t=new Gt({props:{src:Ft,color:"#11D9C5"}}),{c(){at(t.$$.fragment)},l(e){st(t.$$.fragment,e)},m(e,a){nt(t,e,a),l=!0},p:q,i(e){l||(j(t.$$.fragment,e),l=!0)},o(e){F(t.$$.fragment,e),l=!1},d(e){ot(t,e)}}}function re(u){let t;return{c(){t=N("COPIED")},l(l){t=B(l,"COPIED")},m(l,e){S(l,t,e)},p:q,i:q,o:q,d(l){l&&i(t)}}}function ae(u){let t,l;return{c(){t=h("p"),l=N("Generating QR code...")},l(e){t=_(e,"P",{});var a=b(t);l=B(a,"Generating QR code..."),a.forEach(i)},m(e,a){S(e,t,a),r(t,l)},p:q,d(e){e&&i(t)}}}function se(u){let t,l;return{c(){t=h("img"),this.h()},l(e){t=_(e,"IMG",{src:!0,alt:!0,class:!0}),this.h()},h(){Tt(t.src,l=u[3])||d(t,"src",l),d(t,"alt","QR Code"),d(t,"class","w-full")},m(e,a){S(e,t,a)},p(e,a){a&8&&!Tt(t.src,l=e[3])&&d(t,"src",l)},d(e){e&&i(t)}}}function ne(u){let t,l,e,a,p,s,c,o,f,m,E,A,I,P,g,n,w,v,k,T,y,$=u[1].substring(0,25)+"...",V,H,L,C,U,O,z,Y,Q,tt=u[0].substring(0,5)+"...",J,K,Z,it,W;const mt=[re,le],X=[];function bt(R,M){return R[2]?0:1}a=bt(u),p=X[a]=mt[a](u);function gt(R,M){return R[3]?se:ae}let ct=gt(u),G=ct(u);return{c(){t=h("div"),l=h("div"),e=h("button"),p.c(),s=x(),c=h("div"),o=h("label"),f=h("button"),m=N("Show QR Code"),E=x(),A=h("input"),I=x(),P=h("div"),g=h("div"),n=h("label"),w=N("✕"),v=x(),k=h("div"),G.c(),T=x(),y=h("p"),V=N($),H=x(),L=h("div"),C=h("div"),U=h("img"),z=x(),Y=h("div"),Q=h("span"),J=N(tt),K=N(" APT"),this.h()},l(R){t=_(R,"DIV",{class:!0});var M=b(t);l=_(M,"DIV",{class:!0});var dt=b(l);e=_(dt,"BUTTON",{class:!0});var Dt=b(e);p.l(Dt),Dt.forEach(i),dt.forEach(i),s=D(M),c=_(M,"DIV",{class:!0});var ut=b(c);o=_(ut,"LABEL",{for:!0});var At=b(o);f=_(At,"BUTTON",{class:!0});var It=b(f);m=B(It,"Show QR Code"),It.forEach(i),At.forEach(i),E=D(ut),A=_(ut,"INPUT",{type:!0,id:!0,class:!0}),I=D(ut),P=_(ut,"DIV",{class:!0});var Pt=b(P);g=_(Pt,"DIV",{class:!0});var ft=b(g);n=_(ft,"LABEL",{for:!0,class:!0});var Ct=b(n);w=B(Ct,"✕"),Ct.forEach(i),v=D(ft),k=_(ft,"DIV",{class:!0});var Nt=b(k);G.l(Nt),Nt.forEach(i),T=D(ft),y=_(ft,"P",{});var Bt=b(y);V=B(Bt,$),Bt.forEach(i),ft.forEach(i),Pt.forEach(i),ut.forEach(i),H=D(M),L=_(M,"DIV",{class:!0});var kt=b(L);C=_(kt,"DIV",{class:!0});var Ut=b(C);U=_(Ut,"IMG",{src:!0,alt:!0,class:!0}),Ut.forEach(i),z=D(kt),Y=_(kt,"DIV",{class:!0});var St=b(Y);Q=_(St,"SPAN",{class:!0});var Et=b(Q);J=B(Et,tt),K=B(Et," APT"),Et.forEach(i),St.forEach(i),kt.forEach(i),M.forEach(i),this.h()},h(){d(e,"class","ml-1 px-4 py-2 rounded-xl bg-zinc-200 text-white w-auto h-auto content-around border border-[#11D9C5] dark:bg-gray-700"),lt(e,"bg-gray-600",u[2]),d(l,"class","flex items-center mb-4"),d(f,"class","ml-1 px-4 py-2 rounded-xl bg-zinc-200 text-black w-auto h-auto content-around dark:bg-gray-700 dark:text-white"),d(o,"for","my-modal-3"),d(A,"type","checkbox"),d(A,"id","my-modal-3"),d(A,"class","modal-toggle"),d(n,"for","my-modal-3"),d(n,"class","btn btn-sm btn-circle absolute right-2 top-2"),d(k,"class","py-10"),d(g,"class","modal-box relative dark:bg-gray-800 dark:text-gray-100"),d(P,"class","modal"),d(c,"class","flex items-center mb-4"),Tt(U.src,O=oe)||d(U,"src",O),d(U,"alt","Netsepio "),d(U,"class","h-16 w-16 flex items-center mx-28 mb-4"),d(C,"class","flex items-center mb-4"),d(Q,"class","text-3xl text-center"),d(Y,"class","flex justify-center"),d(L,"class","flex flex-col mb-4"),d(t,"class","flex flex-col items-center")},m(R,M){S(R,t,M),r(t,l),r(l,e),X[a].m(e,null),r(t,s),r(t,c),r(c,o),r(o,f),r(f,m),r(c,E),r(c,A),r(c,I),r(c,P),r(P,g),r(g,n),r(n,w),r(g,v),r(g,k),G.m(k,null),r(g,T),r(g,y),r(y,V),r(t,H),r(t,L),r(L,C),r(C,U),r(L,z),r(L,Y),r(Y,Q),r(Q,J),r(Q,K),Z=!0,it||(W=[rt(e,"click",u[4]),rt(f,"click",u[5])],it=!0)},p(R,[M]){let dt=a;a=bt(R),a===dt?X[a].p(R,M):($t(),F(X[dt],1,1,()=>{X[dt]=null}),xt(),p=X[a],p?p.p(R,M):(p=X[a]=mt[a](R),p.c()),j(p,1),p.m(e,null)),(!Z||M&4)&<(e,"bg-gray-600",R[2]),ct===(ct=gt(R))&&G?G.p(R,M):(G.d(1),G=ct(R),G&&(G.c(),G.m(k,null))),(!Z||M&2)&&$!==($=R[1].substring(0,25)+"...")&&et(V,$),(!Z||M&1)&&tt!==(tt=R[0].substring(0,5)+"...")&&et(J,tt)},i(R){Z||(j(p),Z=!0)},o(R){F(p),Z=!1},d(R){R&&i(t),X[a].d(),G.d(),it=!1,yt(W)}}}let oe="/aptos-logo.png";function ce(u,t,l){let e,a="",p=!1,s="",{balance:c}=t;wt.subscribe(E=>l(1,a=E));const o=()=>{navigator.clipboard.writeText(a),l(2,p=!0)};async function f(){l(3,s=await Qt(a))}function m(){const E=document.getElementById("my-modal-3");E.checked=!0}return vt(async()=>{f()}),u.$$set=E=>{"balance"in E&&l(6,c=E.balance)},u.$$.update=()=>{u.$$.dirty&64&&l(0,e=Number(c/1e8).toFixed(8))},[e,a,p,s,o,m,c]}class ie extends ht{constructor(t){super(),_t(this,t,ce,ne,pt,{balance:6})}}function Vt(u,t,l){const e=u.slice();return e[3]=t[l],e}function de(u){let t,l;return{c(){t=h("h1"),l=N("No data to show"),this.h()},l(e){t=_(e,"H1",{class:!0});var a=b(t);l=B(a,"No data to show"),a.forEach(i),this.h()},h(){d(t,"class","text-lg text-center")},m(e,a){S(e,t,a),r(t,l)},p:q,d(e){e&&i(t)}}}function ue(u){let t,l,e,a,p,s,c,o,f,m,E,A,I,P,g,n,w=u[0],v=[];for(let k=0;k0?ue:de}let s=p(u),c=s(u);return{c(){t=h("div"),l=h("label"),e=N("Activity"),a=x(),c.c(),this.h()},l(o){t=_(o,"DIV",{class:!0});var f=b(t);l=_(f,"LABEL",{class:!0,for:!0});var m=b(l);e=B(m,"Activity"),m.forEach(i),a=D(f),c.l(f),f.forEach(i),this.h()},h(){d(l,"class","text-lg font-bold mb-2"),d(l,"for","transactions-table"),d(t,"class","flex flex-col mb-4")},m(o,f){S(o,t,f),r(t,l),r(l,e),r(t,a),c.m(t,null)},p(o,[f]){s===(s=p(o))&&c?c.p(o,f):(c.d(1),c=s(o),c&&(c.c(),c.m(t,null)))},i:q,o:q,d(o){o&&i(t),c.d()}}}function pe(u,t,l){let e=[],a;wt.subscribe(s=>l(1,a=s));const p=async()=>{const s=new jt(qt.TESTNET);l(0,e=await s.getAccountTransactions(a))};return vt(()=>{p()}),[e,a]}class me extends ht{constructor(t){super(),_t(this,t,pe,_e,pt,{})}}const be=` -query MyQuery($walletAddress: String!) { - reviewCreateds(where: {receiver: $walletAddress}) { - tokenId - domainAddress - metadataURI - } -} -`,ge=async(u,t={})=>{try{const e=await(await fetch(Xt,{method:"POST",redirect:"follow",body:JSON.stringify({query:u,variables:t})})).json();if(e.errors)throw new Error(e.errors[0].message);return e.data}catch(l){throw l}};function Ot(u,t,l){const e=u.slice();return e[5]=t[l],e}function ve(u){let t,l,e,a,p,s,c,o,f,m,E,A,I,P=u[0],g=[];for(let n=0;n{wt.subscribe(f=>p=f);let o=await ge(be,{walletAddress:p});l(0,e=o.reviewCreateds)}),[e,a,()=>l(1,a=!1),()=>l(1,a=!1)]}class Ee extends ht{constructor(t){super(),_t(this,t,we,ye,pt,{})}}function Te(u){let t,l;return t=new me({}),{c(){at(t.$$.fragment)},l(e){st(t.$$.fragment,e)},m(e,a){nt(t,e,a),l=!0},i(e){l||(j(t.$$.fragment,e),l=!0)},o(e){F(t.$$.fragment,e),l=!1},d(e){ot(t,e)}}}function $e(u){let t,l;return t=new Ee({}),{c(){at(t.$$.fragment)},l(e){st(t.$$.fragment,e)},m(e,a){nt(t,e,a),l=!0},i(e){l||(j(t.$$.fragment,e),l=!0)},o(e){F(t.$$.fragment,e),l=!1},d(e){ot(t,e)}}}function xe(u){let t,l,e,a,p,s,c,o,f,m,E,A,I,P,g,n,w,v,k,T,y,$;l=new ie({props:{balance:u[1]}});const V=[$e,Te],H=[];function L(C,U){return C[0]?0:1}return g=L(u),n=H[g]=V[g](u),k=new te({}),{c(){t=h("div"),at(l.$$.fragment),e=x(),a=h("br"),p=x(),s=h("div"),c=h("button"),o=N("Assets"),m=x(),E=h("button"),A=N("Activity"),P=x(),n.c(),w=x(),v=h("div"),at(k.$$.fragment),this.h()},l(C){t=_(C,"DIV",{class:!0});var U=b(t);st(l.$$.fragment,U),e=D(U),a=_(U,"BR",{}),p=D(U),s=_(U,"DIV",{class:!0});var O=b(s);c=_(O,"BUTTON",{class:!0});var z=b(c);o=B(z,"Assets"),z.forEach(i),m=D(O),E=_(O,"BUTTON",{class:!0});var Y=b(E);A=B(Y,"Activity"),Y.forEach(i),O.forEach(i),P=D(U),n.l(U),w=D(U),v=_(U,"DIV",{class:!0});var Q=b(v);st(k.$$.fragment,Q),Q.forEach(i),U.forEach(i),this.h()},h(){d(c,"class",f=`px-4 py-2 rounded-md ${u[0]?"shadow-lg bg-zinc-700 text-white dark:bg-gray-900 dark:text-white":"bg-gray-200 text-gray-700 dark:bg-gray-900 dark:text-white shadow-lg"}`),d(E,"class",I=`px-4 py-2 rounded-md dark:bg-gray-900 dark:text-white ${u[0]?"bg-gray-200 text-gray-700 dark:bg-gray-900 dark:text-white shadow-lg":"shadow-lg bg-zinc-700 text-white dark:bg-gray-900 dark:text-white"}`),d(s,"class","flex justify-between mb-4"),d(v,"class","modal h-screen z-10 absolute top-0 flex justify-center items-center"),lt(v,"modal-open",u[2]),d(t,"class","flex flex-col p-4 rounded-lg shadow-lg")},m(C,U){S(C,t,U),nt(l,t,null),r(t,e),r(t,a),r(t,p),r(t,s),r(s,c),r(c,o),r(s,m),r(s,E),r(E,A),r(t,P),H[g].m(t,null),r(t,w),r(t,v),nt(k,v,null),T=!0,y||($=[rt(c,"click",u[3]),rt(E,"click",u[4])],y=!0)},p(C,[U]){const O={};U&2&&(O.balance=C[1]),l.$set(O),(!T||U&1&&f!==(f=`px-4 py-2 rounded-md ${C[0]?"shadow-lg bg-zinc-700 text-white dark:bg-gray-900 dark:text-white":"bg-gray-200 text-gray-700 dark:bg-gray-900 dark:text-white shadow-lg"}`))&&d(c,"class",f),(!T||U&1&&I!==(I=`px-4 py-2 rounded-md dark:bg-gray-900 dark:text-white ${C[0]?"bg-gray-200 text-gray-700 dark:bg-gray-900 dark:text-white shadow-lg":"shadow-lg bg-zinc-700 text-white dark:bg-gray-900 dark:text-white"}`))&&d(E,"class",I);let z=g;g=L(C),g!==z&&($t(),F(H[z],1,1,()=>{H[z]=null}),xt(),n=H[g],n||(n=H[g]=V[g](C),n.c()),j(n,1),n.m(t,w)),(!T||U&4)&<(v,"modal-open",C[2])},i(C){T||(j(l.$$.fragment,C),j(n),j(k.$$.fragment,C),T=!0)},o(C){F(l.$$.fragment,C),F(n),F(k.$$.fragment,C),T=!1},d(C){C&&i(t),ot(l),H[g].d(),ot(k),y=!1,yt($)}}}function De(u,t,l){let e=!1,a="",p,s=!1;wt.subscribe(m=>a=m);const c=async()=>{l(2,s=!0),new Yt;try{const m=new Jt(Zt);let A=await new Kt(m).checkBalance(a);l(1,p=Number(A))}catch(m){m&&l(1,p=0),console.log(m)}finally{l(2,s=!1)}};return vt(async()=>{await c()}),[e,p,s,()=>l(0,e=!0),()=>l(0,e=!1)]}class Ae extends ht{constructor(t){super(),_t(this,t,De,xe,pt,{})}}function Ie(u){let t,l;return t=new Ae({}),{c(){at(t.$$.fragment)},l(e){st(t.$$.fragment,e)},m(e,a){nt(t,e,a),l=!0},p:q,i(e){l||(j(t.$$.fragment,e),l=!0)},o(e){F(t.$$.fragment,e),l=!1},d(e){ot(t,e)}}}function Pe(u){let t,l,e,a,p,s,c=(u[1].length>1?u[1]:"Enter Password")+"",o,f,m,E,A,I,P,g;return{c(){t=h("br"),l=x(),e=h("h1"),a=N("Wallet is locked!"),p=x(),s=h("p"),o=N(c),f=x(),m=h("input"),E=x(),A=h("button"),I=N("Unlock"),this.h()},l(n){t=_(n,"BR",{}),l=D(n),e=_(n,"H1",{class:!0});var w=b(e);a=B(w,"Wallet is locked!"),w.forEach(i),p=D(n),s=_(n,"P",{class:!0});var v=b(s);o=B(v,c),v.forEach(i),f=D(n),m=_(n,"INPUT",{type:!0,placeholder:!0,class:!0}),E=D(n),A=_(n,"BUTTON",{class:!0});var k=b(A);I=B(k,"Unlock"),k.forEach(i),this.h()},h(){d(e,"class","text-3xl text-center text-black dark:text-white"),d(s,"class","text-md mt-5 mb-3 dark:text-white dark:bg-gray-900"),lt(s,"text-red-500",u[1].length>1),d(m,"type","password"),d(m,"placeholder","Enter Password"),d(m,"class","input input-bordered input-md w-full max-w-xs dark:bg-gray-700 dark:text-white"),d(A,"class","btn mt-5")},m(n,w){S(n,t,w),S(n,l,w),S(n,e,w),r(e,a),S(n,p,w),S(n,s,w),r(s,o),S(n,f,w),S(n,m,w),Ht(m,u[0]),S(n,E,w),S(n,A,w),r(A,I),P||(g=[rt(m,"input",u[5]),rt(A,"click",u[4])],P=!0)},p(n,w){w&2&&c!==(c=(n[1].length>1?n[1]:"Enter Password")+"")&&et(o,c),w&2&<(s,"text-red-500",n[1].length>1),w&1&&m.value!==n[0]&&Ht(m,n[0])},i:q,o:q,d(n){n&&i(t),n&&i(l),n&&i(e),n&&i(p),n&&i(s),n&&i(f),n&&i(m),n&&i(E),n&&i(A),P=!1,yt(g)}}}function Ce(u){let t,l,e,a;const p=[Pe,Ie],s=[];function c(o,f){return o[2]&&!o[3]?0:o[2]&&o[3]?1:-1}return~(l=c(u))&&(e=s[l]=p[l](u)),{c(){t=h("div"),e&&e.c()},l(o){t=_(o,"DIV",{});var f=b(t);e&&e.l(f),f.forEach(i)},m(o,f){S(o,t,f),~l&&s[l].m(t,null),a=!0},p(o,[f]){let m=l;l=c(o),l===m?~l&&s[l].p(o,f):(e&&($t(),F(s[m],1,1,()=>{s[m]=null}),xt()),~l?(e=s[l],e?e.p(o,f):(e=s[l]=p[l](o),e.c()),j(e,1),e.m(t,null)):e=null)},i(o){a||(j(e),a=!0)},o(o){F(e),a=!1},d(o){o&&i(t),~l&&s[l].d()}}}function Ne(u,t,l){let e="",a="",p=!1,s=!1;const c=async()=>{if(e.length>=6)try{Mt(e)&&(l(1,a=""),l(2,[p,s]=await Rt(),p,l(3,s)))}catch(f){l(1,a="Invalid password"),console.log(f)}};vt(async()=>{l(2,[p,s]=await Rt(),p,l(3,s))});function o(){e=this.value,l(0,e)}return[e,a,p,s,c,o]}class Be extends ht{constructor(t){super(),_t(this,t,Ne,Ce,pt,{})}}function Ue(u){let t,l,e,a,p,s,c;return l=new ee({}),s=new Be({}),{c(){t=h("div"),at(l.$$.fragment),e=x(),a=h("br"),p=x(),at(s.$$.fragment),this.h()},l(o){t=_(o,"DIV",{class:!0});var f=b(t);st(l.$$.fragment,f),e=D(f),a=_(f,"BR",{}),p=D(f),st(s.$$.fragment,f),f.forEach(i),this.h()},h(){d(t,"class","dark:text-white dark:bg-gray-900")},m(o,f){S(o,t,f),nt(l,t,null),r(t,e),r(t,a),r(t,p),nt(s,t,null),c=!0},p:q,i(o){c||(j(l.$$.fragment,o),j(s.$$.fragment,o),c=!0)},o(o){F(l.$$.fragment,o),F(s.$$.fragment,o),c=!1},d(o){o&&i(t),ot(l),ot(s)}}}class Me extends ht{constructor(t){super(),_t(this,t,null,Ue,pt,{})}}export{Me as component}; diff --git a/build/app/immutable/nodes/2.b9864e19.js b/build/app/immutable/nodes/2.b9864e19.js deleted file mode 100644 index 90f035d15..000000000 --- a/build/app/immutable/nodes/2.b9864e19.js +++ /dev/null @@ -1,43 +0,0 @@ -import{S as SvelteComponent,i as init,s as safe_not_equal,k as element,q as text,l as claim_element,m as children,r as claim_text,h as detach,n as attr,b as insert_hydration,D as append_hydration,J as listen,H as noop$2,a as space,y as create_component,c as claim_space,z as claim_component,K as toggle_class,A as mount_component,g as transition_in,d as transition_out,B as destroy_component,L as run_all,o as onMount,M as to_number,N as select_value,O as add_render_callback,P as set_input_value,Q as select_option,R as onDestroy,T as bubble,w as binding_callbacks,u as set_data,v as group_outros,f as check_outros,U as get_store_value,e as empty$1,I as component_subscribe,V as src_url_equal}from"../chunks/index.83ca82d8.js";import{H as Header}from"../chunks/Header.80bfed2a.js";import{g as getDefaultExportFromCjs,c as commonjsGlobal,a as getAugmentedNamespace,j as jwtToken,o as onboardingStepsLeft}from"../chunks/store.e259513c.js";import{P as PUBLIC_NFT_STORAGE_API_KEY,a as PUBLIC_GATEWAY_URL}from"../chunks/public.02ab71de.js";import{c as checkAuth}from"../chunks/secondAuth.d664856c.js";import{L as Loader}from"../chunks/Loader.7a0edb34.js";import{w as writable}from"../chunks/index.1fc1f291.js";const prerender=!0,_page=Object.freeze(Object.defineProperty({__proto__:null,prerender},Symbol.toStringTag,{value:"Module"}));function create_fragment$4(r){let e,t,n,o,a;return{c(){e=element("div"),t=element("button"),n=text("Reviews"),this.h()},l(s){e=claim_element(s,"DIV",{class:!0});var l=children(e);t=claim_element(l,"BUTTON",{class:!0});var f=children(t);n=claim_text(f,"Reviews"),f.forEach(detach),l.forEach(detach),this.h()},h(){attr(t,"class","btn px-4 py-2 rounded-md"),attr(e,"class","grid flex-grow")},m(s,l){insert_hydration(s,e,l),append_hydration(e,t),append_hydration(t,n),o||(a=listen(t,"click",r[0]),o=!0)},p:noop$2,i:noop$2,o:noop$2,d(s){s&&detach(e),o=!1,a()}}}function instance$4(r,e,t){let{url:n}=e;function o(){window.open(`https://app.netsepio.com/#/reviews/${n}`,"_blank")}return r.$$set=a=>{"url"in a&&t(1,n=a.url)},[o,n]}class Review extends SvelteComponent{constructor(e){super(),init(this,e,instance$4,create_fragment$4,safe_not_equal,{url:1})}}function getIterator(r){if(typeof r.next=="function")return r;if(typeof r[Symbol.iterator]=="function")return r[Symbol.iterator]();if(typeof r[Symbol.asyncIterator]=="function")return r[Symbol.asyncIterator]();throw new TypeError('"values" does not to conform to any of the iterator or iterable protocols')}function defer(){let r,e;return{promise:new Promise((n,o)=>{e=n,r=o}),reject:r,resolve:e}}function _transform(r,e,t){const n=getIterator(t),o=[],a=[];let s=!1,l=!1,f=0,h=null;function d(){for(;a.length>0&&o.length>0;){const{resolve:y}=a.shift(),v=o.shift();y({done:!1,value:v})}for(;a.length>0&&f===0&&s;){const{resolve:y,reject:v}=a.shift();h?(v(h),h=null):y({done:!0,value:void 0})}}async function m(){if(s){d();return}if(!l&&!(f+o.length>=r)){l=!0,f++;try{const{done:y,value:v}=await n.next();y?(s=!0,f--,d()):b(v)}catch(y){s=!0,f--,h=y,d()}l=!1,m()}}async function b(y){try{const v=await e(y);o.push(v)}catch(v){s=!0,h=v}f--,d(),m()}async function w(){if(o.length===0){const v=defer();return a.push(v),m(),v.promise}const y=o.shift();return m(),{done:!1,value:y}}const _={next:w,[Symbol.asyncIterator]:()=>_};return _}function transform$1(r,e,t){return e===void 0?(n,o)=>o?transform$1(r,n,o):transform$1(r,n):t===void 0?n=>transform$1(r,e,n):_transform(r,e,t)}var pRetry$2={exports:{}},retry$2={};function RetryOperation(r,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(r)),this._timeouts=r,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var retry_operation=RetryOperation;RetryOperation.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};RetryOperation.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};RetryOperation.prototype.retry=function(r){if(this._timeout&&clearTimeout(this._timeout),!r)return!1;var e=new Date().getTime();if(r&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(r),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(r);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},t),this._options.unref&&this._timer.unref(),!0};RetryOperation.prototype.attempt=function(r,e){this._fn=r,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};RetryOperation.prototype.try=function(r){console.log("Using RetryOperation.try() is deprecated"),this.attempt(r)};RetryOperation.prototype.start=function(r){console.log("Using RetryOperation.start() is deprecated"),this.attempt(r)};RetryOperation.prototype.start=RetryOperation.prototype.try;RetryOperation.prototype.errors=function(){return this._errors};RetryOperation.prototype.attempts=function(){return this._attempts};RetryOperation.prototype.mainError=function(){if(this._errors.length===0)return null;for(var r={},e=null,t=0,n=0;n=t&&(e=o,t=s)}return e};(function(r){var e=retry_operation;r.operation=function(t){var n=r.timeouts(t);return new e(n,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},r.timeouts=function(t){if(t instanceof Array)return[].concat(t);var n={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var o in t)n[o]=t[o];if(n.minTimeout>n.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var a=[],s=0;s{const n=t.retries-(e-1);return r.attemptNumber=e,r.retriesLeft=n,r},isNetworkError=r=>networkErrorMsgs.includes(r),pRetry=(r,e)=>new Promise((t,n)=>{e={onFailedAttempt:()=>{},retries:10,...e};const o=retry.operation(e);o.attempt(async a=>{try{t(await r(a))}catch(s){if(!(s instanceof Error)){n(new TypeError(`Non-error was thrown: "${s}". You should only throw errors.`));return}if(s instanceof AbortError)o.stop(),n(s.originalError);else if(s instanceof TypeError&&!isNetworkError(s.message))o.stop(),n(s);else{decorateErrorWithCounts(s,a,e);try{await e.onFailedAttempt(s)}catch(l){n(l);return}o.retry(s)||n(o.mainError())}}})});pRetry$2.exports=pRetry;pRetry$2.exports.default=pRetry;var AbortError_1=pRetry$2.exports.AbortError=AbortError,pRetryExports=pRetry$2.exports;const pRetry$1=getDefaultExportFromCjs(pRetryExports);var encode_1$1=encode$9,MSB$3=128,REST$3=127,MSBALL$1=~REST$3,INT$1=Math.pow(2,31);function encode$9(r,e,t){if(Number.MAX_SAFE_INTEGER&&r>Number.MAX_SAFE_INTEGER)throw encode$9.bytes=0,new RangeError("Could not encode varint");e=e||[],t=t||0;for(var n=t;r>=INT$1;)e[t++]=r&255|MSB$3,r/=128;for(;r&MSBALL$1;)e[t++]=r&255|MSB$3,r>>>=7;return e[t]=r|0,encode$9.bytes=t-n+1,e}var decode$a=read$1,MSB$2=128,REST$2=127;function read$1(r,n){var t=0,n=n||0,o=0,a=n,s,l=r.length;do{if(a>=l||o>49)throw read$1.bytes=0,new RangeError("Could not decode varint");s=r[a++],t+=o<28?(s&REST$2)<=MSB$2);return read$1.bytes=a-n,t}var N1$1=Math.pow(2,7),N2$1=Math.pow(2,14),N3$1=Math.pow(2,21),N4$1=Math.pow(2,28),N5$1=Math.pow(2,35),N6$1=Math.pow(2,42),N7$1=Math.pow(2,49),N8$1=Math.pow(2,56),N9$1=Math.pow(2,63),length$1=function(r){return r=INT;)e[t++]=r&255|MSB,r/=128;for(;r&MSBALL;)e[t++]=r&255|MSB,r>>>=7;return e[t]=r|0,encode$8.bytes=t-n+1,e}var decode$9=read,MSB$1=128,REST$1=127;function read(r,n){var t=0,n=n||0,o=0,a=n,s,l=r.length;do{if(a>=l)throw read.bytes=0,new RangeError("Could not decode varint");s=r[a++],t+=o<28?(s&REST$1)<=MSB$1);return read.bytes=a-n,t}var N1=Math.pow(2,7),N2=Math.pow(2,14),N3=Math.pow(2,21),N4=Math.pow(2,28),N5=Math.pow(2,35),N6=Math.pow(2,42),N7=Math.pow(2,49),N8=Math.pow(2,56),N9=Math.pow(2,63),length=function(r){return r[_brrp_varint.decode(r,e),_brrp_varint.decode.bytes],encodeTo=(r,e,t=0)=>(_brrp_varint.encode(r,e,t),e),encodingLength=r=>_brrp_varint.encodingLength(r),empty=new Uint8Array(0),fromHex=r=>{const e=r.match(/../g);return e?new Uint8Array(e.map(t=>parseInt(t,16))):empty},equals$1=(r,e)=>{if(r===e)return!0;if(r.byteLength!==e.byteLength)return!1;for(let t=0;t{if(r instanceof Uint8Array&&r.constructor.name==="Uint8Array")return r;if(r instanceof ArrayBuffer)return new Uint8Array(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw new Error("Unknown type, must be binary type")},fromString$3=r=>new TextEncoder().encode(r),toString$1=r=>new TextDecoder().decode(r),create$4=(r,e)=>{const t=e.byteLength,n=encodingLength(r),o=n+encodingLength(t),a=new Uint8Array(o+t);return encodeTo(r,a,0),encodeTo(t,a,n),a.set(e,o),new Digest(r,t,e,a)},decode$7=r=>{const e=coerce(r),[t,n]=decode$8(e),[o,a]=decode$8(e.subarray(n)),s=e.subarray(n+a);if(s.byteLength!==o)throw new Error("Incorrect length");return new Digest(t,o,s,e)},equals=(r,e)=>r===e?!0:r.code===e.code&&r.size===e.size&&equals$1(r.bytes,e.bytes);class Digest{constructor(e,t,n,o){this.code=e,this.size=t,this.digest=n,this.bytes=o}}function base(r,e){if(r.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,B=new Uint8Array(D);A!==L;){for(var x=_[A],S=0,O=D-1;(x!==0||S>>0,B[O]=x%l>>>0,x=x/l>>>0;if(x!==0)throw new Error("Non-zero carry");v=S,A++}for(var N=D-v;N!==D&&B[N]===0;)N++;for(var k=f.repeat(y);N>>0,D=new Uint8Array(L);_[y];){var B=t[_.charCodeAt(y)];if(B===255)return;for(var x=0,S=L-1;(B!==0||x>>0,D[S]=B%256>>>0,B=B/256>>>0;if(B!==0)throw new Error("Non-zero carry");A=x,y++}if(_[y]!==" "){for(var O=L-A;O!==L&&D[O]===0;)O++;for(var N=new Uint8Array(v+(L-O)),k=v;O!==L;)N[k++]=D[O++];return N}}}function w(_){var y=b(_);if(y)return y;throw new Error(`Non-${e} character`)}return{encode:m,decodeUnsafe:b,decode:w}}var src$3=base,_brrp__multiformats_scope_baseX=src$3;class Encoder{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class Decoder{constructor(e,t,n){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return or(this,e)}}class ComposedDecoder{constructor(e){this.decoders=e}or(e){return or(this,e)}decode(e){const t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const or=(r,e)=>new ComposedDecoder({...r.decoders||{[r.prefix]:r},...e.decoders||{[e.prefix]:e}});class Codec{constructor(e,t,n,o){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=o,this.encoder=new Encoder(e,t,n),this.decoder=new Decoder(e,t,o)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const from$1=({name:r,prefix:e,encode:t,decode:n})=>new Codec(r,e,t,n),baseX=({prefix:r,name:e,alphabet:t})=>{const{encode:n,decode:o}=_brrp__multiformats_scope_baseX(t,e);return from$1({prefix:r,name:e,encode:n,decode:a=>coerce(o(a))})},decode$6=(r,e,t,n)=>{const o={};for(let d=0;d=8&&(l-=8,s[h++]=255&f>>l)}if(l>=t||255&f<<8-l)throw new SyntaxError("Unexpected end of data");return s},encode$7=(r,e,t)=>{const n=e[e.length-1]==="=",o=(1<t;)s-=t,a+=e[o&l>>s];if(s&&(a+=e[o&l<from$1({prefix:e,name:r,encode(o){return encode$7(o,n,t)},decode(o){return decode$6(o,n,t,r)}}),base58btc=baseX({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),base58flickr=baseX({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),base58=Object.freeze(Object.defineProperty({__proto__:null,base58btc,base58flickr},Symbol.toStringTag,{value:"Module"})),base32=rfc4648({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),base32upper=rfc4648({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),base32pad=rfc4648({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),base32padupper=rfc4648({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),base32hex=rfc4648({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),base32hexupper=rfc4648({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),base32hexpad=rfc4648({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),base32hexpadupper=rfc4648({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),base32z=rfc4648({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),base32$1=Object.freeze(Object.defineProperty({__proto__:null,base32,base32hex,base32hexpad,base32hexpadupper,base32hexupper,base32pad,base32padupper,base32upper,base32z},Symbol.toStringTag,{value:"Module"}));class CID{constructor(e,t,n,o){this.code=t,this.version=e,this.multihash=n,this.bytes=o,this.byteOffset=o.byteOffset,this.byteLength=o.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:hidden,byteLength:hidden,code:readonly$1,version:readonly$1,multihash:readonly$1,bytes:readonly$1,_baseCache:hidden,asCID:hidden})}toV0(){switch(this.version){case 0:return this;default:{const{code:e,multihash:t}=this;if(e!==DAG_PB_CODE)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==SHA_256_CODE)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return CID.createV0(t)}}}toV1(){switch(this.version){case 0:{const{code:e,digest:t}=this.multihash,n=create$4(e,t);return CID.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&equals(this.multihash,e.multihash)}toString(e){const{bytes:t,version:n,_baseCache:o}=this;switch(n){case 0:return toStringV0(t,o,e||base58btc.encoder);default:return toStringV1(t,o,e||base32.encoder)}}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return deprecate(/^0\.0/,IS_CID_DEPRECATION),!!(e&&(e[cidSymbol]||e.asCID===e))}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof CID)return e;if(e!=null&&e.asCID===e){const{version:t,code:n,multihash:o,bytes:a}=e;return new CID(t,n,o,a||encodeCID(t,n,o.bytes))}else if(e!=null&&e[cidSymbol]===!0){const{version:t,multihash:n,code:o}=e,a=decode$7(n);return CID.create(t,o,a)}else return null}static create(e,t,n){if(typeof t!="number")throw new Error("String codecs are no longer supported");switch(e){case 0:{if(t!==DAG_PB_CODE)throw new Error(`Version 0 CID must use dag-pb (code: ${DAG_PB_CODE}) block encoding`);return new CID(e,t,n,n.bytes)}case 1:{const o=encodeCID(e,t,n.bytes);return new CID(e,t,n,o)}default:throw new Error("Invalid version")}}static createV0(e){return CID.create(0,DAG_PB_CODE,e)}static createV1(e,t){return CID.create(1,e,t)}static decode(e){const[t,n]=CID.decodeFirst(e);if(n.length)throw new Error("Incorrect length");return t}static decodeFirst(e){const t=CID.inspectBytes(e),n=t.size-t.multihashSize,o=coerce(e.subarray(n,n+t.multihashSize));if(o.byteLength!==t.multihashSize)throw new Error("Incorrect length");const a=o.subarray(t.multihashSize-t.digestSize),s=new Digest(t.multihashCode,t.digestSize,a,o);return[t.version===0?CID.createV0(s):CID.createV1(t.codec,s),e.subarray(t.size)]}static inspectBytes(e){let t=0;const n=()=>{const[m,b]=decode$8(e.subarray(t));return t+=b,m};let o=n(),a=DAG_PB_CODE;if(o===18?(o=0,t=0):o===1&&(a=n()),o!==0&&o!==1)throw new RangeError(`Invalid CID version ${o}`);const s=t,l=n(),f=n(),h=t+f,d=h-s;return{version:o,codec:a,multihashCode:l,digestSize:f,multihashSize:d,size:h}}static parse(e,t){const[n,o]=parseCIDtoBytes(e,t),a=CID.decode(o);return a._baseCache.set(n,e),a}}const parseCIDtoBytes=(r,e)=>{switch(r[0]){case"Q":{const t=e||base58btc;return[base58btc.prefix,t.decode(`${base58btc.prefix}${r}`)]}case base58btc.prefix:{const t=e||base58btc;return[base58btc.prefix,t.decode(r)]}case base32.prefix:{const t=e||base32;return[base32.prefix,t.decode(r)]}default:{if(e==null)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[r[0],e.decode(r)]}}},toStringV0=(r,e,t)=>{const{prefix:n}=t;if(n!==base58btc.prefix)throw Error(`Cannot string encode V0 in ${t.name} encoding`);const o=e.get(n);if(o==null){const a=t.encode(r).slice(1);return e.set(n,a),a}else return o},toStringV1=(r,e,t)=>{const{prefix:n}=t,o=e.get(n);if(o==null){const a=t.encode(r);return e.set(n,a),a}else return o},DAG_PB_CODE=112,SHA_256_CODE=18,encodeCID=(r,e,t)=>{const n=encodingLength(r),o=n+encodingLength(e),a=new Uint8Array(o+t.byteLength);return encodeTo(r,a,0),encodeTo(e,a,n),a.set(t,o),a},cidSymbol=Symbol.for("@ipld/js-cid/CID"),readonly$1={writable:!1,configurable:!1,enumerable:!0},hidden={writable:!1,enumerable:!1,configurable:!1},version="0.0.0-dev",deprecate=(r,e)=>{if(r.test(version))console.warn(e);else throw new Error(e)},IS_CID_DEPRECATION=`CID.isCID(v) is deprecated and will be removed in the next major release. -Following code pattern: - -if (CID.isCID(value)) { - doSomethingWithCID(value) -} - -Is replaced with: - -const cid = CID.asCID(value) -if (cid) { - // Make sure to use cid instead of value - doSomethingWithCID(cid) -} -`,typeofs=["string","number","bigint","symbol"],objectTypeNames=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","HTMLElement","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function is(r){if(r===null)return"null";if(r===void 0)return"undefined";if(r===!0||r===!1)return"boolean";const e=typeof r;if(typeofs.includes(e))return e;if(e==="function")return"Function";if(Array.isArray(r))return"Array";if(isBuffer$1(r))return"Buffer";const t=getObjectType(r);return t||"Object"}function isBuffer$1(r){return r&&r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer.call(null,r)}function getObjectType(r){const e=Object.prototype.toString.call(r).slice(8,-1);if(objectTypeNames.includes(e))return e}class Type{constructor(e,t,n){this.major=e,this.majorEncoded=e<<5,this.name=t,this.terminal=n}toString(){return`Type[${this.major}].${this.name}`}compare(e){return this.majore.major?1:0}}Type.uint=new Type(0,"uint",!0);Type.negint=new Type(1,"negint",!0);Type.bytes=new Type(2,"bytes",!0);Type.string=new Type(3,"string",!0);Type.array=new Type(4,"array",!1);Type.map=new Type(5,"map",!1);Type.tag=new Type(6,"tag",!1);Type.float=new Type(7,"float",!0);Type.false=new Type(7,"false",!0);Type.true=new Type(7,"true",!0);Type.null=new Type(7,"null",!0);Type.undefined=new Type(7,"undefined",!0);Type.break=new Type(7,"break",!0);let Token$1=class{constructor(e,t,n){this.type=e,this.value=t,this.encodedLength=n,this.encodedBytes=void 0,this.byteValue=void 0}toString(){return`Token[${this.type}].${this.value}`}};const useBuffer=globalThis.process&&!globalThis.process.browser&&globalThis.Buffer&&typeof globalThis.Buffer.isBuffer=="function",textDecoder$1=new TextDecoder,textEncoder$2=new TextEncoder;function isBuffer(r){return useBuffer&&globalThis.Buffer.isBuffer(r)}function asU8A(r){return r instanceof Uint8Array?isBuffer(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):r:Uint8Array.from(r)}const toString=useBuffer?(r,e,t)=>t-e>64?globalThis.Buffer.from(r.subarray(e,t)).toString("utf8"):utf8Slice(r,e,t):(r,e,t)=>t-e>64?textDecoder$1.decode(r.subarray(e,t)):utf8Slice(r,e,t),fromString$2=useBuffer?r=>r.length>64?globalThis.Buffer.from(r):utf8ToBytes(r):r=>r.length>64?textEncoder$2.encode(r):utf8ToBytes(r),fromArray=r=>Uint8Array.from(r),slice=useBuffer?(r,e,t)=>isBuffer(r)?new Uint8Array(r.subarray(e,t)):r.slice(e,t):(r,e,t)=>r.slice(e,t),concat$2=useBuffer?(r,e)=>(r=r.map(t=>t instanceof Uint8Array?t:globalThis.Buffer.from(t)),asU8A(globalThis.Buffer.concat(r,e))):(r,e)=>{const t=new Uint8Array(e);let n=0;for(let o of r)n+o.length>t.length&&(o=o.subarray(0,t.length-n)),t.set(o,n),n+=o.length;return t},alloc=useBuffer?r=>globalThis.Buffer.allocUnsafe(r):r=>new Uint8Array(r);function compare(r,e){if(isBuffer(r)&&isBuffer(e))return r.compare(e);for(let t=0;t55295&&t<57344){if(!o){if(t>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&a.push(239,191,189);continue}o=t;continue}if(t<56320){(e-=3)>-1&&a.push(239,191,189),o=t;continue}t=(o-55296<<10|t-56320)+65536}else o&&(e-=3)>-1&&a.push(239,191,189);if(o=null,t<128){if((e-=1)<0)break;a.push(t)}else if(t<2048){if((e-=2)<0)break;a.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;a.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;a.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return a}function utf8Slice(r,e,t){const n=[];for(;e239?4:o>223?3:o>191?2:1;if(e+s<=t){let l,f,h,d;switch(s){case 1:o<128&&(a=o);break;case 2:l=r[e+1],(l&192)===128&&(d=(o&31)<<6|l&63,d>127&&(a=d));break;case 3:l=r[e+1],f=r[e+2],(l&192)===128&&(f&192)===128&&(d=(o&15)<<12|(l&63)<<6|f&63,d>2047&&(d<55296||d>57343)&&(a=d));break;case 4:l=r[e+1],f=r[e+2],h=r[e+3],(l&192)===128&&(f&192)===128&&(h&192)===128&&(d=(o&15)<<18|(l&63)<<12|(f&63)<<6|h&63,d>65535&&d<1114112&&(a=d))}}a===null?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),e+=s}return decodeCodePointsArray(n)}const MAX_ARGUMENTS_LENGTH=4096;function decodeCodePointsArray(r){const e=r.length;if(e<=MAX_ARGUMENTS_LENGTH)return String.fromCharCode.apply(String,r);let t="",n=0;for(;nn.length/2?(t=this.cursor===n.length?n:n.subarray(0,this.cursor),this._initReuseChunk=null,this.chunks=[]):t=slice(n,0,this.cursor)}else t=concat$2(this.chunks,this.cursor);return e&&this.reset(),t}}const decodeErrPrefix="CBOR decode error:",encodeErrPrefix="CBOR encode error:";function assertEnoughData(r,e,t){if(r.length-e>>8,n&255])}else if(t>>24&255,n>>>16&255,n>>>8&255,n&255])}else{const n=BigInt(t);if(n>BigInt(32)&BigInt(4294967295));o[8]=a&255,a=a>>8,o[7]=a&255,a=a>>8,o[6]=a&255,a=a>>8,o[5]=a&255,o[4]=s&255,s=s>>8,o[3]=s&255,s=s>>8,o[2]=s&255,s=s>>8,o[1]=s&255,r.push(o)}else throw new Error(`${decodeErrPrefix} encountered BigInt larger than allowable range`)}}encodeUint.encodedSize=function(e){return encodeUintValue.encodedSize(e.value)};encodeUintValue.encodedSize=function(e){return et.value?1:0};function decodeNegint8(r,e,t,n){return new Token$1(Type.negint,-1-readUint8(r,e+1,n),2)}function decodeNegint16(r,e,t,n){return new Token$1(Type.negint,-1-readUint16(r,e+1,n),3)}function decodeNegint32(r,e,t,n){return new Token$1(Type.negint,-1-readUint32(r,e+1,n),5)}const neg1b=BigInt(-1),pos1b=BigInt(1);function decodeNegint64(r,e,t,n){const o=readUint64(r,e+1,n);if(typeof o!="bigint"){const a=-1-o;if(a>=Number.MIN_SAFE_INTEGER)return new Token$1(Type.negint,a,9)}if(n.allowBigInt!==!0)throw new Error(`${decodeErrPrefix} integers outside of the safe integer range are not supported`);return new Token$1(Type.negint,neg1b-BigInt(o),9)}function encodeNegint(r,e){const t=e.value,n=typeof t=="bigint"?t*neg1b-pos1b:t*-1-1;encodeUintValue(r,e.type.majorEncoded,n)}encodeNegint.encodedSize=function(e){const t=e.value,n=typeof t=="bigint"?t*neg1b-pos1b:t*-1-1;return nt.value?-1:0};function toToken$3(r,e,t,n){assertEnoughData(r,e,t+n);const o=slice(r,e+t,e+t+n);return new Token$1(Type.bytes,o,t+n)}function decodeBytesCompact(r,e,t,n){return toToken$3(r,e,1,t)}function decodeBytes8(r,e,t,n){return toToken$3(r,e,2,readUint8(r,e+1,n))}function decodeBytes16(r,e,t,n){return toToken$3(r,e,3,readUint16(r,e+1,n))}function decodeBytes32(r,e,t,n){return toToken$3(r,e,5,readUint32(r,e+1,n))}function decodeBytes64(r,e,t,n){const o=readUint64(r,e+1,n);if(typeof o=="bigint")throw new Error(`${decodeErrPrefix} 64-bit integer bytes lengths not supported`);return toToken$3(r,e,9,o)}function tokenBytes(r){return r.encodedBytes===void 0&&(r.encodedBytes=r.type===Type.string?fromString$2(r.value):r.value),r.encodedBytes}function encodeBytes(r,e){const t=tokenBytes(e);encodeUintValue(r,e.type.majorEncoded,t.length),r.push(t)}encodeBytes.encodedSize=function(e){const t=tokenBytes(e);return encodeUintValue.encodedSize(t.length)+t.length};encodeBytes.compareTokens=function(e,t){return compareBytes(tokenBytes(e),tokenBytes(t))};function compareBytes(r,e){return r.lengthe.length?1:compare(r,e)}function toToken$2(r,e,t,n,o){const a=t+n;assertEnoughData(r,e,a);const s=new Token$1(Type.string,toString(r,e+t,e+a),a);return o.retainStringBytes===!0&&(s.byteValue=slice(r,e+t,e+a)),s}function decodeStringCompact(r,e,t,n){return toToken$2(r,e,1,t,n)}function decodeString8(r,e,t,n){return toToken$2(r,e,2,readUint8(r,e+1,n),n)}function decodeString16(r,e,t,n){return toToken$2(r,e,3,readUint16(r,e+1,n),n)}function decodeString32(r,e,t,n){return toToken$2(r,e,5,readUint32(r,e+1,n),n)}function decodeString64(r,e,t,n){const o=readUint64(r,e+1,n);if(typeof o=="bigint")throw new Error(`${decodeErrPrefix} 64-bit integer string lengths not supported`);return toToken$2(r,e,9,o,n)}const encodeString=encodeBytes;function toToken$1(r,e,t,n){return new Token$1(Type.array,n,t)}function decodeArrayCompact(r,e,t,n){return toToken$1(r,e,1,t)}function decodeArray8(r,e,t,n){return toToken$1(r,e,2,readUint8(r,e+1,n))}function decodeArray16(r,e,t,n){return toToken$1(r,e,3,readUint16(r,e+1,n))}function decodeArray32(r,e,t,n){return toToken$1(r,e,5,readUint32(r,e+1,n))}function decodeArray64(r,e,t,n){const o=readUint64(r,e+1,n);if(typeof o=="bigint")throw new Error(`${decodeErrPrefix} 64-bit integer array lengths not supported`);return toToken$1(r,e,9,o)}function decodeArrayIndefinite(r,e,t,n){if(n.allowIndefinite===!1)throw new Error(`${decodeErrPrefix} indefinite length items not allowed`);return toToken$1(r,e,1,1/0)}function encodeArray(r,e){encodeUintValue(r,Type.array.majorEncoded,e.value)}encodeArray.compareTokens=encodeUint.compareTokens;encodeArray.encodedSize=function(e){return encodeUintValue.encodedSize(e.value)};function toToken(r,e,t,n){return new Token$1(Type.map,n,t)}function decodeMapCompact(r,e,t,n){return toToken(r,e,1,t)}function decodeMap8(r,e,t,n){return toToken(r,e,2,readUint8(r,e+1,n))}function decodeMap16(r,e,t,n){return toToken(r,e,3,readUint16(r,e+1,n))}function decodeMap32(r,e,t,n){return toToken(r,e,5,readUint32(r,e+1,n))}function decodeMap64(r,e,t,n){const o=readUint64(r,e+1,n);if(typeof o=="bigint")throw new Error(`${decodeErrPrefix} 64-bit integer map lengths not supported`);return toToken(r,e,9,o)}function decodeMapIndefinite(r,e,t,n){if(n.allowIndefinite===!1)throw new Error(`${decodeErrPrefix} indefinite length items not allowed`);return toToken(r,e,1,1/0)}function encodeMap(r,e){encodeUintValue(r,Type.map.majorEncoded,e.value)}encodeMap.compareTokens=encodeUint.compareTokens;encodeMap.encodedSize=function(e){return encodeUintValue.encodedSize(e.value)};function decodeTagCompact(r,e,t,n){return new Token$1(Type.tag,t,1)}function decodeTag8(r,e,t,n){return new Token$1(Type.tag,readUint8(r,e+1,n),2)}function decodeTag16(r,e,t,n){return new Token$1(Type.tag,readUint16(r,e+1,n),3)}function decodeTag32(r,e,t,n){return new Token$1(Type.tag,readUint32(r,e+1,n),5)}function decodeTag64(r,e,t,n){return new Token$1(Type.tag,readUint64(r,e+1,n),9)}function encodeTag(r,e){encodeUintValue(r,Type.tag.majorEncoded,e.value)}encodeTag.compareTokens=encodeUint.compareTokens;encodeTag.encodedSize=function(e){return encodeUintValue.encodedSize(e.value)};const MINOR_FALSE=20,MINOR_TRUE=21,MINOR_NULL=22,MINOR_UNDEFINED=23;function decodeUndefined(r,e,t,n){if(n.allowUndefined===!1)throw new Error(`${decodeErrPrefix} undefined values are not supported`);return n.coerceUndefinedToNull===!0?new Token$1(Type.null,null,1):new Token$1(Type.undefined,void 0,1)}function decodeBreak(r,e,t,n){if(n.allowIndefinite===!1)throw new Error(`${decodeErrPrefix} indefinite length items not allowed`);return new Token$1(Type.break,void 0,1)}function createToken(r,e,t){if(t){if(t.allowNaN===!1&&Number.isNaN(r))throw new Error(`${decodeErrPrefix} NaN values are not supported`);if(t.allowInfinity===!1&&(r===1/0||r===-1/0))throw new Error(`${decodeErrPrefix} Infinity values are not supported`)}return new Token$1(Type.float,r,e)}function decodeFloat16(r,e,t,n){return createToken(readFloat16(r,e+1),3,n)}function decodeFloat32(r,e,t,n){return createToken(readFloat32(r,e+1),5,n)}function decodeFloat64(r,e,t,n){return createToken(readFloat64(r,e+1),9,n)}function encodeFloat(r,e,t){const n=e.value;if(n===!1)r.push([Type.float.majorEncoded|MINOR_FALSE]);else if(n===!0)r.push([Type.float.majorEncoded|MINOR_TRUE]);else if(n===null)r.push([Type.float.majorEncoded|MINOR_NULL]);else if(n===void 0)r.push([Type.float.majorEncoded|MINOR_UNDEFINED]);else{let o,a=!1;(!t||t.float64!==!0)&&(encodeFloat16(n),o=readFloat16(ui8a,1),n===o||Number.isNaN(n)?(ui8a[0]=249,r.push(ui8a.slice(0,3)),a=!0):(encodeFloat32(n),o=readFloat32(ui8a,1),n===o&&(ui8a[0]=250,r.push(ui8a.slice(0,5)),a=!0))),a||(encodeFloat64(n),o=readFloat64(ui8a,1),ui8a[0]=251,r.push(ui8a.slice(0,9)))}}encodeFloat.encodedSize=function(e,t){const n=e.value;if(n===!1||n===!0||n===null||n===void 0)return 1;if(!t||t.float64!==!0){encodeFloat16(n);let o=readFloat16(ui8a,1);if(n===o||Number.isNaN(n))return 3;if(encodeFloat32(n),o=readFloat32(ui8a,1),n===o)return 5}return 9};const buffer$1=new ArrayBuffer(9),dataView=new DataView(buffer$1,1),ui8a=new Uint8Array(buffer$1,0);function encodeFloat16(r){if(r===1/0)dataView.setUint16(0,31744,!1);else if(r===-1/0)dataView.setUint16(0,64512,!1);else if(Number.isNaN(r))dataView.setUint16(0,32256,!1);else{dataView.setFloat32(0,r);const e=dataView.getUint32(0),t=(e&2139095040)>>23,n=e&8388607;if(t===255)dataView.setUint16(0,31744,!1);else if(t===0)dataView.setUint16(0,(r&2147483648)>>16|n>>13,!1);else{const o=t-127;o<-24?dataView.setUint16(0,0):o<-14?dataView.setUint16(0,(e&2147483648)>>16|1<<24+o,!1):dataView.setUint16(0,(e&2147483648)>>16|o+15<<10|n>>13,!1)}}}function readFloat16(r,e){if(r.length-e<2)throw new Error(`${decodeErrPrefix} not enough data for float16`);const t=(r[e]<<8)+r[e+1];if(t===31744)return 1/0;if(t===64512)return-1/0;if(t===32256)return NaN;const n=t>>10&31,o=t&1023;let a;return n===0?a=o*2**-24:n!==31?a=(o+1024)*2**(n-25):a=o===0?1/0:NaN,t&32768?-a:a}function encodeFloat32(r){dataView.setFloat32(0,r,!1)}function readFloat32(r,e){if(r.length-e<4)throw new Error(`${decodeErrPrefix} not enough data for float32`);const t=(r.byteOffset||0)+e;return new DataView(r.buffer,t,4).getFloat32(0,!1)}function encodeFloat64(r){dataView.setFloat64(0,r,!1)}function readFloat64(r,e){if(r.length-e<8)throw new Error(`${decodeErrPrefix} not enough data for float64`);const t=(r.byteOffset||0)+e;return new DataView(r.buffer,t,8).getFloat64(0,!1)}encodeFloat.compareTokens=encodeUint.compareTokens;function invalidMinor(r,e,t){throw new Error(`${decodeErrPrefix} encountered invalid minor (${t}) for major ${r[e]>>>5}`)}function errorer(r){return()=>{throw new Error(`${decodeErrPrefix} ${r}`)}}const jump=[];for(let r=0;r<=23;r++)jump[r]=invalidMinor;jump[24]=decodeUint8;jump[25]=decodeUint16;jump[26]=decodeUint32;jump[27]=decodeUint64;jump[28]=invalidMinor;jump[29]=invalidMinor;jump[30]=invalidMinor;jump[31]=invalidMinor;for(let r=32;r<=55;r++)jump[r]=invalidMinor;jump[56]=decodeNegint8;jump[57]=decodeNegint16;jump[58]=decodeNegint32;jump[59]=decodeNegint64;jump[60]=invalidMinor;jump[61]=invalidMinor;jump[62]=invalidMinor;jump[63]=invalidMinor;for(let r=64;r<=87;r++)jump[r]=decodeBytesCompact;jump[88]=decodeBytes8;jump[89]=decodeBytes16;jump[90]=decodeBytes32;jump[91]=decodeBytes64;jump[92]=invalidMinor;jump[93]=invalidMinor;jump[94]=invalidMinor;jump[95]=errorer("indefinite length bytes/strings are not supported");for(let r=96;r<=119;r++)jump[r]=decodeStringCompact;jump[120]=decodeString8;jump[121]=decodeString16;jump[122]=decodeString32;jump[123]=decodeString64;jump[124]=invalidMinor;jump[125]=invalidMinor;jump[126]=invalidMinor;jump[127]=errorer("indefinite length bytes/strings are not supported");for(let r=128;r<=151;r++)jump[r]=decodeArrayCompact;jump[152]=decodeArray8;jump[153]=decodeArray16;jump[154]=decodeArray32;jump[155]=decodeArray64;jump[156]=invalidMinor;jump[157]=invalidMinor;jump[158]=invalidMinor;jump[159]=decodeArrayIndefinite;for(let r=160;r<=183;r++)jump[r]=decodeMapCompact;jump[184]=decodeMap8;jump[185]=decodeMap16;jump[186]=decodeMap32;jump[187]=decodeMap64;jump[188]=invalidMinor;jump[189]=invalidMinor;jump[190]=invalidMinor;jump[191]=decodeMapIndefinite;for(let r=192;r<=215;r++)jump[r]=decodeTagCompact;jump[216]=decodeTag8;jump[217]=decodeTag16;jump[218]=decodeTag32;jump[219]=decodeTag64;jump[220]=invalidMinor;jump[221]=invalidMinor;jump[222]=invalidMinor;jump[223]=invalidMinor;for(let r=224;r<=243;r++)jump[r]=errorer("simple values are not supported");jump[244]=invalidMinor;jump[245]=invalidMinor;jump[246]=invalidMinor;jump[247]=decodeUndefined;jump[248]=errorer("simple values are not supported");jump[249]=decodeFloat16;jump[250]=decodeFloat32;jump[251]=decodeFloat64;jump[252]=invalidMinor;jump[253]=invalidMinor;jump[254]=invalidMinor;jump[255]=decodeBreak;const quick=[];for(let r=0;r<24;r++)quick[r]=new Token$1(Type.uint,r,1);for(let r=-1;r>=-24;r--)quick[31-r]=new Token$1(Type.negint,r,1);quick[64]=new Token$1(Type.bytes,new Uint8Array(0),1);quick[96]=new Token$1(Type.string,"",1);quick[128]=new Token$1(Type.array,0,1);quick[160]=new Token$1(Type.map,0,1);quick[244]=new Token$1(Type.false,!1,1);quick[245]=new Token$1(Type.true,!0,1);quick[246]=new Token$1(Type.null,null,1);function quickEncodeToken(r){switch(r.type){case Type.false:return fromArray([244]);case Type.true:return fromArray([245]);case Type.null:return fromArray([246]);case Type.bytes:return r.value.length?void 0:fromArray([64]);case Type.string:return r.value===""?fromArray([96]):void 0;case Type.array:return r.value===0?fromArray([128]):void 0;case Type.map:return r.value===0?fromArray([160]):void 0;case Type.uint:return r.value<24?fromArray([Number(r.value)]):void 0;case Type.negint:if(r.value>=-24)return fromArray([31-Number(r.value)])}}const defaultEncodeOptions={float64:!1,mapSorter,quickEncodeToken};function makeCborEncoders(){const r=[];return r[Type.uint.major]=encodeUint,r[Type.negint.major]=encodeNegint,r[Type.bytes.major]=encodeBytes,r[Type.string.major]=encodeString,r[Type.array.major]=encodeArray,r[Type.map.major]=encodeMap,r[Type.tag.major]=encodeTag,r[Type.float.major]=encodeFloat,r}const cborEncoders=makeCborEncoders(),buf=new Bl;class Ref{constructor(e,t){this.obj=e,this.parent=t}includes(e){let t=this;do if(t.obj===e)return!0;while(t=t.parent);return!1}static createCheck(e,t){if(e&&e.includes(t))throw new Error(`${encodeErrPrefix} object contains circular references`);return new Ref(t,e)}}const simpleTokens={null:new Token$1(Type.null,null),undefined:new Token$1(Type.undefined,void 0),true:new Token$1(Type.true,!0),false:new Token$1(Type.false,!1),emptyArray:new Token$1(Type.array,0),emptyMap:new Token$1(Type.map,0)},typeEncoders={number(r,e,t,n){return!Number.isInteger(r)||!Number.isSafeInteger(r)?new Token$1(Type.float,r):r>=0?new Token$1(Type.uint,r):new Token$1(Type.negint,r)},bigint(r,e,t,n){return r>=BigInt(0)?new Token$1(Type.uint,r):new Token$1(Type.negint,r)},Uint8Array(r,e,t,n){return new Token$1(Type.bytes,r)},string(r,e,t,n){return new Token$1(Type.string,r)},boolean(r,e,t,n){return r?simpleTokens.true:simpleTokens.false},null(r,e,t,n){return simpleTokens.null},undefined(r,e,t,n){return simpleTokens.undefined},ArrayBuffer(r,e,t,n){return new Token$1(Type.bytes,new Uint8Array(r))},DataView(r,e,t,n){return new Token$1(Type.bytes,new Uint8Array(r.buffer,r.byteOffset,r.byteLength))},Array(r,e,t,n){if(!r.length)return t.addBreakTokens===!0?[simpleTokens.emptyArray,new Token$1(Type.break)]:simpleTokens.emptyArray;n=Ref.createCheck(n,r);const o=[];let a=0;for(const s of r)o[a++]=objectToTokens(s,t,n);return t.addBreakTokens?[new Token$1(Type.array,r.length),o,new Token$1(Type.break)]:[new Token$1(Type.array,r.length),o]},Object(r,e,t,n){const o=e!=="Object",a=o?r.keys():Object.keys(r),s=o?r.size:a.length;if(!s)return t.addBreakTokens===!0?[simpleTokens.emptyMap,new Token$1(Type.break)]:simpleTokens.emptyMap;n=Ref.createCheck(n,r);const l=[];let f=0;for(const h of a)l[f++]=[objectToTokens(h,t,n),objectToTokens(o?r.get(h):r[h],t,n)];return sortMapEntries(l,t),t.addBreakTokens?[new Token$1(Type.map,s),l,new Token$1(Type.break)]:[new Token$1(Type.map,s),l]}};typeEncoders.Map=typeEncoders.Object;typeEncoders.Buffer=typeEncoders.Uint8Array;for(const r of"Uint8Clamped Uint16 Uint32 Int8 Int16 Int32 BigUint64 BigInt64 Float32 Float64".split(" "))typeEncoders[`${r}Array`]=typeEncoders.DataView;function objectToTokens(r,e={},t){const n=is(r),o=e&&e.typeEncoders&&e.typeEncoders[n]||typeEncoders[n];if(typeof o=="function"){const s=o(r,n,e,t);if(s!=null)return s}const a=typeEncoders[n];if(!a)throw new Error(`${encodeErrPrefix} unsupported type: ${n}`);return a(r,n,e,t)}function sortMapEntries(r,e){e.mapSorter&&r.sort(e.mapSorter)}function mapSorter(r,e){const t=Array.isArray(r[0])?r[0][0]:r[0],n=Array.isArray(e[0])?e[0][0]:e[0];if(t.type!==n.type)return t.type.compare(n.type);const o=t.type.major,a=cborEncoders[o].compareTokens(t,n);return a===0&&console.warn("WARNING: complex key types used, CBOR key sorting guarantees are gone"),a}function tokensToEncoded(r,e,t,n){if(Array.isArray(e))for(const o of e)tokensToEncoded(r,o,t,n);else t[e.type.major](r,e,n)}function encodeCustom(r,e,t){const n=objectToTokens(r,t);if(!Array.isArray(n)&&t.quickEncodeToken){const o=t.quickEncodeToken(n);if(o)return o;const a=e[n.type.major];if(a.encodedSize){const s=a.encodedSize(n,t),l=new Bl(s);if(a(l,n,t),l.chunks.length!==1)throw new Error(`Unexpected error: pre-calculated length for ${n} was wrong`);return asU8A(l.chunks[0])}}return buf.reset(),tokensToEncoded(buf,n,e,t),buf.toBytes(!0)}function encode$6(r,e){return e=Object.assign({},defaultEncodeOptions,e),encodeCustom(r,cborEncoders,e)}const defaultDecodeOptions={strict:!1,allowIndefinite:!0,allowUndefined:!0,allowBigInt:!0};class Tokeniser{constructor(e,t={}){this.pos=0,this.data=e,this.options=t}done(){return this.pos>=this.data.length}next(){const e=this.data[this.pos];let t=quick[e];if(t===void 0){const n=jump[e];if(!n)throw new Error(`${decodeErrPrefix} no decoder for major type ${e>>>5} (byte 0x${e.toString(16).padStart(2,"0")})`);const o=e&31;t=n(this.data,this.pos,o,this.options)}return this.pos+=t.encodedLength,t}}const DONE=Symbol.for("DONE"),BREAK=Symbol.for("BREAK");function tokenToArray(r,e,t){const n=[];for(let o=0;oencode$6(r,encodeOptions$1),decode$4=r=>decode$5(r,decodeOptions$1),CIDV0_BYTES={SHA2_256:18,LENGTH:32,DAG_PB:112};async function readVarint(r){const e=await r.upTo(8),t=varint$2.decode(e);return r.seek(varint$2.decode.bytes),t}async function readHeader(r){const e=await readVarint(r);if(e===0)throw new Error("Invalid CAR header (zero length)");const t=await r.exactly(e);r.seek(e);const n=decode$4(t);if(n==null||Array.isArray(n)||typeof n!="object")throw new Error("Invalid CAR header format");if(n.version!==1)throw typeof n.version=="string"?new Error(`Invalid CAR version: "${n.version}"`):new Error(`Invalid CAR version: ${n.version}`);if(!Array.isArray(n.roots))throw new Error("Invalid CAR header format");if(Object.keys(n).filter(o=>o!=="roots"&&o!=="version").length)throw new Error("Invalid CAR header format");return n}async function readMultihash(r){const e=await r.upTo(8);varint$2.decode(e);const t=varint$2.decode.bytes,n=varint$2.decode(e.subarray(varint$2.decode.bytes)),o=varint$2.decode.bytes,a=t+o+n,s=await r.exactly(a);return r.seek(a),s}async function readCid(r){const e=await r.exactly(2);if(e[0]===CIDV0_BYTES.SHA2_256&&e[1]===CIDV0_BYTES.LENGTH){const s=await r.exactly(34);r.seek(34);const l=decode$7(s);return CID.create(0,CIDV0_BYTES.DAG_PB,l)}const t=await readVarint(r);if(t!==1)throw new Error(`Unexpected CID version (${t})`);const n=await readVarint(r),o=await readMultihash(r),a=decode$7(o);return CID.create(t,n,a)}async function readBlockHead(r){const e=r.pos;let t=await readVarint(r);if(t===0)throw new Error("Invalid CAR section (zero length)");t+=r.pos-e;const n=await readCid(r),o=t-(r.pos-e);return{cid:n,length:t,blockLength:o}}async function readBlock(r){const{cid:e,blockLength:t}=await readBlockHead(r),n=await r.exactly(t);return r.seek(t),{bytes:n,cid:e}}async function readBlockIndex(r){const e=r.pos,{cid:t,length:n,blockLength:o}=await readBlockHead(r),a={cid:t,length:n,blockLength:o,offset:e,blockOffset:r.pos};return r.seek(a.blockLength),a}function createDecoder(r){const e=readHeader(r);return{header:()=>e,async*blocks(){for(await e;(await r.upTo(8)).length>0;)yield await readBlock(r)},async*blocksIndex(){for(await e;(await r.upTo(8)).length>0;)yield await readBlockIndex(r)}}}function bytesReader(r){let e=0;return{async upTo(t){return r.subarray(e,e+Math.min(t,r.length-e))},async exactly(t){if(t>r.length-e)throw new Error("Unexpected end of data");return r.subarray(e,e+t)},seek(t){e+=t},get pos(){return e}}}function chunkReader(r){let e=0,t=0,n=0,o=new Uint8Array(0);const a=async s=>{t=o.length-n;const l=[o.subarray(n)];for(;tt&&l.push(h.subarray(-t)):l.push(h),t+=h.length}o=new Uint8Array(l.reduce((h,d)=>h+d.length,0));let f=0;for(const h of l)o.set(h,f),f+=h.length;n=0};return{async upTo(s){return o.length-no.cid.toString())}get version(){return this._version}async getRoots(){return this._roots}async has(e){return this._keys.indexOf(e.toString())>-1}async get(e){const t=this._keys.indexOf(e.toString());return t>-1?this._blocks[t]:void 0}async*blocks(){for(const e of this._blocks)yield e}async*cids(){for(const e of this._blocks)yield e.cid}static async fromBytes(e){if(!(e instanceof Uint8Array))throw new TypeError("fromBytes() requires a Uint8Array");return decodeReaderComplete(bytesReader(e))}static async fromIterable(e){if(!e||typeof e[Symbol.asyncIterator]!="function")throw new TypeError("fromIterable() requires an async iterable");return decodeReaderComplete(asyncIterableReader(e))}}async function decodeReaderComplete(r){const e=createDecoder(r),{version:t,roots:n}=await e.header(),o=[];for await(const a of e.blocks())o.push(a);return new CarReader(t,n,o)}function createHeader(r){const e=encode$5({version:1,roots:r}),t=varint$2.encode(e.length),n=new Uint8Array(t.length+e.length);return n.set(t,0),n.set(e,t.length),n}function createEncoder(r){return{async setRoots(e){const t=createHeader(e);await r.write(t)},async writeBlock(e){const{cid:t,bytes:n}=e;await r.write(new Uint8Array(varint$2.encode(t.bytes.length+n.length))),await r.write(t.bytes),n.length&&await r.write(n)},async close(){return r.end()}}}function noop$1(){}function create$3(){const r=[];let e=null,t=noop$1,n=!1,o=null,a=noop$1;const s=()=>(e||(e=new Promise(h=>{t=()=>{e=null,t=noop$1,h()}})),e),l={write(h){r.push(h);const d=s();return a(),d},async end(){n=!0;const h=s();return a(),h}},f={async next(){const h=r.shift();return h?(r.length===0&&t(),{done:!1,value:h}):n?(t(),{done:!0,value:void 0}):(o||(o=new Promise(d=>{a=()=>(o=null,a=noop$1,d(f.next()))})),o)}};return{writer:l,iterator:f}}class CarWriter{constructor(e,t){this._encoder=t,this._mutex=t.setRoots(e),this._ended=!1}async put(e){if(!(e.bytes instanceof Uint8Array)||!e.cid)throw new TypeError("Can only write {cid, bytes} objects");if(this._ended)throw new Error("Already closed");const t=CID.asCID(e.cid);if(!t)throw new TypeError("Can only write {cid, bytes} objects");return this._mutex=this._mutex.then(()=>this._encoder.writeBlock({cid:t,bytes:e.bytes})),this._mutex}async close(){if(this._ended)throw new Error("Already closed");return await this._mutex,this._ended=!0,this._encoder.close()}static create(e){e=toRoots(e);const{encoder:t,iterator:n}=encodeWriter(),o=new CarWriter(e,t),a=new CarWriterOut(n);return{writer:o,out:a}}static createAppender(){const{encoder:e,iterator:t}=encodeWriter();e.setRoots=()=>Promise.resolve();const n=new CarWriter([],e),o=new CarWriterOut(t);return{writer:n,out:o}}static async updateRootsInBytes(e,t){const n=bytesReader(e);await readHeader(n);const o=createHeader(t);if(n.pos!==o.length)throw new Error(`updateRoots() can only overwrite a header of the same length (old header is ${n.pos} bytes, new header is ${o.length} bytes)`);return e.set(o,0),e}}class CarWriterOut{constructor(e){this._iterator=e}[Symbol.asyncIterator](){if(this._iterating)throw new Error("Multiple iterator not supported");return this._iterating=!0,this._iterator}}function encodeWriter(){const r=create$3(),{writer:e,iterator:t}=r;return{encoder:createEncoder(e),iterator:t}}function toRoots(r){if(r===void 0)return[];if(!Array.isArray(r)){const t=CID.asCID(r);if(!t)throw new TypeError("roots must be a single CID or an array of CIDs");return[t]}const e=[];for(const t of r){const n=CID.asCID(t);if(!n)throw new TypeError("roots must be a single CID or an array of CIDs");e.push(n)}return e}const from=({name:r,code:e,encode:t})=>new Hasher(r,e,t);class Hasher{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?create$4(this.code,t):t.then(n=>create$4(this.code,n))}else throw Error("Unknown type, must be binary type")}}const readonly=({enumerable:r=!0,configurable:e=!1}={})=>({enumerable:r,configurable:e,writable:!1}),links=function*(r,e){if(r!=null&&!(r instanceof Uint8Array))for(const[t,n]of Object.entries(r)){const o=[...e,t];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(const[a,s]of n.entries()){const l=[...o,a],f=CID.asCID(s);f?yield[l.join("/"),f]:typeof s=="object"&&(yield*links(s,l))}else{const a=CID.asCID(n);a?yield[o.join("/"),a]:yield*links(n,o)}}},tree=function*(r,e){if(r!=null)for(const[t,n]of Object.entries(r)){const o=[...e,t];if(yield o.join("/"),n!=null&&!(n instanceof Uint8Array)&&typeof n=="object"&&!CID.asCID(n))if(Array.isArray(n))for(const[a,s]of n.entries()){const l=[...o,a];yield l.join("/"),typeof s=="object"&&!CID.asCID(s)&&(yield*tree(s,l))}else yield*tree(n,o)}},get=(r,e)=>{let t=r;for(const[n,o]of e.entries()){if(t=t[o],t==null)throw new Error(`Object has no property at ${e.slice(0,n+1).map(s=>`[${JSON.stringify(s)}]`).join("")}`);const a=CID.asCID(t);if(a)return{value:a,remaining:e.slice(n+1).join("/")}}return{value:t}};class Block{constructor({cid:e,bytes:t,value:n}){if(!e||!t||typeof n>"u")throw new Error("Missing required argument");this.cid=e,this.bytes=t,this.value=n,this.asBlock=this,Object.defineProperties(this,{cid:readonly(),bytes:readonly(),value:readonly(),asBlock:readonly()})}links(){return links(this.value,[])}tree(){return tree(this.value,[])}get(e="/"){return get(this.value,e.split("/").filter(Boolean))}}const encode$4=async({value:r,codec:e,hasher:t})=>{if(typeof r>"u")throw new Error('Missing required argument "value"');if(!e||!t)throw new Error("Missing required argument: codec or hasher");const n=e.encode(r),o=await t.digest(n),a=CID.create(1,e.code,o);return new Block({value:r,bytes:n,cid:a})},name$2="raw",code$3=85,encode$3=r=>coerce(r),decode$3=r=>coerce(r),raw=Object.freeze(Object.defineProperty({__proto__:null,code:code$3,decode:decode$3,encode:encode$3,name:name$2},Symbol.toStringTag,{value:"Module"})),CID_CBOR_TAG=42;function cidEncoder(r){if(r.asCID!==r)return null;const e=CID.asCID(r);if(!e)return null;const t=new Uint8Array(e.bytes.byteLength+1);return t.set(e.bytes,1),[new Token$1(Type.tag,CID_CBOR_TAG),new Token$1(Type.bytes,t)]}function undefinedEncoder(){throw new Error("`undefined` is not supported by the IPLD Data Model and cannot be encoded")}function numberEncoder(r){if(Number.isNaN(r))throw new Error("`NaN` is not supported by the IPLD Data Model and cannot be encoded");if(r===1/0||r===-1/0)throw new Error("`Infinity` and `-Infinity` is not supported by the IPLD Data Model and cannot be encoded");return null}const encodeOptions={float64:!0,typeEncoders:{Object:cidEncoder,undefined:undefinedEncoder,number:numberEncoder}};function cidDecoder(r){if(r[0]!==0)throw new Error("Invalid CID for CBOR tag 42; expected leading 0x00");return CID.decode(r.subarray(1))}const decodeOptions={allowIndefinite:!1,allowUndefined:!1,allowNaN:!1,allowInfinity:!1,allowBigInt:!0,strict:!0,useMaps:!1,tags:[]};decodeOptions.tags[CID_CBOR_TAG]=cidDecoder;const name$1="dag-cbor",code$2=113,encode$2=r=>encode$6(r,encodeOptions),decode$2=r=>decode$5(r,decodeOptions),dagCbor=Object.freeze(Object.defineProperty({__proto__:null,code:code$2,decode:decode$2,encode:encode$2,name:name$1},Symbol.toStringTag,{value:"Module"})),textDecoder=new TextDecoder;function decodeVarint(r,e){let t=0;for(let n=0;;n+=7){if(n>=64)throw new Error("protobuf: varint overflow");if(e>=r.length)throw new Error("protobuf: unexpected end of data");const o=r[e++];if(t+=n<28?(o&127)<r.length)throw new Error("protobuf: unexpected end of data");return[r.subarray(e,n),n]}function decodeKey(r,e){let t;return[t,e]=decodeVarint(r,e),[t&7,t>>3,e]}function decodeLink(r){const e={},t=r.length;let n=0;for(;nt)throw new Error("protobuf: (PBLink) unexpected end of data");return e}function decodeNode(r){const e=r.length;let t=0,n,o=!1,a;for(;te)throw new Error("protobuf: (PBNode) unexpected end of data");const s={};return a&&(s.Data=a),s.Links=n||[],s}const textEncoder$1=new TextEncoder,maxInt32=2**32,maxUInt32=2**31;function encodeLink(r,e){let t=e.length;if(typeof r.Tsize=="number"){if(r.Tsize<0)throw new Error("Tsize cannot be negative");if(!Number.isSafeInteger(r.Tsize))throw new Error("Tsize too large for encoding");t=encodeVarint(e,t,r.Tsize)-1,e[t]=24}if(typeof r.Name=="string"){const n=textEncoder$1.encode(r.Name);t-=n.length,e.set(n,t),t=encodeVarint(e,t,n.length)-1,e[t]=18}return r.Hash&&(t-=r.Hash.length,e.set(r.Hash,t),t=encodeVarint(e,t,r.Hash.length)-1,e[t]=10),e.length-t}function encodeNode(r){const e=sizeNode(r),t=new Uint8Array(e);let n=e;if(r.Data&&(n-=r.Data.length,t.set(r.Data,n),n=encodeVarint(t,n,r.Data.length)-1,t[n]=10),r.Links)for(let o=r.Links.length-1;o>=0;o--){const a=encodeLink(r.Links[o],t.subarray(0,n));n-=a,n=encodeVarint(t,n,a)-1,t[n]=18}return t}function sizeLink(r){let e=0;if(r.Hash){const t=r.Hash.length;e+=1+t+sov(t)}if(typeof r.Name=="string"){const t=textEncoder$1.encode(r.Name).length;e+=1+t+sov(t)}return typeof r.Tsize=="number"&&(e+=1+sov(r.Tsize)),e}function sizeNode(r){let e=0;if(r.Data){const t=r.Data.length;e+=1+t+sov(t)}if(r.Links)for(const t of r.Links){const n=sizeLink(t);e+=1+n+sov(n)}return e}function encodeVarint(r,e,t){e-=sov(t);const n=e;for(;t>=maxUInt32;)r[e++]=t&127|128,t/=128;for(;t>=128;)r[e++]=t&127|128,t>>>=7;return r[e]=t,n}function sov(r){return r%2===0&&r++,Math.floor((len64(r)+6)/7)}function len64(r){let e=0;return r>=maxInt32&&(r=Math.floor(r/maxInt32),e=32),r>=65536&&(r>>>=16,e+=16),r>=256&&(r>>>=8,e+=8),e+len8tab[r]}const len8tab=[0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8],pbNodeProperties=["Data","Links"],pbLinkProperties=["Hash","Name","Tsize"],textEncoder=new TextEncoder;function linkComparator(r,e){if(r===e)return 0;const t=r.Name?textEncoder.encode(r.Name):[],n=e.Name?textEncoder.encode(e.Name):[];let o=t.length,a=n.length;for(let s=0,l=Math.min(o,a);s!e.includes(t))}function asLink(r){if(typeof r.asCID=="object"){const t=CID.asCID(r);if(!t)throw new TypeError("Invalid DAG-PB form");return{Hash:t}}if(typeof r!="object"||Array.isArray(r))throw new TypeError("Invalid DAG-PB form");const e={};if(r.Hash){let t=CID.asCID(r.Hash);try{t||(typeof r.Hash=="string"?t=CID.parse(r.Hash):r.Hash instanceof Uint8Array&&(t=CID.decode(r.Hash)))}catch(n){throw new TypeError(`Invalid DAG-PB form: ${n.message}`)}t&&(e.Hash=t)}if(!e.Hash)throw new TypeError("Invalid DAG-PB form");return typeof r.Name=="string"&&(e.Name=r.Name),typeof r.Tsize=="number"&&(e.Tsize=r.Tsize),e}function prepare(r){if((r instanceof Uint8Array||typeof r=="string")&&(r={Data:r}),typeof r!="object"||Array.isArray(r))throw new TypeError("Invalid DAG-PB form");const e={};if(r.Data!==void 0)if(typeof r.Data=="string")e.Data=textEncoder.encode(r.Data);else if(r.Data instanceof Uint8Array)e.Data=r.Data;else throw new TypeError("Invalid DAG-PB form");if(r.Links!==void 0)if(Array.isArray(r.Links))e.Links=r.Links.map(asLink),e.Links.sort(linkComparator);else throw new TypeError("Invalid DAG-PB form");else e.Links=[];return e}function validate(r){if(!r||typeof r!="object"||Array.isArray(r))throw new TypeError("Invalid DAG-PB form");if(!hasOnlyProperties(r,pbNodeProperties))throw new TypeError("Invalid DAG-PB form (extraneous properties)");if(r.Data!==void 0&&!(r.Data instanceof Uint8Array))throw new TypeError("Invalid DAG-PB form (Data must be a Uint8Array)");if(!Array.isArray(r.Links))throw new TypeError("Invalid DAG-PB form (Links must be an array)");for(let e=0;e0&&linkComparator(t,r.Links[e-1])===-1)throw new TypeError("Invalid DAG-PB form (links must be sorted by Name bytes)")}}function createNode(r,e=[]){return prepare({Data:r,Links:e})}function createLink(r,e,t){return asLink({Hash:t,Name:r,Tsize:e})}const name="dag-pb",code$1=112;function encode$1(r){validate(r);const e={};return r.Links&&(e.Links=r.Links.map(t=>{const n={};return t.Hash&&(n.Hash=t.Hash.bytes),t.Name!==void 0&&(n.Name=t.Name),t.Tsize!==void 0&&(n.Tsize=t.Tsize),n})),r.Data&&(e.Data=r.Data),encodeNode(e)}function decode$1(r){const e=decodeNode(r),t={};return e.Data&&(t.Data=e.Data),e.Links&&(t.Links=e.Links.map(n=>{const o={};try{o.Hash=CID.decode(n.Hash)}catch{}if(!o.Hash)throw new Error("Invalid Hash field found in link, expected CID");return n.Name!==void 0&&(o.Name=n.Name),n.Tsize!==void 0&&(o.Tsize=n.Tsize),o})),t}const dagPb=Object.freeze(Object.defineProperty({__proto__:null,code:code$1,createLink,createNode,decode:decode$1,encode:encode$1,name,prepare,validate},Symbol.toStringTag,{value:"Module"}));class TreewalkCarSplitter{constructor(e,t,n={}){if(typeof t!="number"||t<=0)throw new Error("invalid target chunk size");this._reader=e,this._targetSize=t,this._decoders=[dagPb,raw,dagCbor,...n.decoders||[]]}async*cars(){const e=await this._reader.getRoots();if(e.length!==1)throw new Error(`unexpected number of roots: ${e.length}`);let t;for await(const n of this._cars(e[0]))t=n.channel,n.out&&(yield n.out);if(!t)throw new Error("missing CAR writer channel");t.writer.close(),yield t.out}async _get(e){const t=await this._reader.get(e);if(!t)throw new Error(`missing block for ${e}`);const{bytes:n}=t,o=this._decoders.find(a=>a.code===e.code);if(!o)throw new Error(`missing decoder for ${e.code}`);return new Block({cid:e,bytes:n,value:o.decode(n)})}async*_cars(e,t=[],n=void 0){const o=await this._get(e);if(n=n||Object.assign(CarWriter.create(e),{size:0}),n.size>0&&n.size+o.bytes.byteLength>=this._targetSize){n.writer.close();const{out:a}=n;n=newCar(t),yield{channel:n,out:a}}t=t.concat(o),n.size+=o.bytes.byteLength,n.writer.put(o);for(const[,a]of o.links())for await(const s of this._cars(a,t,n))n=s.channel,yield s;if(!n)throw new Error("missing CAR writer channel");yield{channel:n}}static async fromIterable(e,t,n){const o=await CarReader.fromIterable(e);return new TreewalkCarSplitter(o,t,n)}static async fromBlob(e,t,n){const o=await e.arrayBuffer(),a=await CarReader.fromBytes(new Uint8Array(o));return new TreewalkCarSplitter(a,t,n)}}function newCar(r){const e=Object.assign(CarWriter.create(r[0].cid),{size:r.reduce((t,n)=>t+n.bytes.byteLength,0)});for(const t of r)e.writer.put(t);return e}const last=async r=>{let e;for await(const t of r)e=t;return e};var itLast=last;const last$1=getDefaultExportFromCjs(itLast);var itPipe={exports:{}};const rawPipe=(...r)=>{let e;for(;r.length;)e=r.shift()(e);return e},isIterable$1=r=>r&&(typeof r[Symbol.asyncIterator]=="function"||typeof r[Symbol.iterator]=="function"||typeof r.next=="function"),isDuplex=r=>r&&typeof r.sink=="function"&&isIterable$1(r.source),duplexPipelineFn=r=>e=>(r.sink(e),r.source),pipe=(...r)=>{if(isDuplex(r[0])){const e=r[0];r[0]=()=>e.source}else if(isIterable$1(r[0])){const e=r[0];r[0]=()=>e}if(r.length>1&&isDuplex(r[r.length-1])&&(r[r.length-1]=r[r.length-1].sink),r.length>2)for(let e=1;e=e;)yield t.slice(0,e),t=t.slice(e);for(;t.length;)yield t.slice(0,e),t=t.slice(e)}var itBatch=batch$1;const batch$2=getDefaultExportFromCjs(itBatch),batch=itBatch;async function*parallelBatch(r,e=1){for await(const t of batch(r,e)){const n=t.map(o=>o().then(a=>({ok:!0,value:a}),a=>({ok:!1,err:a})));for(let o=0;o{if(Object.prototype.toString.call(r)!=="[object Object]")return!1;const e=Object.getPrototypeOf(r);return e===null||e===Object.prototype};const isOptionObject=isPlainObj,{hasOwnProperty}=Object.prototype,{propertyIsEnumerable}=Object,defineProperty=(r,e,t)=>Object.defineProperty(r,e,{value:t,writable:!0,enumerable:!0,configurable:!0}),globalThis$1=commonjsGlobal,defaultMergeOptions={concatArrays:!1,ignoreUndefined:!1},getEnumerableOwnPropertyKeys=r=>{const e=[];for(const t in r)hasOwnProperty.call(r,t)&&e.push(t);if(Object.getOwnPropertySymbols){const t=Object.getOwnPropertySymbols(r);for(const n of t)propertyIsEnumerable.call(r,n)&&e.push(n)}return e};function clone$1(r){return Array.isArray(r)?cloneArray(r):isOptionObject(r)?cloneOptionObject(r):r}function cloneArray(r){const e=r.slice(0,0);return getEnumerableOwnPropertyKeys(r).forEach(t=>{defineProperty(e,t,clone$1(r[t]))}),e}function cloneOptionObject(r){const e=Object.getPrototypeOf(r)===null?Object.create(null):{};return getEnumerableOwnPropertyKeys(r).forEach(t=>{defineProperty(e,t,clone$1(r[t]))}),e}const mergeKeys=(r,e,t,n)=>(t.forEach(o=>{typeof e[o]>"u"&&n.ignoreUndefined||(o in r&&r[o]!==Object.getPrototypeOf(r)?defineProperty(r,o,merge(r[o],e[o],n)):defineProperty(r,o,clone$1(e[o])))}),r),concatArrays=(r,e,t)=>{let n=r.slice(0,0),o=0;return[r,e].forEach(a=>{const s=[];for(let l=0;l!s.includes(l)),t)}),n};function merge(r,e,t){return t.concatArrays&&Array.isArray(r)&&Array.isArray(e)?concatArrays(r,e,t):!isOptionObject(e)||!isOptionObject(r)?clone$1(e):mergeKeys(r,e,getEnumerableOwnPropertyKeys(e),t)}var mergeOptions=function(...r){const e=merge(clone$1(defaultMergeOptions),this!==globalThis$1&&this||{},defaultMergeOptions);let t={_:{}};for(const n of r)if(n!==void 0){if(!isOptionObject(n))throw new TypeError("`"+n+"` is not an Option Object");t=merge(t,{_:n},e)}return t._};const mergeOptions$1=getDefaultExportFromCjs(mergeOptions),sha=r=>async e=>new Uint8Array(await crypto.subtle.digest(r,e)),sha256=from({name:"sha2-256",code:18,encode:sha("SHA-256")});var murmurHash3js={exports:{}};(function(r,e){(function(t,n){var o={version:"3.0.0",x86:{},x64:{},inputValidation:!0};function a(y){if(!Array.isArray(y)&&!ArrayBuffer.isView(y))return!1;for(var v=0;v255)return!1;return!0}function s(y,v){return(y&65535)*v+(((y>>>16)*v&65535)<<16)}function l(y,v){return y<>>32-v}function f(y){return y^=y>>>16,y=s(y,2246822507),y^=y>>>13,y=s(y,3266489909),y^=y>>>16,y}function h(y,v){y=[y[0]>>>16,y[0]&65535,y[1]>>>16,y[1]&65535],v=[v[0]>>>16,v[0]&65535,v[1]>>>16,v[1]&65535];var A=[0,0,0,0];return A[3]+=y[3]+v[3],A[2]+=A[3]>>>16,A[3]&=65535,A[2]+=y[2]+v[2],A[1]+=A[2]>>>16,A[2]&=65535,A[1]+=y[1]+v[1],A[0]+=A[1]>>>16,A[1]&=65535,A[0]+=y[0]+v[0],A[0]&=65535,[A[0]<<16|A[1],A[2]<<16|A[3]]}function d(y,v){y=[y[0]>>>16,y[0]&65535,y[1]>>>16,y[1]&65535],v=[v[0]>>>16,v[0]&65535,v[1]>>>16,v[1]&65535];var A=[0,0,0,0];return A[3]+=y[3]*v[3],A[2]+=A[3]>>>16,A[3]&=65535,A[2]+=y[2]*v[3],A[1]+=A[2]>>>16,A[2]&=65535,A[2]+=y[3]*v[2],A[1]+=A[2]>>>16,A[2]&=65535,A[1]+=y[1]*v[3],A[0]+=A[1]>>>16,A[1]&=65535,A[1]+=y[2]*v[2],A[0]+=A[1]>>>16,A[1]&=65535,A[1]+=y[3]*v[1],A[0]+=A[1]>>>16,A[1]&=65535,A[0]+=y[0]*v[3]+y[1]*v[2]+y[2]*v[1]+y[3]*v[0],A[0]&=65535,[A[0]<<16|A[1],A[2]<<16|A[3]]}function m(y,v){return v%=64,v===32?[y[1],y[0]]:v<32?[y[0]<>>32-v,y[1]<>>32-v]:(v-=32,[y[1]<>>32-v,y[0]<>>32-v])}function b(y,v){return v%=64,v===0?y:v<32?[y[0]<>>32-v,y[1]<>>1]),y=d(y,[4283543511,3981806797]),y=w(y,[0,y[0]>>>1]),y=d(y,[3301882366,444984403]),y=w(y,[0,y[0]>>>1]),y}o.x86.hash32=function(y,v){if(o.inputValidation&&!a(y))return n;v=v||0;for(var A=y.length%4,L=y.length-A,D=v,B=0,x=3432918353,S=461845907,O=0;O>>0},o.x86.hash128=function(y,v){if(o.inputValidation&&!a(y))return n;v=v||0;for(var A=y.length%16,L=y.length-A,D=v,B=v,x=v,S=v,O=0,N=0,k=0,R=0,M=597399067,q=2869860233,G=951274213,J=2716044179,F=0;F>>0).toString(16)).slice(-8)+("00000000"+(B>>>0).toString(16)).slice(-8)+("00000000"+(x>>>0).toString(16)).slice(-8)+("00000000"+(S>>>0).toString(16)).slice(-8)},o.x64.hash128=function(y,v){if(o.inputValidation&&!a(y))return n;v=v||0;for(var A=y.length%16,L=y.length-A,D=[0,v],B=[0,v],x=[0,0],S=[0,0],O=[2277735313,289559509],N=[1291169091,658871167],k=0;k>>0).toString(16)).slice(-8)+("00000000"+(D[1]>>>0).toString(16)).slice(-8)+("00000000"+(B[0]>>>0).toString(16)).slice(-8)+("00000000"+(B[1]>>>0).toString(16)).slice(-8)},r.exports&&(e=r.exports=o),e.murmurHash3=o})()})(murmurHash3js,murmurHash3js.exports);var murmurHash3jsExports=murmurHash3js.exports,murmurhash3jsRevisited=murmurHash3jsExports;const mur=getDefaultExportFromCjs(murmurhash3jsRevisited),murmur3128=from({name:"murmur3-128",code:34,encode:r=>fromHex(mur.x64.hash128(r))});async function hamtHashFn(r){return(await murmur3128.encode(r)).slice(0,8).reverse()}const defaultOptions={chunker:"fixed",strategy:"balanced",rawLeaves:!1,onlyHash:!1,reduceSingleLeafToSelf:!0,hasher:sha256,leafType:"file",cidVersion:0,progress:()=>()=>{},shardSplitThreshold:1e3,fileImportConcurrency:50,blockWriteConcurrency:10,minChunkSize:262144,maxChunkSize:262144,avgChunkSize:262144,window:16,polynomial:0x3df305dfb2a804,maxChildrenPerNode:174,layerRepeat:4,wrapWithDirectory:!1,recursive:!1,hidden:!1,timeout:void 0,hamtHashFn,hamtHashCode:34,hamtBucketBits:8},defaultOptions$1=(r={})=>mergeOptions$1.bind({ignoreUndefined:!0})(defaultOptions,r);function assign(r,e){for(const t in e)Object.defineProperty(r,t,{value:e[t],enumerable:!0,configurable:!0});return r}function createError(r,e,t){if(!r||typeof r=="string")throw new TypeError("Please pass an Error to err-code");t||(t={}),typeof e=="object"&&(t=e,e=""),e&&(t.code=e);try{return assign(r,t)}catch{t.message=r.message,t.stack=r.stack;const o=function(){};return o.prototype=Object.create(Object.getPrototypeOf(r)),assign(new o,t)}}var errCode=createError;const errCode$1=getDefaultExportFromCjs(errCode);var indexMinimal={},minimal$1={},aspromise,hasRequiredAspromise;function requireAspromise(){if(hasRequiredAspromise)return aspromise;hasRequiredAspromise=1,aspromise=r;function r(e,t){for(var n=new Array(arguments.length-1),o=0,a=2,s=!0;a1&&l.charAt(f)==="=";)++h;return Math.ceil(l.length*3)/4-h};for(var t=new Array(64),n=new Array(123),o=0;o<64;)n[t[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;e.encode=function(l,f,h){for(var d=null,m=[],b=0,w=0,_;f>2],_=(y&3)<<4,w=1;break;case 1:m[b++]=t[_|y>>4],_=(y&15)<<2,w=2;break;case 2:m[b++]=t[_|y>>6],m[b++]=t[y&63],w=0;break}b>8191&&((d||(d=[])).push(String.fromCharCode.apply(String,m)),b=0)}return w&&(m[b++]=t[_],m[b++]=61,w===1&&(m[b++]=61)),d?(b&&d.push(String.fromCharCode.apply(String,m.slice(0,b))),d.join("")):String.fromCharCode.apply(String,m.slice(0,b))};var a="invalid encoding";e.decode=function(l,f,h){for(var d=h,m=0,b,w=0;w1)break;if((_=n[_])===void 0)throw Error(a);switch(m){case 0:b=_,m=1;break;case 1:f[h++]=b<<2|(_&48)>>4,b=_,m=2;break;case 2:f[h++]=(b&15)<<4|(_&60)>>2,b=_,m=3;break;case 3:f[h++]=(b&3)<<6|_,m=0;break}}if(m===1)throw Error(a);return h-d},e.test=function(l){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(l)}}(base64$3)),base64$3}var eventemitter,hasRequiredEventemitter;function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;hasRequiredEventemitter=1,eventemitter=r;function r(){this._listeners={}}return r.prototype.on=function(t,n,o){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:n,ctx:o||this}),this},r.prototype.off=function(t,n){if(t===void 0)this._listeners={};else if(n===void 0)this._listeners[t]=[];else for(var o=this._listeners[t],a=0;a0?0:2147483648,d,m);else if(isNaN(h))f(2143289344,d,m);else if(h>34028234663852886e22)f((b<<31|2139095040)>>>0,d,m);else if(h<11754943508222875e-54)f((b<<31|Math.round(h/1401298464324817e-60))>>>0,d,m);else{var w=Math.floor(Math.log(h)/Math.LN2),_=Math.round(h*Math.pow(2,-w)*8388608)&8388607;f((b<<31|w+127<<23|_)>>>0,d,m)}}a.writeFloatLE=s.bind(null,e),a.writeFloatBE=s.bind(null,t);function l(f,h,d){var m=f(h,d),b=(m>>31)*2+1,w=m>>>23&255,_=m&8388607;return w===255?_?NaN:b*(1/0):w===0?b*1401298464324817e-60*_:b*Math.pow(2,w-150)*(_+8388608)}a.readFloatLE=l.bind(null,n),a.readFloatBE=l.bind(null,o)}(),typeof Float64Array<"u"?function(){var s=new Float64Array([-0]),l=new Uint8Array(s.buffer),f=l[7]===128;function h(w,_,y){s[0]=w,_[y]=l[0],_[y+1]=l[1],_[y+2]=l[2],_[y+3]=l[3],_[y+4]=l[4],_[y+5]=l[5],_[y+6]=l[6],_[y+7]=l[7]}function d(w,_,y){s[0]=w,_[y]=l[7],_[y+1]=l[6],_[y+2]=l[5],_[y+3]=l[4],_[y+4]=l[3],_[y+5]=l[2],_[y+6]=l[1],_[y+7]=l[0]}a.writeDoubleLE=f?h:d,a.writeDoubleBE=f?d:h;function m(w,_){return l[0]=w[_],l[1]=w[_+1],l[2]=w[_+2],l[3]=w[_+3],l[4]=w[_+4],l[5]=w[_+5],l[6]=w[_+6],l[7]=w[_+7],s[0]}function b(w,_){return l[7]=w[_],l[6]=w[_+1],l[5]=w[_+2],l[4]=w[_+3],l[3]=w[_+4],l[2]=w[_+5],l[1]=w[_+6],l[0]=w[_+7],s[0]}a.readDoubleLE=f?m:b,a.readDoubleBE=f?b:m}():function(){function s(f,h,d,m,b,w){var _=m<0?1:0;if(_&&(m=-m),m===0)f(0,b,w+h),f(1/m>0?0:2147483648,b,w+d);else if(isNaN(m))f(0,b,w+h),f(2146959360,b,w+d);else if(m>17976931348623157e292)f(0,b,w+h),f((_<<31|2146435072)>>>0,b,w+d);else{var y;if(m<22250738585072014e-324)y=m/5e-324,f(y>>>0,b,w+h),f((_<<31|y/4294967296)>>>0,b,w+d);else{var v=Math.floor(Math.log(m)/Math.LN2);v===1024&&(v=1023),y=m*Math.pow(2,-v),f(y*4503599627370496>>>0,b,w+h),f((_<<31|v+1023<<20|y*1048576&1048575)>>>0,b,w+d)}}}a.writeDoubleLE=s.bind(null,e,0,4),a.writeDoubleBE=s.bind(null,t,4,0);function l(f,h,d,m,b){var w=f(m,b+h),_=f(m,b+d),y=(_>>31)*2+1,v=_>>>20&2047,A=4294967296*(_&1048575)+w;return v===2047?A?NaN:y*(1/0):v===0?y*5e-324*A:y*Math.pow(2,v-1075)*(A+4503599627370496)}a.readDoubleLE=l.bind(null,n,0,4),a.readDoubleBE=l.bind(null,o,4,0)}(),a}function e(a,s,l){s[l]=a&255,s[l+1]=a>>>8&255,s[l+2]=a>>>16&255,s[l+3]=a>>>24}function t(a,s,l){s[l]=a>>>24,s[l+1]=a>>>16&255,s[l+2]=a>>>8&255,s[l+3]=a&255}function n(a,s){return(a[s]|a[s+1]<<8|a[s+2]<<16|a[s+3]<<24)>>>0}function o(a,s){return(a[s]<<24|a[s+1]<<16|a[s+2]<<8|a[s+3])>>>0}return float}var inquire_1,hasRequiredInquire;function requireInquire(){if(hasRequiredInquire)return inquire_1;hasRequiredInquire=1,inquire_1=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(r){}return null}return inquire_1}var utf8$2={},hasRequiredUtf8;function requireUtf8(){return hasRequiredUtf8||(hasRequiredUtf8=1,function(r){var e=r;e.length=function(n){for(var o=0,a=0,s=0;s191&&d<224?f[h++]=(d&31)<<6|n[o++]&63:d>239&&d<365?(d=((d&7)<<18|(n[o++]&63)<<12|(n[o++]&63)<<6|n[o++]&63)-65536,f[h++]=55296+(d>>10),f[h++]=56320+(d&1023)):f[h++]=(d&15)<<12|(n[o++]&63)<<6|n[o++]&63,h>8191&&((l||(l=[])).push(String.fromCharCode.apply(String,f)),h=0);return l?(h&&l.push(String.fromCharCode.apply(String,f.slice(0,h))),l.join("")):String.fromCharCode.apply(String,f.slice(0,h))},e.write=function(n,o,a){for(var s=a,l,f,h=0;h>6|192,o[a++]=l&63|128):(l&64512)===55296&&((f=n.charCodeAt(h+1))&64512)===56320?(l=65536+((l&1023)<<10)+(f&1023),++h,o[a++]=l>>18|240,o[a++]=l>>12&63|128,o[a++]=l>>6&63|128,o[a++]=l&63|128):(o[a++]=l>>12|224,o[a++]=l>>6&63|128,o[a++]=l&63|128);return a-s}}(utf8$2)),utf8$2}var pool_1,hasRequiredPool;function requirePool(){if(hasRequiredPool)return pool_1;hasRequiredPool=1,pool_1=r;function r(e,t,n){var o=n||8192,a=o>>>1,s=null,l=o;return function(h){if(h<1||h>a)return e(h);l+h>o&&(s=e(o),l=0);var d=t.call(s,l,l+=h);return l&7&&(l=(l|7)+1),d}}return pool_1}var longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=e;var r=requireMinimal();function e(a,s){this.lo=a>>>0,this.hi=s>>>0}var t=e.zero=new e(0,0);t.toNumber=function(){return 0},t.zzEncode=t.zzDecode=function(){return this},t.length=function(){return 1};var n=e.zeroHash="\0\0\0\0\0\0\0\0";e.fromNumber=function(s){if(s===0)return t;var l=s<0;l&&(s=-s);var f=s>>>0,h=(s-f)/4294967296>>>0;return l&&(h=~h>>>0,f=~f>>>0,++f>4294967295&&(f=0,++h>4294967295&&(h=0))),new e(f,h)},e.from=function(s){if(typeof s=="number")return e.fromNumber(s);if(r.isString(s))if(r.Long)s=r.Long.fromString(s);else return e.fromNumber(parseInt(s,10));return s.low||s.high?new e(s.low>>>0,s.high>>>0):t},e.prototype.toNumber=function(s){if(!s&&this.hi>>>31){var l=~this.lo+1>>>0,f=~this.hi>>>0;return l||(f=f+1>>>0),-(l+f*4294967296)}return this.lo+this.hi*4294967296},e.prototype.toLong=function(s){return r.Long?new r.Long(this.lo|0,this.hi|0,!!s):{low:this.lo|0,high:this.hi|0,unsigned:!!s}};var o=String.prototype.charCodeAt;return e.fromHash=function(s){return s===n?t:new e((o.call(s,0)|o.call(s,1)<<8|o.call(s,2)<<16|o.call(s,3)<<24)>>>0,(o.call(s,4)|o.call(s,5)<<8|o.call(s,6)<<16|o.call(s,7)<<24)>>>0)},e.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},e.prototype.zzEncode=function(){var s=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^s)>>>0,this.lo=(this.lo<<1^s)>>>0,this},e.prototype.zzDecode=function(){var s=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^s)>>>0,this.hi=(this.hi>>>1^s)>>>0,this},e.prototype.length=function(){var s=this.lo,l=(this.lo>>>28|this.hi<<4)>>>0,f=this.hi>>>24;return f===0?l===0?s<16384?s<128?1:2:s<2097152?3:4:l<16384?l<128?5:6:l<2097152?7:8:f<128?9:10},longbits}var hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,function(r){var e=r;e.asPromise=requireAspromise(),e.base64=requireBase64(),e.EventEmitter=requireEventemitter(),e.float=requireFloat(),e.inquire=requireInquire(),e.utf8=requireUtf8(),e.pool=requirePool(),e.LongBits=requireLongbits(),e.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),e.global=e.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||commonjsGlobal,e.emptyArray=Object.freeze?Object.freeze([]):[],e.emptyObject=Object.freeze?Object.freeze({}):{},e.isInteger=Number.isInteger||function(a){return typeof a=="number"&&isFinite(a)&&Math.floor(a)===a},e.isString=function(a){return typeof a=="string"||a instanceof String},e.isObject=function(a){return a&&typeof a=="object"},e.isset=e.isSet=function(a,s){var l=a[s];return l!=null&&a.hasOwnProperty(s)?typeof l!="object"||(Array.isArray(l)?l.length:Object.keys(l).length)>0:!1},e.Buffer=function(){try{var o=e.inquire("buffer").Buffer;return o.prototype.utf8Write?o:null}catch{return null}}(),e._Buffer_from=null,e._Buffer_allocUnsafe=null,e.newBuffer=function(a){return typeof a=="number"?e.Buffer?e._Buffer_allocUnsafe(a):new e.Array(a):e.Buffer?e._Buffer_from(a):typeof Uint8Array>"u"?a:new Uint8Array(a)},e.Array=typeof Uint8Array<"u"?Uint8Array:Array,e.Long=e.global.dcodeIO&&e.global.dcodeIO.Long||e.global.Long||e.inquire("long"),e.key2Re=/^true|false|0|1$/,e.key32Re=/^-?(?:0|[1-9][0-9]*)$/,e.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,e.longToHash=function(a){return a?e.LongBits.from(a).toHash():e.LongBits.zeroHash},e.longFromHash=function(a,s){var l=e.LongBits.fromHash(a);return e.Long?e.Long.fromBits(l.lo,l.hi,s):l.toNumber(!!s)};function t(o,a,s){for(var l=Object.keys(a),f=0;f-1;--h)if(s[f[h]]===1&&this[f[h]]!==void 0&&this[f[h]]!==null)return f[h]}},e.oneOfSetter=function(a){return function(s){for(var l=0;l127;)e[t++]=r&127|128,r>>>=7;e[t]=r}function VarintOp(r,e){this.len=r,this.next=void 0,this.val=e}VarintOp.prototype=Object.create(Op.prototype);VarintOp.prototype.fn=writeVarint32;Writer$1.prototype.uint32=function r(e){return this.len+=(this.tail=this.tail.next=new VarintOp((e=e>>>0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this};Writer$1.prototype.int32=function r(e){return e<0?this._push(writeVarint64,10,LongBits$1.fromNumber(e)):this.uint32(e)};Writer$1.prototype.sint32=function r(e){return this.uint32((e<<1^e>>31)>>>0)};function writeVarint64(r,e,t){for(;r.hi;)e[t++]=r.lo&127|128,r.lo=(r.lo>>>7|r.hi<<25)>>>0,r.hi>>>=7;for(;r.lo>127;)e[t++]=r.lo&127|128,r.lo=r.lo>>>7;e[t++]=r.lo}Writer$1.prototype.uint64=function r(e){var t=LongBits$1.from(e);return this._push(writeVarint64,t.length(),t)};Writer$1.prototype.int64=Writer$1.prototype.uint64;Writer$1.prototype.sint64=function r(e){var t=LongBits$1.from(e).zzEncode();return this._push(writeVarint64,t.length(),t)};Writer$1.prototype.bool=function r(e){return this._push(writeByte,1,e?1:0)};function writeFixed32(r,e,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24}Writer$1.prototype.fixed32=function r(e){return this._push(writeFixed32,4,e>>>0)};Writer$1.prototype.sfixed32=Writer$1.prototype.fixed32;Writer$1.prototype.fixed64=function r(e){var t=LongBits$1.from(e);return this._push(writeFixed32,4,t.lo)._push(writeFixed32,4,t.hi)};Writer$1.prototype.sfixed64=Writer$1.prototype.fixed64;Writer$1.prototype.float=function r(e){return this._push(util$4.float.writeFloatLE,4,e)};Writer$1.prototype.double=function r(e){return this._push(util$4.float.writeDoubleLE,8,e)};var writeBytes=util$4.Array.prototype.set?function r(e,t,n){t.set(e,n)}:function r(e,t,n){for(var o=0;o>>0;if(!t)return this._push(writeByte,1,0);if(util$4.isString(e)){var n=Writer$1.alloc(t=base64$2.length(e));base64$2.decode(e,n,0),e=n}return this.uint32(t)._push(writeBytes,t,e)};Writer$1.prototype.string=function r(e){var t=utf8$1.length(e);return t?this.uint32(t)._push(utf8$1.write,t,e):this._push(writeByte,1,0)};Writer$1.prototype.fork=function r(){return this.states=new State(this),this.head=this.tail=new Op(noop,0,0),this.len=0,this};Writer$1.prototype.reset=function r(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop,0,0),this.len=0),this};Writer$1.prototype.ldelim=function r(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this};Writer$1.prototype.finish=function r(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t};Writer$1._configure=function(r){BufferWriter$1=r,Writer$1.create=create$2(),BufferWriter$1._configure()};var writer_buffer=BufferWriter,Writer=writer;(BufferWriter.prototype=Object.create(Writer.prototype)).constructor=BufferWriter;var util$3=requireMinimal();function BufferWriter(){Writer.call(this)}BufferWriter._configure=function(){BufferWriter.alloc=util$3._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=util$3.Buffer&&util$3.Buffer.prototype instanceof Uint8Array&&util$3.Buffer.prototype.set.name==="set"?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var o=0;o>>0;return this.uint32(t),t&&this._push(BufferWriter.writeBytesBuffer,t,e),this};function writeStringBuffer(r,e,t){r.length<40?util$3.utf8.write(r,e,t):e.utf8Write?e.utf8Write(r,t):e.write(r,t)}BufferWriter.prototype.string=function r(e){var t=util$3.Buffer.byteLength(e);return this.uint32(t),t&&this._push(writeStringBuffer,t,e),this};BufferWriter._configure();var reader=Reader$1,util$2=requireMinimal(),BufferReader$1,LongBits=util$2.LongBits,utf8=util$2.utf8;function indexOutOfRange(r,e){return RangeError("index out of range: "+r.pos+" + "+(e||1)+" > "+r.len)}function Reader$1(r){this.buf=r,this.pos=0,this.len=r.length}var create_array=typeof Uint8Array<"u"?function r(e){if(e instanceof Uint8Array||Array.isArray(e))return new Reader$1(e);throw Error("illegal buffer")}:function r(e){if(Array.isArray(e))return new Reader$1(e);throw Error("illegal buffer")},create$1=function r(){return util$2.Buffer?function(t){return(Reader$1.create=function(o){return util$2.Buffer.isBuffer(o)?new BufferReader$1(o):create_array(o)})(t)}:create_array};Reader$1.create=create$1();Reader$1.prototype._slice=util$2.Array.prototype.subarray||util$2.Array.prototype.slice;Reader$1.prototype.uint32=function r(){var e=4294967295;return function(){if(e=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(e=(e|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange(this,10);return e}}();Reader$1.prototype.int32=function r(){return this.uint32()|0};Reader$1.prototype.sint32=function r(){var e=this.uint32();return e>>>1^-(e&1)|0};function readLongVarint(){var r=new LongBits(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(r.lo=(r.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r;if(r.lo=(r.lo|(this.buf[this.pos]&127)<<28)>>>0,r.hi=(r.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return r;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw indexOutOfRange(this);if(r.lo=(r.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}return r.lo=(r.lo|(this.buf[this.pos++]&127)<>>0,r}if(this.len-this.pos>4){for(;e<5;++e)if(r.hi=(r.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}else for(;e<5;++e){if(this.pos>=this.len)throw indexOutOfRange(this);if(r.hi=(r.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}throw Error("invalid varint encoding")}Reader$1.prototype.bool=function r(){return this.uint32()!==0};function readFixed32_end(r,e){return(r[e-4]|r[e-3]<<8|r[e-2]<<16|r[e-1]<<24)>>>0}Reader$1.prototype.fixed32=function r(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)};Reader$1.prototype.sfixed32=function r(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)|0};function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new LongBits(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader$1.prototype.float=function r(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var e=util$2.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e};Reader$1.prototype.double=function r(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var e=util$2.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e};Reader$1.prototype.bytes=function r(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw indexOutOfRange(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)};Reader$1.prototype.string=function r(){var e=this.bytes();return utf8.read(e,0,e.length)};Reader$1.prototype.skip=function r(e){if(typeof e=="number"){if(this.pos+e>this.len)throw indexOutOfRange(this,e);this.pos+=e}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(this.buf[this.pos++]&128);return this};Reader$1.prototype.skipType=function(r){switch(r){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(r=this.uint32()&7)!==4;)this.skipType(r);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+r+" at offset "+this.pos)}return this};Reader$1._configure=function(r){BufferReader$1=r,Reader$1.create=create$1(),BufferReader$1._configure();var e=util$2.Long?"toLong":"toNumber";util$2.merge(Reader$1.prototype,{int64:function(){return readLongVarint.call(this)[e](!1)},uint64:function(){return readLongVarint.call(this)[e](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[e](!1)},fixed64:function(){return readFixed64.call(this)[e](!0)},sfixed64:function(){return readFixed64.call(this)[e](!1)}})};var reader_buffer=BufferReader,Reader=reader;(BufferReader.prototype=Object.create(Reader.prototype)).constructor=BufferReader;var util$1=requireMinimal();function BufferReader(r){Reader.call(this,r)}BufferReader._configure=function(){util$1.Buffer&&(BufferReader.prototype._slice=util$1.Buffer.prototype.slice)};BufferReader.prototype.string=function r(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))};BufferReader._configure();var rpc={},service=Service,util=requireMinimal();(Service.prototype=Object.create(util.EventEmitter.prototype)).constructor=Service;function Service(r,e,t){if(typeof r!="function")throw TypeError("rpcImpl must be a function");util.EventEmitter.call(this),this.rpcImpl=r,this.requestDelimited=!!e,this.responseDelimited=!!t}Service.prototype.rpcCall=function r(e,t,n,o,a){if(!o)throw TypeError("request must be specified");var s=this;if(!a)return util.asPromise(r,s,e,t,n,o);if(!s.rpcImpl){setTimeout(function(){a(Error("already ended"))},0);return}try{return s.rpcImpl(e,t[s.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(f,h){if(f)return s.emit("error",f,e),a(f);if(h===null){s.end(!0);return}if(!(h instanceof n))try{h=n[s.responseDelimited?"decodeDelimited":"decode"](h)}catch(d){return s.emit("error",d,e),a(d)}return s.emit("data",h,e),a(null,h)})}catch(l){s.emit("error",l,e),setTimeout(function(){a(l)},0);return}};Service.prototype.end=function r(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this};(function(r){var e=r;e.Service=service})(rpc);var roots={};(function(r){var e=r;e.build="minimal",e.Writer=writer,e.BufferWriter=writer_buffer,e.Reader=reader,e.BufferReader=reader_buffer,e.util=requireMinimal(),e.rpc=rpc,e.roots=roots,e.configure=t;function t(){e.util._configure(),e.Writer._configure(e.BufferWriter),e.Reader._configure(e.BufferReader)}t()})(indexMinimal);var minimal=indexMinimal;const $protobuf=getDefaultExportFromCjs(minimal),$Reader=$protobuf.Reader,$Writer=$protobuf.Writer,$util=$protobuf.util,$root=$protobuf.roots["ipfs-unixfs"]||($protobuf.roots["ipfs-unixfs"]={}),Data=$root.Data=(()=>{function r(e){if(this.blocksizes=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:a.Type=t.int32();break;case 2:a.Data=t.bytes();break;case 3:a.filesize=t.uint64();break;case 4:if(a.blocksizes&&a.blocksizes.length||(a.blocksizes=[]),(s&7)===2)for(var l=t.uint32()+t.pos;t.pos>>0,t.filesize.high>>>0).toNumber(!0))),t.blocksizes){if(!Array.isArray(t.blocksizes))throw TypeError(".Data.blocksizes: array expected");n.blocksizes=[];for(var o=0;o>>0,t.blocksizes[o].high>>>0).toNumber(!0))}if(t.hashType!=null&&($util.Long?(n.hashType=$util.Long.fromValue(t.hashType)).unsigned=!0:typeof t.hashType=="string"?n.hashType=parseInt(t.hashType,10):typeof t.hashType=="number"?n.hashType=t.hashType:typeof t.hashType=="object"&&(n.hashType=new $util.LongBits(t.hashType.low>>>0,t.hashType.high>>>0).toNumber(!0))),t.fanout!=null&&($util.Long?(n.fanout=$util.Long.fromValue(t.fanout)).unsigned=!0:typeof t.fanout=="string"?n.fanout=parseInt(t.fanout,10):typeof t.fanout=="number"?n.fanout=t.fanout:typeof t.fanout=="object"&&(n.fanout=new $util.LongBits(t.fanout.low>>>0,t.fanout.high>>>0).toNumber(!0))),t.mode!=null&&(n.mode=t.mode>>>0),t.mtime!=null){if(typeof t.mtime!="object")throw TypeError(".Data.mtime: object expected");n.mtime=$root.UnixTime.fromObject(t.mtime)}return n},r.toObject=function(t,n){n||(n={});var o={};if((n.arrays||n.defaults)&&(o.blocksizes=[]),n.defaults){if(o.Type=n.enums===String?"Raw":0,n.bytes===String?o.Data="":(o.Data=[],n.bytes!==Array&&(o.Data=$util.newBuffer(o.Data))),$util.Long){var a=new $util.Long(0,0,!0);o.filesize=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.filesize=n.longs===String?"0":0;if($util.Long){var a=new $util.Long(0,0,!0);o.hashType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.hashType=n.longs===String?"0":0;if($util.Long){var a=new $util.Long(0,0,!0);o.fanout=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.fanout=n.longs===String?"0":0;o.mode=0,o.mtime=null}if(t.Type!=null&&t.hasOwnProperty("Type")&&(o.Type=n.enums===String?$root.Data.DataType[t.Type]:t.Type),t.Data!=null&&t.hasOwnProperty("Data")&&(o.Data=n.bytes===String?$util.base64.encode(t.Data,0,t.Data.length):n.bytes===Array?Array.prototype.slice.call(t.Data):t.Data),t.filesize!=null&&t.hasOwnProperty("filesize")&&(typeof t.filesize=="number"?o.filesize=n.longs===String?String(t.filesize):t.filesize:o.filesize=n.longs===String?$util.Long.prototype.toString.call(t.filesize):n.longs===Number?new $util.LongBits(t.filesize.low>>>0,t.filesize.high>>>0).toNumber(!0):t.filesize),t.blocksizes&&t.blocksizes.length){o.blocksizes=[];for(var s=0;s>>0,t.blocksizes[s].high>>>0).toNumber(!0):t.blocksizes[s]}return t.hashType!=null&&t.hasOwnProperty("hashType")&&(typeof t.hashType=="number"?o.hashType=n.longs===String?String(t.hashType):t.hashType:o.hashType=n.longs===String?$util.Long.prototype.toString.call(t.hashType):n.longs===Number?new $util.LongBits(t.hashType.low>>>0,t.hashType.high>>>0).toNumber(!0):t.hashType),t.fanout!=null&&t.hasOwnProperty("fanout")&&(typeof t.fanout=="number"?o.fanout=n.longs===String?String(t.fanout):t.fanout:o.fanout=n.longs===String?$util.Long.prototype.toString.call(t.fanout):n.longs===Number?new $util.LongBits(t.fanout.low>>>0,t.fanout.high>>>0).toNumber(!0):t.fanout),t.mode!=null&&t.hasOwnProperty("mode")&&(o.mode=t.mode),t.mtime!=null&&t.hasOwnProperty("mtime")&&(o.mtime=$root.UnixTime.toObject(t.mtime,n)),o},r.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},r.DataType=function(){const e={},t=Object.create(e);return t[e[0]="Raw"]=0,t[e[1]="Directory"]=1,t[e[2]="File"]=2,t[e[3]="Metadata"]=3,t[e[4]="Symlink"]=4,t[e[5]="HAMTShard"]=5,t}(),r})();$root.UnixTime=(()=>{function r(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:a.Seconds=t.int64();break;case 2:a.FractionalNanoseconds=t.fixed32();break;default:t.skipType(s&7);break}}if(!a.hasOwnProperty("Seconds"))throw $util.ProtocolError("missing required 'Seconds'",{instance:a});return a},r.fromObject=function(t){if(t instanceof $root.UnixTime)return t;var n=new $root.UnixTime;return t.Seconds!=null&&($util.Long?(n.Seconds=$util.Long.fromValue(t.Seconds)).unsigned=!1:typeof t.Seconds=="string"?n.Seconds=parseInt(t.Seconds,10):typeof t.Seconds=="number"?n.Seconds=t.Seconds:typeof t.Seconds=="object"&&(n.Seconds=new $util.LongBits(t.Seconds.low>>>0,t.Seconds.high>>>0).toNumber())),t.FractionalNanoseconds!=null&&(n.FractionalNanoseconds=t.FractionalNanoseconds>>>0),n},r.toObject=function(t,n){n||(n={});var o={};if(n.defaults){if($util.Long){var a=new $util.Long(0,0,!1);o.Seconds=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.Seconds=n.longs===String?"0":0;o.FractionalNanoseconds=0}return t.Seconds!=null&&t.hasOwnProperty("Seconds")&&(typeof t.Seconds=="number"?o.Seconds=n.longs===String?String(t.Seconds):t.Seconds:o.Seconds=n.longs===String?$util.Long.prototype.toString.call(t.Seconds):n.longs===Number?new $util.LongBits(t.Seconds.low>>>0,t.Seconds.high>>>0).toNumber():t.Seconds),t.FractionalNanoseconds!=null&&t.hasOwnProperty("FractionalNanoseconds")&&(o.FractionalNanoseconds=t.FractionalNanoseconds),o},r.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},r})();$root.Metadata=(()=>{function r(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:a.MimeType=t.string();break;default:t.skipType(s&7);break}}return a},r.fromObject=function(t){if(t instanceof $root.Metadata)return t;var n=new $root.Metadata;return t.MimeType!=null&&(n.MimeType=String(t.MimeType)),n},r.toObject=function(t,n){n||(n={});var o={};return n.defaults&&(o.MimeType=""),t.MimeType!=null&&t.hasOwnProperty("MimeType")&&(o.MimeType=t.MimeType),o},r.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},r})();const PBData=Data,types=["raw","directory","file","metadata","symlink","hamt-sharded-directory"],dirTypes=["directory","hamt-sharded-directory"],DEFAULT_FILE_MODE=parseInt("0644",8),DEFAULT_DIRECTORY_MODE=parseInt("0755",8);function parseMode(r){if(r!=null)return typeof r=="number"?r&4095:(r=r.toString(),r.substring(0,1)==="0"?parseInt(r,8)&4095:parseInt(r,10)&4095)}function parseMtime(r){if(r==null)return;let e;if(r.secs!=null&&(e={secs:r.secs,nsecs:r.nsecs}),r.Seconds!=null&&(e={secs:r.Seconds,nsecs:r.FractionalNanoseconds}),Array.isArray(r)&&(e={secs:r[0],nsecs:r[1]}),r instanceof Date){const t=r.getTime(),n=Math.floor(t/1e3);e={secs:n,nsecs:(t-n*1e3)*1e3}}if(Object.prototype.hasOwnProperty.call(e,"secs")){if(e!=null&&e.nsecs!=null&&(e.nsecs<0||e.nsecs>999999999))throw errCode$1(new Error("mtime-nsecs must be within the range [0,999999999]"),"ERR_INVALID_MTIME_NSECS");return e}}class UnixFS{static unmarshal(e){const t=PBData.decode(e),n=PBData.toObject(t,{defaults:!1,arrays:!0,longs:Number,objects:!1}),o=new UnixFS({type:types[n.Type],data:n.Data,blockSizes:n.blocksizes,mode:n.mode,mtime:n.mtime?{secs:n.mtime.Seconds,nsecs:n.mtime.FractionalNanoseconds}:void 0});return o._originalMode=n.mode||0,o}constructor(e={type:"file"}){const{type:t,data:n,blockSizes:o,hashType:a,fanout:s,mtime:l,mode:f}=e;if(t&&!types.includes(t))throw errCode$1(new Error("Type: "+t+" is not valid"),"ERR_INVALID_TYPE");this.type=t||"file",this.data=n,this.hashType=a,this.fanout=s,this.blockSizes=o||[],this._originalMode=0,this.mode=parseMode(f),l&&(this.mtime=parseMtime(l),this.mtime&&!this.mtime.nsecs&&(this.mtime.nsecs=0))}set mode(e){this._mode=this.isDirectory()?DEFAULT_DIRECTORY_MODE:DEFAULT_FILE_MODE;const t=parseMode(e);t!==void 0&&(this._mode=t)}get mode(){return this._mode}isDirectory(){return!!(this.type&&dirTypes.includes(this.type))}addBlockSize(e){this.blockSizes.push(e)}removeBlockSize(e){this.blockSizes.splice(e,1)}fileSize(){if(this.isDirectory())return 0;let e=0;return this.blockSizes.forEach(t=>{e+=t}),this.data&&(e+=this.data.length),e}marshal(){let e;switch(this.type){case"raw":e=PBData.DataType.Raw;break;case"directory":e=PBData.DataType.Directory;break;case"file":e=PBData.DataType.File;break;case"metadata":e=PBData.DataType.Metadata;break;case"symlink":e=PBData.DataType.Symlink;break;case"hamt-sharded-directory":e=PBData.DataType.HAMTShard;break;default:throw errCode$1(new Error("Type: "+e+" is not valid"),"ERR_INVALID_TYPE")}let t=this.data;(!this.data||!this.data.length)&&(t=void 0);let n;this.mode!=null&&(n=this._originalMode&4294963200|(parseMode(this.mode)||0),n===DEFAULT_FILE_MODE&&!this.isDirectory()&&(n=void 0),n===DEFAULT_DIRECTORY_MODE&&this.isDirectory()&&(n=void 0));let o;if(this.mtime!=null){const s=parseMtime(this.mtime);s&&(o={Seconds:s.secs,FractionalNanoseconds:s.nsecs},o.FractionalNanoseconds===0&&delete o.FractionalNanoseconds)}const a={Type:e,Data:t,filesize:this.isDirectory()?void 0:this.fileSize(),blocksizes:this.blockSizes,hashType:this.hashType,fanout:this.fanout,mode:n,mtime:o};return PBData.encode(a).finish()}}const persist=async(r,e,t)=>{t.codec||(t.codec=dagPb),t.hasher||(t.hasher=sha256),t.cidVersion===void 0&&(t.cidVersion=1),t.codec===dagPb&&t.hasher!==sha256&&(t.cidVersion=1);const n=await t.hasher.digest(r),o=CID.create(t.cidVersion,t.codec.code,n);return t.onlyHash||await e.put(o,r,{signal:t.signal}),o},dirBuilder=async(r,e,t)=>{const n=new UnixFS({type:"directory",mtime:r.mtime,mode:r.mode}),o=encode$1(prepare({Data:n.marshal()})),a=await persist(o,e,t),s=r.path;return{cid:a,path:s,unixfs:n,size:o.length}},all=async r=>{const e=[];for await(const t of r)e.push(t);return e};var itAll=all;const all$1=getDefaultExportFromCjs(itAll);async function flat(r,e){return e(await all$1(r))}function balanced(r,e,t){return reduceToParents(r,e,t)}async function reduceToParents(r,e,t){const n=[];for await(const o of batch$2(r,t.maxChildrenPerNode))n.push(await e(o));return n.length>1?reduceToParents(n,e,t):n[0]}async function trickleStream(r,e,t){const n=new Root(t.layerRepeat);let o=0,a=1,s=n;for await(const l of batch$2(r,t.maxChildrenPerNode))s.isFull()&&(s!==n&&n.addChild(await s.reduce(e)),o&&o%t.layerRepeat===0&&a++,s=new SubTree(a,t.layerRepeat,o),o++),s.append(l);return s&&s!==n&&n.addChild(await s.reduce(e)),n.reduce(e)}class SubTree{constructor(e,t,n=0){this.maxDepth=e,this.layerRepeat=t,this.currentDepth=1,this.iteration=n,this.root=this.node=this.parent={children:[],depth:this.currentDepth,maxDepth:e,maxChildren:(this.maxDepth-this.currentDepth)*this.layerRepeat}}isFull(){if(!this.root.data)return!1;if(this.currentDeptho.data).map(o=>this._reduce(o,t)))),t((e.data||[]).concat(n))}_findParent(e,t){const n=e.parent;if(!(!n||n.depth===0))return n.children.length===n.maxChildren||!n.maxChildren?this._findParent(n,t):n}}class Root extends SubTree{constructor(e){super(0,e),this.root.depth=0,this.currentDepth=1}addChild(e){this.root.children.push(e)}reduce(e){return e((this.root.data||[]).concat(this.root.children))}}async function*bufferImporter(r,e,t){for await(let n of r.content)yield async()=>{t.progress(n.length,r.path);let o;const a={codec:dagPb,cidVersion:t.cidVersion,hasher:t.hasher,onlyHash:t.onlyHash};return t.rawLeaves?(a.codec=raw,a.cidVersion=1):(o=new UnixFS({type:t.leafType,data:n}),n=encode$1({Data:o.marshal(),Links:[]})),{cid:await persist(n,e,a),unixfs:o,size:n.length}}}const dagBuilders={flat,balanced,trickle:trickleStream};async function*buildFileBatch(r,e,t){let n=-1,o,a;typeof t.bufferImporter=="function"?a=t.bufferImporter:a=bufferImporter;for await(const s of parallelBatch$1(a(r,e,t),t.blockWriteConcurrency)){if(n++,n===0){o=s;continue}else n===1&&o&&(yield o,o=null);yield s}o&&(o.single=!0,yield o)}const reduce=(r,e,t)=>{async function n(o){if(o.length===1&&o[0].single&&t.reduceSingleLeafToSelf){const d=o[0];if(r.mtime!==void 0||r.mode!==void 0){let m=await e.get(d.cid);d.unixfs=new UnixFS({type:"file",mtime:r.mtime,mode:r.mode,data:m}),m=encode$1(prepare({Data:d.unixfs.marshal()})),d.cid=await persist(m,e,{...t,codec:dagPb,hasher:t.hasher,cidVersion:t.cidVersion}),d.size=m.length}return{cid:d.cid,path:r.path,unixfs:d.unixfs,size:d.size}}const a=new UnixFS({type:"file",mtime:r.mtime,mode:r.mode}),s=o.filter(d=>d.cid.code===code$3&&d.size||d.unixfs&&!d.unixfs.data&&d.unixfs.fileSize()?!0:!!(d.unixfs&&d.unixfs.data&&d.unixfs.data.length)).map(d=>d.cid.code===code$3?(a.addBlockSize(d.size),{Name:"",Tsize:d.size,Hash:d.cid}):(!d.unixfs||!d.unixfs.data?a.addBlockSize(d.unixfs&&d.unixfs.fileSize()||0):a.addBlockSize(d.unixfs.data.length),{Name:"",Tsize:d.size,Hash:d.cid})),l={Data:a.marshal(),Links:s},f=encode$1(prepare(l));return{cid:await persist(f,e,t),path:r.path,unixfs:a,size:f.length+l.Links.reduce((d,m)=>d+m.Tsize,0)}}return n};function fileBuilder(r,e,t){const n=dagBuilders[t.strategy];if(!n)throw errCode$1(new Error(`Unknown importer build strategy name: ${t.strategy}`),"ERR_BAD_STRATEGY");return n(buildFileBatch(r,e,t),reduce(r,e,t),t)}var buffer={},base64Js={};base64Js.byteLength=byteLength;base64Js.toByteArray=toByteArray;base64Js.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i=0,len=code.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var n=t===e?0:4-t%4;return[t,n]}function byteLength(r){var e=getLens(r),t=e[0],n=e[1];return(t+n)*3/4-n}function _byteLength(r,e,t){return(e+t)*3/4-t}function toByteArray(r){var e,t=getLens(r),n=t[0],o=t[1],a=new Arr(_byteLength(r,n,o)),s=0,l=o>0?n-4:n,f;for(f=0;f>16&255,a[s++]=e>>8&255,a[s++]=e&255;return o===2&&(e=revLookup[r.charCodeAt(f)]<<2|revLookup[r.charCodeAt(f+1)]>>4,a[s++]=e&255),o===1&&(e=revLookup[r.charCodeAt(f)]<<10|revLookup[r.charCodeAt(f+1)]<<4|revLookup[r.charCodeAt(f+2)]>>2,a[s++]=e>>8&255,a[s++]=e&255),a}function tripletToBase64(r){return lookup[r>>18&63]+lookup[r>>12&63]+lookup[r>>6&63]+lookup[r&63]}function encodeChunk(r,e,t){for(var n,o=[],a=e;al?l:s+a));return n===1?(e=r[t-1],o.push(lookup[e>>2]+lookup[e<<4&63]+"==")):n===2&&(e=(r[t-2]<<8)+r[t-1],o.push(lookup[e>>10]+lookup[e>>4&63]+lookup[e<<2&63]+"=")),o.join("")}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ieee754.read=function(r,e,t,n,o){var a,s,l=o*8-n-1,f=(1<>1,d=-7,m=t?o-1:0,b=t?-1:1,w=r[e+m];for(m+=b,a=w&(1<<-d)-1,w>>=-d,d+=l;d>0;a=a*256+r[e+m],m+=b,d-=8);for(s=a&(1<<-d)-1,a>>=-d,d+=n;d>0;s=s*256+r[e+m],m+=b,d-=8);if(a===0)a=1-h;else{if(a===f)return s?NaN:(w?-1:1)*(1/0);s=s+Math.pow(2,n),a=a-h}return(w?-1:1)*s*Math.pow(2,a-n)};ieee754.write=function(r,e,t,n,o,a){var s,l,f,h=a*8-o-1,d=(1<>1,b=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:a-1,_=n?1:-1,y=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,s=d):(s=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-s))<1&&(s--,f*=2),s+m>=1?e+=b/f:e+=b*Math.pow(2,1-m),e*f>=2&&(s++,f/=2),s+m>=d?(l=0,s=d):s+m>=1?(l=(e*f-1)*Math.pow(2,o),s=s+m):(l=e*Math.pow(2,m-1)*Math.pow(2,o),s=0));o>=8;r[t+w]=l&255,w+=_,l/=256,o-=8);for(s=s<0;r[t+w]=s&255,w+=_,s/=256,h-=8);r[t+w-_]|=y*128};/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */(function(r){const e=base64Js,t=ieee754,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=l,r.SlowBuffer=L,r.INSPECT_MAX_BYTES=50;const o=2147483647;r.kMaxLength=o,l.TYPED_ARRAY_SUPPORT=a(),!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{const p=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(p,u),p.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function s(p){if(p>o)throw new RangeError('The value "'+p+'" is invalid for option "size"');const u=new Uint8Array(p);return Object.setPrototypeOf(u,l.prototype),u}function l(p,u,c){if(typeof p=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(p)}return f(p,u,c)}l.poolSize=8192;function f(p,u,c){if(typeof p=="string")return b(p,u);if(ArrayBuffer.isView(p))return _(p);if(p==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p);if(Z(p,ArrayBuffer)||p&&Z(p.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Z(p,SharedArrayBuffer)||p&&Z(p.buffer,SharedArrayBuffer)))return y(p,u,c);if(typeof p=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const g=p.valueOf&&p.valueOf();if(g!=null&&g!==p)return l.from(g,u,c);const E=v(p);if(E)return E;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof p[Symbol.toPrimitive]=="function")return l.from(p[Symbol.toPrimitive]("string"),u,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p)}l.from=function(p,u,c){return f(p,u,c)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function h(p){if(typeof p!="number")throw new TypeError('"size" argument must be of type number');if(p<0)throw new RangeError('The value "'+p+'" is invalid for option "size"')}function d(p,u,c){return h(p),p<=0?s(p):u!==void 0?typeof c=="string"?s(p).fill(u,c):s(p).fill(u):s(p)}l.alloc=function(p,u,c){return d(p,u,c)};function m(p){return h(p),s(p<0?0:A(p)|0)}l.allocUnsafe=function(p){return m(p)},l.allocUnsafeSlow=function(p){return m(p)};function b(p,u){if((typeof u!="string"||u==="")&&(u="utf8"),!l.isEncoding(u))throw new TypeError("Unknown encoding: "+u);const c=D(p,u)|0;let g=s(c);const E=g.write(p,u);return E!==c&&(g=g.slice(0,E)),g}function w(p){const u=p.length<0?0:A(p.length)|0,c=s(u);for(let g=0;g=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return p|0}function L(p){return+p!=p&&(p=0),l.alloc(+p)}l.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==l.prototype},l.compare=function(u,c){if(Z(u,Uint8Array)&&(u=l.from(u,u.offset,u.byteLength)),Z(c,Uint8Array)&&(c=l.from(c,c.offset,c.byteLength)),!l.isBuffer(u)||!l.isBuffer(c))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===c)return 0;let g=u.length,E=c.length;for(let T=0,C=Math.min(g,E);TE.length?(l.isBuffer(C)||(C=l.from(C)),C.copy(E,T)):Uint8Array.prototype.set.call(E,C,T);else if(l.isBuffer(C))C.copy(E,T);else throw new TypeError('"list" argument must be an Array of Buffers');T+=C.length}return E};function D(p,u){if(l.isBuffer(p))return p.length;if(ArrayBuffer.isView(p)||Z(p,ArrayBuffer))return p.byteLength;if(typeof p!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof p);const c=p.length,g=arguments.length>2&&arguments[2]===!0;if(!g&&c===0)return 0;let E=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return ve(p).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return se(p).length;default:if(E)return g?-1:ve(p).length;u=(""+u).toLowerCase(),E=!0}}l.byteLength=D;function B(p,u,c){let g=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,u>>>=0,c<=u))return"";for(p||(p="utf8");;)switch(p){case"hex":return le(this,u,c);case"utf8":case"utf-8":return J(this,u,c);case"ascii":return Q(this,u,c);case"latin1":case"binary":return Ie(this,u,c);case"base64":return G(this,u,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Oe(this,u,c);default:if(g)throw new TypeError("Unknown encoding: "+p);p=(p+"").toLowerCase(),g=!0}}l.prototype._isBuffer=!0;function x(p,u,c){const g=p[u];p[u]=p[c],p[c]=g}l.prototype.swap16=function(){const u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let c=0;cc&&(u+=" ... "),""},n&&(l.prototype[n]=l.prototype.inspect),l.prototype.compare=function(u,c,g,E,T){if(Z(u,Uint8Array)&&(u=l.from(u,u.offset,u.byteLength)),!l.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(c===void 0&&(c=0),g===void 0&&(g=u?u.length:0),E===void 0&&(E=0),T===void 0&&(T=this.length),c<0||g>u.length||E<0||T>this.length)throw new RangeError("out of range index");if(E>=T&&c>=g)return 0;if(E>=T)return-1;if(c>=g)return 1;if(c>>>=0,g>>>=0,E>>>=0,T>>>=0,this===u)return 0;let C=T-E,U=g-c;const j=Math.min(C,U),V=this.slice(E,T),z=u.slice(c,g);for(let H=0;H2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,Ee(c)&&(c=E?0:p.length-1),c<0&&(c=p.length+c),c>=p.length){if(E)return-1;c=p.length-1}else if(c<0)if(E)c=0;else return-1;if(typeof u=="string"&&(u=l.from(u,g)),l.isBuffer(u))return u.length===0?-1:O(p,u,c,g,E);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?E?Uint8Array.prototype.indexOf.call(p,u,c):Uint8Array.prototype.lastIndexOf.call(p,u,c):O(p,[u],c,g,E);throw new TypeError("val must be string, number or Buffer")}function O(p,u,c,g,E){let T=1,C=p.length,U=u.length;if(g!==void 0&&(g=String(g).toLowerCase(),g==="ucs2"||g==="ucs-2"||g==="utf16le"||g==="utf-16le")){if(p.length<2||u.length<2)return-1;T=2,C/=2,U/=2,c/=2}function j(z,H){return T===1?z[H]:z.readUInt16BE(H*T)}let V;if(E){let z=-1;for(V=c;VC&&(c=C-U),V=c;V>=0;V--){let z=!0;for(let H=0;HE&&(g=E)):g=E;const T=u.length;g>T/2&&(g=T/2);let C;for(C=0;C>>0,isFinite(g)?(g=g>>>0,E===void 0&&(E="utf8")):(E=g,g=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const T=this.length-c;if((g===void 0||g>T)&&(g=T),u.length>0&&(g<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");E||(E="utf8");let C=!1;for(;;)switch(E){case"hex":return N(this,u,c,g);case"utf8":case"utf-8":return k(this,u,c,g);case"ascii":case"latin1":case"binary":return R(this,u,c,g);case"base64":return M(this,u,c,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,u,c,g);default:if(C)throw new TypeError("Unknown encoding: "+E);E=(""+E).toLowerCase(),C=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function G(p,u,c){return u===0&&c===p.length?e.fromByteArray(p):e.fromByteArray(p.slice(u,c))}function J(p,u,c){c=Math.min(p.length,c);const g=[];let E=u;for(;E239?4:T>223?3:T>191?2:1;if(E+U<=c){let j,V,z,H;switch(U){case 1:T<128&&(C=T);break;case 2:j=p[E+1],(j&192)===128&&(H=(T&31)<<6|j&63,H>127&&(C=H));break;case 3:j=p[E+1],V=p[E+2],(j&192)===128&&(V&192)===128&&(H=(T&15)<<12|(j&63)<<6|V&63,H>2047&&(H<55296||H>57343)&&(C=H));break;case 4:j=p[E+1],V=p[E+2],z=p[E+3],(j&192)===128&&(V&192)===128&&(z&192)===128&&(H=(T&15)<<18|(j&63)<<12|(V&63)<<6|z&63,H>65535&&H<1114112&&(C=H))}}C===null?(C=65533,U=1):C>65535&&(C-=65536,g.push(C>>>10&1023|55296),C=56320|C&1023),g.push(C),E+=U}return Y(g)}const F=4096;function Y(p){const u=p.length;if(u<=F)return String.fromCharCode.apply(String,p);let c="",g=0;for(;gg)&&(c=g);let E="";for(let T=u;Tg&&(u=g),c<0?(c+=g,c<0&&(c=0)):c>g&&(c=g),cc)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(u,c,g){u=u>>>0,c=c>>>0,g||W(u,c,this.length);let E=this[u],T=1,C=0;for(;++C>>0,c=c>>>0,g||W(u,c,this.length);let E=this[u+--c],T=1;for(;c>0&&(T*=256);)E+=this[u+--c]*T;return E},l.prototype.readUint8=l.prototype.readUInt8=function(u,c){return u=u>>>0,c||W(u,1,this.length),this[u]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(u,c){return u=u>>>0,c||W(u,2,this.length),this[u]|this[u+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(u,c){return u=u>>>0,c||W(u,2,this.length),this[u]<<8|this[u+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(u,c){return u=u>>>0,c||W(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(u,c){return u=u>>>0,c||W(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},l.prototype.readBigUInt64LE=re(function(u){u=u>>>0,ce(u,"offset");const c=this[u],g=this[u+7];(c===void 0||g===void 0)&&fe(u,this.length-8);const E=c+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24,T=this[++u]+this[++u]*2**8+this[++u]*2**16+g*2**24;return BigInt(E)+(BigInt(T)<>>0,ce(u,"offset");const c=this[u],g=this[u+7];(c===void 0||g===void 0)&&fe(u,this.length-8);const E=c*2**24+this[++u]*2**16+this[++u]*2**8+this[++u],T=this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+g;return(BigInt(E)<>>0,c=c>>>0,g||W(u,c,this.length);let E=this[u],T=1,C=0;for(;++C=T&&(E-=Math.pow(2,8*c)),E},l.prototype.readIntBE=function(u,c,g){u=u>>>0,c=c>>>0,g||W(u,c,this.length);let E=c,T=1,C=this[u+--E];for(;E>0&&(T*=256);)C+=this[u+--E]*T;return T*=128,C>=T&&(C-=Math.pow(2,8*c)),C},l.prototype.readInt8=function(u,c){return u=u>>>0,c||W(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},l.prototype.readInt16LE=function(u,c){u=u>>>0,c||W(u,2,this.length);const g=this[u]|this[u+1]<<8;return g&32768?g|4294901760:g},l.prototype.readInt16BE=function(u,c){u=u>>>0,c||W(u,2,this.length);const g=this[u+1]|this[u]<<8;return g&32768?g|4294901760:g},l.prototype.readInt32LE=function(u,c){return u=u>>>0,c||W(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},l.prototype.readInt32BE=function(u,c){return u=u>>>0,c||W(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},l.prototype.readBigInt64LE=re(function(u){u=u>>>0,ce(u,"offset");const c=this[u],g=this[u+7];(c===void 0||g===void 0)&&fe(u,this.length-8);const E=this[u+4]+this[u+5]*2**8+this[u+6]*2**16+(g<<24);return(BigInt(E)<>>0,ce(u,"offset");const c=this[u],g=this[u+7];(c===void 0||g===void 0)&&fe(u,this.length-8);const E=(c<<24)+this[++u]*2**16+this[++u]*2**8+this[++u];return(BigInt(E)<>>0,c||W(u,4,this.length),t.read(this,u,!0,23,4)},l.prototype.readFloatBE=function(u,c){return u=u>>>0,c||W(u,4,this.length),t.read(this,u,!1,23,4)},l.prototype.readDoubleLE=function(u,c){return u=u>>>0,c||W(u,8,this.length),t.read(this,u,!0,52,8)},l.prototype.readDoubleBE=function(u,c){return u=u>>>0,c||W(u,8,this.length),t.read(this,u,!1,52,8)};function X(p,u,c,g,E,T){if(!l.isBuffer(p))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>E||up.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(u,c,g,E){if(u=+u,c=c>>>0,g=g>>>0,!E){const U=Math.pow(2,8*g)-1;X(this,u,c,g,U,0)}let T=1,C=0;for(this[c]=u&255;++C>>0,g=g>>>0,!E){const U=Math.pow(2,8*g)-1;X(this,u,c,g,U,0)}let T=g-1,C=1;for(this[c+T]=u&255;--T>=0&&(C*=256);)this[c+T]=u/C&255;return c+g},l.prototype.writeUint8=l.prototype.writeUInt8=function(u,c,g){return u=+u,c=c>>>0,g||X(this,u,c,1,255,0),this[c]=u&255,c+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(u,c,g){return u=+u,c=c>>>0,g||X(this,u,c,2,65535,0),this[c]=u&255,this[c+1]=u>>>8,c+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(u,c,g){return u=+u,c=c>>>0,g||X(this,u,c,2,65535,0),this[c]=u>>>8,this[c+1]=u&255,c+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(u,c,g){return u=+u,c=c>>>0,g||X(this,u,c,4,4294967295,0),this[c+3]=u>>>24,this[c+2]=u>>>16,this[c+1]=u>>>8,this[c]=u&255,c+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(u,c,g){return u=+u,c=c>>>0,g||X(this,u,c,4,4294967295,0),this[c]=u>>>24,this[c+1]=u>>>16,this[c+2]=u>>>8,this[c+3]=u&255,c+4};function ne(p,u,c,g,E){ae(u,g,E,p,c,7);let T=Number(u&BigInt(4294967295));p[c++]=T,T=T>>8,p[c++]=T,T=T>>8,p[c++]=T,T=T>>8,p[c++]=T;let C=Number(u>>BigInt(32)&BigInt(4294967295));return p[c++]=C,C=C>>8,p[c++]=C,C=C>>8,p[c++]=C,C=C>>8,p[c++]=C,c}function ke(p,u,c,g,E){ae(u,g,E,p,c,7);let T=Number(u&BigInt(4294967295));p[c+7]=T,T=T>>8,p[c+6]=T,T=T>>8,p[c+5]=T,T=T>>8,p[c+4]=T;let C=Number(u>>BigInt(32)&BigInt(4294967295));return p[c+3]=C,C=C>>8,p[c+2]=C,C=C>>8,p[c+1]=C,C=C>>8,p[c]=C,c+8}l.prototype.writeBigUInt64LE=re(function(u,c=0){return ne(this,u,c,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=re(function(u,c=0){return ke(this,u,c,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(u,c,g,E){if(u=+u,c=c>>>0,!E){const j=Math.pow(2,8*g-1);X(this,u,c,g,j-1,-j)}let T=0,C=1,U=0;for(this[c]=u&255;++T>0)-U&255;return c+g},l.prototype.writeIntBE=function(u,c,g,E){if(u=+u,c=c>>>0,!E){const j=Math.pow(2,8*g-1);X(this,u,c,g,j-1,-j)}let T=g-1,C=1,U=0;for(this[c+T]=u&255;--T>=0&&(C*=256);)u<0&&U===0&&this[c+T+1]!==0&&(U=1),this[c+T]=(u/C>>0)-U&255;return c+g},l.prototype.writeInt8=function(u,c,g){return u=+u,c=c>>>0,g||X(this,u,c,1,127,-128),u<0&&(u=255+u+1),this[c]=u&255,c+1},l.prototype.writeInt16LE=function(u,c,g){return u=+u,c=c>>>0,g||X(this,u,c,2,32767,-32768),this[c]=u&255,this[c+1]=u>>>8,c+2},l.prototype.writeInt16BE=function(u,c,g){return u=+u,c=c>>>0,g||X(this,u,c,2,32767,-32768),this[c]=u>>>8,this[c+1]=u&255,c+2},l.prototype.writeInt32LE=function(u,c,g){return u=+u,c=c>>>0,g||X(this,u,c,4,2147483647,-2147483648),this[c]=u&255,this[c+1]=u>>>8,this[c+2]=u>>>16,this[c+3]=u>>>24,c+4},l.prototype.writeInt32BE=function(u,c,g){return u=+u,c=c>>>0,g||X(this,u,c,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[c]=u>>>24,this[c+1]=u>>>16,this[c+2]=u>>>8,this[c+3]=u&255,c+4},l.prototype.writeBigInt64LE=re(function(u,c=0){return ne(this,u,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=re(function(u,c=0){return ke(this,u,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ie(p,u,c,g,E,T){if(c+g>p.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function Se(p,u,c,g,E){return u=+u,c=c>>>0,E||ie(p,u,c,4),t.write(p,u,c,g,23,4),c+4}l.prototype.writeFloatLE=function(u,c,g){return Se(this,u,c,!0,g)},l.prototype.writeFloatBE=function(u,c,g){return Se(this,u,c,!1,g)};function oe(p,u,c,g,E){return u=+u,c=c>>>0,E||ie(p,u,c,8),t.write(p,u,c,g,52,8),c+8}l.prototype.writeDoubleLE=function(u,c,g){return oe(this,u,c,!0,g)},l.prototype.writeDoubleBE=function(u,c,g){return oe(this,u,c,!1,g)},l.prototype.copy=function(u,c,g,E){if(!l.isBuffer(u))throw new TypeError("argument should be a Buffer");if(g||(g=0),!E&&E!==0&&(E=this.length),c>=u.length&&(c=u.length),c||(c=0),E>0&&E=this.length)throw new RangeError("Index out of range");if(E<0)throw new RangeError("sourceEnd out of bounds");E>this.length&&(E=this.length),u.length-c>>0,g=g===void 0?this.length:g>>>0,u||(u=0);let T;if(typeof u=="number")for(T=c;T2**32?E=Ce(String(c)):typeof c=="bigint"&&(E=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(E=Ce(E)),E+="n"),g+=` It must be ${u}. Received ${E}`,g},RangeError);function Ce(p){let u="",c=p.length;const g=p[0]==="-"?1:0;for(;c>=g+4;c-=3)u=`_${p.slice(c-3,c)}${u}`;return`${p.slice(0,c)}${u}`}function Be(p,u,c){ce(u,"offset"),(p[u]===void 0||p[u+c]===void 0)&&fe(u,p.length-(c+1))}function ae(p,u,c,g,E,T){if(p>c||p3?u===0||u===BigInt(0)?U=`>= 0${C} and < 2${C} ** ${(T+1)*8}${C}`:U=`>= -(2${C} ** ${(T+1)*8-1}${C}) and < 2 ** ${(T+1)*8-1}${C}`:U=`>= ${u}${C} and <= ${c}${C}`,new ue.ERR_OUT_OF_RANGE("value",U,p)}Be(g,E,T)}function ce(p,u){if(typeof p!="number")throw new ue.ERR_INVALID_ARG_TYPE(u,"number",p)}function fe(p,u,c){throw Math.floor(p)!==p?(ce(p,c),new ue.ERR_OUT_OF_RANGE(c||"offset","an integer",p)):u<0?new ue.ERR_BUFFER_OUT_OF_BOUNDS:new ue.ERR_OUT_OF_RANGE(c||"offset",`>= ${c?1:0} and <= ${u}`,p)}const K=/[^+/0-9A-Za-z-_]/g;function te(p){if(p=p.split("=")[0],p=p.trim().replace(K,""),p.length<2)return"";for(;p.length%4!==0;)p=p+"=";return p}function ve(p,u){u=u||1/0;let c;const g=p.length;let E=null;const T=[];for(let C=0;C55295&&c<57344){if(!E){if(c>56319){(u-=3)>-1&&T.push(239,191,189);continue}else if(C+1===g){(u-=3)>-1&&T.push(239,191,189);continue}E=c;continue}if(c<56320){(u-=3)>-1&&T.push(239,191,189),E=c;continue}c=(E-55296<<10|c-56320)+65536}else E&&(u-=3)>-1&&T.push(239,191,189);if(E=null,c<128){if((u-=1)<0)break;T.push(c)}else if(c<2048){if((u-=2)<0)break;T.push(c>>6|192,c&63|128)}else if(c<65536){if((u-=3)<0)break;T.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((u-=4)<0)break;T.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return T}function he(p){const u=[];for(let c=0;c>8,E=c%256,T.push(E),T.push(g);return T}function se(p){return e.toByteArray(te(p))}function ye(p,u,c,g){let E;for(E=0;E=u.length||E>=p.length);++E)u[E+c]=p[E];return E}function Z(p,u){return p instanceof u||p!=null&&p.constructor!=null&&p.constructor.name!=null&&p.constructor.name===u.name}function Ee(p){return p!==p}const de=function(){const p="0123456789abcdef",u=new Array(256);for(let c=0;c<16;++c){const g=c*16;for(let E=0;E<16;++E)u[g+E]=p[c]+p[E]}return u}();function re(p){return typeof BigInt>"u"?pe:p}function pe(){throw new Error("BigInt not supported")}})(buffer);const{Buffer}=buffer,symbol=Symbol.for("BufferList");function BufferList(r){if(!(this instanceof BufferList))return new BufferList(r);BufferList._init.call(this,r)}BufferList._init=function r(e){Object.defineProperty(this,symbol,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};BufferList.prototype._new=function r(e){return new BufferList(e)};BufferList.prototype._offset=function r(e){if(e===0)return[0,0];let t=0;for(let n=0;nthis.length||e<0)return;const t=this._offset(e);return this._bufs[t[0]][t[1]]};BufferList.prototype.slice=function r(e,t){return typeof e=="number"&&e<0&&(e+=this.length),typeof t=="number"&&t<0&&(t+=this.length),this.copy(null,0,e,t)};BufferList.prototype.copy=function r(e,t,n,o){if((typeof n!="number"||n<0)&&(n=0),(typeof o!="number"||o>this.length)&&(o=this.length),n>=this.length||o<=0)return e||Buffer.alloc(0);const a=!!e,s=this._offset(n),l=o-n;let f=l,h=a&&t||0,d=s[1];if(n===0&&o===this.length){if(!a)return this._bufs.length===1?this._bufs[0]:Buffer.concat(this._bufs,this.length);for(let m=0;mb)this._bufs[m].copy(e,h,d),h+=b;else{this._bufs[m].copy(e,h,d,d+f),h+=b;break}f-=b,d&&(d=0)}return e.length>h?e.slice(0,h):e};BufferList.prototype.shallowSlice=function r(e,t){if(e=e||0,t=typeof t!="number"?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();const n=this._offset(e),o=this._offset(t),a=this._bufs.slice(n[0],o[0]+1);return o[1]===0?a.pop():a[a.length-1]=a[a.length-1].slice(0,o[1]),n[1]!==0&&(a[0]=a[0].slice(n[1])),this._new(a)};BufferList.prototype.toString=function r(e,t,n){return this.slice(t,n).toString(e)};BufferList.prototype.consume=function r(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};BufferList.prototype.duplicate=function r(){const e=this._new();for(let t=0;tthis.length?this.length:e;const n=this._offset(e);let o=n[0],a=n[1];for(;o=r.length){const f=s.indexOf(r,a);if(f!==-1)return this._reverseOffset([o,f]);a=s.length-r.length+1}else{const f=this._reverseOffset([o,a]);if(this._match(f,r))return f;a++}a=0}return-1};BufferList.prototype._match=function(r,e){if(this.length-r=0?b.subarray(0,w):b}};var rabin$1=Rabin$1,loader={};const ID_OFFSET=-8,SIZE_OFFSET=-4,ARRAYBUFFER_ID=0,STRING_ID=1,ARRAYBUFFERVIEW=1,ARRAY=2,VAL_ALIGN_OFFSET=5,VAL_SIGNED=1024,VAL_FLOAT=2048,VAL_MANAGED=8192,ARRAYBUFFERVIEW_BUFFER_OFFSET=0,ARRAYBUFFERVIEW_DATASTART_OFFSET=4,ARRAYBUFFERVIEW_DATALENGTH_OFFSET=8,ARRAYBUFFERVIEW_SIZE=12,ARRAY_LENGTH_OFFSET=12,ARRAY_SIZE=16,BIGINT=typeof BigUint64Array<"u",THIS=Symbol(),CHUNKSIZE=1024;function getStringImpl(r,e){const t=new Uint32Array(r),n=new Uint16Array(r);var o=t[e+SIZE_OFFSET>>>2]>>>1,a=e>>>1;if(o<=CHUNKSIZE)return String.fromCharCode.apply(String,n.subarray(a,a+o));const s=[];do{const l=n[a+CHUNKSIZE-1],f=l>=55296&&l<56320?CHUNKSIZE-1:CHUNKSIZE;s.push(String.fromCharCode.apply(String,n.subarray(a,a+=f))),o-=f}while(o>CHUNKSIZE);return s.join("")+String.fromCharCode.apply(String,n.subarray(a,a+o))}function preInstantiate(r){const e={};function t(o,a){return o?getStringImpl(o.buffer,a):""}const n=r.env=r.env||{};return n.abort=n.abort||function(a,s,l,f){const h=e.memory||n.memory;throw Error("abort: "+t(h,a)+" at "+t(h,s)+":"+l+":"+f)},n.trace=n.trace||function(a,s){const l=e.memory||n.memory;console.log("trace: "+t(l,a)+(s?" ":"")+Array.prototype.slice.call(arguments,2,2+s).join(", "))},r.Math=r.Math||Math,r.Date=r.Date||Date,e}function postInstantiate(r,e){const t=e.exports,n=t.memory,o=t.table,a=t.__alloc,s=t.__retain,l=t.__rtti_base||-1;function f(x){const S=new Uint32Array(n.buffer),O=S[l>>>2];if((x>>>=0)>=O)throw Error("invalid id: "+x);return S[(l+4>>>2)+x*2]}function h(x){const S=new Uint32Array(n.buffer),O=S[l>>>2];if((x>>>=0)>=O)throw Error("invalid id: "+x);return S[(l+4>>>2)+x*2+1]}function d(x){return 31-Math.clz32(x>>>VAL_ALIGN_OFFSET&31)}function m(x){const S=x.length,O=a(S<<1,STRING_ID),N=new Uint16Array(n.buffer);for(var k=0,R=O>>>1;k>>2]!==STRING_ID)throw Error("not a string: "+x);return getStringImpl(S,x)}r.__getString=b;function w(x,S,O){const N=n.buffer;if(O)switch(x){case 2:return new Float32Array(N);case 3:return new Float64Array(N)}else switch(x){case 0:return new(S?Int8Array:Uint8Array)(N);case 1:return new(S?Int16Array:Uint16Array)(N);case 2:return new(S?Int32Array:Uint32Array)(N);case 3:return new(S?BigInt64Array:BigUint64Array)(N)}throw Error("unsupported align: "+x)}function _(x,S){const O=f(x);if(!(O&(ARRAYBUFFERVIEW|ARRAY)))throw Error("not an array: "+x+" @ "+O);const N=d(O),k=S.length,R=a(k<>>2]=s(R),q[M+ARRAYBUFFERVIEW_DATASTART_OFFSET>>>2]=R,q[M+ARRAYBUFFERVIEW_DATALENGTH_OFFSET>>>2]=k<>>2]=k);const G=w(N,O&VAL_SIGNED,O&VAL_FLOAT);if(O&VAL_MANAGED)for(let J=0;J>>N)+J]=s(S[J]);else G.set(S,R>>>N);return M}r.__allocArray=_;function y(x){const S=new Uint32Array(n.buffer),O=S[x+ID_OFFSET>>>2],N=f(O);if(!(N&ARRAYBUFFERVIEW))throw Error("not an array: "+O);const k=d(N);var R=S[x+ARRAYBUFFERVIEW_DATASTART_OFFSET>>>2];const M=N&ARRAY?S[x+ARRAY_LENGTH_OFFSET>>>2]:S[R+SIZE_OFFSET>>>2]>>>k;return w(k,N&VAL_SIGNED,N&VAL_FLOAT).subarray(R>>>=k,R+M)}r.__getArrayView=y;function v(x){const S=y(x),O=S.length,N=new Array(O);for(let k=0;k>>2];return S.slice(x,x+O)}r.__getArrayBuffer=A;function L(x,S,O){return new x(D(x,S,O))}function D(x,S,O){const N=n.buffer,k=new Uint32Array(N),R=k[O+ARRAYBUFFERVIEW_DATASTART_OFFSET>>>2];return new x(N,R,k[R+SIZE_OFFSET>>>2]>>>S)}r.__getInt8Array=L.bind(null,Int8Array,0),r.__getInt8ArrayView=D.bind(null,Int8Array,0),r.__getUint8Array=L.bind(null,Uint8Array,0),r.__getUint8ArrayView=D.bind(null,Uint8Array,0),r.__getUint8ClampedArray=L.bind(null,Uint8ClampedArray,0),r.__getUint8ClampedArrayView=D.bind(null,Uint8ClampedArray,0),r.__getInt16Array=L.bind(null,Int16Array,1),r.__getInt16ArrayView=D.bind(null,Int16Array,1),r.__getUint16Array=L.bind(null,Uint16Array,1),r.__getUint16ArrayView=D.bind(null,Uint16Array,1),r.__getInt32Array=L.bind(null,Int32Array,2),r.__getInt32ArrayView=D.bind(null,Int32Array,2),r.__getUint32Array=L.bind(null,Uint32Array,2),r.__getUint32ArrayView=D.bind(null,Uint32Array,2),BIGINT&&(r.__getInt64Array=L.bind(null,BigInt64Array,3),r.__getInt64ArrayView=D.bind(null,BigInt64Array,3),r.__getUint64Array=L.bind(null,BigUint64Array,3),r.__getUint64ArrayView=D.bind(null,BigUint64Array,3)),r.__getFloat32Array=L.bind(null,Float32Array,2),r.__getFloat32ArrayView=D.bind(null,Float32Array,2),r.__getFloat64Array=L.bind(null,Float64Array,3),r.__getFloat64ArrayView=D.bind(null,Float64Array,3);function B(x,S){const O=new Uint32Array(n.buffer);var N=O[x+ID_OFFSET>>>2];if(N<=O[l>>>2])do if(N==S)return!0;while(N=h(N));return!1}return r.__instanceof=B,r.memory=r.memory||n,r.table=r.table||o,demangle(t,r)}function isResponse(r){return typeof Response<"u"&&r instanceof Response}async function instantiate$1(r,e){return isResponse(r=await r)?instantiateStreaming(r,e):postInstantiate(preInstantiate(e||(e={})),await WebAssembly.instantiate(r instanceof WebAssembly.Module?r:await WebAssembly.compile(r),e))}loader.instantiate=instantiate$1;function instantiateSync(r,e){return postInstantiate(preInstantiate(e||(e={})),new WebAssembly.Instance(r instanceof WebAssembly.Module?r:new WebAssembly.Module(r),e))}loader.instantiateSync=instantiateSync;async function instantiateStreaming(r,e){return WebAssembly.instantiateStreaming?postInstantiate(preInstantiate(e||(e={})),(await WebAssembly.instantiateStreaming(r,e)).instance):instantiate$1(isResponse(r=await r)?r.arrayBuffer():r,e)}loader.instantiateStreaming=instantiateStreaming;function demangle(r,e){var t=e?Object.create(e):{},n=r.__argumentsLength?function(o){r.__argumentsLength.value=o}:r.__setArgumentsLength||r.__setargc||function(){};for(let o in r){if(!Object.prototype.hasOwnProperty.call(r,o))continue;const a=r[o];let s=o.split("."),l=t;for(;s.length>1;){let d=s.shift();Object.prototype.hasOwnProperty.call(l,d)||(l[d]={}),l=l[d]}let f=s[0],h=f.indexOf("#");if(h>=0){let d=f.substring(0,h),m=l[d];if(typeof m>"u"||!m.prototype){let b=function(...w){return b.wrap(b.prototype.constructor(0,...w))};b.prototype={valueOf:function(){return this[THIS]}},b.wrap=function(w){return Object.create(b.prototype,{[THIS]:{value:w,writable:!1}})},m&&Object.getOwnPropertyNames(m).forEach(w=>Object.defineProperty(b,w,Object.getOwnPropertyDescriptor(m,w))),l[d]=b}if(f=f.substring(h+1),l=l[d].prototype,/^(get|set):/.test(f)){if(!Object.prototype.hasOwnProperty.call(l,f=f.substring(4))){let b=r[o.replace("set:","get:")],w=r[o.replace("get:","set:")];Object.defineProperty(l,f,{get:function(){return b(this[THIS])},set:function(_){w(this[THIS],_)},enumerable:!0})}}else f==="constructor"?(l[f]=(...b)=>(n(b.length),a(...b))).original=a:(l[f]=function(...b){return n(b.length),a(this[THIS],...b)}).original=a}else/^(get|set):/.test(f)?Object.prototype.hasOwnProperty.call(l,f=f.substring(4))||Object.defineProperty(l,f,{get:r[o.replace("set:","get:")],set:r[o.replace("get:","set:")],enumerable:!0}):typeof a=="function"&&a!==n?(l[f]=(...d)=>(n(d.length),a(...d))).original=a:l[f]=a}return t}loader.demangle=demangle;const{instantiate}=loader;loadWebAssembly.supported=typeof WebAssembly<"u";function loadWebAssembly(r={}){if(!loadWebAssembly.supported)return null;var e=new Uint8Array([0,97,115,109,1,0,0,0,1,78,14,96,2,127,126,0,96,1,127,1,126,96,2,127,127,0,96,1,127,1,127,96,1,127,0,96,2,127,127,1,127,96,3,127,127,127,1,127,96,0,0,96,3,127,127,127,0,96,0,1,127,96,4,127,127,127,127,0,96,5,127,127,127,127,127,1,127,96,1,126,1,127,96,2,126,126,1,126,2,13,1,3,101,110,118,5,97,98,111,114,116,0,10,3,54,53,2,2,8,9,3,5,2,8,6,5,3,4,2,6,9,12,13,2,5,11,3,2,3,2,3,2,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,6,7,7,4,4,5,3,1,0,1,6,47,9,127,1,65,0,11,127,1,65,0,11,127,0,65,3,11,127,0,65,4,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,0,65,240,2,11,127,0,65,6,11,7,240,5,41,6,109,101,109,111,114,121,2,0,7,95,95,97,108,108,111,99,0,10,8,95,95,114,101,116,97,105,110,0,11,9,95,95,114,101,108,101,97,115,101,0,12,9,95,95,99,111,108,108,101,99,116,0,51,11,95,95,114,116,116,105,95,98,97,115,101,3,7,13,73,110,116,51,50,65,114,114,97,121,95,73,68,3,2,13,85,105,110,116,56,65,114,114,97,121,95,73,68,3,3,6,100,101,103,114,101,101,0,16,3,109,111,100,0,17,5,82,97,98,105,110,3,8,16,82,97,98,105,110,35,103,101,116,58,119,105,110,100,111,119,0,21,16,82,97,98,105,110,35,115,101,116,58,119,105,110,100,111,119,0,22,21,82,97,98,105,110,35,103,101,116,58,119,105,110,100,111,119,95,115,105,122,101,0,23,21,82,97,98,105,110,35,115,101,116,58,119,105,110,100,111,119,95,115,105,122,101,0,24,14,82,97,98,105,110,35,103,101,116,58,119,112,111,115,0,25,14,82,97,98,105,110,35,115,101,116,58,119,112,111,115,0,26,15,82,97,98,105,110,35,103,101,116,58,99,111,117,110,116,0,27,15,82,97,98,105,110,35,115,101,116,58,99,111,117,110,116,0,28,13,82,97,98,105,110,35,103,101,116,58,112,111,115,0,29,13,82,97,98,105,110,35,115,101,116,58,112,111,115,0,30,15,82,97,98,105,110,35,103,101,116,58,115,116,97,114,116,0,31,15,82,97,98,105,110,35,115,101,116,58,115,116,97,114,116,0,32,16,82,97,98,105,110,35,103,101,116,58,100,105,103,101,115,116,0,33,16,82,97,98,105,110,35,115,101,116,58,100,105,103,101,115,116,0,34,21,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,115,116,97,114,116,0,35,21,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,115,116,97,114,116,0,36,22,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,108,101,110,103,116,104,0,37,22,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,108,101,110,103,116,104,0,38,31,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,99,117,116,95,102,105,110,103,101,114,112,114,105,110,116,0,39,31,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,99,117,116,95,102,105,110,103,101,114,112,114,105,110,116,0,40,20,82,97,98,105,110,35,103,101,116,58,112,111,108,121,110,111,109,105,97,108,0,41,20,82,97,98,105,110,35,115,101,116,58,112,111,108,121,110,111,109,105,97,108,0,42,17,82,97,98,105,110,35,103,101,116,58,109,105,110,115,105,122,101,0,43,17,82,97,98,105,110,35,115,101,116,58,109,105,110,115,105,122,101,0,44,17,82,97,98,105,110,35,103,101,116,58,109,97,120,115,105,122,101,0,45,17,82,97,98,105,110,35,115,101,116,58,109,97,120,115,105,122,101,0,46,14,82,97,98,105,110,35,103,101,116,58,109,97,115,107,0,47,14,82,97,98,105,110,35,115,101,116,58,109,97,115,107,0,48,17,82,97,98,105,110,35,99,111,110,115,116,114,117,99,116,111,114,0,20,17,82,97,98,105,110,35,102,105,110,103,101,114,112,114,105,110,116,0,49,8,1,50,10,165,31,53,199,1,1,4,127,32,1,40,2,0,65,124,113,34,2,65,128,2,73,4,127,32,2,65,4,118,33,4,65,0,5,32,2,65,31,32,2,103,107,34,3,65,4,107,118,65,16,115,33,4,32,3,65,7,107,11,33,3,32,1,40,2,20,33,2,32,1,40,2,16,34,5,4,64,32,5,32,2,54,2,20,11,32,2,4,64,32,2,32,5,54,2,16,11,32,1,32,0,32,4,32,3,65,4,116,106,65,2,116,106,40,2,96,70,4,64,32,0,32,4,32,3,65,4,116,106,65,2,116,106,32,2,54,2,96,32,2,69,4,64,32,0,32,3,65,2,116,106,32,0,32,3,65,2,116,106,40,2,4,65,1,32,4,116,65,127,115,113,34,1,54,2,4,32,1,69,4,64,32,0,32,0,40,2,0,65,1,32,3,116,65,127,115,113,54,2,0,11,11,11,11,226,2,1,6,127,32,1,40,2,0,33,3,32,1,65,16,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,34,5,65,1,113,4,64,32,3,65,124,113,65,16,106,32,5,65,124,113,106,34,2,65,240,255,255,255,3,73,4,64,32,0,32,4,16,1,32,1,32,2,32,3,65,3,113,114,34,3,54,2,0,32,1,65,16,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,33,5,11,11,32,3,65,2,113,4,64,32,1,65,4,107,40,2,0,34,2,40,2,0,34,6,65,124,113,65,16,106,32,3,65,124,113,106,34,7,65,240,255,255,255,3,73,4,64,32,0,32,2,16,1,32,2,32,7,32,6,65,3,113,114,34,3,54,2,0,32,2,33,1,11,11,32,4,32,5,65,2,114,54,2,0,32,4,65,4,107,32,1,54,2,0,32,0,32,3,65,124,113,34,2,65,128,2,73,4,127,32,2,65,4,118,33,4,65,0,5,32,2,65,31,32,2,103,107,34,2,65,4,107,118,65,16,115,33,4,32,2,65,7,107,11,34,3,65,4,116,32,4,106,65,2,116,106,40,2,96,33,2,32,1,65,0,54,2,16,32,1,32,2,54,2,20,32,2,4,64,32,2,32,1,54,2,16,11,32,0,32,4,32,3,65,4,116,106,65,2,116,106,32,1,54,2,96,32,0,32,0,40,2,0,65,1,32,3,116,114,54,2,0,32,0,32,3,65,2,116,106,32,0,32,3,65,2,116,106,40,2,4,65,1,32,4,116,114,54,2,4,11,119,1,1,127,32,2,2,127,32,0,40,2,160,12,34,2,4,64,32,2,32,1,65,16,107,70,4,64,32,2,40,2,0,33,3,32,1,65,16,107,33,1,11,11,32,1,11,107,34,2,65,48,73,4,64,15,11,32,1,32,3,65,2,113,32,2,65,32,107,65,1,114,114,54,2,0,32,1,65,0,54,2,16,32,1,65,0,54,2,20,32,1,32,2,106,65,16,107,34,2,65,2,54,2,0,32,0,32,2,54,2,160,12,32,0,32,1,16,2,11,155,1,1,3,127,35,0,34,0,69,4,64,65,1,63,0,34,0,74,4,127,65,1,32,0,107,64,0,65,0,72,5,65,0,11,4,64,0,11,65,176,3,34,0,65,0,54,2,0,65,208,15,65,0,54,2,0,3,64,32,1,65,23,73,4,64,32,1,65,2,116,65,176,3,106,65,0,54,2,4,65,0,33,2,3,64,32,2,65,16,73,4,64,32,1,65,4,116,32,2,106,65,2,116,65,176,3,106,65,0,54,2,96,32,2,65,1,106,33,2,12,1,11,11,32,1,65,1,106,33,1,12,1,11,11,65,176,3,65,224,15,63,0,65,16,116,16,3,65,176,3,36,0,11,32,0,11,45,0,32,0,65,240,255,255,255,3,79,4,64,65,32,65,224,0,65,201,3,65,29,16,0,0,11,32,0,65,15,106,65,112,113,34,0,65,16,32,0,65,16,75,27,11,169,1,1,1,127,32,0,32,1,65,128,2,73,4,127,32,1,65,4,118,33,1,65,0,5,32,1,65,248,255,255,255,1,73,4,64,32,1,65,1,65,27,32,1,103,107,116,106,65,1,107,33,1,11,32,1,65,31,32,1,103,107,34,2,65,4,107,118,65,16,115,33,1,32,2,65,7,107,11,34,2,65,2,116,106,40,2,4,65,127,32,1,116,113,34,1,4,127,32,0,32,1,104,32,2,65,4,116,106,65,2,116,106,40,2,96,5,32,0,40,2,0,65,127,32,2,65,1,106,116,113,34,1,4,127,32,0,32,0,32,1,104,34,0,65,2,116,106,40,2,4,104,32,0,65,4,116,106,65,2,116,106,40,2,96,5,65,0,11,11,11,111,1,1,127,63,0,34,2,32,1,65,248,255,255,255,1,73,4,127,32,1,65,1,65,27,32,1,103,107,116,65,1,107,106,5,32,1,11,65,16,32,0,40,2,160,12,32,2,65,16,116,65,16,107,71,116,106,65,255,255,3,106,65,128,128,124,113,65,16,118,34,1,32,2,32,1,74,27,64,0,65,0,72,4,64,32,1,64,0,65,0,72,4,64,0,11,11,32,0,32,2,65,16,116,63,0,65,16,116,16,3,11,113,1,2,127,32,1,40,2,0,34,3,65,124,113,32,2,107,34,4,65,32,79,4,64,32,1,32,2,32,3,65,2,113,114,54,2,0,32,2,32,1,65,16,106,106,34,1,32,4,65,16,107,65,1,114,54,2,0,32,0,32,1,16,2,5,32,1,32,3,65,126,113,54,2,0,32,1,65,16,106,32,1,40,2,0,65,124,113,106,32,1,65,16,106,32,1,40,2,0,65,124,113,106,40,2,0,65,125,113,54,2,0,11,11,91,1,2,127,32,0,32,1,16,5,34,4,16,6,34,3,69,4,64,65,1,36,1,65,0,36,1,32,0,32,4,16,6,34,3,69,4,64,32,0,32,4,16,7,32,0,32,4,16,6,33,3,11,11,32,3,65,0,54,2,4,32,3,32,2,54,2,8,32,3,32,1,54,2,12,32,0,32,3,16,1,32,0,32,3,32,4,16,8,32,3,11,13,0,16,4,32,0,32,1,16,9,65,16,106,11,33,1,1,127,32,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,11,18,0,32,0,65,172,3,75,4,64,32,0,65,16,107,16,52,11,11,140,3,1,1,127,2,64,32,1,69,13,0,32,0,65,0,58,0,0,32,0,32,1,106,65,1,107,65,0,58,0,0,32,1,65,2,77,13,0,32,0,65,1,106,65,0,58,0,0,32,0,65,2,106,65,0,58,0,0,32,0,32,1,106,34,2,65,2,107,65,0,58,0,0,32,2,65,3,107,65,0,58,0,0,32,1,65,6,77,13,0,32,0,65,3,106,65,0,58,0,0,32,0,32,1,106,65,4,107,65,0,58,0,0,32,1,65,8,77,13,0,32,1,65,0,32,0,107,65,3,113,34,1,107,33,2,32,0,32,1,106,34,0,65,0,54,2,0,32,0,32,2,65,124,113,34,1,106,65,4,107,65,0,54,2,0,32,1,65,8,77,13,0,32,0,65,4,106,65,0,54,2,0,32,0,65,8,106,65,0,54,2,0,32,0,32,1,106,34,2,65,12,107,65,0,54,2,0,32,2,65,8,107,65,0,54,2,0,32,1,65,24,77,13,0,32,0,65,12,106,65,0,54,2,0,32,0,65,16,106,65,0,54,2,0,32,0,65,20,106,65,0,54,2,0,32,0,65,24,106,65,0,54,2,0,32,0,32,1,106,34,2,65,28,107,65,0,54,2,0,32,2,65,24,107,65,0,54,2,0,32,2,65,20,107,65,0,54,2,0,32,2,65,16,107,65,0,54,2,0,32,0,32,0,65,4,113,65,24,106,34,2,106,33,0,32,1,32,2,107,33,1,3,64,32,1,65,32,79,4,64,32,0,66,0,55,3,0,32,0,65,8,106,66,0,55,3,0,32,0,65,16,106,66,0,55,3,0,32,0,65,24,106,66,0,55,3,0,32,1,65,32,107,33,1,32,0,65,32,106,33,0,12,1,11,11,11,11,178,1,1,3,127,32,1,65,240,255,255,255,3,32,2,118,75,4,64,65,144,1,65,192,1,65,23,65,56,16,0,0,11,32,1,32,2,116,34,3,65,0,16,10,34,2,32,3,16,13,32,0,69,4,64,65,12,65,2,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,11,32,0,65,0,54,2,0,32,0,65,0,54,2,4,32,0,65,0,54,2,8,32,2,34,1,32,0,40,2,0,34,4,71,4,64,32,1,65,172,3,75,4,64,32,1,65,16,107,34,5,32,5,40,2,4,65,1,106,54,2,4,11,32,4,16,12,11,32,0,32,1,54,2,0,32,0,32,2,54,2,4,32,0,32,3,54,2,8,32,0,11,46,1,2,127,65,12,65,5,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,65,128,2,65,3,16,14,11,9,0,65,63,32,0,121,167,107,11,49,1,2,127,65,63,32,1,121,167,107,33,2,3,64,65,63,32,0,121,167,107,32,2,107,34,3,65,0,78,4,64,32,0,32,1,32,3,172,134,133,33,0,12,1,11,11,32,0,11,40,0,32,1,32,0,40,2,8,79,4,64,65,128,2,65,192,2,65,163,1,65,44,16,0,0,11,32,1,32,0,40,2,4,106,65,0,58,0,0,11,38,0,32,1,32,0,40,2,8,79,4,64,65,128,2,65,192,2,65,152,1,65,44,16,0,0,11,32,1,32,0,40,2,4,106,45,0,0,11,254,5,2,1,127,4,126,32,0,69,4,64,65,232,0,65,6,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,5,32,5,40,2,4,65,1,106,54,2,4,11,11,32,0,65,0,54,2,0,32,0,65,0,54,2,4,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,24,32,0,66,0,55,3,32,32,0,66,0,55,3,40,32,0,66,0,55,3,48,32,0,66,0,55,3,56,32,0,66,0,55,3,64,32,0,66,0,55,3,72,32,0,66,0,55,3,80,32,0,66,0,55,3,88,32,0,66,0,55,3,96,32,0,32,2,173,55,3,80,32,0,32,3,173,55,3,88,65,12,65,4,16,10,34,2,65,172,3,75,4,64,32,2,65,16,107,34,3,32,3,40,2,4,65,1,106,54,2,4,11,32,2,32,4,65,0,16,14,33,2,32,0,40,2,0,16,12,32,0,32,2,54,2,0,32,0,32,4,54,2,4,32,0,66,1,32,1,173,134,66,1,125,55,3,96,32,0,66,243,130,183,218,216,230,232,30,55,3,72,35,4,69,4,64,65,0,33,2,3,64,32,2,65,128,2,72,4,64,32,2,65,255,1,113,173,33,6,32,0,41,3,72,34,7,33,8,65,63,32,7,121,167,107,33,1,3,64,65,63,32,6,121,167,107,32,1,107,34,3,65,0,78,4,64,32,6,32,8,32,3,172,134,133,33,6,12,1,11,11,65,0,33,4,3,64,32,4,32,0,40,2,4,65,1,107,72,4,64,32,6,66,8,134,33,6,32,0,41,3,72,34,7,33,8,65,63,32,7,121,167,107,33,1,3,64,65,63,32,6,121,167,107,32,1,107,34,3,65,0,78,4,64,32,6,32,8,32,3,172,134,133,33,6,12,1,11,11,32,4,65,1,106,33,4,12,1,11,11,35,6,40,2,4,32,2,65,3,116,106,32,6,55,3,0,32,2,65,1,106,33,2,12,1,11,11,65,63,32,0,41,3,72,121,167,107,172,33,7,65,0,33,2,3,64,32,2,65,128,2,72,4,64,35,5,33,1,32,2,172,32,7,134,34,8,33,6,65,63,32,0,41,3,72,34,9,121,167,107,33,3,3,64,65,63,32,6,121,167,107,32,3,107,34,4,65,0,78,4,64,32,6,32,9,32,4,172,134,133,33,6,12,1,11,11,32,1,40,2,4,32,2,65,3,116,106,32,6,32,8,132,55,3,0,32,2,65,1,106,33,2,12,1,11,11,65,1,36,4,11,32,0,66,0,55,3,24,32,0,66,0,55,3,32,65,0,33,2,3,64,32,2,32,0,40,2,4,72,4,64,32,0,40,2,0,32,2,16,18,32,2,65,1,106,33,2,12,1,11,11,32,0,66,0,55,3,40,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,40,32,0,40,2,0,32,0,40,2,8,16,19,33,1,32,0,40,2,8,32,0,40,2,0,40,2,4,106,65,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,1,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,6,66,45,136,167,65,3,116,106,41,3,0,32,6,66,8,134,66,1,132,133,55,3,40,32,0,11,38,1,1,127,32,0,40,2,0,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,11,55,1,2,127,32,1,32,0,40,2,0,34,2,71,4,64,32,1,65,172,3,75,4,64,32,1,65,16,107,34,3,32,3,40,2,4,65,1,106,54,2,4,11,32,2,16,12,11,32,0,32,1,54,2,0,11,7,0,32,0,40,2,4,11,9,0,32,0,32,1,54,2,4,11,7,0,32,0,40,2,8,11,9,0,32,0,32,1,54,2,8,11,7,0,32,0,41,3,16,11,9,0,32,0,32,1,55,3,16,11,7,0,32,0,41,3,24,11,9,0,32,0,32,1,55,3,24,11,7,0,32,0,41,3,32,11,9,0,32,0,32,1,55,3,32,11,7,0,32,0,41,3,40,11,9,0,32,0,32,1,55,3,40,11,7,0,32,0,41,3,48,11,9,0,32,0,32,1,55,3,48,11,7,0,32,0,41,3,56,11,9,0,32,0,32,1,55,3,56,11,7,0,32,0,41,3,64,11,9,0,32,0,32,1,55,3,64,11,7,0,32,0,41,3,72,11,9,0,32,0,32,1,55,3,72,11,7,0,32,0,41,3,80,11,9,0,32,0,32,1,55,3,80,11,7,0,32,0,41,3,88,11,9,0,32,0,32,1,55,3,88,11,7,0,32,0,41,3,96,11,9,0,32,0,32,1,55,3,96,11,172,4,2,5,127,1,126,32,2,65,172,3,75,4,64,32,2,65,16,107,34,4,32,4,40,2,4,65,1,106,54,2,4,11,32,2,33,4,65,0,33,2,32,1,40,2,8,33,5,32,1,40,2,4,33,6,3,64,2,127,65,0,33,3,3,64,32,3,32,5,72,4,64,32,3,32,6,106,45,0,0,33,1,32,0,40,2,0,32,0,40,2,8,16,19,33,7,32,0,40,2,8,32,0,40,2,0,40,2,4,106,32,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,7,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,8,66,45,136,167,65,3,116,106,41,3,0,32,1,173,32,8,66,8,134,132,133,55,3,40,32,0,32,0,41,3,16,66,1,124,55,3,16,32,0,32,0,41,3,24,66,1,124,55,3,24,32,0,41,3,16,32,0,41,3,80,90,4,127,32,0,41,3,40,32,0,41,3,96,131,80,5,65,0,11,4,127,65,1,5,32,0,41,3,16,32,0,41,3,88,90,11,4,64,32,0,32,0,41,3,32,55,3,48,32,0,32,0,41,3,16,55,3,56,32,0,32,0,41,3,40,55,3,64,65,0,33,1,3,64,32,1,32,0,40,2,4,72,4,64,32,0,40,2,0,32,1,16,18,32,1,65,1,106,33,1,12,1,11,11,32,0,66,0,55,3,40,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,40,32,0,40,2,0,32,0,40,2,8,16,19,33,1,32,0,40,2,8,32,0,40,2,0,40,2,4,106,65,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,1,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,8,66,45,136,167,65,3,116,106,41,3,0,32,8,66,8,134,66,1,132,133,55,3,40,32,3,65,1,106,12,3,11,32,3,65,1,106,33,3,12,1,11,11,65,127,11,34,1,65,0,78,4,64,32,5,32,1,107,33,5,32,1,32,6,106,33,6,32,2,34,1,65,1,106,33,2,32,4,40,2,4,32,1,65,2,116,106,32,0,41,3,56,62,2,0,12,1,11,11,32,4,11,10,0,16,15,36,5,16,15,36,6,11,3,0,1,11,73,1,2,127,32,0,40,2,4,34,1,65,255,255,255,255,0,113,34,2,65,1,70,4,64,32,0,65,16,106,16,53,32,0,32,0,40,2,0,65,1,114,54,2,0,35,0,32,0,16,2,5,32,0,32,2,65,1,107,32,1,65,128,128,128,128,127,113,114,54,2,4,11,11,58,0,2,64,2,64,2,64,32,0,65,8,107,40,2,0,14,7,0,0,1,1,1,1,1,2,11,15,11,32,0,40,2,0,34,0,4,64,32,0,65,172,3,79,4,64,32,0,65,16,107,16,52,11,11,15,11,0,11,11,137,3,7,0,65,16,11,55,40,0,0,0,1,0,0,0,1,0,0,0,40,0,0,0,97,0,108,0,108,0,111,0,99,0,97,0,116,0,105,0,111,0,110,0,32,0,116,0,111,0,111,0,32,0,108,0,97,0,114,0,103,0,101,0,65,208,0,11,45,30,0,0,0,1,0,0,0,1,0,0,0,30,0,0,0,126,0,108,0,105,0,98,0,47,0,114,0,116,0,47,0,116,0,108,0,115,0,102,0,46,0,116,0,115,0,65,128,1,11,43,28,0,0,0,1,0,0,0,1,0,0,0,28,0,0,0,73,0,110,0,118,0,97,0,108,0,105,0,100,0,32,0,108,0,101,0,110,0,103,0,116,0,104,0,65,176,1,11,53,38,0,0,0,1,0,0,0,1,0,0,0,38,0,0,0,126,0,108,0,105,0,98,0,47,0,97,0,114,0,114,0,97,0,121,0,98,0,117,0,102,0,102,0,101,0,114,0,46,0,116,0,115,0,65,240,1,11,51,36,0,0,0,1,0,0,0,1,0,0,0,36,0,0,0,73,0,110,0,100,0,101,0,120,0,32,0,111,0,117,0,116,0,32,0,111,0,102,0,32,0,114,0,97,0,110,0,103,0,101,0,65,176,2,11,51,36,0,0,0,1,0,0,0,1,0,0,0,36,0,0,0,126,0,108,0,105,0,98,0,47,0,116,0,121,0,112,0,101,0,100,0,97,0,114,0,114,0,97,0,121,0,46,0,116,0,115,0,65,240,2,11,53,7,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,145,4,0,0,2,0,0,0,49,0,0,0,2,0,0,0,17,1,0,0,2,0,0,0,16,0,34,16,115,111,117,114,99,101,77,97,112,112,105,110,103,85,82,76,16,46,47,114,97,98,105,110,46,119,97,115,109,46,109,97,112]);return instantiate(new Response(new Blob([e],{type:"application/wasm"})),r)}var rabinWasm=loadWebAssembly;const Rabin=rabin$1,getRabin=rabinWasm,create=async(r,e,t,n,o)=>{const a=await getRabin();return new Rabin(a,r,e,t,n,o)};var src$2={Rabin,create};async function*rabinChunker(r,e){let t,n,o;if(e.minChunkSize&&e.maxChunkSize&&e.avgChunkSize)o=e.avgChunkSize,t=e.minChunkSize,n=e.maxChunkSize;else if(e.avgChunkSize)o=e.avgChunkSize,t=o/3,n=o+o/2;else throw errCode$1(new Error("please specify an average chunk size"),"ERR_INVALID_AVG_CHUNK_SIZE");if(t<16)throw errCode$1(new Error("rabin min must be greater than 16"),"ERR_INVALID_MIN_CHUNK_SIZE");n=a;)if(yield t.slice(0,a),o=!0,a===t.length)t=new BufferList$1,n=0;else{const l=new BufferList$1;l.append(t.shallowSlice(a)),t=l,n-=a}(!o||n)&&(yield t.slice(0,n))}const identity=from$1({prefix:"\0",name:"identity",encode:r=>toString$1(r),decode:r=>fromString$3(r)}),identityBase=Object.freeze(Object.defineProperty({__proto__:null,identity},Symbol.toStringTag,{value:"Module"})),base2=rfc4648({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),base2$1=Object.freeze(Object.defineProperty({__proto__:null,base2},Symbol.toStringTag,{value:"Module"})),base8=rfc4648({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),base8$1=Object.freeze(Object.defineProperty({__proto__:null,base8},Symbol.toStringTag,{value:"Module"})),base10=baseX({prefix:"9",name:"base10",alphabet:"0123456789"}),base10$1=Object.freeze(Object.defineProperty({__proto__:null,base10},Symbol.toStringTag,{value:"Module"})),base16=rfc4648({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),base16upper=rfc4648({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),base16$1=Object.freeze(Object.defineProperty({__proto__:null,base16,base16upper},Symbol.toStringTag,{value:"Module"})),base36=baseX({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),base36upper=baseX({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),base36$1=Object.freeze(Object.defineProperty({__proto__:null,base36,base36upper},Symbol.toStringTag,{value:"Module"})),base64=rfc4648({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),base64pad=rfc4648({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),base64url=rfc4648({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),base64urlpad=rfc4648({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),base64$1=Object.freeze(Object.defineProperty({__proto__:null,base64,base64pad,base64url,base64urlpad},Symbol.toStringTag,{value:"Module"})),alphabet=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),alphabetBytesToChars=alphabet.reduce((r,e,t)=>(r[t]=e,r),[]),alphabetCharsToBytes=alphabet.reduce((r,e,t)=>(r[e.codePointAt(0)]=t,r),[]);function encode(r){return r.reduce((e,t)=>(e+=alphabetBytesToChars[t],e),"")}function decode(r){const e=[];for(const t of r){const n=alphabetCharsToBytes[t.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${t}`);e.push(n)}return new Uint8Array(e)}const base256emoji=from$1({prefix:"🚀",name:"base256emoji",encode,decode}),base256emoji$1=Object.freeze(Object.defineProperty({__proto__:null,base256emoji},Symbol.toStringTag,{value:"Module"}));new TextEncoder;new TextDecoder;const bases={...identityBase,...base2$1,...base8$1,...base10$1,...base16$1,...base32$1,...base36$1,...base58,...base64$1,...base256emoji$1};function asUint8Array(r){return globalThis.Buffer!=null?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):r}function allocUnsafe(r=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?asUint8Array(globalThis.Buffer.allocUnsafe(r)):new Uint8Array(r)}function createCodec(r,e,t,n){return{name:r,prefix:e,encoder:{name:r,prefix:e,encode:t},decoder:{decode:n}}}const string=createCodec("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),ascii=createCodec("ascii","a",r=>{let e="a";for(let t=0;t{r=r.substring(1);const e=allocUnsafe(r.length);for(let t=0;to&&o!==".").join("/")),n.content){let o;typeof t.chunker=="function"?o=t.chunker:t.chunker==="rabin"?o=rabinChunker:o=fixedSizeChunker;let a;typeof t.chunkValidator=="function"?a=t.chunkValidator:a=validateChunks;const s={path:n.path,mtime:n.mtime,mode:n.mode,content:o(a(contentAsAsyncIterable(n.content),t),t)};yield()=>fileBuilder(s,e,t)}else if(n.path){const o={path:n.path,mtime:n.mtime,mode:n.mode};yield()=>dirBuilder(o,e,t)}else throw new Error("Import candidate must have content or path or both")}class Dir{constructor(e,t){this.options=t||{},this.root=e.root,this.dir=e.dir,this.path=e.path,this.dirty=e.dirty,this.flat=e.flat,this.parent=e.parent,this.parentKey=e.parentKey,this.unixfs=e.unixfs,this.mode=e.mode,this.mtime=e.mtime,this.cid=void 0,this.size=void 0}async put(e,t){}get(e){return Promise.resolve(this)}async*eachChildSeries(){}async*flush(e){}}class DirFlat extends Dir{constructor(e,t){super(e,t),this._children={}}async put(e,t){this.cid=void 0,this.size=void 0,this._children[e]=t}get(e){return Promise.resolve(this._children[e])}childCount(){return Object.keys(this._children).length}directChildrenCount(){return this.childCount()}onlyChild(){return this._children[Object.keys(this._children)[0]]}async*eachChildSeries(){const e=Object.keys(this._children);for(let t=0;th+(d.Tsize==null?0:d.Tsize),0);this.cid=l,this.size=f,yield{cid:l,unixfs:o,path:this.path,size:f}}}const BITS_PER_BYTE=7;var sparseArray=class{constructor(){this._bitArrays=[],this._data=[],this._length=0,this._changedLength=!1,this._changedData=!1}set(e,t){let n=this._internalPositionFor(e,!1);if(t===void 0)n!==-1&&(this._unsetInternalPos(n),this._unsetBit(e),this._changedLength=!0,this._changedData=!0);else{let o=!1;n===-1?(n=this._data.length,this._setBit(e),this._changedData=!0):o=!0,this._setInternalPos(n,e,t,o),this._changedLength=!0}}unset(e){this.set(e,void 0)}get(e){this._sortData();const t=this._internalPositionFor(e,!0);if(t!==-1)return this._data[t][1]}push(e){return this.set(this.length,e),this.length}get length(){if(this._sortData(),this._changedLength){const e=this._data[this._data.length-1];this._length=e?e[0]+1:0,this._changedLength=!1}return this._length}forEach(e){let t=0;for(;t=this._bitArrays.length)return-1;const o=this._bitArrays[n],a=e-n*BITS_PER_BYTE;if(!((o&1<0))return-1;const l=this._bitArrays.slice(0,n).reduce(popCountReduce,0),f=~(4294967295<=t)a.push(s);else if(a[0][0]<=t)a.unshift(s);else{const l=Math.round(a.length/2);this._data=a.slice(0,l).concat(s).concat(a.slice(l))}else this._data.push(s);this._changedData=!0,this._changedLength=!0}}_unsetInternalPos(e){this._data.splice(e,1)}_sortData(){this._changedData&&this._data.sort(sortInternal),this._changedData=!1}bitField(){const e=[];let t=8,n=0,o=0,a;const s=this._bitArrays.slice();for(;s.length||n;){n===0&&(a=s.shift(),n=7);const f=Math.min(n,t),h=~(255<>>f,n-=f,t-=f,(!t||!n&&!s.length)&&(e.push(o),o=0,t=8)}for(var l=e.length-1;l>0&&e[l]===0;l--)e.pop();return e}compactArray(){return this._sortData(),this._data.map(valueOnly)}};function popCountReduce(r,e){return r+popCount(e)}function popCount(r){let e=r;return e=e-(e>>1&1431655765),e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>24}function sortInternal(r,e){return r[0]-e[0]}function valueOnly(r){return r[1]}const require$$1$1=getAugmentedNamespace(fromString$1),SparseArray=sparseArray,{fromString:uint8ArrayFromString}=require$$1$1;let Bucket$1=class we{constructor(e,t,n=0){this._options=e,this._popCount=0,this._parent=t,this._posAtParent=n,this._children=new SparseArray,this.key=null}async put(e,t){const n=await this._findNewBucketAndPos(e);await n.bucket._putAt(n,e,t)}async get(e){const t=await this._findChild(e);if(t)return t.value}async del(e){const t=await this._findPlace(e),n=t.bucket._at(t.pos);n&&n.key===e&&t.bucket._delAt(t.pos)}leafCount(){return this._children.compactArray().reduce((t,n)=>n instanceof we?t+n.leafCount():t+1,0)}childrenCount(){return this._children.length}onlyChild(){return this._children.get(0)}*eachLeafSeries(){const e=this._children.compactArray();for(const t of e)t instanceof we?yield*t.eachLeafSeries():yield t;return[]}serialize(e,t){const n=[];return t(this._children.reduce((o,a,s)=>(a&&(a instanceof we?o.push(a.serialize(e,t)):o.push(e(a,s))),o),n))}asyncTransform(e,t){return asyncTransformBucket(this,e,t)}toJSON(){return this.serialize(mapNode,reduceNodes)}prettyPrint(){return JSON.stringify(this.toJSON(),null," ")}tableSize(){return Math.pow(2,this._options.bits)}async _findChild(e){const t=await this._findPlace(e),n=t.bucket._at(t.pos);if(!(n instanceof we)&&n&&n.key===e)return n}async _findPlace(e){const t=this._options.hash(typeof e=="string"?uint8ArrayFromString(e):e),n=await t.take(this._options.bits),o=this._children.get(n);return o instanceof we?o._findPlace(t):{bucket:this,pos:n,hash:t,existingChild:o}}async _findNewBucketAndPos(e){const t=await this._findPlace(e);if(t.existingChild&&t.existingChild.key!==e){const n=new we(this._options,t.bucket,t.pos);t.bucket._putObjectAt(t.pos,n);const o=await n._findPlace(t.existingChild.hash);return o.bucket._putAt(o,t.existingChild.key,t.existingChild.value),n._findNewBucketAndPos(t.hash)}return t}_putAt(e,t,n){this._putObjectAt(e.pos,{key:t,value:n,hash:e.hash})}_putObjectAt(e,t){this._children.get(e)||this._popCount++,this._children.set(e,t)}_delAt(e){if(e===-1)throw new Error("Invalid position");this._children.get(e)&&this._popCount--,this._children.unset(e),this._level()}_level(){if(this._parent&&this._popCount<=1)if(this._popCount===1){const e=this._children.find(exists);if(e&&!(e instanceof we)){const t=e.hash;t.untake(this._options.bits);const n={pos:this._posAtParent,hash:t,bucket:this._parent};this._parent._putAt(n,e.key,e.value)}}else this._parent._delAt(this._posAtParent)}_at(e){return this._children.get(e)}};function exists(r){return!!r}function mapNode(r,e){return r.key}function reduceNodes(r){return r}async function asyncTransformBucket(r,e,t){const n=[];for(const o of r._children.compactArray())if(o instanceof Bucket$1)await asyncTransformBucket(o,e,t);else{const a=await e(o);n.push({bitField:r._children.bitField(),children:a})}return t(n)}var bucket=Bucket$1,consumableHash={exports:{}};const START_MASKS=[255,254,252,248,240,224,192,128],STOP_MASKS=[1,3,7,15,31,63,127,255];var consumableBuffer=class{constructor(e){this._value=e,this._currentBytePos=e.length-1,this._currentBitPos=7}availableBits(){return this._currentBitPos+1+this._currentBytePos*8}totalBits(){return this._value.length*8}take(e){let t=e,n=0;for(;t&&this._haveBits();){const o=this._value[this._currentBytePos],a=this._currentBitPos+1,s=Math.min(a,t),l=byteBitsToInt(o,a-s,s);n=(n<7;)this._currentBitPos-=8,this._currentBytePos+=1}_haveBits(){return this._currentBytePos>=0}};function byteBitsToInt(r,e,t){const n=maskFor(e,t);return(r&n)>>>e}function maskFor(r,e){return START_MASKS[r]&STOP_MASKS[Math.min(e+r-1,7)]}function concat(r,e){e||(e=r.reduce((o,a)=>o+a.length,0));const t=allocUnsafe(e);let n=0;for(const o of r)t.set(o,n),n+=o.length;return asUint8Array(t)}const concat$1=Object.freeze(Object.defineProperty({__proto__:null,concat},Symbol.toStringTag,{value:"Module"})),require$$1=getAugmentedNamespace(concat$1),ConsumableBuffer=consumableBuffer,{concat:uint8ArrayConcat}=require$$1;function wrapHash$1(r){function e(t){return t instanceof InfiniteHash?t:new InfiniteHash(t,r)}return e}class InfiniteHash{constructor(e,t){if(!(e instanceof Uint8Array))throw new Error("can only hash Uint8Arrays");this._value=e,this._hashFn=t,this._depth=-1,this._availableBits=0,this._currentBufferIndex=0,this._buffers=[]}async take(e){let t=e;for(;this._availableBits0;){const o=this._buffers[this._currentBufferIndex],a=Math.min(o.availableBits(),t),s=o.take(a);n=(n<0;){const n=this._buffers[this._currentBufferIndex],o=Math.min(n.totalBits()-n.availableBits(),t);n.untake(o),t-=o,this._availableBits+=o,this._currentBufferIndex>0&&n.totalBits()===n.availableBits()&&(this._depth--,this._currentBufferIndex--)}}async _produceMoreBits(){this._depth++;const e=this._depth?uint8ArrayConcat([this._value,Uint8Array.from([this._depth])]):this._value,t=await this._hashFn(e),n=new ConsumableBuffer(t);this._buffers.push(n),this._availableBits+=n.availableBits()}}consumableHash.exports=wrapHash$1;consumableHash.exports.InfiniteHash=InfiniteHash;var consumableHashExports=consumableHash.exports;const Bucket=bucket,wrapHash=consumableHashExports;function createHAMT(r){if(!r||!r.hashFn)throw new Error("please define an options.hashFn");const e={bits:r.bits||8,hash:wrapHash(r.hashFn)};return new Bucket(e)}var src$1={createHAMT,Bucket};class DirSharded extends Dir{constructor(e,t){super(e,t),this._bucket=src$1.createHAMT({hashFn:t.hamtHashFn,bits:t.hamtBucketBits})}async put(e,t){await this._bucket.put(e,t)}get(e){return this._bucket.get(e)}childCount(){return this._bucket.leafCount()}directChildrenCount(){return this._bucket.childrenCount()}onlyChild(){return this._bucket.onlyChild()}async*eachChildSeries(){for await(const{key:e,value:t}of this._bucket.eachLeafSeries())yield{key:e,child:t}}async*flush(e){for await(const t of flush(this._bucket,e,this,this.options))yield{...t,path:this.path}}}async function*flush(r,e,t,n){const o=r._children,a=[];let s=0;for(let w=0;w=t&&(o=await convertToShard(e,n));const a=o.parent;if(a){if(o!==e){if(r&&(r.parent=o),!o.parentKey)throw new Error("No parent key found");await a.put(o.parentKey,o)}return flatToShard(o,a,t,n)}return o}async function convertToShard(r,e){const t=new DirSharded({root:r.root,dir:!0,parent:r.parent,parentKey:r.parentKey,path:r.path,dirty:r.dirty,flat:!1,mtime:r.mtime,mode:r.mode},e);for await(const{key:n,child:o}of r.eachChildSeries())await t.put(n,o);return t}const toPathComponents=(r="")=>(r.trim().match(/([^\\/]|\\\/)+/g)||[]).filter(Boolean);async function addToTree(r,e,t){const n=toPathComponents(r.path||""),o=n.length-1;let a=e,s="";for(let l=0;le.next(),push:o=>{n.push(o)},next:()=>n.length?{done:!1,value:n.shift()}:e.next(),[t](){return this}}}var itPeekable=peekableIterator;const itPeekable$1=getDefaultExportFromCjs(itPeekable),map=async function*(r,e){for await(const t of r)yield e(t)};var itMap=map;const map$1=getDefaultExportFromCjs(itMap);function isBytes$1(r){return ArrayBuffer.isView(r)||r instanceof ArrayBuffer}function isBlob$2(r){return r.constructor&&(r.constructor.name==="Blob"||r.constructor.name==="File")&&typeof r.stream=="function"}function isFileObject(r){return typeof r=="object"&&(r.path||r.content)}const isReadableStream=r=>r&&typeof r.getReader=="function";async function*toAsyncIterable(r){yield r}async function normaliseContent(r){if(isBytes$1(r))return toAsyncIterable(toBytes(r));if(typeof r=="string"||r instanceof String)return toAsyncIterable(toBytes(r.toString()));if(isBlob$2(r))return blobToIt$1(r);if(isReadableStream(r)&&(r=browserStreamToIt(r)),Symbol.iterator in r||Symbol.asyncIterator in r){const e=itPeekable$1(r),{value:t,done:n}=await e.peek();if(n)return toAsyncIterable(new Uint8Array(0));if(e.push(t),Number.isInteger(t))return toAsyncIterable(Uint8Array.from(await all$1(e)));if(isBytes$1(t)||typeof t=="string"||t instanceof String)return map$1(e,toBytes)}throw errCode$1(new Error(`Unexpected input: ${r}`),"ERR_UNEXPECTED_INPUT")}function toBytes(r){return r instanceof Uint8Array?r:ArrayBuffer.isView(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):r instanceof ArrayBuffer?new Uint8Array(r):Array.isArray(r)?Uint8Array.from(r):fromString(r.toString())}async function*normaliseCandidateSingle(r,e){if(r==null)throw errCode$1(new Error(`Unexpected input: ${r}`),"ERR_UNEXPECTED_INPUT");if(typeof r=="string"||r instanceof String){yield toFileObject$1(r.toString(),e);return}if(isBytes$1(r)||isBlob$2(r)){yield toFileObject$1(r,e);return}if(isReadableStream(r)&&(r=browserStreamToIt(r)),Symbol.iterator in r||Symbol.asyncIterator in r){const t=itPeekable$1(r),{value:n,done:o}=await t.peek();if(o){yield{content:[]};return}if(t.push(n),Number.isInteger(n)||isBytes$1(n)||typeof n=="string"||n instanceof String){yield toFileObject$1(t,e);return}throw errCode$1(new Error("Unexpected input: multiple items passed - if you are using ipfs.add, please use ipfs.addAll instead"),"ERR_UNEXPECTED_INPUT")}if(isFileObject(r)){yield toFileObject$1(r,e);return}throw errCode$1(new Error('Unexpected input: cannot convert "'+typeof r+'" into ImportCandidate'),"ERR_UNEXPECTED_INPUT")}async function toFileObject$1(r,e){const{path:t,mode:n,mtime:o,content:a}=r,s={path:t||"",mode:parseMode(n),mtime:parseMtime(o)};return a?s.content=await e(a):t||(s.content=await e(r)),s}function normaliseInput$1(r){return normaliseCandidateSingle(r,normaliseContent)}async function*normaliseCandidateMultiple(r,e){if(typeof r=="string"||r instanceof String||isBytes$1(r)||isBlob$2(r)||r._readableState)throw errCode$1(new Error("Unexpected input: single item passed - if you are using ipfs.addAll, please use ipfs.add instead"),"ERR_UNEXPECTED_INPUT");if(isReadableStream(r)&&(r=browserStreamToIt(r)),Symbol.iterator in r||Symbol.asyncIterator in r){const t=itPeekable$1(r),{value:n,done:o}=await t.peek();if(o){yield*[];return}if(t.push(n),Number.isInteger(n))throw errCode$1(new Error("Unexpected input: single item passed - if you are using ipfs.addAll, please use ipfs.add instead"),"ERR_UNEXPECTED_INPUT");if(n._readableState){yield*map$1(t,a=>toFileObject({content:a},e));return}if(isBytes$1(n)){yield toFileObject({content:t},e);return}if(isFileObject(n)||n[Symbol.iterator]||n[Symbol.asyncIterator]||isReadableStream(n)||isBlob$2(n)){yield*map$1(t,a=>toFileObject(a,e));return}}throw isFileObject(r)?errCode$1(new Error("Unexpected input: single item passed - if you are using ipfs.addAll, please use ipfs.add instead"),"ERR_UNEXPECTED_INPUT"):errCode$1(new Error("Unexpected input: "+typeof r),"ERR_UNEXPECTED_INPUT")}async function toFileObject(r,e){const{path:t,mode:n,mtime:o,content:a}=r,s={path:t||"",mode:parseMode(n),mtime:parseMtime(o)};return a?s.content=await e(a):t||(s.content=await e(r)),s}function normaliseInput(r){return normaliseCandidateMultiple(r,normaliseContent)}function isBytes(r){return ArrayBuffer.isView(r)||r instanceof ArrayBuffer}function isBlob$1(r){return!!r.constructor&&(r.constructor.name==="Blob"||r.constructor.name==="File")&&typeof r.stream=="function"}function isSingle(r){return typeof r=="string"||r instanceof String||isBytes(r)||isBlob$1(r)||"_readableState"in r}function getNormaliser(r){return isSingle(r)?normaliseInput$1(r):normaliseInput(r)}const drain=async r=>{for await(const e of r);};var itDrain=drain;const drain$1=getDefaultExportFromCjs(itDrain),filter=async function*(r,e){for await(const t of r)await e(t)&&(yield t)};var itFilter=filter;const filter$1=getDefaultExportFromCjs(itFilter),take=async function*(r,e){let t=0;if(!(e<1)){for await(const n of r)if(yield n,t++,t===e)return}};var itTake=take;const take$1=getDefaultExportFromCjs(itTake),sortAll=(r,e)=>async function*(){yield*(await all$1(r)).sort(e)}();class BaseBlockstore{open(){return Promise.reject(new Error(".open is not implemented"))}close(){return Promise.reject(new Error(".close is not implemented"))}put(e,t,n){return Promise.reject(new Error(".put is not implemented"))}get(e,t){return Promise.reject(new Error(".get is not implemented"))}has(e,t){return Promise.reject(new Error(".has is not implemented"))}delete(e,t){return Promise.reject(new Error(".delete is not implemented"))}async*putMany(e,t={}){for await(const{key:n,value:o}of e)await this.put(n,o,t),yield{key:n,value:o}}async*getMany(e,t={}){for await(const n of e)yield this.get(n,t)}async*deleteMany(e,t={}){for await(const n of e)await this.delete(n,t),yield n}batch(){let e=[],t=[];return{put(n,o){e.push({key:n,value:o})},delete(n){t.push(n)},commit:async n=>{await drain$1(this.putMany(e,n)),e=[],await drain$1(this.deleteMany(t,n)),t=[]}}}async*_all(e,t){throw new Error("._all is not implemented")}async*_allKeys(e,t){throw new Error("._allKeys is not implemented")}query(e,t){let n=this._all(e,t);if(e.prefix!=null&&(n=filter$1(n,o=>o.key.toString().startsWith(e.prefix||""))),Array.isArray(e.filters)&&(n=e.filters.reduce((o,a)=>filter$1(o,a),n)),Array.isArray(e.orders)&&(n=e.orders.reduce((o,a)=>sortAll(o,a),n)),e.offset!=null){let o=0;n=filter$1(n,()=>o++>=(e.offset||0))}return e.limit!=null&&(n=take$1(n,e.limit)),n}queryKeys(e,t){let n=this._allKeys(e,t);if(e.prefix!=null&&(n=filter$1(n,o=>o.toString().startsWith(e.prefix||""))),Array.isArray(e.filters)&&(n=e.filters.reduce((o,a)=>filter$1(o,a),n)),Array.isArray(e.orders)&&(n=e.orders.reduce((o,a)=>sortAll(o,a),n)),e.offset!=null){let o=0;n=filter$1(n,()=>o++>=e.offset)}return e.limit!=null&&(n=take$1(n,e.limit)),n}}class MemoryBlockStore extends BaseBlockstore{constructor(){super(),this.store=new Map}async*blocks(){for(const[e,t]of this.store.entries())yield{cid:CID.parse(e),bytes:t}}put(e,t){return this.store.set(e.toString(),t),Promise.resolve()}get(e){const t=this.store.get(e.toString());if(!t)throw new Error(`block with cid ${e.toString()} no found`);return Promise.resolve(t)}has(e){return Promise.resolve(this.store.has(e.toString()))}close(){return this.store.clear(),Promise.resolve()}}const unixfsImporterOptionsDefault={cidVersion:1,chunker:"fixed",maxChunkSize:262144,hasher:sha256,rawLeaves:!0,wrapWithDirectory:!0,maxChildrenPerNode:174};async function pack({input:r,blockstore:e,hasher:t,maxChunkSize:n,maxChildrenPerNode:o,wrapWithDirectory:a,rawLeaves:s}){if(!r||Array.isArray(r)&&!r.length)throw new Error("missing input file(s)");const l=e||new MemoryBlockStore,f=await last$1(pipe$1(getNormaliser(r),v=>importer(v,l,{...unixfsImporterOptionsDefault,hasher:t||unixfsImporterOptionsDefault.hasher,maxChunkSize:n||unixfsImporterOptionsDefault.maxChunkSize,maxChildrenPerNode:o||unixfsImporterOptionsDefault.maxChildrenPerNode,wrapWithDirectory:a===!1?!1:unixfsImporterOptionsDefault.wrapWithDirectory,rawLeaves:s??unixfsImporterOptionsDefault.rawLeaves})));if(!f||!f.cid)throw new Error("given input could not be parsed correctly");const h=f.cid,{writer:d,out:m}=await CarWriter.create([h]),b=m[Symbol.asyncIterator]();let w;const _=async()=>{for await(const v of l.blocks())await d.put(v);await d.close(),e||await l.close()},y={[Symbol.asyncIterator](){if(w!=null)throw new Error("Multiple iterator not supported");return w=_(),{async next(){const v=await b.next();return v.done&&await w,v}}}};return{root:h,out:y}}var throttledQueue$1={exports:{}};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0});function t(n,o,a){a===void 0&&(a=!1),a&&(o=o/n,n=1);var s=[],l=0,f=0,h,d=function(){var m=l+o,b=Date.now();if(bo&&(l=y,f=0),f++{const t=e.gateway||GATEWAY;return r=new URL(String(r)),r.protocol==="ipfs:"?new URL(`/ipfs/${r.href.slice(7)}`,t):r};class BlockstoreCarReader{constructor(e,t,n){this._version=e,this._roots=t,this._blockstore=n}get version(){return this._version}get blockstore(){return this._blockstore}async getRoots(){return this._roots}has(e){return this._blockstore.has(e)}async get(e){const t=await this._blockstore.get(e);return{cid:e,bytes:t}}blocks(){return this._blockstore.blocks()}async*cids(){for await(const e of this.blocks())yield e.cid}}class Token{constructor(e,t,n){this.ipnft=e,this.url=t,this.data=n,Object.defineProperties(this,{ipnft:{enumerable:!0,writable:!1},url:{enumerable:!0,writable:!1},data:{enumerable:!1,writable:!1}})}embed(){return Token.embed(this)}static embed({data:e}){return embed(e,{gateway:GATEWAY})}static async encode(e){var h,d;const t=new Blockstore,[n,o]=mapTokenInputBlobs(e),a=JSON.parse(JSON.stringify(o)),s=JSON.parse(JSON.stringify(o));for(const[m,b]of n.entries()){const w=b.name||"blob";let _;parseInt((d=(h=globalThis.process)==null?void 0:h.versions)==null?void 0:d.node)>18?_=new Uint8Array(await b.arrayBuffer()):_=b.stream();const{root:y}=await pack({input:[{path:w,content:_}],blockstore:t,wrapWithDirectory:!0}),v=new URL(`ipfs://${y}/${w}`),A=m.split(".");setIn(a,A,v),setIn(s,A,y)}const{root:l}=await pack({input:[{path:"metadata.json",content:JSON.stringify(a)}],blockstore:t,wrapWithDirectory:!1}),f=await encode$4({value:{...s,"metadata.json":l,type:"nft"},codec:dagCbor,hasher:sha256});return await t.put(f.cid,f.bytes),{cid:f.cid,token:new Token(f.cid.toString(),`ipfs://${f.cid}/metadata.json`,a),car:new BlockstoreCarReader(1,[f.cid],t)}}}const embed=(r,e)=>mapWith(r,isURL,embedURL,e),isURL=r=>r instanceof URL,embedURL=(r,e)=>[r,toGatewayURL(e,r)],isObject=r=>typeof r=="object"&&r!=null,encodeBlob=(r,e,t)=>(r.set(t.join("."),e),[r,void 0]),isBlob=r=>r instanceof Blob$1,mapTokenInputBlobs=r=>mapValueWith(r,isBlob,encodeBlob,new Map,[]),mapWith=(r,e,t,n)=>{const[,o]=mapValueWith(r,e,t,n,[]);return o},mapValueWith=(r,e,t,n,o)=>e(r,n,o)?t(n,r,o):Array.isArray(r)?mapArrayWith(r,e,t,n,o):isObject(r)?mapObjectWith(r,e,t,n,o):[n,r],mapObjectWith=(r,e,t,n,o)=>{let a=n;const s={};for(const[l,f]of Object.entries(r)){const[h,d]=mapValueWith(f,e,t,a,[...o,l]);s[l]=d,a=h}return[a,s]},mapArrayWith=(r,e,t,n,o)=>{const a=[];let s=n;for(const[l,f]of r.entries()){const[h,d]=mapValueWith(f,e,t,s,[...o,l]);a[l]=d,s=h}return[s,a]},setIn=(r,e,t)=>{const n=e.length-1;let o=r;for(let[a,s]of e.entries())a===n?o[s]=t:o=o[s]},MAX_STORE_RETRIES=5,MAX_CONCURRENT_UPLOADS=3,MAX_CHUNK_SIZE=1024*1024*50,RATE_LIMIT_REQUESTS=30,RATE_LIMIT_PERIOD=10*1e3;function createRateLimiter(){const r=throttledQueue(RATE_LIMIT_REQUESTS,RATE_LIMIT_PERIOD);return()=>r(()=>{})}const globalRateLimiter=createRateLimiter();class NFTStorage{constructor({token:e,did:t,endpoint:n=new URL("https://api.nft.storage"),rateLimiter:o}){this.token=e,this.endpoint=n,this.rateLimiter=o||createRateLimiter(),this.did=t}static auth({token:e,did:t}){if(!e)throw new Error("missing token");return{Authorization:`Bearer ${e}`,"X-Client":"nft.storage/js",...t?{"x-agent-did":t}:{}}}static async storeBlob(e,t,n){const o=new Blockstore;let a;try{const{cid:s,car:l}=await NFTStorage.encodeBlob(t,{blockstore:o});await NFTStorage.storeCar(e,l,n),a=s.toString()}finally{await o.close()}return a}static async storeCar({endpoint:e,rateLimiter:t=globalRateLimiter,...n},o,{onStoredChunk:a,maxRetries:s,maxChunkSize:l,decoders:f,signal:h}={}){const d=new URL("upload/",e),m={...NFTStorage.auth(n),"Content-Type":"application/car"},b=l||MAX_CHUNK_SIZE,w=o instanceof Blob$1?await TreewalkCarSplitter.fromBlob(o,b,{decoders:f}):new TreewalkCarSplitter(o,b,{decoders:f}),_=transform$1(MAX_CONCURRENT_UPLOADS,async function(v){var x,S;const A=[];for await(const O of v)A.push(O);const L=new Blob$1(A,{type:"application/car"});let D=L;parseInt((S=(x=globalThis.process)==null?void 0:x.versions)==null?void 0:S.node)>18&&(D=await D.arrayBuffer());const B=await pRetry$1(async()=>{await t();let O;try{O=await fetch$1(d.toString(),{method:"POST",headers:m,body:D,signal:h})}catch(k){throw h&&h.aborted?new AbortError_1(k):k}if(O.status===429)throw new Error("rate limited");const N=await O.json();if(!N.ok)throw O.status===401?new AbortError_1(N.error.message):new Error(N.error.message);return N.value.cid},{retries:s??MAX_STORE_RETRIES});return a&&a(L.size),B});let y;for await(const v of _(w.cars()))y=v;return y}static async storeDirectory(e,t,n){const o=new Blockstore;let a;try{const{cid:s,car:l}=await NFTStorage.encodeDirectory(t,{blockstore:o});await NFTStorage.storeCar(e,l,n),a=s.toString()}finally{await o.close()}return a}static async store(e,t,n){const{token:o,car:a}=await NFTStorage.encodeNFT(t);return await NFTStorage.storeCar(e,a,n),o}static async status({endpoint:e,rateLimiter:t=globalRateLimiter,...n},o,a){const s=new URL(`${o}/`,e);await t();const l=await fetch$1(s.toString(),{method:"GET",headers:NFTStorage.auth(n),signal:a&&a.signal});if(l.status===429)throw new Error("rate limited");const f=await l.json();if(f.ok)return{cid:f.value.cid,deals:decodeDeals(f.value.deals),size:f.value.size,pin:decodePin(f.value.pin),created:new Date(f.value.created)};throw new Error(f.error.message)}static async check({endpoint:e,rateLimiter:t=globalRateLimiter},n,o){const a=new URL(`check/${n}/`,e);await t();const s=await fetch$1(a.toString(),{signal:o&&o.signal});if(s.status===429)throw new Error("rate limited");const l=await s.json();if(l.ok)return{cid:l.value.cid,deals:decodeDeals(l.value.deals),pin:l.value.pin};throw new Error(l.error.message)}static async delete({endpoint:e,rateLimiter:t=globalRateLimiter,...n},o,a){const s=new URL(`${o}/`,e);await t();const l=await fetch$1(s.toString(),{method:"DELETE",headers:NFTStorage.auth(n),signal:a&&a.signal});if(l.status===429)throw new Error("rate limited");const f=await l.json();if(!f.ok)throw new Error(f.error.message)}static async encodeNFT(e){return validateERC1155(e),Token.encode(e)}static async encodeBlob(e,{blockstore:t}={}){if(e.size===0)throw new Error("Content size is 0, make sure to provide some content");return packCar([toImportCandidate("blob",e)],{blockstore:t,wrapWithDirectory:!1})}static async encodeDirectory(e,{blockstore:t}={}){let n=0;const o=pipe$1(e,async function*(s){for await(const l of s)yield toImportCandidate(l.name,l),n+=l.size}),a=await packCar(o,{blockstore:t,wrapWithDirectory:!0});if(n===0)throw new Error("Total size of files should exceed 0, make sure to provide some content");return a}storeBlob(e,t){return NFTStorage.storeBlob(this,e,t)}storeCar(e,t){return NFTStorage.storeCar(this,e,t)}storeDirectory(e,t){return NFTStorage.storeDirectory(this,e,t)}status(e,t){return NFTStorage.status(this,e,t)}delete(e,t){return NFTStorage.delete(this,e,t)}check(e,t){return NFTStorage.check(this,e,t)}store(e,t){return NFTStorage.store(this,e,t)}}const validateERC1155=({name:r,description:e,image:t,decimals:n})=>{if(typeof r!="string")throw new TypeError("string property `name` identifying the asset is required");if(typeof e!="string")throw new TypeError("string property `description` describing asset is required");if(t instanceof Blob$1)t.type.startsWith("image/")||console.warn(`According to ERC721 Metadata JSON Schema 'image' must have 'image/*' mime type. - -For better interoperability we would highly recommend storing content with different mime type under 'properties' namespace e.g. \`properties: { video: file }\` and using 'image' field for storing a preview image for it instead. - -For more context please see ERC-721 specification https://eips.ethereum.org/EIPS/eip-721`);else throw new TypeError("property `image` must be a Blob or File object");if(typeof n<"u"&&typeof n!="number")throw new TypeError("property `decimals` must be an integer value")},packCar=async(r,{blockstore:e,wrapWithDirectory:t}={})=>{e=e||new Blockstore;const{root:n}=await pack({input:r,blockstore:e,wrapWithDirectory:t}),o=new BlockstoreCarReader(1,[n],e);return{cid:n,car:o}},decodeDeals=r=>r.map(e=>{const{dealActivation:t,dealExpiration:n,lastChanged:o}={dealExpiration:null,dealActivation:null,...e};return{...e,lastChanged:new Date(o),...t&&{dealActivation:new Date(t)},...n&&{dealExpiration:new Date(n)}}}),decodePin=r=>({...r,created:new Date(r.created)});function toImportCandidate(r,e){let t;return{path:r,get content(){return t=t||e.stream(),t}}}const client=new NFTStorage({token:PUBLIC_NFT_STORAGE_API_KEY}),storeMetaData=async r=>{try{const e=JSON.stringify(r),t=new Blob([e],{type:"application/json"});return[await client.storeBlob(t),null]}catch(e){return console.error(e),[null,e]}},createReview=async r=>{try{let e="";jwtToken.subscribe(a=>e=a);const t={method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify(r)};return await(await fetch(`${PUBLIC_GATEWAY_URL}/delegateReviewCreation`,t)).json()}catch(e){return console.error(e),[null,e]}};function create_else_block$1(r){let e,t,n;return{c(){e=element("a"),t=element("h1"),n=text("Get Authenticated"),this.h()},l(o){e=claim_element(o,"A",{href:!0,class:!0});var a=children(e);t=claim_element(a,"H1",{});var s=children(t);n=claim_text(s,"Get Authenticated"),s.forEach(detach),a.forEach(detach),this.h()},h(){attr(e,"href","/Onboarding"),attr(e,"class","btn")},m(o,a){insert_hydration(o,e,a),append_hydration(e,t),append_hydration(t,n)},p:noop$2,d(o){o&&detach(e)}}}function create_if_block$2(r){let e,t,n,o,a,s,l,f,h,d,m,b,w,_,y,v,A,L,D,B,x,S,O,N,k,R,M,q,G,J,F,Y,Q,Ie,le,Oe,W,X,ne,ke,ie,Se,oe,ue,ee,Ce,Be,ae,ce,fe,K,te,ve,he,$e,se,ye,Z,Ee,de,re,pe,p,u,c,g,E,T,C,U,j,V,z,H,me,Le,ge,Re,_e,Pe,Ne,De,Te,Fe,Ue,Me;return{c(){e=element("h3"),t=text("Write Your Reviews Here"),n=space(),o=element("label"),a=text("URL"),s=space(),l=element("input"),f=space(),h=element("label"),d=text("CATEGORY"),m=space(),b=element("input"),w=space(),_=element("label"),y=text("RATING"),v=space(),A=element("input"),L=space(),D=element("label"),B=text("TITLE"),x=space(),S=element("input"),O=space(),N=element("label"),k=text("DESCRIPTION"),R=space(),M=element("textarea"),q=space(),G=element("label"),J=text("SITE TYPE"),F=space(),Y=element("select"),Q=element("option"),Ie=text("Pick a site type"),le=element("option"),Oe=text("Common Website"),W=element("option"),X=text("Social Media"),ne=element("option"),ke=text("Software"),ie=element("option"),Se=text("Wallet Address"),oe=element("option"),ue=text("Company"),ee=element("option"),Ce=text("DeFi Project"),Be=space(),ae=element("label"),ce=text("SITE TAG"),fe=space(),K=element("select"),te=element("option"),ve=text("Pick a site tag"),he=element("option"),$e=text("Scam"),se=element("option"),ye=text("Fake"),Z=element("option"),Ee=text("Stereotype"),de=element("option"),re=text("Hate"),pe=element("option"),p=text("Genuine"),u=space(),c=element("label"),g=text("SITE SAFETY"),E=space(),T=element("select"),C=element("option"),U=text("Pick a site safety"),j=element("option"),V=text("Safe"),z=element("option"),H=text("Phishing"),me=element("option"),Le=text("Adware"),ge=element("option"),Re=text("Malware"),_e=element("option"),Pe=text("Spyware"),Ne=space(),De=element("div"),Te=element("button"),Fe=text("Submit"),this.h()},l(I){e=claim_element(I,"H3",{class:!0});var P=children(e);t=claim_text(P,"Write Your Reviews Here"),P.forEach(detach),n=claim_space(I),o=claim_element(I,"LABEL",{for:!0,class:!0});var je=children(o);a=claim_text(je,"URL"),je.forEach(detach),s=claim_space(I),l=claim_element(I,"INPUT",{id:!0,type:!0,class:!0}),f=claim_space(I),h=claim_element(I,"LABEL",{for:!0,class:!0});var ze=children(h);d=claim_text(ze,"CATEGORY"),ze.forEach(detach),m=claim_space(I),b=claim_element(I,"INPUT",{id:!0,type:!0,class:!0}),w=claim_space(I),_=claim_element(I,"LABEL",{for:!0,class:!0});var He=children(_);y=claim_text(He,"RATING"),He.forEach(detach),v=claim_space(I),A=claim_element(I,"INPUT",{id:!0,type:!0,min:!0,max:!0,placeholder:!0,class:!0}),L=claim_space(I),D=claim_element(I,"LABEL",{for:!0,class:!0});var Ve=children(D);B=claim_text(Ve,"TITLE"),Ve.forEach(detach),x=claim_space(I),S=claim_element(I,"INPUT",{id:!0,type:!0,placeholder:!0,class:!0}),O=claim_space(I),N=claim_element(I,"LABEL",{for:!0,class:!0});var We=children(N);k=claim_text(We,"DESCRIPTION"),We.forEach(detach),R=claim_space(I),M=claim_element(I,"TEXTAREA",{id:!0,placeholder:!0,class:!0}),children(M).forEach(detach),q=claim_space(I),G=claim_element(I,"LABEL",{for:!0,class:!0});var Ge=children(G);J=claim_text(Ge,"SITE TYPE"),Ge.forEach(detach),F=claim_space(I),Y=claim_element(I,"SELECT",{id:!0,class:!0});var be=children(Y);Q=claim_element(be,"OPTION",{});var qe=children(Q);Ie=claim_text(qe,"Pick a site type"),qe.forEach(detach),le=claim_element(be,"OPTION",{});var Ye=children(le);Oe=claim_text(Ye,"Common Website"),Ye.forEach(detach),W=claim_element(be,"OPTION",{});var Ke=children(W);X=claim_text(Ke,"Social Media"),Ke.forEach(detach),ne=claim_element(be,"OPTION",{});var Ze=children(ne);ke=claim_text(Ze,"Software"),Ze.forEach(detach),ie=claim_element(be,"OPTION",{});var Xe=children(ie);Se=claim_text(Xe,"Wallet Address"),Xe.forEach(detach),oe=claim_element(be,"OPTION",{});var Je=children(oe);ue=claim_text(Je,"Company"),Je.forEach(detach),ee=claim_element(be,"OPTION",{});var Qe=children(ee);Ce=claim_text(Qe,"DeFi Project"),Qe.forEach(detach),be.forEach(detach),Be=claim_space(I),ae=claim_element(I,"LABEL",{for:!0,class:!0});var et=children(ae);ce=claim_text(et,"SITE TAG"),et.forEach(detach),fe=claim_space(I),K=claim_element(I,"SELECT",{id:!0,class:!0});var Ae=children(K);te=claim_element(Ae,"OPTION",{});var tt=children(te);ve=claim_text(tt,"Pick a site tag"),tt.forEach(detach),he=claim_element(Ae,"OPTION",{});var rt=children(he);$e=claim_text(rt,"Scam"),rt.forEach(detach),se=claim_element(Ae,"OPTION",{});var nt=children(se);ye=claim_text(nt,"Fake"),nt.forEach(detach),Z=claim_element(Ae,"OPTION",{});var it=children(Z);Ee=claim_text(it,"Stereotype"),it.forEach(detach),de=claim_element(Ae,"OPTION",{});var ot=children(de);re=claim_text(ot,"Hate"),ot.forEach(detach),pe=claim_element(Ae,"OPTION",{});var at=children(pe);p=claim_text(at,"Genuine"),at.forEach(detach),Ae.forEach(detach),u=claim_space(I),c=claim_element(I,"LABEL",{for:!0,class:!0});var st=children(c);g=claim_text(st,"SITE SAFETY"),st.forEach(detach),E=claim_space(I),T=claim_element(I,"SELECT",{id:!0,class:!0});var xe=children(T);C=claim_element(xe,"OPTION",{});var lt=children(C);U=claim_text(lt,"Pick a site safety"),lt.forEach(detach),j=claim_element(xe,"OPTION",{});var ut=children(j);V=claim_text(ut,"Safe"),ut.forEach(detach),z=claim_element(xe,"OPTION",{});var ct=children(z);H=claim_text(ct,"Phishing"),ct.forEach(detach),me=claim_element(xe,"OPTION",{});var ft=children(me);Le=claim_text(ft,"Adware"),ft.forEach(detach),ge=claim_element(xe,"OPTION",{});var ht=children(ge);Re=claim_text(ht,"Malware"),ht.forEach(detach),_e=claim_element(xe,"OPTION",{});var dt=children(_e);Pe=claim_text(dt,"Spyware"),dt.forEach(detach),xe.forEach(detach),Ne=claim_space(I),De=claim_element(I,"DIV",{class:!0});var pt=children(De);Te=claim_element(pt,"BUTTON",{class:!0});var yt=children(Te);Fe=claim_text(yt,"Submit"),yt.forEach(detach),pt.forEach(detach),this.h()},h(){attr(e,"class","font-bold text-2xl mt-5"),attr(o,"for","websiteUrl"),attr(o,"class","text-md mt-5 mb-3 block"),attr(l,"id","websiteUrl"),attr(l,"type","text"),l.value=r[3],attr(l,"class","input input-bordered input-success dark:bg-gray-900 dark:text-white dark:border-zinc-600 input-md w-full max-w-xs"),l.disabled=!0,attr(h,"for","category"),attr(h,"class","text-md mt-3 mb-3 hidden"),attr(b,"id","category"),attr(b,"type","text"),b.value="Website",attr(b,"class","input input-bordered input-success dark:bg-gray-900 dark:text-white dark:border-zinc-600 input-md w-full max-w-xs hidden"),b.disabled=!0,attr(_,"for","rating"),attr(_,"class","text-md mt-3 mb-3 block"),attr(A,"id","rating"),attr(A,"type","number"),attr(A,"min",0),attr(A,"max",10),attr(A,"placeholder","rating"),attr(A,"class","textarea textarea-success dark:bg-gray-900 dark:text-white dark:border-zinc-600 input-md w-full max-w-xs"),A.required=!0,attr(D,"for","title"),attr(D,"class","text-md mt-5 mb-3 block"),attr(S,"id","title"),attr(S,"type","text"),attr(S,"placeholder","TITLE"),attr(S,"class","input input-bordered input-success dark:bg-gray-900 dark:text-white dark:border-zinc-600 input-md w-full max-w-xs"),S.required=!0,attr(N,"for","description"),attr(N,"class","text-md mt-3 mb-3 block"),attr(M,"id","description"),attr(M,"placeholder","DESCRIPTION"),attr(M,"class","textarea textarea-success dark:bg-gray-900 dark:text-white dark:border-zinc-600 input-md w-full max-w-xs"),M.required=!0,attr(G,"for","siteType"),attr(G,"class","text-md mt-3 mb-3 block"),Q.disabled=!0,Q.selected=!0,Q.__value="Pick a site type",Q.value=Q.__value,le.__value="common website",le.value=le.__value,W.__value="social media",W.value=W.__value,ne.__value="software",ne.value=ne.__value,ie.__value="wallet address",ie.value=ie.__value,oe.__value="company",oe.value=oe.__value,ee.__value="defi project",ee.value=ee.__value,attr(Y,"id","siteType"),attr(Y,"class","select select-success w-full max-w-xs dark:bg-gray-900 dark:text-white dark:border-zinc-600"),Y.required=!0,r[6]===void 0&&add_render_callback(()=>r[17].call(Y)),attr(ae,"for","siteTag"),attr(ae,"class","text-md mt-3 mb-3 block"),te.disabled=!0,te.selected=!0,te.__value="Pick a site tag",te.value=te.__value,he.__value="scam",he.value=he.__value,se.__value="fake",se.value=se.__value,Z.__value="stereotype",Z.value=Z.__value,de.__value="hate",de.value=de.__value,pe.__value="genuine",pe.value=pe.__value,attr(K,"id","siteTag"),attr(K,"class","select select-success w-full max-w-xs dark:bg-gray-900 dark:text-white dark:border-zinc-600"),K.required=!0,r[4]===void 0&&add_render_callback(()=>r[18].call(K)),attr(c,"for","siteSafety"),attr(c,"class","text-md mt-3 mb-3 block"),C.disabled=!0,C.selected=!0,C.__value="Pick a site safety",C.value=C.__value,j.__value="safe",j.value=j.__value,z.__value="phishing",z.value=z.__value,me.__value="adware",me.value=me.__value,ge.__value="malware",ge.value=ge.__value,_e.__value="spyware",_e.value=_e.__value,attr(T,"id","siteSafety"),attr(T,"class","select select-success w-full max-w-xs dark:bg-gray-900 dark:text-white dark:border-zinc-600"),T.required=!0,r[5]===void 0&&add_render_callback(()=>r[19].call(T)),attr(Te,"class","btn"),attr(De,"class","modal-action")},m(I,P){insert_hydration(I,e,P),append_hydration(e,t),insert_hydration(I,n,P),insert_hydration(I,o,P),append_hydration(o,a),insert_hydration(I,s,P),insert_hydration(I,l,P),insert_hydration(I,f,P),insert_hydration(I,h,P),append_hydration(h,d),insert_hydration(I,m,P),insert_hydration(I,b,P),insert_hydration(I,w,P),insert_hydration(I,_,P),append_hydration(_,y),insert_hydration(I,v,P),insert_hydration(I,A,P),set_input_value(A,r[9]),insert_hydration(I,L,P),insert_hydration(I,D,P),append_hydration(D,B),insert_hydration(I,x,P),insert_hydration(I,S,P),set_input_value(S,r[1]),insert_hydration(I,O,P),insert_hydration(I,N,P),append_hydration(N,k),insert_hydration(I,R,P),insert_hydration(I,M,P),set_input_value(M,r[2]),insert_hydration(I,q,P),insert_hydration(I,G,P),append_hydration(G,J),insert_hydration(I,F,P),insert_hydration(I,Y,P),append_hydration(Y,Q),append_hydration(Q,Ie),append_hydration(Y,le),append_hydration(le,Oe),append_hydration(Y,W),append_hydration(W,X),append_hydration(Y,ne),append_hydration(ne,ke),append_hydration(Y,ie),append_hydration(ie,Se),append_hydration(Y,oe),append_hydration(oe,ue),append_hydration(Y,ee),append_hydration(ee,Ce),select_option(Y,r[6],!0),insert_hydration(I,Be,P),insert_hydration(I,ae,P),append_hydration(ae,ce),insert_hydration(I,fe,P),insert_hydration(I,K,P),append_hydration(K,te),append_hydration(te,ve),append_hydration(K,he),append_hydration(he,$e),append_hydration(K,se),append_hydration(se,ye),append_hydration(K,Z),append_hydration(Z,Ee),append_hydration(K,de),append_hydration(de,re),append_hydration(K,pe),append_hydration(pe,p),select_option(K,r[4],!0),insert_hydration(I,u,P),insert_hydration(I,c,P),append_hydration(c,g),insert_hydration(I,E,P),insert_hydration(I,T,P),append_hydration(T,C),append_hydration(C,U),append_hydration(T,j),append_hydration(j,V),append_hydration(T,z),append_hydration(z,H),append_hydration(T,me),append_hydration(me,Le),append_hydration(T,ge),append_hydration(ge,Re),append_hydration(T,_e),append_hydration(_e,Pe),select_option(T,r[5],!0),insert_hydration(I,Ne,P),insert_hydration(I,De,P),append_hydration(De,Te),append_hydration(Te,Fe),Ue||(Me=[listen(A,"input",r[14]),listen(S,"input",r[15]),listen(M,"input",r[16]),listen(Y,"change",r[17]),listen(K,"change",r[18]),listen(T,"change",r[19]),listen(Te,"click",r[10])],Ue=!0)},p(I,P){P&8&&l.value!==I[3]&&(l.value=I[3]),P&512&&to_number(A.value)!==I[9]&&set_input_value(A,I[9]),P&2&&S.value!==I[1]&&set_input_value(S,I[1]),P&4&&set_input_value(M,I[2]),P&64&&select_option(Y,I[6]),P&16&&select_option(K,I[4]),P&32&&select_option(T,I[5])},d(I){I&&detach(e),I&&detach(n),I&&detach(o),I&&detach(s),I&&detach(l),I&&detach(f),I&&detach(h),I&&detach(m),I&&detach(b),I&&detach(w),I&&detach(_),I&&detach(v),I&&detach(A),I&&detach(L),I&&detach(D),I&&detach(x),I&&detach(S),I&&detach(O),I&&detach(N),I&&detach(R),I&&detach(M),I&&detach(q),I&&detach(G),I&&detach(F),I&&detach(Y),I&&detach(Be),I&&detach(ae),I&&detach(fe),I&&detach(K),I&&detach(u),I&&detach(c),I&&detach(E),I&&detach(T),I&&detach(Ne),I&&detach(De),Ue=!1,run_all(Me)}}}function create_fragment$3(r){let e,t,n,o,a,s,l,f,h,d,m,b,w,_,y;function v(D,B){return D[7]?create_if_block$2:create_else_block$1}let A=v(r),L=A(r);return b=new Loader({}),{c(){e=element("div"),t=element("button"),n=text("Submit Review"),o=space(),a=element("div"),s=element("div"),l=element("button"),f=text("✕"),h=space(),L.c(),d=space(),m=element("div"),create_component(b.$$.fragment),this.h()},l(D){e=claim_element(D,"DIV",{class:!0});var B=children(e);t=claim_element(B,"BUTTON",{class:!0});var x=children(t);n=claim_text(x,"Submit Review"),x.forEach(detach),o=claim_space(B),a=claim_element(B,"DIV",{class:!0});var S=children(a);s=claim_element(S,"DIV",{class:!0});var O=children(s);l=claim_element(O,"BUTTON",{class:!0});var N=children(l);f=claim_text(N,"✕"),N.forEach(detach),h=claim_space(O),L.l(O),O.forEach(detach),d=claim_space(S),m=claim_element(S,"DIV",{class:!0});var k=children(m);claim_component(b.$$.fragment,k),k.forEach(detach),S.forEach(detach),B.forEach(detach),this.h()},h(){attr(t,"class","btn"),attr(l,"class","btn btn-sm btn-circle absolute right-2 top-2"),attr(s,"class","modal-box relative bg-white text-black dark:bg-gray-900 dark:text-white"),attr(m,"class","modal h-screen z-10 absolute top-0 flex justify-center items-center"),toggle_class(m,"modal-open",r[8]),attr(a,"class","modal"),toggle_class(a,"modal-open",r[0]),attr(e,"class","grid flex-grow")},m(D,B){insert_hydration(D,e,B),append_hydration(e,t),append_hydration(t,n),append_hydration(e,o),append_hydration(e,a),append_hydration(a,s),append_hydration(s,l),append_hydration(l,f),append_hydration(s,h),L.m(s,null),append_hydration(a,d),append_hydration(a,m),mount_component(b,m,null),w=!0,_||(y=[listen(t,"click",r[12]),listen(l,"click",r[13])],_=!0)},p(D,[B]){A===(A=v(D))&&L?L.p(D,B):(L.d(1),L=A(D),L&&(L.c(),L.m(s,null))),(!w||B&256)&&toggle_class(m,"modal-open",D[8]),(!w||B&1)&&toggle_class(a,"modal-open",D[0])},i(D){w||(transition_in(b.$$.fragment,D),w=!0)},o(D){transition_out(b.$$.fragment,D),w=!1},d(D){D&&detach(e),L.d(),destroy_component(b),_=!1,run_all(y)}}}let image="ipfs://bafybeica7pi67452fokrlrmxrooazsxbuluckmcojascc5z4fcazsuhsuy";function instance$3(r,e,t){let{reloadStats:n}=e,o=!1,a,s,l,f="website",h,d,m,b=!1,w=!1,_=0;const y=async()=>{var R;const[k]=await chrome.tabs.query({active:!0,currentWindow:!0});t(3,l=(R=k.url)==null?void 0:R.toLocaleLowerCase())},v=async()=>{t(8,w=!0);const k=new URL(`${l}`).hostname;let R={name:a??"",description:s??"",category:f??"",image,domainAddress:k??"",siteUrl:l??tempUrl,siteType:m??"",siteTag:h??"",siteSafety:d??"",siteRating:_??""},q=`ipfs://${await storeMetaData(R)}`.split(",")[0];try{let G={category:f??"website",domainAddress:k??"",siteUrl:l??tempUrl,siteType:m??"",siteTag:h??"",siteSafety:d??"",metaDataUri:q,siteIpfsHash:"ipfs://abcd"};await createReview(G)}catch(G){console.log("error: "+G)}finally{t(8,w=!1),t(0,o=!1),n(),t(9,_=0),t(1,a=""),t(2,s=""),f="website",t(6,m=""),t(4,h=""),t(5,d="")}};onMount(async()=>{t(7,[b]=await checkAuth(),b),await y()});const A=()=>{t(0,o=!0)},L=()=>t(0,o=!1);function D(){_=to_number(this.value),t(9,_)}function B(){a=this.value,t(1,a)}function x(){s=this.value,t(2,s)}function S(){m=select_value(this),t(6,m)}function O(){h=select_value(this),t(4,h)}function N(){d=select_value(this),t(5,d)}return r.$$set=k=>{"reloadStats"in k&&t(11,n=k.reloadStats)},[o,a,s,l,h,d,m,b,w,_,v,n,A,L,D,B,x,S,O,N]}class SubmitReview extends SvelteComponent{constructor(e){super(),init(this,e,instance$3,create_fragment$3,safe_not_equal,{reloadStats:11})}}function styleInject(r,e){e===void 0&&(e={});var t=e.insertAt;if(r&&typeof document<"u"){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",t==="top"&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r))}}function $(r,e){return typeof r=="string"?(e||document).querySelector(r):r||null}function getOffset(r){var e=r.getBoundingClientRect();return{top:e.top+(document.documentElement.scrollTop||document.body.scrollTop),left:e.left+(document.documentElement.scrollLeft||document.body.scrollLeft)}}function isHidden(r){return r.offsetParent===null}function isElementInViewport(r){var e=r.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}function getElementContentWidth(r){var e=window.getComputedStyle(r),t=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight);return r.clientWidth-t}function fire(r,e,t){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0);for(var o in t)n[o]=t[o];return r.dispatchEvent(n)}function getTopOffset(r){return r.titleHeight+r.margins.top+r.paddings.top}function getLeftOffset(r){return r.margins.left+r.paddings.left}function getExtraHeight(r){return r.margins.top+r.margins.bottom+r.paddings.top+r.paddings.bottom+r.titleHeight+r.legendHeight}function getExtraWidth(r){return r.margins.left+r.margins.right+r.paddings.left+r.paddings.right}function _classCallCheck$4(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function floatTwo(r){return parseFloat(r.toFixed(2))}function fillArray(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t||(t=n?r[0]:r[r.length-1]);var o=new Array(Math.abs(e)).fill(t);return r=n?o.concat(r):r.concat(o)}function getStringWidth(r,e){return(r+"").length*e}function getPositionByAngle(r,e){return{x:Math.sin(r*ANGLE_RATIO)*e,y:Math.cos(r*ANGLE_RATIO)*e}}function isValidNumber(r){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return!Number.isNaN(r)&&r!==void 0&&!!Number.isFinite(r)&&!(e&&r<0)}function round(r){return+(Math.round(r+"e4")+"e-4")}function deepClone(r){var e=void 0,t=void 0,n=void 0;if(r instanceof Date)return new Date(r.getTime());if((r===void 0?"undefined":_typeof$2(r))!=="object"||r===null)return r;e=Array.isArray(r)?[]:{};for(n in r)t=r[n],e[n]=deepClone(t);return e}function getBarHeightAndYAttr(r,e){var t=void 0,n=void 0;return r<=e?(t=e-r,n=r):(t=r-e,n=e),[t,n]}function equilizeNoOfElements(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length-r.length;return t>0?r=fillArray(r,t):e=fillArray(e,t),[r,e]}function truncateString(r,e){if(r)return r.length>e?r.slice(0,e-3)+"...":r}function shortenLargeNumber(r){var e=void 0;if(typeof r=="number")e=r;else if(typeof r=="string"&&(e=Number(r),Number.isNaN(e)))return r;var t=Math.floor(Math.log10(Math.abs(e)));if(t<=2)return e;var n=Math.floor(t/3),o=Math.pow(10,t-3*n)*+(e/Math.pow(10,t)).toFixed(1);return Math.round(100*o)/100+" "+["","K","M","B","T"][n]}function getSplineCurvePointsStr(r,e){for(var t=[],n=0;n255?255:r<0?0:r}function lightenDarkenColor(r,e){var t=getColor(r),n=!1;t[0]=="#"&&(t=t.slice(1),n=!0);var o=parseInt(t,16),a=limitColor((o>>16)+e),s=limitColor((o>>8&255)+e),l=limitColor((255&o)+e);return(n?"#":"")+(l|s<<8|a<<16).toString(16)}function isValidColor(r){var e=/(^\s*)(rgb|hsl)(a?)[(]\s*([\d.]+\s*%?)\s*,\s*([\d.]+\s*%?)\s*,\s*([\d.]+\s*%?)\s*(?:,\s*([\d.]+)\s*)?[)]$/i;return/(^\s*)(#)((?:[A-Fa-f0-9]{3}){1,2})$/i.test(r)||e.test(r)}function $$1(r,e){return typeof r=="string"?(e||document).querySelector(r):r||null}function createSVG(r,e){var t=document.createElementNS("http://www.w3.org/2000/svg",r);for(var n in e){var o=e[n];if(n==="inside")$$1(o).appendChild(t);else if(n==="around"){var a=$$1(o);a.parentNode.insertBefore(t,a),t.appendChild(a)}else n==="styles"?(o===void 0?"undefined":_typeof$1(o))==="object"&&Object.keys(o).map(function(s){t.style[s]=o[s]}):(n==="className"&&(n="class"),n==="innerHTML"?t.textContent=o:t.setAttribute(n,o))}return t}function renderVerticalGradient(r,e){return createSVG("linearGradient",{inside:r,id:e,x1:0,x2:0,y1:0,y2:1})}function setGradientStop(r,e,t,n){return createSVG("stop",{inside:r,style:"stop-color: "+t,offset:e,"stop-opacity":n})}function makeSVGContainer(r,e,t,n){return createSVG("svg",{className:e,inside:r,width:t,height:n})}function makeSVGDefs(r){return createSVG("defs",{inside:r})}function makeSVGGroup(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,n={className:r,transform:e};return t&&(n.inside=t),createSVG("g",n)}function makePath(r){return createSVG("path",{className:arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",d:r,styles:{stroke:arguments.length>2&&arguments[2]!==void 0?arguments[2]:"none",fill:arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none","stroke-width":arguments.length>4&&arguments[4]!==void 0?arguments[4]:2}})}function makeArcPathStr(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,s=t.x+r.x,l=t.y+r.y,f=t.x+e.x,h=t.y+e.y;return"M"+t.x+" "+t.y+` - L`+s+" "+l+` - A `+n+" "+n+" 0 "+a+" "+(o?1:0)+` - `+f+" "+h+" z"}function makeCircleStr(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,s=t.x+r.x,l=t.y+r.y,f=t.x+e.x,h=2*t.y,d=t.y+e.y;return"M"+t.x+" "+t.y+` - L`+s+" "+l+` - A `+n+" "+n+" 0 "+a+" "+(o?1:0)+` - `+f+" "+h+` z - L`+s+" "+h+` - A `+n+" "+n+" 0 "+a+" "+(o?1:0)+` - `+f+" "+d+" z"}function makeArcStrokePathStr(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,s=t.x+r.x,l=t.y+r.y,f=t.x+e.x,h=t.y+e.y;return"M"+s+" "+l+` - A `+n+" "+n+" 0 "+a+" "+(o?1:0)+` - `+f+" "+h}function makeStrokeCircleStr(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,s=t.x+r.x,l=t.y+r.y,f=t.x+e.x,h=2*n+l,d=t.y+r.y;return"M"+s+" "+l+` - A `+n+" "+n+" 0 "+a+" "+(o?1:0)+` - `+f+" "+h+` - M`+s+" "+h+` - A `+n+" "+n+" 0 "+a+" "+(o?1:0)+` - `+f+" "+d}function makeGradient(r,e){var t=arguments.length>2&&arguments[2]!==void 0&&arguments[2],n="path-fill-gradient-"+e+"-"+(t?"lighter":"default"),o=renderVerticalGradient(r,n),a=[1,.6,.2];return t&&(a=[.4,.2,0]),setGradientStop(o,"0%",e,a[0]),setGradientStop(o,"50%",e,a[1]),setGradientStop(o,"100%",e,a[2]),n}function percentageBar(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:PERCENTAGE_BAR_DEFAULT_DEPTH,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"none";return createSVG("rect",{className:"percentage-bar",x:r,y:e,width:t,height:n,fill:a,styles:{stroke:lightenDarkenColor(a,-25),"stroke-dasharray":"0, "+(n+t)+", "+t+", "+n,"stroke-width":o}})}function heatSquare(r,e,t,n,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"none",s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},l={className:r,x:e,y:t,width:n,height:n,rx:o,fill:a};return Object.keys(s).map(function(f){l[f]=s[f]}),createSVG("rect",l)}function legendBar(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none",o=arguments[4];o=arguments.length>5&&arguments[5]!==void 0&&arguments[5]?truncateString(o,LABEL_MAX_CHARS):o;var a={className:"legend-bar",x:0,y:0,width:t,height:"2px",fill:n},s=createSVG("text",{className:"legend-dataset-text",x:0,y:0,dy:2*FONT_SIZE+"px","font-size":1.2*FONT_SIZE+"px","text-anchor":"start",fill:FONT_FILL,innerHTML:o}),l=createSVG("g",{transform:"translate("+r+", "+e+")"});return l.appendChild(createSVG("rect",a)),l.appendChild(s),l}function legendDot(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none",o=arguments[4];o=arguments.length>5&&arguments[5]!==void 0&&arguments[5]?truncateString(o,LABEL_MAX_CHARS):o;var a={className:"legend-dot",cx:0,cy:0,r:t,fill:n},s=createSVG("text",{className:"legend-dataset-text",x:0,y:0,dx:FONT_SIZE+"px",dy:FONT_SIZE/3+"px","font-size":1.2*FONT_SIZE+"px","text-anchor":"start",fill:FONT_FILL,innerHTML:o}),l=createSVG("g",{transform:"translate("+r+", "+e+")"});return l.appendChild(createSVG("circle",a)),l.appendChild(s),l}function makeText(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},a=o.fontSize||FONT_SIZE;return createSVG("text",{className:r,x:e,y:t,dy:(o.dy!==void 0?o.dy:a/2)+"px","font-size":a+"px",fill:o.fill||FONT_FILL,"text-anchor":o.textAnchor||"start",innerHTML:n})}function makeVertLine(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};o.stroke||(o.stroke=BASE_LINE_COLOR);var a=createSVG("line",{className:"line-vertical "+o.className,x1:0,x2:0,y1:t,y2:n,styles:{stroke:o.stroke}}),s=createSVG("text",{x:0,y:t>n?t+LABEL_MARGIN:t-LABEL_MARGIN-FONT_SIZE,dy:FONT_SIZE+"px","font-size":FONT_SIZE+"px","text-anchor":"middle",innerHTML:e+""}),l=createSVG("g",{transform:"translate("+r+", 0)"});return l.appendChild(a),l.appendChild(s),l}function makeHoriLine(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};o.stroke||(o.stroke=BASE_LINE_COLOR),o.lineType||(o.lineType=""),o.shortenNumbers&&(e=shortenLargeNumber(e));var a=createSVG("line",{className:"line-horizontal "+o.className+(o.lineType==="dashed"?"dashed":""),x1:t,x2:n,y1:0,y2:0,styles:{stroke:o.stroke}}),s=createSVG("text",{x:t3&&arguments[3]!==void 0?arguments[3]:{};isValidNumber(r)||(r=0),n.pos||(n.pos="left"),n.offset||(n.offset=0),n.mode||(n.mode="span"),n.stroke||(n.stroke=BASE_LINE_COLOR),n.className||(n.className="");var o=-1*AXIS_TICK_LENGTH,a=n.mode==="span"?t+AXIS_TICK_LENGTH:0;return n.mode==="tick"&&n.pos==="right"&&(o=t+AXIS_TICK_LENGTH,a=t),o+=n.offset,a+=n.offset,makeHoriLine(r,e,o,a,{stroke:n.stroke,className:n.className,lineType:n.lineType,shortenNumbers:n.shortenNumbers})}function xLine(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};isValidNumber(r)||(r=0),n.pos||(n.pos="bottom"),n.offset||(n.offset=0),n.mode||(n.mode="span"),n.stroke||(n.stroke=BASE_LINE_COLOR),n.className||(n.className="");var o=t+AXIS_TICK_LENGTH,a=n.mode==="span"?-1*AXIS_TICK_LENGTH:t;return n.mode==="tick"&&n.pos==="top"&&(o=-1*AXIS_TICK_LENGTH,a=0),makeVertLine(r,e,o,a,{stroke:n.stroke,className:n.className,lineType:n.lineType})}function yMarker(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};n.labelPos||(n.labelPos="right");var o=createSVG("text",{className:"chart-label",x:n.labelPos==="left"?LABEL_MARGIN:t-getStringWidth(e,5)-LABEL_MARGIN,y:0,dy:FONT_SIZE/-2+"px","font-size":FONT_SIZE+"px","text-anchor":"start",innerHTML:e+""}),a=makeHoriLine(r,"",0,t,{stroke:n.stroke||BASE_LINE_COLOR,className:n.className||"",lineType:n.lineType});return a.appendChild(o),a}function yRegion(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},a=r-e,s=createSVG("rect",{className:"bar mini",styles:{fill:"rgba(228, 234, 239, 0.49)",stroke:BASE_LINE_COLOR,"stroke-dasharray":t+", "+a},x:0,y:0,width:t,height:a});o.labelPos||(o.labelPos="right");var l=createSVG("text",{className:"chart-label",x:o.labelPos==="left"?LABEL_MARGIN:t-getStringWidth(n+"",4.5)-LABEL_MARGIN,y:0,dy:FONT_SIZE/-2+"px","font-size":FONT_SIZE+"px","text-anchor":"start",innerHTML:n+""}),f=createSVG("g",{transform:"translate(0, "+e+")"});return f.appendChild(s),f.appendChild(l),f}function datasetBar(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:{},f=getBarHeightAndYAttr(e,l.zeroLine),h=_slicedToArray(f,2),d=h[0],m=h[1];m-=s,d===0&&(d=l.minHeight,m-=l.minHeight),isValidNumber(r)||(r=0),isValidNumber(m)||(m=0),isValidNumber(d,!0)||(d=0),isValidNumber(t,!0)||(t=0);var b=createSVG("rect",{className:"bar mini",style:"fill: "+n,"data-point-index":a,x:r,y:m,width:t,height:d});if((o+="")||o.length){b.setAttribute("y",0),b.setAttribute("x",0);var w=createSVG("text",{className:"data-point-value",x:t/2,y:0,dy:FONT_SIZE/2*-1+"px","font-size":FONT_SIZE+"px","text-anchor":"middle",innerHTML:o}),_=createSVG("g",{"data-point-index":a,transform:"translate("+r+", "+m+")"});return _.appendChild(b),_.appendChild(w),_}return b}function datasetDot(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,s=createSVG("circle",{style:"fill: "+n,"data-point-index":a,cx:r,cy:e,r:t});if((o+="")||o.length){s.setAttribute("cy",0),s.setAttribute("cx",0);var l=createSVG("text",{className:"data-point-value",x:0,y:0,dy:FONT_SIZE/2*-1-t+"px","font-size":FONT_SIZE+"px","text-anchor":"middle",innerHTML:o}),f=createSVG("g",{"data-point-index":a,transform:"translate("+r+", "+e+")"});return f.appendChild(s),f.appendChild(l),f}return s}function getPaths(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},a=e.map(function(m,b){return r[b]+","+m}).join("L");n.spline&&(a=getSplineCurvePointsStr(r,e));var s=makePath("M"+a,"line-graph-path",t);if(n.heatline){var l=makeGradient(o.svgDefs,t);s.style.stroke="url(#"+l+")"}var f={path:s};if(n.regionFill){var h=makeGradient(o.svgDefs,t,!0),d="M"+r[0]+","+o.zeroLine+"L"+a+"L"+r.slice(-1)[0]+","+o.zeroLine;f.region=makePath(d,"region-fill","none","url(#"+h+")")}return f}function translate(r,e,t,n){var o=typeof e=="string"?e:e.join(", ");return[r,{transform:t.join(", ")},n,STD_EASING,"translate",{transform:o}]}function translateVertLine(r,e,t){return translate(r,[t,0],[e,0],MARKER_LINE_ANIM_DUR)}function translateHoriLine(r,e,t){return translate(r,[0,t],[0,e],MARKER_LINE_ANIM_DUR)}function animateRegion(r,e,t,n){var o=e-t,a=r.childNodes[0];return[[a,{height:o,"stroke-dasharray":a.getAttribute("width")+", "+o},MARKER_LINE_ANIM_DUR,STD_EASING],translate(r,[0,n],[0,t],MARKER_LINE_ANIM_DUR)]}function animateBar(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a=getBarHeightAndYAttr(t,(arguments.length>5&&arguments[5]!==void 0?arguments[5]:{}).zeroLine),s=_slicedToArray$2(a,2),l=s[0],f=s[1];return f-=o,r.nodeName!=="rect"?[[r.childNodes[0],{width:n,height:l},UNIT_ANIM_DUR,STD_EASING],translate(r,r.getAttribute("transform").split("(")[1].slice(0,-1),[e,f],MARKER_LINE_ANIM_DUR)]:[[r,{width:n,height:l,x:e,y:f},UNIT_ANIM_DUR,STD_EASING]]}function animateDot(r,e,t){return r.nodeName!=="circle"?[translate(r,r.getAttribute("transform").split("(")[1].slice(0,-1),[e,t],MARKER_LINE_ANIM_DUR)]:[[r,{cx:e,cy:t},UNIT_ANIM_DUR,STD_EASING]]}function animatePath(r,e,t,n,o){var a=[],s=t.map(function(m,b){return e[b]+","+m}).join("L");o&&(s=getSplineCurvePointsStr(e,t));var l=[r.path,{d:"M"+s},PATH_ANIM_DUR,STD_EASING];if(a.push(l),r.region){var f=e[0]+","+n+"L",h="L"+e.slice(-1)[0]+", "+n,d=[r.region,{d:"M"+f+s+h},PATH_ANIM_DUR,STD_EASING];a.push(d)}return a}function animatePathStr(r,e){return[r,{d:e},UNIT_ANIM_DUR,STD_EASING]}function _toConsumableArray$1(r){if(Array.isArray(r)){for(var e=0,t=Array(r.length);e3&&arguments[3]!==void 0?arguments[3]:"linear",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=r.cloneNode(!0),l=r.cloneNode(!0);for(var f in e){var h=void 0;h=f==="transform"?document.createElementNS("http://www.w3.org/2000/svg","animateTransform"):document.createElementNS("http://www.w3.org/2000/svg","animate");var d=a[f]||r.getAttribute(f),m=e[f],b={attributeName:f,from:d,to:m,begin:"0s",dur:t/1e3+"s",values:d+";"+m,keySplines:EASING[n],keyTimes:"0;1",calcMode:"spline",fill:"freeze"};o&&(b.type=o);for(var w in b)h.setAttribute(w,b[w]);s.appendChild(h),o?l.setAttribute(f,"translate("+m+")"):l.setAttribute(f,m)}return[s,l]}function transform(r,e){r.style.transform=e,r.style.webkitTransform=e,r.style.msTransform=e,r.style.mozTransform=e,r.style.oTransform=e}function animateSVG(r,e){var t=[],n=[];e.map(function(a){var s=a[0],l=s.parentNode,f=void 0,h=void 0;a[0]=s;var d=animateSVGElement.apply(void 0,_toConsumableArray$1(a)),m=_slicedToArray$1(d,2);f=m[0],h=m[1],t.push(h),n.push([f,l]),l&&l.replaceChild(f,s)});var o=r.cloneNode(!0);return n.map(function(a,s){a[1]&&(a[1].replaceChild(t[s],a[0]),e[s][0]=t[s])}),o}function runSMILAnimation(r,e,t){if(t.length!==0){var n=animateSVG(e,t);e.parentNode==r&&(r.removeChild(e),r.appendChild(n)),setTimeout(function(){n.parentNode==r&&(r.removeChild(n),r.appendChild(e))},REPLACE_ALL_NEW_DUR)}}function downloadFile(r,e){var t=document.createElement("a");t.style="display: none";var n=new Blob(e,{type:"image/svg+xml; charset=utf-8"}),o=window.URL.createObjectURL(n);t.href=o,t.download=r,document.body.appendChild(t),t.click(),setTimeout(function(){document.body.removeChild(t),window.URL.revokeObjectURL(o)},300)}function prepareForExport(r){var e=r.cloneNode(!0);e.classList.add("chart-container"),e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink");var t=$.create("style",{innerHTML:CSSTEXT});e.insertBefore(t,e.firstChild);var n=$.create("div");return n.appendChild(e),n.innerHTML}function _classCallCheck$3(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function _classCallCheck$2(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$1(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||typeof e!="object"&&typeof e!="function"?r:e}function _inherits$1(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}function treatAsUtc(r){var e=new Date(r);return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e}function getYyyyMmDd(r){var e=r.getDate(),t=r.getMonth()+1;return[r.getFullYear(),(t>9?"":"0")+t,(e>9?"":"0")+e].join("-")}function clone(r){return new Date(r.getTime())}function getWeeksBetween(r,e){var t=setDayToSunday(r);return Math.ceil(getDaysBetween(t,e)/NO_OF_DAYS_IN_WEEK)}function getDaysBetween(r,e){var t=SEC_IN_DAY*NO_OF_MILLIS;return(treatAsUtc(e)-treatAsUtc(r))/t}function areInSameMonth(r,e){return r.getMonth()===e.getMonth()&&r.getFullYear()===e.getFullYear()}function getMonthName(r){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],t=MONTH_NAMES[r];return e?t.slice(0,3):t}function getLastDateInMonth(r,e){return new Date(e,r+1,0)}function setDayToSunday(r){var e=clone(r),t=e.getDay();return t!==0&&addDays(e,-1*t),e}function addDays(r,e){r.setDate(r.getDate()+e)}function _classCallCheck$5(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function getComponent(r,e,t){var n=Object.keys(componentConfigs).filter(function(a){return r.includes(a)}),o=componentConfigs[n[0]];return Object.assign(o,{constants:e,getData:t}),new ChartComponent(o)}function _toConsumableArray(r){if(Array.isArray(r)){for(var e=0,t=Array(r.length);e0?1:-1;if(!isFinite(r))return{mantissa:4503599627370496*e,exponent:972};r=Math.abs(r);var t=Math.floor(Math.log10(r));return[e*(r/Math.pow(10,t)),t]}function getChartRangeIntervals(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=Math.ceil(r),n=Math.floor(e),o=t-n,a=o,s=1;o>5&&(o%2!=0&&(o=++t-n),a=o/2,s=2),o<=2&&(s=o/(a=4)),o===0&&(a=5,s=1);for(var l=[],f=0;f<=a;f++)l.push(n+s*f);return l}function getChartIntervals(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=normalize(r),n=_slicedToArray$4(t,2),o=n[0],a=n[1],s=e?e/Math.pow(10,a):0,l=getChartRangeIntervals(o=o.toFixed(6),s);return l=l.map(function(f){return f*Math.pow(10,a)})}function calcChartIntervals(r){function e(h,d){for(var m=getChartIntervals(h),b=m[1]-m[0],w=0,_=1;w1&&arguments[1]!==void 0&&arguments[1],n=Math.max.apply(Math,_toConsumableArray$4(r)),o=Math.min.apply(Math,_toConsumableArray$4(r)),a=[];if(n>=0&&o>=0)normalize(n)[1],a=t?getChartIntervals(n,o):getChartIntervals(n);else if(n>0&&o<0){var s=Math.abs(o);n>=s?(normalize(n)[1],a=e(n,s)):(normalize(s)[1],a=e(s,n).reverse().map(function(h){return-1*h}))}else if(n<=0&&o<=0){var l=Math.abs(o),f=Math.abs(n);normalize(l)[1],a=(a=t?getChartIntervals(l,f):getChartIntervals(l)).reverse().map(function(h){return-1*h})}return a}function getZeroIndex(r){var e=getIntervalSize(r);return r.indexOf(0)>=0?r.indexOf(0):r[0]>0?-1*r[0]/e:-1*r[r.length-1]/e+(r.length-1)}function getIntervalSize(r){return r[1]-r[0]}function getValueRange(r){return r[r.length-1]-r[0]}function scale(r,e){return floatTwo(e.zeroLine-r*e.scaleMultiplier)}function getClosestInArray(r,e){var t=arguments.length>2&&arguments[2]!==void 0&&arguments[2],n=e.reduce(function(o,a){return Math.abs(a-r)t?s.slice(0,t):fillArray(s,t-s.length,0),a.values=s}else a.values=o;a.chartType||(a.chartType=e)}),r.yRegions&&r.yRegions.map(function(a){if(a.end1&&arguments[1]!==void 0?arguments[1]:[],t=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],n=r/e.length;n<=0&&(n=1);var o=n/DEFAULT_CHAR_WIDTH,a=void 0;if(t){var s=Math.max.apply(Math,_toConsumableArray$6(e.map(function(l){return l.length})));a=Math.ceil(s/o)}return e.map(function(l,f){return(l+="").length>o&&(t?f%a!=0&&(l=""):l=o-3>0?l.slice(0,o-3)+" ...":l.slice(0,o)+".."),l})}function _toConsumableArray$5(r){if(Array.isArray(r)){for(var e=0,t=Array(r.length);e0&&arguments[0]!==void 0?arguments[0]:"line",e=arguments[1],t=arguments[2];return r==="axis-mixed"?(t.type="line",new AxisChart(e,t)):chartTypes[r]?new chartTypes[r](e,t):void console.error("Undefined chart type: "+r)}var css_248z='.chart-container{position:relative;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}.chart-container .axis,.chart-container .chart-label{fill:#555b51}.chart-container .axis line,.chart-container .chart-label line{stroke:#dadada}.chart-container .dataset-units circle{stroke:#fff;stroke-width:2}.chart-container .dataset-units path{fill:none;stroke-opacity:1;stroke-width:2px}.chart-container .dataset-path{stroke-width:2px}.chart-container .path-group path{fill:none;stroke-opacity:1;stroke-width:2px}.chart-container line.dashed{stroke-dasharray:5,3}.chart-container .axis-line .specific-value{text-anchor:start}.chart-container .axis-line .y-line{text-anchor:end}.chart-container .axis-line .x-line{text-anchor:middle}.chart-container .legend-dataset-text{fill:#6c7680;font-weight:600}.graph-svg-tip{position:absolute;z-index:99999;padding:10px;font-size:12px;color:#959da5;text-align:center;background:rgba(0,0,0,.8);border-radius:3px}.graph-svg-tip ol,.graph-svg-tip ul{padding-left:0;display:-webkit-box;display:-ms-flexbox;display:flex}.graph-svg-tip ul.data-point-list li{min-width:90px;-webkit-box-flex:1;-ms-flex:1;flex:1;font-weight:600}.graph-svg-tip strong{color:#dfe2e5;font-weight:600}.graph-svg-tip .svg-pointer{position:absolute;height:5px;margin:0 0 0 -5px;content:" ";border:5px solid transparent;border-top-color:rgba(0,0,0,.8)}.graph-svg-tip.comparison{padding:0;text-align:left;pointer-events:none}.graph-svg-tip.comparison .title{display:block;padding:10px;margin:0;font-weight:600;line-height:1;pointer-events:none}.graph-svg-tip.comparison ul{margin:0;white-space:nowrap;list-style:none}.graph-svg-tip.comparison li{display:inline-block;padding:5px 10px}';styleInject(css_248z);var _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r};$.create=function(r,e){var t=document.createElement(r);for(var n in e){var o=e[n];if(n==="inside")$(o).appendChild(t);else if(n==="around"){var a=$(o);a.parentNode.insertBefore(t,a),t.appendChild(a)}else n==="styles"?(o===void 0?"undefined":_typeof(o))==="object"&&Object.keys(o).map(function(s){t.style[s]=o[s]}):n in t?t[n]=o:t.setAttribute(n,o)}return t};var BASE_MEASURES={margins:{top:10,bottom:10,left:20,right:20},paddings:{top:20,bottom:40,left:30,right:10},baseHeight:240,titleHeight:20,legendHeight:30,titleFontSize:12},INIT_CHART_UPDATE_TIMEOUT=700,CHART_POST_ANIMATE_TIMEOUT=400,AXIS_LEGEND_BAR_SIZE=100,BAR_CHART_SPACE_RATIO=.5,MIN_BAR_PERCENT_HEIGHT=0,LINE_CHART_DOT_SIZE=4,DOT_OVERLAY_SIZE_INCR=4,PERCENTAGE_BAR_DEFAULT_HEIGHT=20,PERCENTAGE_BAR_DEFAULT_DEPTH=2,HEATMAP_DISTRIBUTION_SIZE=5,HEATMAP_SQUARE_SIZE=10,HEATMAP_GUTTER_SIZE=2,DEFAULT_CHAR_WIDTH=7,TOOLTIP_POINTER_TRIANGLE_HEIGHT=5,DEFAULT_CHART_COLORS=["light-blue","blue","violet","red","orange","yellow","green","light-green","purple","magenta","light-grey","dark-grey"],HEATMAP_COLORS_GREEN=["#ebedf0","#c6e48b","#7bc96f","#239a3b","#196127"],DEFAULT_COLORS={bar:DEFAULT_CHART_COLORS,line:DEFAULT_CHART_COLORS,pie:DEFAULT_CHART_COLORS,percentage:DEFAULT_CHART_COLORS,heatmap:HEATMAP_COLORS_GREEN,donut:DEFAULT_CHART_COLORS},ANGLE_RATIO=Math.PI/180,FULL_ANGLE=360,_createClass$3=function(){function r(e,t){for(var n=0;n -
    -
    `}),this.hideTip(),this.title=this.container.querySelector(".title"),this.dataPointList=this.container.querySelector(".data-point-list"),this.parent.addEventListener("mouseleave",function(){e.hideTip()})}},{key:"fill",value:function(){var e=this,t=void 0;this.index&&this.container.setAttribute("data-point-index",this.index),t=this.titleValueFirst?""+this.titleValue+""+this.titleName:this.titleName+""+this.titleValue+"",this.title.innerHTML=t,this.dataPointList.innerHTML="",this.listValues.map(function(n,o){var a=e.colors[o]||"black",s=n.formatted===0||n.formatted?n.formatted:n.value,l=$.create("li",{styles:{"border-top":"3px solid "+a},innerHTML:''+(s===0||s?s:"")+` - `+(n.title?n.title:"")});e.dataPointList.appendChild(l)})}},{key:"calcPosition",value:function(){var e=this.container.offsetWidth;this.top=this.y-this.container.offsetHeight-TOOLTIP_POINTER_TRIANGLE_HEIGHT,this.left=this.x-e/2;var t=this.parent.offsetWidth-e,n=this.container.querySelector(".svg-pointer");if(this.left<0)n.style.left="calc(50% - "+-1*this.left+"px)",this.left=0;else if(this.left>t){var o="calc(50% + "+(this.left-t)+"px)";n.style.left=o,this.left=t}else n.style.left="50%"}},{key:"setValues",value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;this.titleName=n.name,this.titleValue=n.value,this.listValues=o,this.x=e,this.y=t,this.titleValueFirst=n.valueFirst||0,this.index=a,this.refresh()}},{key:"hideTip",value:function(){this.container.style.top="0px",this.container.style.left="0px",this.container.style.opacity="0"}},{key:"showTip",value:function(){this.container.style.top=this.top+"px",this.container.style.left=this.left+"px",this.container.style.opacity="1"}}]),r}(),_typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},PRESET_COLOR_MAP={"light-blue":"#7cd6fd",blue:"#5e64ff",violet:"#743ee2",red:"#ff5858",orange:"#ffa00a",yellow:"#feef72",green:"#28a745","light-green":"#98d85b",purple:"#b554ff",magenta:"#ffa3ef",black:"#36114C",grey:"#bdd3e6","light-grey":"#f0f4f7","dark-grey":"#b8c2cc"},getColor=function(r){return/rgb[a]{0,1}\([\d, ]+\)/gim.test(r)?/\D+(\d*)\D+(\d*)\D+(\d*)/gim.exec(r).map(function(e,t){return t!==0?Number(e).toString(16):"#"}).reduce(function(e,t){return""+e+t}):PRESET_COLOR_MAP[r]||r},_slicedToArray=function(){function r(e,t){var n=[],o=!0,a=!1,s=void 0;try{for(var l,f=e[Symbol.iterator]();!(o=(l=f.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(h){a=!0,s=h}finally{try{!o&&f.return&&f.return()}finally{if(a)throw s}}return n}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return r(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},AXIS_TICK_LENGTH=6,LABEL_MARGIN=4,LABEL_MAX_CHARS=15,FONT_SIZE=10,BASE_LINE_COLOR="#dadada",FONT_FILL="#555b51",makeOverlay={bar:function(r){var e=void 0;r.nodeName!=="rect"&&(e=r.getAttribute("transform"),r=r.childNodes[0]);var t=r.cloneNode();return t.style.fill="#000000",t.style.opacity="0.4",e&&t.setAttribute("transform",e),t},dot:function(r){var e=void 0;r.nodeName!=="circle"&&(e=r.getAttribute("transform"),r=r.childNodes[0]);var t=r.cloneNode(),n=r.getAttribute("r"),o=r.getAttribute("fill");return t.setAttribute("r",parseInt(n)+DOT_OVERLAY_SIZE_INCR),t.setAttribute("fill",o),t.style.opacity="0.6",e&&t.setAttribute("transform",e),t},heat_square:function(r){var e=void 0;r.nodeName!=="circle"&&(e=r.getAttribute("transform"),r=r.childNodes[0]);var t=r.cloneNode(),n=r.getAttribute("r"),o=r.getAttribute("fill");return t.setAttribute("r",parseInt(n)+DOT_OVERLAY_SIZE_INCR),t.setAttribute("fill",o),t.style.opacity="0.6",e&&t.setAttribute("transform",e),t}},updateOverlay={bar:function(r,e){var t=void 0;r.nodeName!=="rect"&&(t=r.getAttribute("transform"),r=r.childNodes[0]);var n=["x","y","width","height"];Object.values(r.attributes).filter(function(o){return n.includes(o.name)&&o.specified}).map(function(o){e.setAttribute(o.name,o.nodeValue)}),t&&e.setAttribute("transform",t)},dot:function(r,e){var t=void 0;r.nodeName!=="circle"&&(t=r.getAttribute("transform"),r=r.childNodes[0]);var n=["cx","cy"];Object.values(r.attributes).filter(function(o){return n.includes(o.name)&&o.specified}).map(function(o){e.setAttribute(o.name,o.nodeValue)}),t&&e.setAttribute("transform",t)},heat_square:function(r,e){var t=void 0;r.nodeName!=="circle"&&(t=r.getAttribute("transform"),r=r.childNodes[0]);var n=["cx","cy"];Object.values(r.attributes).filter(function(o){return n.includes(o.name)&&o.specified}).map(function(o){e.setAttribute(o.name,o.nodeValue)}),t&&e.setAttribute("transform",t)}},_slicedToArray$2=function(){function r(e,t){var n=[],o=!0,a=!1,s=void 0;try{for(var l,f=e[Symbol.iterator]();!(o=(l=f.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(h){a=!0,s=h}finally{try{!o&&f.return&&f.return()}finally{if(a)throw s}}return n}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return r(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),UNIT_ANIM_DUR=350,PATH_ANIM_DUR=350,MARKER_LINE_ANIM_DUR=UNIT_ANIM_DUR,REPLACE_ALL_NEW_DUR=250,STD_EASING="easein",_slicedToArray$1=function(){function r(e,t){var n=[],o=!0,a=!1,s=void 0;try{for(var l,f=e[Symbol.iterator]();!(o=(l=f.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(h){a=!0,s=h}finally{try{!o&&f.return&&f.return()}finally{if(a)throw s}}return n}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return r(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),EASING={ease:"0.25 0.1 0.25 1",linear:"0 0 1 1",easein:"0.1 0.8 0.2 1",easeout:"0 0 0.58 1",easeinout:"0.42 0 0.58 1"},CSSTEXT=".chart-container{position:relative;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Roboto','Oxygen','Ubuntu','Cantarell','Fira Sans','Droid Sans','Helvetica Neue',sans-serif}.chart-container .axis,.chart-container .chart-label{fill:#555b51}.chart-container .axis line,.chart-container .chart-label line{stroke:#dadada}.chart-container .dataset-units circle{stroke:#fff;stroke-width:2}.chart-container .dataset-units path{fill:none;stroke-opacity:1;stroke-width:2px}.chart-container .dataset-path{stroke-width:2px}.chart-container .path-group path{fill:none;stroke-opacity:1;stroke-width:2px}.chart-container line.dashed{stroke-dasharray:5,3}.chart-container .axis-line .specific-value{text-anchor:start}.chart-container .axis-line .y-line{text-anchor:end}.chart-container .axis-line .x-line{text-anchor:middle}.chart-container .legend-dataset-text{fill:#6c7680;font-weight:600}.graph-svg-tip{position:absolute;z-index:99999;padding:10px;font-size:12px;color:#959da5;text-align:center;background:rgba(0,0,0,.8);border-radius:3px}.graph-svg-tip ul{padding-left:0;display:flex}.graph-svg-tip ol{padding-left:0;display:flex}.graph-svg-tip ul.data-point-list li{min-width:90px;flex:1;font-weight:600}.graph-svg-tip strong{color:#dfe2e5;font-weight:600}.graph-svg-tip .svg-pointer{position:absolute;height:5px;margin:0 0 0 -5px;content:' ';border:5px solid transparent;border-top-color:rgba(0,0,0,.8)}.graph-svg-tip.comparison{padding:0;text-align:left;pointer-events:none}.graph-svg-tip.comparison .title{display:block;padding:10px;margin:0;font-weight:600;line-height:1;pointer-events:none}.graph-svg-tip.comparison ul{margin:0;white-space:nowrap;list-style:none}.graph-svg-tip.comparison li{display:inline-block;padding:5px 10px}",_createClass$2=function(){function r(e,t){for(var n=0;n0&&arguments[0]!==void 0&&arguments[0],n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];t&&isHidden(this.parent)||(this.updateWidth(),this.calc(t),this.makeChartArea(),this.setupComponents(),this.components.forEach(function(o){return o.setup(e.drawArea)}),this.render(this.components,!1),n&&(this.data=this.realData,setTimeout(function(){e.update(e.data)},this.initTimeout)),this.renderLegend(),this.setupNavigation(n))}},{key:"calc",value:function(){}},{key:"updateWidth",value:function(){this.baseWidth=getElementContentWidth(this.parent),this.width=this.baseWidth-getExtraWidth(this.measures)}},{key:"makeChartArea",value:function(){this.svg&&this.container.removeChild(this.svg);var e=this.measures;this.svg=makeSVGContainer(this.container,"frappe-chart chart",this.baseWidth,this.baseHeight),this.svgDefs=makeSVGDefs(this.svg),this.title.length&&(this.titleEL=makeText("title",e.margins.left,e.margins.top,this.title,{fontSize:e.titleFontSize,fill:"#666666",dy:e.titleFontSize}));var t=getTopOffset(e);this.drawArea=makeSVGGroup(this.type+"-chart chart-draw-area","translate("+getLeftOffset(e)+", "+t+")"),this.config.showLegend&&(t+=this.height+e.paddings.bottom,this.legendArea=makeSVGGroup("chart-legend","translate("+getLeftOffset(e)+", "+t+")")),this.title.length&&this.svg.appendChild(this.titleEL),this.svg.appendChild(this.drawArea),this.config.showLegend&&this.svg.appendChild(this.legendArea),this.updateTipOffset(getLeftOffset(e),getTopOffset(e))}},{key:"updateTipOffset",value:function(e,t){this.tip.offset={x:e,y:t}}},{key:"setupComponents",value:function(){this.components=new Map}},{key:"update",value:function(e){e||console.error("No data to update."),this.data=this.prepareData(e),this.calc(),this.render(this.components,this.config.animate),this.renderLegend()}},{key:"render",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.components,n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.config.isNavigable&&this.overlays.map(function(a){return a.parentNode.removeChild(a)});var o=[];t.forEach(function(a){o=o.concat(a.update(n))}),o.length>0?(runSMILAnimation(this.container,this.svg,o),setTimeout(function(){t.forEach(function(a){return a.make()}),e.updateNav()},CHART_POST_ANIMATE_TIMEOUT)):(t.forEach(function(a){return a.make()}),this.updateNav())}},{key:"updateNav",value:function(){this.config.isNavigable&&(this.makeOverlay(),this.bindUnits())}},{key:"renderLegend",value:function(){}},{key:"setupNavigation",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.config.isNavigable&&t&&(this.bindOverlay(),this.keyActions={13:this.onEnterKey.bind(this),37:this.onLeftArrow.bind(this),38:this.onUpArrow.bind(this),39:this.onRightArrow.bind(this),40:this.onDownArrow.bind(this)},document.addEventListener("keydown",function(n){isElementInViewport(e.container)&&(n=n||window.event,e.keyActions[n.keyCode]&&e.keyActions[n.keyCode]())}))}},{key:"makeOverlay",value:function(){}},{key:"updateOverlay",value:function(){}},{key:"bindOverlay",value:function(){}},{key:"bindUnits",value:function(){}},{key:"onLeftArrow",value:function(){}},{key:"onRightArrow",value:function(){}},{key:"onUpArrow",value:function(){}},{key:"onDownArrow",value:function(){}},{key:"onEnterKey",value:function(){}},{key:"addDataPoint",value:function(){}},{key:"removeDataPoint",value:function(){}},{key:"getDataPoint",value:function(){}},{key:"setCurrentDataPoint",value:function(){}},{key:"updateDataset",value:function(){}},{key:"export",value:function(){var e=prepareForExport(this.svg);downloadFile(this.title||"Chart",[e])}}]),r}(),_createClass$1=function(){function r(e,t){for(var n=0;n=0}),s=a;if(a.length>o){a.sort(function(f,h){return h[0]-f[0]}),s=a.slice(0,o-1);var l=0;a.slice(o-1).map(function(f){l+=f[0]}),s.push([l,"Rest"]),this.colors[o-1]="grey"}n.labels=[],s.map(function(f){n.sliceTotals.push(round(f[0])),n.labels.push(f[1])}),n.grandTotal=n.sliceTotals.reduce(function(f,h){return f+h},0),this.center={x:this.width/2,y:this.height/2}}},{key:"renderLegend",value:function(){var t=this,n=this.state;this.legendArea.textContent="",this.legendTotals=n.sliceTotals.slice(0,this.config.maxLegendPoints);var o=0,a=0;this.legendTotals.map(function(s,l){var f=150,h=Math.floor((t.width-getExtraWidth(t.measures))/f);t.legendTotals.lengthh&&(o=0,a+=20);var d=f*o+5,m=t.config.truncateLegends?truncateString(n.labels[l],f/10):n.labels[l],b=t.config.formatTooltipY?t.config.formatTooltipY(s):s,w=legendDot(d,a,5,t.colors[l],m+": "+b,!1);t.legendArea.appendChild(w),o++})}}]),e}(BaseChart),NO_OF_YEAR_MONTHS=12,NO_OF_DAYS_IN_WEEK=7,NO_OF_MILLIS=1e3,SEC_IN_DAY=86400,MONTH_NAMES=["January","February","March","April","May","June","July","August","September","October","November","December"],DAY_NAMES_SHORT=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],_slicedToArray$3=function(){function r(e,t){var n=[],o=!0,a=!1,s=void 0;try{for(var l,f=e[Symbol.iterator]();!(o=(l=f.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(h){a=!0,s=h}finally{try{!o&&f.return&&f.return()}finally{if(a)throw s}}return n}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return r(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_createClass$4=function(){function r(e,t){for(var n=0;n0&&arguments[0]!==void 0)||arguments[0];this.refresh();var t=[];return e&&(t=this.animateElements(this.data)||[]),t}}]),r}(),componentConfigs={donutSlices:{layerClass:"donut-slices",makeElements:function(r){return r.sliceStrings.map(function(e,t){var n=makePath(e,"donut-path",r.colors[t],"none",r.strokeWidth);return n.style.transition="transform .3s;",n})},animateElements:function(r){return this.store.map(function(e,t){return animatePathStr(e,r.sliceStrings[t])})}},pieSlices:{layerClass:"pie-slices",makeElements:function(r){return r.sliceStrings.map(function(e,t){var n=makePath(e,"pie-path","none",r.colors[t]);return n.style.transition="transform .3s;",n})},animateElements:function(r){return this.store.map(function(e,t){return animatePathStr(e,r.sliceStrings[t])})}},percentageBars:{layerClass:"percentage-bars",makeElements:function(r){var e=this;return r.xPositions.map(function(t,n){return percentageBar(t,0,r.widths[n],e.constants.barHeight,e.constants.barDepth,r.colors[n])})},animateElements:function(r){if(r)return[]}},yAxis:{layerClass:"y axis",makeElements:function(r){var e=this;return r.positions.map(function(t,n){return yLine(t,r.labels[n],e.constants.width,{mode:e.constants.mode,pos:e.constants.pos,shortenNumbers:e.constants.shortenNumbers})})},animateElements:function(r){var e=r.positions,t=r.labels,n=this.oldData.positions,o=this.oldData.labels,a=equilizeNoOfElements(n,e),s=_slicedToArray$3(a,2);n=s[0],e=s[1];var l=equilizeNoOfElements(o,t),f=_slicedToArray$3(l,2);return o=f[0],t=f[1],this.render({positions:n,labels:t}),this.store.map(function(h,d){return translateHoriLine(h,e[d],n[d])})}},xAxis:{layerClass:"x axis",makeElements:function(r){var e=this;return r.positions.map(function(t,n){return xLine(t,r.calcLabels[n],e.constants.height,{mode:e.constants.mode,pos:e.constants.pos})})},animateElements:function(r){var e=r.positions,t=r.calcLabels,n=this.oldData.positions,o=this.oldData.calcLabels,a=equilizeNoOfElements(n,e),s=_slicedToArray$3(a,2);n=s[0],e=s[1];var l=equilizeNoOfElements(o,t),f=_slicedToArray$3(l,2);return o=f[0],t=f[1],this.render({positions:n,calcLabels:t}),this.store.map(function(h,d){return translateVertLine(h,e[d],n[d])})}},yMarkers:{layerClass:"y-markers",makeElements:function(r){var e=this;return r.map(function(t){return yMarker(t.position,t.label,e.constants.width,{labelPos:t.options.labelPos,mode:"span",lineType:"dashed"})})},animateElements:function(r){var e=equilizeNoOfElements(this.oldData,r),t=_slicedToArray$3(e,2);this.oldData=t[0];var n=(r=t[1]).map(function(l){return l.position}),o=r.map(function(l){return l.label}),a=r.map(function(l){return l.options}),s=this.oldData.map(function(l){return l.position});return this.render(s.map(function(l,f){return{position:s[f],label:o[f],options:a[f]}})),this.store.map(function(l,f){return translateHoriLine(l,n[f],s[f])})}},yRegions:{layerClass:"y-regions",makeElements:function(r){var e=this;return r.map(function(t){return yRegion(t.startPos,t.endPos,e.constants.width,t.label,{labelPos:t.options.labelPos})})},animateElements:function(r){var e=equilizeNoOfElements(this.oldData,r),t=_slicedToArray$3(e,2);this.oldData=t[0];var n=(r=t[1]).map(function(d){return d.endPos}),o=r.map(function(d){return d.label}),a=r.map(function(d){return d.startPos}),s=r.map(function(d){return d.options}),l=this.oldData.map(function(d){return d.endPos}),f=this.oldData.map(function(d){return d.startPos});this.render(l.map(function(d,m){return{startPos:f[m],endPos:l[m],label:o[m],options:s[m]}}));var h=[];return this.store.map(function(d,m){h=h.concat(animateRegion(d,a[m],n[m],l[m]))}),h}},heatDomain:{layerClass:function(){return"heat-domain domain-"+this.constants.index},makeElements:function(r){var e=this,t=this.constants,n=t.index,o=t.colWidth,a=t.rowHeight,s=t.squareSize,l=t.radius,f=t.xTranslate,h=0;return this.serializedSubDomains=[],r.cols.map(function(d,m){m===1&&e.labels.push(makeText("domain-name",f,-12,getMonthName(n,!0).toUpperCase(),{fontSize:9})),d.map(function(b,w){if(b.fill){var _={"data-date":b.yyyyMmDd,"data-value":b.dataValue,"data-day":w},y=heatSquare("day",f,h,s,l,b.fill,_);e.serializedSubDomains.push(y)}h+=a}),h=0,f+=o}),this.serializedSubDomains},animateElements:function(r){if(r)return[]}},barGraph:{layerClass:function(){return"dataset-units dataset-bars dataset-"+this.constants.index},makeElements:function(r){var e=this.constants;return this.unitType="bar",this.units=r.yPositions.map(function(t,n){return datasetBar(r.xPositions[n],t,r.barWidth,e.color,r.labels[n],n,r.offsets[n],{zeroLine:r.zeroLine,barsWidth:r.barsWidth,minHeight:e.minHeight})}),this.units},animateElements:function(r){var e=r.xPositions,t=r.yPositions,n=r.offsets,o=r.labels,a=this.oldData.xPositions,s=this.oldData.yPositions,l=this.oldData.offsets,f=this.oldData.labels,h=equilizeNoOfElements(a,e),d=_slicedToArray$3(h,2);a=d[0],e=d[1];var m=equilizeNoOfElements(s,t),b=_slicedToArray$3(m,2);s=b[0],t=b[1];var w=equilizeNoOfElements(l,n),_=_slicedToArray$3(w,2);l=_[0],n=_[1];var y=equilizeNoOfElements(f,o),v=_slicedToArray$3(y,2);f=v[0],o=v[1],this.render({xPositions:a,yPositions:s,offsets:l,labels:o,zeroLine:this.oldData.zeroLine,barsWidth:this.oldData.barsWidth,barWidth:this.oldData.barWidth});var A=[];return this.store.map(function(L,D){A=A.concat(animateBar(L,e[D],t[D],r.barWidth,n[D],{zeroLine:r.zeroLine}))}),A}},lineGraph:{layerClass:function(){return"dataset-units dataset-line dataset-"+this.constants.index},makeElements:function(r){var e=this.constants;return this.unitType="dot",this.paths={},e.hideLine||(this.paths=getPaths(r.xPositions,r.yPositions,e.color,{heatline:e.heatline,regionFill:e.regionFill,spline:e.spline},{svgDefs:e.svgDefs,zeroLine:r.zeroLine})),this.units=[],e.hideDots||(this.units=r.yPositions.map(function(t,n){return datasetDot(r.xPositions[n],t,r.radius,e.color,e.valuesOverPoints?r.values[n]:"",n)})),Object.values(this.paths).concat(this.units)},animateElements:function(r){var e=r.xPositions,t=r.yPositions,n=r.values,o=this.oldData.xPositions,a=this.oldData.yPositions,s=this.oldData.values,l=equilizeNoOfElements(o,e),f=_slicedToArray$3(l,2);o=f[0],e=f[1];var h=equilizeNoOfElements(a,t),d=_slicedToArray$3(h,2);a=d[0],t=d[1];var m=equilizeNoOfElements(s,n),b=_slicedToArray$3(m,2);s=b[0],n=b[1],this.render({xPositions:o,yPositions:a,values:n,zeroLine:this.oldData.zeroLine,radius:this.oldData.radius});var w=[];return Object.keys(this.paths).length&&(w=w.concat(animatePath(this.paths,e,t,r.zeroLine,this.constants.spline))),this.units.length&&this.units.map(function(_,y){w=w.concat(animateDot(_,e[y],t[y]))}),w}}},_createClass=function(){function r(e,t){for(var n=0;n0?t.formattedLabels[l]:t.state.labels[l])+": ",w=n.sliceTotals[l]/n.grandTotal;t.tip.setValues(d,m,{name:b,value:(100*w).toFixed(1)+"%"}),t.tip.showTip()}})}}]),e}(AggregationChart),_createClass$5=function(){function r(e,t){for(var n=0;nthis.width?this.center.x:this.center.y;var o=this.radius,a=this.clockWise,s=n.slicesProperties||[];n.sliceStrings=[],n.slicesProperties=[];var l=180-this.config.startAngle;n.sliceTotals.map(function(f,h){var d=l,m=f/n.grandTotal*FULL_ANGLE,b=m>180?1:0,w=a?-m:m,_=l+=w,y=getPositionByAngle(d,o),v=getPositionByAngle(_,o),A=t.init&&s[h],L=void 0,D=void 0;t.init?(L=A?A.startPosition:y,D=A?A.endPosition:y):(L=y,D=v);var B=m===360?makeCircleStr(L,D,t.center,t.radius,a,b):makeArcPathStr(L,D,t.center,t.radius,a,b);n.sliceStrings.push(B),n.slicesProperties.push({startPosition:y,endPosition:v,value:f,total:n.grandTotal,startAngle:d,endAngle:_,angle:w})}),this.init=0}},{key:"setupComponents",value:function(){var t=this.state,n=[["pieSlices",{},(function(){return{sliceStrings:t.sliceStrings,colors:this.colors}}).bind(this)]];this.components=new Map(n.map(function(o){var a=getComponent.apply(void 0,_toConsumableArray$2(o));return[o[0],a]}))}},{key:"calTranslateByAngle",value:function(t){var n=this.radius,o=this.hoverRadio,a=getPositionByAngle(t.startAngle+t.angle/2,n);return"translate3d("+a.x*o+"px,"+a.y*o+"px,0)"}},{key:"hoverSlice",value:function(t,n,o,a){if(t){var s=this.colors[n];if(o){transform(t,this.calTranslateByAngle(this.state.slicesProperties[n])),t.style.fill=lightenDarkenColor(s,50);var l=getOffset(this.svg),f=a.pageX-l.left+10,h=a.pageY-l.top-10,d=(this.formatted_labels&&this.formatted_labels.length>0?this.formatted_labels[n]:this.state.labels[n])+": ",m=(100*this.state.sliceTotals[n]/this.state.grandTotal).toFixed(1);this.tip.setValues(f,h,{name:d,value:m+"%"}),this.tip.showTip()}else transform(t,"translate3d(0,0,0)"),this.tip.hideTip(),t.style.fill=s}}},{key:"bindTooltip",value:function(){this.container.addEventListener("mousemove",this.mouseMove),this.container.addEventListener("mouseleave",this.mouseLeave)}},{key:"mouseMove",value:function(t){var n=t.target,o=this.components.get("pieSlices").store,a=this.curActiveSliceIndex,s=this.curActiveSlice;if(o.includes(n)){var l=o.indexOf(n);this.hoverSlice(s,a,!1),this.curActiveSlice=n,this.curActiveSliceIndex=l,this.hoverSlice(n,l,!0,t)}else this.mouseLeave()}},{key:"mouseLeave",value:function(){this.hoverSlice(this.curActiveSlice,this.curActiveSliceIndex,!1)}}]),e}(AggregationChart),_slicedToArray$4=function(){function r(e,t){var n=[],o=!0,a=!1,s=void 0;try{for(var l,f=e[Symbol.iterator]();!(o=(l=f.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(h){a=!0,s=h}finally{try{!o&&f.return&&f.return()}finally{if(a)throw s}}return n}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return r(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_createClass$6=function(){function r(e,t){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:this.data;if(t.start&&t.end&&t.start>t.end)throw new Error("Start date cannot be greater than end date.");if(t.start||(t.start=new Date,t.start.setFullYear(t.start.getFullYear()-1)),t.end||(t.end=new Date),t.dataPoints=t.dataPoints||{},parseInt(Object.keys(t.dataPoints)[0])>1e5){var n={};Object.keys(t.dataPoints).forEach(function(o){var a=new Date(o*NO_OF_MILLIS);n[getYyyyMmDd(a)]=t.dataPoints[o]}),t.dataPoints=n}return t}},{key:"calc",value:function(){var t=this.state;t.start=clone(this.data.start),t.end=clone(this.data.end),t.firstWeekStart=clone(t.start),t.noOfWeeks=getWeeksBetween(t.start,t.end),t.distribution=calcDistribution(Object.values(this.data.dataPoints),HEATMAP_DISTRIBUTION_SIZE),t.domainConfigs=this.getDomains()}},{key:"setupComponents",value:function(){var t=this,n=this.state,o=this.discreteDomains?0:1,a=n.domainConfigs.map(function(l,f){return["heatDomain",{index:l.index,colWidth:COL_WIDTH,rowHeight:ROW_HEIGHT,squareSize:HEATMAP_SQUARE_SIZE,radius:t.rawChartArgs.radius||0,xTranslate:n.domainConfigs.filter(function(h,d){return d1&&arguments[1]!==void 0?arguments[1]:"",o=[t.getMonth(),t.getFullYear()],a=o[0],s=o[1],l=setDayToSunday(t),f={index:a,cols:[]};addDays(n=clone(n)||getLastDateInMonth(a,s),1);for(var h=getWeeksBetween(l,n),d=[],m=void 0,b=0;b2&&arguments[2]!==void 0&&arguments[2],a=this.state,s=clone(t),l=[],f=0;f=a.start&&s<=a.end;o||s.getMonth()!==n||!d?h.yyyyMmDd=getYyyyMmDd(s):h=this.getSubDomainConfig(s),l.push(h)}return l}},{key:"getSubDomainConfig",value:function(t){var n=getYyyyMmDd(t),o=this.data.dataPoints[n];return{yyyyMmDd:n,dataValue:o||0,fill:this.colors[getMaxCheckpoint(o,this.state.distribution)]}}}]),e}(BaseChart),_createClass$7=function(){function r(e,t){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:this.data,this.type)}},{key:"prepareFirstData",value:function(){return zeroDataPrep(arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.data)}},{key:"calc",value:function(){var t=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.calcXPositions(),t||this.calcYAxisParameters(this.getAllYValues(),this.type==="line"),this.makeDataByIndex()}},{key:"calcXPositions",value:function(){var t=this.state,n=this.data.labels;t.datasetLength=n.length,t.unitWidth=this.width/t.datasetLength,t.xOffset=t.unitWidth/2,t.xAxis={labels:n,positions:n.map(function(o,a){return floatTwo(t.xOffset+a*t.unitWidth)})}}},{key:"calcYAxisParameters",value:function(t){var n=calcChartIntervals(t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:"false"),o=this.height/getValueRange(n),a=getIntervalSize(n)*o,s=this.height-getZeroIndex(n)*a;this.state.yAxis={labels:n,positions:n.map(function(l){return s-l*o}),scaleMultiplier:o,zeroLine:s},this.calcDatasetPoints(),this.calcYExtremes(),this.calcYRegions()}},{key:"calcDatasetPoints",value:function(){var t=this.state,n=function(o){return o.map(function(a){return scale(a,t.yAxis)})};t.datasets=this.data.datasets.map(function(o,a){var s=o.values,l=o.cumulativeYs||[];return{name:o.name&&o.name.replace(/<|>|&/g,function(f){return f=="&"?"&":f=="<"?"<":">"}),index:a,chartType:o.chartType,values:s,yPositions:n(s),cumulativeYs:l,cumulativeYPos:n(l)}})}},{key:"calcYExtremes",value:function(){var t=this.state;if(this.barOptions.stacked)return void(t.yExtremes=t.datasets[t.datasets.length-1].cumulativeYPos);t.yExtremes=new Array(t.datasetLength).fill(9999),t.datasets.map(function(n){n.yPositions.map(function(o,a){ogetTopOffset(o)?t.mapTooltipXPosition(s):t.tip.hideTip()})}},{key:"mapTooltipXPosition",value:function(t){var n=this.state;if(n.yExtremes){var o=getClosestInArray(t,n.xAxis.positions,!0);if(o>=0){var a=this.dataByIndex[o];this.tip.setValues(a.xPos+this.tip.offset.x,a.yExtreme+this.tip.offset.y,{name:a.formattedLabel,value:""},a.values,o),this.tip.showTip()}}}},{key:"renderLegend",value:function(){var t=this,n=this.data;n.datasets.length>1&&(this.legendArea.textContent="",n.datasets.map(function(o,a){var s=AXIS_LEGEND_BAR_SIZE,l=legendBar(s*a,"0",s,t.colors[a],o.name,t.config.truncateLegends);t.legendArea.appendChild(l)}))}},{key:"makeOverlay",value:function(){var t=this;if(this.init)return void(this.init=0);this.overlayGuides&&this.overlayGuides.forEach(function(n){var o=n.overlay;o.parentNode.removeChild(o)}),this.overlayGuides=this.dataUnitComponents.map(function(n){return{type:n.unitType,overlay:void 0,units:n.units}}),this.state.currentIndex===void 0&&(this.state.currentIndex=this.state.datasetLength-1),this.overlayGuides.map(function(n){var o=n.units[t.state.currentIndex];n.overlay=makeOverlay[n.type](o),t.drawArea.appendChild(n.overlay)})}},{key:"updateOverlayGuides",value:function(){this.overlayGuides&&this.overlayGuides.forEach(function(t){var n=t.overlay;n.parentNode.removeChild(n)})}},{key:"bindOverlay",value:function(){var t=this;this.parent.addEventListener("data-select",function(){t.updateOverlay()})}},{key:"bindUnits",value:function(){var t=this;this.dataUnitComponents.map(function(n){n.units.map(function(o){o.addEventListener("click",function(){var a=o.getAttribute("data-point-index");t.setCurrentDataPoint(a)})})}),this.tip.container.addEventListener("click",function(){var n=t.tip.container.getAttribute("data-point-index");t.setCurrentDataPoint(n)})}},{key:"updateOverlay",value:function(){var t=this;this.overlayGuides.map(function(n){var o=n.units[t.state.currentIndex];updateOverlay[n.type](o,n.overlay)})}},{key:"onLeftArrow",value:function(){this.setCurrentDataPoint(this.state.currentIndex-1)}},{key:"onRightArrow",value:function(){this.setCurrentDataPoint(this.state.currentIndex+1)}},{key:"getDataPoint",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.state.currentIndex,n=this.state;return{index:t,label:n.xAxis.labels[t],values:n.datasets.map(function(o){return o.values[t]})}}},{key:"setCurrentDataPoint",value:function(t){var n=this.state;(t=parseInt(t))<0&&(t=0),t>=n.xAxis.labels.length&&(t=n.xAxis.labels.length-1),t!==n.currentIndex&&(n.currentIndex=t,fire(this.parent,"data-select",this.getDataPoint()))}},{key:"addDataPoint",value:function(t,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.state.datasetLength;_get$3(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addDataPoint",this).call(this,t,n,o),this.data.labels.splice(o,0,t),this.data.datasets.map(function(a,s){a.values.splice(o,0,n[s])}),this.update(this.data)}},{key:"removeDataPoint",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.state.datasetLength-1;this.data.labels.length<=1||(_get$3(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeDataPoint",this).call(this,t),this.data.labels.splice(t,1),this.data.datasets.map(function(n){n.values.splice(t,1)}),this.update(this.data))}},{key:"updateDataset",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.data.datasets[n].values=t,this.update(this.data)}},{key:"updateDatasets",value:function(t){this.data.datasets.map(function(n,o){t[o]&&(n.values=t[o])}),this.update(this.data)}}]),e}(BaseChart),_createClass$8=function(){function r(e,t){for(var n=0;nthis.width?this.center.x-this.strokeWidth/2:this.center.y-this.strokeWidth/2;var o=this.radius,a=this.clockWise,s=n.slicesProperties||[];n.sliceStrings=[],n.slicesProperties=[];var l=180-this.config.startAngle;n.sliceTotals.map(function(f,h){var d=l,m=f/n.grandTotal*FULL_ANGLE,b=m>180?1:0,w=a?-m:m,_=l+=w,y=getPositionByAngle(d,o),v=getPositionByAngle(_,o),A=t.init&&s[h],L=void 0,D=void 0;t.init?(L=A?A.startPosition:y,D=A?A.endPosition:y):(L=y,D=v);var B=m===360?makeStrokeCircleStr(L,D,t.center,t.radius,t.clockWise,b):makeArcStrokePathStr(L,D,t.center,t.radius,t.clockWise,b);n.sliceStrings.push(B),n.slicesProperties.push({startPosition:y,endPosition:v,value:f,total:n.grandTotal,startAngle:d,endAngle:_,angle:w})}),this.init=0}},{key:"setupComponents",value:function(){var t=this.state,n=[["donutSlices",{},(function(){return{sliceStrings:t.sliceStrings,colors:this.colors,strokeWidth:this.strokeWidth}}).bind(this)]];this.components=new Map(n.map(function(o){var a=getComponent.apply(void 0,_toConsumableArray$7(o));return[o[0],a]}))}},{key:"calTranslateByAngle",value:function(t){var n=this.radius,o=this.hoverRadio,a=getPositionByAngle(t.startAngle+t.angle/2,n);return"translate3d("+a.x*o+"px,"+a.y*o+"px,0)"}},{key:"hoverSlice",value:function(t,n,o,a){if(t){var s=this.colors[n];if(o){transform(t,this.calTranslateByAngle(this.state.slicesProperties[n])),t.style.stroke=lightenDarkenColor(s,50);var l=getOffset(this.svg),f=a.pageX-l.left+10,h=a.pageY-l.top-10,d=(this.formatted_labels&&this.formatted_labels.length>0?this.formatted_labels[n]:this.state.labels[n])+": ",m=(100*this.state.sliceTotals[n]/this.state.grandTotal).toFixed(1);this.tip.setValues(f,h,{name:d,value:m+"%"}),this.tip.showTip()}else transform(t,"translate3d(0,0,0)"),this.tip.hideTip(),t.style.stroke=s}}},{key:"bindTooltip",value:function(){this.container.addEventListener("mousemove",this.mouseMove),this.container.addEventListener("mouseleave",this.mouseLeave)}},{key:"mouseMove",value:function(t){var n=t.target,o=this.components.get("donutSlices").store,a=this.curActiveSliceIndex,s=this.curActiveSlice;if(o.includes(n)){var l=o.indexOf(n);this.hoverSlice(s,a,!1),this.curActiveSlice=n,this.curActiveSliceIndex=l,this.hoverSlice(n,l,!0,t)}else this.mouseLeave()}},{key:"mouseLeave",value:function(){this.hoverSlice(this.curActiveSlice,this.curActiveSliceIndex,!1)}}]),e}(AggregationChart),chartTypes={bar:AxisChart,line:AxisChart,percentage:PercentageChart,heatmap:Heatmap,pie:PieChart,donut:DonutChart},Chart=function r(e,t){return _classCallCheck(this,r),getChartByType(t.type,e,t)};function create_fragment$2(r){let e,t,n;return{c(){e=element("div")},l(o){e=claim_element(o,"DIV",{}),children(e).forEach(detach)},m(o,a){insert_hydration(o,e,a),r[18](e),t||(n=listen(e,"data-select",r[17]),t=!0)},p:noop$2,i:noop$2,o:noop$2,d(o){o&&detach(e),r[18](null),t=!1,n()}}}function instance$2(r,e,t){let{data:n={labels:[],datasets:[{values:[]}],yMarkers:{},yRegions:[]}}=e,{title:o=""}=e,{type:a="line"}=e,{height:s=300}=e,{animate:l=!0}=e,{axisOptions:f={}}=e,{barOptions:h={}}=e,{lineOptions:d={}}=e,{tooltipOptions:m={}}=e,{colors:b=[]}=e,{valuesOverPoints:w=0}=e,{isNavigable:_=!1}=e,{maxSlices:y=3}=e,v=null,A;function L(k){return function(...M){if(v)return k(...M)}}const D=L((k,R,M)=>v.addDataPoint(k,R,M)),B=L(k=>v.removeDataPoint(k)),x=L(()=>v.export()),S=L(k=>v.update(k));onMount(()=>{v=new Chart(A,{data:n,title:o,type:a,height:s,animate:l,colors:b,axisOptions:f,barOptions:h,lineOptions:d,tooltipOptions:m,valuesOverPoints:w,isNavigable:_,maxSlices:y})}),onDestroy(()=>{v=null});function O(k){bubble.call(this,r,k)}function N(k){binding_callbacks[k?"unshift":"push"](()=>{A=k,t(0,A)})}return r.$$set=k=>{"data"in k&&t(1,n=k.data),"title"in k&&t(2,o=k.title),"type"in k&&t(3,a=k.type),"height"in k&&t(4,s=k.height),"animate"in k&&t(5,l=k.animate),"axisOptions"in k&&t(6,f=k.axisOptions),"barOptions"in k&&t(7,h=k.barOptions),"lineOptions"in k&&t(8,d=k.lineOptions),"tooltipOptions"in k&&t(9,m=k.tooltipOptions),"colors"in k&&t(10,b=k.colors),"valuesOverPoints"in k&&t(11,w=k.valuesOverPoints),"isNavigable"in k&&t(12,_=k.isNavigable),"maxSlices"in k&&t(13,y=k.maxSlices)},r.$$.update=()=>{r.$$.dirty&2&&S(n)},[A,n,o,a,s,l,f,h,d,m,b,w,_,y,D,B,x,O,N]}class Base extends SvelteComponent{constructor(e){super(),init(this,e,instance$2,create_fragment$2,safe_not_equal,{data:1,title:2,type:3,height:4,animate:5,axisOptions:6,barOptions:7,lineOptions:8,tooltipOptions:9,colors:10,valuesOverPoints:11,isNavigable:12,maxSlices:13,addDataPoint:14,removeDataPoint:15,exportChart:16})}get addDataPoint(){return this.$$.ctx[14]}get removeDataPoint(){return this.$$.ctx[15]}get exportChart(){return this.$$.ctx[16]}}const Base$1=Base;function create_if_block_1(r){let e,t,n,o,a,s,l;return s=new SubmitReview({props:{reloadStats:r[4]}}),{c(){e=element("div"),t=element("h3"),n=text("Be the first to review this website"),o=space(),a=element("div"),create_component(s.$$.fragment),this.h()},l(f){e=claim_element(f,"DIV",{class:!0});var h=children(e);t=claim_element(h,"H3",{class:!0});var d=children(t);n=claim_text(d,"Be the first to review this website"),d.forEach(detach),o=claim_space(h),a=claim_element(h,"DIV",{class:!0});var m=children(a);claim_component(s.$$.fragment,m),m.forEach(detach),h.forEach(detach),this.h()},h(){attr(t,"class","text-3xl text-center"),attr(a,"class","card-actions justify-end"),attr(e,"class","flex flex-col gap-28 items-center")},m(f,h){insert_hydration(f,e,h),append_hydration(e,t),append_hydration(t,n),append_hydration(e,o),append_hydration(e,a),mount_component(s,a,null),l=!0},p:noop$2,i(f){l||(transition_in(s.$$.fragment,f),l=!0)},o(f){transition_out(s.$$.fragment,f),l=!1},d(f){f&&detach(e),destroy_component(s)}}}function create_if_block$1(r){let e,t,n,o,a,s,l,f,h,d,m,b,w,_,y,v,A,L;return n=new Base$1({props:{data:r[3],type:"donut",height:300,width:300}}),y=new Review({props:{url:r[1]}}),A=new SubmitReview({props:{reloadStats:r[4]}}),{c(){e=element("div"),t=element("div"),create_component(n.$$.fragment),o=space(),a=element("div"),s=space(),l=element("br"),f=space(),h=element("div"),d=element("div"),m=element("h2"),b=text("What people say"),w=space(),_=element("div"),create_component(y.$$.fragment),v=space(),create_component(A.$$.fragment),this.h()},l(D){e=claim_element(D,"DIV",{class:!0});var B=children(e);t=claim_element(B,"DIV",{class:!0});var x=children(t);claim_component(n.$$.fragment,x),o=claim_space(x),a=claim_element(x,"DIV",{}),children(a).forEach(detach),x.forEach(detach),B.forEach(detach),s=claim_space(D),l=claim_element(D,"BR",{}),f=claim_space(D),h=claim_element(D,"DIV",{class:!0});var S=children(h);d=claim_element(S,"DIV",{class:!0});var O=children(d);m=claim_element(O,"H2",{class:!0});var N=children(m);b=claim_text(N,"What people say"),N.forEach(detach),w=claim_space(O),_=claim_element(O,"DIV",{class:!0});var k=children(_);claim_component(y.$$.fragment,k),v=claim_space(k),claim_component(A.$$.fragment,k),k.forEach(detach),O.forEach(detach),S.forEach(detach),this.h()},h(){attr(t,"class","block w-auto h-max"),attr(e,"class","justify-center"),attr(m,"class","px-5 text-xl font-bold text-center dark:text-white"),attr(_,"class","card-actions mt-4 justify-center"),attr(d,"class","p-4"),attr(h,"class","w-auto shadow-lg dark:shadow-green-300/30 rounded-lg")},m(D,B){insert_hydration(D,e,B),append_hydration(e,t),mount_component(n,t,null),append_hydration(t,o),append_hydration(t,a),insert_hydration(D,s,B),insert_hydration(D,l,B),insert_hydration(D,f,B),insert_hydration(D,h,B),append_hydration(h,d),append_hydration(d,m),append_hydration(m,b),append_hydration(d,w),append_hydration(d,_),mount_component(y,_,null),append_hydration(_,v),mount_component(A,_,null),L=!0},p(D,B){const x={};B&8&&(x.data=D[3]),n.$set(x);const S={};B&2&&(S.url=D[1]),y.$set(S)},i(D){L||(transition_in(n.$$.fragment,D),transition_in(y.$$.fragment,D),transition_in(A.$$.fragment,D),L=!0)},o(D){transition_out(n.$$.fragment,D),transition_out(y.$$.fragment,D),transition_out(A.$$.fragment,D),L=!1},d(D){D&&detach(e),destroy_component(n),D&&detach(s),D&&detach(l),D&&detach(f),D&&detach(h),destroy_component(y),destroy_component(A)}}}function create_fragment$1(r){let e,t,n,o,a,s,l,f,h,d;t=new Header({});const m=[create_if_block$1,create_if_block_1],b=[];function w(_,y){return _[2]&&_[2].length>0?0:_[2]&&_[2].length<=0||!_[2]?1:-1}return~(f=w(r))&&(h=b[f]=m[f](r)),{c(){e=element("div"),create_component(t.$$.fragment),n=space(),o=element("div"),a=text(r[0]),s=space(),l=element("div"),h&&h.c(),this.h()},l(_){e=claim_element(_,"DIV",{});var y=children(e);claim_component(t.$$.fragment,y),n=claim_space(y),o=claim_element(y,"DIV",{class:!0});var v=children(o);a=claim_text(v,r[0]),v.forEach(detach),s=claim_space(y),l=claim_element(y,"DIV",{class:!0});var A=children(l);h&&h.l(A),A.forEach(detach),y.forEach(detach),this.h()},h(){attr(o,"class","text-center text-xl text-bold dark:text-white p-2 m-5 border border-zinc-600 dark:border-green-400 rounded-full flex justify-center items-center"),attr(l,"class","bg-white text-black dark:bg-gray-900 dark:text-white")},m(_,y){insert_hydration(_,e,y),mount_component(t,e,null),append_hydration(e,n),append_hydration(e,o),append_hydration(o,a),append_hydration(e,s),append_hydration(e,l),~f&&b[f].m(l,null),d=!0},p(_,[y]){(!d||y&1)&&set_data(a,_[0]);let v=f;f=w(_),f===v?~f&&b[f].p(_,y):(h&&(group_outros(),transition_out(b[v],1,1,()=>{b[v]=null}),check_outros()),~f?(h=b[f],h?h.p(_,y):(h=b[f]=m[f](_),h.c()),transition_in(h,1),h.m(l,null)):h=null)},i(_){d||(transition_in(t.$$.fragment,_),transition_in(h),d=!0)},o(_){transition_out(t.$$.fragment,_),transition_out(h),d=!1},d(_){_&&detach(e),destroy_component(t),~f&&b[f].d()}}}function instance$1(r,e,t){let n,o,a=[],s;const l=async()=>{var w;const[b]=await chrome.tabs.query({active:!0,currentWindow:!0});t(1,o=(w=b.url)==null?void 0:w.toLocaleLowerCase()),console.log(o)};let f=async()=>{let b="";jwtToken.subscribe(v=>b=v);const w={method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${b}`}},y=await(await fetch(`${PUBLIC_GATEWAY_URL}/stats?siteUrl=${o}`,w)).json();t(2,a=y.payload),console.log(a)};const h=async()=>{t(3,s={labels:[],datasets:[{values:[]}]}),a&&a.forEach(b=>{s.labels.push(b.siteSafety),s.datasets[0].values.push(Number(b.count))})};let d=writable(!1);const m=async()=>{d.set(!get_store_value(d)),console.log(d),await f(),await h(),d.set(!1)};return onMount(async()=>{await l(),await f(),await h(),t(0,n=(o==null?void 0:o.substring(0,23))+"...")}),m(),get_store_value(d)&&m(),[n,o,a,s,m]}class Dashboard extends SvelteComponent{constructor(e){super(),init(this,e,instance$1,create_fragment$1,safe_not_equal,{})}}function create_else_block(r){let e,t;return e=new Dashboard({}),{c(){create_component(e.$$.fragment)},l(n){claim_component(e.$$.fragment,n)},m(n,o){mount_component(e,n,o),t=!0},p:noop$2,i(n){t||(transition_in(e.$$.fragment,n),t=!0)},o(n){transition_out(e.$$.fragment,n),t=!1},d(n){destroy_component(e,n)}}}function create_if_block(r){let e,t,n,o,a,s,l,f,h,d,m,b,w,_,y,v,A,L,D,B;return t=new Header({}),{c(){e=element("div"),create_component(t.$$.fragment),n=space(),o=element("div"),a=element("img"),l=space(),f=element("div"),h=element("h1"),d=text("Welcome "),m=element("br"),b=text(" to Netsepio"),w=space(),_=element("div"),y=element("a"),v=element("button"),A=text("Dashboard"),this.h()},l(x){e=claim_element(x,"DIV",{});var S=children(e);claim_component(t.$$.fragment,S),n=claim_space(S),o=claim_element(S,"DIV",{class:!0});var O=children(o);a=claim_element(O,"IMG",{src:!0,alt:!0,class:!0}),l=claim_space(O),f=claim_element(O,"DIV",{class:!0});var N=children(f);h=claim_element(N,"H1",{class:!0});var k=children(h);d=claim_text(k,"Welcome "),m=claim_element(k,"BR",{}),b=claim_text(k," to Netsepio"),k.forEach(detach),w=claim_space(N),_=claim_element(N,"DIV",{class:!0});var R=children(_);y=claim_element(R,"A",{href:!0});var M=children(y);v=claim_element(M,"BUTTON",{class:!0});var q=children(v);A=claim_text(q,"Dashboard"),q.forEach(detach),M.forEach(detach),R.forEach(detach),N.forEach(detach),O.forEach(detach),S.forEach(detach),this.h()},h(){src_url_equal(a.src,s=src)||attr(a,"src",s),attr(a,"alt","NetSepio logo"),attr(a,"class","w-1/2 mx-auto block"),attr(h,"class","text-4xl font-bold text-center"),attr(v,"class","btn btn-wide mt-3"),attr(y,"href","/"),attr(_,"class","mt-2"),attr(f,"class",""),attr(o,"class","flex flex-col justify-evenly items-center w-full min-h-[490px] max-h-max mx-auto")},m(x,S){insert_hydration(x,e,S),mount_component(t,e,null),append_hydration(e,n),append_hydration(e,o),append_hydration(o,a),append_hydration(o,l),append_hydration(o,f),append_hydration(f,h),append_hydration(h,d),append_hydration(h,m),append_hydration(h,b),append_hydration(f,w),append_hydration(f,_),append_hydration(_,y),append_hydration(y,v),append_hydration(v,A),L=!0,D||(B=listen(v,"click",r[1]),D=!0)},p:noop$2,i(x){L||(transition_in(t.$$.fragment,x),L=!0)},o(x){transition_out(t.$$.fragment,x),L=!1},d(x){x&&detach(e),destroy_component(t),D=!1,B()}}}function create_fragment(r){let e,t,n,o;const a=[create_if_block,create_else_block],s=[];function l(f,h){return f[0]===0?0:1}return e=l(r),t=s[e]=a[e](r),{c(){t.c(),n=empty$1()},l(f){t.l(f),n=empty$1()},m(f,h){s[e].m(f,h),insert_hydration(f,n,h),o=!0},p(f,[h]){let d=e;e=l(f),e===d?s[e].p(f,h):(group_outros(),transition_out(s[d],1,1,()=>{s[d]=null}),check_outros(),t=s[e],t?t.p(f,h):(t=s[e]=a[e](f),t.c()),transition_in(t,1),t.m(n.parentNode,n))},i(f){o||(transition_in(t),o=!0)},o(f){transition_out(t),o=!1},d(f){s[e].d(f),f&&detach(n)}}}let src="/logo-3.png";function instance(r,e,t){let n;return component_subscribe(r,onboardingStepsLeft,a=>t(0,n=a)),[n,()=>{onboardingStepsLeft.set(3)}]}class Page extends SvelteComponent{constructor(e){super(),init(this,e,instance,create_fragment,safe_not_equal,{})}}export{Page as component,_page as universal}; diff --git a/build/app/immutable/nodes/2.fcc26c31.js b/build/app/immutable/nodes/2.fcc26c31.js new file mode 100644 index 000000000..873ff88a5 --- /dev/null +++ b/build/app/immutable/nodes/2.fcc26c31.js @@ -0,0 +1,43 @@ +import{S as SvelteComponent,i as init,s as safe_not_equal,k as element,q as text,l as claim_element,m as children,r as claim_text,h as detach,n as attr,b as insert_hydration,D as append_hydration,J as listen,H as noop$2,a as space,y as create_component,c as claim_space,z as claim_component,K as toggle_class,A as mount_component,g as transition_in,d as transition_out,B as destroy_component,L as run_all,o as onMount,M as select_value,N as to_number,O as add_render_callback,P as select_option,Q as set_input_value,R as onDestroy,T as bubble,w as binding_callbacks,u as set_data,v as group_outros,f as check_outros,e as empty$1,I as component_subscribe,U as src_url_equal}from"../chunks/index.f3b06f47.js";import{H as Header}from"../chunks/Header.b7ab37a3.js";import{g as getDefaultExportFromCjs,c as commonjsGlobal,a as getAugmentedNamespace,j as jwtToken,o as onboardingStepsLeft}from"../chunks/store.26750aee.js";import{P as PUBLIC_NFT_STORAGE_API_KEY,a as PUBLIC_GATEWAY_URL}from"../chunks/public.02ab71de.js";import{c as checkAuth}from"../chunks/secondAuth.f9ee4b2a.js";import{L as Loader}from"../chunks/Loader.d36557e7.js";const prerender=!0,_page=Object.freeze(Object.defineProperty({__proto__:null,prerender},Symbol.toStringTag,{value:"Module"}));function create_fragment$4(r){let e,t,n,o,a;return{c(){e=element("div"),t=element("button"),n=text("Reviews"),this.h()},l(s){e=claim_element(s,"DIV",{class:!0});var l=children(e);t=claim_element(l,"BUTTON",{class:!0});var f=children(t);n=claim_text(f,"Reviews"),f.forEach(detach),l.forEach(detach),this.h()},h(){attr(t,"class","btn px-4 py-2 rounded-md"),attr(e,"class","grid flex-grow")},m(s,l){insert_hydration(s,e,l),append_hydration(e,t),append_hydration(t,n),o||(a=listen(t,"click",r[0]),o=!0)},p:noop$2,i:noop$2,o:noop$2,d(s){s&&detach(e),o=!1,a()}}}function instance$4(r,e,t){let{urlWithoutProtocol:n}=e;function o(){window.open(`https://testnet.netsepio.com/#/reviews/${n}`,"_blank")}return r.$$set=a=>{"urlWithoutProtocol"in a&&t(1,n=a.urlWithoutProtocol)},[o,n]}class Review extends SvelteComponent{constructor(e){super(),init(this,e,instance$4,create_fragment$4,safe_not_equal,{urlWithoutProtocol:1})}}function getIterator(r){if(typeof r.next=="function")return r;if(typeof r[Symbol.iterator]=="function")return r[Symbol.iterator]();if(typeof r[Symbol.asyncIterator]=="function")return r[Symbol.asyncIterator]();throw new TypeError('"values" does not to conform to any of the iterator or iterable protocols')}function defer(){let r,e;return{promise:new Promise((n,o)=>{e=n,r=o}),reject:r,resolve:e}}function _transform(r,e,t){const n=getIterator(t),o=[],a=[];let s=!1,l=!1,f=0,h=null;function d(){for(;a.length>0&&o.length>0;){const{resolve:y}=a.shift(),E=o.shift();y({done:!1,value:E})}for(;a.length>0&&f===0&&s;){const{resolve:y,reject:E}=a.shift();h?(E(h),h=null):y({done:!0,value:void 0})}}async function m(){if(s){d();return}if(!l&&!(f+o.length>=r)){l=!0,f++;try{const{done:y,value:E}=await n.next();y?(s=!0,f--,d()):_(E)}catch(y){s=!0,f--,h=y,d()}l=!1,m()}}async function _(y){try{const E=await e(y);o.push(E)}catch(E){s=!0,h=E}f--,d(),m()}async function b(){if(o.length===0){const E=defer();return a.push(E),m(),E.promise}const y=o.shift();return m(),{done:!1,value:y}}const w={next:b,[Symbol.asyncIterator]:()=>w};return w}function transform$1(r,e,t){return e===void 0?(n,o)=>o?transform$1(r,n,o):transform$1(r,n):t===void 0?n=>transform$1(r,e,n):_transform(r,e,t)}var pRetry$2={exports:{}},retry$2={};function RetryOperation(r,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(r)),this._timeouts=r,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var retry_operation=RetryOperation;RetryOperation.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};RetryOperation.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};RetryOperation.prototype.retry=function(r){if(this._timeout&&clearTimeout(this._timeout),!r)return!1;var e=new Date().getTime();if(r&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(r),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(r);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},t),this._options.unref&&this._timer.unref(),!0};RetryOperation.prototype.attempt=function(r,e){this._fn=r,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};RetryOperation.prototype.try=function(r){console.log("Using RetryOperation.try() is deprecated"),this.attempt(r)};RetryOperation.prototype.start=function(r){console.log("Using RetryOperation.start() is deprecated"),this.attempt(r)};RetryOperation.prototype.start=RetryOperation.prototype.try;RetryOperation.prototype.errors=function(){return this._errors};RetryOperation.prototype.attempts=function(){return this._attempts};RetryOperation.prototype.mainError=function(){if(this._errors.length===0)return null;for(var r={},e=null,t=0,n=0;n=t&&(e=o,t=s)}return e};(function(r){var e=retry_operation;r.operation=function(t){var n=r.timeouts(t);return new e(n,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},r.timeouts=function(t){if(t instanceof Array)return[].concat(t);var n={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var o in t)n[o]=t[o];if(n.minTimeout>n.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var a=[],s=0;s{const n=t.retries-(e-1);return r.attemptNumber=e,r.retriesLeft=n,r},isNetworkError=r=>networkErrorMsgs.includes(r),pRetry=(r,e)=>new Promise((t,n)=>{e={onFailedAttempt:()=>{},retries:10,...e};const o=retry.operation(e);o.attempt(async a=>{try{t(await r(a))}catch(s){if(!(s instanceof Error)){n(new TypeError(`Non-error was thrown: "${s}". You should only throw errors.`));return}if(s instanceof AbortError)o.stop(),n(s.originalError);else if(s instanceof TypeError&&!isNetworkError(s.message))o.stop(),n(s);else{decorateErrorWithCounts(s,a,e);try{await e.onFailedAttempt(s)}catch(l){n(l);return}o.retry(s)||n(o.mainError())}}})});pRetry$2.exports=pRetry;pRetry$2.exports.default=pRetry;var AbortError_1=pRetry$2.exports.AbortError=AbortError,pRetryExports=pRetry$2.exports;const pRetry$1=getDefaultExportFromCjs(pRetryExports);var encode_1$1=encode$9,MSB$3=128,REST$3=127,MSBALL$1=~REST$3,INT$1=Math.pow(2,31);function encode$9(r,e,t){if(Number.MAX_SAFE_INTEGER&&r>Number.MAX_SAFE_INTEGER)throw encode$9.bytes=0,new RangeError("Could not encode varint");e=e||[],t=t||0;for(var n=t;r>=INT$1;)e[t++]=r&255|MSB$3,r/=128;for(;r&MSBALL$1;)e[t++]=r&255|MSB$3,r>>>=7;return e[t]=r|0,encode$9.bytes=t-n+1,e}var decode$a=read$1,MSB$2=128,REST$2=127;function read$1(r,n){var t=0,n=n||0,o=0,a=n,s,l=r.length;do{if(a>=l||o>49)throw read$1.bytes=0,new RangeError("Could not decode varint");s=r[a++],t+=o<28?(s&REST$2)<=MSB$2);return read$1.bytes=a-n,t}var N1$1=Math.pow(2,7),N2$1=Math.pow(2,14),N3$1=Math.pow(2,21),N4$1=Math.pow(2,28),N5$1=Math.pow(2,35),N6$1=Math.pow(2,42),N7$1=Math.pow(2,49),N8$1=Math.pow(2,56),N9$1=Math.pow(2,63),length$1=function(r){return r=INT;)e[t++]=r&255|MSB,r/=128;for(;r&MSBALL;)e[t++]=r&255|MSB,r>>>=7;return e[t]=r|0,encode$8.bytes=t-n+1,e}var decode$9=read,MSB$1=128,REST$1=127;function read(r,n){var t=0,n=n||0,o=0,a=n,s,l=r.length;do{if(a>=l)throw read.bytes=0,new RangeError("Could not decode varint");s=r[a++],t+=o<28?(s&REST$1)<=MSB$1);return read.bytes=a-n,t}var N1=Math.pow(2,7),N2=Math.pow(2,14),N3=Math.pow(2,21),N4=Math.pow(2,28),N5=Math.pow(2,35),N6=Math.pow(2,42),N7=Math.pow(2,49),N8=Math.pow(2,56),N9=Math.pow(2,63),length=function(r){return r[_brrp_varint.decode(r,e),_brrp_varint.decode.bytes],encodeTo=(r,e,t=0)=>(_brrp_varint.encode(r,e,t),e),encodingLength=r=>_brrp_varint.encodingLength(r),empty=new Uint8Array(0),fromHex=r=>{const e=r.match(/../g);return e?new Uint8Array(e.map(t=>parseInt(t,16))):empty},equals$1=(r,e)=>{if(r===e)return!0;if(r.byteLength!==e.byteLength)return!1;for(let t=0;t{if(r instanceof Uint8Array&&r.constructor.name==="Uint8Array")return r;if(r instanceof ArrayBuffer)return new Uint8Array(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw new Error("Unknown type, must be binary type")},fromString$3=r=>new TextEncoder().encode(r),toString$1=r=>new TextDecoder().decode(r),create$4=(r,e)=>{const t=e.byteLength,n=encodingLength(r),o=n+encodingLength(t),a=new Uint8Array(o+t);return encodeTo(r,a,0),encodeTo(t,a,n),a.set(e,o),new Digest(r,t,e,a)},decode$7=r=>{const e=coerce(r),[t,n]=decode$8(e),[o,a]=decode$8(e.subarray(n)),s=e.subarray(n+a);if(s.byteLength!==o)throw new Error("Incorrect length");return new Digest(t,o,s,e)},equals=(r,e)=>r===e?!0:r.code===e.code&&r.size===e.size&&equals$1(r.bytes,e.bytes);class Digest{constructor(e,t,n,o){this.code=e,this.size=t,this.digest=n,this.bytes=o}}function base(r,e){if(r.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,C=new Uint8Array(D);T!==N;){for(var A=w[T],S=0,I=D-1;(A!==0||S>>0,C[I]=A%l>>>0,A=A/l>>>0;if(A!==0)throw new Error("Non-zero carry");E=S,T++}for(var L=D-E;L!==D&&C[L]===0;)L++;for(var x=f.repeat(y);L>>0,D=new Uint8Array(N);w[y];){var C=t[w.charCodeAt(y)];if(C===255)return;for(var A=0,S=N-1;(C!==0||A>>0,D[S]=C%256>>>0,C=C/256>>>0;if(C!==0)throw new Error("Non-zero carry");T=A,y++}if(w[y]!==" "){for(var I=N-T;I!==N&&D[I]===0;)I++;for(var L=new Uint8Array(E+(N-I)),x=E;I!==N;)L[x++]=D[I++];return L}}}function b(w){var y=_(w);if(y)return y;throw new Error(`Non-${e} character`)}return{encode:m,decodeUnsafe:_,decode:b}}var src$3=base,_brrp__multiformats_scope_baseX=src$3;class Encoder{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class Decoder{constructor(e,t,n){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return or(this,e)}}class ComposedDecoder{constructor(e){this.decoders=e}or(e){return or(this,e)}decode(e){const t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const or=(r,e)=>new ComposedDecoder({...r.decoders||{[r.prefix]:r},...e.decoders||{[e.prefix]:e}});class Codec{constructor(e,t,n,o){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=o,this.encoder=new Encoder(e,t,n),this.decoder=new Decoder(e,t,o)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const from$1=({name:r,prefix:e,encode:t,decode:n})=>new Codec(r,e,t,n),baseX=({prefix:r,name:e,alphabet:t})=>{const{encode:n,decode:o}=_brrp__multiformats_scope_baseX(t,e);return from$1({prefix:r,name:e,encode:n,decode:a=>coerce(o(a))})},decode$6=(r,e,t,n)=>{const o={};for(let d=0;d=8&&(l-=8,s[h++]=255&f>>l)}if(l>=t||255&f<<8-l)throw new SyntaxError("Unexpected end of data");return s},encode$7=(r,e,t)=>{const n=e[e.length-1]==="=",o=(1<t;)s-=t,a+=e[o&l>>s];if(s&&(a+=e[o&l<from$1({prefix:e,name:r,encode(o){return encode$7(o,n,t)},decode(o){return decode$6(o,n,t,r)}}),base58btc=baseX({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),base58flickr=baseX({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),base58=Object.freeze(Object.defineProperty({__proto__:null,base58btc,base58flickr},Symbol.toStringTag,{value:"Module"})),base32=rfc4648({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),base32upper=rfc4648({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),base32pad=rfc4648({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),base32padupper=rfc4648({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),base32hex=rfc4648({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),base32hexupper=rfc4648({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),base32hexpad=rfc4648({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),base32hexpadupper=rfc4648({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),base32z=rfc4648({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),base32$1=Object.freeze(Object.defineProperty({__proto__:null,base32,base32hex,base32hexpad,base32hexpadupper,base32hexupper,base32pad,base32padupper,base32upper,base32z},Symbol.toStringTag,{value:"Module"}));class CID{constructor(e,t,n,o){this.code=t,this.version=e,this.multihash=n,this.bytes=o,this.byteOffset=o.byteOffset,this.byteLength=o.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:hidden,byteLength:hidden,code:readonly$1,version:readonly$1,multihash:readonly$1,bytes:readonly$1,_baseCache:hidden,asCID:hidden})}toV0(){switch(this.version){case 0:return this;default:{const{code:e,multihash:t}=this;if(e!==DAG_PB_CODE)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==SHA_256_CODE)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return CID.createV0(t)}}}toV1(){switch(this.version){case 0:{const{code:e,digest:t}=this.multihash,n=create$4(e,t);return CID.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&equals(this.multihash,e.multihash)}toString(e){const{bytes:t,version:n,_baseCache:o}=this;switch(n){case 0:return toStringV0(t,o,e||base58btc.encoder);default:return toStringV1(t,o,e||base32.encoder)}}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return deprecate(/^0\.0/,IS_CID_DEPRECATION),!!(e&&(e[cidSymbol]||e.asCID===e))}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof CID)return e;if(e!=null&&e.asCID===e){const{version:t,code:n,multihash:o,bytes:a}=e;return new CID(t,n,o,a||encodeCID(t,n,o.bytes))}else if(e!=null&&e[cidSymbol]===!0){const{version:t,multihash:n,code:o}=e,a=decode$7(n);return CID.create(t,o,a)}else return null}static create(e,t,n){if(typeof t!="number")throw new Error("String codecs are no longer supported");switch(e){case 0:{if(t!==DAG_PB_CODE)throw new Error(`Version 0 CID must use dag-pb (code: ${DAG_PB_CODE}) block encoding`);return new CID(e,t,n,n.bytes)}case 1:{const o=encodeCID(e,t,n.bytes);return new CID(e,t,n,o)}default:throw new Error("Invalid version")}}static createV0(e){return CID.create(0,DAG_PB_CODE,e)}static createV1(e,t){return CID.create(1,e,t)}static decode(e){const[t,n]=CID.decodeFirst(e);if(n.length)throw new Error("Incorrect length");return t}static decodeFirst(e){const t=CID.inspectBytes(e),n=t.size-t.multihashSize,o=coerce(e.subarray(n,n+t.multihashSize));if(o.byteLength!==t.multihashSize)throw new Error("Incorrect length");const a=o.subarray(t.multihashSize-t.digestSize),s=new Digest(t.multihashCode,t.digestSize,a,o);return[t.version===0?CID.createV0(s):CID.createV1(t.codec,s),e.subarray(t.size)]}static inspectBytes(e){let t=0;const n=()=>{const[m,_]=decode$8(e.subarray(t));return t+=_,m};let o=n(),a=DAG_PB_CODE;if(o===18?(o=0,t=0):o===1&&(a=n()),o!==0&&o!==1)throw new RangeError(`Invalid CID version ${o}`);const s=t,l=n(),f=n(),h=t+f,d=h-s;return{version:o,codec:a,multihashCode:l,digestSize:f,multihashSize:d,size:h}}static parse(e,t){const[n,o]=parseCIDtoBytes(e,t),a=CID.decode(o);return a._baseCache.set(n,e),a}}const parseCIDtoBytes=(r,e)=>{switch(r[0]){case"Q":{const t=e||base58btc;return[base58btc.prefix,t.decode(`${base58btc.prefix}${r}`)]}case base58btc.prefix:{const t=e||base58btc;return[base58btc.prefix,t.decode(r)]}case base32.prefix:{const t=e||base32;return[base32.prefix,t.decode(r)]}default:{if(e==null)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[r[0],e.decode(r)]}}},toStringV0=(r,e,t)=>{const{prefix:n}=t;if(n!==base58btc.prefix)throw Error(`Cannot string encode V0 in ${t.name} encoding`);const o=e.get(n);if(o==null){const a=t.encode(r).slice(1);return e.set(n,a),a}else return o},toStringV1=(r,e,t)=>{const{prefix:n}=t,o=e.get(n);if(o==null){const a=t.encode(r);return e.set(n,a),a}else return o},DAG_PB_CODE=112,SHA_256_CODE=18,encodeCID=(r,e,t)=>{const n=encodingLength(r),o=n+encodingLength(e),a=new Uint8Array(o+t.byteLength);return encodeTo(r,a,0),encodeTo(e,a,n),a.set(t,o),a},cidSymbol=Symbol.for("@ipld/js-cid/CID"),readonly$1={writable:!1,configurable:!1,enumerable:!0},hidden={writable:!1,enumerable:!1,configurable:!1},version="0.0.0-dev",deprecate=(r,e)=>{if(r.test(version))console.warn(e);else throw new Error(e)},IS_CID_DEPRECATION=`CID.isCID(v) is deprecated and will be removed in the next major release. +Following code pattern: + +if (CID.isCID(value)) { + doSomethingWithCID(value) +} + +Is replaced with: + +const cid = CID.asCID(value) +if (cid) { + // Make sure to use cid instead of value + doSomethingWithCID(cid) +} +`,typeofs=["string","number","bigint","symbol"],objectTypeNames=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","HTMLElement","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function is(r){if(r===null)return"null";if(r===void 0)return"undefined";if(r===!0||r===!1)return"boolean";const e=typeof r;if(typeofs.includes(e))return e;if(e==="function")return"Function";if(Array.isArray(r))return"Array";if(isBuffer$1(r))return"Buffer";const t=getObjectType(r);return t||"Object"}function isBuffer$1(r){return r&&r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer.call(null,r)}function getObjectType(r){const e=Object.prototype.toString.call(r).slice(8,-1);if(objectTypeNames.includes(e))return e}class Type{constructor(e,t,n){this.major=e,this.majorEncoded=e<<5,this.name=t,this.terminal=n}toString(){return`Type[${this.major}].${this.name}`}compare(e){return this.majore.major?1:0}}Type.uint=new Type(0,"uint",!0);Type.negint=new Type(1,"negint",!0);Type.bytes=new Type(2,"bytes",!0);Type.string=new Type(3,"string",!0);Type.array=new Type(4,"array",!1);Type.map=new Type(5,"map",!1);Type.tag=new Type(6,"tag",!1);Type.float=new Type(7,"float",!0);Type.false=new Type(7,"false",!0);Type.true=new Type(7,"true",!0);Type.null=new Type(7,"null",!0);Type.undefined=new Type(7,"undefined",!0);Type.break=new Type(7,"break",!0);let Token$1=class{constructor(e,t,n){this.type=e,this.value=t,this.encodedLength=n,this.encodedBytes=void 0,this.byteValue=void 0}toString(){return`Token[${this.type}].${this.value}`}};const useBuffer=globalThis.process&&!globalThis.process.browser&&globalThis.Buffer&&typeof globalThis.Buffer.isBuffer=="function",textDecoder$1=new TextDecoder,textEncoder$2=new TextEncoder;function isBuffer(r){return useBuffer&&globalThis.Buffer.isBuffer(r)}function asU8A(r){return r instanceof Uint8Array?isBuffer(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):r:Uint8Array.from(r)}const toString=useBuffer?(r,e,t)=>t-e>64?globalThis.Buffer.from(r.subarray(e,t)).toString("utf8"):utf8Slice(r,e,t):(r,e,t)=>t-e>64?textDecoder$1.decode(r.subarray(e,t)):utf8Slice(r,e,t),fromString$2=useBuffer?r=>r.length>64?globalThis.Buffer.from(r):utf8ToBytes(r):r=>r.length>64?textEncoder$2.encode(r):utf8ToBytes(r),fromArray=r=>Uint8Array.from(r),slice=useBuffer?(r,e,t)=>isBuffer(r)?new Uint8Array(r.subarray(e,t)):r.slice(e,t):(r,e,t)=>r.slice(e,t),concat$2=useBuffer?(r,e)=>(r=r.map(t=>t instanceof Uint8Array?t:globalThis.Buffer.from(t)),asU8A(globalThis.Buffer.concat(r,e))):(r,e)=>{const t=new Uint8Array(e);let n=0;for(let o of r)n+o.length>t.length&&(o=o.subarray(0,t.length-n)),t.set(o,n),n+=o.length;return t},alloc=useBuffer?r=>globalThis.Buffer.allocUnsafe(r):r=>new Uint8Array(r);function compare(r,e){if(isBuffer(r)&&isBuffer(e))return r.compare(e);for(let t=0;t55295&&t<57344){if(!o){if(t>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&a.push(239,191,189);continue}o=t;continue}if(t<56320){(e-=3)>-1&&a.push(239,191,189),o=t;continue}t=(o-55296<<10|t-56320)+65536}else o&&(e-=3)>-1&&a.push(239,191,189);if(o=null,t<128){if((e-=1)<0)break;a.push(t)}else if(t<2048){if((e-=2)<0)break;a.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;a.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;a.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return a}function utf8Slice(r,e,t){const n=[];for(;e239?4:o>223?3:o>191?2:1;if(e+s<=t){let l,f,h,d;switch(s){case 1:o<128&&(a=o);break;case 2:l=r[e+1],(l&192)===128&&(d=(o&31)<<6|l&63,d>127&&(a=d));break;case 3:l=r[e+1],f=r[e+2],(l&192)===128&&(f&192)===128&&(d=(o&15)<<12|(l&63)<<6|f&63,d>2047&&(d<55296||d>57343)&&(a=d));break;case 4:l=r[e+1],f=r[e+2],h=r[e+3],(l&192)===128&&(f&192)===128&&(h&192)===128&&(d=(o&15)<<18|(l&63)<<12|(f&63)<<6|h&63,d>65535&&d<1114112&&(a=d))}}a===null?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),e+=s}return decodeCodePointsArray(n)}const MAX_ARGUMENTS_LENGTH=4096;function decodeCodePointsArray(r){const e=r.length;if(e<=MAX_ARGUMENTS_LENGTH)return String.fromCharCode.apply(String,r);let t="",n=0;for(;nn.length/2?(t=this.cursor===n.length?n:n.subarray(0,this.cursor),this._initReuseChunk=null,this.chunks=[]):t=slice(n,0,this.cursor)}else t=concat$2(this.chunks,this.cursor);return e&&this.reset(),t}}const decodeErrPrefix="CBOR decode error:",encodeErrPrefix="CBOR encode error:";function assertEnoughData(r,e,t){if(r.length-e>>8,n&255])}else if(t>>24&255,n>>>16&255,n>>>8&255,n&255])}else{const n=BigInt(t);if(n>BigInt(32)&BigInt(4294967295));o[8]=a&255,a=a>>8,o[7]=a&255,a=a>>8,o[6]=a&255,a=a>>8,o[5]=a&255,o[4]=s&255,s=s>>8,o[3]=s&255,s=s>>8,o[2]=s&255,s=s>>8,o[1]=s&255,r.push(o)}else throw new Error(`${decodeErrPrefix} encountered BigInt larger than allowable range`)}}encodeUint.encodedSize=function(e){return encodeUintValue.encodedSize(e.value)};encodeUintValue.encodedSize=function(e){return et.value?1:0};function decodeNegint8(r,e,t,n){return new Token$1(Type.negint,-1-readUint8(r,e+1,n),2)}function decodeNegint16(r,e,t,n){return new Token$1(Type.negint,-1-readUint16(r,e+1,n),3)}function decodeNegint32(r,e,t,n){return new Token$1(Type.negint,-1-readUint32(r,e+1,n),5)}const neg1b=BigInt(-1),pos1b=BigInt(1);function decodeNegint64(r,e,t,n){const o=readUint64(r,e+1,n);if(typeof o!="bigint"){const a=-1-o;if(a>=Number.MIN_SAFE_INTEGER)return new Token$1(Type.negint,a,9)}if(n.allowBigInt!==!0)throw new Error(`${decodeErrPrefix} integers outside of the safe integer range are not supported`);return new Token$1(Type.negint,neg1b-BigInt(o),9)}function encodeNegint(r,e){const t=e.value,n=typeof t=="bigint"?t*neg1b-pos1b:t*-1-1;encodeUintValue(r,e.type.majorEncoded,n)}encodeNegint.encodedSize=function(e){const t=e.value,n=typeof t=="bigint"?t*neg1b-pos1b:t*-1-1;return nt.value?-1:0};function toToken$3(r,e,t,n){assertEnoughData(r,e,t+n);const o=slice(r,e+t,e+t+n);return new Token$1(Type.bytes,o,t+n)}function decodeBytesCompact(r,e,t,n){return toToken$3(r,e,1,t)}function decodeBytes8(r,e,t,n){return toToken$3(r,e,2,readUint8(r,e+1,n))}function decodeBytes16(r,e,t,n){return toToken$3(r,e,3,readUint16(r,e+1,n))}function decodeBytes32(r,e,t,n){return toToken$3(r,e,5,readUint32(r,e+1,n))}function decodeBytes64(r,e,t,n){const o=readUint64(r,e+1,n);if(typeof o=="bigint")throw new Error(`${decodeErrPrefix} 64-bit integer bytes lengths not supported`);return toToken$3(r,e,9,o)}function tokenBytes(r){return r.encodedBytes===void 0&&(r.encodedBytes=r.type===Type.string?fromString$2(r.value):r.value),r.encodedBytes}function encodeBytes(r,e){const t=tokenBytes(e);encodeUintValue(r,e.type.majorEncoded,t.length),r.push(t)}encodeBytes.encodedSize=function(e){const t=tokenBytes(e);return encodeUintValue.encodedSize(t.length)+t.length};encodeBytes.compareTokens=function(e,t){return compareBytes(tokenBytes(e),tokenBytes(t))};function compareBytes(r,e){return r.lengthe.length?1:compare(r,e)}function toToken$2(r,e,t,n,o){const a=t+n;assertEnoughData(r,e,a);const s=new Token$1(Type.string,toString(r,e+t,e+a),a);return o.retainStringBytes===!0&&(s.byteValue=slice(r,e+t,e+a)),s}function decodeStringCompact(r,e,t,n){return toToken$2(r,e,1,t,n)}function decodeString8(r,e,t,n){return toToken$2(r,e,2,readUint8(r,e+1,n),n)}function decodeString16(r,e,t,n){return toToken$2(r,e,3,readUint16(r,e+1,n),n)}function decodeString32(r,e,t,n){return toToken$2(r,e,5,readUint32(r,e+1,n),n)}function decodeString64(r,e,t,n){const o=readUint64(r,e+1,n);if(typeof o=="bigint")throw new Error(`${decodeErrPrefix} 64-bit integer string lengths not supported`);return toToken$2(r,e,9,o,n)}const encodeString=encodeBytes;function toToken$1(r,e,t,n){return new Token$1(Type.array,n,t)}function decodeArrayCompact(r,e,t,n){return toToken$1(r,e,1,t)}function decodeArray8(r,e,t,n){return toToken$1(r,e,2,readUint8(r,e+1,n))}function decodeArray16(r,e,t,n){return toToken$1(r,e,3,readUint16(r,e+1,n))}function decodeArray32(r,e,t,n){return toToken$1(r,e,5,readUint32(r,e+1,n))}function decodeArray64(r,e,t,n){const o=readUint64(r,e+1,n);if(typeof o=="bigint")throw new Error(`${decodeErrPrefix} 64-bit integer array lengths not supported`);return toToken$1(r,e,9,o)}function decodeArrayIndefinite(r,e,t,n){if(n.allowIndefinite===!1)throw new Error(`${decodeErrPrefix} indefinite length items not allowed`);return toToken$1(r,e,1,1/0)}function encodeArray(r,e){encodeUintValue(r,Type.array.majorEncoded,e.value)}encodeArray.compareTokens=encodeUint.compareTokens;encodeArray.encodedSize=function(e){return encodeUintValue.encodedSize(e.value)};function toToken(r,e,t,n){return new Token$1(Type.map,n,t)}function decodeMapCompact(r,e,t,n){return toToken(r,e,1,t)}function decodeMap8(r,e,t,n){return toToken(r,e,2,readUint8(r,e+1,n))}function decodeMap16(r,e,t,n){return toToken(r,e,3,readUint16(r,e+1,n))}function decodeMap32(r,e,t,n){return toToken(r,e,5,readUint32(r,e+1,n))}function decodeMap64(r,e,t,n){const o=readUint64(r,e+1,n);if(typeof o=="bigint")throw new Error(`${decodeErrPrefix} 64-bit integer map lengths not supported`);return toToken(r,e,9,o)}function decodeMapIndefinite(r,e,t,n){if(n.allowIndefinite===!1)throw new Error(`${decodeErrPrefix} indefinite length items not allowed`);return toToken(r,e,1,1/0)}function encodeMap(r,e){encodeUintValue(r,Type.map.majorEncoded,e.value)}encodeMap.compareTokens=encodeUint.compareTokens;encodeMap.encodedSize=function(e){return encodeUintValue.encodedSize(e.value)};function decodeTagCompact(r,e,t,n){return new Token$1(Type.tag,t,1)}function decodeTag8(r,e,t,n){return new Token$1(Type.tag,readUint8(r,e+1,n),2)}function decodeTag16(r,e,t,n){return new Token$1(Type.tag,readUint16(r,e+1,n),3)}function decodeTag32(r,e,t,n){return new Token$1(Type.tag,readUint32(r,e+1,n),5)}function decodeTag64(r,e,t,n){return new Token$1(Type.tag,readUint64(r,e+1,n),9)}function encodeTag(r,e){encodeUintValue(r,Type.tag.majorEncoded,e.value)}encodeTag.compareTokens=encodeUint.compareTokens;encodeTag.encodedSize=function(e){return encodeUintValue.encodedSize(e.value)};const MINOR_FALSE=20,MINOR_TRUE=21,MINOR_NULL=22,MINOR_UNDEFINED=23;function decodeUndefined(r,e,t,n){if(n.allowUndefined===!1)throw new Error(`${decodeErrPrefix} undefined values are not supported`);return n.coerceUndefinedToNull===!0?new Token$1(Type.null,null,1):new Token$1(Type.undefined,void 0,1)}function decodeBreak(r,e,t,n){if(n.allowIndefinite===!1)throw new Error(`${decodeErrPrefix} indefinite length items not allowed`);return new Token$1(Type.break,void 0,1)}function createToken(r,e,t){if(t){if(t.allowNaN===!1&&Number.isNaN(r))throw new Error(`${decodeErrPrefix} NaN values are not supported`);if(t.allowInfinity===!1&&(r===1/0||r===-1/0))throw new Error(`${decodeErrPrefix} Infinity values are not supported`)}return new Token$1(Type.float,r,e)}function decodeFloat16(r,e,t,n){return createToken(readFloat16(r,e+1),3,n)}function decodeFloat32(r,e,t,n){return createToken(readFloat32(r,e+1),5,n)}function decodeFloat64(r,e,t,n){return createToken(readFloat64(r,e+1),9,n)}function encodeFloat(r,e,t){const n=e.value;if(n===!1)r.push([Type.float.majorEncoded|MINOR_FALSE]);else if(n===!0)r.push([Type.float.majorEncoded|MINOR_TRUE]);else if(n===null)r.push([Type.float.majorEncoded|MINOR_NULL]);else if(n===void 0)r.push([Type.float.majorEncoded|MINOR_UNDEFINED]);else{let o,a=!1;(!t||t.float64!==!0)&&(encodeFloat16(n),o=readFloat16(ui8a,1),n===o||Number.isNaN(n)?(ui8a[0]=249,r.push(ui8a.slice(0,3)),a=!0):(encodeFloat32(n),o=readFloat32(ui8a,1),n===o&&(ui8a[0]=250,r.push(ui8a.slice(0,5)),a=!0))),a||(encodeFloat64(n),o=readFloat64(ui8a,1),ui8a[0]=251,r.push(ui8a.slice(0,9)))}}encodeFloat.encodedSize=function(e,t){const n=e.value;if(n===!1||n===!0||n===null||n===void 0)return 1;if(!t||t.float64!==!0){encodeFloat16(n);let o=readFloat16(ui8a,1);if(n===o||Number.isNaN(n))return 3;if(encodeFloat32(n),o=readFloat32(ui8a,1),n===o)return 5}return 9};const buffer$1=new ArrayBuffer(9),dataView=new DataView(buffer$1,1),ui8a=new Uint8Array(buffer$1,0);function encodeFloat16(r){if(r===1/0)dataView.setUint16(0,31744,!1);else if(r===-1/0)dataView.setUint16(0,64512,!1);else if(Number.isNaN(r))dataView.setUint16(0,32256,!1);else{dataView.setFloat32(0,r);const e=dataView.getUint32(0),t=(e&2139095040)>>23,n=e&8388607;if(t===255)dataView.setUint16(0,31744,!1);else if(t===0)dataView.setUint16(0,(r&2147483648)>>16|n>>13,!1);else{const o=t-127;o<-24?dataView.setUint16(0,0):o<-14?dataView.setUint16(0,(e&2147483648)>>16|1<<24+o,!1):dataView.setUint16(0,(e&2147483648)>>16|o+15<<10|n>>13,!1)}}}function readFloat16(r,e){if(r.length-e<2)throw new Error(`${decodeErrPrefix} not enough data for float16`);const t=(r[e]<<8)+r[e+1];if(t===31744)return 1/0;if(t===64512)return-1/0;if(t===32256)return NaN;const n=t>>10&31,o=t&1023;let a;return n===0?a=o*2**-24:n!==31?a=(o+1024)*2**(n-25):a=o===0?1/0:NaN,t&32768?-a:a}function encodeFloat32(r){dataView.setFloat32(0,r,!1)}function readFloat32(r,e){if(r.length-e<4)throw new Error(`${decodeErrPrefix} not enough data for float32`);const t=(r.byteOffset||0)+e;return new DataView(r.buffer,t,4).getFloat32(0,!1)}function encodeFloat64(r){dataView.setFloat64(0,r,!1)}function readFloat64(r,e){if(r.length-e<8)throw new Error(`${decodeErrPrefix} not enough data for float64`);const t=(r.byteOffset||0)+e;return new DataView(r.buffer,t,8).getFloat64(0,!1)}encodeFloat.compareTokens=encodeUint.compareTokens;function invalidMinor(r,e,t){throw new Error(`${decodeErrPrefix} encountered invalid minor (${t}) for major ${r[e]>>>5}`)}function errorer(r){return()=>{throw new Error(`${decodeErrPrefix} ${r}`)}}const jump=[];for(let r=0;r<=23;r++)jump[r]=invalidMinor;jump[24]=decodeUint8;jump[25]=decodeUint16;jump[26]=decodeUint32;jump[27]=decodeUint64;jump[28]=invalidMinor;jump[29]=invalidMinor;jump[30]=invalidMinor;jump[31]=invalidMinor;for(let r=32;r<=55;r++)jump[r]=invalidMinor;jump[56]=decodeNegint8;jump[57]=decodeNegint16;jump[58]=decodeNegint32;jump[59]=decodeNegint64;jump[60]=invalidMinor;jump[61]=invalidMinor;jump[62]=invalidMinor;jump[63]=invalidMinor;for(let r=64;r<=87;r++)jump[r]=decodeBytesCompact;jump[88]=decodeBytes8;jump[89]=decodeBytes16;jump[90]=decodeBytes32;jump[91]=decodeBytes64;jump[92]=invalidMinor;jump[93]=invalidMinor;jump[94]=invalidMinor;jump[95]=errorer("indefinite length bytes/strings are not supported");for(let r=96;r<=119;r++)jump[r]=decodeStringCompact;jump[120]=decodeString8;jump[121]=decodeString16;jump[122]=decodeString32;jump[123]=decodeString64;jump[124]=invalidMinor;jump[125]=invalidMinor;jump[126]=invalidMinor;jump[127]=errorer("indefinite length bytes/strings are not supported");for(let r=128;r<=151;r++)jump[r]=decodeArrayCompact;jump[152]=decodeArray8;jump[153]=decodeArray16;jump[154]=decodeArray32;jump[155]=decodeArray64;jump[156]=invalidMinor;jump[157]=invalidMinor;jump[158]=invalidMinor;jump[159]=decodeArrayIndefinite;for(let r=160;r<=183;r++)jump[r]=decodeMapCompact;jump[184]=decodeMap8;jump[185]=decodeMap16;jump[186]=decodeMap32;jump[187]=decodeMap64;jump[188]=invalidMinor;jump[189]=invalidMinor;jump[190]=invalidMinor;jump[191]=decodeMapIndefinite;for(let r=192;r<=215;r++)jump[r]=decodeTagCompact;jump[216]=decodeTag8;jump[217]=decodeTag16;jump[218]=decodeTag32;jump[219]=decodeTag64;jump[220]=invalidMinor;jump[221]=invalidMinor;jump[222]=invalidMinor;jump[223]=invalidMinor;for(let r=224;r<=243;r++)jump[r]=errorer("simple values are not supported");jump[244]=invalidMinor;jump[245]=invalidMinor;jump[246]=invalidMinor;jump[247]=decodeUndefined;jump[248]=errorer("simple values are not supported");jump[249]=decodeFloat16;jump[250]=decodeFloat32;jump[251]=decodeFloat64;jump[252]=invalidMinor;jump[253]=invalidMinor;jump[254]=invalidMinor;jump[255]=decodeBreak;const quick=[];for(let r=0;r<24;r++)quick[r]=new Token$1(Type.uint,r,1);for(let r=-1;r>=-24;r--)quick[31-r]=new Token$1(Type.negint,r,1);quick[64]=new Token$1(Type.bytes,new Uint8Array(0),1);quick[96]=new Token$1(Type.string,"",1);quick[128]=new Token$1(Type.array,0,1);quick[160]=new Token$1(Type.map,0,1);quick[244]=new Token$1(Type.false,!1,1);quick[245]=new Token$1(Type.true,!0,1);quick[246]=new Token$1(Type.null,null,1);function quickEncodeToken(r){switch(r.type){case Type.false:return fromArray([244]);case Type.true:return fromArray([245]);case Type.null:return fromArray([246]);case Type.bytes:return r.value.length?void 0:fromArray([64]);case Type.string:return r.value===""?fromArray([96]):void 0;case Type.array:return r.value===0?fromArray([128]):void 0;case Type.map:return r.value===0?fromArray([160]):void 0;case Type.uint:return r.value<24?fromArray([Number(r.value)]):void 0;case Type.negint:if(r.value>=-24)return fromArray([31-Number(r.value)])}}const defaultEncodeOptions={float64:!1,mapSorter,quickEncodeToken};function makeCborEncoders(){const r=[];return r[Type.uint.major]=encodeUint,r[Type.negint.major]=encodeNegint,r[Type.bytes.major]=encodeBytes,r[Type.string.major]=encodeString,r[Type.array.major]=encodeArray,r[Type.map.major]=encodeMap,r[Type.tag.major]=encodeTag,r[Type.float.major]=encodeFloat,r}const cborEncoders=makeCborEncoders(),buf=new Bl;class Ref{constructor(e,t){this.obj=e,this.parent=t}includes(e){let t=this;do if(t.obj===e)return!0;while(t=t.parent);return!1}static createCheck(e,t){if(e&&e.includes(t))throw new Error(`${encodeErrPrefix} object contains circular references`);return new Ref(t,e)}}const simpleTokens={null:new Token$1(Type.null,null),undefined:new Token$1(Type.undefined,void 0),true:new Token$1(Type.true,!0),false:new Token$1(Type.false,!1),emptyArray:new Token$1(Type.array,0),emptyMap:new Token$1(Type.map,0)},typeEncoders={number(r,e,t,n){return!Number.isInteger(r)||!Number.isSafeInteger(r)?new Token$1(Type.float,r):r>=0?new Token$1(Type.uint,r):new Token$1(Type.negint,r)},bigint(r,e,t,n){return r>=BigInt(0)?new Token$1(Type.uint,r):new Token$1(Type.negint,r)},Uint8Array(r,e,t,n){return new Token$1(Type.bytes,r)},string(r,e,t,n){return new Token$1(Type.string,r)},boolean(r,e,t,n){return r?simpleTokens.true:simpleTokens.false},null(r,e,t,n){return simpleTokens.null},undefined(r,e,t,n){return simpleTokens.undefined},ArrayBuffer(r,e,t,n){return new Token$1(Type.bytes,new Uint8Array(r))},DataView(r,e,t,n){return new Token$1(Type.bytes,new Uint8Array(r.buffer,r.byteOffset,r.byteLength))},Array(r,e,t,n){if(!r.length)return t.addBreakTokens===!0?[simpleTokens.emptyArray,new Token$1(Type.break)]:simpleTokens.emptyArray;n=Ref.createCheck(n,r);const o=[];let a=0;for(const s of r)o[a++]=objectToTokens(s,t,n);return t.addBreakTokens?[new Token$1(Type.array,r.length),o,new Token$1(Type.break)]:[new Token$1(Type.array,r.length),o]},Object(r,e,t,n){const o=e!=="Object",a=o?r.keys():Object.keys(r),s=o?r.size:a.length;if(!s)return t.addBreakTokens===!0?[simpleTokens.emptyMap,new Token$1(Type.break)]:simpleTokens.emptyMap;n=Ref.createCheck(n,r);const l=[];let f=0;for(const h of a)l[f++]=[objectToTokens(h,t,n),objectToTokens(o?r.get(h):r[h],t,n)];return sortMapEntries(l,t),t.addBreakTokens?[new Token$1(Type.map,s),l,new Token$1(Type.break)]:[new Token$1(Type.map,s),l]}};typeEncoders.Map=typeEncoders.Object;typeEncoders.Buffer=typeEncoders.Uint8Array;for(const r of"Uint8Clamped Uint16 Uint32 Int8 Int16 Int32 BigUint64 BigInt64 Float32 Float64".split(" "))typeEncoders[`${r}Array`]=typeEncoders.DataView;function objectToTokens(r,e={},t){const n=is(r),o=e&&e.typeEncoders&&e.typeEncoders[n]||typeEncoders[n];if(typeof o=="function"){const s=o(r,n,e,t);if(s!=null)return s}const a=typeEncoders[n];if(!a)throw new Error(`${encodeErrPrefix} unsupported type: ${n}`);return a(r,n,e,t)}function sortMapEntries(r,e){e.mapSorter&&r.sort(e.mapSorter)}function mapSorter(r,e){const t=Array.isArray(r[0])?r[0][0]:r[0],n=Array.isArray(e[0])?e[0][0]:e[0];if(t.type!==n.type)return t.type.compare(n.type);const o=t.type.major,a=cborEncoders[o].compareTokens(t,n);return a===0&&console.warn("WARNING: complex key types used, CBOR key sorting guarantees are gone"),a}function tokensToEncoded(r,e,t,n){if(Array.isArray(e))for(const o of e)tokensToEncoded(r,o,t,n);else t[e.type.major](r,e,n)}function encodeCustom(r,e,t){const n=objectToTokens(r,t);if(!Array.isArray(n)&&t.quickEncodeToken){const o=t.quickEncodeToken(n);if(o)return o;const a=e[n.type.major];if(a.encodedSize){const s=a.encodedSize(n,t),l=new Bl(s);if(a(l,n,t),l.chunks.length!==1)throw new Error(`Unexpected error: pre-calculated length for ${n} was wrong`);return asU8A(l.chunks[0])}}return buf.reset(),tokensToEncoded(buf,n,e,t),buf.toBytes(!0)}function encode$6(r,e){return e=Object.assign({},defaultEncodeOptions,e),encodeCustom(r,cborEncoders,e)}const defaultDecodeOptions={strict:!1,allowIndefinite:!0,allowUndefined:!0,allowBigInt:!0};class Tokeniser{constructor(e,t={}){this.pos=0,this.data=e,this.options=t}done(){return this.pos>=this.data.length}next(){const e=this.data[this.pos];let t=quick[e];if(t===void 0){const n=jump[e];if(!n)throw new Error(`${decodeErrPrefix} no decoder for major type ${e>>>5} (byte 0x${e.toString(16).padStart(2,"0")})`);const o=e&31;t=n(this.data,this.pos,o,this.options)}return this.pos+=t.encodedLength,t}}const DONE=Symbol.for("DONE"),BREAK=Symbol.for("BREAK");function tokenToArray(r,e,t){const n=[];for(let o=0;oencode$6(r,encodeOptions$1),decode$4=r=>decode$5(r,decodeOptions$1),CIDV0_BYTES={SHA2_256:18,LENGTH:32,DAG_PB:112};async function readVarint(r){const e=await r.upTo(8),t=varint$2.decode(e);return r.seek(varint$2.decode.bytes),t}async function readHeader(r){const e=await readVarint(r);if(e===0)throw new Error("Invalid CAR header (zero length)");const t=await r.exactly(e);r.seek(e);const n=decode$4(t);if(n==null||Array.isArray(n)||typeof n!="object")throw new Error("Invalid CAR header format");if(n.version!==1)throw typeof n.version=="string"?new Error(`Invalid CAR version: "${n.version}"`):new Error(`Invalid CAR version: ${n.version}`);if(!Array.isArray(n.roots))throw new Error("Invalid CAR header format");if(Object.keys(n).filter(o=>o!=="roots"&&o!=="version").length)throw new Error("Invalid CAR header format");return n}async function readMultihash(r){const e=await r.upTo(8);varint$2.decode(e);const t=varint$2.decode.bytes,n=varint$2.decode(e.subarray(varint$2.decode.bytes)),o=varint$2.decode.bytes,a=t+o+n,s=await r.exactly(a);return r.seek(a),s}async function readCid(r){const e=await r.exactly(2);if(e[0]===CIDV0_BYTES.SHA2_256&&e[1]===CIDV0_BYTES.LENGTH){const s=await r.exactly(34);r.seek(34);const l=decode$7(s);return CID.create(0,CIDV0_BYTES.DAG_PB,l)}const t=await readVarint(r);if(t!==1)throw new Error(`Unexpected CID version (${t})`);const n=await readVarint(r),o=await readMultihash(r),a=decode$7(o);return CID.create(t,n,a)}async function readBlockHead(r){const e=r.pos;let t=await readVarint(r);if(t===0)throw new Error("Invalid CAR section (zero length)");t+=r.pos-e;const n=await readCid(r),o=t-(r.pos-e);return{cid:n,length:t,blockLength:o}}async function readBlock(r){const{cid:e,blockLength:t}=await readBlockHead(r),n=await r.exactly(t);return r.seek(t),{bytes:n,cid:e}}async function readBlockIndex(r){const e=r.pos,{cid:t,length:n,blockLength:o}=await readBlockHead(r),a={cid:t,length:n,blockLength:o,offset:e,blockOffset:r.pos};return r.seek(a.blockLength),a}function createDecoder(r){const e=readHeader(r);return{header:()=>e,async*blocks(){for(await e;(await r.upTo(8)).length>0;)yield await readBlock(r)},async*blocksIndex(){for(await e;(await r.upTo(8)).length>0;)yield await readBlockIndex(r)}}}function bytesReader(r){let e=0;return{async upTo(t){return r.subarray(e,e+Math.min(t,r.length-e))},async exactly(t){if(t>r.length-e)throw new Error("Unexpected end of data");return r.subarray(e,e+t)},seek(t){e+=t},get pos(){return e}}}function chunkReader(r){let e=0,t=0,n=0,o=new Uint8Array(0);const a=async s=>{t=o.length-n;const l=[o.subarray(n)];for(;tt&&l.push(h.subarray(-t)):l.push(h),t+=h.length}o=new Uint8Array(l.reduce((h,d)=>h+d.length,0));let f=0;for(const h of l)o.set(h,f),f+=h.length;n=0};return{async upTo(s){return o.length-no.cid.toString())}get version(){return this._version}async getRoots(){return this._roots}async has(e){return this._keys.indexOf(e.toString())>-1}async get(e){const t=this._keys.indexOf(e.toString());return t>-1?this._blocks[t]:void 0}async*blocks(){for(const e of this._blocks)yield e}async*cids(){for(const e of this._blocks)yield e.cid}static async fromBytes(e){if(!(e instanceof Uint8Array))throw new TypeError("fromBytes() requires a Uint8Array");return decodeReaderComplete(bytesReader(e))}static async fromIterable(e){if(!e||typeof e[Symbol.asyncIterator]!="function")throw new TypeError("fromIterable() requires an async iterable");return decodeReaderComplete(asyncIterableReader(e))}}async function decodeReaderComplete(r){const e=createDecoder(r),{version:t,roots:n}=await e.header(),o=[];for await(const a of e.blocks())o.push(a);return new CarReader(t,n,o)}function createHeader(r){const e=encode$5({version:1,roots:r}),t=varint$2.encode(e.length),n=new Uint8Array(t.length+e.length);return n.set(t,0),n.set(e,t.length),n}function createEncoder(r){return{async setRoots(e){const t=createHeader(e);await r.write(t)},async writeBlock(e){const{cid:t,bytes:n}=e;await r.write(new Uint8Array(varint$2.encode(t.bytes.length+n.length))),await r.write(t.bytes),n.length&&await r.write(n)},async close(){return r.end()}}}function noop$1(){}function create$3(){const r=[];let e=null,t=noop$1,n=!1,o=null,a=noop$1;const s=()=>(e||(e=new Promise(h=>{t=()=>{e=null,t=noop$1,h()}})),e),l={write(h){r.push(h);const d=s();return a(),d},async end(){n=!0;const h=s();return a(),h}},f={async next(){const h=r.shift();return h?(r.length===0&&t(),{done:!1,value:h}):n?(t(),{done:!0,value:void 0}):(o||(o=new Promise(d=>{a=()=>(o=null,a=noop$1,d(f.next()))})),o)}};return{writer:l,iterator:f}}class CarWriter{constructor(e,t){this._encoder=t,this._mutex=t.setRoots(e),this._ended=!1}async put(e){if(!(e.bytes instanceof Uint8Array)||!e.cid)throw new TypeError("Can only write {cid, bytes} objects");if(this._ended)throw new Error("Already closed");const t=CID.asCID(e.cid);if(!t)throw new TypeError("Can only write {cid, bytes} objects");return this._mutex=this._mutex.then(()=>this._encoder.writeBlock({cid:t,bytes:e.bytes})),this._mutex}async close(){if(this._ended)throw new Error("Already closed");return await this._mutex,this._ended=!0,this._encoder.close()}static create(e){e=toRoots(e);const{encoder:t,iterator:n}=encodeWriter(),o=new CarWriter(e,t),a=new CarWriterOut(n);return{writer:o,out:a}}static createAppender(){const{encoder:e,iterator:t}=encodeWriter();e.setRoots=()=>Promise.resolve();const n=new CarWriter([],e),o=new CarWriterOut(t);return{writer:n,out:o}}static async updateRootsInBytes(e,t){const n=bytesReader(e);await readHeader(n);const o=createHeader(t);if(n.pos!==o.length)throw new Error(`updateRoots() can only overwrite a header of the same length (old header is ${n.pos} bytes, new header is ${o.length} bytes)`);return e.set(o,0),e}}class CarWriterOut{constructor(e){this._iterator=e}[Symbol.asyncIterator](){if(this._iterating)throw new Error("Multiple iterator not supported");return this._iterating=!0,this._iterator}}function encodeWriter(){const r=create$3(),{writer:e,iterator:t}=r;return{encoder:createEncoder(e),iterator:t}}function toRoots(r){if(r===void 0)return[];if(!Array.isArray(r)){const t=CID.asCID(r);if(!t)throw new TypeError("roots must be a single CID or an array of CIDs");return[t]}const e=[];for(const t of r){const n=CID.asCID(t);if(!n)throw new TypeError("roots must be a single CID or an array of CIDs");e.push(n)}return e}const from=({name:r,code:e,encode:t})=>new Hasher(r,e,t);class Hasher{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?create$4(this.code,t):t.then(n=>create$4(this.code,n))}else throw Error("Unknown type, must be binary type")}}const readonly=({enumerable:r=!0,configurable:e=!1}={})=>({enumerable:r,configurable:e,writable:!1}),links=function*(r,e){if(r!=null&&!(r instanceof Uint8Array))for(const[t,n]of Object.entries(r)){const o=[...e,t];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(const[a,s]of n.entries()){const l=[...o,a],f=CID.asCID(s);f?yield[l.join("/"),f]:typeof s=="object"&&(yield*links(s,l))}else{const a=CID.asCID(n);a?yield[o.join("/"),a]:yield*links(n,o)}}},tree=function*(r,e){if(r!=null)for(const[t,n]of Object.entries(r)){const o=[...e,t];if(yield o.join("/"),n!=null&&!(n instanceof Uint8Array)&&typeof n=="object"&&!CID.asCID(n))if(Array.isArray(n))for(const[a,s]of n.entries()){const l=[...o,a];yield l.join("/"),typeof s=="object"&&!CID.asCID(s)&&(yield*tree(s,l))}else yield*tree(n,o)}},get=(r,e)=>{let t=r;for(const[n,o]of e.entries()){if(t=t[o],t==null)throw new Error(`Object has no property at ${e.slice(0,n+1).map(s=>`[${JSON.stringify(s)}]`).join("")}`);const a=CID.asCID(t);if(a)return{value:a,remaining:e.slice(n+1).join("/")}}return{value:t}};class Block{constructor({cid:e,bytes:t,value:n}){if(!e||!t||typeof n>"u")throw new Error("Missing required argument");this.cid=e,this.bytes=t,this.value=n,this.asBlock=this,Object.defineProperties(this,{cid:readonly(),bytes:readonly(),value:readonly(),asBlock:readonly()})}links(){return links(this.value,[])}tree(){return tree(this.value,[])}get(e="/"){return get(this.value,e.split("/").filter(Boolean))}}const encode$4=async({value:r,codec:e,hasher:t})=>{if(typeof r>"u")throw new Error('Missing required argument "value"');if(!e||!t)throw new Error("Missing required argument: codec or hasher");const n=e.encode(r),o=await t.digest(n),a=CID.create(1,e.code,o);return new Block({value:r,bytes:n,cid:a})},name$2="raw",code$3=85,encode$3=r=>coerce(r),decode$3=r=>coerce(r),raw=Object.freeze(Object.defineProperty({__proto__:null,code:code$3,decode:decode$3,encode:encode$3,name:name$2},Symbol.toStringTag,{value:"Module"})),CID_CBOR_TAG=42;function cidEncoder(r){if(r.asCID!==r)return null;const e=CID.asCID(r);if(!e)return null;const t=new Uint8Array(e.bytes.byteLength+1);return t.set(e.bytes,1),[new Token$1(Type.tag,CID_CBOR_TAG),new Token$1(Type.bytes,t)]}function undefinedEncoder(){throw new Error("`undefined` is not supported by the IPLD Data Model and cannot be encoded")}function numberEncoder(r){if(Number.isNaN(r))throw new Error("`NaN` is not supported by the IPLD Data Model and cannot be encoded");if(r===1/0||r===-1/0)throw new Error("`Infinity` and `-Infinity` is not supported by the IPLD Data Model and cannot be encoded");return null}const encodeOptions={float64:!0,typeEncoders:{Object:cidEncoder,undefined:undefinedEncoder,number:numberEncoder}};function cidDecoder(r){if(r[0]!==0)throw new Error("Invalid CID for CBOR tag 42; expected leading 0x00");return CID.decode(r.subarray(1))}const decodeOptions={allowIndefinite:!1,allowUndefined:!1,allowNaN:!1,allowInfinity:!1,allowBigInt:!0,strict:!0,useMaps:!1,tags:[]};decodeOptions.tags[CID_CBOR_TAG]=cidDecoder;const name$1="dag-cbor",code$2=113,encode$2=r=>encode$6(r,encodeOptions),decode$2=r=>decode$5(r,decodeOptions),dagCbor=Object.freeze(Object.defineProperty({__proto__:null,code:code$2,decode:decode$2,encode:encode$2,name:name$1},Symbol.toStringTag,{value:"Module"})),textDecoder=new TextDecoder;function decodeVarint(r,e){let t=0;for(let n=0;;n+=7){if(n>=64)throw new Error("protobuf: varint overflow");if(e>=r.length)throw new Error("protobuf: unexpected end of data");const o=r[e++];if(t+=n<28?(o&127)<r.length)throw new Error("protobuf: unexpected end of data");return[r.subarray(e,n),n]}function decodeKey(r,e){let t;return[t,e]=decodeVarint(r,e),[t&7,t>>3,e]}function decodeLink(r){const e={},t=r.length;let n=0;for(;nt)throw new Error("protobuf: (PBLink) unexpected end of data");return e}function decodeNode(r){const e=r.length;let t=0,n,o=!1,a;for(;te)throw new Error("protobuf: (PBNode) unexpected end of data");const s={};return a&&(s.Data=a),s.Links=n||[],s}const textEncoder$1=new TextEncoder,maxInt32=2**32,maxUInt32=2**31;function encodeLink(r,e){let t=e.length;if(typeof r.Tsize=="number"){if(r.Tsize<0)throw new Error("Tsize cannot be negative");if(!Number.isSafeInteger(r.Tsize))throw new Error("Tsize too large for encoding");t=encodeVarint(e,t,r.Tsize)-1,e[t]=24}if(typeof r.Name=="string"){const n=textEncoder$1.encode(r.Name);t-=n.length,e.set(n,t),t=encodeVarint(e,t,n.length)-1,e[t]=18}return r.Hash&&(t-=r.Hash.length,e.set(r.Hash,t),t=encodeVarint(e,t,r.Hash.length)-1,e[t]=10),e.length-t}function encodeNode(r){const e=sizeNode(r),t=new Uint8Array(e);let n=e;if(r.Data&&(n-=r.Data.length,t.set(r.Data,n),n=encodeVarint(t,n,r.Data.length)-1,t[n]=10),r.Links)for(let o=r.Links.length-1;o>=0;o--){const a=encodeLink(r.Links[o],t.subarray(0,n));n-=a,n=encodeVarint(t,n,a)-1,t[n]=18}return t}function sizeLink(r){let e=0;if(r.Hash){const t=r.Hash.length;e+=1+t+sov(t)}if(typeof r.Name=="string"){const t=textEncoder$1.encode(r.Name).length;e+=1+t+sov(t)}return typeof r.Tsize=="number"&&(e+=1+sov(r.Tsize)),e}function sizeNode(r){let e=0;if(r.Data){const t=r.Data.length;e+=1+t+sov(t)}if(r.Links)for(const t of r.Links){const n=sizeLink(t);e+=1+n+sov(n)}return e}function encodeVarint(r,e,t){e-=sov(t);const n=e;for(;t>=maxUInt32;)r[e++]=t&127|128,t/=128;for(;t>=128;)r[e++]=t&127|128,t>>>=7;return r[e]=t,n}function sov(r){return r%2===0&&r++,Math.floor((len64(r)+6)/7)}function len64(r){let e=0;return r>=maxInt32&&(r=Math.floor(r/maxInt32),e=32),r>=65536&&(r>>>=16,e+=16),r>=256&&(r>>>=8,e+=8),e+len8tab[r]}const len8tab=[0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8],pbNodeProperties=["Data","Links"],pbLinkProperties=["Hash","Name","Tsize"],textEncoder=new TextEncoder;function linkComparator(r,e){if(r===e)return 0;const t=r.Name?textEncoder.encode(r.Name):[],n=e.Name?textEncoder.encode(e.Name):[];let o=t.length,a=n.length;for(let s=0,l=Math.min(o,a);s!e.includes(t))}function asLink(r){if(typeof r.asCID=="object"){const t=CID.asCID(r);if(!t)throw new TypeError("Invalid DAG-PB form");return{Hash:t}}if(typeof r!="object"||Array.isArray(r))throw new TypeError("Invalid DAG-PB form");const e={};if(r.Hash){let t=CID.asCID(r.Hash);try{t||(typeof r.Hash=="string"?t=CID.parse(r.Hash):r.Hash instanceof Uint8Array&&(t=CID.decode(r.Hash)))}catch(n){throw new TypeError(`Invalid DAG-PB form: ${n.message}`)}t&&(e.Hash=t)}if(!e.Hash)throw new TypeError("Invalid DAG-PB form");return typeof r.Name=="string"&&(e.Name=r.Name),typeof r.Tsize=="number"&&(e.Tsize=r.Tsize),e}function prepare(r){if((r instanceof Uint8Array||typeof r=="string")&&(r={Data:r}),typeof r!="object"||Array.isArray(r))throw new TypeError("Invalid DAG-PB form");const e={};if(r.Data!==void 0)if(typeof r.Data=="string")e.Data=textEncoder.encode(r.Data);else if(r.Data instanceof Uint8Array)e.Data=r.Data;else throw new TypeError("Invalid DAG-PB form");if(r.Links!==void 0)if(Array.isArray(r.Links))e.Links=r.Links.map(asLink),e.Links.sort(linkComparator);else throw new TypeError("Invalid DAG-PB form");else e.Links=[];return e}function validate(r){if(!r||typeof r!="object"||Array.isArray(r))throw new TypeError("Invalid DAG-PB form");if(!hasOnlyProperties(r,pbNodeProperties))throw new TypeError("Invalid DAG-PB form (extraneous properties)");if(r.Data!==void 0&&!(r.Data instanceof Uint8Array))throw new TypeError("Invalid DAG-PB form (Data must be a Uint8Array)");if(!Array.isArray(r.Links))throw new TypeError("Invalid DAG-PB form (Links must be an array)");for(let e=0;e0&&linkComparator(t,r.Links[e-1])===-1)throw new TypeError("Invalid DAG-PB form (links must be sorted by Name bytes)")}}function createNode(r,e=[]){return prepare({Data:r,Links:e})}function createLink(r,e,t){return asLink({Hash:t,Name:r,Tsize:e})}const name="dag-pb",code$1=112;function encode$1(r){validate(r);const e={};return r.Links&&(e.Links=r.Links.map(t=>{const n={};return t.Hash&&(n.Hash=t.Hash.bytes),t.Name!==void 0&&(n.Name=t.Name),t.Tsize!==void 0&&(n.Tsize=t.Tsize),n})),r.Data&&(e.Data=r.Data),encodeNode(e)}function decode$1(r){const e=decodeNode(r),t={};return e.Data&&(t.Data=e.Data),e.Links&&(t.Links=e.Links.map(n=>{const o={};try{o.Hash=CID.decode(n.Hash)}catch{}if(!o.Hash)throw new Error("Invalid Hash field found in link, expected CID");return n.Name!==void 0&&(o.Name=n.Name),n.Tsize!==void 0&&(o.Tsize=n.Tsize),o})),t}const dagPb=Object.freeze(Object.defineProperty({__proto__:null,code:code$1,createLink,createNode,decode:decode$1,encode:encode$1,name,prepare,validate},Symbol.toStringTag,{value:"Module"}));class TreewalkCarSplitter{constructor(e,t,n={}){if(typeof t!="number"||t<=0)throw new Error("invalid target chunk size");this._reader=e,this._targetSize=t,this._decoders=[dagPb,raw,dagCbor,...n.decoders||[]]}async*cars(){const e=await this._reader.getRoots();if(e.length!==1)throw new Error(`unexpected number of roots: ${e.length}`);let t;for await(const n of this._cars(e[0]))t=n.channel,n.out&&(yield n.out);if(!t)throw new Error("missing CAR writer channel");t.writer.close(),yield t.out}async _get(e){const t=await this._reader.get(e);if(!t)throw new Error(`missing block for ${e}`);const{bytes:n}=t,o=this._decoders.find(a=>a.code===e.code);if(!o)throw new Error(`missing decoder for ${e.code}`);return new Block({cid:e,bytes:n,value:o.decode(n)})}async*_cars(e,t=[],n=void 0){const o=await this._get(e);if(n=n||Object.assign(CarWriter.create(e),{size:0}),n.size>0&&n.size+o.bytes.byteLength>=this._targetSize){n.writer.close();const{out:a}=n;n=newCar(t),yield{channel:n,out:a}}t=t.concat(o),n.size+=o.bytes.byteLength,n.writer.put(o);for(const[,a]of o.links())for await(const s of this._cars(a,t,n))n=s.channel,yield s;if(!n)throw new Error("missing CAR writer channel");yield{channel:n}}static async fromIterable(e,t,n){const o=await CarReader.fromIterable(e);return new TreewalkCarSplitter(o,t,n)}static async fromBlob(e,t,n){const o=await e.arrayBuffer(),a=await CarReader.fromBytes(new Uint8Array(o));return new TreewalkCarSplitter(a,t,n)}}function newCar(r){const e=Object.assign(CarWriter.create(r[0].cid),{size:r.reduce((t,n)=>t+n.bytes.byteLength,0)});for(const t of r)e.writer.put(t);return e}const last=async r=>{let e;for await(const t of r)e=t;return e};var itLast=last;const last$1=getDefaultExportFromCjs(itLast);var itPipe={exports:{}};const rawPipe=(...r)=>{let e;for(;r.length;)e=r.shift()(e);return e},isIterable$1=r=>r&&(typeof r[Symbol.asyncIterator]=="function"||typeof r[Symbol.iterator]=="function"||typeof r.next=="function"),isDuplex=r=>r&&typeof r.sink=="function"&&isIterable$1(r.source),duplexPipelineFn=r=>e=>(r.sink(e),r.source),pipe=(...r)=>{if(isDuplex(r[0])){const e=r[0];r[0]=()=>e.source}else if(isIterable$1(r[0])){const e=r[0];r[0]=()=>e}if(r.length>1&&isDuplex(r[r.length-1])&&(r[r.length-1]=r[r.length-1].sink),r.length>2)for(let e=1;e=e;)yield t.slice(0,e),t=t.slice(e);for(;t.length;)yield t.slice(0,e),t=t.slice(e)}var itBatch=batch$1;const batch$2=getDefaultExportFromCjs(itBatch),batch=itBatch;async function*parallelBatch(r,e=1){for await(const t of batch(r,e)){const n=t.map(o=>o().then(a=>({ok:!0,value:a}),a=>({ok:!1,err:a})));for(let o=0;o{if(Object.prototype.toString.call(r)!=="[object Object]")return!1;const e=Object.getPrototypeOf(r);return e===null||e===Object.prototype};const isOptionObject=isPlainObj,{hasOwnProperty}=Object.prototype,{propertyIsEnumerable}=Object,defineProperty=(r,e,t)=>Object.defineProperty(r,e,{value:t,writable:!0,enumerable:!0,configurable:!0}),globalThis$1=commonjsGlobal,defaultMergeOptions={concatArrays:!1,ignoreUndefined:!1},getEnumerableOwnPropertyKeys=r=>{const e=[];for(const t in r)hasOwnProperty.call(r,t)&&e.push(t);if(Object.getOwnPropertySymbols){const t=Object.getOwnPropertySymbols(r);for(const n of t)propertyIsEnumerable.call(r,n)&&e.push(n)}return e};function clone$1(r){return Array.isArray(r)?cloneArray(r):isOptionObject(r)?cloneOptionObject(r):r}function cloneArray(r){const e=r.slice(0,0);return getEnumerableOwnPropertyKeys(r).forEach(t=>{defineProperty(e,t,clone$1(r[t]))}),e}function cloneOptionObject(r){const e=Object.getPrototypeOf(r)===null?Object.create(null):{};return getEnumerableOwnPropertyKeys(r).forEach(t=>{defineProperty(e,t,clone$1(r[t]))}),e}const mergeKeys=(r,e,t,n)=>(t.forEach(o=>{typeof e[o]>"u"&&n.ignoreUndefined||(o in r&&r[o]!==Object.getPrototypeOf(r)?defineProperty(r,o,merge(r[o],e[o],n)):defineProperty(r,o,clone$1(e[o])))}),r),concatArrays=(r,e,t)=>{let n=r.slice(0,0),o=0;return[r,e].forEach(a=>{const s=[];for(let l=0;l!s.includes(l)),t)}),n};function merge(r,e,t){return t.concatArrays&&Array.isArray(r)&&Array.isArray(e)?concatArrays(r,e,t):!isOptionObject(e)||!isOptionObject(r)?clone$1(e):mergeKeys(r,e,getEnumerableOwnPropertyKeys(e),t)}var mergeOptions=function(...r){const e=merge(clone$1(defaultMergeOptions),this!==globalThis$1&&this||{},defaultMergeOptions);let t={_:{}};for(const n of r)if(n!==void 0){if(!isOptionObject(n))throw new TypeError("`"+n+"` is not an Option Object");t=merge(t,{_:n},e)}return t._};const mergeOptions$1=getDefaultExportFromCjs(mergeOptions),sha=r=>async e=>new Uint8Array(await crypto.subtle.digest(r,e)),sha256=from({name:"sha2-256",code:18,encode:sha("SHA-256")});var murmurHash3js={exports:{}};(function(r,e){(function(t,n){var o={version:"3.0.0",x86:{},x64:{},inputValidation:!0};function a(y){if(!Array.isArray(y)&&!ArrayBuffer.isView(y))return!1;for(var E=0;E255)return!1;return!0}function s(y,E){return(y&65535)*E+(((y>>>16)*E&65535)<<16)}function l(y,E){return y<>>32-E}function f(y){return y^=y>>>16,y=s(y,2246822507),y^=y>>>13,y=s(y,3266489909),y^=y>>>16,y}function h(y,E){y=[y[0]>>>16,y[0]&65535,y[1]>>>16,y[1]&65535],E=[E[0]>>>16,E[0]&65535,E[1]>>>16,E[1]&65535];var T=[0,0,0,0];return T[3]+=y[3]+E[3],T[2]+=T[3]>>>16,T[3]&=65535,T[2]+=y[2]+E[2],T[1]+=T[2]>>>16,T[2]&=65535,T[1]+=y[1]+E[1],T[0]+=T[1]>>>16,T[1]&=65535,T[0]+=y[0]+E[0],T[0]&=65535,[T[0]<<16|T[1],T[2]<<16|T[3]]}function d(y,E){y=[y[0]>>>16,y[0]&65535,y[1]>>>16,y[1]&65535],E=[E[0]>>>16,E[0]&65535,E[1]>>>16,E[1]&65535];var T=[0,0,0,0];return T[3]+=y[3]*E[3],T[2]+=T[3]>>>16,T[3]&=65535,T[2]+=y[2]*E[3],T[1]+=T[2]>>>16,T[2]&=65535,T[2]+=y[3]*E[2],T[1]+=T[2]>>>16,T[2]&=65535,T[1]+=y[1]*E[3],T[0]+=T[1]>>>16,T[1]&=65535,T[1]+=y[2]*E[2],T[0]+=T[1]>>>16,T[1]&=65535,T[1]+=y[3]*E[1],T[0]+=T[1]>>>16,T[1]&=65535,T[0]+=y[0]*E[3]+y[1]*E[2]+y[2]*E[1]+y[3]*E[0],T[0]&=65535,[T[0]<<16|T[1],T[2]<<16|T[3]]}function m(y,E){return E%=64,E===32?[y[1],y[0]]:E<32?[y[0]<>>32-E,y[1]<>>32-E]:(E-=32,[y[1]<>>32-E,y[0]<>>32-E])}function _(y,E){return E%=64,E===0?y:E<32?[y[0]<>>32-E,y[1]<>>1]),y=d(y,[4283543511,3981806797]),y=b(y,[0,y[0]>>>1]),y=d(y,[3301882366,444984403]),y=b(y,[0,y[0]>>>1]),y}o.x86.hash32=function(y,E){if(o.inputValidation&&!a(y))return n;E=E||0;for(var T=y.length%4,N=y.length-T,D=E,C=0,A=3432918353,S=461845907,I=0;I>>0},o.x86.hash128=function(y,E){if(o.inputValidation&&!a(y))return n;E=E||0;for(var T=y.length%16,N=y.length-T,D=E,C=E,A=E,S=E,I=0,L=0,x=0,R=0,M=597399067,K=2869860233,Y=951274213,ee=2716044179,F=0;F>>0).toString(16)).slice(-8)+("00000000"+(C>>>0).toString(16)).slice(-8)+("00000000"+(A>>>0).toString(16)).slice(-8)+("00000000"+(S>>>0).toString(16)).slice(-8)},o.x64.hash128=function(y,E){if(o.inputValidation&&!a(y))return n;E=E||0;for(var T=y.length%16,N=y.length-T,D=[0,E],C=[0,E],A=[0,0],S=[0,0],I=[2277735313,289559509],L=[1291169091,658871167],x=0;x>>0).toString(16)).slice(-8)+("00000000"+(D[1]>>>0).toString(16)).slice(-8)+("00000000"+(C[0]>>>0).toString(16)).slice(-8)+("00000000"+(C[1]>>>0).toString(16)).slice(-8)},r.exports&&(e=r.exports=o),e.murmurHash3=o})()})(murmurHash3js,murmurHash3js.exports);var murmurHash3jsExports=murmurHash3js.exports,murmurhash3jsRevisited=murmurHash3jsExports;const mur=getDefaultExportFromCjs(murmurhash3jsRevisited),murmur3128=from({name:"murmur3-128",code:34,encode:r=>fromHex(mur.x64.hash128(r))});async function hamtHashFn(r){return(await murmur3128.encode(r)).slice(0,8).reverse()}const defaultOptions={chunker:"fixed",strategy:"balanced",rawLeaves:!1,onlyHash:!1,reduceSingleLeafToSelf:!0,hasher:sha256,leafType:"file",cidVersion:0,progress:()=>()=>{},shardSplitThreshold:1e3,fileImportConcurrency:50,blockWriteConcurrency:10,minChunkSize:262144,maxChunkSize:262144,avgChunkSize:262144,window:16,polynomial:0x3df305dfb2a804,maxChildrenPerNode:174,layerRepeat:4,wrapWithDirectory:!1,recursive:!1,hidden:!1,timeout:void 0,hamtHashFn,hamtHashCode:34,hamtBucketBits:8},defaultOptions$1=(r={})=>mergeOptions$1.bind({ignoreUndefined:!0})(defaultOptions,r);function assign(r,e){for(const t in e)Object.defineProperty(r,t,{value:e[t],enumerable:!0,configurable:!0});return r}function createError(r,e,t){if(!r||typeof r=="string")throw new TypeError("Please pass an Error to err-code");t||(t={}),typeof e=="object"&&(t=e,e=""),e&&(t.code=e);try{return assign(r,t)}catch{t.message=r.message,t.stack=r.stack;const o=function(){};return o.prototype=Object.create(Object.getPrototypeOf(r)),assign(new o,t)}}var errCode=createError;const errCode$1=getDefaultExportFromCjs(errCode);var indexMinimal={},minimal$1={},aspromise,hasRequiredAspromise;function requireAspromise(){if(hasRequiredAspromise)return aspromise;hasRequiredAspromise=1,aspromise=r;function r(e,t){for(var n=new Array(arguments.length-1),o=0,a=2,s=!0;a1&&l.charAt(f)==="=";)++h;return Math.ceil(l.length*3)/4-h};for(var t=new Array(64),n=new Array(123),o=0;o<64;)n[t[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;e.encode=function(l,f,h){for(var d=null,m=[],_=0,b=0,w;f>2],w=(y&3)<<4,b=1;break;case 1:m[_++]=t[w|y>>4],w=(y&15)<<2,b=2;break;case 2:m[_++]=t[w|y>>6],m[_++]=t[y&63],b=0;break}_>8191&&((d||(d=[])).push(String.fromCharCode.apply(String,m)),_=0)}return b&&(m[_++]=t[w],m[_++]=61,b===1&&(m[_++]=61)),d?(_&&d.push(String.fromCharCode.apply(String,m.slice(0,_))),d.join("")):String.fromCharCode.apply(String,m.slice(0,_))};var a="invalid encoding";e.decode=function(l,f,h){for(var d=h,m=0,_,b=0;b1)break;if((w=n[w])===void 0)throw Error(a);switch(m){case 0:_=w,m=1;break;case 1:f[h++]=_<<2|(w&48)>>4,_=w,m=2;break;case 2:f[h++]=(_&15)<<4|(w&60)>>2,_=w,m=3;break;case 3:f[h++]=(_&3)<<6|w,m=0;break}}if(m===1)throw Error(a);return h-d},e.test=function(l){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(l)}}(base64$3)),base64$3}var eventemitter,hasRequiredEventemitter;function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;hasRequiredEventemitter=1,eventemitter=r;function r(){this._listeners={}}return r.prototype.on=function(t,n,o){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:n,ctx:o||this}),this},r.prototype.off=function(t,n){if(t===void 0)this._listeners={};else if(n===void 0)this._listeners[t]=[];else for(var o=this._listeners[t],a=0;a0?0:2147483648,d,m);else if(isNaN(h))f(2143289344,d,m);else if(h>34028234663852886e22)f((_<<31|2139095040)>>>0,d,m);else if(h<11754943508222875e-54)f((_<<31|Math.round(h/1401298464324817e-60))>>>0,d,m);else{var b=Math.floor(Math.log(h)/Math.LN2),w=Math.round(h*Math.pow(2,-b)*8388608)&8388607;f((_<<31|b+127<<23|w)>>>0,d,m)}}a.writeFloatLE=s.bind(null,e),a.writeFloatBE=s.bind(null,t);function l(f,h,d){var m=f(h,d),_=(m>>31)*2+1,b=m>>>23&255,w=m&8388607;return b===255?w?NaN:_*(1/0):b===0?_*1401298464324817e-60*w:_*Math.pow(2,b-150)*(w+8388608)}a.readFloatLE=l.bind(null,n),a.readFloatBE=l.bind(null,o)}(),typeof Float64Array<"u"?function(){var s=new Float64Array([-0]),l=new Uint8Array(s.buffer),f=l[7]===128;function h(b,w,y){s[0]=b,w[y]=l[0],w[y+1]=l[1],w[y+2]=l[2],w[y+3]=l[3],w[y+4]=l[4],w[y+5]=l[5],w[y+6]=l[6],w[y+7]=l[7]}function d(b,w,y){s[0]=b,w[y]=l[7],w[y+1]=l[6],w[y+2]=l[5],w[y+3]=l[4],w[y+4]=l[3],w[y+5]=l[2],w[y+6]=l[1],w[y+7]=l[0]}a.writeDoubleLE=f?h:d,a.writeDoubleBE=f?d:h;function m(b,w){return l[0]=b[w],l[1]=b[w+1],l[2]=b[w+2],l[3]=b[w+3],l[4]=b[w+4],l[5]=b[w+5],l[6]=b[w+6],l[7]=b[w+7],s[0]}function _(b,w){return l[7]=b[w],l[6]=b[w+1],l[5]=b[w+2],l[4]=b[w+3],l[3]=b[w+4],l[2]=b[w+5],l[1]=b[w+6],l[0]=b[w+7],s[0]}a.readDoubleLE=f?m:_,a.readDoubleBE=f?_:m}():function(){function s(f,h,d,m,_,b){var w=m<0?1:0;if(w&&(m=-m),m===0)f(0,_,b+h),f(1/m>0?0:2147483648,_,b+d);else if(isNaN(m))f(0,_,b+h),f(2146959360,_,b+d);else if(m>17976931348623157e292)f(0,_,b+h),f((w<<31|2146435072)>>>0,_,b+d);else{var y;if(m<22250738585072014e-324)y=m/5e-324,f(y>>>0,_,b+h),f((w<<31|y/4294967296)>>>0,_,b+d);else{var E=Math.floor(Math.log(m)/Math.LN2);E===1024&&(E=1023),y=m*Math.pow(2,-E),f(y*4503599627370496>>>0,_,b+h),f((w<<31|E+1023<<20|y*1048576&1048575)>>>0,_,b+d)}}}a.writeDoubleLE=s.bind(null,e,0,4),a.writeDoubleBE=s.bind(null,t,4,0);function l(f,h,d,m,_){var b=f(m,_+h),w=f(m,_+d),y=(w>>31)*2+1,E=w>>>20&2047,T=4294967296*(w&1048575)+b;return E===2047?T?NaN:y*(1/0):E===0?y*5e-324*T:y*Math.pow(2,E-1075)*(T+4503599627370496)}a.readDoubleLE=l.bind(null,n,0,4),a.readDoubleBE=l.bind(null,o,4,0)}(),a}function e(a,s,l){s[l]=a&255,s[l+1]=a>>>8&255,s[l+2]=a>>>16&255,s[l+3]=a>>>24}function t(a,s,l){s[l]=a>>>24,s[l+1]=a>>>16&255,s[l+2]=a>>>8&255,s[l+3]=a&255}function n(a,s){return(a[s]|a[s+1]<<8|a[s+2]<<16|a[s+3]<<24)>>>0}function o(a,s){return(a[s]<<24|a[s+1]<<16|a[s+2]<<8|a[s+3])>>>0}return float}var inquire_1,hasRequiredInquire;function requireInquire(){if(hasRequiredInquire)return inquire_1;hasRequiredInquire=1,inquire_1=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(r){}return null}return inquire_1}var utf8$2={},hasRequiredUtf8;function requireUtf8(){return hasRequiredUtf8||(hasRequiredUtf8=1,function(r){var e=r;e.length=function(n){for(var o=0,a=0,s=0;s191&&d<224?f[h++]=(d&31)<<6|n[o++]&63:d>239&&d<365?(d=((d&7)<<18|(n[o++]&63)<<12|(n[o++]&63)<<6|n[o++]&63)-65536,f[h++]=55296+(d>>10),f[h++]=56320+(d&1023)):f[h++]=(d&15)<<12|(n[o++]&63)<<6|n[o++]&63,h>8191&&((l||(l=[])).push(String.fromCharCode.apply(String,f)),h=0);return l?(h&&l.push(String.fromCharCode.apply(String,f.slice(0,h))),l.join("")):String.fromCharCode.apply(String,f.slice(0,h))},e.write=function(n,o,a){for(var s=a,l,f,h=0;h>6|192,o[a++]=l&63|128):(l&64512)===55296&&((f=n.charCodeAt(h+1))&64512)===56320?(l=65536+((l&1023)<<10)+(f&1023),++h,o[a++]=l>>18|240,o[a++]=l>>12&63|128,o[a++]=l>>6&63|128,o[a++]=l&63|128):(o[a++]=l>>12|224,o[a++]=l>>6&63|128,o[a++]=l&63|128);return a-s}}(utf8$2)),utf8$2}var pool_1,hasRequiredPool;function requirePool(){if(hasRequiredPool)return pool_1;hasRequiredPool=1,pool_1=r;function r(e,t,n){var o=n||8192,a=o>>>1,s=null,l=o;return function(h){if(h<1||h>a)return e(h);l+h>o&&(s=e(o),l=0);var d=t.call(s,l,l+=h);return l&7&&(l=(l|7)+1),d}}return pool_1}var longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=e;var r=requireMinimal();function e(a,s){this.lo=a>>>0,this.hi=s>>>0}var t=e.zero=new e(0,0);t.toNumber=function(){return 0},t.zzEncode=t.zzDecode=function(){return this},t.length=function(){return 1};var n=e.zeroHash="\0\0\0\0\0\0\0\0";e.fromNumber=function(s){if(s===0)return t;var l=s<0;l&&(s=-s);var f=s>>>0,h=(s-f)/4294967296>>>0;return l&&(h=~h>>>0,f=~f>>>0,++f>4294967295&&(f=0,++h>4294967295&&(h=0))),new e(f,h)},e.from=function(s){if(typeof s=="number")return e.fromNumber(s);if(r.isString(s))if(r.Long)s=r.Long.fromString(s);else return e.fromNumber(parseInt(s,10));return s.low||s.high?new e(s.low>>>0,s.high>>>0):t},e.prototype.toNumber=function(s){if(!s&&this.hi>>>31){var l=~this.lo+1>>>0,f=~this.hi>>>0;return l||(f=f+1>>>0),-(l+f*4294967296)}return this.lo+this.hi*4294967296},e.prototype.toLong=function(s){return r.Long?new r.Long(this.lo|0,this.hi|0,!!s):{low:this.lo|0,high:this.hi|0,unsigned:!!s}};var o=String.prototype.charCodeAt;return e.fromHash=function(s){return s===n?t:new e((o.call(s,0)|o.call(s,1)<<8|o.call(s,2)<<16|o.call(s,3)<<24)>>>0,(o.call(s,4)|o.call(s,5)<<8|o.call(s,6)<<16|o.call(s,7)<<24)>>>0)},e.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},e.prototype.zzEncode=function(){var s=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^s)>>>0,this.lo=(this.lo<<1^s)>>>0,this},e.prototype.zzDecode=function(){var s=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^s)>>>0,this.hi=(this.hi>>>1^s)>>>0,this},e.prototype.length=function(){var s=this.lo,l=(this.lo>>>28|this.hi<<4)>>>0,f=this.hi>>>24;return f===0?l===0?s<16384?s<128?1:2:s<2097152?3:4:l<16384?l<128?5:6:l<2097152?7:8:f<128?9:10},longbits}var hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,function(r){var e=r;e.asPromise=requireAspromise(),e.base64=requireBase64(),e.EventEmitter=requireEventemitter(),e.float=requireFloat(),e.inquire=requireInquire(),e.utf8=requireUtf8(),e.pool=requirePool(),e.LongBits=requireLongbits(),e.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),e.global=e.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||commonjsGlobal,e.emptyArray=Object.freeze?Object.freeze([]):[],e.emptyObject=Object.freeze?Object.freeze({}):{},e.isInteger=Number.isInteger||function(a){return typeof a=="number"&&isFinite(a)&&Math.floor(a)===a},e.isString=function(a){return typeof a=="string"||a instanceof String},e.isObject=function(a){return a&&typeof a=="object"},e.isset=e.isSet=function(a,s){var l=a[s];return l!=null&&a.hasOwnProperty(s)?typeof l!="object"||(Array.isArray(l)?l.length:Object.keys(l).length)>0:!1},e.Buffer=function(){try{var o=e.inquire("buffer").Buffer;return o.prototype.utf8Write?o:null}catch{return null}}(),e._Buffer_from=null,e._Buffer_allocUnsafe=null,e.newBuffer=function(a){return typeof a=="number"?e.Buffer?e._Buffer_allocUnsafe(a):new e.Array(a):e.Buffer?e._Buffer_from(a):typeof Uint8Array>"u"?a:new Uint8Array(a)},e.Array=typeof Uint8Array<"u"?Uint8Array:Array,e.Long=e.global.dcodeIO&&e.global.dcodeIO.Long||e.global.Long||e.inquire("long"),e.key2Re=/^true|false|0|1$/,e.key32Re=/^-?(?:0|[1-9][0-9]*)$/,e.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,e.longToHash=function(a){return a?e.LongBits.from(a).toHash():e.LongBits.zeroHash},e.longFromHash=function(a,s){var l=e.LongBits.fromHash(a);return e.Long?e.Long.fromBits(l.lo,l.hi,s):l.toNumber(!!s)};function t(o,a,s){for(var l=Object.keys(a),f=0;f-1;--h)if(s[f[h]]===1&&this[f[h]]!==void 0&&this[f[h]]!==null)return f[h]}},e.oneOfSetter=function(a){return function(s){for(var l=0;l127;)e[t++]=r&127|128,r>>>=7;e[t]=r}function VarintOp(r,e){this.len=r,this.next=void 0,this.val=e}VarintOp.prototype=Object.create(Op.prototype);VarintOp.prototype.fn=writeVarint32;Writer$1.prototype.uint32=function r(e){return this.len+=(this.tail=this.tail.next=new VarintOp((e=e>>>0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this};Writer$1.prototype.int32=function r(e){return e<0?this._push(writeVarint64,10,LongBits$1.fromNumber(e)):this.uint32(e)};Writer$1.prototype.sint32=function r(e){return this.uint32((e<<1^e>>31)>>>0)};function writeVarint64(r,e,t){for(;r.hi;)e[t++]=r.lo&127|128,r.lo=(r.lo>>>7|r.hi<<25)>>>0,r.hi>>>=7;for(;r.lo>127;)e[t++]=r.lo&127|128,r.lo=r.lo>>>7;e[t++]=r.lo}Writer$1.prototype.uint64=function r(e){var t=LongBits$1.from(e);return this._push(writeVarint64,t.length(),t)};Writer$1.prototype.int64=Writer$1.prototype.uint64;Writer$1.prototype.sint64=function r(e){var t=LongBits$1.from(e).zzEncode();return this._push(writeVarint64,t.length(),t)};Writer$1.prototype.bool=function r(e){return this._push(writeByte,1,e?1:0)};function writeFixed32(r,e,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24}Writer$1.prototype.fixed32=function r(e){return this._push(writeFixed32,4,e>>>0)};Writer$1.prototype.sfixed32=Writer$1.prototype.fixed32;Writer$1.prototype.fixed64=function r(e){var t=LongBits$1.from(e);return this._push(writeFixed32,4,t.lo)._push(writeFixed32,4,t.hi)};Writer$1.prototype.sfixed64=Writer$1.prototype.fixed64;Writer$1.prototype.float=function r(e){return this._push(util$4.float.writeFloatLE,4,e)};Writer$1.prototype.double=function r(e){return this._push(util$4.float.writeDoubleLE,8,e)};var writeBytes=util$4.Array.prototype.set?function r(e,t,n){t.set(e,n)}:function r(e,t,n){for(var o=0;o>>0;if(!t)return this._push(writeByte,1,0);if(util$4.isString(e)){var n=Writer$1.alloc(t=base64$2.length(e));base64$2.decode(e,n,0),e=n}return this.uint32(t)._push(writeBytes,t,e)};Writer$1.prototype.string=function r(e){var t=utf8$1.length(e);return t?this.uint32(t)._push(utf8$1.write,t,e):this._push(writeByte,1,0)};Writer$1.prototype.fork=function r(){return this.states=new State(this),this.head=this.tail=new Op(noop,0,0),this.len=0,this};Writer$1.prototype.reset=function r(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop,0,0),this.len=0),this};Writer$1.prototype.ldelim=function r(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this};Writer$1.prototype.finish=function r(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t};Writer$1._configure=function(r){BufferWriter$1=r,Writer$1.create=create$2(),BufferWriter$1._configure()};var writer_buffer=BufferWriter,Writer=writer;(BufferWriter.prototype=Object.create(Writer.prototype)).constructor=BufferWriter;var util$3=requireMinimal();function BufferWriter(){Writer.call(this)}BufferWriter._configure=function(){BufferWriter.alloc=util$3._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=util$3.Buffer&&util$3.Buffer.prototype instanceof Uint8Array&&util$3.Buffer.prototype.set.name==="set"?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var o=0;o>>0;return this.uint32(t),t&&this._push(BufferWriter.writeBytesBuffer,t,e),this};function writeStringBuffer(r,e,t){r.length<40?util$3.utf8.write(r,e,t):e.utf8Write?e.utf8Write(r,t):e.write(r,t)}BufferWriter.prototype.string=function r(e){var t=util$3.Buffer.byteLength(e);return this.uint32(t),t&&this._push(writeStringBuffer,t,e),this};BufferWriter._configure();var reader=Reader$1,util$2=requireMinimal(),BufferReader$1,LongBits=util$2.LongBits,utf8=util$2.utf8;function indexOutOfRange(r,e){return RangeError("index out of range: "+r.pos+" + "+(e||1)+" > "+r.len)}function Reader$1(r){this.buf=r,this.pos=0,this.len=r.length}var create_array=typeof Uint8Array<"u"?function r(e){if(e instanceof Uint8Array||Array.isArray(e))return new Reader$1(e);throw Error("illegal buffer")}:function r(e){if(Array.isArray(e))return new Reader$1(e);throw Error("illegal buffer")},create$1=function r(){return util$2.Buffer?function(t){return(Reader$1.create=function(o){return util$2.Buffer.isBuffer(o)?new BufferReader$1(o):create_array(o)})(t)}:create_array};Reader$1.create=create$1();Reader$1.prototype._slice=util$2.Array.prototype.subarray||util$2.Array.prototype.slice;Reader$1.prototype.uint32=function r(){var e=4294967295;return function(){if(e=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(e=(e|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange(this,10);return e}}();Reader$1.prototype.int32=function r(){return this.uint32()|0};Reader$1.prototype.sint32=function r(){var e=this.uint32();return e>>>1^-(e&1)|0};function readLongVarint(){var r=new LongBits(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(r.lo=(r.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r;if(r.lo=(r.lo|(this.buf[this.pos]&127)<<28)>>>0,r.hi=(r.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return r;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw indexOutOfRange(this);if(r.lo=(r.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}return r.lo=(r.lo|(this.buf[this.pos++]&127)<>>0,r}if(this.len-this.pos>4){for(;e<5;++e)if(r.hi=(r.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}else for(;e<5;++e){if(this.pos>=this.len)throw indexOutOfRange(this);if(r.hi=(r.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}throw Error("invalid varint encoding")}Reader$1.prototype.bool=function r(){return this.uint32()!==0};function readFixed32_end(r,e){return(r[e-4]|r[e-3]<<8|r[e-2]<<16|r[e-1]<<24)>>>0}Reader$1.prototype.fixed32=function r(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)};Reader$1.prototype.sfixed32=function r(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)|0};function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new LongBits(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader$1.prototype.float=function r(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var e=util$2.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e};Reader$1.prototype.double=function r(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var e=util$2.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e};Reader$1.prototype.bytes=function r(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw indexOutOfRange(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)};Reader$1.prototype.string=function r(){var e=this.bytes();return utf8.read(e,0,e.length)};Reader$1.prototype.skip=function r(e){if(typeof e=="number"){if(this.pos+e>this.len)throw indexOutOfRange(this,e);this.pos+=e}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(this.buf[this.pos++]&128);return this};Reader$1.prototype.skipType=function(r){switch(r){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(r=this.uint32()&7)!==4;)this.skipType(r);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+r+" at offset "+this.pos)}return this};Reader$1._configure=function(r){BufferReader$1=r,Reader$1.create=create$1(),BufferReader$1._configure();var e=util$2.Long?"toLong":"toNumber";util$2.merge(Reader$1.prototype,{int64:function(){return readLongVarint.call(this)[e](!1)},uint64:function(){return readLongVarint.call(this)[e](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[e](!1)},fixed64:function(){return readFixed64.call(this)[e](!0)},sfixed64:function(){return readFixed64.call(this)[e](!1)}})};var reader_buffer=BufferReader,Reader=reader;(BufferReader.prototype=Object.create(Reader.prototype)).constructor=BufferReader;var util$1=requireMinimal();function BufferReader(r){Reader.call(this,r)}BufferReader._configure=function(){util$1.Buffer&&(BufferReader.prototype._slice=util$1.Buffer.prototype.slice)};BufferReader.prototype.string=function r(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))};BufferReader._configure();var rpc={},service=Service,util=requireMinimal();(Service.prototype=Object.create(util.EventEmitter.prototype)).constructor=Service;function Service(r,e,t){if(typeof r!="function")throw TypeError("rpcImpl must be a function");util.EventEmitter.call(this),this.rpcImpl=r,this.requestDelimited=!!e,this.responseDelimited=!!t}Service.prototype.rpcCall=function r(e,t,n,o,a){if(!o)throw TypeError("request must be specified");var s=this;if(!a)return util.asPromise(r,s,e,t,n,o);if(!s.rpcImpl){setTimeout(function(){a(Error("already ended"))},0);return}try{return s.rpcImpl(e,t[s.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(f,h){if(f)return s.emit("error",f,e),a(f);if(h===null){s.end(!0);return}if(!(h instanceof n))try{h=n[s.responseDelimited?"decodeDelimited":"decode"](h)}catch(d){return s.emit("error",d,e),a(d)}return s.emit("data",h,e),a(null,h)})}catch(l){s.emit("error",l,e),setTimeout(function(){a(l)},0);return}};Service.prototype.end=function r(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this};(function(r){var e=r;e.Service=service})(rpc);var roots={};(function(r){var e=r;e.build="minimal",e.Writer=writer,e.BufferWriter=writer_buffer,e.Reader=reader,e.BufferReader=reader_buffer,e.util=requireMinimal(),e.rpc=rpc,e.roots=roots,e.configure=t;function t(){e.util._configure(),e.Writer._configure(e.BufferWriter),e.Reader._configure(e.BufferReader)}t()})(indexMinimal);var minimal=indexMinimal;const $protobuf=getDefaultExportFromCjs(minimal),$Reader=$protobuf.Reader,$Writer=$protobuf.Writer,$util=$protobuf.util,$root=$protobuf.roots["ipfs-unixfs"]||($protobuf.roots["ipfs-unixfs"]={}),Data=$root.Data=(()=>{function r(e){if(this.blocksizes=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:a.Type=t.int32();break;case 2:a.Data=t.bytes();break;case 3:a.filesize=t.uint64();break;case 4:if(a.blocksizes&&a.blocksizes.length||(a.blocksizes=[]),(s&7)===2)for(var l=t.uint32()+t.pos;t.pos>>0,t.filesize.high>>>0).toNumber(!0))),t.blocksizes){if(!Array.isArray(t.blocksizes))throw TypeError(".Data.blocksizes: array expected");n.blocksizes=[];for(var o=0;o>>0,t.blocksizes[o].high>>>0).toNumber(!0))}if(t.hashType!=null&&($util.Long?(n.hashType=$util.Long.fromValue(t.hashType)).unsigned=!0:typeof t.hashType=="string"?n.hashType=parseInt(t.hashType,10):typeof t.hashType=="number"?n.hashType=t.hashType:typeof t.hashType=="object"&&(n.hashType=new $util.LongBits(t.hashType.low>>>0,t.hashType.high>>>0).toNumber(!0))),t.fanout!=null&&($util.Long?(n.fanout=$util.Long.fromValue(t.fanout)).unsigned=!0:typeof t.fanout=="string"?n.fanout=parseInt(t.fanout,10):typeof t.fanout=="number"?n.fanout=t.fanout:typeof t.fanout=="object"&&(n.fanout=new $util.LongBits(t.fanout.low>>>0,t.fanout.high>>>0).toNumber(!0))),t.mode!=null&&(n.mode=t.mode>>>0),t.mtime!=null){if(typeof t.mtime!="object")throw TypeError(".Data.mtime: object expected");n.mtime=$root.UnixTime.fromObject(t.mtime)}return n},r.toObject=function(t,n){n||(n={});var o={};if((n.arrays||n.defaults)&&(o.blocksizes=[]),n.defaults){if(o.Type=n.enums===String?"Raw":0,n.bytes===String?o.Data="":(o.Data=[],n.bytes!==Array&&(o.Data=$util.newBuffer(o.Data))),$util.Long){var a=new $util.Long(0,0,!0);o.filesize=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.filesize=n.longs===String?"0":0;if($util.Long){var a=new $util.Long(0,0,!0);o.hashType=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.hashType=n.longs===String?"0":0;if($util.Long){var a=new $util.Long(0,0,!0);o.fanout=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.fanout=n.longs===String?"0":0;o.mode=0,o.mtime=null}if(t.Type!=null&&t.hasOwnProperty("Type")&&(o.Type=n.enums===String?$root.Data.DataType[t.Type]:t.Type),t.Data!=null&&t.hasOwnProperty("Data")&&(o.Data=n.bytes===String?$util.base64.encode(t.Data,0,t.Data.length):n.bytes===Array?Array.prototype.slice.call(t.Data):t.Data),t.filesize!=null&&t.hasOwnProperty("filesize")&&(typeof t.filesize=="number"?o.filesize=n.longs===String?String(t.filesize):t.filesize:o.filesize=n.longs===String?$util.Long.prototype.toString.call(t.filesize):n.longs===Number?new $util.LongBits(t.filesize.low>>>0,t.filesize.high>>>0).toNumber(!0):t.filesize),t.blocksizes&&t.blocksizes.length){o.blocksizes=[];for(var s=0;s>>0,t.blocksizes[s].high>>>0).toNumber(!0):t.blocksizes[s]}return t.hashType!=null&&t.hasOwnProperty("hashType")&&(typeof t.hashType=="number"?o.hashType=n.longs===String?String(t.hashType):t.hashType:o.hashType=n.longs===String?$util.Long.prototype.toString.call(t.hashType):n.longs===Number?new $util.LongBits(t.hashType.low>>>0,t.hashType.high>>>0).toNumber(!0):t.hashType),t.fanout!=null&&t.hasOwnProperty("fanout")&&(typeof t.fanout=="number"?o.fanout=n.longs===String?String(t.fanout):t.fanout:o.fanout=n.longs===String?$util.Long.prototype.toString.call(t.fanout):n.longs===Number?new $util.LongBits(t.fanout.low>>>0,t.fanout.high>>>0).toNumber(!0):t.fanout),t.mode!=null&&t.hasOwnProperty("mode")&&(o.mode=t.mode),t.mtime!=null&&t.hasOwnProperty("mtime")&&(o.mtime=$root.UnixTime.toObject(t.mtime,n)),o},r.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},r.DataType=function(){const e={},t=Object.create(e);return t[e[0]="Raw"]=0,t[e[1]="Directory"]=1,t[e[2]="File"]=2,t[e[3]="Metadata"]=3,t[e[4]="Symlink"]=4,t[e[5]="HAMTShard"]=5,t}(),r})();$root.UnixTime=(()=>{function r(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:a.Seconds=t.int64();break;case 2:a.FractionalNanoseconds=t.fixed32();break;default:t.skipType(s&7);break}}if(!a.hasOwnProperty("Seconds"))throw $util.ProtocolError("missing required 'Seconds'",{instance:a});return a},r.fromObject=function(t){if(t instanceof $root.UnixTime)return t;var n=new $root.UnixTime;return t.Seconds!=null&&($util.Long?(n.Seconds=$util.Long.fromValue(t.Seconds)).unsigned=!1:typeof t.Seconds=="string"?n.Seconds=parseInt(t.Seconds,10):typeof t.Seconds=="number"?n.Seconds=t.Seconds:typeof t.Seconds=="object"&&(n.Seconds=new $util.LongBits(t.Seconds.low>>>0,t.Seconds.high>>>0).toNumber())),t.FractionalNanoseconds!=null&&(n.FractionalNanoseconds=t.FractionalNanoseconds>>>0),n},r.toObject=function(t,n){n||(n={});var o={};if(n.defaults){if($util.Long){var a=new $util.Long(0,0,!1);o.Seconds=n.longs===String?a.toString():n.longs===Number?a.toNumber():a}else o.Seconds=n.longs===String?"0":0;o.FractionalNanoseconds=0}return t.Seconds!=null&&t.hasOwnProperty("Seconds")&&(typeof t.Seconds=="number"?o.Seconds=n.longs===String?String(t.Seconds):t.Seconds:o.Seconds=n.longs===String?$util.Long.prototype.toString.call(t.Seconds):n.longs===Number?new $util.LongBits(t.Seconds.low>>>0,t.Seconds.high>>>0).toNumber():t.Seconds),t.FractionalNanoseconds!=null&&t.hasOwnProperty("FractionalNanoseconds")&&(o.FractionalNanoseconds=t.FractionalNanoseconds),o},r.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},r})();$root.Metadata=(()=>{function r(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:a.MimeType=t.string();break;default:t.skipType(s&7);break}}return a},r.fromObject=function(t){if(t instanceof $root.Metadata)return t;var n=new $root.Metadata;return t.MimeType!=null&&(n.MimeType=String(t.MimeType)),n},r.toObject=function(t,n){n||(n={});var o={};return n.defaults&&(o.MimeType=""),t.MimeType!=null&&t.hasOwnProperty("MimeType")&&(o.MimeType=t.MimeType),o},r.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},r})();const PBData=Data,types=["raw","directory","file","metadata","symlink","hamt-sharded-directory"],dirTypes=["directory","hamt-sharded-directory"],DEFAULT_FILE_MODE=parseInt("0644",8),DEFAULT_DIRECTORY_MODE=parseInt("0755",8);function parseMode(r){if(r!=null)return typeof r=="number"?r&4095:(r=r.toString(),r.substring(0,1)==="0"?parseInt(r,8)&4095:parseInt(r,10)&4095)}function parseMtime(r){if(r==null)return;let e;if(r.secs!=null&&(e={secs:r.secs,nsecs:r.nsecs}),r.Seconds!=null&&(e={secs:r.Seconds,nsecs:r.FractionalNanoseconds}),Array.isArray(r)&&(e={secs:r[0],nsecs:r[1]}),r instanceof Date){const t=r.getTime(),n=Math.floor(t/1e3);e={secs:n,nsecs:(t-n*1e3)*1e3}}if(Object.prototype.hasOwnProperty.call(e,"secs")){if(e!=null&&e.nsecs!=null&&(e.nsecs<0||e.nsecs>999999999))throw errCode$1(new Error("mtime-nsecs must be within the range [0,999999999]"),"ERR_INVALID_MTIME_NSECS");return e}}class UnixFS{static unmarshal(e){const t=PBData.decode(e),n=PBData.toObject(t,{defaults:!1,arrays:!0,longs:Number,objects:!1}),o=new UnixFS({type:types[n.Type],data:n.Data,blockSizes:n.blocksizes,mode:n.mode,mtime:n.mtime?{secs:n.mtime.Seconds,nsecs:n.mtime.FractionalNanoseconds}:void 0});return o._originalMode=n.mode||0,o}constructor(e={type:"file"}){const{type:t,data:n,blockSizes:o,hashType:a,fanout:s,mtime:l,mode:f}=e;if(t&&!types.includes(t))throw errCode$1(new Error("Type: "+t+" is not valid"),"ERR_INVALID_TYPE");this.type=t||"file",this.data=n,this.hashType=a,this.fanout=s,this.blockSizes=o||[],this._originalMode=0,this.mode=parseMode(f),l&&(this.mtime=parseMtime(l),this.mtime&&!this.mtime.nsecs&&(this.mtime.nsecs=0))}set mode(e){this._mode=this.isDirectory()?DEFAULT_DIRECTORY_MODE:DEFAULT_FILE_MODE;const t=parseMode(e);t!==void 0&&(this._mode=t)}get mode(){return this._mode}isDirectory(){return!!(this.type&&dirTypes.includes(this.type))}addBlockSize(e){this.blockSizes.push(e)}removeBlockSize(e){this.blockSizes.splice(e,1)}fileSize(){if(this.isDirectory())return 0;let e=0;return this.blockSizes.forEach(t=>{e+=t}),this.data&&(e+=this.data.length),e}marshal(){let e;switch(this.type){case"raw":e=PBData.DataType.Raw;break;case"directory":e=PBData.DataType.Directory;break;case"file":e=PBData.DataType.File;break;case"metadata":e=PBData.DataType.Metadata;break;case"symlink":e=PBData.DataType.Symlink;break;case"hamt-sharded-directory":e=PBData.DataType.HAMTShard;break;default:throw errCode$1(new Error("Type: "+e+" is not valid"),"ERR_INVALID_TYPE")}let t=this.data;(!this.data||!this.data.length)&&(t=void 0);let n;this.mode!=null&&(n=this._originalMode&4294963200|(parseMode(this.mode)||0),n===DEFAULT_FILE_MODE&&!this.isDirectory()&&(n=void 0),n===DEFAULT_DIRECTORY_MODE&&this.isDirectory()&&(n=void 0));let o;if(this.mtime!=null){const s=parseMtime(this.mtime);s&&(o={Seconds:s.secs,FractionalNanoseconds:s.nsecs},o.FractionalNanoseconds===0&&delete o.FractionalNanoseconds)}const a={Type:e,Data:t,filesize:this.isDirectory()?void 0:this.fileSize(),blocksizes:this.blockSizes,hashType:this.hashType,fanout:this.fanout,mode:n,mtime:o};return PBData.encode(a).finish()}}const persist=async(r,e,t)=>{t.codec||(t.codec=dagPb),t.hasher||(t.hasher=sha256),t.cidVersion===void 0&&(t.cidVersion=1),t.codec===dagPb&&t.hasher!==sha256&&(t.cidVersion=1);const n=await t.hasher.digest(r),o=CID.create(t.cidVersion,t.codec.code,n);return t.onlyHash||await e.put(o,r,{signal:t.signal}),o},dirBuilder=async(r,e,t)=>{const n=new UnixFS({type:"directory",mtime:r.mtime,mode:r.mode}),o=encode$1(prepare({Data:n.marshal()})),a=await persist(o,e,t),s=r.path;return{cid:a,path:s,unixfs:n,size:o.length}},all=async r=>{const e=[];for await(const t of r)e.push(t);return e};var itAll=all;const all$1=getDefaultExportFromCjs(itAll);async function flat(r,e){return e(await all$1(r))}function balanced(r,e,t){return reduceToParents(r,e,t)}async function reduceToParents(r,e,t){const n=[];for await(const o of batch$2(r,t.maxChildrenPerNode))n.push(await e(o));return n.length>1?reduceToParents(n,e,t):n[0]}async function trickleStream(r,e,t){const n=new Root(t.layerRepeat);let o=0,a=1,s=n;for await(const l of batch$2(r,t.maxChildrenPerNode))s.isFull()&&(s!==n&&n.addChild(await s.reduce(e)),o&&o%t.layerRepeat===0&&a++,s=new SubTree(a,t.layerRepeat,o),o++),s.append(l);return s&&s!==n&&n.addChild(await s.reduce(e)),n.reduce(e)}class SubTree{constructor(e,t,n=0){this.maxDepth=e,this.layerRepeat=t,this.currentDepth=1,this.iteration=n,this.root=this.node=this.parent={children:[],depth:this.currentDepth,maxDepth:e,maxChildren:(this.maxDepth-this.currentDepth)*this.layerRepeat}}isFull(){if(!this.root.data)return!1;if(this.currentDeptho.data).map(o=>this._reduce(o,t)))),t((e.data||[]).concat(n))}_findParent(e,t){const n=e.parent;if(!(!n||n.depth===0))return n.children.length===n.maxChildren||!n.maxChildren?this._findParent(n,t):n}}class Root extends SubTree{constructor(e){super(0,e),this.root.depth=0,this.currentDepth=1}addChild(e){this.root.children.push(e)}reduce(e){return e((this.root.data||[]).concat(this.root.children))}}async function*bufferImporter(r,e,t){for await(let n of r.content)yield async()=>{t.progress(n.length,r.path);let o;const a={codec:dagPb,cidVersion:t.cidVersion,hasher:t.hasher,onlyHash:t.onlyHash};return t.rawLeaves?(a.codec=raw,a.cidVersion=1):(o=new UnixFS({type:t.leafType,data:n}),n=encode$1({Data:o.marshal(),Links:[]})),{cid:await persist(n,e,a),unixfs:o,size:n.length}}}const dagBuilders={flat,balanced,trickle:trickleStream};async function*buildFileBatch(r,e,t){let n=-1,o,a;typeof t.bufferImporter=="function"?a=t.bufferImporter:a=bufferImporter;for await(const s of parallelBatch$1(a(r,e,t),t.blockWriteConcurrency)){if(n++,n===0){o=s;continue}else n===1&&o&&(yield o,o=null);yield s}o&&(o.single=!0,yield o)}const reduce=(r,e,t)=>{async function n(o){if(o.length===1&&o[0].single&&t.reduceSingleLeafToSelf){const d=o[0];if(r.mtime!==void 0||r.mode!==void 0){let m=await e.get(d.cid);d.unixfs=new UnixFS({type:"file",mtime:r.mtime,mode:r.mode,data:m}),m=encode$1(prepare({Data:d.unixfs.marshal()})),d.cid=await persist(m,e,{...t,codec:dagPb,hasher:t.hasher,cidVersion:t.cidVersion}),d.size=m.length}return{cid:d.cid,path:r.path,unixfs:d.unixfs,size:d.size}}const a=new UnixFS({type:"file",mtime:r.mtime,mode:r.mode}),s=o.filter(d=>d.cid.code===code$3&&d.size||d.unixfs&&!d.unixfs.data&&d.unixfs.fileSize()?!0:!!(d.unixfs&&d.unixfs.data&&d.unixfs.data.length)).map(d=>d.cid.code===code$3?(a.addBlockSize(d.size),{Name:"",Tsize:d.size,Hash:d.cid}):(!d.unixfs||!d.unixfs.data?a.addBlockSize(d.unixfs&&d.unixfs.fileSize()||0):a.addBlockSize(d.unixfs.data.length),{Name:"",Tsize:d.size,Hash:d.cid})),l={Data:a.marshal(),Links:s},f=encode$1(prepare(l));return{cid:await persist(f,e,t),path:r.path,unixfs:a,size:f.length+l.Links.reduce((d,m)=>d+m.Tsize,0)}}return n};function fileBuilder(r,e,t){const n=dagBuilders[t.strategy];if(!n)throw errCode$1(new Error(`Unknown importer build strategy name: ${t.strategy}`),"ERR_BAD_STRATEGY");return n(buildFileBatch(r,e,t),reduce(r,e,t),t)}var buffer={},base64Js={};base64Js.byteLength=byteLength;base64Js.toByteArray=toByteArray;base64Js.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i=0,len=code.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var n=t===e?0:4-t%4;return[t,n]}function byteLength(r){var e=getLens(r),t=e[0],n=e[1];return(t+n)*3/4-n}function _byteLength(r,e,t){return(e+t)*3/4-t}function toByteArray(r){var e,t=getLens(r),n=t[0],o=t[1],a=new Arr(_byteLength(r,n,o)),s=0,l=o>0?n-4:n,f;for(f=0;f>16&255,a[s++]=e>>8&255,a[s++]=e&255;return o===2&&(e=revLookup[r.charCodeAt(f)]<<2|revLookup[r.charCodeAt(f+1)]>>4,a[s++]=e&255),o===1&&(e=revLookup[r.charCodeAt(f)]<<10|revLookup[r.charCodeAt(f+1)]<<4|revLookup[r.charCodeAt(f+2)]>>2,a[s++]=e>>8&255,a[s++]=e&255),a}function tripletToBase64(r){return lookup[r>>18&63]+lookup[r>>12&63]+lookup[r>>6&63]+lookup[r&63]}function encodeChunk(r,e,t){for(var n,o=[],a=e;al?l:s+a));return n===1?(e=r[t-1],o.push(lookup[e>>2]+lookup[e<<4&63]+"==")):n===2&&(e=(r[t-2]<<8)+r[t-1],o.push(lookup[e>>10]+lookup[e>>4&63]+lookup[e<<2&63]+"=")),o.join("")}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ieee754.read=function(r,e,t,n,o){var a,s,l=o*8-n-1,f=(1<>1,d=-7,m=t?o-1:0,_=t?-1:1,b=r[e+m];for(m+=_,a=b&(1<<-d)-1,b>>=-d,d+=l;d>0;a=a*256+r[e+m],m+=_,d-=8);for(s=a&(1<<-d)-1,a>>=-d,d+=n;d>0;s=s*256+r[e+m],m+=_,d-=8);if(a===0)a=1-h;else{if(a===f)return s?NaN:(b?-1:1)*(1/0);s=s+Math.pow(2,n),a=a-h}return(b?-1:1)*s*Math.pow(2,a-n)};ieee754.write=function(r,e,t,n,o,a){var s,l,f,h=a*8-o-1,d=(1<>1,_=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:a-1,w=n?1:-1,y=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,s=d):(s=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-s))<1&&(s--,f*=2),s+m>=1?e+=_/f:e+=_*Math.pow(2,1-m),e*f>=2&&(s++,f/=2),s+m>=d?(l=0,s=d):s+m>=1?(l=(e*f-1)*Math.pow(2,o),s=s+m):(l=e*Math.pow(2,m-1)*Math.pow(2,o),s=0));o>=8;r[t+b]=l&255,b+=w,l/=256,o-=8);for(s=s<0;r[t+b]=s&255,b+=w,s/=256,h-=8);r[t+b-w]|=y*128};/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */(function(r){const e=base64Js,t=ieee754,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=l,r.SlowBuffer=N,r.INSPECT_MAX_BYTES=50;const o=2147483647;r.kMaxLength=o,l.TYPED_ARRAY_SUPPORT=a(),!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{const p=new Uint8Array(1),c={foo:function(){return 42}};return Object.setPrototypeOf(c,Uint8Array.prototype),Object.setPrototypeOf(p,c),p.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function s(p){if(p>o)throw new RangeError('The value "'+p+'" is invalid for option "size"');const c=new Uint8Array(p);return Object.setPrototypeOf(c,l.prototype),c}function l(p,c,u){if(typeof p=="number"){if(typeof c=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(p)}return f(p,c,u)}l.poolSize=8192;function f(p,c,u){if(typeof p=="string")return _(p,c);if(ArrayBuffer.isView(p))return w(p);if(p==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p);if(ie(p,ArrayBuffer)||p&&ie(p.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ie(p,SharedArrayBuffer)||p&&ie(p.buffer,SharedArrayBuffer)))return y(p,c,u);if(typeof p=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const g=p.valueOf&&p.valueOf();if(g!=null&&g!==p)return l.from(g,c,u);const v=E(p);if(v)return v;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof p[Symbol.toPrimitive]=="function")return l.from(p[Symbol.toPrimitive]("string"),c,u);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p)}l.from=function(p,c,u){return f(p,c,u)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function h(p){if(typeof p!="number")throw new TypeError('"size" argument must be of type number');if(p<0)throw new RangeError('The value "'+p+'" is invalid for option "size"')}function d(p,c,u){return h(p),p<=0?s(p):c!==void 0?typeof u=="string"?s(p).fill(c,u):s(p).fill(c):s(p)}l.alloc=function(p,c,u){return d(p,c,u)};function m(p){return h(p),s(p<0?0:T(p)|0)}l.allocUnsafe=function(p){return m(p)},l.allocUnsafeSlow=function(p){return m(p)};function _(p,c){if((typeof c!="string"||c==="")&&(c="utf8"),!l.isEncoding(c))throw new TypeError("Unknown encoding: "+c);const u=D(p,c)|0;let g=s(u);const v=g.write(p,c);return v!==u&&(g=g.slice(0,v)),g}function b(p){const c=p.length<0?0:T(p.length)|0,u=s(c);for(let g=0;g=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return p|0}function N(p){return+p!=p&&(p=0),l.alloc(+p)}l.isBuffer=function(c){return c!=null&&c._isBuffer===!0&&c!==l.prototype},l.compare=function(c,u){if(ie(c,Uint8Array)&&(c=l.from(c,c.offset,c.byteLength)),ie(u,Uint8Array)&&(u=l.from(u,u.offset,u.byteLength)),!l.isBuffer(c)||!l.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(c===u)return 0;let g=c.length,v=u.length;for(let k=0,B=Math.min(g,v);kv.length?(l.isBuffer(B)||(B=l.from(B)),B.copy(v,k)):Uint8Array.prototype.set.call(v,B,k);else if(l.isBuffer(B))B.copy(v,k);else throw new TypeError('"list" argument must be an Array of Buffers');k+=B.length}return v};function D(p,c){if(l.isBuffer(p))return p.length;if(ArrayBuffer.isView(p)||ie(p,ArrayBuffer))return p.byteLength;if(typeof p!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof p);const u=p.length,g=arguments.length>2&&arguments[2]===!0;if(!g&&u===0)return 0;let v=!1;for(;;)switch(c){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":return ae(p).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u*2;case"hex":return u>>>1;case"base64":return W(p).length;default:if(v)return g?-1:ae(p).length;c=(""+c).toLowerCase(),v=!0}}l.byteLength=D;function C(p,c,u){let g=!1;if((c===void 0||c<0)&&(c=0),c>this.length||((u===void 0||u>this.length)&&(u=this.length),u<=0)||(u>>>=0,c>>>=0,u<=c))return"";for(p||(p="utf8");;)switch(p){case"hex":return he(this,c,u);case"utf8":case"utf-8":return ee(this,c,u);case"ascii":return fe(this,c,u);case"latin1":case"binary":return Ve(this,c,u);case"base64":return Y(this,c,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return We(this,c,u);default:if(g)throw new TypeError("Unknown encoding: "+p);p=(p+"").toLowerCase(),g=!0}}l.prototype._isBuffer=!0;function A(p,c,u){const g=p[c];p[c]=p[u],p[u]=g}l.prototype.swap16=function(){const c=this.length;if(c%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let u=0;uu&&(c+=" ... "),""},n&&(l.prototype[n]=l.prototype.inspect),l.prototype.compare=function(c,u,g,v,k){if(ie(c,Uint8Array)&&(c=l.from(c,c.offset,c.byteLength)),!l.isBuffer(c))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof c);if(u===void 0&&(u=0),g===void 0&&(g=c?c.length:0),v===void 0&&(v=0),k===void 0&&(k=this.length),u<0||g>c.length||v<0||k>this.length)throw new RangeError("out of range index");if(v>=k&&u>=g)return 0;if(v>=k)return-1;if(u>=g)return 1;if(u>>>=0,g>>>=0,v>>>=0,k>>>=0,this===c)return 0;let B=k-v,U=g-u;const j=Math.min(B,U),V=this.slice(v,k),z=c.slice(u,g);for(let H=0;H2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,se(u)&&(u=v?0:p.length-1),u<0&&(u=p.length+u),u>=p.length){if(v)return-1;u=p.length-1}else if(u<0)if(v)u=0;else return-1;if(typeof c=="string"&&(c=l.from(c,g)),l.isBuffer(c))return c.length===0?-1:I(p,c,u,g,v);if(typeof c=="number")return c=c&255,typeof Uint8Array.prototype.indexOf=="function"?v?Uint8Array.prototype.indexOf.call(p,c,u):Uint8Array.prototype.lastIndexOf.call(p,c,u):I(p,[c],u,g,v);throw new TypeError("val must be string, number or Buffer")}function I(p,c,u,g,v){let k=1,B=p.length,U=c.length;if(g!==void 0&&(g=String(g).toLowerCase(),g==="ucs2"||g==="ucs-2"||g==="utf16le"||g==="utf-16le")){if(p.length<2||c.length<2)return-1;k=2,B/=2,U/=2,u/=2}function j(z,H){return k===1?z[H]:z.readUInt16BE(H*k)}let V;if(v){let z=-1;for(V=u;VB&&(u=B-U),V=u;V>=0;V--){let z=!0;for(let H=0;Hv&&(g=v)):g=v;const k=c.length;g>k/2&&(g=k/2);let B;for(B=0;B>>0,isFinite(g)?(g=g>>>0,v===void 0&&(v="utf8")):(v=g,g=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const k=this.length-u;if((g===void 0||g>k)&&(g=k),c.length>0&&(g<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");v||(v="utf8");let B=!1;for(;;)switch(v){case"hex":return L(this,c,u,g);case"utf8":case"utf-8":return x(this,c,u,g);case"ascii":case"latin1":case"binary":return R(this,c,u,g);case"base64":return M(this,c,u,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,c,u,g);default:if(B)throw new TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),B=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(p,c,u){return c===0&&u===p.length?e.fromByteArray(p):e.fromByteArray(p.slice(c,u))}function ee(p,c,u){u=Math.min(p.length,u);const g=[];let v=c;for(;v239?4:k>223?3:k>191?2:1;if(v+U<=u){let j,V,z,H;switch(U){case 1:k<128&&(B=k);break;case 2:j=p[v+1],(j&192)===128&&(H=(k&31)<<6|j&63,H>127&&(B=H));break;case 3:j=p[v+1],V=p[v+2],(j&192)===128&&(V&192)===128&&(H=(k&15)<<12|(j&63)<<6|V&63,H>2047&&(H<55296||H>57343)&&(B=H));break;case 4:j=p[v+1],V=p[v+2],z=p[v+3],(j&192)===128&&(V&192)===128&&(z&192)===128&&(H=(k&15)<<18|(j&63)<<12|(V&63)<<6|z&63,H>65535&&H<1114112&&(B=H))}}B===null?(B=65533,U=1):B>65535&&(B-=65536,g.push(B>>>10&1023|55296),B=56320|B&1023),g.push(B),v+=U}return He(g)}const F=4096;function He(p){const c=p.length;if(c<=F)return String.fromCharCode.apply(String,p);let u="",g=0;for(;gg)&&(u=g);let v="";for(let k=c;kg&&(c=g),u<0?(u+=g,u<0&&(u=0)):u>g&&(u=g),uu)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(c,u,g){c=c>>>0,u=u>>>0,g||G(c,u,this.length);let v=this[c],k=1,B=0;for(;++B>>0,u=u>>>0,g||G(c,u,this.length);let v=this[c+--u],k=1;for(;u>0&&(k*=256);)v+=this[c+--u]*k;return v},l.prototype.readUint8=l.prototype.readUInt8=function(c,u){return c=c>>>0,u||G(c,1,this.length),this[c]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(c,u){return c=c>>>0,u||G(c,2,this.length),this[c]|this[c+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(c,u){return c=c>>>0,u||G(c,2,this.length),this[c]<<8|this[c+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(c,u){return c=c>>>0,u||G(c,4,this.length),(this[c]|this[c+1]<<8|this[c+2]<<16)+this[c+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(c,u){return c=c>>>0,u||G(c,4,this.length),this[c]*16777216+(this[c+1]<<16|this[c+2]<<8|this[c+3])},l.prototype.readBigUInt64LE=Q(function(c){c=c>>>0,pe(c,"offset");const u=this[c],g=this[c+7];(u===void 0||g===void 0)&&ye(c,this.length-8);const v=u+this[++c]*2**8+this[++c]*2**16+this[++c]*2**24,k=this[++c]+this[++c]*2**8+this[++c]*2**16+g*2**24;return BigInt(v)+(BigInt(k)<>>0,pe(c,"offset");const u=this[c],g=this[c+7];(u===void 0||g===void 0)&&ye(c,this.length-8);const v=u*2**24+this[++c]*2**16+this[++c]*2**8+this[++c],k=this[++c]*2**24+this[++c]*2**16+this[++c]*2**8+g;return(BigInt(v)<>>0,u=u>>>0,g||G(c,u,this.length);let v=this[c],k=1,B=0;for(;++B=k&&(v-=Math.pow(2,8*u)),v},l.prototype.readIntBE=function(c,u,g){c=c>>>0,u=u>>>0,g||G(c,u,this.length);let v=u,k=1,B=this[c+--v];for(;v>0&&(k*=256);)B+=this[c+--v]*k;return k*=128,B>=k&&(B-=Math.pow(2,8*u)),B},l.prototype.readInt8=function(c,u){return c=c>>>0,u||G(c,1,this.length),this[c]&128?(255-this[c]+1)*-1:this[c]},l.prototype.readInt16LE=function(c,u){c=c>>>0,u||G(c,2,this.length);const g=this[c]|this[c+1]<<8;return g&32768?g|4294901760:g},l.prototype.readInt16BE=function(c,u){c=c>>>0,u||G(c,2,this.length);const g=this[c+1]|this[c]<<8;return g&32768?g|4294901760:g},l.prototype.readInt32LE=function(c,u){return c=c>>>0,u||G(c,4,this.length),this[c]|this[c+1]<<8|this[c+2]<<16|this[c+3]<<24},l.prototype.readInt32BE=function(c,u){return c=c>>>0,u||G(c,4,this.length),this[c]<<24|this[c+1]<<16|this[c+2]<<8|this[c+3]},l.prototype.readBigInt64LE=Q(function(c){c=c>>>0,pe(c,"offset");const u=this[c],g=this[c+7];(u===void 0||g===void 0)&&ye(c,this.length-8);const v=this[c+4]+this[c+5]*2**8+this[c+6]*2**16+(g<<24);return(BigInt(v)<>>0,pe(c,"offset");const u=this[c],g=this[c+7];(u===void 0||g===void 0)&&ye(c,this.length-8);const v=(u<<24)+this[++c]*2**16+this[++c]*2**8+this[++c];return(BigInt(v)<>>0,u||G(c,4,this.length),t.read(this,c,!0,23,4)},l.prototype.readFloatBE=function(c,u){return c=c>>>0,u||G(c,4,this.length),t.read(this,c,!1,23,4)},l.prototype.readDoubleLE=function(c,u){return c=c>>>0,u||G(c,8,this.length),t.read(this,c,!0,52,8)},l.prototype.readDoubleBE=function(c,u){return c=c>>>0,u||G(c,8,this.length),t.read(this,c,!1,52,8)};function q(p,c,u,g,v,k){if(!l.isBuffer(p))throw new TypeError('"buffer" argument must be a Buffer instance');if(c>v||cp.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(c,u,g,v){if(c=+c,u=u>>>0,g=g>>>0,!v){const U=Math.pow(2,8*g)-1;q(this,c,u,g,U,0)}let k=1,B=0;for(this[u]=c&255;++B>>0,g=g>>>0,!v){const U=Math.pow(2,8*g)-1;q(this,c,u,g,U,0)}let k=g-1,B=1;for(this[u+k]=c&255;--k>=0&&(B*=256);)this[u+k]=c/B&255;return u+g},l.prototype.writeUint8=l.prototype.writeUInt8=function(c,u,g){return c=+c,u=u>>>0,g||q(this,c,u,1,255,0),this[u]=c&255,u+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(c,u,g){return c=+c,u=u>>>0,g||q(this,c,u,2,65535,0),this[u]=c&255,this[u+1]=c>>>8,u+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(c,u,g){return c=+c,u=u>>>0,g||q(this,c,u,2,65535,0),this[u]=c>>>8,this[u+1]=c&255,u+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(c,u,g){return c=+c,u=u>>>0,g||q(this,c,u,4,4294967295,0),this[u+3]=c>>>24,this[u+2]=c>>>16,this[u+1]=c>>>8,this[u]=c&255,u+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(c,u,g){return c=+c,u=u>>>0,g||q(this,c,u,4,4294967295,0),this[u]=c>>>24,this[u+1]=c>>>16,this[u+2]=c>>>8,this[u+3]=c&255,u+4};function Ue(p,c,u,g,v){ce(c,g,v,p,u,7);let k=Number(c&BigInt(4294967295));p[u++]=k,k=k>>8,p[u++]=k,k=k>>8,p[u++]=k,k=k>>8,p[u++]=k;let B=Number(c>>BigInt(32)&BigInt(4294967295));return p[u++]=B,B=B>>8,p[u++]=B,B=B>>8,p[u++]=B,B=B>>8,p[u++]=B,u}function $e(p,c,u,g,v){ce(c,g,v,p,u,7);let k=Number(c&BigInt(4294967295));p[u+7]=k,k=k>>8,p[u+6]=k,k=k>>8,p[u+5]=k,k=k>>8,p[u+4]=k;let B=Number(c>>BigInt(32)&BigInt(4294967295));return p[u+3]=B,B=B>>8,p[u+2]=B,B=B>>8,p[u+1]=B,B=B>>8,p[u]=B,u+8}l.prototype.writeBigUInt64LE=Q(function(c,u=0){return Ue(this,c,u,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=Q(function(c,u=0){return $e(this,c,u,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(c,u,g,v){if(c=+c,u=u>>>0,!v){const j=Math.pow(2,8*g-1);q(this,c,u,g,j-1,-j)}let k=0,B=1,U=0;for(this[u]=c&255;++k>0)-U&255;return u+g},l.prototype.writeIntBE=function(c,u,g,v){if(c=+c,u=u>>>0,!v){const j=Math.pow(2,8*g-1);q(this,c,u,g,j-1,-j)}let k=g-1,B=1,U=0;for(this[u+k]=c&255;--k>=0&&(B*=256);)c<0&&U===0&&this[u+k+1]!==0&&(U=1),this[u+k]=(c/B>>0)-U&255;return u+g},l.prototype.writeInt8=function(c,u,g){return c=+c,u=u>>>0,g||q(this,c,u,1,127,-128),c<0&&(c=255+c+1),this[u]=c&255,u+1},l.prototype.writeInt16LE=function(c,u,g){return c=+c,u=u>>>0,g||q(this,c,u,2,32767,-32768),this[u]=c&255,this[u+1]=c>>>8,u+2},l.prototype.writeInt16BE=function(c,u,g){return c=+c,u=u>>>0,g||q(this,c,u,2,32767,-32768),this[u]=c>>>8,this[u+1]=c&255,u+2},l.prototype.writeInt32LE=function(c,u,g){return c=+c,u=u>>>0,g||q(this,c,u,4,2147483647,-2147483648),this[u]=c&255,this[u+1]=c>>>8,this[u+2]=c>>>16,this[u+3]=c>>>24,u+4},l.prototype.writeInt32BE=function(c,u,g){return c=+c,u=u>>>0,g||q(this,c,u,4,2147483647,-2147483648),c<0&&(c=4294967295+c+1),this[u]=c>>>24,this[u+1]=c>>>16,this[u+2]=c>>>8,this[u+3]=c&255,u+4},l.prototype.writeBigInt64LE=Q(function(c,u=0){return Ue(this,c,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=Q(function(c,u=0){return $e(this,c,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Z(p,c,u,g,v,k){if(u+g>p.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function Ne(p,c,u,g,v){return c=+c,u=u>>>0,v||Z(p,c,u,4),t.write(p,c,u,g,23,4),u+4}l.prototype.writeFloatLE=function(c,u,g){return Ne(this,c,u,!0,g)},l.prototype.writeFloatBE=function(c,u,g){return Ne(this,c,u,!1,g)};function le(p,c,u,g,v){return c=+c,u=u>>>0,v||Z(p,c,u,8),t.write(p,c,u,g,52,8),u+8}l.prototype.writeDoubleLE=function(c,u,g){return le(this,c,u,!0,g)},l.prototype.writeDoubleBE=function(c,u,g){return le(this,c,u,!1,g)},l.prototype.copy=function(c,u,g,v){if(!l.isBuffer(c))throw new TypeError("argument should be a Buffer");if(g||(g=0),!v&&v!==0&&(v=this.length),u>=c.length&&(u=c.length),u||(u=0),v>0&&v=this.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("sourceEnd out of bounds");v>this.length&&(v=this.length),c.length-u>>0,g=g===void 0?this.length:g>>>0,c||(c=0);let k;if(typeof c=="number")for(k=u;k2**32?v=te(String(u)):typeof u=="bigint"&&(v=String(u),(u>BigInt(2)**BigInt(32)||u<-(BigInt(2)**BigInt(32)))&&(v=te(v)),v+="n"),g+=` It must be ${c}. Received ${v}`,g},RangeError);function te(p){let c="",u=p.length;const g=p[0]==="-"?1:0;for(;u>=g+4;u-=3)c=`_${p.slice(u-3,u)}${c}`;return`${p.slice(0,u)}${c}`}function Me(p,c,u){pe(c,"offset"),(p[c]===void 0||p[c+u]===void 0)&&ye(c,p.length-(u+1))}function ce(p,c,u,g,v,k){if(p>u||p3?c===0||c===BigInt(0)?U=`>= 0${B} and < 2${B} ** ${(k+1)*8}${B}`:U=`>= -(2${B} ** ${(k+1)*8-1}${B}) and < 2 ** ${(k+1)*8-1}${B}`:U=`>= ${c}${B} and <= ${u}${B}`,new de.ERR_OUT_OF_RANGE("value",U,p)}Me(g,v,k)}function pe(p,c){if(typeof p!="number")throw new de.ERR_INVALID_ARG_TYPE(c,"number",p)}function ye(p,c,u){throw Math.floor(p)!==p?(pe(p,u),new de.ERR_OUT_OF_RANGE(u||"offset","an integer",p)):c<0?new de.ERR_BUFFER_OUT_OF_BOUNDS:new de.ERR_OUT_OF_RANGE(u||"offset",`>= ${u?1:0} and <= ${c}`,p)}const ne=/[^+/0-9A-Za-z-_]/g;function je(p){if(p=p.split("=")[0],p=p.trim().replace(ne,""),p.length<2)return"";for(;p.length%4!==0;)p=p+"=";return p}function ae(p,c){c=c||1/0;let u;const g=p.length;let v=null;const k=[];for(let B=0;B55295&&u<57344){if(!v){if(u>56319){(c-=3)>-1&&k.push(239,191,189);continue}else if(B+1===g){(c-=3)>-1&&k.push(239,191,189);continue}v=u;continue}if(u<56320){(c-=3)>-1&&k.push(239,191,189),v=u;continue}u=(v-55296<<10|u-56320)+65536}else v&&(c-=3)>-1&&k.push(239,191,189);if(v=null,u<128){if((c-=1)<0)break;k.push(u)}else if(u<2048){if((c-=2)<0)break;k.push(u>>6|192,u&63|128)}else if(u<65536){if((c-=3)<0)break;k.push(u>>12|224,u>>6&63|128,u&63|128)}else if(u<1114112){if((c-=4)<0)break;k.push(u>>18|240,u>>12&63|128,u>>6&63|128,u&63|128)}else throw new Error("Invalid code point")}return k}function Ge(p){const c=[];for(let u=0;u>8,v=u%256,k.push(v),k.push(g);return k}function W(p){return e.toByteArray(je(p))}function re(p,c,u,g){let v;for(v=0;v=c.length||v>=p.length);++v)c[v+u]=p[v];return v}function ie(p,c){return p instanceof c||p!=null&&p.constructor!=null&&p.constructor.name!=null&&p.constructor.name===c.name}function se(p){return p!==p}const qe=function(){const p="0123456789abcdef",c=new Array(256);for(let u=0;u<16;++u){const g=u*16;for(let v=0;v<16;++v)c[g+v]=p[u]+p[v]}return c}();function Q(p){return typeof BigInt>"u"?Ye:p}function Ye(){throw new Error("BigInt not supported")}})(buffer);const{Buffer}=buffer,symbol=Symbol.for("BufferList");function BufferList(r){if(!(this instanceof BufferList))return new BufferList(r);BufferList._init.call(this,r)}BufferList._init=function r(e){Object.defineProperty(this,symbol,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};BufferList.prototype._new=function r(e){return new BufferList(e)};BufferList.prototype._offset=function r(e){if(e===0)return[0,0];let t=0;for(let n=0;nthis.length||e<0)return;const t=this._offset(e);return this._bufs[t[0]][t[1]]};BufferList.prototype.slice=function r(e,t){return typeof e=="number"&&e<0&&(e+=this.length),typeof t=="number"&&t<0&&(t+=this.length),this.copy(null,0,e,t)};BufferList.prototype.copy=function r(e,t,n,o){if((typeof n!="number"||n<0)&&(n=0),(typeof o!="number"||o>this.length)&&(o=this.length),n>=this.length||o<=0)return e||Buffer.alloc(0);const a=!!e,s=this._offset(n),l=o-n;let f=l,h=a&&t||0,d=s[1];if(n===0&&o===this.length){if(!a)return this._bufs.length===1?this._bufs[0]:Buffer.concat(this._bufs,this.length);for(let m=0;m_)this._bufs[m].copy(e,h,d),h+=_;else{this._bufs[m].copy(e,h,d,d+f),h+=_;break}f-=_,d&&(d=0)}return e.length>h?e.slice(0,h):e};BufferList.prototype.shallowSlice=function r(e,t){if(e=e||0,t=typeof t!="number"?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();const n=this._offset(e),o=this._offset(t),a=this._bufs.slice(n[0],o[0]+1);return o[1]===0?a.pop():a[a.length-1]=a[a.length-1].slice(0,o[1]),n[1]!==0&&(a[0]=a[0].slice(n[1])),this._new(a)};BufferList.prototype.toString=function r(e,t,n){return this.slice(t,n).toString(e)};BufferList.prototype.consume=function r(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};BufferList.prototype.duplicate=function r(){const e=this._new();for(let t=0;tthis.length?this.length:e;const n=this._offset(e);let o=n[0],a=n[1];for(;o=r.length){const f=s.indexOf(r,a);if(f!==-1)return this._reverseOffset([o,f]);a=s.length-r.length+1}else{const f=this._reverseOffset([o,a]);if(this._match(f,r))return f;a++}a=0}return-1};BufferList.prototype._match=function(r,e){if(this.length-r=0?_.subarray(0,b):_}};var rabin$1=Rabin$1,loader={};const ID_OFFSET=-8,SIZE_OFFSET=-4,ARRAYBUFFER_ID=0,STRING_ID=1,ARRAYBUFFERVIEW=1,ARRAY=2,VAL_ALIGN_OFFSET=5,VAL_SIGNED=1024,VAL_FLOAT=2048,VAL_MANAGED=8192,ARRAYBUFFERVIEW_BUFFER_OFFSET=0,ARRAYBUFFERVIEW_DATASTART_OFFSET=4,ARRAYBUFFERVIEW_DATALENGTH_OFFSET=8,ARRAYBUFFERVIEW_SIZE=12,ARRAY_LENGTH_OFFSET=12,ARRAY_SIZE=16,BIGINT=typeof BigUint64Array<"u",THIS=Symbol(),CHUNKSIZE=1024;function getStringImpl(r,e){const t=new Uint32Array(r),n=new Uint16Array(r);var o=t[e+SIZE_OFFSET>>>2]>>>1,a=e>>>1;if(o<=CHUNKSIZE)return String.fromCharCode.apply(String,n.subarray(a,a+o));const s=[];do{const l=n[a+CHUNKSIZE-1],f=l>=55296&&l<56320?CHUNKSIZE-1:CHUNKSIZE;s.push(String.fromCharCode.apply(String,n.subarray(a,a+=f))),o-=f}while(o>CHUNKSIZE);return s.join("")+String.fromCharCode.apply(String,n.subarray(a,a+o))}function preInstantiate(r){const e={};function t(o,a){return o?getStringImpl(o.buffer,a):""}const n=r.env=r.env||{};return n.abort=n.abort||function(a,s,l,f){const h=e.memory||n.memory;throw Error("abort: "+t(h,a)+" at "+t(h,s)+":"+l+":"+f)},n.trace=n.trace||function(a,s){const l=e.memory||n.memory;console.log("trace: "+t(l,a)+(s?" ":"")+Array.prototype.slice.call(arguments,2,2+s).join(", "))},r.Math=r.Math||Math,r.Date=r.Date||Date,e}function postInstantiate(r,e){const t=e.exports,n=t.memory,o=t.table,a=t.__alloc,s=t.__retain,l=t.__rtti_base||-1;function f(A){const S=new Uint32Array(n.buffer),I=S[l>>>2];if((A>>>=0)>=I)throw Error("invalid id: "+A);return S[(l+4>>>2)+A*2]}function h(A){const S=new Uint32Array(n.buffer),I=S[l>>>2];if((A>>>=0)>=I)throw Error("invalid id: "+A);return S[(l+4>>>2)+A*2+1]}function d(A){return 31-Math.clz32(A>>>VAL_ALIGN_OFFSET&31)}function m(A){const S=A.length,I=a(S<<1,STRING_ID),L=new Uint16Array(n.buffer);for(var x=0,R=I>>>1;x>>2]!==STRING_ID)throw Error("not a string: "+A);return getStringImpl(S,A)}r.__getString=_;function b(A,S,I){const L=n.buffer;if(I)switch(A){case 2:return new Float32Array(L);case 3:return new Float64Array(L)}else switch(A){case 0:return new(S?Int8Array:Uint8Array)(L);case 1:return new(S?Int16Array:Uint16Array)(L);case 2:return new(S?Int32Array:Uint32Array)(L);case 3:return new(S?BigInt64Array:BigUint64Array)(L)}throw Error("unsupported align: "+A)}function w(A,S){const I=f(A);if(!(I&(ARRAYBUFFERVIEW|ARRAY)))throw Error("not an array: "+A+" @ "+I);const L=d(I),x=S.length,R=a(x<>>2]=s(R),K[M+ARRAYBUFFERVIEW_DATASTART_OFFSET>>>2]=R,K[M+ARRAYBUFFERVIEW_DATALENGTH_OFFSET>>>2]=x<>>2]=x);const Y=b(L,I&VAL_SIGNED,I&VAL_FLOAT);if(I&VAL_MANAGED)for(let ee=0;ee>>L)+ee]=s(S[ee]);else Y.set(S,R>>>L);return M}r.__allocArray=w;function y(A){const S=new Uint32Array(n.buffer),I=S[A+ID_OFFSET>>>2],L=f(I);if(!(L&ARRAYBUFFERVIEW))throw Error("not an array: "+I);const x=d(L);var R=S[A+ARRAYBUFFERVIEW_DATASTART_OFFSET>>>2];const M=L&ARRAY?S[A+ARRAY_LENGTH_OFFSET>>>2]:S[R+SIZE_OFFSET>>>2]>>>x;return b(x,L&VAL_SIGNED,L&VAL_FLOAT).subarray(R>>>=x,R+M)}r.__getArrayView=y;function E(A){const S=y(A),I=S.length,L=new Array(I);for(let x=0;x>>2];return S.slice(A,A+I)}r.__getArrayBuffer=T;function N(A,S,I){return new A(D(A,S,I))}function D(A,S,I){const L=n.buffer,x=new Uint32Array(L),R=x[I+ARRAYBUFFERVIEW_DATASTART_OFFSET>>>2];return new A(L,R,x[R+SIZE_OFFSET>>>2]>>>S)}r.__getInt8Array=N.bind(null,Int8Array,0),r.__getInt8ArrayView=D.bind(null,Int8Array,0),r.__getUint8Array=N.bind(null,Uint8Array,0),r.__getUint8ArrayView=D.bind(null,Uint8Array,0),r.__getUint8ClampedArray=N.bind(null,Uint8ClampedArray,0),r.__getUint8ClampedArrayView=D.bind(null,Uint8ClampedArray,0),r.__getInt16Array=N.bind(null,Int16Array,1),r.__getInt16ArrayView=D.bind(null,Int16Array,1),r.__getUint16Array=N.bind(null,Uint16Array,1),r.__getUint16ArrayView=D.bind(null,Uint16Array,1),r.__getInt32Array=N.bind(null,Int32Array,2),r.__getInt32ArrayView=D.bind(null,Int32Array,2),r.__getUint32Array=N.bind(null,Uint32Array,2),r.__getUint32ArrayView=D.bind(null,Uint32Array,2),BIGINT&&(r.__getInt64Array=N.bind(null,BigInt64Array,3),r.__getInt64ArrayView=D.bind(null,BigInt64Array,3),r.__getUint64Array=N.bind(null,BigUint64Array,3),r.__getUint64ArrayView=D.bind(null,BigUint64Array,3)),r.__getFloat32Array=N.bind(null,Float32Array,2),r.__getFloat32ArrayView=D.bind(null,Float32Array,2),r.__getFloat64Array=N.bind(null,Float64Array,3),r.__getFloat64ArrayView=D.bind(null,Float64Array,3);function C(A,S){const I=new Uint32Array(n.buffer);var L=I[A+ID_OFFSET>>>2];if(L<=I[l>>>2])do if(L==S)return!0;while(L=h(L));return!1}return r.__instanceof=C,r.memory=r.memory||n,r.table=r.table||o,demangle(t,r)}function isResponse(r){return typeof Response<"u"&&r instanceof Response}async function instantiate$1(r,e){return isResponse(r=await r)?instantiateStreaming(r,e):postInstantiate(preInstantiate(e||(e={})),await WebAssembly.instantiate(r instanceof WebAssembly.Module?r:await WebAssembly.compile(r),e))}loader.instantiate=instantiate$1;function instantiateSync(r,e){return postInstantiate(preInstantiate(e||(e={})),new WebAssembly.Instance(r instanceof WebAssembly.Module?r:new WebAssembly.Module(r),e))}loader.instantiateSync=instantiateSync;async function instantiateStreaming(r,e){return WebAssembly.instantiateStreaming?postInstantiate(preInstantiate(e||(e={})),(await WebAssembly.instantiateStreaming(r,e)).instance):instantiate$1(isResponse(r=await r)?r.arrayBuffer():r,e)}loader.instantiateStreaming=instantiateStreaming;function demangle(r,e){var t=e?Object.create(e):{},n=r.__argumentsLength?function(o){r.__argumentsLength.value=o}:r.__setArgumentsLength||r.__setargc||function(){};for(let o in r){if(!Object.prototype.hasOwnProperty.call(r,o))continue;const a=r[o];let s=o.split("."),l=t;for(;s.length>1;){let d=s.shift();Object.prototype.hasOwnProperty.call(l,d)||(l[d]={}),l=l[d]}let f=s[0],h=f.indexOf("#");if(h>=0){let d=f.substring(0,h),m=l[d];if(typeof m>"u"||!m.prototype){let _=function(...b){return _.wrap(_.prototype.constructor(0,...b))};_.prototype={valueOf:function(){return this[THIS]}},_.wrap=function(b){return Object.create(_.prototype,{[THIS]:{value:b,writable:!1}})},m&&Object.getOwnPropertyNames(m).forEach(b=>Object.defineProperty(_,b,Object.getOwnPropertyDescriptor(m,b))),l[d]=_}if(f=f.substring(h+1),l=l[d].prototype,/^(get|set):/.test(f)){if(!Object.prototype.hasOwnProperty.call(l,f=f.substring(4))){let _=r[o.replace("set:","get:")],b=r[o.replace("get:","set:")];Object.defineProperty(l,f,{get:function(){return _(this[THIS])},set:function(w){b(this[THIS],w)},enumerable:!0})}}else f==="constructor"?(l[f]=(..._)=>(n(_.length),a(..._))).original=a:(l[f]=function(..._){return n(_.length),a(this[THIS],..._)}).original=a}else/^(get|set):/.test(f)?Object.prototype.hasOwnProperty.call(l,f=f.substring(4))||Object.defineProperty(l,f,{get:r[o.replace("set:","get:")],set:r[o.replace("get:","set:")],enumerable:!0}):typeof a=="function"&&a!==n?(l[f]=(...d)=>(n(d.length),a(...d))).original=a:l[f]=a}return t}loader.demangle=demangle;const{instantiate}=loader;loadWebAssembly.supported=typeof WebAssembly<"u";function loadWebAssembly(r={}){if(!loadWebAssembly.supported)return null;var e=new Uint8Array([0,97,115,109,1,0,0,0,1,78,14,96,2,127,126,0,96,1,127,1,126,96,2,127,127,0,96,1,127,1,127,96,1,127,0,96,2,127,127,1,127,96,3,127,127,127,1,127,96,0,0,96,3,127,127,127,0,96,0,1,127,96,4,127,127,127,127,0,96,5,127,127,127,127,127,1,127,96,1,126,1,127,96,2,126,126,1,126,2,13,1,3,101,110,118,5,97,98,111,114,116,0,10,3,54,53,2,2,8,9,3,5,2,8,6,5,3,4,2,6,9,12,13,2,5,11,3,2,3,2,3,2,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,6,7,7,4,4,5,3,1,0,1,6,47,9,127,1,65,0,11,127,1,65,0,11,127,0,65,3,11,127,0,65,4,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,0,65,240,2,11,127,0,65,6,11,7,240,5,41,6,109,101,109,111,114,121,2,0,7,95,95,97,108,108,111,99,0,10,8,95,95,114,101,116,97,105,110,0,11,9,95,95,114,101,108,101,97,115,101,0,12,9,95,95,99,111,108,108,101,99,116,0,51,11,95,95,114,116,116,105,95,98,97,115,101,3,7,13,73,110,116,51,50,65,114,114,97,121,95,73,68,3,2,13,85,105,110,116,56,65,114,114,97,121,95,73,68,3,3,6,100,101,103,114,101,101,0,16,3,109,111,100,0,17,5,82,97,98,105,110,3,8,16,82,97,98,105,110,35,103,101,116,58,119,105,110,100,111,119,0,21,16,82,97,98,105,110,35,115,101,116,58,119,105,110,100,111,119,0,22,21,82,97,98,105,110,35,103,101,116,58,119,105,110,100,111,119,95,115,105,122,101,0,23,21,82,97,98,105,110,35,115,101,116,58,119,105,110,100,111,119,95,115,105,122,101,0,24,14,82,97,98,105,110,35,103,101,116,58,119,112,111,115,0,25,14,82,97,98,105,110,35,115,101,116,58,119,112,111,115,0,26,15,82,97,98,105,110,35,103,101,116,58,99,111,117,110,116,0,27,15,82,97,98,105,110,35,115,101,116,58,99,111,117,110,116,0,28,13,82,97,98,105,110,35,103,101,116,58,112,111,115,0,29,13,82,97,98,105,110,35,115,101,116,58,112,111,115,0,30,15,82,97,98,105,110,35,103,101,116,58,115,116,97,114,116,0,31,15,82,97,98,105,110,35,115,101,116,58,115,116,97,114,116,0,32,16,82,97,98,105,110,35,103,101,116,58,100,105,103,101,115,116,0,33,16,82,97,98,105,110,35,115,101,116,58,100,105,103,101,115,116,0,34,21,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,115,116,97,114,116,0,35,21,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,115,116,97,114,116,0,36,22,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,108,101,110,103,116,104,0,37,22,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,108,101,110,103,116,104,0,38,31,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,99,117,116,95,102,105,110,103,101,114,112,114,105,110,116,0,39,31,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,99,117,116,95,102,105,110,103,101,114,112,114,105,110,116,0,40,20,82,97,98,105,110,35,103,101,116,58,112,111,108,121,110,111,109,105,97,108,0,41,20,82,97,98,105,110,35,115,101,116,58,112,111,108,121,110,111,109,105,97,108,0,42,17,82,97,98,105,110,35,103,101,116,58,109,105,110,115,105,122,101,0,43,17,82,97,98,105,110,35,115,101,116,58,109,105,110,115,105,122,101,0,44,17,82,97,98,105,110,35,103,101,116,58,109,97,120,115,105,122,101,0,45,17,82,97,98,105,110,35,115,101,116,58,109,97,120,115,105,122,101,0,46,14,82,97,98,105,110,35,103,101,116,58,109,97,115,107,0,47,14,82,97,98,105,110,35,115,101,116,58,109,97,115,107,0,48,17,82,97,98,105,110,35,99,111,110,115,116,114,117,99,116,111,114,0,20,17,82,97,98,105,110,35,102,105,110,103,101,114,112,114,105,110,116,0,49,8,1,50,10,165,31,53,199,1,1,4,127,32,1,40,2,0,65,124,113,34,2,65,128,2,73,4,127,32,2,65,4,118,33,4,65,0,5,32,2,65,31,32,2,103,107,34,3,65,4,107,118,65,16,115,33,4,32,3,65,7,107,11,33,3,32,1,40,2,20,33,2,32,1,40,2,16,34,5,4,64,32,5,32,2,54,2,20,11,32,2,4,64,32,2,32,5,54,2,16,11,32,1,32,0,32,4,32,3,65,4,116,106,65,2,116,106,40,2,96,70,4,64,32,0,32,4,32,3,65,4,116,106,65,2,116,106,32,2,54,2,96,32,2,69,4,64,32,0,32,3,65,2,116,106,32,0,32,3,65,2,116,106,40,2,4,65,1,32,4,116,65,127,115,113,34,1,54,2,4,32,1,69,4,64,32,0,32,0,40,2,0,65,1,32,3,116,65,127,115,113,54,2,0,11,11,11,11,226,2,1,6,127,32,1,40,2,0,33,3,32,1,65,16,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,34,5,65,1,113,4,64,32,3,65,124,113,65,16,106,32,5,65,124,113,106,34,2,65,240,255,255,255,3,73,4,64,32,0,32,4,16,1,32,1,32,2,32,3,65,3,113,114,34,3,54,2,0,32,1,65,16,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,33,5,11,11,32,3,65,2,113,4,64,32,1,65,4,107,40,2,0,34,2,40,2,0,34,6,65,124,113,65,16,106,32,3,65,124,113,106,34,7,65,240,255,255,255,3,73,4,64,32,0,32,2,16,1,32,2,32,7,32,6,65,3,113,114,34,3,54,2,0,32,2,33,1,11,11,32,4,32,5,65,2,114,54,2,0,32,4,65,4,107,32,1,54,2,0,32,0,32,3,65,124,113,34,2,65,128,2,73,4,127,32,2,65,4,118,33,4,65,0,5,32,2,65,31,32,2,103,107,34,2,65,4,107,118,65,16,115,33,4,32,2,65,7,107,11,34,3,65,4,116,32,4,106,65,2,116,106,40,2,96,33,2,32,1,65,0,54,2,16,32,1,32,2,54,2,20,32,2,4,64,32,2,32,1,54,2,16,11,32,0,32,4,32,3,65,4,116,106,65,2,116,106,32,1,54,2,96,32,0,32,0,40,2,0,65,1,32,3,116,114,54,2,0,32,0,32,3,65,2,116,106,32,0,32,3,65,2,116,106,40,2,4,65,1,32,4,116,114,54,2,4,11,119,1,1,127,32,2,2,127,32,0,40,2,160,12,34,2,4,64,32,2,32,1,65,16,107,70,4,64,32,2,40,2,0,33,3,32,1,65,16,107,33,1,11,11,32,1,11,107,34,2,65,48,73,4,64,15,11,32,1,32,3,65,2,113,32,2,65,32,107,65,1,114,114,54,2,0,32,1,65,0,54,2,16,32,1,65,0,54,2,20,32,1,32,2,106,65,16,107,34,2,65,2,54,2,0,32,0,32,2,54,2,160,12,32,0,32,1,16,2,11,155,1,1,3,127,35,0,34,0,69,4,64,65,1,63,0,34,0,74,4,127,65,1,32,0,107,64,0,65,0,72,5,65,0,11,4,64,0,11,65,176,3,34,0,65,0,54,2,0,65,208,15,65,0,54,2,0,3,64,32,1,65,23,73,4,64,32,1,65,2,116,65,176,3,106,65,0,54,2,4,65,0,33,2,3,64,32,2,65,16,73,4,64,32,1,65,4,116,32,2,106,65,2,116,65,176,3,106,65,0,54,2,96,32,2,65,1,106,33,2,12,1,11,11,32,1,65,1,106,33,1,12,1,11,11,65,176,3,65,224,15,63,0,65,16,116,16,3,65,176,3,36,0,11,32,0,11,45,0,32,0,65,240,255,255,255,3,79,4,64,65,32,65,224,0,65,201,3,65,29,16,0,0,11,32,0,65,15,106,65,112,113,34,0,65,16,32,0,65,16,75,27,11,169,1,1,1,127,32,0,32,1,65,128,2,73,4,127,32,1,65,4,118,33,1,65,0,5,32,1,65,248,255,255,255,1,73,4,64,32,1,65,1,65,27,32,1,103,107,116,106,65,1,107,33,1,11,32,1,65,31,32,1,103,107,34,2,65,4,107,118,65,16,115,33,1,32,2,65,7,107,11,34,2,65,2,116,106,40,2,4,65,127,32,1,116,113,34,1,4,127,32,0,32,1,104,32,2,65,4,116,106,65,2,116,106,40,2,96,5,32,0,40,2,0,65,127,32,2,65,1,106,116,113,34,1,4,127,32,0,32,0,32,1,104,34,0,65,2,116,106,40,2,4,104,32,0,65,4,116,106,65,2,116,106,40,2,96,5,65,0,11,11,11,111,1,1,127,63,0,34,2,32,1,65,248,255,255,255,1,73,4,127,32,1,65,1,65,27,32,1,103,107,116,65,1,107,106,5,32,1,11,65,16,32,0,40,2,160,12,32,2,65,16,116,65,16,107,71,116,106,65,255,255,3,106,65,128,128,124,113,65,16,118,34,1,32,2,32,1,74,27,64,0,65,0,72,4,64,32,1,64,0,65,0,72,4,64,0,11,11,32,0,32,2,65,16,116,63,0,65,16,116,16,3,11,113,1,2,127,32,1,40,2,0,34,3,65,124,113,32,2,107,34,4,65,32,79,4,64,32,1,32,2,32,3,65,2,113,114,54,2,0,32,2,32,1,65,16,106,106,34,1,32,4,65,16,107,65,1,114,54,2,0,32,0,32,1,16,2,5,32,1,32,3,65,126,113,54,2,0,32,1,65,16,106,32,1,40,2,0,65,124,113,106,32,1,65,16,106,32,1,40,2,0,65,124,113,106,40,2,0,65,125,113,54,2,0,11,11,91,1,2,127,32,0,32,1,16,5,34,4,16,6,34,3,69,4,64,65,1,36,1,65,0,36,1,32,0,32,4,16,6,34,3,69,4,64,32,0,32,4,16,7,32,0,32,4,16,6,33,3,11,11,32,3,65,0,54,2,4,32,3,32,2,54,2,8,32,3,32,1,54,2,12,32,0,32,3,16,1,32,0,32,3,32,4,16,8,32,3,11,13,0,16,4,32,0,32,1,16,9,65,16,106,11,33,1,1,127,32,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,11,18,0,32,0,65,172,3,75,4,64,32,0,65,16,107,16,52,11,11,140,3,1,1,127,2,64,32,1,69,13,0,32,0,65,0,58,0,0,32,0,32,1,106,65,1,107,65,0,58,0,0,32,1,65,2,77,13,0,32,0,65,1,106,65,0,58,0,0,32,0,65,2,106,65,0,58,0,0,32,0,32,1,106,34,2,65,2,107,65,0,58,0,0,32,2,65,3,107,65,0,58,0,0,32,1,65,6,77,13,0,32,0,65,3,106,65,0,58,0,0,32,0,32,1,106,65,4,107,65,0,58,0,0,32,1,65,8,77,13,0,32,1,65,0,32,0,107,65,3,113,34,1,107,33,2,32,0,32,1,106,34,0,65,0,54,2,0,32,0,32,2,65,124,113,34,1,106,65,4,107,65,0,54,2,0,32,1,65,8,77,13,0,32,0,65,4,106,65,0,54,2,0,32,0,65,8,106,65,0,54,2,0,32,0,32,1,106,34,2,65,12,107,65,0,54,2,0,32,2,65,8,107,65,0,54,2,0,32,1,65,24,77,13,0,32,0,65,12,106,65,0,54,2,0,32,0,65,16,106,65,0,54,2,0,32,0,65,20,106,65,0,54,2,0,32,0,65,24,106,65,0,54,2,0,32,0,32,1,106,34,2,65,28,107,65,0,54,2,0,32,2,65,24,107,65,0,54,2,0,32,2,65,20,107,65,0,54,2,0,32,2,65,16,107,65,0,54,2,0,32,0,32,0,65,4,113,65,24,106,34,2,106,33,0,32,1,32,2,107,33,1,3,64,32,1,65,32,79,4,64,32,0,66,0,55,3,0,32,0,65,8,106,66,0,55,3,0,32,0,65,16,106,66,0,55,3,0,32,0,65,24,106,66,0,55,3,0,32,1,65,32,107,33,1,32,0,65,32,106,33,0,12,1,11,11,11,11,178,1,1,3,127,32,1,65,240,255,255,255,3,32,2,118,75,4,64,65,144,1,65,192,1,65,23,65,56,16,0,0,11,32,1,32,2,116,34,3,65,0,16,10,34,2,32,3,16,13,32,0,69,4,64,65,12,65,2,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,11,32,0,65,0,54,2,0,32,0,65,0,54,2,4,32,0,65,0,54,2,8,32,2,34,1,32,0,40,2,0,34,4,71,4,64,32,1,65,172,3,75,4,64,32,1,65,16,107,34,5,32,5,40,2,4,65,1,106,54,2,4,11,32,4,16,12,11,32,0,32,1,54,2,0,32,0,32,2,54,2,4,32,0,32,3,54,2,8,32,0,11,46,1,2,127,65,12,65,5,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,65,128,2,65,3,16,14,11,9,0,65,63,32,0,121,167,107,11,49,1,2,127,65,63,32,1,121,167,107,33,2,3,64,65,63,32,0,121,167,107,32,2,107,34,3,65,0,78,4,64,32,0,32,1,32,3,172,134,133,33,0,12,1,11,11,32,0,11,40,0,32,1,32,0,40,2,8,79,4,64,65,128,2,65,192,2,65,163,1,65,44,16,0,0,11,32,1,32,0,40,2,4,106,65,0,58,0,0,11,38,0,32,1,32,0,40,2,8,79,4,64,65,128,2,65,192,2,65,152,1,65,44,16,0,0,11,32,1,32,0,40,2,4,106,45,0,0,11,254,5,2,1,127,4,126,32,0,69,4,64,65,232,0,65,6,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,5,32,5,40,2,4,65,1,106,54,2,4,11,11,32,0,65,0,54,2,0,32,0,65,0,54,2,4,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,24,32,0,66,0,55,3,32,32,0,66,0,55,3,40,32,0,66,0,55,3,48,32,0,66,0,55,3,56,32,0,66,0,55,3,64,32,0,66,0,55,3,72,32,0,66,0,55,3,80,32,0,66,0,55,3,88,32,0,66,0,55,3,96,32,0,32,2,173,55,3,80,32,0,32,3,173,55,3,88,65,12,65,4,16,10,34,2,65,172,3,75,4,64,32,2,65,16,107,34,3,32,3,40,2,4,65,1,106,54,2,4,11,32,2,32,4,65,0,16,14,33,2,32,0,40,2,0,16,12,32,0,32,2,54,2,0,32,0,32,4,54,2,4,32,0,66,1,32,1,173,134,66,1,125,55,3,96,32,0,66,243,130,183,218,216,230,232,30,55,3,72,35,4,69,4,64,65,0,33,2,3,64,32,2,65,128,2,72,4,64,32,2,65,255,1,113,173,33,6,32,0,41,3,72,34,7,33,8,65,63,32,7,121,167,107,33,1,3,64,65,63,32,6,121,167,107,32,1,107,34,3,65,0,78,4,64,32,6,32,8,32,3,172,134,133,33,6,12,1,11,11,65,0,33,4,3,64,32,4,32,0,40,2,4,65,1,107,72,4,64,32,6,66,8,134,33,6,32,0,41,3,72,34,7,33,8,65,63,32,7,121,167,107,33,1,3,64,65,63,32,6,121,167,107,32,1,107,34,3,65,0,78,4,64,32,6,32,8,32,3,172,134,133,33,6,12,1,11,11,32,4,65,1,106,33,4,12,1,11,11,35,6,40,2,4,32,2,65,3,116,106,32,6,55,3,0,32,2,65,1,106,33,2,12,1,11,11,65,63,32,0,41,3,72,121,167,107,172,33,7,65,0,33,2,3,64,32,2,65,128,2,72,4,64,35,5,33,1,32,2,172,32,7,134,34,8,33,6,65,63,32,0,41,3,72,34,9,121,167,107,33,3,3,64,65,63,32,6,121,167,107,32,3,107,34,4,65,0,78,4,64,32,6,32,9,32,4,172,134,133,33,6,12,1,11,11,32,1,40,2,4,32,2,65,3,116,106,32,6,32,8,132,55,3,0,32,2,65,1,106,33,2,12,1,11,11,65,1,36,4,11,32,0,66,0,55,3,24,32,0,66,0,55,3,32,65,0,33,2,3,64,32,2,32,0,40,2,4,72,4,64,32,0,40,2,0,32,2,16,18,32,2,65,1,106,33,2,12,1,11,11,32,0,66,0,55,3,40,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,40,32,0,40,2,0,32,0,40,2,8,16,19,33,1,32,0,40,2,8,32,0,40,2,0,40,2,4,106,65,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,1,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,6,66,45,136,167,65,3,116,106,41,3,0,32,6,66,8,134,66,1,132,133,55,3,40,32,0,11,38,1,1,127,32,0,40,2,0,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,11,55,1,2,127,32,1,32,0,40,2,0,34,2,71,4,64,32,1,65,172,3,75,4,64,32,1,65,16,107,34,3,32,3,40,2,4,65,1,106,54,2,4,11,32,2,16,12,11,32,0,32,1,54,2,0,11,7,0,32,0,40,2,4,11,9,0,32,0,32,1,54,2,4,11,7,0,32,0,40,2,8,11,9,0,32,0,32,1,54,2,8,11,7,0,32,0,41,3,16,11,9,0,32,0,32,1,55,3,16,11,7,0,32,0,41,3,24,11,9,0,32,0,32,1,55,3,24,11,7,0,32,0,41,3,32,11,9,0,32,0,32,1,55,3,32,11,7,0,32,0,41,3,40,11,9,0,32,0,32,1,55,3,40,11,7,0,32,0,41,3,48,11,9,0,32,0,32,1,55,3,48,11,7,0,32,0,41,3,56,11,9,0,32,0,32,1,55,3,56,11,7,0,32,0,41,3,64,11,9,0,32,0,32,1,55,3,64,11,7,0,32,0,41,3,72,11,9,0,32,0,32,1,55,3,72,11,7,0,32,0,41,3,80,11,9,0,32,0,32,1,55,3,80,11,7,0,32,0,41,3,88,11,9,0,32,0,32,1,55,3,88,11,7,0,32,0,41,3,96,11,9,0,32,0,32,1,55,3,96,11,172,4,2,5,127,1,126,32,2,65,172,3,75,4,64,32,2,65,16,107,34,4,32,4,40,2,4,65,1,106,54,2,4,11,32,2,33,4,65,0,33,2,32,1,40,2,8,33,5,32,1,40,2,4,33,6,3,64,2,127,65,0,33,3,3,64,32,3,32,5,72,4,64,32,3,32,6,106,45,0,0,33,1,32,0,40,2,0,32,0,40,2,8,16,19,33,7,32,0,40,2,8,32,0,40,2,0,40,2,4,106,32,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,7,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,8,66,45,136,167,65,3,116,106,41,3,0,32,1,173,32,8,66,8,134,132,133,55,3,40,32,0,32,0,41,3,16,66,1,124,55,3,16,32,0,32,0,41,3,24,66,1,124,55,3,24,32,0,41,3,16,32,0,41,3,80,90,4,127,32,0,41,3,40,32,0,41,3,96,131,80,5,65,0,11,4,127,65,1,5,32,0,41,3,16,32,0,41,3,88,90,11,4,64,32,0,32,0,41,3,32,55,3,48,32,0,32,0,41,3,16,55,3,56,32,0,32,0,41,3,40,55,3,64,65,0,33,1,3,64,32,1,32,0,40,2,4,72,4,64,32,0,40,2,0,32,1,16,18,32,1,65,1,106,33,1,12,1,11,11,32,0,66,0,55,3,40,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,40,32,0,40,2,0,32,0,40,2,8,16,19,33,1,32,0,40,2,8,32,0,40,2,0,40,2,4,106,65,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,1,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,8,66,45,136,167,65,3,116,106,41,3,0,32,8,66,8,134,66,1,132,133,55,3,40,32,3,65,1,106,12,3,11,32,3,65,1,106,33,3,12,1,11,11,65,127,11,34,1,65,0,78,4,64,32,5,32,1,107,33,5,32,1,32,6,106,33,6,32,2,34,1,65,1,106,33,2,32,4,40,2,4,32,1,65,2,116,106,32,0,41,3,56,62,2,0,12,1,11,11,32,4,11,10,0,16,15,36,5,16,15,36,6,11,3,0,1,11,73,1,2,127,32,0,40,2,4,34,1,65,255,255,255,255,0,113,34,2,65,1,70,4,64,32,0,65,16,106,16,53,32,0,32,0,40,2,0,65,1,114,54,2,0,35,0,32,0,16,2,5,32,0,32,2,65,1,107,32,1,65,128,128,128,128,127,113,114,54,2,4,11,11,58,0,2,64,2,64,2,64,32,0,65,8,107,40,2,0,14,7,0,0,1,1,1,1,1,2,11,15,11,32,0,40,2,0,34,0,4,64,32,0,65,172,3,79,4,64,32,0,65,16,107,16,52,11,11,15,11,0,11,11,137,3,7,0,65,16,11,55,40,0,0,0,1,0,0,0,1,0,0,0,40,0,0,0,97,0,108,0,108,0,111,0,99,0,97,0,116,0,105,0,111,0,110,0,32,0,116,0,111,0,111,0,32,0,108,0,97,0,114,0,103,0,101,0,65,208,0,11,45,30,0,0,0,1,0,0,0,1,0,0,0,30,0,0,0,126,0,108,0,105,0,98,0,47,0,114,0,116,0,47,0,116,0,108,0,115,0,102,0,46,0,116,0,115,0,65,128,1,11,43,28,0,0,0,1,0,0,0,1,0,0,0,28,0,0,0,73,0,110,0,118,0,97,0,108,0,105,0,100,0,32,0,108,0,101,0,110,0,103,0,116,0,104,0,65,176,1,11,53,38,0,0,0,1,0,0,0,1,0,0,0,38,0,0,0,126,0,108,0,105,0,98,0,47,0,97,0,114,0,114,0,97,0,121,0,98,0,117,0,102,0,102,0,101,0,114,0,46,0,116,0,115,0,65,240,1,11,51,36,0,0,0,1,0,0,0,1,0,0,0,36,0,0,0,73,0,110,0,100,0,101,0,120,0,32,0,111,0,117,0,116,0,32,0,111,0,102,0,32,0,114,0,97,0,110,0,103,0,101,0,65,176,2,11,51,36,0,0,0,1,0,0,0,1,0,0,0,36,0,0,0,126,0,108,0,105,0,98,0,47,0,116,0,121,0,112,0,101,0,100,0,97,0,114,0,114,0,97,0,121,0,46,0,116,0,115,0,65,240,2,11,53,7,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,145,4,0,0,2,0,0,0,49,0,0,0,2,0,0,0,17,1,0,0,2,0,0,0,16,0,34,16,115,111,117,114,99,101,77,97,112,112,105,110,103,85,82,76,16,46,47,114,97,98,105,110,46,119,97,115,109,46,109,97,112]);return instantiate(new Response(new Blob([e],{type:"application/wasm"})),r)}var rabinWasm=loadWebAssembly;const Rabin=rabin$1,getRabin=rabinWasm,create=async(r,e,t,n,o)=>{const a=await getRabin();return new Rabin(a,r,e,t,n,o)};var src$2={Rabin,create};async function*rabinChunker(r,e){let t,n,o;if(e.minChunkSize&&e.maxChunkSize&&e.avgChunkSize)o=e.avgChunkSize,t=e.minChunkSize,n=e.maxChunkSize;else if(e.avgChunkSize)o=e.avgChunkSize,t=o/3,n=o+o/2;else throw errCode$1(new Error("please specify an average chunk size"),"ERR_INVALID_AVG_CHUNK_SIZE");if(t<16)throw errCode$1(new Error("rabin min must be greater than 16"),"ERR_INVALID_MIN_CHUNK_SIZE");n=a;)if(yield t.slice(0,a),o=!0,a===t.length)t=new BufferList$1,n=0;else{const l=new BufferList$1;l.append(t.shallowSlice(a)),t=l,n-=a}(!o||n)&&(yield t.slice(0,n))}const identity=from$1({prefix:"\0",name:"identity",encode:r=>toString$1(r),decode:r=>fromString$3(r)}),identityBase=Object.freeze(Object.defineProperty({__proto__:null,identity},Symbol.toStringTag,{value:"Module"})),base2=rfc4648({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),base2$1=Object.freeze(Object.defineProperty({__proto__:null,base2},Symbol.toStringTag,{value:"Module"})),base8=rfc4648({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),base8$1=Object.freeze(Object.defineProperty({__proto__:null,base8},Symbol.toStringTag,{value:"Module"})),base10=baseX({prefix:"9",name:"base10",alphabet:"0123456789"}),base10$1=Object.freeze(Object.defineProperty({__proto__:null,base10},Symbol.toStringTag,{value:"Module"})),base16=rfc4648({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),base16upper=rfc4648({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),base16$1=Object.freeze(Object.defineProperty({__proto__:null,base16,base16upper},Symbol.toStringTag,{value:"Module"})),base36=baseX({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),base36upper=baseX({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),base36$1=Object.freeze(Object.defineProperty({__proto__:null,base36,base36upper},Symbol.toStringTag,{value:"Module"})),base64=rfc4648({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),base64pad=rfc4648({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),base64url=rfc4648({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),base64urlpad=rfc4648({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),base64$1=Object.freeze(Object.defineProperty({__proto__:null,base64,base64pad,base64url,base64urlpad},Symbol.toStringTag,{value:"Module"})),alphabet=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),alphabetBytesToChars=alphabet.reduce((r,e,t)=>(r[t]=e,r),[]),alphabetCharsToBytes=alphabet.reduce((r,e,t)=>(r[e.codePointAt(0)]=t,r),[]);function encode(r){return r.reduce((e,t)=>(e+=alphabetBytesToChars[t],e),"")}function decode(r){const e=[];for(const t of r){const n=alphabetCharsToBytes[t.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${t}`);e.push(n)}return new Uint8Array(e)}const base256emoji=from$1({prefix:"🚀",name:"base256emoji",encode,decode}),base256emoji$1=Object.freeze(Object.defineProperty({__proto__:null,base256emoji},Symbol.toStringTag,{value:"Module"}));new TextEncoder;new TextDecoder;const bases={...identityBase,...base2$1,...base8$1,...base10$1,...base16$1,...base32$1,...base36$1,...base58,...base64$1,...base256emoji$1};function asUint8Array(r){return globalThis.Buffer!=null?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):r}function allocUnsafe(r=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?asUint8Array(globalThis.Buffer.allocUnsafe(r)):new Uint8Array(r)}function createCodec(r,e,t,n){return{name:r,prefix:e,encoder:{name:r,prefix:e,encode:t},decoder:{decode:n}}}const string=createCodec("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),ascii=createCodec("ascii","a",r=>{let e="a";for(let t=0;t{r=r.substring(1);const e=allocUnsafe(r.length);for(let t=0;to&&o!==".").join("/")),n.content){let o;typeof t.chunker=="function"?o=t.chunker:t.chunker==="rabin"?o=rabinChunker:o=fixedSizeChunker;let a;typeof t.chunkValidator=="function"?a=t.chunkValidator:a=validateChunks;const s={path:n.path,mtime:n.mtime,mode:n.mode,content:o(a(contentAsAsyncIterable(n.content),t),t)};yield()=>fileBuilder(s,e,t)}else if(n.path){const o={path:n.path,mtime:n.mtime,mode:n.mode};yield()=>dirBuilder(o,e,t)}else throw new Error("Import candidate must have content or path or both")}class Dir{constructor(e,t){this.options=t||{},this.root=e.root,this.dir=e.dir,this.path=e.path,this.dirty=e.dirty,this.flat=e.flat,this.parent=e.parent,this.parentKey=e.parentKey,this.unixfs=e.unixfs,this.mode=e.mode,this.mtime=e.mtime,this.cid=void 0,this.size=void 0}async put(e,t){}get(e){return Promise.resolve(this)}async*eachChildSeries(){}async*flush(e){}}class DirFlat extends Dir{constructor(e,t){super(e,t),this._children={}}async put(e,t){this.cid=void 0,this.size=void 0,this._children[e]=t}get(e){return Promise.resolve(this._children[e])}childCount(){return Object.keys(this._children).length}directChildrenCount(){return this.childCount()}onlyChild(){return this._children[Object.keys(this._children)[0]]}async*eachChildSeries(){const e=Object.keys(this._children);for(let t=0;th+(d.Tsize==null?0:d.Tsize),0);this.cid=l,this.size=f,yield{cid:l,unixfs:o,path:this.path,size:f}}}const BITS_PER_BYTE=7;var sparseArray=class{constructor(){this._bitArrays=[],this._data=[],this._length=0,this._changedLength=!1,this._changedData=!1}set(e,t){let n=this._internalPositionFor(e,!1);if(t===void 0)n!==-1&&(this._unsetInternalPos(n),this._unsetBit(e),this._changedLength=!0,this._changedData=!0);else{let o=!1;n===-1?(n=this._data.length,this._setBit(e),this._changedData=!0):o=!0,this._setInternalPos(n,e,t,o),this._changedLength=!0}}unset(e){this.set(e,void 0)}get(e){this._sortData();const t=this._internalPositionFor(e,!0);if(t!==-1)return this._data[t][1]}push(e){return this.set(this.length,e),this.length}get length(){if(this._sortData(),this._changedLength){const e=this._data[this._data.length-1];this._length=e?e[0]+1:0,this._changedLength=!1}return this._length}forEach(e){let t=0;for(;t=this._bitArrays.length)return-1;const o=this._bitArrays[n],a=e-n*BITS_PER_BYTE;if(!((o&1<0))return-1;const l=this._bitArrays.slice(0,n).reduce(popCountReduce,0),f=~(4294967295<=t)a.push(s);else if(a[0][0]<=t)a.unshift(s);else{const l=Math.round(a.length/2);this._data=a.slice(0,l).concat(s).concat(a.slice(l))}else this._data.push(s);this._changedData=!0,this._changedLength=!0}}_unsetInternalPos(e){this._data.splice(e,1)}_sortData(){this._changedData&&this._data.sort(sortInternal),this._changedData=!1}bitField(){const e=[];let t=8,n=0,o=0,a;const s=this._bitArrays.slice();for(;s.length||n;){n===0&&(a=s.shift(),n=7);const f=Math.min(n,t),h=~(255<>>f,n-=f,t-=f,(!t||!n&&!s.length)&&(e.push(o),o=0,t=8)}for(var l=e.length-1;l>0&&e[l]===0;l--)e.pop();return e}compactArray(){return this._sortData(),this._data.map(valueOnly)}};function popCountReduce(r,e){return r+popCount(e)}function popCount(r){let e=r;return e=e-(e>>1&1431655765),e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>24}function sortInternal(r,e){return r[0]-e[0]}function valueOnly(r){return r[1]}const require$$1$1=getAugmentedNamespace(fromString$1),SparseArray=sparseArray,{fromString:uint8ArrayFromString}=require$$1$1;let Bucket$1=class Oe{constructor(e,t,n=0){this._options=e,this._popCount=0,this._parent=t,this._posAtParent=n,this._children=new SparseArray,this.key=null}async put(e,t){const n=await this._findNewBucketAndPos(e);await n.bucket._putAt(n,e,t)}async get(e){const t=await this._findChild(e);if(t)return t.value}async del(e){const t=await this._findPlace(e),n=t.bucket._at(t.pos);n&&n.key===e&&t.bucket._delAt(t.pos)}leafCount(){return this._children.compactArray().reduce((t,n)=>n instanceof Oe?t+n.leafCount():t+1,0)}childrenCount(){return this._children.length}onlyChild(){return this._children.get(0)}*eachLeafSeries(){const e=this._children.compactArray();for(const t of e)t instanceof Oe?yield*t.eachLeafSeries():yield t;return[]}serialize(e,t){const n=[];return t(this._children.reduce((o,a,s)=>(a&&(a instanceof Oe?o.push(a.serialize(e,t)):o.push(e(a,s))),o),n))}asyncTransform(e,t){return asyncTransformBucket(this,e,t)}toJSON(){return this.serialize(mapNode,reduceNodes)}prettyPrint(){return JSON.stringify(this.toJSON(),null," ")}tableSize(){return Math.pow(2,this._options.bits)}async _findChild(e){const t=await this._findPlace(e),n=t.bucket._at(t.pos);if(!(n instanceof Oe)&&n&&n.key===e)return n}async _findPlace(e){const t=this._options.hash(typeof e=="string"?uint8ArrayFromString(e):e),n=await t.take(this._options.bits),o=this._children.get(n);return o instanceof Oe?o._findPlace(t):{bucket:this,pos:n,hash:t,existingChild:o}}async _findNewBucketAndPos(e){const t=await this._findPlace(e);if(t.existingChild&&t.existingChild.key!==e){const n=new Oe(this._options,t.bucket,t.pos);t.bucket._putObjectAt(t.pos,n);const o=await n._findPlace(t.existingChild.hash);return o.bucket._putAt(o,t.existingChild.key,t.existingChild.value),n._findNewBucketAndPos(t.hash)}return t}_putAt(e,t,n){this._putObjectAt(e.pos,{key:t,value:n,hash:e.hash})}_putObjectAt(e,t){this._children.get(e)||this._popCount++,this._children.set(e,t)}_delAt(e){if(e===-1)throw new Error("Invalid position");this._children.get(e)&&this._popCount--,this._children.unset(e),this._level()}_level(){if(this._parent&&this._popCount<=1)if(this._popCount===1){const e=this._children.find(exists);if(e&&!(e instanceof Oe)){const t=e.hash;t.untake(this._options.bits);const n={pos:this._posAtParent,hash:t,bucket:this._parent};this._parent._putAt(n,e.key,e.value)}}else this._parent._delAt(this._posAtParent)}_at(e){return this._children.get(e)}};function exists(r){return!!r}function mapNode(r,e){return r.key}function reduceNodes(r){return r}async function asyncTransformBucket(r,e,t){const n=[];for(const o of r._children.compactArray())if(o instanceof Bucket$1)await asyncTransformBucket(o,e,t);else{const a=await e(o);n.push({bitField:r._children.bitField(),children:a})}return t(n)}var bucket=Bucket$1,consumableHash={exports:{}};const START_MASKS=[255,254,252,248,240,224,192,128],STOP_MASKS=[1,3,7,15,31,63,127,255];var consumableBuffer=class{constructor(e){this._value=e,this._currentBytePos=e.length-1,this._currentBitPos=7}availableBits(){return this._currentBitPos+1+this._currentBytePos*8}totalBits(){return this._value.length*8}take(e){let t=e,n=0;for(;t&&this._haveBits();){const o=this._value[this._currentBytePos],a=this._currentBitPos+1,s=Math.min(a,t),l=byteBitsToInt(o,a-s,s);n=(n<7;)this._currentBitPos-=8,this._currentBytePos+=1}_haveBits(){return this._currentBytePos>=0}};function byteBitsToInt(r,e,t){const n=maskFor(e,t);return(r&n)>>>e}function maskFor(r,e){return START_MASKS[r]&STOP_MASKS[Math.min(e+r-1,7)]}function concat(r,e){e||(e=r.reduce((o,a)=>o+a.length,0));const t=allocUnsafe(e);let n=0;for(const o of r)t.set(o,n),n+=o.length;return asUint8Array(t)}const concat$1=Object.freeze(Object.defineProperty({__proto__:null,concat},Symbol.toStringTag,{value:"Module"})),require$$1=getAugmentedNamespace(concat$1),ConsumableBuffer=consumableBuffer,{concat:uint8ArrayConcat}=require$$1;function wrapHash$1(r){function e(t){return t instanceof InfiniteHash?t:new InfiniteHash(t,r)}return e}class InfiniteHash{constructor(e,t){if(!(e instanceof Uint8Array))throw new Error("can only hash Uint8Arrays");this._value=e,this._hashFn=t,this._depth=-1,this._availableBits=0,this._currentBufferIndex=0,this._buffers=[]}async take(e){let t=e;for(;this._availableBits0;){const o=this._buffers[this._currentBufferIndex],a=Math.min(o.availableBits(),t),s=o.take(a);n=(n<0;){const n=this._buffers[this._currentBufferIndex],o=Math.min(n.totalBits()-n.availableBits(),t);n.untake(o),t-=o,this._availableBits+=o,this._currentBufferIndex>0&&n.totalBits()===n.availableBits()&&(this._depth--,this._currentBufferIndex--)}}async _produceMoreBits(){this._depth++;const e=this._depth?uint8ArrayConcat([this._value,Uint8Array.from([this._depth])]):this._value,t=await this._hashFn(e),n=new ConsumableBuffer(t);this._buffers.push(n),this._availableBits+=n.availableBits()}}consumableHash.exports=wrapHash$1;consumableHash.exports.InfiniteHash=InfiniteHash;var consumableHashExports=consumableHash.exports;const Bucket=bucket,wrapHash=consumableHashExports;function createHAMT(r){if(!r||!r.hashFn)throw new Error("please define an options.hashFn");const e={bits:r.bits||8,hash:wrapHash(r.hashFn)};return new Bucket(e)}var src$1={createHAMT,Bucket};class DirSharded extends Dir{constructor(e,t){super(e,t),this._bucket=src$1.createHAMT({hashFn:t.hamtHashFn,bits:t.hamtBucketBits})}async put(e,t){await this._bucket.put(e,t)}get(e){return this._bucket.get(e)}childCount(){return this._bucket.leafCount()}directChildrenCount(){return this._bucket.childrenCount()}onlyChild(){return this._bucket.onlyChild()}async*eachChildSeries(){for await(const{key:e,value:t}of this._bucket.eachLeafSeries())yield{key:e,child:t}}async*flush(e){for await(const t of flush(this._bucket,e,this,this.options))yield{...t,path:this.path}}}async function*flush(r,e,t,n){const o=r._children,a=[];let s=0;for(let b=0;b=t&&(o=await convertToShard(e,n));const a=o.parent;if(a){if(o!==e){if(r&&(r.parent=o),!o.parentKey)throw new Error("No parent key found");await a.put(o.parentKey,o)}return flatToShard(o,a,t,n)}return o}async function convertToShard(r,e){const t=new DirSharded({root:r.root,dir:!0,parent:r.parent,parentKey:r.parentKey,path:r.path,dirty:r.dirty,flat:!1,mtime:r.mtime,mode:r.mode},e);for await(const{key:n,child:o}of r.eachChildSeries())await t.put(n,o);return t}const toPathComponents=(r="")=>(r.trim().match(/([^\\/]|\\\/)+/g)||[]).filter(Boolean);async function addToTree(r,e,t){const n=toPathComponents(r.path||""),o=n.length-1;let a=e,s="";for(let l=0;le.next(),push:o=>{n.push(o)},next:()=>n.length?{done:!1,value:n.shift()}:e.next(),[t](){return this}}}var itPeekable=peekableIterator;const itPeekable$1=getDefaultExportFromCjs(itPeekable),map=async function*(r,e){for await(const t of r)yield e(t)};var itMap=map;const map$1=getDefaultExportFromCjs(itMap);function isBytes$1(r){return ArrayBuffer.isView(r)||r instanceof ArrayBuffer}function isBlob$2(r){return r.constructor&&(r.constructor.name==="Blob"||r.constructor.name==="File")&&typeof r.stream=="function"}function isFileObject(r){return typeof r=="object"&&(r.path||r.content)}const isReadableStream=r=>r&&typeof r.getReader=="function";async function*toAsyncIterable(r){yield r}async function normaliseContent(r){if(isBytes$1(r))return toAsyncIterable(toBytes(r));if(typeof r=="string"||r instanceof String)return toAsyncIterable(toBytes(r.toString()));if(isBlob$2(r))return blobToIt$1(r);if(isReadableStream(r)&&(r=browserStreamToIt(r)),Symbol.iterator in r||Symbol.asyncIterator in r){const e=itPeekable$1(r),{value:t,done:n}=await e.peek();if(n)return toAsyncIterable(new Uint8Array(0));if(e.push(t),Number.isInteger(t))return toAsyncIterable(Uint8Array.from(await all$1(e)));if(isBytes$1(t)||typeof t=="string"||t instanceof String)return map$1(e,toBytes)}throw errCode$1(new Error(`Unexpected input: ${r}`),"ERR_UNEXPECTED_INPUT")}function toBytes(r){return r instanceof Uint8Array?r:ArrayBuffer.isView(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):r instanceof ArrayBuffer?new Uint8Array(r):Array.isArray(r)?Uint8Array.from(r):fromString(r.toString())}async function*normaliseCandidateSingle(r,e){if(r==null)throw errCode$1(new Error(`Unexpected input: ${r}`),"ERR_UNEXPECTED_INPUT");if(typeof r=="string"||r instanceof String){yield toFileObject$1(r.toString(),e);return}if(isBytes$1(r)||isBlob$2(r)){yield toFileObject$1(r,e);return}if(isReadableStream(r)&&(r=browserStreamToIt(r)),Symbol.iterator in r||Symbol.asyncIterator in r){const t=itPeekable$1(r),{value:n,done:o}=await t.peek();if(o){yield{content:[]};return}if(t.push(n),Number.isInteger(n)||isBytes$1(n)||typeof n=="string"||n instanceof String){yield toFileObject$1(t,e);return}throw errCode$1(new Error("Unexpected input: multiple items passed - if you are using ipfs.add, please use ipfs.addAll instead"),"ERR_UNEXPECTED_INPUT")}if(isFileObject(r)){yield toFileObject$1(r,e);return}throw errCode$1(new Error('Unexpected input: cannot convert "'+typeof r+'" into ImportCandidate'),"ERR_UNEXPECTED_INPUT")}async function toFileObject$1(r,e){const{path:t,mode:n,mtime:o,content:a}=r,s={path:t||"",mode:parseMode(n),mtime:parseMtime(o)};return a?s.content=await e(a):t||(s.content=await e(r)),s}function normaliseInput$1(r){return normaliseCandidateSingle(r,normaliseContent)}async function*normaliseCandidateMultiple(r,e){if(typeof r=="string"||r instanceof String||isBytes$1(r)||isBlob$2(r)||r._readableState)throw errCode$1(new Error("Unexpected input: single item passed - if you are using ipfs.addAll, please use ipfs.add instead"),"ERR_UNEXPECTED_INPUT");if(isReadableStream(r)&&(r=browserStreamToIt(r)),Symbol.iterator in r||Symbol.asyncIterator in r){const t=itPeekable$1(r),{value:n,done:o}=await t.peek();if(o){yield*[];return}if(t.push(n),Number.isInteger(n))throw errCode$1(new Error("Unexpected input: single item passed - if you are using ipfs.addAll, please use ipfs.add instead"),"ERR_UNEXPECTED_INPUT");if(n._readableState){yield*map$1(t,a=>toFileObject({content:a},e));return}if(isBytes$1(n)){yield toFileObject({content:t},e);return}if(isFileObject(n)||n[Symbol.iterator]||n[Symbol.asyncIterator]||isReadableStream(n)||isBlob$2(n)){yield*map$1(t,a=>toFileObject(a,e));return}}throw isFileObject(r)?errCode$1(new Error("Unexpected input: single item passed - if you are using ipfs.addAll, please use ipfs.add instead"),"ERR_UNEXPECTED_INPUT"):errCode$1(new Error("Unexpected input: "+typeof r),"ERR_UNEXPECTED_INPUT")}async function toFileObject(r,e){const{path:t,mode:n,mtime:o,content:a}=r,s={path:t||"",mode:parseMode(n),mtime:parseMtime(o)};return a?s.content=await e(a):t||(s.content=await e(r)),s}function normaliseInput(r){return normaliseCandidateMultiple(r,normaliseContent)}function isBytes(r){return ArrayBuffer.isView(r)||r instanceof ArrayBuffer}function isBlob$1(r){return!!r.constructor&&(r.constructor.name==="Blob"||r.constructor.name==="File")&&typeof r.stream=="function"}function isSingle(r){return typeof r=="string"||r instanceof String||isBytes(r)||isBlob$1(r)||"_readableState"in r}function getNormaliser(r){return isSingle(r)?normaliseInput$1(r):normaliseInput(r)}const drain=async r=>{for await(const e of r);};var itDrain=drain;const drain$1=getDefaultExportFromCjs(itDrain),filter=async function*(r,e){for await(const t of r)await e(t)&&(yield t)};var itFilter=filter;const filter$1=getDefaultExportFromCjs(itFilter),take=async function*(r,e){let t=0;if(!(e<1)){for await(const n of r)if(yield n,t++,t===e)return}};var itTake=take;const take$1=getDefaultExportFromCjs(itTake),sortAll=(r,e)=>async function*(){yield*(await all$1(r)).sort(e)}();class BaseBlockstore{open(){return Promise.reject(new Error(".open is not implemented"))}close(){return Promise.reject(new Error(".close is not implemented"))}put(e,t,n){return Promise.reject(new Error(".put is not implemented"))}get(e,t){return Promise.reject(new Error(".get is not implemented"))}has(e,t){return Promise.reject(new Error(".has is not implemented"))}delete(e,t){return Promise.reject(new Error(".delete is not implemented"))}async*putMany(e,t={}){for await(const{key:n,value:o}of e)await this.put(n,o,t),yield{key:n,value:o}}async*getMany(e,t={}){for await(const n of e)yield this.get(n,t)}async*deleteMany(e,t={}){for await(const n of e)await this.delete(n,t),yield n}batch(){let e=[],t=[];return{put(n,o){e.push({key:n,value:o})},delete(n){t.push(n)},commit:async n=>{await drain$1(this.putMany(e,n)),e=[],await drain$1(this.deleteMany(t,n)),t=[]}}}async*_all(e,t){throw new Error("._all is not implemented")}async*_allKeys(e,t){throw new Error("._allKeys is not implemented")}query(e,t){let n=this._all(e,t);if(e.prefix!=null&&(n=filter$1(n,o=>o.key.toString().startsWith(e.prefix||""))),Array.isArray(e.filters)&&(n=e.filters.reduce((o,a)=>filter$1(o,a),n)),Array.isArray(e.orders)&&(n=e.orders.reduce((o,a)=>sortAll(o,a),n)),e.offset!=null){let o=0;n=filter$1(n,()=>o++>=(e.offset||0))}return e.limit!=null&&(n=take$1(n,e.limit)),n}queryKeys(e,t){let n=this._allKeys(e,t);if(e.prefix!=null&&(n=filter$1(n,o=>o.toString().startsWith(e.prefix||""))),Array.isArray(e.filters)&&(n=e.filters.reduce((o,a)=>filter$1(o,a),n)),Array.isArray(e.orders)&&(n=e.orders.reduce((o,a)=>sortAll(o,a),n)),e.offset!=null){let o=0;n=filter$1(n,()=>o++>=e.offset)}return e.limit!=null&&(n=take$1(n,e.limit)),n}}class MemoryBlockStore extends BaseBlockstore{constructor(){super(),this.store=new Map}async*blocks(){for(const[e,t]of this.store.entries())yield{cid:CID.parse(e),bytes:t}}put(e,t){return this.store.set(e.toString(),t),Promise.resolve()}get(e){const t=this.store.get(e.toString());if(!t)throw new Error(`block with cid ${e.toString()} no found`);return Promise.resolve(t)}has(e){return Promise.resolve(this.store.has(e.toString()))}close(){return this.store.clear(),Promise.resolve()}}const unixfsImporterOptionsDefault={cidVersion:1,chunker:"fixed",maxChunkSize:262144,hasher:sha256,rawLeaves:!0,wrapWithDirectory:!0,maxChildrenPerNode:174};async function pack({input:r,blockstore:e,hasher:t,maxChunkSize:n,maxChildrenPerNode:o,wrapWithDirectory:a,rawLeaves:s}){if(!r||Array.isArray(r)&&!r.length)throw new Error("missing input file(s)");const l=e||new MemoryBlockStore,f=await last$1(pipe$1(getNormaliser(r),E=>importer(E,l,{...unixfsImporterOptionsDefault,hasher:t||unixfsImporterOptionsDefault.hasher,maxChunkSize:n||unixfsImporterOptionsDefault.maxChunkSize,maxChildrenPerNode:o||unixfsImporterOptionsDefault.maxChildrenPerNode,wrapWithDirectory:a===!1?!1:unixfsImporterOptionsDefault.wrapWithDirectory,rawLeaves:s??unixfsImporterOptionsDefault.rawLeaves})));if(!f||!f.cid)throw new Error("given input could not be parsed correctly");const h=f.cid,{writer:d,out:m}=await CarWriter.create([h]),_=m[Symbol.asyncIterator]();let b;const w=async()=>{for await(const E of l.blocks())await d.put(E);await d.close(),e||await l.close()},y={[Symbol.asyncIterator](){if(b!=null)throw new Error("Multiple iterator not supported");return b=w(),{async next(){const E=await _.next();return E.done&&await b,E}}}};return{root:h,out:y}}var throttledQueue$1={exports:{}};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0});function t(n,o,a){a===void 0&&(a=!1),a&&(o=o/n,n=1);var s=[],l=0,f=0,h,d=function(){var m=l+o,_=Date.now();if(_o&&(l=y,f=0),f++{const t=e.gateway||GATEWAY;return r=new URL(String(r)),r.protocol==="ipfs:"?new URL(`/ipfs/${r.href.slice(7)}`,t):r};class BlockstoreCarReader{constructor(e,t,n){this._version=e,this._roots=t,this._blockstore=n}get version(){return this._version}get blockstore(){return this._blockstore}async getRoots(){return this._roots}has(e){return this._blockstore.has(e)}async get(e){const t=await this._blockstore.get(e);return{cid:e,bytes:t}}blocks(){return this._blockstore.blocks()}async*cids(){for await(const e of this.blocks())yield e.cid}}class Token{constructor(e,t,n){this.ipnft=e,this.url=t,this.data=n,Object.defineProperties(this,{ipnft:{enumerable:!0,writable:!1},url:{enumerable:!0,writable:!1},data:{enumerable:!1,writable:!1}})}embed(){return Token.embed(this)}static embed({data:e}){return embed(e,{gateway:GATEWAY})}static async encode(e){var h,d;const t=new Blockstore,[n,o]=mapTokenInputBlobs(e),a=JSON.parse(JSON.stringify(o)),s=JSON.parse(JSON.stringify(o));for(const[m,_]of n.entries()){const b=_.name||"blob";let w;parseInt((d=(h=globalThis.process)==null?void 0:h.versions)==null?void 0:d.node)>18?w=new Uint8Array(await _.arrayBuffer()):w=_.stream();const{root:y}=await pack({input:[{path:b,content:w}],blockstore:t,wrapWithDirectory:!0}),E=new URL(`ipfs://${y}/${b}`),T=m.split(".");setIn(a,T,E),setIn(s,T,y)}const{root:l}=await pack({input:[{path:"metadata.json",content:JSON.stringify(a)}],blockstore:t,wrapWithDirectory:!1}),f=await encode$4({value:{...s,"metadata.json":l,type:"nft"},codec:dagCbor,hasher:sha256});return await t.put(f.cid,f.bytes),{cid:f.cid,token:new Token(f.cid.toString(),`ipfs://${f.cid}/metadata.json`,a),car:new BlockstoreCarReader(1,[f.cid],t)}}}const embed=(r,e)=>mapWith(r,isURL,embedURL,e),isURL=r=>r instanceof URL,embedURL=(r,e)=>[r,toGatewayURL(e,r)],isObject=r=>typeof r=="object"&&r!=null,encodeBlob=(r,e,t)=>(r.set(t.join("."),e),[r,void 0]),isBlob=r=>r instanceof Blob$1,mapTokenInputBlobs=r=>mapValueWith(r,isBlob,encodeBlob,new Map,[]),mapWith=(r,e,t,n)=>{const[,o]=mapValueWith(r,e,t,n,[]);return o},mapValueWith=(r,e,t,n,o)=>e(r,n,o)?t(n,r,o):Array.isArray(r)?mapArrayWith(r,e,t,n,o):isObject(r)?mapObjectWith(r,e,t,n,o):[n,r],mapObjectWith=(r,e,t,n,o)=>{let a=n;const s={};for(const[l,f]of Object.entries(r)){const[h,d]=mapValueWith(f,e,t,a,[...o,l]);s[l]=d,a=h}return[a,s]},mapArrayWith=(r,e,t,n,o)=>{const a=[];let s=n;for(const[l,f]of r.entries()){const[h,d]=mapValueWith(f,e,t,s,[...o,l]);a[l]=d,s=h}return[s,a]},setIn=(r,e,t)=>{const n=e.length-1;let o=r;for(let[a,s]of e.entries())a===n?o[s]=t:o=o[s]},MAX_STORE_RETRIES=5,MAX_CONCURRENT_UPLOADS=3,MAX_CHUNK_SIZE=1024*1024*50,RATE_LIMIT_REQUESTS=30,RATE_LIMIT_PERIOD=10*1e3;function createRateLimiter(){const r=throttledQueue(RATE_LIMIT_REQUESTS,RATE_LIMIT_PERIOD);return()=>r(()=>{})}const globalRateLimiter=createRateLimiter();class NFTStorage{constructor({token:e,did:t,endpoint:n=new URL("https://api.nft.storage"),rateLimiter:o}){this.token=e,this.endpoint=n,this.rateLimiter=o||createRateLimiter(),this.did=t}static auth({token:e,did:t}){if(!e)throw new Error("missing token");return{Authorization:`Bearer ${e}`,"X-Client":"nft.storage/js",...t?{"x-agent-did":t}:{}}}static async storeBlob(e,t,n){const o=new Blockstore;let a;try{const{cid:s,car:l}=await NFTStorage.encodeBlob(t,{blockstore:o});await NFTStorage.storeCar(e,l,n),a=s.toString()}finally{await o.close()}return a}static async storeCar({endpoint:e,rateLimiter:t=globalRateLimiter,...n},o,{onStoredChunk:a,maxRetries:s,maxChunkSize:l,decoders:f,signal:h}={}){const d=new URL("upload/",e),m={...NFTStorage.auth(n),"Content-Type":"application/car"},_=l||MAX_CHUNK_SIZE,b=o instanceof Blob$1?await TreewalkCarSplitter.fromBlob(o,_,{decoders:f}):new TreewalkCarSplitter(o,_,{decoders:f}),w=transform$1(MAX_CONCURRENT_UPLOADS,async function(E){var A,S;const T=[];for await(const I of E)T.push(I);const N=new Blob$1(T,{type:"application/car"});let D=N;parseInt((S=(A=globalThis.process)==null?void 0:A.versions)==null?void 0:S.node)>18&&(D=await D.arrayBuffer());const C=await pRetry$1(async()=>{await t();let I;try{I=await fetch$1(d.toString(),{method:"POST",headers:m,body:D,signal:h})}catch(x){throw h&&h.aborted?new AbortError_1(x):x}if(I.status===429)throw new Error("rate limited");const L=await I.json();if(!L.ok)throw I.status===401?new AbortError_1(L.error.message):new Error(L.error.message);return L.value.cid},{retries:s??MAX_STORE_RETRIES});return a&&a(N.size),C});let y;for await(const E of w(b.cars()))y=E;return y}static async storeDirectory(e,t,n){const o=new Blockstore;let a;try{const{cid:s,car:l}=await NFTStorage.encodeDirectory(t,{blockstore:o});await NFTStorage.storeCar(e,l,n),a=s.toString()}finally{await o.close()}return a}static async store(e,t,n){const{token:o,car:a}=await NFTStorage.encodeNFT(t);return await NFTStorage.storeCar(e,a,n),o}static async status({endpoint:e,rateLimiter:t=globalRateLimiter,...n},o,a){const s=new URL(`${o}/`,e);await t();const l=await fetch$1(s.toString(),{method:"GET",headers:NFTStorage.auth(n),signal:a&&a.signal});if(l.status===429)throw new Error("rate limited");const f=await l.json();if(f.ok)return{cid:f.value.cid,deals:decodeDeals(f.value.deals),size:f.value.size,pin:decodePin(f.value.pin),created:new Date(f.value.created)};throw new Error(f.error.message)}static async check({endpoint:e,rateLimiter:t=globalRateLimiter},n,o){const a=new URL(`check/${n}/`,e);await t();const s=await fetch$1(a.toString(),{signal:o&&o.signal});if(s.status===429)throw new Error("rate limited");const l=await s.json();if(l.ok)return{cid:l.value.cid,deals:decodeDeals(l.value.deals),pin:l.value.pin};throw new Error(l.error.message)}static async delete({endpoint:e,rateLimiter:t=globalRateLimiter,...n},o,a){const s=new URL(`${o}/`,e);await t();const l=await fetch$1(s.toString(),{method:"DELETE",headers:NFTStorage.auth(n),signal:a&&a.signal});if(l.status===429)throw new Error("rate limited");const f=await l.json();if(!f.ok)throw new Error(f.error.message)}static async encodeNFT(e){return validateERC1155(e),Token.encode(e)}static async encodeBlob(e,{blockstore:t}={}){if(e.size===0)throw new Error("Content size is 0, make sure to provide some content");return packCar([toImportCandidate("blob",e)],{blockstore:t,wrapWithDirectory:!1})}static async encodeDirectory(e,{blockstore:t}={}){let n=0;const o=pipe$1(e,async function*(s){for await(const l of s)yield toImportCandidate(l.name,l),n+=l.size}),a=await packCar(o,{blockstore:t,wrapWithDirectory:!0});if(n===0)throw new Error("Total size of files should exceed 0, make sure to provide some content");return a}storeBlob(e,t){return NFTStorage.storeBlob(this,e,t)}storeCar(e,t){return NFTStorage.storeCar(this,e,t)}storeDirectory(e,t){return NFTStorage.storeDirectory(this,e,t)}status(e,t){return NFTStorage.status(this,e,t)}delete(e,t){return NFTStorage.delete(this,e,t)}check(e,t){return NFTStorage.check(this,e,t)}store(e,t){return NFTStorage.store(this,e,t)}}const validateERC1155=({name:r,description:e,image:t,decimals:n})=>{if(typeof r!="string")throw new TypeError("string property `name` identifying the asset is required");if(typeof e!="string")throw new TypeError("string property `description` describing asset is required");if(t instanceof Blob$1)t.type.startsWith("image/")||console.warn(`According to ERC721 Metadata JSON Schema 'image' must have 'image/*' mime type. + +For better interoperability we would highly recommend storing content with different mime type under 'properties' namespace e.g. \`properties: { video: file }\` and using 'image' field for storing a preview image for it instead. + +For more context please see ERC-721 specification https://eips.ethereum.org/EIPS/eip-721`);else throw new TypeError("property `image` must be a Blob or File object");if(typeof n<"u"&&typeof n!="number")throw new TypeError("property `decimals` must be an integer value")},packCar=async(r,{blockstore:e,wrapWithDirectory:t}={})=>{e=e||new Blockstore;const{root:n}=await pack({input:r,blockstore:e,wrapWithDirectory:t}),o=new BlockstoreCarReader(1,[n],e);return{cid:n,car:o}},decodeDeals=r=>r.map(e=>{const{dealActivation:t,dealExpiration:n,lastChanged:o}={dealExpiration:null,dealActivation:null,...e};return{...e,lastChanged:new Date(o),...t&&{dealActivation:new Date(t)},...n&&{dealExpiration:new Date(n)}}}),decodePin=r=>({...r,created:new Date(r.created)});function toImportCandidate(r,e){let t;return{path:r,get content(){return t=t||e.stream(),t}}}const client=new NFTStorage({token:PUBLIC_NFT_STORAGE_API_KEY}),storeMetaData=async r=>{try{const e=JSON.stringify(r),t=new Blob([e],{type:"application/json"});return[await client.storeBlob(t),null]}catch(e){return console.error(e),[null,e]}},createReview=async r=>{try{let e="";jwtToken.subscribe(a=>e=a);const t={method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify(r)};return await(await fetch(`${PUBLIC_GATEWAY_URL}/delegateReviewCreation`,t)).json()}catch(e){return console.error(e),[null,e]}};function create_else_block$1(r){let e,t,n;return{c(){e=element("a"),t=element("h1"),n=text("Get Authenticated"),this.h()},l(o){e=claim_element(o,"A",{href:!0,class:!0});var a=children(e);t=claim_element(a,"H1",{});var s=children(t);n=claim_text(s,"Get Authenticated"),s.forEach(detach),a.forEach(detach),this.h()},h(){attr(e,"href","/Onboarding"),attr(e,"class","btn")},m(o,a){insert_hydration(o,e,a),append_hydration(e,t),append_hydration(t,n)},p:noop$2,d(o){o&&detach(e)}}}function create_if_block$2(r){let e,t,n,o,a,s,l,f,h,d,m,_,b,w,y,E,T,N,D,C,A,S,I,L,x,R,M,K,Y,ee,F,He,fe,Ve,he,We,G,q,Ue,$e,Z,Ne,le,de,_e,te,Me,ce,pe,ye,ne,je,ae,Ge,ze,W,re,ie,se,qe,Q,Ye,p,c,u,g,v,k,B,U,j,V,z,H,be,et,Ke,we,tt,Ze,X,me,rt,ve,nt,Ee,it,De,ot,Te,at,Ae,st,Xe,xe,lt,Je,J,ge,ct,ke,ut,Se,ft,Ce,ht,Be,dt,Ie,pt,Qe,Le,Re,yt,mt,gt;return{c(){e=element("h3"),t=text("Write Your Reviews Here"),n=space(),o=element("label"),a=text("URL"),s=space(),l=element("input"),f=space(),h=element("label"),d=text("CATEGORY"),m=space(),_=element("select"),b=element("option"),w=text("Pick a category"),y=element("option"),E=text("Tooling"),T=element("option"),N=text("Infra"),D=element("option"),C=text("Bridges"),A=element("option"),S=text("Launchpads"),I=element("option"),L=text("Social"),x=element("option"),R=text("Marketplaces"),M=element("option"),K=text("Wallets"),Y=element("option"),ee=text("Stablecoins"),F=element("option"),He=text("NFT Tooling"),fe=element("option"),Ve=text("Gaming"),he=element("option"),We=text("DeFi"),G=space(),q=element("label"),Ue=text("RATING"),$e=space(),Z=element("input"),Ne=space(),le=element("label"),de=text("TITLE"),_e=space(),te=element("input"),Me=space(),ce=element("label"),pe=text("DESCRIPTION"),ye=space(),ne=element("textarea"),je=space(),ae=element("label"),Ge=text("SITE TYPE"),ze=space(),W=element("select"),re=element("option"),ie=text("Pick a site type"),se=element("option"),qe=text("Blog"),Q=element("option"),Ye=text("Common Website"),p=element("option"),c=text("Company Portfolio"),u=element("option"),g=text("DeFi Project"),v=element("option"),k=text("E-commerce"),B=element("option"),U=text("Personal Portfolio"),j=element("option"),V=text("Social Media"),z=element("option"),H=text("Software as a Service"),be=element("option"),et=text("Web3 Wallet"),Ke=space(),we=element("label"),tt=text("SITE TAG"),Ze=space(),X=element("select"),me=element("option"),rt=text("Pick a site tag"),ve=element("option"),nt=text("Scam"),Ee=element("option"),it=text("Fake"),De=element("option"),ot=text("Stereotype"),Te=element("option"),at=text("Hate"),Ae=element("option"),st=text("Genuine"),Xe=space(),xe=element("label"),lt=text("SITE SAFETY"),Je=space(),J=element("select"),ge=element("option"),ct=text("Pick a site safety"),ke=element("option"),ut=text("Safe"),Se=element("option"),ft=text("Phishing"),Ce=element("option"),ht=text("Adware"),Be=element("option"),dt=text("Malware"),Ie=element("option"),pt=text("Spyware"),Qe=space(),Le=element("div"),Re=element("button"),yt=text("Submit"),this.h()},l(O){e=claim_element(O,"H3",{class:!0});var P=children(e);t=claim_text(P,"Write Your Reviews Here"),P.forEach(detach),n=claim_space(O),o=claim_element(O,"LABEL",{for:!0,class:!0});var _t=children(o);a=claim_text(_t,"URL"),_t.forEach(detach),s=claim_space(O),l=claim_element(O,"INPUT",{id:!0,type:!0,class:!0}),f=claim_space(O),h=claim_element(O,"LABEL",{for:!0,class:!0});var bt=children(h);d=claim_text(bt,"CATEGORY"),bt.forEach(detach),m=claim_space(O),_=claim_element(O,"SELECT",{id:!0,class:!0});var oe=children(_);b=claim_element(oe,"OPTION",{});var wt=children(b);w=claim_text(wt,"Pick a category"),wt.forEach(detach),y=claim_element(oe,"OPTION",{});var vt=children(y);E=claim_text(vt,"Tooling"),vt.forEach(detach),T=claim_element(oe,"OPTION",{});var Et=children(T);N=claim_text(Et,"Infra"),Et.forEach(detach),D=claim_element(oe,"OPTION",{});var Dt=children(D);C=claim_text(Dt,"Bridges"),Dt.forEach(detach),A=claim_element(oe,"OPTION",{});var Tt=children(A);S=claim_text(Tt,"Launchpads"),Tt.forEach(detach),I=claim_element(oe,"OPTION",{});var At=children(I);L=claim_text(At,"Social"),At.forEach(detach),x=claim_element(oe,"OPTION",{});var xt=children(x);R=claim_text(xt,"Marketplaces"),xt.forEach(detach),M=claim_element(oe,"OPTION",{});var kt=children(M);K=claim_text(kt,"Wallets"),kt.forEach(detach),Y=claim_element(oe,"OPTION",{});var St=children(Y);ee=claim_text(St,"Stablecoins"),St.forEach(detach),F=claim_element(oe,"OPTION",{});var Ct=children(F);He=claim_text(Ct,"NFT Tooling"),Ct.forEach(detach),fe=claim_element(oe,"OPTION",{});var Bt=children(fe);Ve=claim_text(Bt,"Gaming"),Bt.forEach(detach),he=claim_element(oe,"OPTION",{});var It=children(he);We=claim_text(It,"DeFi"),It.forEach(detach),oe.forEach(detach),G=claim_space(O),q=claim_element(O,"LABEL",{for:!0,class:!0});var Ot=children(q);Ue=claim_text(Ot,"RATING"),Ot.forEach(detach),$e=claim_space(O),Z=claim_element(O,"INPUT",{id:!0,type:!0,min:!0,max:!0,placeholder:!0,class:!0}),Ne=claim_space(O),le=claim_element(O,"LABEL",{for:!0,class:!0});var $t=children(le);de=claim_text($t,"TITLE"),$t.forEach(detach),_e=claim_space(O),te=claim_element(O,"INPUT",{id:!0,type:!0,placeholder:!0,class:!0}),Me=claim_space(O),ce=claim_element(O,"LABEL",{for:!0,class:!0});var Nt=children(ce);pe=claim_text(Nt,"DESCRIPTION"),Nt.forEach(detach),ye=claim_space(O),ne=claim_element(O,"TEXTAREA",{id:!0,placeholder:!0,class:!0}),children(ne).forEach(detach),je=claim_space(O),ae=claim_element(O,"LABEL",{for:!0,class:!0});var Lt=children(ae);Ge=claim_text(Lt,"SITE TYPE"),Lt.forEach(detach),ze=claim_space(O),W=claim_element(O,"SELECT",{id:!0,class:!0});var ue=children(W);re=claim_element(ue,"OPTION",{});var Rt=children(re);ie=claim_text(Rt,"Pick a site type"),Rt.forEach(detach),se=claim_element(ue,"OPTION",{});var Pt=children(se);qe=claim_text(Pt,"Blog"),Pt.forEach(detach),Q=claim_element(ue,"OPTION",{});var Ft=children(Q);Ye=claim_text(Ft,"Common Website"),Ft.forEach(detach),p=claim_element(ue,"OPTION",{});var Ut=children(p);c=claim_text(Ut,"Company Portfolio"),Ut.forEach(detach),u=claim_element(ue,"OPTION",{});var Mt=children(u);g=claim_text(Mt,"DeFi Project"),Mt.forEach(detach),v=claim_element(ue,"OPTION",{});var jt=children(v);k=claim_text(jt,"E-commerce"),jt.forEach(detach),B=claim_element(ue,"OPTION",{});var zt=children(B);U=claim_text(zt,"Personal Portfolio"),zt.forEach(detach),j=claim_element(ue,"OPTION",{});var Ht=children(j);V=claim_text(Ht,"Social Media"),Ht.forEach(detach),z=claim_element(ue,"OPTION",{});var Vt=children(z);H=claim_text(Vt,"Software as a Service"),Vt.forEach(detach),be=claim_element(ue,"OPTION",{});var Wt=children(be);et=claim_text(Wt,"Web3 Wallet"),Wt.forEach(detach),ue.forEach(detach),Ke=claim_space(O),we=claim_element(O,"LABEL",{for:!0,class:!0});var Gt=children(we);tt=claim_text(Gt,"SITE TAG"),Gt.forEach(detach),Ze=claim_space(O),X=claim_element(O,"SELECT",{id:!0,class:!0});var Pe=children(X);me=claim_element(Pe,"OPTION",{});var qt=children(me);rt=claim_text(qt,"Pick a site tag"),qt.forEach(detach),ve=claim_element(Pe,"OPTION",{});var Yt=children(ve);nt=claim_text(Yt,"Scam"),Yt.forEach(detach),Ee=claim_element(Pe,"OPTION",{});var Kt=children(Ee);it=claim_text(Kt,"Fake"),Kt.forEach(detach),De=claim_element(Pe,"OPTION",{});var Zt=children(De);ot=claim_text(Zt,"Stereotype"),Zt.forEach(detach),Te=claim_element(Pe,"OPTION",{});var Xt=children(Te);at=claim_text(Xt,"Hate"),Xt.forEach(detach),Ae=claim_element(Pe,"OPTION",{});var Jt=children(Ae);st=claim_text(Jt,"Genuine"),Jt.forEach(detach),Pe.forEach(detach),Xe=claim_space(O),xe=claim_element(O,"LABEL",{for:!0,class:!0});var Qt=children(xe);lt=claim_text(Qt,"SITE SAFETY"),Qt.forEach(detach),Je=claim_space(O),J=claim_element(O,"SELECT",{id:!0,class:!0});var Fe=children(J);ge=claim_element(Fe,"OPTION",{});var er=children(ge);ct=claim_text(er,"Pick a site safety"),er.forEach(detach),ke=claim_element(Fe,"OPTION",{});var tr=children(ke);ut=claim_text(tr,"Safe"),tr.forEach(detach),Se=claim_element(Fe,"OPTION",{});var rr=children(Se);ft=claim_text(rr,"Phishing"),rr.forEach(detach),Ce=claim_element(Fe,"OPTION",{});var nr=children(Ce);ht=claim_text(nr,"Adware"),nr.forEach(detach),Be=claim_element(Fe,"OPTION",{});var ir=children(Be);dt=claim_text(ir,"Malware"),ir.forEach(detach),Ie=claim_element(Fe,"OPTION",{});var ar=children(Ie);pt=claim_text(ar,"Spyware"),ar.forEach(detach),Fe.forEach(detach),Qe=claim_space(O),Le=claim_element(O,"DIV",{class:!0});var sr=children(Le);Re=claim_element(sr,"BUTTON",{class:!0});var lr=children(Re);yt=claim_text(lr,"Submit"),lr.forEach(detach),sr.forEach(detach),this.h()},h(){attr(e,"class","font-bold text-2xl mt-5"),attr(o,"for","websiteUrl"),attr(o,"class","text-md mt-5 mb-3 block"),attr(l,"id","websiteUrl"),attr(l,"type","text"),l.value=r[3],attr(l,"class","input input-bordered input-success dark:bg-gray-900 dark:text-white dark:border-zinc-600 input-md w-full max-w-xs"),l.disabled=!0,attr(h,"for","category"),attr(h,"class","text-md mt-3 mb-3 block"),b.disabled=!0,b.selected=!0,b.__value="Pick a category",b.value=b.__value,y.__value="tooling",y.value=y.__value,T.__value="infra",T.value=T.__value,D.__value="bridges",D.value=D.__value,A.__value="launchpads",A.value=A.__value,I.__value="social",I.value=I.__value,x.__value="marketplaces",x.value=x.__value,M.__value="wallets",M.value=M.__value,Y.__value="stablecoins",Y.value=Y.__value,F.__value="nft tooling",F.value=F.__value,fe.__value="gaming",fe.value=fe.__value,he.__value="defi",he.value=he.__value,attr(_,"id","siteTag"),attr(_,"class","select select-success w-full max-w-xs dark:bg-gray-900 dark:text-white dark:border-zinc-600"),_.required=!0,r[4]===void 0&&add_render_callback(()=>r[14].call(_)),attr(q,"for","rating"),attr(q,"class","text-md mt-3 mb-3 block"),attr(Z,"id","rating"),attr(Z,"type","number"),attr(Z,"min",0),attr(Z,"max",10),attr(Z,"placeholder","rating"),attr(Z,"class","textarea textarea-success dark:bg-gray-900 dark:text-white dark:border-zinc-600 input-md w-full max-w-xs"),Z.required=!0,attr(le,"for","title"),attr(le,"class","text-md mt-5 mb-3 block"),attr(te,"id","title"),attr(te,"type","text"),attr(te,"placeholder","TITLE"),attr(te,"class","input input-bordered input-success dark:bg-gray-900 dark:text-white dark:border-zinc-600 input-md w-full max-w-xs"),te.required=!0,attr(ce,"for","description"),attr(ce,"class","text-md mt-3 mb-3 block"),attr(ne,"id","description"),attr(ne,"placeholder","DESCRIPTION"),attr(ne,"class","textarea textarea-success dark:bg-gray-900 dark:text-white dark:border-zinc-600 input-md w-full max-w-xs"),ne.required=!0,attr(ae,"for","siteType"),attr(ae,"class","text-md mt-3 mb-3 block"),re.disabled=!0,re.selected=!0,re.__value="Pick a site type",re.value=re.__value,se.__value="blog",se.value=se.__value,Q.__value="common website",Q.value=Q.__value,p.__value="company portfolio",p.value=p.__value,u.__value="defi project",u.value=u.__value,v.__value="ecommerce",v.value=v.__value,B.__value="personal portfolio",B.value=B.__value,j.__value="social media",j.value=j.__value,z.__value="software as a Service",z.value=z.__value,be.__value="web3 wallet",be.value=be.__value,attr(W,"id","siteType"),attr(W,"class","select select-success w-full max-w-xs dark:bg-gray-900 dark:text-white dark:border-zinc-600"),W.required=!0,r[7]===void 0&&add_render_callback(()=>r[18].call(W)),attr(we,"for","siteTag"),attr(we,"class","text-md mt-3 mb-3 block"),me.disabled=!0,me.selected=!0,me.__value="Pick a site tag",me.value=me.__value,ve.__value="scam",ve.value=ve.__value,Ee.__value="fake",Ee.value=Ee.__value,De.__value="stereotype",De.value=De.__value,Te.__value="hate",Te.value=Te.__value,Ae.__value="genuine",Ae.value=Ae.__value,attr(X,"id","siteTag"),attr(X,"class","select select-success w-full max-w-xs dark:bg-gray-900 dark:text-white dark:border-zinc-600"),X.required=!0,r[5]===void 0&&add_render_callback(()=>r[19].call(X)),attr(xe,"for","siteSafety"),attr(xe,"class","text-md mt-3 mb-3 block"),ge.disabled=!0,ge.selected=!0,ge.__value="Pick a site safety",ge.value=ge.__value,ke.__value="safe",ke.value=ke.__value,Se.__value="phishing",Se.value=Se.__value,Ce.__value="adware",Ce.value=Ce.__value,Be.__value="malware",Be.value=Be.__value,Ie.__value="spyware",Ie.value=Ie.__value,attr(J,"id","siteSafety"),attr(J,"class","select select-success w-full max-w-xs dark:bg-gray-900 dark:text-white dark:border-zinc-600"),J.required=!0,r[6]===void 0&&add_render_callback(()=>r[20].call(J)),attr(Re,"class","btn"),attr(Le,"class","modal-action")},m(O,P){insert_hydration(O,e,P),append_hydration(e,t),insert_hydration(O,n,P),insert_hydration(O,o,P),append_hydration(o,a),insert_hydration(O,s,P),insert_hydration(O,l,P),insert_hydration(O,f,P),insert_hydration(O,h,P),append_hydration(h,d),insert_hydration(O,m,P),insert_hydration(O,_,P),append_hydration(_,b),append_hydration(b,w),append_hydration(_,y),append_hydration(y,E),append_hydration(_,T),append_hydration(T,N),append_hydration(_,D),append_hydration(D,C),append_hydration(_,A),append_hydration(A,S),append_hydration(_,I),append_hydration(I,L),append_hydration(_,x),append_hydration(x,R),append_hydration(_,M),append_hydration(M,K),append_hydration(_,Y),append_hydration(Y,ee),append_hydration(_,F),append_hydration(F,He),append_hydration(_,fe),append_hydration(fe,Ve),append_hydration(_,he),append_hydration(he,We),select_option(_,r[4],!0),insert_hydration(O,G,P),insert_hydration(O,q,P),append_hydration(q,Ue),insert_hydration(O,$e,P),insert_hydration(O,Z,P),set_input_value(Z,r[10]),insert_hydration(O,Ne,P),insert_hydration(O,le,P),append_hydration(le,de),insert_hydration(O,_e,P),insert_hydration(O,te,P),set_input_value(te,r[1]),insert_hydration(O,Me,P),insert_hydration(O,ce,P),append_hydration(ce,pe),insert_hydration(O,ye,P),insert_hydration(O,ne,P),set_input_value(ne,r[2]),insert_hydration(O,je,P),insert_hydration(O,ae,P),append_hydration(ae,Ge),insert_hydration(O,ze,P),insert_hydration(O,W,P),append_hydration(W,re),append_hydration(re,ie),append_hydration(W,se),append_hydration(se,qe),append_hydration(W,Q),append_hydration(Q,Ye),append_hydration(W,p),append_hydration(p,c),append_hydration(W,u),append_hydration(u,g),append_hydration(W,v),append_hydration(v,k),append_hydration(W,B),append_hydration(B,U),append_hydration(W,j),append_hydration(j,V),append_hydration(W,z),append_hydration(z,H),append_hydration(W,be),append_hydration(be,et),select_option(W,r[7],!0),insert_hydration(O,Ke,P),insert_hydration(O,we,P),append_hydration(we,tt),insert_hydration(O,Ze,P),insert_hydration(O,X,P),append_hydration(X,me),append_hydration(me,rt),append_hydration(X,ve),append_hydration(ve,nt),append_hydration(X,Ee),append_hydration(Ee,it),append_hydration(X,De),append_hydration(De,ot),append_hydration(X,Te),append_hydration(Te,at),append_hydration(X,Ae),append_hydration(Ae,st),select_option(X,r[5],!0),insert_hydration(O,Xe,P),insert_hydration(O,xe,P),append_hydration(xe,lt),insert_hydration(O,Je,P),insert_hydration(O,J,P),append_hydration(J,ge),append_hydration(ge,ct),append_hydration(J,ke),append_hydration(ke,ut),append_hydration(J,Se),append_hydration(Se,ft),append_hydration(J,Ce),append_hydration(Ce,ht),append_hydration(J,Be),append_hydration(Be,dt),append_hydration(J,Ie),append_hydration(Ie,pt),select_option(J,r[6],!0),insert_hydration(O,Qe,P),insert_hydration(O,Le,P),append_hydration(Le,Re),append_hydration(Re,yt),mt||(gt=[listen(_,"change",r[14]),listen(Z,"input",r[15]),listen(te,"input",r[16]),listen(ne,"input",r[17]),listen(W,"change",r[18]),listen(X,"change",r[19]),listen(J,"change",r[20]),listen(Re,"click",r[11])],mt=!0)},p(O,P){P&8&&l.value!==O[3]&&(l.value=O[3]),P&16&&select_option(_,O[4]),P&1024&&to_number(Z.value)!==O[10]&&set_input_value(Z,O[10]),P&2&&te.value!==O[1]&&set_input_value(te,O[1]),P&4&&set_input_value(ne,O[2]),P&128&&select_option(W,O[7]),P&32&&select_option(X,O[5]),P&64&&select_option(J,O[6])},d(O){O&&detach(e),O&&detach(n),O&&detach(o),O&&detach(s),O&&detach(l),O&&detach(f),O&&detach(h),O&&detach(m),O&&detach(_),O&&detach(G),O&&detach(q),O&&detach($e),O&&detach(Z),O&&detach(Ne),O&&detach(le),O&&detach(_e),O&&detach(te),O&&detach(Me),O&&detach(ce),O&&detach(ye),O&&detach(ne),O&&detach(je),O&&detach(ae),O&&detach(ze),O&&detach(W),O&&detach(Ke),O&&detach(we),O&&detach(Ze),O&&detach(X),O&&detach(Xe),O&&detach(xe),O&&detach(Je),O&&detach(J),O&&detach(Qe),O&&detach(Le),mt=!1,run_all(gt)}}}function create_fragment$3(r){let e,t,n,o,a,s,l,f,h,d,m,_,b,w,y;function E(D,C){return D[8]?create_if_block$2:create_else_block$1}let T=E(r),N=T(r);return _=new Loader({}),{c(){e=element("div"),t=element("button"),n=text("Submit Review"),o=space(),a=element("div"),s=element("div"),l=element("button"),f=text("✕"),h=space(),N.c(),d=space(),m=element("div"),create_component(_.$$.fragment),this.h()},l(D){e=claim_element(D,"DIV",{class:!0});var C=children(e);t=claim_element(C,"BUTTON",{class:!0});var A=children(t);n=claim_text(A,"Submit Review"),A.forEach(detach),o=claim_space(C),a=claim_element(C,"DIV",{class:!0});var S=children(a);s=claim_element(S,"DIV",{class:!0});var I=children(s);l=claim_element(I,"BUTTON",{class:!0});var L=children(l);f=claim_text(L,"✕"),L.forEach(detach),h=claim_space(I),N.l(I),I.forEach(detach),d=claim_space(S),m=claim_element(S,"DIV",{class:!0});var x=children(m);claim_component(_.$$.fragment,x),x.forEach(detach),S.forEach(detach),C.forEach(detach),this.h()},h(){attr(t,"class","btn"),attr(l,"class","btn btn-sm btn-circle absolute right-2 top-2"),attr(s,"class","modal-box relative bg-white text-black dark:bg-gray-900 dark:text-white"),attr(m,"class","modal h-screen z-10 absolute top-0 flex justify-center items-center"),toggle_class(m,"modal-open",r[9]),attr(a,"class","modal"),toggle_class(a,"modal-open",r[0]),attr(e,"class","grid flex-grow")},m(D,C){insert_hydration(D,e,C),append_hydration(e,t),append_hydration(t,n),append_hydration(e,o),append_hydration(e,a),append_hydration(a,s),append_hydration(s,l),append_hydration(l,f),append_hydration(s,h),N.m(s,null),append_hydration(a,d),append_hydration(a,m),mount_component(_,m,null),b=!0,w||(y=[listen(t,"click",r[12]),listen(l,"click",r[13])],w=!0)},p(D,[C]){T===(T=E(D))&&N?N.p(D,C):(N.d(1),N=T(D),N&&(N.c(),N.m(s,null))),(!b||C&512)&&toggle_class(m,"modal-open",D[9]),(!b||C&1)&&toggle_class(a,"modal-open",D[0])},i(D){b||(transition_in(_.$$.fragment,D),b=!0)},o(D){transition_out(_.$$.fragment,D),b=!1},d(D){D&&detach(e),N.d(),destroy_component(_),w=!1,run_all(y)}}}let image="ipfs://bafybeica7pi67452fokrlrmxrooazsxbuluckmcojascc5z4fcazsuhsuy";function instance$3(r,e,t){let n=!1,o,a,s,l,f,h,d,m=!1,_=!1,b=0;const w=async()=>{var R;const[x]=await chrome.tabs.query({active:!0,currentWindow:!0});t(3,s=(R=x.url)==null?void 0:R.toLocaleLowerCase())},y=async()=>{t(9,_=!0);const x=new URL(`${s}`).hostname;let K=`ipfs://${await storeMetaData({name:o??"",description:a??"",category:l??"",image,domainAddress:x??"",siteUrl:s??"",siteType:d??"",siteTag:f??"",siteSafety:h??"",siteRating:b??""})}`.split(",")[0];try{await createReview({category:l??"",domainAddress:x??"",siteUrl:s??"",siteType:d??"",siteTag:f??"",siteSafety:h??"",metaDataUri:K,siteIpfsHash:"ipfs://abcd"})}catch(Y){console.log("error: "+Y)}finally{t(9,_=!1),t(0,n=!1),location.reload()}};onMount(async()=>{t(8,[m]=await checkAuth(),m),await w()});const E=()=>{t(0,n=!0)},T=()=>t(0,n=!1);function N(){l=select_value(this),t(4,l)}function D(){b=to_number(this.value),t(10,b)}function C(){o=this.value,t(1,o)}function A(){a=this.value,t(2,a)}function S(){d=select_value(this),t(7,d)}function I(){f=select_value(this),t(5,f)}function L(){h=select_value(this),t(6,h)}return[n,o,a,s,l,f,h,d,m,_,b,y,E,T,N,D,C,A,S,I,L]}class SubmitReview extends SvelteComponent{constructor(e){super(),init(this,e,instance$3,create_fragment$3,safe_not_equal,{})}}function styleInject(r,e){e===void 0&&(e={});var t=e.insertAt;if(r&&typeof document<"u"){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",t==="top"&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r))}}function $(r,e){return typeof r=="string"?(e||document).querySelector(r):r||null}function getOffset(r){var e=r.getBoundingClientRect();return{top:e.top+(document.documentElement.scrollTop||document.body.scrollTop),left:e.left+(document.documentElement.scrollLeft||document.body.scrollLeft)}}function isHidden(r){return r.offsetParent===null}function isElementInViewport(r){var e=r.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}function getElementContentWidth(r){var e=window.getComputedStyle(r),t=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight);return r.clientWidth-t}function fire(r,e,t){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0);for(var o in t)n[o]=t[o];return r.dispatchEvent(n)}function getTopOffset(r){return r.titleHeight+r.margins.top+r.paddings.top}function getLeftOffset(r){return r.margins.left+r.paddings.left}function getExtraHeight(r){return r.margins.top+r.margins.bottom+r.paddings.top+r.paddings.bottom+r.titleHeight+r.legendHeight}function getExtraWidth(r){return r.margins.left+r.margins.right+r.paddings.left+r.paddings.right}function _classCallCheck$4(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function floatTwo(r){return parseFloat(r.toFixed(2))}function fillArray(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t||(t=n?r[0]:r[r.length-1]);var o=new Array(Math.abs(e)).fill(t);return r=n?o.concat(r):r.concat(o)}function getStringWidth(r,e){return(r+"").length*e}function getPositionByAngle(r,e){return{x:Math.sin(r*ANGLE_RATIO)*e,y:Math.cos(r*ANGLE_RATIO)*e}}function isValidNumber(r){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return!Number.isNaN(r)&&r!==void 0&&!!Number.isFinite(r)&&!(e&&r<0)}function round(r){return+(Math.round(r+"e4")+"e-4")}function deepClone(r){var e=void 0,t=void 0,n=void 0;if(r instanceof Date)return new Date(r.getTime());if((r===void 0?"undefined":_typeof$2(r))!=="object"||r===null)return r;e=Array.isArray(r)?[]:{};for(n in r)t=r[n],e[n]=deepClone(t);return e}function getBarHeightAndYAttr(r,e){var t=void 0,n=void 0;return r<=e?(t=e-r,n=r):(t=r-e,n=e),[t,n]}function equilizeNoOfElements(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length-r.length;return t>0?r=fillArray(r,t):e=fillArray(e,t),[r,e]}function truncateString(r,e){if(r)return r.length>e?r.slice(0,e-3)+"...":r}function shortenLargeNumber(r){var e=void 0;if(typeof r=="number")e=r;else if(typeof r=="string"&&(e=Number(r),Number.isNaN(e)))return r;var t=Math.floor(Math.log10(Math.abs(e)));if(t<=2)return e;var n=Math.floor(t/3),o=Math.pow(10,t-3*n)*+(e/Math.pow(10,t)).toFixed(1);return Math.round(100*o)/100+" "+["","K","M","B","T"][n]}function getSplineCurvePointsStr(r,e){for(var t=[],n=0;n255?255:r<0?0:r}function lightenDarkenColor(r,e){var t=getColor(r),n=!1;t[0]=="#"&&(t=t.slice(1),n=!0);var o=parseInt(t,16),a=limitColor((o>>16)+e),s=limitColor((o>>8&255)+e),l=limitColor((255&o)+e);return(n?"#":"")+(l|s<<8|a<<16).toString(16)}function isValidColor(r){var e=/(^\s*)(rgb|hsl)(a?)[(]\s*([\d.]+\s*%?)\s*,\s*([\d.]+\s*%?)\s*,\s*([\d.]+\s*%?)\s*(?:,\s*([\d.]+)\s*)?[)]$/i;return/(^\s*)(#)((?:[A-Fa-f0-9]{3}){1,2})$/i.test(r)||e.test(r)}function $$1(r,e){return typeof r=="string"?(e||document).querySelector(r):r||null}function createSVG(r,e){var t=document.createElementNS("http://www.w3.org/2000/svg",r);for(var n in e){var o=e[n];if(n==="inside")$$1(o).appendChild(t);else if(n==="around"){var a=$$1(o);a.parentNode.insertBefore(t,a),t.appendChild(a)}else n==="styles"?(o===void 0?"undefined":_typeof$1(o))==="object"&&Object.keys(o).map(function(s){t.style[s]=o[s]}):(n==="className"&&(n="class"),n==="innerHTML"?t.textContent=o:t.setAttribute(n,o))}return t}function renderVerticalGradient(r,e){return createSVG("linearGradient",{inside:r,id:e,x1:0,x2:0,y1:0,y2:1})}function setGradientStop(r,e,t,n){return createSVG("stop",{inside:r,style:"stop-color: "+t,offset:e,"stop-opacity":n})}function makeSVGContainer(r,e,t,n){return createSVG("svg",{className:e,inside:r,width:t,height:n})}function makeSVGDefs(r){return createSVG("defs",{inside:r})}function makeSVGGroup(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,n={className:r,transform:e};return t&&(n.inside=t),createSVG("g",n)}function makePath(r){return createSVG("path",{className:arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",d:r,styles:{stroke:arguments.length>2&&arguments[2]!==void 0?arguments[2]:"none",fill:arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none","stroke-width":arguments.length>4&&arguments[4]!==void 0?arguments[4]:2}})}function makeArcPathStr(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,s=t.x+r.x,l=t.y+r.y,f=t.x+e.x,h=t.y+e.y;return"M"+t.x+" "+t.y+` + L`+s+" "+l+` + A `+n+" "+n+" 0 "+a+" "+(o?1:0)+` + `+f+" "+h+" z"}function makeCircleStr(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,s=t.x+r.x,l=t.y+r.y,f=t.x+e.x,h=2*t.y,d=t.y+e.y;return"M"+t.x+" "+t.y+` + L`+s+" "+l+` + A `+n+" "+n+" 0 "+a+" "+(o?1:0)+` + `+f+" "+h+` z + L`+s+" "+h+` + A `+n+" "+n+" 0 "+a+" "+(o?1:0)+` + `+f+" "+d+" z"}function makeArcStrokePathStr(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,s=t.x+r.x,l=t.y+r.y,f=t.x+e.x,h=t.y+e.y;return"M"+s+" "+l+` + A `+n+" "+n+" 0 "+a+" "+(o?1:0)+` + `+f+" "+h}function makeStrokeCircleStr(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,s=t.x+r.x,l=t.y+r.y,f=t.x+e.x,h=2*n+l,d=t.y+r.y;return"M"+s+" "+l+` + A `+n+" "+n+" 0 "+a+" "+(o?1:0)+` + `+f+" "+h+` + M`+s+" "+h+` + A `+n+" "+n+" 0 "+a+" "+(o?1:0)+` + `+f+" "+d}function makeGradient(r,e){var t=arguments.length>2&&arguments[2]!==void 0&&arguments[2],n="path-fill-gradient-"+e+"-"+(t?"lighter":"default"),o=renderVerticalGradient(r,n),a=[1,.6,.2];return t&&(a=[.4,.2,0]),setGradientStop(o,"0%",e,a[0]),setGradientStop(o,"50%",e,a[1]),setGradientStop(o,"100%",e,a[2]),n}function percentageBar(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:PERCENTAGE_BAR_DEFAULT_DEPTH,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"none";return createSVG("rect",{className:"percentage-bar",x:r,y:e,width:t,height:n,fill:a,styles:{stroke:lightenDarkenColor(a,-25),"stroke-dasharray":"0, "+(n+t)+", "+t+", "+n,"stroke-width":o}})}function heatSquare(r,e,t,n,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"none",s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},l={className:r,x:e,y:t,width:n,height:n,rx:o,fill:a};return Object.keys(s).map(function(f){l[f]=s[f]}),createSVG("rect",l)}function legendBar(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none",o=arguments[4];o=arguments.length>5&&arguments[5]!==void 0&&arguments[5]?truncateString(o,LABEL_MAX_CHARS):o;var a={className:"legend-bar",x:0,y:0,width:t,height:"2px",fill:n},s=createSVG("text",{className:"legend-dataset-text",x:0,y:0,dy:2*FONT_SIZE+"px","font-size":1.2*FONT_SIZE+"px","text-anchor":"start",fill:FONT_FILL,innerHTML:o}),l=createSVG("g",{transform:"translate("+r+", "+e+")"});return l.appendChild(createSVG("rect",a)),l.appendChild(s),l}function legendDot(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none",o=arguments[4];o=arguments.length>5&&arguments[5]!==void 0&&arguments[5]?truncateString(o,LABEL_MAX_CHARS):o;var a={className:"legend-dot",cx:0,cy:0,r:t,fill:n},s=createSVG("text",{className:"legend-dataset-text",x:0,y:0,dx:FONT_SIZE+"px",dy:FONT_SIZE/3+"px","font-size":1.2*FONT_SIZE+"px","text-anchor":"start",fill:FONT_FILL,innerHTML:o}),l=createSVG("g",{transform:"translate("+r+", "+e+")"});return l.appendChild(createSVG("circle",a)),l.appendChild(s),l}function makeText(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},a=o.fontSize||FONT_SIZE;return createSVG("text",{className:r,x:e,y:t,dy:(o.dy!==void 0?o.dy:a/2)+"px","font-size":a+"px",fill:o.fill||FONT_FILL,"text-anchor":o.textAnchor||"start",innerHTML:n})}function makeVertLine(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};o.stroke||(o.stroke=BASE_LINE_COLOR);var a=createSVG("line",{className:"line-vertical "+o.className,x1:0,x2:0,y1:t,y2:n,styles:{stroke:o.stroke}}),s=createSVG("text",{x:0,y:t>n?t+LABEL_MARGIN:t-LABEL_MARGIN-FONT_SIZE,dy:FONT_SIZE+"px","font-size":FONT_SIZE+"px","text-anchor":"middle",innerHTML:e+""}),l=createSVG("g",{transform:"translate("+r+", 0)"});return l.appendChild(a),l.appendChild(s),l}function makeHoriLine(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};o.stroke||(o.stroke=BASE_LINE_COLOR),o.lineType||(o.lineType=""),o.shortenNumbers&&(e=shortenLargeNumber(e));var a=createSVG("line",{className:"line-horizontal "+o.className+(o.lineType==="dashed"?"dashed":""),x1:t,x2:n,y1:0,y2:0,styles:{stroke:o.stroke}}),s=createSVG("text",{x:t3&&arguments[3]!==void 0?arguments[3]:{};isValidNumber(r)||(r=0),n.pos||(n.pos="left"),n.offset||(n.offset=0),n.mode||(n.mode="span"),n.stroke||(n.stroke=BASE_LINE_COLOR),n.className||(n.className="");var o=-1*AXIS_TICK_LENGTH,a=n.mode==="span"?t+AXIS_TICK_LENGTH:0;return n.mode==="tick"&&n.pos==="right"&&(o=t+AXIS_TICK_LENGTH,a=t),o+=n.offset,a+=n.offset,makeHoriLine(r,e,o,a,{stroke:n.stroke,className:n.className,lineType:n.lineType,shortenNumbers:n.shortenNumbers})}function xLine(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};isValidNumber(r)||(r=0),n.pos||(n.pos="bottom"),n.offset||(n.offset=0),n.mode||(n.mode="span"),n.stroke||(n.stroke=BASE_LINE_COLOR),n.className||(n.className="");var o=t+AXIS_TICK_LENGTH,a=n.mode==="span"?-1*AXIS_TICK_LENGTH:t;return n.mode==="tick"&&n.pos==="top"&&(o=-1*AXIS_TICK_LENGTH,a=0),makeVertLine(r,e,o,a,{stroke:n.stroke,className:n.className,lineType:n.lineType})}function yMarker(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};n.labelPos||(n.labelPos="right");var o=createSVG("text",{className:"chart-label",x:n.labelPos==="left"?LABEL_MARGIN:t-getStringWidth(e,5)-LABEL_MARGIN,y:0,dy:FONT_SIZE/-2+"px","font-size":FONT_SIZE+"px","text-anchor":"start",innerHTML:e+""}),a=makeHoriLine(r,"",0,t,{stroke:n.stroke||BASE_LINE_COLOR,className:n.className||"",lineType:n.lineType});return a.appendChild(o),a}function yRegion(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},a=r-e,s=createSVG("rect",{className:"bar mini",styles:{fill:"rgba(228, 234, 239, 0.49)",stroke:BASE_LINE_COLOR,"stroke-dasharray":t+", "+a},x:0,y:0,width:t,height:a});o.labelPos||(o.labelPos="right");var l=createSVG("text",{className:"chart-label",x:o.labelPos==="left"?LABEL_MARGIN:t-getStringWidth(n+"",4.5)-LABEL_MARGIN,y:0,dy:FONT_SIZE/-2+"px","font-size":FONT_SIZE+"px","text-anchor":"start",innerHTML:n+""}),f=createSVG("g",{transform:"translate(0, "+e+")"});return f.appendChild(s),f.appendChild(l),f}function datasetBar(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:{},f=getBarHeightAndYAttr(e,l.zeroLine),h=_slicedToArray(f,2),d=h[0],m=h[1];m-=s,d===0&&(d=l.minHeight,m-=l.minHeight),isValidNumber(r)||(r=0),isValidNumber(m)||(m=0),isValidNumber(d,!0)||(d=0),isValidNumber(t,!0)||(t=0);var _=createSVG("rect",{className:"bar mini",style:"fill: "+n,"data-point-index":a,x:r,y:m,width:t,height:d});if((o+="")||o.length){_.setAttribute("y",0),_.setAttribute("x",0);var b=createSVG("text",{className:"data-point-value",x:t/2,y:0,dy:FONT_SIZE/2*-1+"px","font-size":FONT_SIZE+"px","text-anchor":"middle",innerHTML:o}),w=createSVG("g",{"data-point-index":a,transform:"translate("+r+", "+m+")"});return w.appendChild(_),w.appendChild(b),w}return _}function datasetDot(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,s=createSVG("circle",{style:"fill: "+n,"data-point-index":a,cx:r,cy:e,r:t});if((o+="")||o.length){s.setAttribute("cy",0),s.setAttribute("cx",0);var l=createSVG("text",{className:"data-point-value",x:0,y:0,dy:FONT_SIZE/2*-1-t+"px","font-size":FONT_SIZE+"px","text-anchor":"middle",innerHTML:o}),f=createSVG("g",{"data-point-index":a,transform:"translate("+r+", "+e+")"});return f.appendChild(s),f.appendChild(l),f}return s}function getPaths(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},a=e.map(function(m,_){return r[_]+","+m}).join("L");n.spline&&(a=getSplineCurvePointsStr(r,e));var s=makePath("M"+a,"line-graph-path",t);if(n.heatline){var l=makeGradient(o.svgDefs,t);s.style.stroke="url(#"+l+")"}var f={path:s};if(n.regionFill){var h=makeGradient(o.svgDefs,t,!0),d="M"+r[0]+","+o.zeroLine+"L"+a+"L"+r.slice(-1)[0]+","+o.zeroLine;f.region=makePath(d,"region-fill","none","url(#"+h+")")}return f}function translate(r,e,t,n){var o=typeof e=="string"?e:e.join(", ");return[r,{transform:t.join(", ")},n,STD_EASING,"translate",{transform:o}]}function translateVertLine(r,e,t){return translate(r,[t,0],[e,0],MARKER_LINE_ANIM_DUR)}function translateHoriLine(r,e,t){return translate(r,[0,t],[0,e],MARKER_LINE_ANIM_DUR)}function animateRegion(r,e,t,n){var o=e-t,a=r.childNodes[0];return[[a,{height:o,"stroke-dasharray":a.getAttribute("width")+", "+o},MARKER_LINE_ANIM_DUR,STD_EASING],translate(r,[0,n],[0,t],MARKER_LINE_ANIM_DUR)]}function animateBar(r,e,t,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a=getBarHeightAndYAttr(t,(arguments.length>5&&arguments[5]!==void 0?arguments[5]:{}).zeroLine),s=_slicedToArray$2(a,2),l=s[0],f=s[1];return f-=o,r.nodeName!=="rect"?[[r.childNodes[0],{width:n,height:l},UNIT_ANIM_DUR,STD_EASING],translate(r,r.getAttribute("transform").split("(")[1].slice(0,-1),[e,f],MARKER_LINE_ANIM_DUR)]:[[r,{width:n,height:l,x:e,y:f},UNIT_ANIM_DUR,STD_EASING]]}function animateDot(r,e,t){return r.nodeName!=="circle"?[translate(r,r.getAttribute("transform").split("(")[1].slice(0,-1),[e,t],MARKER_LINE_ANIM_DUR)]:[[r,{cx:e,cy:t},UNIT_ANIM_DUR,STD_EASING]]}function animatePath(r,e,t,n,o){var a=[],s=t.map(function(m,_){return e[_]+","+m}).join("L");o&&(s=getSplineCurvePointsStr(e,t));var l=[r.path,{d:"M"+s},PATH_ANIM_DUR,STD_EASING];if(a.push(l),r.region){var f=e[0]+","+n+"L",h="L"+e.slice(-1)[0]+", "+n,d=[r.region,{d:"M"+f+s+h},PATH_ANIM_DUR,STD_EASING];a.push(d)}return a}function animatePathStr(r,e){return[r,{d:e},UNIT_ANIM_DUR,STD_EASING]}function _toConsumableArray$1(r){if(Array.isArray(r)){for(var e=0,t=Array(r.length);e3&&arguments[3]!==void 0?arguments[3]:"linear",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=r.cloneNode(!0),l=r.cloneNode(!0);for(var f in e){var h=void 0;h=f==="transform"?document.createElementNS("http://www.w3.org/2000/svg","animateTransform"):document.createElementNS("http://www.w3.org/2000/svg","animate");var d=a[f]||r.getAttribute(f),m=e[f],_={attributeName:f,from:d,to:m,begin:"0s",dur:t/1e3+"s",values:d+";"+m,keySplines:EASING[n],keyTimes:"0;1",calcMode:"spline",fill:"freeze"};o&&(_.type=o);for(var b in _)h.setAttribute(b,_[b]);s.appendChild(h),o?l.setAttribute(f,"translate("+m+")"):l.setAttribute(f,m)}return[s,l]}function transform(r,e){r.style.transform=e,r.style.webkitTransform=e,r.style.msTransform=e,r.style.mozTransform=e,r.style.oTransform=e}function animateSVG(r,e){var t=[],n=[];e.map(function(a){var s=a[0],l=s.parentNode,f=void 0,h=void 0;a[0]=s;var d=animateSVGElement.apply(void 0,_toConsumableArray$1(a)),m=_slicedToArray$1(d,2);f=m[0],h=m[1],t.push(h),n.push([f,l]),l&&l.replaceChild(f,s)});var o=r.cloneNode(!0);return n.map(function(a,s){a[1]&&(a[1].replaceChild(t[s],a[0]),e[s][0]=t[s])}),o}function runSMILAnimation(r,e,t){if(t.length!==0){var n=animateSVG(e,t);e.parentNode==r&&(r.removeChild(e),r.appendChild(n)),setTimeout(function(){n.parentNode==r&&(r.removeChild(n),r.appendChild(e))},REPLACE_ALL_NEW_DUR)}}function downloadFile(r,e){var t=document.createElement("a");t.style="display: none";var n=new Blob(e,{type:"image/svg+xml; charset=utf-8"}),o=window.URL.createObjectURL(n);t.href=o,t.download=r,document.body.appendChild(t),t.click(),setTimeout(function(){document.body.removeChild(t),window.URL.revokeObjectURL(o)},300)}function prepareForExport(r){var e=r.cloneNode(!0);e.classList.add("chart-container"),e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink");var t=$.create("style",{innerHTML:CSSTEXT});e.insertBefore(t,e.firstChild);var n=$.create("div");return n.appendChild(e),n.innerHTML}function _classCallCheck$3(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function _classCallCheck$2(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$1(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||typeof e!="object"&&typeof e!="function"?r:e}function _inherits$1(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}function treatAsUtc(r){var e=new Date(r);return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e}function getYyyyMmDd(r){var e=r.getDate(),t=r.getMonth()+1;return[r.getFullYear(),(t>9?"":"0")+t,(e>9?"":"0")+e].join("-")}function clone(r){return new Date(r.getTime())}function getWeeksBetween(r,e){var t=setDayToSunday(r);return Math.ceil(getDaysBetween(t,e)/NO_OF_DAYS_IN_WEEK)}function getDaysBetween(r,e){var t=SEC_IN_DAY*NO_OF_MILLIS;return(treatAsUtc(e)-treatAsUtc(r))/t}function areInSameMonth(r,e){return r.getMonth()===e.getMonth()&&r.getFullYear()===e.getFullYear()}function getMonthName(r){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],t=MONTH_NAMES[r];return e?t.slice(0,3):t}function getLastDateInMonth(r,e){return new Date(e,r+1,0)}function setDayToSunday(r){var e=clone(r),t=e.getDay();return t!==0&&addDays(e,-1*t),e}function addDays(r,e){r.setDate(r.getDate()+e)}function _classCallCheck$5(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function getComponent(r,e,t){var n=Object.keys(componentConfigs).filter(function(a){return r.includes(a)}),o=componentConfigs[n[0]];return Object.assign(o,{constants:e,getData:t}),new ChartComponent(o)}function _toConsumableArray(r){if(Array.isArray(r)){for(var e=0,t=Array(r.length);e0?1:-1;if(!isFinite(r))return{mantissa:4503599627370496*e,exponent:972};r=Math.abs(r);var t=Math.floor(Math.log10(r));return[e*(r/Math.pow(10,t)),t]}function getChartRangeIntervals(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=Math.ceil(r),n=Math.floor(e),o=t-n,a=o,s=1;o>5&&(o%2!=0&&(o=++t-n),a=o/2,s=2),o<=2&&(s=o/(a=4)),o===0&&(a=5,s=1);for(var l=[],f=0;f<=a;f++)l.push(n+s*f);return l}function getChartIntervals(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=normalize(r),n=_slicedToArray$4(t,2),o=n[0],a=n[1],s=e?e/Math.pow(10,a):0,l=getChartRangeIntervals(o=o.toFixed(6),s);return l=l.map(function(f){return f*Math.pow(10,a)})}function calcChartIntervals(r){function e(h,d){for(var m=getChartIntervals(h),_=m[1]-m[0],b=0,w=1;b1&&arguments[1]!==void 0&&arguments[1],n=Math.max.apply(Math,_toConsumableArray$4(r)),o=Math.min.apply(Math,_toConsumableArray$4(r)),a=[];if(n>=0&&o>=0)normalize(n)[1],a=t?getChartIntervals(n,o):getChartIntervals(n);else if(n>0&&o<0){var s=Math.abs(o);n>=s?(normalize(n)[1],a=e(n,s)):(normalize(s)[1],a=e(s,n).reverse().map(function(h){return-1*h}))}else if(n<=0&&o<=0){var l=Math.abs(o),f=Math.abs(n);normalize(l)[1],a=(a=t?getChartIntervals(l,f):getChartIntervals(l)).reverse().map(function(h){return-1*h})}return a}function getZeroIndex(r){var e=getIntervalSize(r);return r.indexOf(0)>=0?r.indexOf(0):r[0]>0?-1*r[0]/e:-1*r[r.length-1]/e+(r.length-1)}function getIntervalSize(r){return r[1]-r[0]}function getValueRange(r){return r[r.length-1]-r[0]}function scale(r,e){return floatTwo(e.zeroLine-r*e.scaleMultiplier)}function getClosestInArray(r,e){var t=arguments.length>2&&arguments[2]!==void 0&&arguments[2],n=e.reduce(function(o,a){return Math.abs(a-r)t?s.slice(0,t):fillArray(s,t-s.length,0),a.values=s}else a.values=o;a.chartType||(a.chartType=e)}),r.yRegions&&r.yRegions.map(function(a){if(a.end1&&arguments[1]!==void 0?arguments[1]:[],t=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],n=r/e.length;n<=0&&(n=1);var o=n/DEFAULT_CHAR_WIDTH,a=void 0;if(t){var s=Math.max.apply(Math,_toConsumableArray$6(e.map(function(l){return l.length})));a=Math.ceil(s/o)}return e.map(function(l,f){return(l+="").length>o&&(t?f%a!=0&&(l=""):l=o-3>0?l.slice(0,o-3)+" ...":l.slice(0,o)+".."),l})}function _toConsumableArray$5(r){if(Array.isArray(r)){for(var e=0,t=Array(r.length);e0&&arguments[0]!==void 0?arguments[0]:"line",e=arguments[1],t=arguments[2];return r==="axis-mixed"?(t.type="line",new AxisChart(e,t)):chartTypes[r]?new chartTypes[r](e,t):void console.error("Undefined chart type: "+r)}var css_248z='.chart-container{position:relative;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}.chart-container .axis,.chart-container .chart-label{fill:#555b51}.chart-container .axis line,.chart-container .chart-label line{stroke:#dadada}.chart-container .dataset-units circle{stroke:#fff;stroke-width:2}.chart-container .dataset-units path{fill:none;stroke-opacity:1;stroke-width:2px}.chart-container .dataset-path{stroke-width:2px}.chart-container .path-group path{fill:none;stroke-opacity:1;stroke-width:2px}.chart-container line.dashed{stroke-dasharray:5,3}.chart-container .axis-line .specific-value{text-anchor:start}.chart-container .axis-line .y-line{text-anchor:end}.chart-container .axis-line .x-line{text-anchor:middle}.chart-container .legend-dataset-text{fill:#6c7680;font-weight:600}.graph-svg-tip{position:absolute;z-index:99999;padding:10px;font-size:12px;color:#959da5;text-align:center;background:rgba(0,0,0,.8);border-radius:3px}.graph-svg-tip ol,.graph-svg-tip ul{padding-left:0;display:-webkit-box;display:-ms-flexbox;display:flex}.graph-svg-tip ul.data-point-list li{min-width:90px;-webkit-box-flex:1;-ms-flex:1;flex:1;font-weight:600}.graph-svg-tip strong{color:#dfe2e5;font-weight:600}.graph-svg-tip .svg-pointer{position:absolute;height:5px;margin:0 0 0 -5px;content:" ";border:5px solid transparent;border-top-color:rgba(0,0,0,.8)}.graph-svg-tip.comparison{padding:0;text-align:left;pointer-events:none}.graph-svg-tip.comparison .title{display:block;padding:10px;margin:0;font-weight:600;line-height:1;pointer-events:none}.graph-svg-tip.comparison ul{margin:0;white-space:nowrap;list-style:none}.graph-svg-tip.comparison li{display:inline-block;padding:5px 10px}';styleInject(css_248z);var _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r};$.create=function(r,e){var t=document.createElement(r);for(var n in e){var o=e[n];if(n==="inside")$(o).appendChild(t);else if(n==="around"){var a=$(o);a.parentNode.insertBefore(t,a),t.appendChild(a)}else n==="styles"?(o===void 0?"undefined":_typeof(o))==="object"&&Object.keys(o).map(function(s){t.style[s]=o[s]}):n in t?t[n]=o:t.setAttribute(n,o)}return t};var BASE_MEASURES={margins:{top:10,bottom:10,left:20,right:20},paddings:{top:20,bottom:40,left:30,right:10},baseHeight:240,titleHeight:20,legendHeight:30,titleFontSize:12},INIT_CHART_UPDATE_TIMEOUT=700,CHART_POST_ANIMATE_TIMEOUT=400,AXIS_LEGEND_BAR_SIZE=100,BAR_CHART_SPACE_RATIO=.5,MIN_BAR_PERCENT_HEIGHT=0,LINE_CHART_DOT_SIZE=4,DOT_OVERLAY_SIZE_INCR=4,PERCENTAGE_BAR_DEFAULT_HEIGHT=20,PERCENTAGE_BAR_DEFAULT_DEPTH=2,HEATMAP_DISTRIBUTION_SIZE=5,HEATMAP_SQUARE_SIZE=10,HEATMAP_GUTTER_SIZE=2,DEFAULT_CHAR_WIDTH=7,TOOLTIP_POINTER_TRIANGLE_HEIGHT=5,DEFAULT_CHART_COLORS=["light-blue","blue","violet","red","orange","yellow","green","light-green","purple","magenta","light-grey","dark-grey"],HEATMAP_COLORS_GREEN=["#ebedf0","#c6e48b","#7bc96f","#239a3b","#196127"],DEFAULT_COLORS={bar:DEFAULT_CHART_COLORS,line:DEFAULT_CHART_COLORS,pie:DEFAULT_CHART_COLORS,percentage:DEFAULT_CHART_COLORS,heatmap:HEATMAP_COLORS_GREEN,donut:DEFAULT_CHART_COLORS},ANGLE_RATIO=Math.PI/180,FULL_ANGLE=360,_createClass$3=function(){function r(e,t){for(var n=0;n +
      +
      `}),this.hideTip(),this.title=this.container.querySelector(".title"),this.dataPointList=this.container.querySelector(".data-point-list"),this.parent.addEventListener("mouseleave",function(){e.hideTip()})}},{key:"fill",value:function(){var e=this,t=void 0;this.index&&this.container.setAttribute("data-point-index",this.index),t=this.titleValueFirst?""+this.titleValue+""+this.titleName:this.titleName+""+this.titleValue+"",this.title.innerHTML=t,this.dataPointList.innerHTML="",this.listValues.map(function(n,o){var a=e.colors[o]||"black",s=n.formatted===0||n.formatted?n.formatted:n.value,l=$.create("li",{styles:{"border-top":"3px solid "+a},innerHTML:''+(s===0||s?s:"")+` + `+(n.title?n.title:"")});e.dataPointList.appendChild(l)})}},{key:"calcPosition",value:function(){var e=this.container.offsetWidth;this.top=this.y-this.container.offsetHeight-TOOLTIP_POINTER_TRIANGLE_HEIGHT,this.left=this.x-e/2;var t=this.parent.offsetWidth-e,n=this.container.querySelector(".svg-pointer");if(this.left<0)n.style.left="calc(50% - "+-1*this.left+"px)",this.left=0;else if(this.left>t){var o="calc(50% + "+(this.left-t)+"px)";n.style.left=o,this.left=t}else n.style.left="50%"}},{key:"setValues",value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;this.titleName=n.name,this.titleValue=n.value,this.listValues=o,this.x=e,this.y=t,this.titleValueFirst=n.valueFirst||0,this.index=a,this.refresh()}},{key:"hideTip",value:function(){this.container.style.top="0px",this.container.style.left="0px",this.container.style.opacity="0"}},{key:"showTip",value:function(){this.container.style.top=this.top+"px",this.container.style.left=this.left+"px",this.container.style.opacity="1"}}]),r}(),_typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},PRESET_COLOR_MAP={"light-blue":"#7cd6fd",blue:"#5e64ff",violet:"#743ee2",red:"#ff5858",orange:"#ffa00a",yellow:"#feef72",green:"#28a745","light-green":"#98d85b",purple:"#b554ff",magenta:"#ffa3ef",black:"#36114C",grey:"#bdd3e6","light-grey":"#f0f4f7","dark-grey":"#b8c2cc"},getColor=function(r){return/rgb[a]{0,1}\([\d, ]+\)/gim.test(r)?/\D+(\d*)\D+(\d*)\D+(\d*)/gim.exec(r).map(function(e,t){return t!==0?Number(e).toString(16):"#"}).reduce(function(e,t){return""+e+t}):PRESET_COLOR_MAP[r]||r},_slicedToArray=function(){function r(e,t){var n=[],o=!0,a=!1,s=void 0;try{for(var l,f=e[Symbol.iterator]();!(o=(l=f.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(h){a=!0,s=h}finally{try{!o&&f.return&&f.return()}finally{if(a)throw s}}return n}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return r(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},AXIS_TICK_LENGTH=6,LABEL_MARGIN=4,LABEL_MAX_CHARS=15,FONT_SIZE=10,BASE_LINE_COLOR="#dadada",FONT_FILL="#555b51",makeOverlay={bar:function(r){var e=void 0;r.nodeName!=="rect"&&(e=r.getAttribute("transform"),r=r.childNodes[0]);var t=r.cloneNode();return t.style.fill="#000000",t.style.opacity="0.4",e&&t.setAttribute("transform",e),t},dot:function(r){var e=void 0;r.nodeName!=="circle"&&(e=r.getAttribute("transform"),r=r.childNodes[0]);var t=r.cloneNode(),n=r.getAttribute("r"),o=r.getAttribute("fill");return t.setAttribute("r",parseInt(n)+DOT_OVERLAY_SIZE_INCR),t.setAttribute("fill",o),t.style.opacity="0.6",e&&t.setAttribute("transform",e),t},heat_square:function(r){var e=void 0;r.nodeName!=="circle"&&(e=r.getAttribute("transform"),r=r.childNodes[0]);var t=r.cloneNode(),n=r.getAttribute("r"),o=r.getAttribute("fill");return t.setAttribute("r",parseInt(n)+DOT_OVERLAY_SIZE_INCR),t.setAttribute("fill",o),t.style.opacity="0.6",e&&t.setAttribute("transform",e),t}},updateOverlay={bar:function(r,e){var t=void 0;r.nodeName!=="rect"&&(t=r.getAttribute("transform"),r=r.childNodes[0]);var n=["x","y","width","height"];Object.values(r.attributes).filter(function(o){return n.includes(o.name)&&o.specified}).map(function(o){e.setAttribute(o.name,o.nodeValue)}),t&&e.setAttribute("transform",t)},dot:function(r,e){var t=void 0;r.nodeName!=="circle"&&(t=r.getAttribute("transform"),r=r.childNodes[0]);var n=["cx","cy"];Object.values(r.attributes).filter(function(o){return n.includes(o.name)&&o.specified}).map(function(o){e.setAttribute(o.name,o.nodeValue)}),t&&e.setAttribute("transform",t)},heat_square:function(r,e){var t=void 0;r.nodeName!=="circle"&&(t=r.getAttribute("transform"),r=r.childNodes[0]);var n=["cx","cy"];Object.values(r.attributes).filter(function(o){return n.includes(o.name)&&o.specified}).map(function(o){e.setAttribute(o.name,o.nodeValue)}),t&&e.setAttribute("transform",t)}},_slicedToArray$2=function(){function r(e,t){var n=[],o=!0,a=!1,s=void 0;try{for(var l,f=e[Symbol.iterator]();!(o=(l=f.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(h){a=!0,s=h}finally{try{!o&&f.return&&f.return()}finally{if(a)throw s}}return n}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return r(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),UNIT_ANIM_DUR=350,PATH_ANIM_DUR=350,MARKER_LINE_ANIM_DUR=UNIT_ANIM_DUR,REPLACE_ALL_NEW_DUR=250,STD_EASING="easein",_slicedToArray$1=function(){function r(e,t){var n=[],o=!0,a=!1,s=void 0;try{for(var l,f=e[Symbol.iterator]();!(o=(l=f.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(h){a=!0,s=h}finally{try{!o&&f.return&&f.return()}finally{if(a)throw s}}return n}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return r(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),EASING={ease:"0.25 0.1 0.25 1",linear:"0 0 1 1",easein:"0.1 0.8 0.2 1",easeout:"0 0 0.58 1",easeinout:"0.42 0 0.58 1"},CSSTEXT=".chart-container{position:relative;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Roboto','Oxygen','Ubuntu','Cantarell','Fira Sans','Droid Sans','Helvetica Neue',sans-serif}.chart-container .axis,.chart-container .chart-label{fill:#555b51}.chart-container .axis line,.chart-container .chart-label line{stroke:#dadada}.chart-container .dataset-units circle{stroke:#fff;stroke-width:2}.chart-container .dataset-units path{fill:none;stroke-opacity:1;stroke-width:2px}.chart-container .dataset-path{stroke-width:2px}.chart-container .path-group path{fill:none;stroke-opacity:1;stroke-width:2px}.chart-container line.dashed{stroke-dasharray:5,3}.chart-container .axis-line .specific-value{text-anchor:start}.chart-container .axis-line .y-line{text-anchor:end}.chart-container .axis-line .x-line{text-anchor:middle}.chart-container .legend-dataset-text{fill:#6c7680;font-weight:600}.graph-svg-tip{position:absolute;z-index:99999;padding:10px;font-size:12px;color:#959da5;text-align:center;background:rgba(0,0,0,.8);border-radius:3px}.graph-svg-tip ul{padding-left:0;display:flex}.graph-svg-tip ol{padding-left:0;display:flex}.graph-svg-tip ul.data-point-list li{min-width:90px;flex:1;font-weight:600}.graph-svg-tip strong{color:#dfe2e5;font-weight:600}.graph-svg-tip .svg-pointer{position:absolute;height:5px;margin:0 0 0 -5px;content:' ';border:5px solid transparent;border-top-color:rgba(0,0,0,.8)}.graph-svg-tip.comparison{padding:0;text-align:left;pointer-events:none}.graph-svg-tip.comparison .title{display:block;padding:10px;margin:0;font-weight:600;line-height:1;pointer-events:none}.graph-svg-tip.comparison ul{margin:0;white-space:nowrap;list-style:none}.graph-svg-tip.comparison li{display:inline-block;padding:5px 10px}",_createClass$2=function(){function r(e,t){for(var n=0;n0&&arguments[0]!==void 0&&arguments[0],n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];t&&isHidden(this.parent)||(this.updateWidth(),this.calc(t),this.makeChartArea(),this.setupComponents(),this.components.forEach(function(o){return o.setup(e.drawArea)}),this.render(this.components,!1),n&&(this.data=this.realData,setTimeout(function(){e.update(e.data)},this.initTimeout)),this.renderLegend(),this.setupNavigation(n))}},{key:"calc",value:function(){}},{key:"updateWidth",value:function(){this.baseWidth=getElementContentWidth(this.parent),this.width=this.baseWidth-getExtraWidth(this.measures)}},{key:"makeChartArea",value:function(){this.svg&&this.container.removeChild(this.svg);var e=this.measures;this.svg=makeSVGContainer(this.container,"frappe-chart chart",this.baseWidth,this.baseHeight),this.svgDefs=makeSVGDefs(this.svg),this.title.length&&(this.titleEL=makeText("title",e.margins.left,e.margins.top,this.title,{fontSize:e.titleFontSize,fill:"#666666",dy:e.titleFontSize}));var t=getTopOffset(e);this.drawArea=makeSVGGroup(this.type+"-chart chart-draw-area","translate("+getLeftOffset(e)+", "+t+")"),this.config.showLegend&&(t+=this.height+e.paddings.bottom,this.legendArea=makeSVGGroup("chart-legend","translate("+getLeftOffset(e)+", "+t+")")),this.title.length&&this.svg.appendChild(this.titleEL),this.svg.appendChild(this.drawArea),this.config.showLegend&&this.svg.appendChild(this.legendArea),this.updateTipOffset(getLeftOffset(e),getTopOffset(e))}},{key:"updateTipOffset",value:function(e,t){this.tip.offset={x:e,y:t}}},{key:"setupComponents",value:function(){this.components=new Map}},{key:"update",value:function(e){e||console.error("No data to update."),this.data=this.prepareData(e),this.calc(),this.render(this.components,this.config.animate),this.renderLegend()}},{key:"render",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.components,n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.config.isNavigable&&this.overlays.map(function(a){return a.parentNode.removeChild(a)});var o=[];t.forEach(function(a){o=o.concat(a.update(n))}),o.length>0?(runSMILAnimation(this.container,this.svg,o),setTimeout(function(){t.forEach(function(a){return a.make()}),e.updateNav()},CHART_POST_ANIMATE_TIMEOUT)):(t.forEach(function(a){return a.make()}),this.updateNav())}},{key:"updateNav",value:function(){this.config.isNavigable&&(this.makeOverlay(),this.bindUnits())}},{key:"renderLegend",value:function(){}},{key:"setupNavigation",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.config.isNavigable&&t&&(this.bindOverlay(),this.keyActions={13:this.onEnterKey.bind(this),37:this.onLeftArrow.bind(this),38:this.onUpArrow.bind(this),39:this.onRightArrow.bind(this),40:this.onDownArrow.bind(this)},document.addEventListener("keydown",function(n){isElementInViewport(e.container)&&(n=n||window.event,e.keyActions[n.keyCode]&&e.keyActions[n.keyCode]())}))}},{key:"makeOverlay",value:function(){}},{key:"updateOverlay",value:function(){}},{key:"bindOverlay",value:function(){}},{key:"bindUnits",value:function(){}},{key:"onLeftArrow",value:function(){}},{key:"onRightArrow",value:function(){}},{key:"onUpArrow",value:function(){}},{key:"onDownArrow",value:function(){}},{key:"onEnterKey",value:function(){}},{key:"addDataPoint",value:function(){}},{key:"removeDataPoint",value:function(){}},{key:"getDataPoint",value:function(){}},{key:"setCurrentDataPoint",value:function(){}},{key:"updateDataset",value:function(){}},{key:"export",value:function(){var e=prepareForExport(this.svg);downloadFile(this.title||"Chart",[e])}}]),r}(),_createClass$1=function(){function r(e,t){for(var n=0;n=0}),s=a;if(a.length>o){a.sort(function(f,h){return h[0]-f[0]}),s=a.slice(0,o-1);var l=0;a.slice(o-1).map(function(f){l+=f[0]}),s.push([l,"Rest"]),this.colors[o-1]="grey"}n.labels=[],s.map(function(f){n.sliceTotals.push(round(f[0])),n.labels.push(f[1])}),n.grandTotal=n.sliceTotals.reduce(function(f,h){return f+h},0),this.center={x:this.width/2,y:this.height/2}}},{key:"renderLegend",value:function(){var t=this,n=this.state;this.legendArea.textContent="",this.legendTotals=n.sliceTotals.slice(0,this.config.maxLegendPoints);var o=0,a=0;this.legendTotals.map(function(s,l){var f=150,h=Math.floor((t.width-getExtraWidth(t.measures))/f);t.legendTotals.lengthh&&(o=0,a+=20);var d=f*o+5,m=t.config.truncateLegends?truncateString(n.labels[l],f/10):n.labels[l],_=t.config.formatTooltipY?t.config.formatTooltipY(s):s,b=legendDot(d,a,5,t.colors[l],m+": "+_,!1);t.legendArea.appendChild(b),o++})}}]),e}(BaseChart),NO_OF_YEAR_MONTHS=12,NO_OF_DAYS_IN_WEEK=7,NO_OF_MILLIS=1e3,SEC_IN_DAY=86400,MONTH_NAMES=["January","February","March","April","May","June","July","August","September","October","November","December"],DAY_NAMES_SHORT=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],_slicedToArray$3=function(){function r(e,t){var n=[],o=!0,a=!1,s=void 0;try{for(var l,f=e[Symbol.iterator]();!(o=(l=f.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(h){a=!0,s=h}finally{try{!o&&f.return&&f.return()}finally{if(a)throw s}}return n}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return r(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_createClass$4=function(){function r(e,t){for(var n=0;n0&&arguments[0]!==void 0)||arguments[0];this.refresh();var t=[];return e&&(t=this.animateElements(this.data)||[]),t}}]),r}(),componentConfigs={donutSlices:{layerClass:"donut-slices",makeElements:function(r){return r.sliceStrings.map(function(e,t){var n=makePath(e,"donut-path",r.colors[t],"none",r.strokeWidth);return n.style.transition="transform .3s;",n})},animateElements:function(r){return this.store.map(function(e,t){return animatePathStr(e,r.sliceStrings[t])})}},pieSlices:{layerClass:"pie-slices",makeElements:function(r){return r.sliceStrings.map(function(e,t){var n=makePath(e,"pie-path","none",r.colors[t]);return n.style.transition="transform .3s;",n})},animateElements:function(r){return this.store.map(function(e,t){return animatePathStr(e,r.sliceStrings[t])})}},percentageBars:{layerClass:"percentage-bars",makeElements:function(r){var e=this;return r.xPositions.map(function(t,n){return percentageBar(t,0,r.widths[n],e.constants.barHeight,e.constants.barDepth,r.colors[n])})},animateElements:function(r){if(r)return[]}},yAxis:{layerClass:"y axis",makeElements:function(r){var e=this;return r.positions.map(function(t,n){return yLine(t,r.labels[n],e.constants.width,{mode:e.constants.mode,pos:e.constants.pos,shortenNumbers:e.constants.shortenNumbers})})},animateElements:function(r){var e=r.positions,t=r.labels,n=this.oldData.positions,o=this.oldData.labels,a=equilizeNoOfElements(n,e),s=_slicedToArray$3(a,2);n=s[0],e=s[1];var l=equilizeNoOfElements(o,t),f=_slicedToArray$3(l,2);return o=f[0],t=f[1],this.render({positions:n,labels:t}),this.store.map(function(h,d){return translateHoriLine(h,e[d],n[d])})}},xAxis:{layerClass:"x axis",makeElements:function(r){var e=this;return r.positions.map(function(t,n){return xLine(t,r.calcLabels[n],e.constants.height,{mode:e.constants.mode,pos:e.constants.pos})})},animateElements:function(r){var e=r.positions,t=r.calcLabels,n=this.oldData.positions,o=this.oldData.calcLabels,a=equilizeNoOfElements(n,e),s=_slicedToArray$3(a,2);n=s[0],e=s[1];var l=equilizeNoOfElements(o,t),f=_slicedToArray$3(l,2);return o=f[0],t=f[1],this.render({positions:n,calcLabels:t}),this.store.map(function(h,d){return translateVertLine(h,e[d],n[d])})}},yMarkers:{layerClass:"y-markers",makeElements:function(r){var e=this;return r.map(function(t){return yMarker(t.position,t.label,e.constants.width,{labelPos:t.options.labelPos,mode:"span",lineType:"dashed"})})},animateElements:function(r){var e=equilizeNoOfElements(this.oldData,r),t=_slicedToArray$3(e,2);this.oldData=t[0];var n=(r=t[1]).map(function(l){return l.position}),o=r.map(function(l){return l.label}),a=r.map(function(l){return l.options}),s=this.oldData.map(function(l){return l.position});return this.render(s.map(function(l,f){return{position:s[f],label:o[f],options:a[f]}})),this.store.map(function(l,f){return translateHoriLine(l,n[f],s[f])})}},yRegions:{layerClass:"y-regions",makeElements:function(r){var e=this;return r.map(function(t){return yRegion(t.startPos,t.endPos,e.constants.width,t.label,{labelPos:t.options.labelPos})})},animateElements:function(r){var e=equilizeNoOfElements(this.oldData,r),t=_slicedToArray$3(e,2);this.oldData=t[0];var n=(r=t[1]).map(function(d){return d.endPos}),o=r.map(function(d){return d.label}),a=r.map(function(d){return d.startPos}),s=r.map(function(d){return d.options}),l=this.oldData.map(function(d){return d.endPos}),f=this.oldData.map(function(d){return d.startPos});this.render(l.map(function(d,m){return{startPos:f[m],endPos:l[m],label:o[m],options:s[m]}}));var h=[];return this.store.map(function(d,m){h=h.concat(animateRegion(d,a[m],n[m],l[m]))}),h}},heatDomain:{layerClass:function(){return"heat-domain domain-"+this.constants.index},makeElements:function(r){var e=this,t=this.constants,n=t.index,o=t.colWidth,a=t.rowHeight,s=t.squareSize,l=t.radius,f=t.xTranslate,h=0;return this.serializedSubDomains=[],r.cols.map(function(d,m){m===1&&e.labels.push(makeText("domain-name",f,-12,getMonthName(n,!0).toUpperCase(),{fontSize:9})),d.map(function(_,b){if(_.fill){var w={"data-date":_.yyyyMmDd,"data-value":_.dataValue,"data-day":b},y=heatSquare("day",f,h,s,l,_.fill,w);e.serializedSubDomains.push(y)}h+=a}),h=0,f+=o}),this.serializedSubDomains},animateElements:function(r){if(r)return[]}},barGraph:{layerClass:function(){return"dataset-units dataset-bars dataset-"+this.constants.index},makeElements:function(r){var e=this.constants;return this.unitType="bar",this.units=r.yPositions.map(function(t,n){return datasetBar(r.xPositions[n],t,r.barWidth,e.color,r.labels[n],n,r.offsets[n],{zeroLine:r.zeroLine,barsWidth:r.barsWidth,minHeight:e.minHeight})}),this.units},animateElements:function(r){var e=r.xPositions,t=r.yPositions,n=r.offsets,o=r.labels,a=this.oldData.xPositions,s=this.oldData.yPositions,l=this.oldData.offsets,f=this.oldData.labels,h=equilizeNoOfElements(a,e),d=_slicedToArray$3(h,2);a=d[0],e=d[1];var m=equilizeNoOfElements(s,t),_=_slicedToArray$3(m,2);s=_[0],t=_[1];var b=equilizeNoOfElements(l,n),w=_slicedToArray$3(b,2);l=w[0],n=w[1];var y=equilizeNoOfElements(f,o),E=_slicedToArray$3(y,2);f=E[0],o=E[1],this.render({xPositions:a,yPositions:s,offsets:l,labels:o,zeroLine:this.oldData.zeroLine,barsWidth:this.oldData.barsWidth,barWidth:this.oldData.barWidth});var T=[];return this.store.map(function(N,D){T=T.concat(animateBar(N,e[D],t[D],r.barWidth,n[D],{zeroLine:r.zeroLine}))}),T}},lineGraph:{layerClass:function(){return"dataset-units dataset-line dataset-"+this.constants.index},makeElements:function(r){var e=this.constants;return this.unitType="dot",this.paths={},e.hideLine||(this.paths=getPaths(r.xPositions,r.yPositions,e.color,{heatline:e.heatline,regionFill:e.regionFill,spline:e.spline},{svgDefs:e.svgDefs,zeroLine:r.zeroLine})),this.units=[],e.hideDots||(this.units=r.yPositions.map(function(t,n){return datasetDot(r.xPositions[n],t,r.radius,e.color,e.valuesOverPoints?r.values[n]:"",n)})),Object.values(this.paths).concat(this.units)},animateElements:function(r){var e=r.xPositions,t=r.yPositions,n=r.values,o=this.oldData.xPositions,a=this.oldData.yPositions,s=this.oldData.values,l=equilizeNoOfElements(o,e),f=_slicedToArray$3(l,2);o=f[0],e=f[1];var h=equilizeNoOfElements(a,t),d=_slicedToArray$3(h,2);a=d[0],t=d[1];var m=equilizeNoOfElements(s,n),_=_slicedToArray$3(m,2);s=_[0],n=_[1],this.render({xPositions:o,yPositions:a,values:n,zeroLine:this.oldData.zeroLine,radius:this.oldData.radius});var b=[];return Object.keys(this.paths).length&&(b=b.concat(animatePath(this.paths,e,t,r.zeroLine,this.constants.spline))),this.units.length&&this.units.map(function(w,y){b=b.concat(animateDot(w,e[y],t[y]))}),b}}},_createClass=function(){function r(e,t){for(var n=0;n0?t.formattedLabels[l]:t.state.labels[l])+": ",b=n.sliceTotals[l]/n.grandTotal;t.tip.setValues(d,m,{name:_,value:(100*b).toFixed(1)+"%"}),t.tip.showTip()}})}}]),e}(AggregationChart),_createClass$5=function(){function r(e,t){for(var n=0;nthis.width?this.center.x:this.center.y;var o=this.radius,a=this.clockWise,s=n.slicesProperties||[];n.sliceStrings=[],n.slicesProperties=[];var l=180-this.config.startAngle;n.sliceTotals.map(function(f,h){var d=l,m=f/n.grandTotal*FULL_ANGLE,_=m>180?1:0,b=a?-m:m,w=l+=b,y=getPositionByAngle(d,o),E=getPositionByAngle(w,o),T=t.init&&s[h],N=void 0,D=void 0;t.init?(N=T?T.startPosition:y,D=T?T.endPosition:y):(N=y,D=E);var C=m===360?makeCircleStr(N,D,t.center,t.radius,a,_):makeArcPathStr(N,D,t.center,t.radius,a,_);n.sliceStrings.push(C),n.slicesProperties.push({startPosition:y,endPosition:E,value:f,total:n.grandTotal,startAngle:d,endAngle:w,angle:b})}),this.init=0}},{key:"setupComponents",value:function(){var t=this.state,n=[["pieSlices",{},(function(){return{sliceStrings:t.sliceStrings,colors:this.colors}}).bind(this)]];this.components=new Map(n.map(function(o){var a=getComponent.apply(void 0,_toConsumableArray$2(o));return[o[0],a]}))}},{key:"calTranslateByAngle",value:function(t){var n=this.radius,o=this.hoverRadio,a=getPositionByAngle(t.startAngle+t.angle/2,n);return"translate3d("+a.x*o+"px,"+a.y*o+"px,0)"}},{key:"hoverSlice",value:function(t,n,o,a){if(t){var s=this.colors[n];if(o){transform(t,this.calTranslateByAngle(this.state.slicesProperties[n])),t.style.fill=lightenDarkenColor(s,50);var l=getOffset(this.svg),f=a.pageX-l.left+10,h=a.pageY-l.top-10,d=(this.formatted_labels&&this.formatted_labels.length>0?this.formatted_labels[n]:this.state.labels[n])+": ",m=(100*this.state.sliceTotals[n]/this.state.grandTotal).toFixed(1);this.tip.setValues(f,h,{name:d,value:m+"%"}),this.tip.showTip()}else transform(t,"translate3d(0,0,0)"),this.tip.hideTip(),t.style.fill=s}}},{key:"bindTooltip",value:function(){this.container.addEventListener("mousemove",this.mouseMove),this.container.addEventListener("mouseleave",this.mouseLeave)}},{key:"mouseMove",value:function(t){var n=t.target,o=this.components.get("pieSlices").store,a=this.curActiveSliceIndex,s=this.curActiveSlice;if(o.includes(n)){var l=o.indexOf(n);this.hoverSlice(s,a,!1),this.curActiveSlice=n,this.curActiveSliceIndex=l,this.hoverSlice(n,l,!0,t)}else this.mouseLeave()}},{key:"mouseLeave",value:function(){this.hoverSlice(this.curActiveSlice,this.curActiveSliceIndex,!1)}}]),e}(AggregationChart),_slicedToArray$4=function(){function r(e,t){var n=[],o=!0,a=!1,s=void 0;try{for(var l,f=e[Symbol.iterator]();!(o=(l=f.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(h){a=!0,s=h}finally{try{!o&&f.return&&f.return()}finally{if(a)throw s}}return n}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return r(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_createClass$6=function(){function r(e,t){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:this.data;if(t.start&&t.end&&t.start>t.end)throw new Error("Start date cannot be greater than end date.");if(t.start||(t.start=new Date,t.start.setFullYear(t.start.getFullYear()-1)),t.end||(t.end=new Date),t.dataPoints=t.dataPoints||{},parseInt(Object.keys(t.dataPoints)[0])>1e5){var n={};Object.keys(t.dataPoints).forEach(function(o){var a=new Date(o*NO_OF_MILLIS);n[getYyyyMmDd(a)]=t.dataPoints[o]}),t.dataPoints=n}return t}},{key:"calc",value:function(){var t=this.state;t.start=clone(this.data.start),t.end=clone(this.data.end),t.firstWeekStart=clone(t.start),t.noOfWeeks=getWeeksBetween(t.start,t.end),t.distribution=calcDistribution(Object.values(this.data.dataPoints),HEATMAP_DISTRIBUTION_SIZE),t.domainConfigs=this.getDomains()}},{key:"setupComponents",value:function(){var t=this,n=this.state,o=this.discreteDomains?0:1,a=n.domainConfigs.map(function(l,f){return["heatDomain",{index:l.index,colWidth:COL_WIDTH,rowHeight:ROW_HEIGHT,squareSize:HEATMAP_SQUARE_SIZE,radius:t.rawChartArgs.radius||0,xTranslate:n.domainConfigs.filter(function(h,d){return d1&&arguments[1]!==void 0?arguments[1]:"",o=[t.getMonth(),t.getFullYear()],a=o[0],s=o[1],l=setDayToSunday(t),f={index:a,cols:[]};addDays(n=clone(n)||getLastDateInMonth(a,s),1);for(var h=getWeeksBetween(l,n),d=[],m=void 0,_=0;_2&&arguments[2]!==void 0&&arguments[2],a=this.state,s=clone(t),l=[],f=0;f=a.start&&s<=a.end;o||s.getMonth()!==n||!d?h.yyyyMmDd=getYyyyMmDd(s):h=this.getSubDomainConfig(s),l.push(h)}return l}},{key:"getSubDomainConfig",value:function(t){var n=getYyyyMmDd(t),o=this.data.dataPoints[n];return{yyyyMmDd:n,dataValue:o||0,fill:this.colors[getMaxCheckpoint(o,this.state.distribution)]}}}]),e}(BaseChart),_createClass$7=function(){function r(e,t){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:this.data,this.type)}},{key:"prepareFirstData",value:function(){return zeroDataPrep(arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.data)}},{key:"calc",value:function(){var t=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.calcXPositions(),t||this.calcYAxisParameters(this.getAllYValues(),this.type==="line"),this.makeDataByIndex()}},{key:"calcXPositions",value:function(){var t=this.state,n=this.data.labels;t.datasetLength=n.length,t.unitWidth=this.width/t.datasetLength,t.xOffset=t.unitWidth/2,t.xAxis={labels:n,positions:n.map(function(o,a){return floatTwo(t.xOffset+a*t.unitWidth)})}}},{key:"calcYAxisParameters",value:function(t){var n=calcChartIntervals(t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:"false"),o=this.height/getValueRange(n),a=getIntervalSize(n)*o,s=this.height-getZeroIndex(n)*a;this.state.yAxis={labels:n,positions:n.map(function(l){return s-l*o}),scaleMultiplier:o,zeroLine:s},this.calcDatasetPoints(),this.calcYExtremes(),this.calcYRegions()}},{key:"calcDatasetPoints",value:function(){var t=this.state,n=function(o){return o.map(function(a){return scale(a,t.yAxis)})};t.datasets=this.data.datasets.map(function(o,a){var s=o.values,l=o.cumulativeYs||[];return{name:o.name&&o.name.replace(/<|>|&/g,function(f){return f=="&"?"&":f=="<"?"<":">"}),index:a,chartType:o.chartType,values:s,yPositions:n(s),cumulativeYs:l,cumulativeYPos:n(l)}})}},{key:"calcYExtremes",value:function(){var t=this.state;if(this.barOptions.stacked)return void(t.yExtremes=t.datasets[t.datasets.length-1].cumulativeYPos);t.yExtremes=new Array(t.datasetLength).fill(9999),t.datasets.map(function(n){n.yPositions.map(function(o,a){ogetTopOffset(o)?t.mapTooltipXPosition(s):t.tip.hideTip()})}},{key:"mapTooltipXPosition",value:function(t){var n=this.state;if(n.yExtremes){var o=getClosestInArray(t,n.xAxis.positions,!0);if(o>=0){var a=this.dataByIndex[o];this.tip.setValues(a.xPos+this.tip.offset.x,a.yExtreme+this.tip.offset.y,{name:a.formattedLabel,value:""},a.values,o),this.tip.showTip()}}}},{key:"renderLegend",value:function(){var t=this,n=this.data;n.datasets.length>1&&(this.legendArea.textContent="",n.datasets.map(function(o,a){var s=AXIS_LEGEND_BAR_SIZE,l=legendBar(s*a,"0",s,t.colors[a],o.name,t.config.truncateLegends);t.legendArea.appendChild(l)}))}},{key:"makeOverlay",value:function(){var t=this;if(this.init)return void(this.init=0);this.overlayGuides&&this.overlayGuides.forEach(function(n){var o=n.overlay;o.parentNode.removeChild(o)}),this.overlayGuides=this.dataUnitComponents.map(function(n){return{type:n.unitType,overlay:void 0,units:n.units}}),this.state.currentIndex===void 0&&(this.state.currentIndex=this.state.datasetLength-1),this.overlayGuides.map(function(n){var o=n.units[t.state.currentIndex];n.overlay=makeOverlay[n.type](o),t.drawArea.appendChild(n.overlay)})}},{key:"updateOverlayGuides",value:function(){this.overlayGuides&&this.overlayGuides.forEach(function(t){var n=t.overlay;n.parentNode.removeChild(n)})}},{key:"bindOverlay",value:function(){var t=this;this.parent.addEventListener("data-select",function(){t.updateOverlay()})}},{key:"bindUnits",value:function(){var t=this;this.dataUnitComponents.map(function(n){n.units.map(function(o){o.addEventListener("click",function(){var a=o.getAttribute("data-point-index");t.setCurrentDataPoint(a)})})}),this.tip.container.addEventListener("click",function(){var n=t.tip.container.getAttribute("data-point-index");t.setCurrentDataPoint(n)})}},{key:"updateOverlay",value:function(){var t=this;this.overlayGuides.map(function(n){var o=n.units[t.state.currentIndex];updateOverlay[n.type](o,n.overlay)})}},{key:"onLeftArrow",value:function(){this.setCurrentDataPoint(this.state.currentIndex-1)}},{key:"onRightArrow",value:function(){this.setCurrentDataPoint(this.state.currentIndex+1)}},{key:"getDataPoint",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.state.currentIndex,n=this.state;return{index:t,label:n.xAxis.labels[t],values:n.datasets.map(function(o){return o.values[t]})}}},{key:"setCurrentDataPoint",value:function(t){var n=this.state;(t=parseInt(t))<0&&(t=0),t>=n.xAxis.labels.length&&(t=n.xAxis.labels.length-1),t!==n.currentIndex&&(n.currentIndex=t,fire(this.parent,"data-select",this.getDataPoint()))}},{key:"addDataPoint",value:function(t,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.state.datasetLength;_get$3(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addDataPoint",this).call(this,t,n,o),this.data.labels.splice(o,0,t),this.data.datasets.map(function(a,s){a.values.splice(o,0,n[s])}),this.update(this.data)}},{key:"removeDataPoint",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.state.datasetLength-1;this.data.labels.length<=1||(_get$3(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeDataPoint",this).call(this,t),this.data.labels.splice(t,1),this.data.datasets.map(function(n){n.values.splice(t,1)}),this.update(this.data))}},{key:"updateDataset",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.data.datasets[n].values=t,this.update(this.data)}},{key:"updateDatasets",value:function(t){this.data.datasets.map(function(n,o){t[o]&&(n.values=t[o])}),this.update(this.data)}}]),e}(BaseChart),_createClass$8=function(){function r(e,t){for(var n=0;nthis.width?this.center.x-this.strokeWidth/2:this.center.y-this.strokeWidth/2;var o=this.radius,a=this.clockWise,s=n.slicesProperties||[];n.sliceStrings=[],n.slicesProperties=[];var l=180-this.config.startAngle;n.sliceTotals.map(function(f,h){var d=l,m=f/n.grandTotal*FULL_ANGLE,_=m>180?1:0,b=a?-m:m,w=l+=b,y=getPositionByAngle(d,o),E=getPositionByAngle(w,o),T=t.init&&s[h],N=void 0,D=void 0;t.init?(N=T?T.startPosition:y,D=T?T.endPosition:y):(N=y,D=E);var C=m===360?makeStrokeCircleStr(N,D,t.center,t.radius,t.clockWise,_):makeArcStrokePathStr(N,D,t.center,t.radius,t.clockWise,_);n.sliceStrings.push(C),n.slicesProperties.push({startPosition:y,endPosition:E,value:f,total:n.grandTotal,startAngle:d,endAngle:w,angle:b})}),this.init=0}},{key:"setupComponents",value:function(){var t=this.state,n=[["donutSlices",{},(function(){return{sliceStrings:t.sliceStrings,colors:this.colors,strokeWidth:this.strokeWidth}}).bind(this)]];this.components=new Map(n.map(function(o){var a=getComponent.apply(void 0,_toConsumableArray$7(o));return[o[0],a]}))}},{key:"calTranslateByAngle",value:function(t){var n=this.radius,o=this.hoverRadio,a=getPositionByAngle(t.startAngle+t.angle/2,n);return"translate3d("+a.x*o+"px,"+a.y*o+"px,0)"}},{key:"hoverSlice",value:function(t,n,o,a){if(t){var s=this.colors[n];if(o){transform(t,this.calTranslateByAngle(this.state.slicesProperties[n])),t.style.stroke=lightenDarkenColor(s,50);var l=getOffset(this.svg),f=a.pageX-l.left+10,h=a.pageY-l.top-10,d=(this.formatted_labels&&this.formatted_labels.length>0?this.formatted_labels[n]:this.state.labels[n])+": ",m=(100*this.state.sliceTotals[n]/this.state.grandTotal).toFixed(1);this.tip.setValues(f,h,{name:d,value:m+"%"}),this.tip.showTip()}else transform(t,"translate3d(0,0,0)"),this.tip.hideTip(),t.style.stroke=s}}},{key:"bindTooltip",value:function(){this.container.addEventListener("mousemove",this.mouseMove),this.container.addEventListener("mouseleave",this.mouseLeave)}},{key:"mouseMove",value:function(t){var n=t.target,o=this.components.get("donutSlices").store,a=this.curActiveSliceIndex,s=this.curActiveSlice;if(o.includes(n)){var l=o.indexOf(n);this.hoverSlice(s,a,!1),this.curActiveSlice=n,this.curActiveSliceIndex=l,this.hoverSlice(n,l,!0,t)}else this.mouseLeave()}},{key:"mouseLeave",value:function(){this.hoverSlice(this.curActiveSlice,this.curActiveSliceIndex,!1)}}]),e}(AggregationChart),chartTypes={bar:AxisChart,line:AxisChart,percentage:PercentageChart,heatmap:Heatmap,pie:PieChart,donut:DonutChart},Chart=function r(e,t){return _classCallCheck(this,r),getChartByType(t.type,e,t)};function create_fragment$2(r){let e,t,n;return{c(){e=element("div")},l(o){e=claim_element(o,"DIV",{}),children(e).forEach(detach)},m(o,a){insert_hydration(o,e,a),r[18](e),t||(n=listen(e,"data-select",r[17]),t=!0)},p:noop$2,i:noop$2,o:noop$2,d(o){o&&detach(e),r[18](null),t=!1,n()}}}function instance$2(r,e,t){let{data:n={labels:[],datasets:[{values:[]}],yMarkers:{},yRegions:[]}}=e,{title:o=""}=e,{type:a="line"}=e,{height:s=300}=e,{animate:l=!0}=e,{axisOptions:f={}}=e,{barOptions:h={}}=e,{lineOptions:d={}}=e,{tooltipOptions:m={}}=e,{colors:_=[]}=e,{valuesOverPoints:b=0}=e,{isNavigable:w=!1}=e,{maxSlices:y=3}=e,E=null,T;function N(x){return function(...M){if(E)return x(...M)}}const D=N((x,R,M)=>E.addDataPoint(x,R,M)),C=N(x=>E.removeDataPoint(x)),A=N(()=>E.export()),S=N(x=>E.update(x));onMount(()=>{E=new Chart(T,{data:n,title:o,type:a,height:s,animate:l,colors:_,axisOptions:f,barOptions:h,lineOptions:d,tooltipOptions:m,valuesOverPoints:b,isNavigable:w,maxSlices:y})}),onDestroy(()=>{E=null});function I(x){bubble.call(this,r,x)}function L(x){binding_callbacks[x?"unshift":"push"](()=>{T=x,t(0,T)})}return r.$$set=x=>{"data"in x&&t(1,n=x.data),"title"in x&&t(2,o=x.title),"type"in x&&t(3,a=x.type),"height"in x&&t(4,s=x.height),"animate"in x&&t(5,l=x.animate),"axisOptions"in x&&t(6,f=x.axisOptions),"barOptions"in x&&t(7,h=x.barOptions),"lineOptions"in x&&t(8,d=x.lineOptions),"tooltipOptions"in x&&t(9,m=x.tooltipOptions),"colors"in x&&t(10,_=x.colors),"valuesOverPoints"in x&&t(11,b=x.valuesOverPoints),"isNavigable"in x&&t(12,w=x.isNavigable),"maxSlices"in x&&t(13,y=x.maxSlices)},r.$$.update=()=>{r.$$.dirty&2&&S(n)},[T,n,o,a,s,l,f,h,d,m,_,b,w,y,D,C,A,I,L]}class Base extends SvelteComponent{constructor(e){super(),init(this,e,instance$2,create_fragment$2,safe_not_equal,{data:1,title:2,type:3,height:4,animate:5,axisOptions:6,barOptions:7,lineOptions:8,tooltipOptions:9,colors:10,valuesOverPoints:11,isNavigable:12,maxSlices:13,addDataPoint:14,removeDataPoint:15,exportChart:16})}get addDataPoint(){return this.$$.ctx[14]}get removeDataPoint(){return this.$$.ctx[15]}get exportChart(){return this.$$.ctx[16]}}const Base$1=Base;function create_if_block_1(r){let e,t,n,o,a,s,l;return s=new SubmitReview({}),{c(){e=element("div"),t=element("h3"),n=text("Be the first to review this website"),o=space(),a=element("div"),create_component(s.$$.fragment),this.h()},l(f){e=claim_element(f,"DIV",{class:!0});var h=children(e);t=claim_element(h,"H3",{class:!0});var d=children(t);n=claim_text(d,"Be the first to review this website"),d.forEach(detach),o=claim_space(h),a=claim_element(h,"DIV",{class:!0});var m=children(a);claim_component(s.$$.fragment,m),m.forEach(detach),h.forEach(detach),this.h()},h(){attr(t,"class","text-3xl text-center"),attr(a,"class","card-actions justify-end"),attr(e,"class","flex flex-col gap-28 items-center")},m(f,h){insert_hydration(f,e,h),append_hydration(e,t),append_hydration(t,n),append_hydration(e,o),append_hydration(e,a),mount_component(s,a,null),l=!0},p:noop$2,i(f){l||(transition_in(s.$$.fragment,f),l=!0)},o(f){transition_out(s.$$.fragment,f),l=!1},d(f){f&&detach(e),destroy_component(s)}}}function create_if_block$1(r){let e,t,n,o,a,s,l,f,h,d,m,_,b,w,y,E,T,N;return n=new Base$1({props:{data:r[1],type:"donut",height:300,width:300}}),y=new Review({props:{urlWithoutProtocol:r[3]}}),T=new SubmitReview({}),{c(){e=element("div"),t=element("div"),create_component(n.$$.fragment),o=space(),a=element("div"),s=space(),l=element("br"),f=space(),h=element("div"),d=element("div"),m=element("h2"),_=text("What people say"),b=space(),w=element("div"),create_component(y.$$.fragment),E=space(),create_component(T.$$.fragment),this.h()},l(D){e=claim_element(D,"DIV",{class:!0});var C=children(e);t=claim_element(C,"DIV",{class:!0});var A=children(t);claim_component(n.$$.fragment,A),o=claim_space(A),a=claim_element(A,"DIV",{}),children(a).forEach(detach),A.forEach(detach),C.forEach(detach),s=claim_space(D),l=claim_element(D,"BR",{}),f=claim_space(D),h=claim_element(D,"DIV",{class:!0});var S=children(h);d=claim_element(S,"DIV",{class:!0});var I=children(d);m=claim_element(I,"H2",{class:!0});var L=children(m);_=claim_text(L,"What people say"),L.forEach(detach),b=claim_space(I),w=claim_element(I,"DIV",{class:!0});var x=children(w);claim_component(y.$$.fragment,x),E=claim_space(x),claim_component(T.$$.fragment,x),x.forEach(detach),I.forEach(detach),S.forEach(detach),this.h()},h(){attr(t,"class","block w-auto h-max"),attr(e,"class","justify-center"),attr(m,"class","px-5 text-xl font-bold text-center dark:text-white"),attr(w,"class","card-actions mt-4 justify-center"),attr(d,"class","p-4"),attr(h,"class","w-auto shadow-lg dark:shadow-green-300/30 rounded-lg")},m(D,C){insert_hydration(D,e,C),append_hydration(e,t),mount_component(n,t,null),append_hydration(t,o),append_hydration(t,a),insert_hydration(D,s,C),insert_hydration(D,l,C),insert_hydration(D,f,C),insert_hydration(D,h,C),append_hydration(h,d),append_hydration(d,m),append_hydration(m,_),append_hydration(d,b),append_hydration(d,w),mount_component(y,w,null),append_hydration(w,E),mount_component(T,w,null),N=!0},p(D,C){const A={};C&2&&(A.data=D[1]),n.$set(A);const S={};C&8&&(S.urlWithoutProtocol=D[3]),y.$set(S)},i(D){N||(transition_in(n.$$.fragment,D),transition_in(y.$$.fragment,D),transition_in(T.$$.fragment,D),N=!0)},o(D){transition_out(n.$$.fragment,D),transition_out(y.$$.fragment,D),transition_out(T.$$.fragment,D),N=!1},d(D){D&&detach(e),destroy_component(n),D&&detach(s),D&&detach(l),D&&detach(f),D&&detach(h),destroy_component(y),destroy_component(T)}}}function create_fragment$1(r){let e,t,n,o,a,s,l,f,h,d,m,_,b;t=new Header({});const w=[create_if_block$1,create_if_block_1],y=[];function E(T,N){return T[0]&&T[0].length>0?0:T[0]&&T[0].length<=0||!T[0]?1:-1}return~(f=E(r))&&(h=y[f]=w[f](r)),_=new Loader({}),{c(){e=element("div"),create_component(t.$$.fragment),n=space(),o=element("div"),a=text(r[3]),s=space(),l=element("div"),h&&h.c(),d=space(),m=element("div"),create_component(_.$$.fragment),this.h()},l(T){e=claim_element(T,"DIV",{});var N=children(e);claim_component(t.$$.fragment,N),n=claim_space(N),o=claim_element(N,"DIV",{class:!0});var D=children(o);a=claim_text(D,r[3]),D.forEach(detach),s=claim_space(N),l=claim_element(N,"DIV",{class:!0});var C=children(l);h&&h.l(C),C.forEach(detach),d=claim_space(N),m=claim_element(N,"DIV",{class:!0});var A=children(m);claim_component(_.$$.fragment,A),A.forEach(detach),N.forEach(detach),this.h()},h(){attr(o,"class","text-center text-xl text-bold dark:text-white p-2 m-5 border border-zinc-600 dark:border-green-400 rounded-full flex justify-center items-center"),attr(l,"class","bg-white text-black dark:bg-gray-900 dark:text-white"),attr(m,"class","modal h-screen z-10 absolute top-0 flex justify-center items-center"),toggle_class(m,"modal-open",r[2])},m(T,N){insert_hydration(T,e,N),mount_component(t,e,null),append_hydration(e,n),append_hydration(e,o),append_hydration(o,a),append_hydration(e,s),append_hydration(e,l),~f&&y[f].m(l,null),append_hydration(e,d),append_hydration(e,m),mount_component(_,m,null),b=!0},p(T,[N]){(!b||N&8)&&set_data(a,T[3]);let D=f;f=E(T),f===D?~f&&y[f].p(T,N):(h&&(group_outros(),transition_out(y[D],1,1,()=>{y[D]=null}),check_outros()),~f?(h=y[f],h?h.p(T,N):(h=y[f]=w[f](T),h.c()),transition_in(h,1),h.m(l,null)):h=null),(!b||N&4)&&toggle_class(m,"modal-open",T[2])},i(T){b||(transition_in(t.$$.fragment,T),transition_in(h),transition_in(_.$$.fragment,T),b=!0)},o(T){transition_out(t.$$.fragment,T),transition_out(h),transition_out(_.$$.fragment,T),b=!1},d(T){T&&detach(e),destroy_component(t),~f&&y[f].d(),destroy_component(_)}}}function instance$1(r,e,t){let n,o,a=[],s,l=!1;const f=async()=>{var m;t(2,l=!0);try{const[_]=await chrome.tabs.query({active:!0,currentWindow:!0});t(4,o=(m=_.url)==null?void 0:m.toLocaleLowerCase())}catch(_){console.log(_)}finally{t(2,l=!1)}};let h=async()=>{let m="";jwtToken.subscribe(y=>m=y);const _={method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${m}`}},w=await(await fetch(`${PUBLIC_GATEWAY_URL}/stats?domain=${n}`,_)).json();t(0,a=w.payload),console.log(w)};const d=async()=>{t(1,s={labels:[],datasets:[{values:[]}]}),a&&a.forEach(m=>{s.labels.push(m.siteSafety),s.datasets[0].values.push(Number(m.count))})};return onMount(async()=>{await f(),await h(),await d()}),r.$$.update=()=>{r.$$.dirty&16&&t(3,n=o==null?void 0:o.replace(/^https?:\/\/([^/]+)\/.*/,"$1"))},[a,s,l,n,o]}class Dashboard extends SvelteComponent{constructor(e){super(),init(this,e,instance$1,create_fragment$1,safe_not_equal,{})}}function create_else_block(r){let e,t;return e=new Dashboard({}),{c(){create_component(e.$$.fragment)},l(n){claim_component(e.$$.fragment,n)},m(n,o){mount_component(e,n,o),t=!0},p:noop$2,i(n){t||(transition_in(e.$$.fragment,n),t=!0)},o(n){transition_out(e.$$.fragment,n),t=!1},d(n){destroy_component(e,n)}}}function create_if_block(r){let e,t,n,o,a,s,l,f,h,d,m,_,b,w,y,E,T,N,D,C;return t=new Header({}),{c(){e=element("div"),create_component(t.$$.fragment),n=space(),o=element("div"),a=element("img"),l=space(),f=element("div"),h=element("h1"),d=text("Welcome "),m=element("br"),_=text(" to Netsepio"),b=space(),w=element("div"),y=element("a"),E=element("button"),T=text("Dashboard"),this.h()},l(A){e=claim_element(A,"DIV",{});var S=children(e);claim_component(t.$$.fragment,S),n=claim_space(S),o=claim_element(S,"DIV",{class:!0});var I=children(o);a=claim_element(I,"IMG",{src:!0,alt:!0,class:!0}),l=claim_space(I),f=claim_element(I,"DIV",{class:!0});var L=children(f);h=claim_element(L,"H1",{class:!0});var x=children(h);d=claim_text(x,"Welcome "),m=claim_element(x,"BR",{}),_=claim_text(x," to Netsepio"),x.forEach(detach),b=claim_space(L),w=claim_element(L,"DIV",{class:!0});var R=children(w);y=claim_element(R,"A",{href:!0});var M=children(y);E=claim_element(M,"BUTTON",{class:!0});var K=children(E);T=claim_text(K,"Dashboard"),K.forEach(detach),M.forEach(detach),R.forEach(detach),L.forEach(detach),I.forEach(detach),S.forEach(detach),this.h()},h(){src_url_equal(a.src,s=src)||attr(a,"src",s),attr(a,"alt","NetSepio logo"),attr(a,"class","w-1/2 mx-auto block"),attr(h,"class","text-4xl font-bold text-center"),attr(E,"class","btn btn-wide mt-3"),attr(y,"href","/"),attr(w,"class","mt-2"),attr(f,"class",""),attr(o,"class","flex flex-col justify-evenly items-center w-full min-h-[490px] max-h-max mx-auto")},m(A,S){insert_hydration(A,e,S),mount_component(t,e,null),append_hydration(e,n),append_hydration(e,o),append_hydration(o,a),append_hydration(o,l),append_hydration(o,f),append_hydration(f,h),append_hydration(h,d),append_hydration(h,m),append_hydration(h,_),append_hydration(f,b),append_hydration(f,w),append_hydration(w,y),append_hydration(y,E),append_hydration(E,T),N=!0,D||(C=listen(E,"click",r[1]),D=!0)},p:noop$2,i(A){N||(transition_in(t.$$.fragment,A),N=!0)},o(A){transition_out(t.$$.fragment,A),N=!1},d(A){A&&detach(e),destroy_component(t),D=!1,C()}}}function create_fragment(r){let e,t,n,o;const a=[create_if_block,create_else_block],s=[];function l(f,h){return f[0]===0?0:1}return e=l(r),t=s[e]=a[e](r),{c(){t.c(),n=empty$1()},l(f){t.l(f),n=empty$1()},m(f,h){s[e].m(f,h),insert_hydration(f,n,h),o=!0},p(f,[h]){let d=e;e=l(f),e===d?s[e].p(f,h):(group_outros(),transition_out(s[d],1,1,()=>{s[d]=null}),check_outros(),t=s[e],t?t.p(f,h):(t=s[e]=a[e](f),t.c()),transition_in(t,1),t.m(n.parentNode,n))},i(f){o||(transition_in(t),o=!0)},o(f){transition_out(t),o=!1},d(f){s[e].d(f),f&&detach(n)}}}let src="/logo-3.png";function instance(r,e,t){let n;return component_subscribe(r,onboardingStepsLeft,a=>t(0,n=a)),[n,()=>{onboardingStepsLeft.set(3)}]}class Page extends SvelteComponent{constructor(e){super(),init(this,e,instance,create_fragment,safe_not_equal,{})}}export{Page as component,_page as universal}; diff --git a/build/app/immutable/nodes/3.5063bed6.js b/build/app/immutable/nodes/3.5063bed6.js new file mode 100644 index 000000000..5f3b30a92 --- /dev/null +++ b/build/app/immutable/nodes/3.5063bed6.js @@ -0,0 +1 @@ +import{S as te,i as ae,s as se,k as b,y as X,a as I,l as v,m as x,z as F,c as U,h as _,b as w,A as Z,D as c,d as B,f as re,g as L,B as ee,I as le,o as ne,v as ie,H as R,q as W,r as z,n as o,K as M,Q,J as N,u as oe,L as ce}from"../chunks/index.f3b06f47.js";import{H as ue}from"../chunks/Header.b7ab37a3.js";import{a as me}from"../chunks/public.02ab71de.js";import{j as fe}from"../chunks/store.26750aee.js";import{c as pe}from"../chunks/secondAuth.f9ee4b2a.js";import{A as _e}from"../chunks/AskToLogin.c273dc76.js";function de(f){let e,t;return e=new _e({}),{c(){X(e.$$.fragment)},l(l){F(e.$$.fragment,l)},m(l,d){Z(e,l,d),t=!0},p:R,i(l){t||(L(e.$$.fragment,l),t=!0)},o(l){B(e.$$.fragment,l),t=!1},d(l){ee(e,l)}}}function ke(f){let e,t,l,d,i,n,u,k,y,m,A,a,p,g,P,$,s,S=(f[1]??"Write to Us!")+"",D,j,T,V,H,C,O,Y;return{c(){e=b("div"),t=b("h1"),l=W("Rate Us"),d=I(),i=b("div"),n=b("input"),u=I(),k=b("input"),y=I(),m=b("input"),A=I(),a=b("input"),p=I(),g=b("input"),P=I(),$=b("div"),s=b("h1"),D=W(S),j=I(),T=b("textarea"),V=I(),H=b("button"),C=W("Submit"),this.h()},l(r){e=v(r,"DIV",{});var h=x(e);t=v(h,"H1",{class:!0});var q=x(t);l=z(q,"Rate Us"),q.forEach(_),d=U(h),i=v(h,"DIV",{class:!0});var E=x(i);n=v(E,"INPUT",{type:!0,name:!0,class:!0}),u=U(E),k=v(E,"INPUT",{type:!0,name:!0,class:!0}),y=U(E),m=v(E,"INPUT",{type:!0,name:!0,class:!0}),A=U(E),a=v(E,"INPUT",{type:!0,name:!0,class:!0}),p=U(E),g=v(E,"INPUT",{type:!0,name:!0,class:!0}),E.forEach(_),h.forEach(_),P=U(r),$=v(r,"DIV",{});var J=x($);s=v(J,"H1",{class:!0});var G=x(s);D=z(G,S),G.forEach(_),J.forEach(_),j=U(r),T=v(r,"TEXTAREA",{class:!0,placeholder:!0}),x(T).forEach(_),V=U(r),H=v(r,"BUTTON",{class:!0});var K=x(H);C=z(K,"Submit"),K.forEach(_),this.h()},h(){o(t,"class","text-3xl text-left mt-5 mb-5"),o(n,"type","radio"),o(n,"name","rating-2"),o(n,"class","mask mask-star-2 bg-orange-400"),n.checked=!0,n.value="1",o(k,"type","radio"),o(k,"name","rating-2"),o(k,"class","mask mask-star-2 bg-orange-400"),k.value="2",o(m,"type","radio"),o(m,"name","rating-2"),o(m,"class","mask mask-star-2 bg-orange-400"),m.value="3",o(a,"type","radio"),o(a,"name","rating-2"),o(a,"class","mask mask-star-2 bg-orange-400"),a.value="4",o(g,"type","radio"),o(g,"name","rating-2"),o(g,"class","mask mask-star-2 bg-orange-400"),g.value="5",o(i,"class","rating"),o(s,"class","text-5xl text-left mt-10 mb-5"),M(s,"text-red-500",f[1]),o(T,"class","textarea textarea-success w-full h-44 bg-slate-100 dark:text-white dark:bg-gray-900 border border-zinc-600"),o(T,"placeholder","Write Here"),o(H,"class","btn mt-2 mb-2")},m(r,h){w(r,e,h),c(e,t),c(t,l),c(e,d),c(e,i),c(i,n),c(i,u),c(i,k),c(i,y),c(i,m),c(i,A),c(i,a),c(i,p),c(i,g),w(r,P,h),w(r,$,h),c($,s),c(s,D),w(r,j,h),w(r,T,h),Q(T,f[0]),w(r,V,h),w(r,H,h),c(H,C),O||(Y=[N(n,"click",f[6]),N(k,"click",f[7]),N(m,"click",f[8]),N(a,"click",f[9]),N(g,"click",f[10]),N(T,"input",f[11]),N(H,"click",f[5])],O=!0)},p(r,h){h&2&&S!==(S=(r[1]??"Write to Us!")+"")&&oe(D,S),h&2&&M(s,"text-red-500",r[1]),h&1&&Q(T,r[0])},i:R,o:R,d(r){r&&_(e),r&&_(P),r&&_($),r&&_(j),r&&_(T),r&&_(V),r&&_(H),O=!1,ce(Y)}}}function he(f){let e,t;return{c(){e=b("div"),t=W("Your feedback means a lot to us, so thank you :)"),this.h()},l(l){e=v(l,"DIV",{class:!0});var d=x(e);t=z(d,"Your feedback means a lot to us, so thank you :)"),d.forEach(_),this.h()},h(){o(e,"class","h-[70vh] text-center flex justify-center items-center p-8 text-xl")},m(l,d){w(l,e,d),c(e,t)},p:R,i:R,o:R,d(l){l&&_(e)}}}function be(f){let e,t,l,d,i,n,u,k;t=new ue({});const y=[he,ke,de],m=[];function A(a,p){return a[2]?0:a[3]?1:2}return n=A(f),u=m[n]=y[n](f),{c(){e=b("div"),X(t.$$.fragment),l=I(),d=b("br"),i=I(),u.c()},l(a){e=v(a,"DIV",{});var p=x(e);F(t.$$.fragment,p),l=U(p),d=v(p,"BR",{}),i=U(p),u.l(p),p.forEach(_)},m(a,p){w(a,e,p),Z(t,e,null),c(e,l),c(e,d),c(e,i),m[n].m(e,null),k=!0},p(a,[p]){let g=n;n=A(a),n===g?m[n].p(a,p):(ie(),B(m[g],1,1,()=>{m[g]=null}),re(),u=m[n],u?u.p(a,p):(u=m[n]=y[n](a),u.c()),L(u,1),u.m(e,null))},i(a){k||(L(t.$$.fragment,a),L(u),k=!0)},o(a){B(t.$$.fragment,a),B(u),k=!1},d(a){a&&_(e),ee(t),m[n].d()}}}function ve(f,e,t){let l;le(f,fe,s=>t(13,l=s));let d,i,n,u,k=!1;const y=s=>{d=s.target.value},m=async()=>{try{const s=await fetch(`${me}/feedback`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({feedback:i,rating:Number(d)})});s.status===401&&t(1,n="Setup wallet and sing up first"),s.status===200&&t(2,u=!0)}catch(s){t(1,n=s.message)}};ne(async()=>{t(3,[k]=await pe(),k)});const A=s=>{y(s)},a=s=>{y(s)},p=s=>{y(s)},g=s=>{y(s)},P=s=>{y(s)};function $(){i=this.value,t(0,i)}return[i,n,u,k,y,m,A,a,p,g,P,$]}class xe extends te{constructor(e){super(),ae(this,e,ve,be,se,{})}}export{xe as component}; diff --git a/build/app/immutable/nodes/3.99515f80.js b/build/app/immutable/nodes/3.99515f80.js deleted file mode 100644 index 4c8c22b40..000000000 --- a/build/app/immutable/nodes/3.99515f80.js +++ /dev/null @@ -1 +0,0 @@ -import{S as te,i as ae,s as se,k as b,y as F,a as I,l as v,m as x,z as Q,c as U,h as _,b as w,A as Z,D as c,d as B,f as re,g as L,B as ee,I as le,o as ne,v as ie,H as R,q as W,r as z,n as o,K as M,P as X,J as H,u as oe,L as ce}from"../chunks/index.83ca82d8.js";import{H as ue}from"../chunks/Header.80bfed2a.js";import{a as me}from"../chunks/public.02ab71de.js";import{j as fe}from"../chunks/store.e259513c.js";import{c as pe}from"../chunks/secondAuth.d664856c.js";import{A as _e}from"../chunks/AskToLogin.9a7bb0f7.js";function de(f){let e,t;return e=new _e({}),{c(){F(e.$$.fragment)},l(l){Q(e.$$.fragment,l)},m(l,d){Z(e,l,d),t=!0},p:R,i(l){t||(L(e.$$.fragment,l),t=!0)},o(l){B(e.$$.fragment,l),t=!1},d(l){ee(e,l)}}}function ke(f){let e,t,l,d,i,n,u,k,y,m,A,a,p,g,N,$,s,S=(f[1]??"Write to Us!")+"",D,j,T,V,P,C,O,Y;return{c(){e=b("div"),t=b("h1"),l=W("Rate Us"),d=I(),i=b("div"),n=b("input"),u=I(),k=b("input"),y=I(),m=b("input"),A=I(),a=b("input"),p=I(),g=b("input"),N=I(),$=b("div"),s=b("h1"),D=W(S),j=I(),T=b("textarea"),V=I(),P=b("button"),C=W("Submit"),this.h()},l(r){e=v(r,"DIV",{});var h=x(e);t=v(h,"H1",{class:!0});var q=x(t);l=z(q,"Rate Us"),q.forEach(_),d=U(h),i=v(h,"DIV",{class:!0});var E=x(i);n=v(E,"INPUT",{type:!0,name:!0,class:!0}),u=U(E),k=v(E,"INPUT",{type:!0,name:!0,class:!0}),y=U(E),m=v(E,"INPUT",{type:!0,name:!0,class:!0}),A=U(E),a=v(E,"INPUT",{type:!0,name:!0,class:!0}),p=U(E),g=v(E,"INPUT",{type:!0,name:!0,class:!0}),E.forEach(_),h.forEach(_),N=U(r),$=v(r,"DIV",{});var J=x($);s=v(J,"H1",{class:!0});var G=x(s);D=z(G,S),G.forEach(_),J.forEach(_),j=U(r),T=v(r,"TEXTAREA",{class:!0,placeholder:!0}),x(T).forEach(_),V=U(r),P=v(r,"BUTTON",{class:!0});var K=x(P);C=z(K,"Submit"),K.forEach(_),this.h()},h(){o(t,"class","text-3xl text-left mt-5 mb-5"),o(n,"type","radio"),o(n,"name","rating-2"),o(n,"class","mask mask-star-2 bg-orange-400"),n.checked=!0,n.value="1",o(k,"type","radio"),o(k,"name","rating-2"),o(k,"class","mask mask-star-2 bg-orange-400"),k.value="2",o(m,"type","radio"),o(m,"name","rating-2"),o(m,"class","mask mask-star-2 bg-orange-400"),m.value="3",o(a,"type","radio"),o(a,"name","rating-2"),o(a,"class","mask mask-star-2 bg-orange-400"),a.value="4",o(g,"type","radio"),o(g,"name","rating-2"),o(g,"class","mask mask-star-2 bg-orange-400"),g.value="5",o(i,"class","rating"),o(s,"class","text-5xl text-left mt-10 mb-5"),M(s,"text-red-500",f[1]),o(T,"class","textarea textarea-success w-full h-44 bg-slate-100 dark:text-white dark:bg-gray-900 border border-zinc-600"),o(T,"placeholder","Write Here"),o(P,"class","btn mt-2 mb-2")},m(r,h){w(r,e,h),c(e,t),c(t,l),c(e,d),c(e,i),c(i,n),c(i,u),c(i,k),c(i,y),c(i,m),c(i,A),c(i,a),c(i,p),c(i,g),w(r,N,h),w(r,$,h),c($,s),c(s,D),w(r,j,h),w(r,T,h),X(T,f[0]),w(r,V,h),w(r,P,h),c(P,C),O||(Y=[H(n,"click",f[6]),H(k,"click",f[7]),H(m,"click",f[8]),H(a,"click",f[9]),H(g,"click",f[10]),H(T,"input",f[11]),H(P,"click",f[5])],O=!0)},p(r,h){h&2&&S!==(S=(r[1]??"Write to Us!")+"")&&oe(D,S),h&2&&M(s,"text-red-500",r[1]),h&1&&X(T,r[0])},i:R,o:R,d(r){r&&_(e),r&&_(N),r&&_($),r&&_(j),r&&_(T),r&&_(V),r&&_(P),O=!1,ce(Y)}}}function he(f){let e,t;return{c(){e=b("div"),t=W("Your feedback means a lot to us, so thank you :)"),this.h()},l(l){e=v(l,"DIV",{class:!0});var d=x(e);t=z(d,"Your feedback means a lot to us, so thank you :)"),d.forEach(_),this.h()},h(){o(e,"class","h-[70vh] text-center flex justify-center items-center p-8 text-xl")},m(l,d){w(l,e,d),c(e,t)},p:R,i:R,o:R,d(l){l&&_(e)}}}function be(f){let e,t,l,d,i,n,u,k;t=new ue({});const y=[he,ke,de],m=[];function A(a,p){return a[2]?0:a[3]?1:2}return n=A(f),u=m[n]=y[n](f),{c(){e=b("div"),F(t.$$.fragment),l=I(),d=b("br"),i=I(),u.c()},l(a){e=v(a,"DIV",{});var p=x(e);Q(t.$$.fragment,p),l=U(p),d=v(p,"BR",{}),i=U(p),u.l(p),p.forEach(_)},m(a,p){w(a,e,p),Z(t,e,null),c(e,l),c(e,d),c(e,i),m[n].m(e,null),k=!0},p(a,[p]){let g=n;n=A(a),n===g?m[n].p(a,p):(ie(),B(m[g],1,1,()=>{m[g]=null}),re(),u=m[n],u?u.p(a,p):(u=m[n]=y[n](a),u.c()),L(u,1),u.m(e,null))},i(a){k||(L(t.$$.fragment,a),L(u),k=!0)},o(a){B(t.$$.fragment,a),B(u),k=!1},d(a){a&&_(e),ee(t),m[n].d()}}}function ve(f,e,t){let l;le(f,fe,s=>t(13,l=s));let d,i,n,u,k=!1;const y=s=>{d=s.target.value},m=async()=>{try{const s=await fetch(`${me}/feedback`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({feedback:i,rating:Number(d)})});s.status===401&&t(1,n="Setup wallet and sing up first"),s.status===200&&t(2,u=!0)}catch(s){t(1,n=s.message)}};ne(async()=>{t(3,[k]=await pe(),k)});const A=s=>{y(s)},a=s=>{y(s)},p=s=>{y(s)},g=s=>{y(s)},N=s=>{y(s)};function $(){i=this.value,t(0,i)}return[i,n,u,k,y,m,A,a,p,g,N,$]}class xe extends te{constructor(e){super(),ae(this,e,ve,be,se,{})}}export{xe as component}; diff --git a/build/app/immutable/nodes/4.557b3876.js b/build/app/immutable/nodes/4.b7bd329e.js similarity index 96% rename from build/app/immutable/nodes/4.557b3876.js rename to build/app/immutable/nodes/4.b7bd329e.js index a024e0871..04e7bad2e 100644 --- a/build/app/immutable/nodes/4.557b3876.js +++ b/build/app/immutable/nodes/4.b7bd329e.js @@ -1 +1 @@ -import{S as z,i as C,s as J,k as c,y as M,a as w,l as d,m as u,z as P,c as V,h as n,b as S,A as j,D as r,g as F,d as G,B as K,o as Q,q as W,r as x,n as f,J as O,H as Y,L as R}from"../chunks/index.83ca82d8.js";import{H as X}from"../chunks/Header.80bfed2a.js";import{o as H}from"../chunks/store.e259513c.js";function Z(k){let e,s,o,h,v,l,a,t,i,y,m,$,p,_,b,I,N;return{c(){e=c("div"),s=c("div"),o=c("h1"),h=W("Welcome to Netsepio"),v=w(),l=c("div"),a=c("a"),t=c("button"),i=W("New Wallet"),y=w(),m=c("div"),$=w(),p=c("a"),_=c("button"),b=W("Import Wallet"),this.h()},l(E){e=d(E,"DIV",{class:!0});var g=u(e);s=d(g,"DIV",{class:!0});var T=u(s);o=d(T,"H1",{class:!0});var A=u(o);h=x(A,"Welcome to Netsepio"),A.forEach(n),T.forEach(n),v=V(g),l=d(g,"DIV",{class:!0});var D=u(l);a=d(D,"A",{href:!0});var B=u(a);t=d(B,"BUTTON",{class:!0});var L=u(t);i=x(L,"New Wallet"),L.forEach(n),B.forEach(n),y=V(D),m=d(D,"DIV",{class:!0}),u(m).forEach(n),$=V(D),p=d(D,"A",{href:!0});var U=u(p);_=d(U,"BUTTON",{class:!0});var q=u(_);b=x(q,"Import Wallet"),q.forEach(n),U.forEach(n),D.forEach(n),g.forEach(n),this.h()},h(){f(o,"class","text-5xl text-center font-bold "),f(s,"class","mx-auto"),f(t,"class","btn btn-wide"),f(a,"href","/Onboarding/get-secret-key"),f(m,"class","divider mr-5 divider-white"),f(_,"class","btn btn-wide"),f(p,"href","/Onboarding/import-old-wallet"),f(l,"class","mt-10 grid place-content-center"),f(e,"class","mt-28")},m(E,g){S(E,e,g),r(e,s),r(s,o),r(o,h),r(e,v),r(e,l),r(l,a),r(a,t),r(t,i),r(l,y),r(l,m),r(l,$),r(l,p),r(p,_),r(_,b),I||(N=[O(a,"click",k[2]),O(p,"click",k[3])],I=!0)},p:Y,d(E){E&&n(e),I=!1,R(N)}}}function ee(k){let e,s,o,h,v,l,a,t,i,y,m,$,p;return{c(){e=c("div"),s=c("div"),o=c("h1"),h=W("You have already completed this 🤩"),v=w(),l=c("div"),a=c("a"),t=c("button"),i=W("See your profile"),y=w(),m=c("div"),this.h()},l(_){e=d(_,"DIV",{class:!0});var b=u(e);s=d(b,"DIV",{});var I=u(s);o=d(I,"H1",{class:!0});var N=u(o);h=x(N,"You have already completed this 🤩"),N.forEach(n),I.forEach(n),v=V(b),l=d(b,"DIV",{class:!0});var E=u(l);a=d(E,"A",{href:!0});var g=u(a);t=d(g,"BUTTON",{class:!0});var T=u(t);i=x(T,"See your profile"),T.forEach(n),g.forEach(n),y=V(E),m=d(E,"DIV",{class:!0}),u(m).forEach(n),E.forEach(n),b.forEach(n),this.h()},h(){f(o,"class","text-5xl text-left"),f(t,"class","btn btn-wide"),f(a,"href","/profile"),f(m,"class","divider mr-5 divider-white"),f(l,"class","mt-10"),f(e,"class","mt-28")},m(_,b){S(_,e,b),r(e,s),r(s,o),r(o,h),r(e,v),r(e,l),r(l,a),r(a,t),r(t,i),r(l,y),r(l,m),$||(p=O(a,"click",k[1]),$=!0)},p:Y,d(_){_&&n(e),$=!1,p()}}}function te(k){let e,s,o,h;s=new X({});function v(t,i){return t[0]<1&&t[0]!==null&&t[0]!==void 0?ee:Z}let l=v(k),a=l(k);return{c(){e=c("div"),M(s.$$.fragment),o=w(),a.c()},l(t){e=d(t,"DIV",{});var i=u(e);P(s.$$.fragment,i),o=V(i),a.l(i),i.forEach(n)},m(t,i){S(t,e,i),j(s,e,null),r(e,o),a.m(e,null),h=!0},p(t,[i]){l===(l=v(t))&&a?a.p(t,i):(a.d(1),a=l(t),a&&(a.c(),a.m(e,null)))},i(t){h||(F(s.$$.fragment,t),h=!0)},o(t){G(s.$$.fragment,t),h=!1},d(t){t&&n(e),K(s),a.d()}}}function ae(k,e,s){let o;return Q(()=>{H.subscribe(a=>s(0,o=a))}),[o,()=>H.set(-1),()=>H.set(2),()=>H.set(2)]}class oe extends z{constructor(e){super(),C(this,e,ae,te,J,{})}}export{oe as component}; +import{S as z,i as C,s as J,k as c,y as M,a as w,l as d,m as u,z as P,c as V,h as n,b as S,A as j,D as r,g as F,d as G,B as K,o as Q,q as W,r as x,n as f,J as O,H as Y,L as R}from"../chunks/index.f3b06f47.js";import{H as X}from"../chunks/Header.b7ab37a3.js";import{o as H}from"../chunks/store.26750aee.js";function Z(k){let e,s,o,h,v,l,a,t,i,y,m,$,p,_,b,I,N;return{c(){e=c("div"),s=c("div"),o=c("h1"),h=W("Welcome to Netsepio"),v=w(),l=c("div"),a=c("a"),t=c("button"),i=W("New Wallet"),y=w(),m=c("div"),$=w(),p=c("a"),_=c("button"),b=W("Import Wallet"),this.h()},l(E){e=d(E,"DIV",{class:!0});var g=u(e);s=d(g,"DIV",{class:!0});var T=u(s);o=d(T,"H1",{class:!0});var A=u(o);h=x(A,"Welcome to Netsepio"),A.forEach(n),T.forEach(n),v=V(g),l=d(g,"DIV",{class:!0});var D=u(l);a=d(D,"A",{href:!0});var B=u(a);t=d(B,"BUTTON",{class:!0});var L=u(t);i=x(L,"New Wallet"),L.forEach(n),B.forEach(n),y=V(D),m=d(D,"DIV",{class:!0}),u(m).forEach(n),$=V(D),p=d(D,"A",{href:!0});var U=u(p);_=d(U,"BUTTON",{class:!0});var q=u(_);b=x(q,"Import Wallet"),q.forEach(n),U.forEach(n),D.forEach(n),g.forEach(n),this.h()},h(){f(o,"class","text-5xl text-center font-bold "),f(s,"class","mx-auto"),f(t,"class","btn btn-wide"),f(a,"href","/Onboarding/get-secret-key"),f(m,"class","divider mr-5 divider-white"),f(_,"class","btn btn-wide"),f(p,"href","/Onboarding/import-old-wallet"),f(l,"class","mt-10 grid place-content-center"),f(e,"class","mt-28")},m(E,g){S(E,e,g),r(e,s),r(s,o),r(o,h),r(e,v),r(e,l),r(l,a),r(a,t),r(t,i),r(l,y),r(l,m),r(l,$),r(l,p),r(p,_),r(_,b),I||(N=[O(a,"click",k[2]),O(p,"click",k[3])],I=!0)},p:Y,d(E){E&&n(e),I=!1,R(N)}}}function ee(k){let e,s,o,h,v,l,a,t,i,y,m,$,p;return{c(){e=c("div"),s=c("div"),o=c("h1"),h=W("You have already completed this 🤩"),v=w(),l=c("div"),a=c("a"),t=c("button"),i=W("See your profile"),y=w(),m=c("div"),this.h()},l(_){e=d(_,"DIV",{class:!0});var b=u(e);s=d(b,"DIV",{});var I=u(s);o=d(I,"H1",{class:!0});var N=u(o);h=x(N,"You have already completed this 🤩"),N.forEach(n),I.forEach(n),v=V(b),l=d(b,"DIV",{class:!0});var E=u(l);a=d(E,"A",{href:!0});var g=u(a);t=d(g,"BUTTON",{class:!0});var T=u(t);i=x(T,"See your profile"),T.forEach(n),g.forEach(n),y=V(E),m=d(E,"DIV",{class:!0}),u(m).forEach(n),E.forEach(n),b.forEach(n),this.h()},h(){f(o,"class","text-5xl text-left"),f(t,"class","btn btn-wide"),f(a,"href","/profile"),f(m,"class","divider mr-5 divider-white"),f(l,"class","mt-10"),f(e,"class","mt-28")},m(_,b){S(_,e,b),r(e,s),r(s,o),r(o,h),r(e,v),r(e,l),r(l,a),r(a,t),r(t,i),r(l,y),r(l,m),$||(p=O(a,"click",k[1]),$=!0)},p:Y,d(_){_&&n(e),$=!1,p()}}}function te(k){let e,s,o,h;s=new X({});function v(t,i){return t[0]<1&&t[0]!==null&&t[0]!==void 0?ee:Z}let l=v(k),a=l(k);return{c(){e=c("div"),M(s.$$.fragment),o=w(),a.c()},l(t){e=d(t,"DIV",{});var i=u(e);P(s.$$.fragment,i),o=V(i),a.l(i),i.forEach(n)},m(t,i){S(t,e,i),j(s,e,null),r(e,o),a.m(e,null),h=!0},p(t,[i]){l===(l=v(t))&&a?a.p(t,i):(a.d(1),a=l(t),a&&(a.c(),a.m(e,null)))},i(t){h||(F(s.$$.fragment,t),h=!0)},o(t){G(s.$$.fragment,t),h=!1},d(t){t&&n(e),K(s),a.d()}}}function ae(k,e,s){let o;return Q(()=>{H.subscribe(a=>s(0,o=a))}),[o,()=>H.set(-1),()=>H.set(2),()=>H.set(2)]}class oe extends z{constructor(e){super(),C(this,e,ae,te,J,{})}}export{oe as component}; diff --git a/build/app/immutable/nodes/5.980f4279.js b/build/app/immutable/nodes/5.2e37ee17.js similarity index 98% rename from build/app/immutable/nodes/5.980f4279.js rename to build/app/immutable/nodes/5.2e37ee17.js index 2bd87a501..f1b8dcd9e 100644 --- a/build/app/immutable/nodes/5.980f4279.js +++ b/build/app/immutable/nodes/5.2e37ee17.js @@ -1,4 +1,4 @@ -import{S as _e,i as Ee,s as je,k as w,y as ze,a as A,q as B,l as v,m as k,z as Ae,c as U,r as H,h as g,n as x,K as me,b as ye,A as Ue,D as u,J as te,g as qe,d as Be,B as He,W as Te,L as Le,u as Ce}from"../chunks/index.83ca82d8.js";import{p as Ie,b as $e,w as De,m as Ve,o as Pe}from"../chunks/store.e259513c.js";import{H as Se}from"../chunks/Header.80bfed2a.js";import{u as W,A as Ge}from"../chunks/index.045ff416.js";function oe(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function Ke(e){if(typeof e!="boolean")throw new Error(`Expected boolean, not ${e}`)}function we(e,...t){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function Ne(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");oe(e.outputLen),oe(e.blockLen)}function se(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function ve(e,t){we(e);const r=t.outputLen;if(e.lengthe instanceof Uint8Array,ae=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),z=(e,t)=>e<<32-t|e>>>t,Re=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!Re)throw new Error("Non little-endian hardware is not supported");function Me(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function xe(e){if(typeof e=="string"&&(e=Me(e)),!Fe(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}class Oe{clone(){return this._cloneInto()}}function Je(e){const t=a=>e().update(xe(a)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function Qe(e=32){if(re&&typeof re.getRandomValues=="function")return re.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}function Xe(e,t,r,a){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,a);const o=BigInt(32),l=BigInt(4294967295),n=Number(r>>o&l),i=Number(r&l),c=a?4:0,f=a?0:4;e.setUint32(t+c,n,a),e.setUint32(t+f,i,a)}class Ye extends Oe{constructor(t,r,a,o){super(),this.blockLen=t,this.outputLen=r,this.padOffset=a,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=ae(this.buffer)}update(t){se(this);const{view:r,buffer:a,blockLen:o}=this;t=xe(t);const l=t.length;for(let n=0;no-n&&(this.process(a,0),n=0);for(let s=n;sb.length)throw new Error("_sha2: outputLen bigger than state");for(let s=0;se&t^~e&r,et=(e,t,r)=>e&t^e&r^t&r,tt=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]),L=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),C=new Uint32Array(64);class rt extends Ye{constructor(){super(64,32,8,!1),this.A=L[0]|0,this.B=L[1]|0,this.C=L[2]|0,this.D=L[3]|0,this.E=L[4]|0,this.F=L[5]|0,this.G=L[6]|0,this.H=L[7]|0}get(){const{A:t,B:r,C:a,D:o,E:l,F:n,G:i,H:c}=this;return[t,r,a,o,l,n,i,c]}set(t,r,a,o,l,n,i,c){this.A=t|0,this.B=r|0,this.C=a|0,this.D=o|0,this.E=l|0,this.F=n|0,this.G=i|0,this.H=c|0}process(t,r){for(let s=0;s<16;s++,r+=4)C[s]=t.getUint32(r,!1);for(let s=16;s<64;s++){const d=C[s-15],m=C[s-2],_=z(d,7)^z(d,18)^d>>>3,q=z(m,17)^z(m,19)^m>>>10;C[s]=q+C[s-7]+_+C[s-16]|0}let{A:a,B:o,C:l,D:n,E:i,F:c,G:f,H:b}=this;for(let s=0;s<64;s++){const d=z(i,6)^z(i,11)^z(i,25),m=b+d+Ze(i,c,f)+tt[s]+C[s]|0,q=(z(a,2)^z(a,13)^z(a,22))+et(a,o,l)|0;b=f,f=c,c=i,i=n+m|0,n=l,l=o,o=a,a=m+q|0}a=a+this.A|0,o=o+this.B|0,l=l+this.C|0,n=n+this.D|0,i=i+this.E|0,c=c+this.F|0,f=f+this.G|0,b=b+this.H|0,this.set(a,o,l,n,i,c,f,b)}roundClean(){C.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const at=Je(()=>new rt),ot=e=>e[0]==="あいこくしん";function st(e){ke.bytes(e,16,20,24,28,32)}function nt(e,t=128){if(ke.number(t),t%32!==0||t>256)throw new TypeError("Invalid entropy");return ct(Qe(t/8),e)}const it=e=>{const t=8-e.length/4;return new Uint8Array([at(e)[0]>>t<{if(typeof t!="string")throw new Error(`Wordlist: non-string element: ${t}`)}),W.chain(W.checksum(1,it),W.radix2(11,!0),W.alphabet(e))}function ct(e,t){return st(e),lt(t).encode(e).join(ot(t)?" ":" ")}const ut=`abandon +import{S as _e,i as Ee,s as je,k as w,y as ze,a as A,q as B,l as v,m as k,z as Ae,c as U,r as H,h as g,n as x,K as me,b as ye,A as Ue,D as u,J as te,g as qe,d as Be,B as He,V as Te,L as Le,u as Ce}from"../chunks/index.f3b06f47.js";import{p as Ie,b as $e,w as De,m as Ve,o as Pe}from"../chunks/store.26750aee.js";import{H as Se}from"../chunks/Header.b7ab37a3.js";import{u as W,A as Ge}from"../chunks/index.ec3c65db.js";function oe(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function Ke(e){if(typeof e!="boolean")throw new Error(`Expected boolean, not ${e}`)}function we(e,...t){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function Ne(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");oe(e.outputLen),oe(e.blockLen)}function se(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function ve(e,t){we(e);const r=t.outputLen;if(e.lengthe instanceof Uint8Array,ae=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),z=(e,t)=>e<<32-t|e>>>t,Re=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!Re)throw new Error("Non little-endian hardware is not supported");function Me(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function xe(e){if(typeof e=="string"&&(e=Me(e)),!Fe(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}class Oe{clone(){return this._cloneInto()}}function Je(e){const t=a=>e().update(xe(a)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function Qe(e=32){if(re&&typeof re.getRandomValues=="function")return re.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}function Xe(e,t,r,a){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,a);const o=BigInt(32),l=BigInt(4294967295),n=Number(r>>o&l),i=Number(r&l),c=a?4:0,f=a?0:4;e.setUint32(t+c,n,a),e.setUint32(t+f,i,a)}class Ye extends Oe{constructor(t,r,a,o){super(),this.blockLen=t,this.outputLen=r,this.padOffset=a,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=ae(this.buffer)}update(t){se(this);const{view:r,buffer:a,blockLen:o}=this;t=xe(t);const l=t.length;for(let n=0;no-n&&(this.process(a,0),n=0);for(let s=n;sb.length)throw new Error("_sha2: outputLen bigger than state");for(let s=0;se&t^~e&r,et=(e,t,r)=>e&t^e&r^t&r,tt=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]),L=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),C=new Uint32Array(64);class rt extends Ye{constructor(){super(64,32,8,!1),this.A=L[0]|0,this.B=L[1]|0,this.C=L[2]|0,this.D=L[3]|0,this.E=L[4]|0,this.F=L[5]|0,this.G=L[6]|0,this.H=L[7]|0}get(){const{A:t,B:r,C:a,D:o,E:l,F:n,G:i,H:c}=this;return[t,r,a,o,l,n,i,c]}set(t,r,a,o,l,n,i,c){this.A=t|0,this.B=r|0,this.C=a|0,this.D=o|0,this.E=l|0,this.F=n|0,this.G=i|0,this.H=c|0}process(t,r){for(let s=0;s<16;s++,r+=4)C[s]=t.getUint32(r,!1);for(let s=16;s<64;s++){const d=C[s-15],m=C[s-2],_=z(d,7)^z(d,18)^d>>>3,q=z(m,17)^z(m,19)^m>>>10;C[s]=q+C[s-7]+_+C[s-16]|0}let{A:a,B:o,C:l,D:n,E:i,F:c,G:f,H:b}=this;for(let s=0;s<64;s++){const d=z(i,6)^z(i,11)^z(i,25),m=b+d+Ze(i,c,f)+tt[s]+C[s]|0,q=(z(a,2)^z(a,13)^z(a,22))+et(a,o,l)|0;b=f,f=c,c=i,i=n+m|0,n=l,l=o,o=a,a=m+q|0}a=a+this.A|0,o=o+this.B|0,l=l+this.C|0,n=n+this.D|0,i=i+this.E|0,c=c+this.F|0,f=f+this.G|0,b=b+this.H|0,this.set(a,o,l,n,i,c,f,b)}roundClean(){C.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const at=Je(()=>new rt),ot=e=>e[0]==="あいこくしん";function st(e){ke.bytes(e,16,20,24,28,32)}function nt(e,t=128){if(ke.number(t),t%32!==0||t>256)throw new TypeError("Invalid entropy");return ct(Qe(t/8),e)}const it=e=>{const t=8-e.length/4;return new Uint8Array([at(e)[0]>>t<{if(typeof t!="string")throw new Error(`Wordlist: non-string element: ${t}`)}),W.chain(W.checksum(1,it),W.radix2(11,!0),W.alphabet(e))}function ct(e,t){return st(e),lt(t).encode(e).join(ot(t)?" ":" ")}const ut=`abandon ability able about diff --git a/build/app/immutable/nodes/6.04deffbc.js b/build/app/immutable/nodes/6.84af78c8.js similarity index 80% rename from build/app/immutable/nodes/6.04deffbc.js rename to build/app/immutable/nodes/6.84af78c8.js index 684574e83..24c76b93e 100644 --- a/build/app/immutable/nodes/6.04deffbc.js +++ b/build/app/immutable/nodes/6.84af78c8.js @@ -1,3 +1,3 @@ -import{S as vt,i as _t,s as pt,k as l,y as bt,a as v,q as P,l as s,m as n,z as mt,c as _,r as D,h as t,n as r,K as ye,b as x,A as wt,D as e,P as ge,J as se,u as Fe,g as Et,d as kt,B as yt,L as gt,H as Je}from"../chunks/index.83ca82d8.js";import{a as xt,s as It,b as Pt}from"../chunks/functionsForLogin.e1c9cab8.js";import{H as Dt}from"../chunks/Header.80bfed2a.js";import{e as Tt}from"../chunks/secondAuth.d664856c.js";import{o as Vt,j as Bt}from"../chunks/store.e259513c.js";function Nt(p){let o,c;return{c(){o=l("button"),c=P("Confirm"),this.h()},l(d){o=s(d,"BUTTON",{class:!0});var a=n(o);c=D(a,"Confirm"),a.forEach(t),this.h()},h(){o.disabled=!0,r(o,"class","btn btn-wide block mx-auto")},m(d,a){x(d,o,a),e(o,c)},p:Je,d(d){d&&t(o)}}}function Ct(p){let o,c,d,a;return{c(){o=l("button"),c=P("Confirm"),this.h()},l(f){o=s(f,"BUTTON",{class:!0});var m=n(o);c=D(m,"Confirm"),m.forEach(t),this.h()},h(){r(o,"class","btn btn-wide block mx-auto")},m(f,m){x(f,o,m),e(o,c),d||(a=se(o,"click",p[7]),d=!0)},p:Je,d(f){f&&t(o),d=!1,a()}}}function St(p){let o,c,d,a,f,m,N,k,I,C,w,T,E,V,Y;return{c(){o=l("h1"),c=P("Lets go 🚀!"),d=v(),a=l("br"),f=v(),m=l("p"),N=P("You are all set ✅"),k=v(),I=l("br"),C=v(),w=l("div"),T=l("div"),E=l("a"),V=l("button"),Y=P("Dashboard"),this.h()},l(i){o=s(i,"H1",{class:!0});var b=n(o);c=D(b,"Lets go 🚀!"),b.forEach(t),d=_(i),a=s(i,"BR",{}),f=_(i),m=s(i,"P",{class:!0});var R=n(m);N=D(R,"You are all set ✅"),R.forEach(t),k=_(i),I=s(i,"BR",{}),C=_(i),w=s(i,"DIV",{class:!0});var g=n(w);T=s(g,"DIV",{class:!0});var j=n(T);E=s(j,"A",{href:!0,class:!0});var U=n(E);V=s(U,"BUTTON",{class:!0});var O=n(V);Y=D(O,"Dashboard"),O.forEach(t),U.forEach(t),j.forEach(t),g.forEach(t),this.h()},h(){r(o,"class","text-5xl text-left mb-2"),r(m,"class","text-lg text-left text-green-500"),r(V,"class","btn w-full h-full"),r(E,"href","/"),r(E,"class","btn mt-5 p-0"),r(T,"class","grid flex-grow"),r(w,"class","flex w-full mt-2")},m(i,b){x(i,o,b),e(o,c),x(i,d,b),x(i,a,b),x(i,f,b),x(i,m,b),e(m,N),x(i,k,b),x(i,I,b),x(i,C,b),x(i,w,b),e(w,T),e(T,E),e(E,V),e(V,Y)},p:Je,d(i){i&&t(o),i&&t(d),i&&t(a),i&&t(f),i&&t(m),i&&t(k),i&&t(I),i&&t(C),i&&t(w)}}}function Ht(p){let o,c,d,a,f,m,N,k,I,C,w,T,E,V,Y,i,b,R,g,j,U,O;return{c(){o=l("h1"),c=P("Unable to sign-in ☹️!"),d=v(),a=l("br"),f=v(),m=l("p"),N=P(p[2]),k=v(),I=l("br"),C=v(),w=l("div"),T=l("div"),E=l("a"),V=P("Try later"),Y=v(),i=l("div"),b=v(),R=l("div"),g=l("button"),j=P("Retry"),this.h()},l(u){o=s(u,"H1",{class:!0});var S=n(o);c=D(S,"Unable to sign-in ☹️!"),S.forEach(t),d=_(u),a=s(u,"BR",{}),f=_(u),m=s(u,"P",{class:!0});var L=n(m);N=D(L,p[2]),L.forEach(t),k=_(u),I=s(u,"BR",{}),C=_(u),w=s(u,"DIV",{class:!0});var q=n(w);T=s(q,"DIV",{class:!0});var G=n(T);E=s(G,"A",{href:!0,class:!0});var re=n(E);V=D(re,"Try later"),re.forEach(t),G.forEach(t),Y=_(q),i=s(q,"DIV",{class:!0}),n(i).forEach(t),b=_(q),R=s(q,"DIV",{class:!0});var W=n(R);g=s(W,"BUTTON",{class:!0});var M=n(g);j=D(M,"Retry"),M.forEach(t),W.forEach(t),q.forEach(t),this.h()},h(){r(o,"class","text-3xl text-center mb-2"),r(m,"class","text-lg text-left text-red-500"),r(E,"href","/"),r(E,"class","btn w-full h-full"),r(T,"class","grid flex-grow"),r(i,"class","divider divider-horizontal"),r(g,"class","btn w-full h-full"),r(R,"class","grid flex-grow"),r(w,"class","flex w-full mt-2")},m(u,S){x(u,o,S),e(o,c),x(u,d,S),x(u,a,S),x(u,f,S),x(u,m,S),e(m,N),x(u,k,S),x(u,I,S),x(u,C,S),x(u,w,S),e(w,T),e(T,E),e(E,V),e(w,Y),e(w,i),e(w,b),e(w,R),e(R,g),e(g,j),U||(O=se(g,"click",p[13]),U=!0)},p(u,S){S&4&&Fe(N,u[2])},d(u){u&&t(o),u&&t(d),u&&t(a),u&&t(f),u&&t(m),u&&t(k),u&&t(I),u&&t(C),u&&t(w),U=!1,O()}}}function Rt(p){var Xe,Ze;let o,c,d,a,f,m,N,k,I=(p[2]!==""?p[2]:"You will use this to unlock your wallet")+"",C,w,T,E,V,Y,i,b,R,g,j,U,O,u,S,L,q,G,re,W,M,$,xe,ae,Ie,Pe,Q,De,_e,X,H,oe,Te,Ve,Be,Ne,ne,Ce,Se,He,Re,ie,fe=`${(Ze=(Xe=p[5])==null?void 0:Xe.payload)==null?void 0:Ze.eula}`??"...",pe,Ue,Ae,Ye,F,ce,ee,Le,Oe,he,Me,ue,te,ze,Ke,Z,le,J,je,We;c=new Dt({});function Ge(h,B){return h[4]?Ct:Nt}let be=Ge(p),z=be(p);function Qe(h,B){return h[2].length>0?Ht:St}let me=Qe(p),K=me(p);return{c(){o=l("div"),bt(c.$$.fragment),d=v(),a=l("div"),f=l("h1"),m=P("Create Your Password"),N=v(),k=l("h1"),C=P(I),T=v(),E=l("div"),V=l("h2"),Y=P("New Password"),i=v(),b=l("input"),R=v(),g=l("br"),j=v(),U=l("div"),O=l("h2"),u=P("Confirm Password"),S=v(),L=l("input"),q=v(),G=l("div"),re=v(),W=l("div"),M=l("label"),$=l("span"),xe=P(`I agree to the\r - `),ae=l("span"),Ie=P("Terms of Service"),Pe=v(),Q=l("input"),De=v(),z.c(),_e=v(),X=l("div"),H=l("div"),oe=l("h1"),Te=P("You are signing!"),Ve=v(),Be=l("br"),Ne=v(),ne=l("h2"),Ce=P("Message"),Se=v(),He=l("br"),Re=v(),ie=l("p"),pe=P(fe),Ue=v(),Ae=l("br"),Ye=v(),F=l("div"),ce=l("div"),ee=l("button"),Le=P("CANCEL"),Oe=v(),he=l("div"),Me=v(),ue=l("div"),te=l("button"),ze=P("Sign"),Ke=v(),Z=l("div"),le=l("div"),K.c(),this.h()},l(h){o=s(h,"DIV",{});var B=n(o);mt(c.$$.fragment,B),d=_(B),a=s(B,"DIV",{class:!0});var y=n(a);f=s(y,"H1",{class:!0});var ve=n(f);m=D(ve,"Create Your Password"),ve.forEach(t),N=_(y),k=s(y,"H1",{class:!0});var $e=n(k);C=D($e,I),$e.forEach(t),T=_(y),E=s(y,"DIV",{});var we=n(E);V=s(we,"H2",{class:!0});var et=n(V);Y=D(et,"New Password"),et.forEach(t),i=_(we),b=s(we,"INPUT",{type:!0,class:!0,placeholder:!0}),we.forEach(t),R=_(y),g=s(y,"BR",{}),j=_(y),U=s(y,"DIV",{});var Ee=n(U);O=s(Ee,"H2",{class:!0});var tt=n(O);u=D(tt,"Confirm Password"),tt.forEach(t),S=_(Ee),L=s(Ee,"INPUT",{type:!0,class:!0,placeholder:!0}),Ee.forEach(t),q=_(y),G=s(y,"DIV",{class:!0}),n(G).forEach(t),re=_(y),W=s(y,"DIV",{class:!0});var lt=n(W);M=s(lt,"LABEL",{class:!0});var ke=n(M);$=s(ke,"SPAN",{class:!0});var qe=n($);xe=D(qe,`I agree to the\r - `),ae=s(qe,"SPAN",{class:!0});var st=n(ae);Ie=D(st,"Terms of Service"),st.forEach(t),qe.forEach(t),Pe=_(ke),Q=s(ke,"INPUT",{type:!0,class:!0}),ke.forEach(t),lt.forEach(t),De=_(y),z.l(y),_e=_(y),X=s(y,"DIV",{class:!0});var rt=n(X);H=s(rt,"DIV",{class:!0});var A=n(H);oe=s(A,"H1",{class:!0});var at=n(oe);Te=D(at,"You are signing!"),at.forEach(t),Ve=_(A),Be=s(A,"BR",{}),Ne=_(A),ne=s(A,"H2",{class:!0});var ot=n(ne);Ce=D(ot,"Message"),ot.forEach(t),Se=_(A),He=s(A,"BR",{}),Re=_(A),ie=s(A,"P",{class:!0});var nt=n(ie);pe=D(nt,fe),nt.forEach(t),Ue=_(A),Ae=s(A,"BR",{}),Ye=_(A),F=s(A,"DIV",{class:!0});var de=n(F);ce=s(de,"DIV",{class:!0});var it=n(ce);ee=s(it,"BUTTON",{class:!0});var ct=n(ee);Le=D(ct,"CANCEL"),ct.forEach(t),it.forEach(t),Oe=_(de),he=s(de,"DIV",{class:!0}),n(he).forEach(t),Me=_(de),ue=s(de,"DIV",{class:!0});var ut=n(ue);te=s(ut,"BUTTON",{class:!0});var dt=n(te);ze=D(dt,"Sign"),dt.forEach(t),ut.forEach(t),de.forEach(t),A.forEach(t),rt.forEach(t),Ke=_(y),Z=s(y,"DIV",{class:!0});var ft=n(Z);le=s(ft,"DIV",{class:!0});var ht=n(le);K.l(ht),ht.forEach(t),ft.forEach(t),y.forEach(t),B.forEach(t),this.h()},h(){r(f,"class","text-3xl text-center my-3 font-bold"),r(k,"class",w=`text-lg text-center mb-3 ${p[2]!==""?"text-red-500":""}`),r(V,"class","text-xl text-left mt-3 mb-1"),r(b,"type","password"),r(b,"class","input input-bordered w-full dark:bg-gray-800 dark:text-white"),r(b,"placeholder","New Password"),r(O,"class","text-xl text-left mt-3 mb-1"),r(L,"type","password"),r(L,"class","input input-bordered w-full dark:bg-gray-800 dark:text-white"),r(L,"placeholder","Confirm Password"),r(G,"class","divider"),r(ae,"class","text-lime-700"),r($,"class","label-text dark:text-white"),r(Q,"type","checkbox"),r(Q,"class","checkbox"),Q.checked=p[4],r(M,"class","label cursor-pointer"),r(W,"class","form-control"),r(oe,"class","text-3xl text-center font-bold mb-2"),r(ne,"class","text-xl text-center"),r(ie,"class","text-lg text-center dark:text-green-100"),r(ee,"class","btn mt-5"),r(ce,"class","grid flex-grow"),r(he,"class","divider divider-horizontal"),r(te,"class","btn w-full mt-5"),r(ue,"class","grid flex-grow"),r(F,"class","flex w-full mt-2"),r(H,"class","modal-box dark:bg-gray-800 dark:text-white"),r(X,"class","modal"),ye(X,"modal-open",p[3]),r(le,"class","modal-box dark:bg-gray-800 dark:text-white"),r(Z,"class","modal"),ye(Z,"modal-open",p[6]),r(a,"class","mt-6 w-4/5 mx-auto")},m(h,B){x(h,o,B),wt(c,o,null),e(o,d),e(o,a),e(a,f),e(f,m),e(a,N),e(a,k),e(k,C),e(a,T),e(a,E),e(E,V),e(V,Y),e(E,i),e(E,b),ge(b,p[0]),e(a,R),e(a,g),e(a,j),e(a,U),e(U,O),e(O,u),e(U,S),e(U,L),ge(L,p[1]),e(a,q),e(a,G),e(a,re),e(a,W),e(W,M),e(M,$),e($,xe),e($,ae),e(ae,Ie),e(M,Pe),e(M,Q),e(a,De),z.m(a,null),e(a,_e),e(a,X),e(X,H),e(H,oe),e(oe,Te),e(H,Ve),e(H,Be),e(H,Ne),e(H,ne),e(ne,Ce),e(H,Se),e(H,He),e(H,Re),e(H,ie),e(ie,pe),e(H,Ue),e(H,Ae),e(H,Ye),e(H,F),e(F,ce),e(ce,ee),e(ee,Le),e(F,Oe),e(F,he),e(F,Me),e(F,ue),e(ue,te),e(te,ze),e(a,Ke),e(a,Z),e(Z,le),K.m(le,null),J=!0,je||(We=[se(b,"input",p[9]),se(L,"input",p[10]),se(Q,"change",p[11]),se(ee,"click",p[12]),se(te,"click",p[8])],je=!0)},p(h,[B]){var y,ve;(!J||B&4)&&I!==(I=(h[2]!==""?h[2]:"You will use this to unlock your wallet")+"")&&Fe(C,I),(!J||B&4&&w!==(w=`text-lg text-center mb-3 ${h[2]!==""?"text-red-500":""}`))&&r(k,"class",w),B&1&&b.value!==h[0]&&ge(b,h[0]),B&2&&L.value!==h[1]&&ge(L,h[1]),(!J||B&16)&&(Q.checked=h[4]),be===(be=Ge(h))&&z?z.p(h,B):(z.d(1),z=be(h),z&&(z.c(),z.m(a,_e))),(!J||B&32)&&fe!==(fe=`${(ve=(y=h[5])==null?void 0:y.payload)==null?void 0:ve.eula}`??"...")&&Fe(pe,fe),(!J||B&8)&&ye(X,"modal-open",h[3]),me===(me=Qe(h))&&K?K.p(h,B):(K.d(1),K=me(h),K&&(K.c(),K.m(le,null))),(!J||B&64)&&ye(Z,"modal-open",h[6])},i(h){J||(Et(c.$$.fragment,h),J=!0)},o(h){kt(c.$$.fragment,h),J=!1},d(h){h&&t(o),yt(c),z.d(),K.d(),je=!1,gt(We)}}}function Ut(p,o,c){let d="",a="",f="",m,N=!1,k=!0,I,C=!1;async function w(){try{const g=await It(I.payload);m=await Pt(I.payload.flowId,g==null?void 0:g.signature,g==null?void 0:g.pubKey),await Tt(d),Bt.set(m.payload.token),c(3,N=!0)}catch{c(2,f="Something went wrong"),console.error(f)}}const T=async()=>{d===a&&d!==""&&d.length>=6&&k?(c(2,f=""),c(3,N=!0)):d.length<6?c(2,f="Password has to be at least 6 characters long"):k?c(2,f="Passwords are not matching"):c(2,f="You need to accept the terms and conditions"),c(5,I=await xt())},E=async()=>{await w(),f.length<1&&Vt.set(0),c(6,C=!0)};function V(){d=this.value,c(0,d)}function Y(){a=this.value,c(1,a)}return[d,a,f,N,k,I,C,T,E,V,Y,()=>c(4,k=!k),()=>c(3,N=!1),()=>{c(3,N=!1),c(6,C=!1)}]}class zt extends vt{constructor(o){super(),_t(this,o,Ut,Rt,pt,{})}}export{zt as component}; +import{S as vt,i as _t,s as pt,k as l,y as bt,a as v,q as P,l as s,m as n,z as mt,c as _,r as D,h as t,n as r,K as ye,b as x,A as wt,D as e,Q as ge,J as se,u as Fe,g as Et,d as kt,B as yt,L as gt,H as Je}from"../chunks/index.f3b06f47.js";import{a as xt,s as It,b as Pt}from"../chunks/functionsForLogin.1a2a5d01.js";import{H as Dt}from"../chunks/Header.b7ab37a3.js";import{e as Tt}from"../chunks/secondAuth.f9ee4b2a.js";import{o as Vt,j as Bt}from"../chunks/store.26750aee.js";function Nt(p){let o,c;return{c(){o=l("button"),c=P("Confirm"),this.h()},l(d){o=s(d,"BUTTON",{class:!0});var a=n(o);c=D(a,"Confirm"),a.forEach(t),this.h()},h(){o.disabled=!0,r(o,"class","btn btn-wide block mx-auto")},m(d,a){x(d,o,a),e(o,c)},p:Je,d(d){d&&t(o)}}}function Ct(p){let o,c,d,a;return{c(){o=l("button"),c=P("Confirm"),this.h()},l(f){o=s(f,"BUTTON",{class:!0});var m=n(o);c=D(m,"Confirm"),m.forEach(t),this.h()},h(){r(o,"class","btn btn-wide block mx-auto")},m(f,m){x(f,o,m),e(o,c),d||(a=se(o,"click",p[7]),d=!0)},p:Je,d(f){f&&t(o),d=!1,a()}}}function St(p){let o,c,d,a,f,m,N,k,I,C,w,T,E,V,Y;return{c(){o=l("h1"),c=P("Lets go 🚀!"),d=v(),a=l("br"),f=v(),m=l("p"),N=P("You are all set ✅"),k=v(),I=l("br"),C=v(),w=l("div"),T=l("div"),E=l("a"),V=l("button"),Y=P("Dashboard"),this.h()},l(i){o=s(i,"H1",{class:!0});var b=n(o);c=D(b,"Lets go 🚀!"),b.forEach(t),d=_(i),a=s(i,"BR",{}),f=_(i),m=s(i,"P",{class:!0});var R=n(m);N=D(R,"You are all set ✅"),R.forEach(t),k=_(i),I=s(i,"BR",{}),C=_(i),w=s(i,"DIV",{class:!0});var g=n(w);T=s(g,"DIV",{class:!0});var j=n(T);E=s(j,"A",{href:!0,class:!0});var U=n(E);V=s(U,"BUTTON",{class:!0});var O=n(V);Y=D(O,"Dashboard"),O.forEach(t),U.forEach(t),j.forEach(t),g.forEach(t),this.h()},h(){r(o,"class","text-5xl text-left mb-2"),r(m,"class","text-lg text-left text-green-500"),r(V,"class","btn w-full h-full"),r(E,"href","/"),r(E,"class","btn mt-5 p-0"),r(T,"class","grid flex-grow"),r(w,"class","flex w-full mt-2")},m(i,b){x(i,o,b),e(o,c),x(i,d,b),x(i,a,b),x(i,f,b),x(i,m,b),e(m,N),x(i,k,b),x(i,I,b),x(i,C,b),x(i,w,b),e(w,T),e(T,E),e(E,V),e(V,Y)},p:Je,d(i){i&&t(o),i&&t(d),i&&t(a),i&&t(f),i&&t(m),i&&t(k),i&&t(I),i&&t(C),i&&t(w)}}}function Ht(p){let o,c,d,a,f,m,N,k,I,C,w,T,E,V,Y,i,b,R,g,j,U,O;return{c(){o=l("h1"),c=P("Unable to sign-in ☹️!"),d=v(),a=l("br"),f=v(),m=l("p"),N=P(p[2]),k=v(),I=l("br"),C=v(),w=l("div"),T=l("div"),E=l("a"),V=P("Try later"),Y=v(),i=l("div"),b=v(),R=l("div"),g=l("button"),j=P("Retry"),this.h()},l(u){o=s(u,"H1",{class:!0});var S=n(o);c=D(S,"Unable to sign-in ☹️!"),S.forEach(t),d=_(u),a=s(u,"BR",{}),f=_(u),m=s(u,"P",{class:!0});var L=n(m);N=D(L,p[2]),L.forEach(t),k=_(u),I=s(u,"BR",{}),C=_(u),w=s(u,"DIV",{class:!0});var q=n(w);T=s(q,"DIV",{class:!0});var W=n(T);E=s(W,"A",{href:!0,class:!0});var re=n(E);V=D(re,"Try later"),re.forEach(t),W.forEach(t),Y=_(q),i=s(q,"DIV",{class:!0}),n(i).forEach(t),b=_(q),R=s(q,"DIV",{class:!0});var Q=n(R);g=s(Q,"BUTTON",{class:!0});var M=n(g);j=D(M,"Retry"),M.forEach(t),Q.forEach(t),q.forEach(t),this.h()},h(){r(o,"class","text-3xl text-center mb-2"),r(m,"class","text-lg text-left text-red-500"),r(E,"href","/"),r(E,"class","btn w-full h-full"),r(T,"class","grid flex-grow"),r(i,"class","divider divider-horizontal"),r(g,"class","btn w-full h-full"),r(R,"class","grid flex-grow"),r(w,"class","flex w-full mt-2")},m(u,S){x(u,o,S),e(o,c),x(u,d,S),x(u,a,S),x(u,f,S),x(u,m,S),e(m,N),x(u,k,S),x(u,I,S),x(u,C,S),x(u,w,S),e(w,T),e(T,E),e(E,V),e(w,Y),e(w,i),e(w,b),e(w,R),e(R,g),e(g,j),U||(O=se(g,"click",p[13]),U=!0)},p(u,S){S&4&&Fe(N,u[2])},d(u){u&&t(o),u&&t(d),u&&t(a),u&&t(f),u&&t(m),u&&t(k),u&&t(I),u&&t(C),u&&t(w),U=!1,O()}}}function Rt(p){var Xe,Ze;let o,c,d,a,f,m,N,k,I=(p[2]!==""?p[2]:"You will use this to unlock your wallet")+"",C,w,T,E,V,Y,i,b,R,g,j,U,O,u,S,L,q,W,re,Q,M,$,xe,ae,Ie,Pe,G,De,_e,X,H,oe,Te,Ve,Be,Ne,ne,Ce,Se,He,Re,ie,fe=`${(Ze=(Xe=p[5])==null?void 0:Xe.payload)==null?void 0:Ze.eula}`??"...",pe,Ue,Ae,Ye,F,ce,ee,Le,Oe,he,Me,ue,te,ze,Ke,Z,le,J,je,Qe;c=new Dt({});function We(h,B){return h[4]?Ct:Nt}let be=We(p),z=be(p);function Ge(h,B){return h[2].length>0?Ht:St}let me=Ge(p),K=me(p);return{c(){o=l("div"),bt(c.$$.fragment),d=v(),a=l("div"),f=l("h1"),m=P("Create Your Password"),N=v(),k=l("h1"),C=P(I),T=v(),E=l("div"),V=l("h2"),Y=P("New Password"),i=v(),b=l("input"),R=v(),g=l("br"),j=v(),U=l("div"),O=l("h2"),u=P("Confirm Password"),S=v(),L=l("input"),q=v(),W=l("div"),re=v(),Q=l("div"),M=l("label"),$=l("span"),xe=P(`I agree to the\r + `),ae=l("span"),Ie=P("Terms of Service"),Pe=v(),G=l("input"),De=v(),z.c(),_e=v(),X=l("div"),H=l("div"),oe=l("h1"),Te=P("You are signing!"),Ve=v(),Be=l("br"),Ne=v(),ne=l("h2"),Ce=P("Message"),Se=v(),He=l("br"),Re=v(),ie=l("p"),pe=P(fe),Ue=v(),Ae=l("br"),Ye=v(),F=l("div"),ce=l("div"),ee=l("button"),Le=P("CANCEL"),Oe=v(),he=l("div"),Me=v(),ue=l("div"),te=l("button"),ze=P("Sign"),Ke=v(),Z=l("div"),le=l("div"),K.c(),this.h()},l(h){o=s(h,"DIV",{});var B=n(o);mt(c.$$.fragment,B),d=_(B),a=s(B,"DIV",{class:!0});var y=n(a);f=s(y,"H1",{class:!0});var ve=n(f);m=D(ve,"Create Your Password"),ve.forEach(t),N=_(y),k=s(y,"H1",{class:!0});var $e=n(k);C=D($e,I),$e.forEach(t),T=_(y),E=s(y,"DIV",{});var we=n(E);V=s(we,"H2",{class:!0});var et=n(V);Y=D(et,"New Password"),et.forEach(t),i=_(we),b=s(we,"INPUT",{type:!0,class:!0,placeholder:!0}),we.forEach(t),R=_(y),g=s(y,"BR",{}),j=_(y),U=s(y,"DIV",{});var Ee=n(U);O=s(Ee,"H2",{class:!0});var tt=n(O);u=D(tt,"Confirm Password"),tt.forEach(t),S=_(Ee),L=s(Ee,"INPUT",{type:!0,class:!0,placeholder:!0}),Ee.forEach(t),q=_(y),W=s(y,"DIV",{class:!0}),n(W).forEach(t),re=_(y),Q=s(y,"DIV",{class:!0});var lt=n(Q);M=s(lt,"LABEL",{class:!0});var ke=n(M);$=s(ke,"SPAN",{class:!0});var qe=n($);xe=D(qe,`I agree to the\r + `),ae=s(qe,"SPAN",{class:!0});var st=n(ae);Ie=D(st,"Terms of Service"),st.forEach(t),qe.forEach(t),Pe=_(ke),G=s(ke,"INPUT",{type:!0,class:!0}),ke.forEach(t),lt.forEach(t),De=_(y),z.l(y),_e=_(y),X=s(y,"DIV",{class:!0});var rt=n(X);H=s(rt,"DIV",{class:!0});var A=n(H);oe=s(A,"H1",{class:!0});var at=n(oe);Te=D(at,"You are signing!"),at.forEach(t),Ve=_(A),Be=s(A,"BR",{}),Ne=_(A),ne=s(A,"H2",{class:!0});var ot=n(ne);Ce=D(ot,"Message"),ot.forEach(t),Se=_(A),He=s(A,"BR",{}),Re=_(A),ie=s(A,"P",{class:!0});var nt=n(ie);pe=D(nt,fe),nt.forEach(t),Ue=_(A),Ae=s(A,"BR",{}),Ye=_(A),F=s(A,"DIV",{class:!0});var de=n(F);ce=s(de,"DIV",{class:!0});var it=n(ce);ee=s(it,"BUTTON",{class:!0});var ct=n(ee);Le=D(ct,"CANCEL"),ct.forEach(t),it.forEach(t),Oe=_(de),he=s(de,"DIV",{class:!0}),n(he).forEach(t),Me=_(de),ue=s(de,"DIV",{class:!0});var ut=n(ue);te=s(ut,"BUTTON",{class:!0});var dt=n(te);ze=D(dt,"Sign"),dt.forEach(t),ut.forEach(t),de.forEach(t),A.forEach(t),rt.forEach(t),Ke=_(y),Z=s(y,"DIV",{class:!0});var ft=n(Z);le=s(ft,"DIV",{class:!0});var ht=n(le);K.l(ht),ht.forEach(t),ft.forEach(t),y.forEach(t),B.forEach(t),this.h()},h(){r(f,"class","text-3xl text-center my-3 font-bold"),r(k,"class",w=`text-lg text-center mb-3 ${p[2]!==""?"text-red-500":""}`),r(V,"class","text-xl text-left mt-3 mb-1"),r(b,"type","password"),r(b,"class","input input-bordered w-full dark:bg-gray-800 dark:text-white"),r(b,"placeholder","New Password"),r(O,"class","text-xl text-left mt-3 mb-1"),r(L,"type","password"),r(L,"class","input input-bordered w-full dark:bg-gray-800 dark:text-white"),r(L,"placeholder","Confirm Password"),r(W,"class","divider"),r(ae,"class","text-lime-700"),r($,"class","label-text dark:text-white"),r(G,"type","checkbox"),r(G,"class","checkbox"),G.checked=p[4],r(M,"class","label cursor-pointer"),r(Q,"class","form-control"),r(oe,"class","text-3xl text-center font-bold mb-2"),r(ne,"class","text-xl text-center"),r(ie,"class","text-lg text-center dark:text-green-100"),r(ee,"class","btn mt-5"),r(ce,"class","grid flex-grow"),r(he,"class","divider divider-horizontal"),r(te,"class","btn w-full mt-5"),r(ue,"class","grid flex-grow"),r(F,"class","flex w-full mt-2"),r(H,"class","modal-box dark:bg-gray-800 dark:text-white"),r(X,"class","modal"),ye(X,"modal-open",p[3]),r(le,"class","modal-box dark:bg-gray-800 dark:text-white"),r(Z,"class","modal"),ye(Z,"modal-open",p[6]),r(a,"class","mt-6 w-4/5 mx-auto")},m(h,B){x(h,o,B),wt(c,o,null),e(o,d),e(o,a),e(a,f),e(f,m),e(a,N),e(a,k),e(k,C),e(a,T),e(a,E),e(E,V),e(V,Y),e(E,i),e(E,b),ge(b,p[0]),e(a,R),e(a,g),e(a,j),e(a,U),e(U,O),e(O,u),e(U,S),e(U,L),ge(L,p[1]),e(a,q),e(a,W),e(a,re),e(a,Q),e(Q,M),e(M,$),e($,xe),e($,ae),e(ae,Ie),e(M,Pe),e(M,G),e(a,De),z.m(a,null),e(a,_e),e(a,X),e(X,H),e(H,oe),e(oe,Te),e(H,Ve),e(H,Be),e(H,Ne),e(H,ne),e(ne,Ce),e(H,Se),e(H,He),e(H,Re),e(H,ie),e(ie,pe),e(H,Ue),e(H,Ae),e(H,Ye),e(H,F),e(F,ce),e(ce,ee),e(ee,Le),e(F,Oe),e(F,he),e(F,Me),e(F,ue),e(ue,te),e(te,ze),e(a,Ke),e(a,Z),e(Z,le),K.m(le,null),J=!0,je||(Qe=[se(b,"input",p[9]),se(L,"input",p[10]),se(G,"change",p[11]),se(ee,"click",p[12]),se(te,"click",p[8])],je=!0)},p(h,[B]){var y,ve;(!J||B&4)&&I!==(I=(h[2]!==""?h[2]:"You will use this to unlock your wallet")+"")&&Fe(C,I),(!J||B&4&&w!==(w=`text-lg text-center mb-3 ${h[2]!==""?"text-red-500":""}`))&&r(k,"class",w),B&1&&b.value!==h[0]&&ge(b,h[0]),B&2&&L.value!==h[1]&&ge(L,h[1]),(!J||B&16)&&(G.checked=h[4]),be===(be=We(h))&&z?z.p(h,B):(z.d(1),z=be(h),z&&(z.c(),z.m(a,_e))),(!J||B&32)&&fe!==(fe=`${(ve=(y=h[5])==null?void 0:y.payload)==null?void 0:ve.eula}`??"...")&&Fe(pe,fe),(!J||B&8)&&ye(X,"modal-open",h[3]),me===(me=Ge(h))&&K?K.p(h,B):(K.d(1),K=me(h),K&&(K.c(),K.m(le,null))),(!J||B&64)&&ye(Z,"modal-open",h[6])},i(h){J||(Et(c.$$.fragment,h),J=!0)},o(h){kt(c.$$.fragment,h),J=!1},d(h){h&&t(o),yt(c),z.d(),K.d(),je=!1,gt(Qe)}}}function Ut(p,o,c){let d="",a="",f="",m,N=!1,k=!0,I,C=!1;async function w(){try{const g=await It(I.payload);m=await Pt(I.payload.flowId,g==null?void 0:g.signature,g==null?void 0:g.pubKey),await Tt(d),Bt.set(m.payload.token),c(3,N=!0)}catch{c(2,f="Something went wrong"),console.error(f)}}const T=async()=>{d===a&&d!==""&&d.length>=6&&k?(c(2,f=""),c(3,N=!0)):d.length<6?c(2,f="Password has to be at least 6 characters long"):k?c(2,f="Passwords are not matching"):c(2,f="You need to accept the terms and conditions"),c(5,I=await xt())},E=async()=>{await w(),f.length<1&&Vt.set(0),c(6,C=!0)};function V(){d=this.value,c(0,d)}function Y(){a=this.value,c(1,a)}return[d,a,f,N,k,I,C,T,E,V,Y,()=>c(4,k=!k),()=>c(3,N=!1),()=>{c(3,N=!1),c(6,C=!1)}]}class zt extends vt{constructor(o){super(),_t(this,o,Ut,Rt,pt,{})}}export{zt as component}; diff --git a/build/app/immutable/nodes/7.3360f074.js b/build/app/immutable/nodes/7.22545cd2.js similarity index 87% rename from build/app/immutable/nodes/7.3360f074.js rename to build/app/immutable/nodes/7.22545cd2.js index 69a921395..9df0cd91b 100644 --- a/build/app/immutable/nodes/7.3360f074.js +++ b/build/app/immutable/nodes/7.22545cd2.js @@ -1 +1 @@ -import{S as le,i as ae,s as re,k as p,y as ne,a as S,q as K,l as f,m as _,z as oe,c as H,r as T,h as d,n as h,K as Y,b as V,A as ie,D as o,P as Z,J as U,g as ce,d as ue,B as de,L as ee,u as te,H as se}from"../chunks/index.83ca82d8.js";import{b as he,p as pe,w as fe,m as me,o as _e}from"../chunks/store.e259513c.js";import{H as be}from"../chunks/Header.80bfed2a.js";import{A as ve}from"../chunks/index.045ff416.js";function ye(c){let e,t=c[1].length>0?`${c[1]}`:"Enter your seed phases separated with a single blank space",n,s;return{c(){e=p("h3"),n=K(t),this.h()},l(l){e=f(l,"H3",{class:!0});var r=_(e);n=T(r,t),r.forEach(d),this.h()},h(){h(e,"class",s=`text-sm ${c[1]!==""?"text-red-500":""}`)},m(l,r){V(l,e,r),o(e,n)},p(l,r){r&2&&t!==(t=l[1].length>0?`${l[1]}`:"Enter your seed phases separated with a single blank space")&&te(n,t),r&2&&s!==(s=`text-sm ${l[1]!==""?"text-red-500":""}`)&&h(e,"class",s)},d(l){l&&d(e)}}}function ge(c){let e,t,n,s,l=`${c[3].substring(0,8)}...${c[3].substring(c[3].length-8)}`,r;return{c(){e=p("h2"),t=K("Found this Wallet"),n=S(),s=p("span"),r=K(l),this.h()},l(a){e=f(a,"H2",{class:!0});var i=_(e);t=T(i,"Found this Wallet"),i.forEach(d),n=H(a),s=f(a,"SPAN",{});var v=_(s);r=T(v,l),v.forEach(d),this.h()},h(){h(e,"class","text-sm text-green-300")},m(a,i){V(a,e,i),o(e,t),V(a,n,i),V(a,s,i),o(s,r)},p(a,i){i&8&&l!==(l=`${a[3].substring(0,8)}...${a[3].substring(a[3].length-8)}`)&&te(r,l)},d(a){a&&d(e),a&&d(n),a&&d(s)}}}function ke(c){let e,t,n,s,l;return{c(){e=p("div"),t=p("button"),n=K("Submit"),this.h()},l(r){e=f(r,"DIV",{class:!0});var a=_(e);t=f(a,"BUTTON",{class:!0});var i=_(t);n=T(i,"Submit"),i.forEach(d),a.forEach(d),this.h()},h(){h(t,"class","btn"),h(e,"class","modal-action ml-px")},m(r,a){V(r,e,a),o(e,t),o(t,n),s||(l=U(t,"click",c[4]),s=!0)},p:se,d(r){r&&d(e),s=!1,l()}}}function Ee(c){let e,t,n,s,l,r;return{c(){e=p("div"),t=p("a"),n=p("button"),s=K("Continue"),this.h()},l(a){e=f(a,"DIV",{class:!0});var i=_(e);t=f(i,"A",{href:!0});var v=_(t);n=f(v,"BUTTON",{class:!0});var A=_(n);s=T(A,"Continue"),A.forEach(d),v.forEach(d),i.forEach(d),this.h()},h(){h(n,"class","btn"),h(t,"href","import-old-wallet/create-password"),h(e,"class","modal-action ml-px")},m(a,i){V(a,e,i),o(e,t),o(t,n),o(n,s),l||(r=[U(n,"click",c[5]),U(t,"click",c[8])],l=!0)},p:se,d(a){a&&d(e),l=!1,ee(r)}}}function we(c){let e,t,n,s,l,r,a,i,v,A,D,$,k,m,E,N,x,q,F,C,w,L,B,j,z;t=new be({});function J(u,b){return u[3]!==""?ge:ye}let O=J(c),y=O(c);function M(u,b){return u[3]!==""?Ee:ke}let W=M(c),g=W(c);return{c(){e=p("div"),ne(t.$$.fragment),n=S(),s=p("div"),l=p("h1"),r=K("Enter your seed phase"),a=S(),i=p("button"),v=K("Enter Seed Phrase"),A=S(),D=p("input"),$=S(),k=p("div"),m=p("div"),E=p("h3"),N=K("Seed Phrase"),x=S(),q=p("br"),F=S(),y.c(),C=S(),w=p("input"),L=S(),g.c(),this.h()},l(u){e=f(u,"DIV",{});var b=_(e);oe(t.$$.fragment,b),n=H(b),s=f(b,"DIV",{class:!0});var I=_(s);l=f(I,"H1",{class:!0});var R=_(l);r=T(R,"Enter your seed phase"),R.forEach(d),a=H(I),i=f(I,"BUTTON",{class:!0});var G=_(i);v=T(G,"Enter Seed Phrase"),G.forEach(d),A=H(I),D=f(I,"INPUT",{type:!0,id:!0,class:!0}),$=H(I),k=f(I,"DIV",{class:!0});var Q=_(k);m=f(Q,"DIV",{class:!0});var P=_(m);E=f(P,"H3",{class:!0});var X=_(E);N=T(X,"Seed Phrase"),X.forEach(d),x=H(P),q=f(P,"BR",{}),F=H(P),y.l(P),C=H(P),w=f(P,"INPUT",{type:!0,placeholder:!0,class:!0}),L=H(P),g.l(P),P.forEach(d),Q.forEach(d),I.forEach(d),b.forEach(d),this.h()},h(){h(l,"class","text-3xl font-bold text-center mb-48"),h(i,"class","btn btn-wide modal-button mx-auto block"),h(D,"type","checkbox"),h(D,"id","my-modal"),h(D,"class","modal-toggle"),h(E,"class","font-bold text-lg"),h(w,"type","text"),h(w,"placeholder","ex - better phone option poke water glasses mandate spell thought nice history united"),h(w,"class","py-4 my-4 input input-bordered input-lg w-full max-w-xs dark:bg-gray-800 dark:text-white border-white/50"),h(m,"class","modal-box dark:bg-gray-800 dark:text-white"),h(k,"class","modal"),Y(k,"modal-open",c[0]),h(s,"class","mt-12")},m(u,b){V(u,e,b),ie(t,e,null),o(e,n),o(e,s),o(s,l),o(l,r),o(s,a),o(s,i),o(i,v),o(s,A),o(s,D),o(s,$),o(s,k),o(k,m),o(m,E),o(E,N),o(m,x),o(m,q),o(m,F),y.m(m,null),o(m,C),o(m,w),Z(w,c[2]),o(m,L),g.m(m,null),B=!0,j||(z=[U(i,"click",c[6]),U(w,"input",c[7])],j=!0)},p(u,[b]){O===(O=J(u))&&y?y.p(u,b):(y.d(1),y=O(u),y&&(y.c(),y.m(m,C))),b&4&&w.value!==u[2]&&Z(w,u[2]),W===(W=M(u))&&g?g.p(u,b):(g.d(1),g=W(u),g&&(g.c(),g.m(m,null))),(!B||b&1)&&Y(k,"modal-open",u[0])},i(u){B||(ce(t.$$.fragment,u),B=!0)},o(u){ue(t.$$.fragment,u),B=!1},d(u){u&&d(e),de(t),y.d(),g.d(),j=!1,ee(z)}}}function Pe(c,e,t){let n=!1,s="",l="",r="",a="",i="";const v="m/44'/637'/0'/0'/0'",A=async()=>{if(l!==""){t(1,s=""),t(2,l=l.trim());try{let E=ve.fromDerivePath(v,l);if(E!==null){let N=E.toPrivateKeyObject();t(3,r=N.address),a=N.publicKeyHex,i=N.privateKeyHex.slice(2)}else t(1,s="No wallet found")}catch{t(1,s="Something wrong!")}}else t(1,s="Enter a valid key")},D=async()=>{he.set(a),pe.set(i),fe.set(r),me.set(l)},$=()=>t(0,n=!0);function k(){l=this.value,t(2,l)}return[n,s,l,r,A,D,$,k,()=>_e.set(1)]}class Ie extends le{constructor(e){super(),ae(this,e,Pe,we,re,{})}}export{Ie as component}; +import{S as le,i as ae,s as re,k as p,y as ne,a as S,q as K,l as f,m as _,z as oe,c as H,r as T,h as d,n as h,K as Y,b as V,A as ie,D as o,Q as Z,J as U,g as ce,d as ue,B as de,L as ee,u as te,H as se}from"../chunks/index.f3b06f47.js";import{b as he,p as pe,w as fe,m as me,o as _e}from"../chunks/store.26750aee.js";import{H as be}from"../chunks/Header.b7ab37a3.js";import{A as ve}from"../chunks/index.ec3c65db.js";function ye(c){let e,t=c[1].length>0?`${c[1]}`:"Enter your seed phases separated with a single blank space",n,s;return{c(){e=p("h3"),n=K(t),this.h()},l(l){e=f(l,"H3",{class:!0});var r=_(e);n=T(r,t),r.forEach(d),this.h()},h(){h(e,"class",s=`text-sm ${c[1]!==""?"text-red-500":""}`)},m(l,r){V(l,e,r),o(e,n)},p(l,r){r&2&&t!==(t=l[1].length>0?`${l[1]}`:"Enter your seed phases separated with a single blank space")&&te(n,t),r&2&&s!==(s=`text-sm ${l[1]!==""?"text-red-500":""}`)&&h(e,"class",s)},d(l){l&&d(e)}}}function ge(c){let e,t,n,s,l=`${c[3].substring(0,8)}...${c[3].substring(c[3].length-8)}`,r;return{c(){e=p("h2"),t=K("Found this Wallet"),n=S(),s=p("span"),r=K(l),this.h()},l(a){e=f(a,"H2",{class:!0});var i=_(e);t=T(i,"Found this Wallet"),i.forEach(d),n=H(a),s=f(a,"SPAN",{});var v=_(s);r=T(v,l),v.forEach(d),this.h()},h(){h(e,"class","text-sm text-green-300")},m(a,i){V(a,e,i),o(e,t),V(a,n,i),V(a,s,i),o(s,r)},p(a,i){i&8&&l!==(l=`${a[3].substring(0,8)}...${a[3].substring(a[3].length-8)}`)&&te(r,l)},d(a){a&&d(e),a&&d(n),a&&d(s)}}}function ke(c){let e,t,n,s,l;return{c(){e=p("div"),t=p("button"),n=K("Submit"),this.h()},l(r){e=f(r,"DIV",{class:!0});var a=_(e);t=f(a,"BUTTON",{class:!0});var i=_(t);n=T(i,"Submit"),i.forEach(d),a.forEach(d),this.h()},h(){h(t,"class","btn"),h(e,"class","modal-action ml-px")},m(r,a){V(r,e,a),o(e,t),o(t,n),s||(l=U(t,"click",c[4]),s=!0)},p:se,d(r){r&&d(e),s=!1,l()}}}function Ee(c){let e,t,n,s,l,r;return{c(){e=p("div"),t=p("a"),n=p("button"),s=K("Continue"),this.h()},l(a){e=f(a,"DIV",{class:!0});var i=_(e);t=f(i,"A",{href:!0});var v=_(t);n=f(v,"BUTTON",{class:!0});var A=_(n);s=T(A,"Continue"),A.forEach(d),v.forEach(d),i.forEach(d),this.h()},h(){h(n,"class","btn"),h(t,"href","import-old-wallet/create-password"),h(e,"class","modal-action ml-px")},m(a,i){V(a,e,i),o(e,t),o(t,n),o(n,s),l||(r=[U(n,"click",c[5]),U(t,"click",c[8])],l=!0)},p:se,d(a){a&&d(e),l=!1,ee(r)}}}function we(c){let e,t,n,s,l,r,a,i,v,A,D,$,k,m,E,N,x,q,F,C,w,L,B,j,z;t=new be({});function J(u,b){return u[3]!==""?ge:ye}let O=J(c),y=O(c);function M(u,b){return u[3]!==""?Ee:ke}let W=M(c),g=W(c);return{c(){e=p("div"),ne(t.$$.fragment),n=S(),s=p("div"),l=p("h1"),r=K("Enter your seed phase"),a=S(),i=p("button"),v=K("Enter Seed Phrase"),A=S(),D=p("input"),$=S(),k=p("div"),m=p("div"),E=p("h3"),N=K("Seed Phrase"),x=S(),q=p("br"),F=S(),y.c(),C=S(),w=p("input"),L=S(),g.c(),this.h()},l(u){e=f(u,"DIV",{});var b=_(e);oe(t.$$.fragment,b),n=H(b),s=f(b,"DIV",{class:!0});var I=_(s);l=f(I,"H1",{class:!0});var Q=_(l);r=T(Q,"Enter your seed phase"),Q.forEach(d),a=H(I),i=f(I,"BUTTON",{class:!0});var R=_(i);v=T(R,"Enter Seed Phrase"),R.forEach(d),A=H(I),D=f(I,"INPUT",{type:!0,id:!0,class:!0}),$=H(I),k=f(I,"DIV",{class:!0});var G=_(k);m=f(G,"DIV",{class:!0});var P=_(m);E=f(P,"H3",{class:!0});var X=_(E);N=T(X,"Seed Phrase"),X.forEach(d),x=H(P),q=f(P,"BR",{}),F=H(P),y.l(P),C=H(P),w=f(P,"INPUT",{type:!0,placeholder:!0,class:!0}),L=H(P),g.l(P),P.forEach(d),G.forEach(d),I.forEach(d),b.forEach(d),this.h()},h(){h(l,"class","text-3xl font-bold text-center mb-48"),h(i,"class","btn btn-wide modal-button mx-auto block"),h(D,"type","checkbox"),h(D,"id","my-modal"),h(D,"class","modal-toggle"),h(E,"class","font-bold text-lg"),h(w,"type","text"),h(w,"placeholder","ex - better phone option poke water glasses mandate spell thought nice history united"),h(w,"class","py-4 my-4 input input-bordered input-lg w-full max-w-xs dark:bg-gray-800 dark:text-white border-white/50"),h(m,"class","modal-box dark:bg-gray-800 dark:text-white"),h(k,"class","modal"),Y(k,"modal-open",c[0]),h(s,"class","mt-12")},m(u,b){V(u,e,b),ie(t,e,null),o(e,n),o(e,s),o(s,l),o(l,r),o(s,a),o(s,i),o(i,v),o(s,A),o(s,D),o(s,$),o(s,k),o(k,m),o(m,E),o(E,N),o(m,x),o(m,q),o(m,F),y.m(m,null),o(m,C),o(m,w),Z(w,c[2]),o(m,L),g.m(m,null),B=!0,j||(z=[U(i,"click",c[6]),U(w,"input",c[7])],j=!0)},p(u,[b]){O===(O=J(u))&&y?y.p(u,b):(y.d(1),y=O(u),y&&(y.c(),y.m(m,C))),b&4&&w.value!==u[2]&&Z(w,u[2]),W===(W=M(u))&&g?g.p(u,b):(g.d(1),g=W(u),g&&(g.c(),g.m(m,null))),(!B||b&1)&&Y(k,"modal-open",u[0])},i(u){B||(ce(t.$$.fragment,u),B=!0)},o(u){ue(t.$$.fragment,u),B=!1},d(u){u&&d(e),de(t),y.d(),g.d(),j=!1,ee(z)}}}function Pe(c,e,t){let n=!1,s="",l="",r="",a="",i="";const v="m/44'/637'/0'/0'/0'",A=async()=>{if(l!==""){t(1,s=""),t(2,l=l.trim());try{let E=ve.fromDerivePath(v,l);if(E!==null){let N=E.toPrivateKeyObject();t(3,r=N.address),a=N.publicKeyHex,i=N.privateKeyHex.slice(2)}else t(1,s="No wallet found")}catch{t(1,s="Something wrong!")}}else t(1,s="Enter a valid key")},D=async()=>{he.set(a),pe.set(i),fe.set(r),me.set(l)},$=()=>t(0,n=!0);function k(){l=this.value,t(2,l)}return[n,s,l,r,A,D,$,k,()=>_e.set(1)]}class Ie extends le{constructor(e){super(),ae(this,e,Pe,we,re,{})}}export{Ie as component}; diff --git a/build/app/immutable/nodes/8.2382664c.js b/build/app/immutable/nodes/8.eaf2523e.js similarity index 82% rename from build/app/immutable/nodes/8.2382664c.js rename to build/app/immutable/nodes/8.eaf2523e.js index ff83e94a1..5dd41198e 100644 --- a/build/app/immutable/nodes/8.2382664c.js +++ b/build/app/immutable/nodes/8.eaf2523e.js @@ -1 +1 @@ -import{S as bt,i as mt,s as wt,k as l,y as Et,a as f,q as x,l as s,m as n,z as kt,c as h,r as I,h as t,n as a,K as ge,b as P,A as yt,D as e,P as xe,J as se,u as We,g as gt,d as xt,B as It,L as Pt,H as Ge}from"../chunks/index.83ca82d8.js";import{a as Dt,s as Tt,b as Vt}from"../chunks/functionsForLogin.e1c9cab8.js";import{H as Bt}from"../chunks/Header.80bfed2a.js";import{e as Nt}from"../chunks/secondAuth.d664856c.js";import{o as Ct,j as St}from"../chunks/store.e259513c.js";function Ht(p){let o,c;return{c(){o=l("button"),c=x("Confirm"),this.h()},l(d){o=s(d,"BUTTON",{class:!0});var r=n(o);c=I(r,"Confirm"),r.forEach(t),this.h()},h(){o.disabled=!0,a(o,"class","btn btn-wide block mx-auto")},m(d,r){P(d,o,r),e(o,c)},p:Ge,d(d){d&&t(o)}}}function Rt(p){let o,c,d,r;return{c(){o=l("button"),c=x("Confirm"),this.h()},l(v){o=s(v,"BUTTON",{class:!0});var m=n(o);c=I(m,"Confirm"),m.forEach(t),this.h()},h(){a(o,"class","btn btn-wide block mx-auto")},m(v,m){P(v,o,m),e(o,c),d||(r=se(o,"click",p[7]),d=!0)},p:Ge,d(v){v&&t(o),d=!1,r()}}}function Ut(p){let o,c,d,r,v,m,N,k,D,C,w,T,E,V,Y;return{c(){o=l("h1"),c=x("Lets go 🚀!"),d=f(),r=l("br"),v=f(),m=l("p"),N=x("You are all set ✅"),k=f(),D=l("br"),C=f(),w=l("div"),T=l("div"),E=l("a"),V=l("button"),Y=x("Dashboard"),this.h()},l(i){o=s(i,"H1",{class:!0});var b=n(o);c=I(b,"Lets go 🚀!"),b.forEach(t),d=h(i),r=s(i,"BR",{}),v=h(i),m=s(i,"P",{class:!0});var R=n(m);N=I(R,"You are all set ✅"),R.forEach(t),k=h(i),D=s(i,"BR",{}),C=h(i),w=s(i,"DIV",{class:!0});var g=n(w);T=s(g,"DIV",{class:!0});var j=n(T);E=s(j,"A",{href:!0,class:!0});var U=n(E);V=s(U,"BUTTON",{class:!0});var O=n(V);Y=I(O,"Dashboard"),O.forEach(t),U.forEach(t),j.forEach(t),g.forEach(t),this.h()},h(){a(o,"class","text-5xl text-left mb-2"),a(m,"class","text-lg text-left text-green-500"),a(V,"class","btn w-full h-full"),a(E,"href","/"),a(E,"class","btn mt-5 p-0"),a(T,"class","grid flex-grow"),a(w,"class","flex w-full mt-2")},m(i,b){P(i,o,b),e(o,c),P(i,d,b),P(i,r,b),P(i,v,b),P(i,m,b),e(m,N),P(i,k,b),P(i,D,b),P(i,C,b),P(i,w,b),e(w,T),e(T,E),e(E,V),e(V,Y)},p:Ge,d(i){i&&t(o),i&&t(d),i&&t(r),i&&t(v),i&&t(m),i&&t(k),i&&t(D),i&&t(C),i&&t(w)}}}function At(p){let o,c,d,r,v,m,N,k,D,C,w,T,E,V,Y,i,b,R,g,j,U,O;return{c(){o=l("h1"),c=x("Unable to sign-in ☹️!"),d=f(),r=l("br"),v=f(),m=l("p"),N=x(p[2]),k=f(),D=l("br"),C=f(),w=l("div"),T=l("div"),E=l("a"),V=x("Try later"),Y=f(),i=l("div"),b=f(),R=l("div"),g=l("button"),j=x("Retry"),this.h()},l(u){o=s(u,"H1",{class:!0});var S=n(o);c=I(S,"Unable to sign-in ☹️!"),S.forEach(t),d=h(u),r=s(u,"BR",{}),v=h(u),m=s(u,"P",{class:!0});var L=n(m);N=I(L,p[2]),L.forEach(t),k=h(u),D=s(u,"BR",{}),C=h(u),w=s(u,"DIV",{class:!0});var q=n(w);T=s(q,"DIV",{class:!0});var Q=n(T);E=s(Q,"A",{href:!0,class:!0});var ae=n(E);V=I(ae,"Try later"),ae.forEach(t),Q.forEach(t),Y=h(q),i=s(q,"DIV",{class:!0}),n(i).forEach(t),b=h(q),R=s(q,"DIV",{class:!0});var W=n(R);g=s(W,"BUTTON",{class:!0});var M=n(g);j=I(M,"Retry"),M.forEach(t),W.forEach(t),q.forEach(t),this.h()},h(){a(o,"class","text-3xl text-center mb-2"),a(m,"class","text-lg text-left text-red-500"),a(E,"href","/"),a(E,"class","btn w-full h-full"),a(T,"class","grid flex-grow"),a(i,"class","divider divider-horizontal"),a(g,"class","btn w-full h-full"),a(R,"class","grid flex-grow"),a(w,"class","flex w-full mt-2")},m(u,S){P(u,o,S),e(o,c),P(u,d,S),P(u,r,S),P(u,v,S),P(u,m,S),e(m,N),P(u,k,S),P(u,D,S),P(u,C,S),P(u,w,S),e(w,T),e(T,E),e(E,V),e(w,Y),e(w,i),e(w,b),e(w,R),e(R,g),e(g,j),U||(O=se(g,"click",p[13]),U=!0)},p(u,S){S&4&&We(N,u[2])},d(u){u&&t(o),u&&t(d),u&&t(r),u&&t(v),u&&t(m),u&&t(k),u&&t(D),u&&t(C),u&&t(w),U=!1,O()}}}function Yt(p){var et,tt;let o,c,d,r,v,m,N,k,D=(p[2]!==""?p[2]:"You will use this to unlock your wallet")+"",C,w,T,E,V,Y,i,b,R,g,j,U,O,u,S,L,q,Q,ae,W,M,G,Ie,Qe=" ",Pe,De,re,Te,Ve,X,Be,pe,Z,H,oe,Ne,Ce,Se,He,ne,Re,Ue,Ae,Ye,ie,fe=`${(tt=(et=p[5])==null?void 0:et.payload)==null?void 0:tt.eula}`??"...",be,Le,Oe,Me,F,ce,ee,ze,Ke,he,je,ue,te,qe,Fe,$,le,J,Je,Xe;c=new Bt({});function Ze(_,B){return _[4]?Rt:Ht}let me=Ze(p),z=me(p);function $e(_,B){return _[2].length>0?At:Ut}let we=$e(p),K=we(p);return{c(){o=l("div"),Et(c.$$.fragment),d=f(),r=l("div"),v=l("h1"),m=x("Create Your Password"),N=f(),k=l("h1"),C=x(D),T=f(),E=l("div"),V=l("h2"),Y=x("New Password"),i=f(),b=l("input"),R=f(),g=l("br"),j=f(),U=l("div"),O=l("h2"),u=x("Confirm Password"),S=f(),L=l("input"),q=f(),Q=l("div"),ae=f(),W=l("div"),M=l("label"),G=l("span"),Ie=x("I agree to the"),Pe=x(Qe),De=f(),re=l("span"),Te=x("Terms of Service"),Ve=f(),X=l("input"),Be=f(),z.c(),pe=f(),Z=l("div"),H=l("div"),oe=l("h1"),Ne=x("You are signing!"),Ce=f(),Se=l("br"),He=f(),ne=l("h2"),Re=x("Message"),Ue=f(),Ae=l("br"),Ye=f(),ie=l("p"),be=x(fe),Le=f(),Oe=l("br"),Me=f(),F=l("div"),ce=l("div"),ee=l("button"),ze=x("CANCEL"),Ke=f(),he=l("div"),je=f(),ue=l("div"),te=l("button"),qe=x("Sign"),Fe=f(),$=l("div"),le=l("div"),K.c(),this.h()},l(_){o=s(_,"DIV",{});var B=n(o);kt(c.$$.fragment,B),d=h(B),r=s(B,"DIV",{class:!0});var y=n(r);v=s(y,"H1",{class:!0});var ve=n(v);m=I(ve,"Create Your Password"),ve.forEach(t),N=h(y),k=s(y,"H1",{class:!0});var lt=n(k);C=I(lt,D),lt.forEach(t),T=h(y),E=s(y,"DIV",{});var Ee=n(E);V=s(Ee,"H2",{class:!0});var st=n(V);Y=I(st,"New Password"),st.forEach(t),i=h(Ee),b=s(Ee,"INPUT",{type:!0,class:!0,placeholder:!0}),Ee.forEach(t),R=h(y),g=s(y,"BR",{}),j=h(y),U=s(y,"DIV",{});var ke=n(U);O=s(ke,"H2",{class:!0});var at=n(O);u=I(at,"Confirm Password"),at.forEach(t),S=h(ke),L=s(ke,"INPUT",{type:!0,class:!0,placeholder:!0}),ke.forEach(t),q=h(y),Q=s(y,"DIV",{class:!0}),n(Q).forEach(t),ae=h(y),W=s(y,"DIV",{class:!0});var rt=n(W);M=s(rt,"LABEL",{class:!0});var ye=n(M);G=s(ye,"SPAN",{class:!0});var _e=n(G);Ie=I(_e,"I agree to the"),Pe=I(_e,Qe),De=h(_e),re=s(_e,"SPAN",{class:!0});var ot=n(re);Te=I(ot,"Terms of Service"),ot.forEach(t),_e.forEach(t),Ve=h(ye),X=s(ye,"INPUT",{type:!0,class:!0}),ye.forEach(t),rt.forEach(t),Be=h(y),z.l(y),pe=h(y),Z=s(y,"DIV",{class:!0});var nt=n(Z);H=s(nt,"DIV",{class:!0});var A=n(H);oe=s(A,"H1",{class:!0});var it=n(oe);Ne=I(it,"You are signing!"),it.forEach(t),Ce=h(A),Se=s(A,"BR",{}),He=h(A),ne=s(A,"H2",{class:!0});var ct=n(ne);Re=I(ct,"Message"),ct.forEach(t),Ue=h(A),Ae=s(A,"BR",{}),Ye=h(A),ie=s(A,"P",{class:!0});var ut=n(ie);be=I(ut,fe),ut.forEach(t),Le=h(A),Oe=s(A,"BR",{}),Me=h(A),F=s(A,"DIV",{class:!0});var de=n(F);ce=s(de,"DIV",{class:!0});var dt=n(ce);ee=s(dt,"BUTTON",{class:!0});var ft=n(ee);ze=I(ft,"CANCEL"),ft.forEach(t),dt.forEach(t),Ke=h(de),he=s(de,"DIV",{class:!0}),n(he).forEach(t),je=h(de),ue=s(de,"DIV",{class:!0});var ht=n(ue);te=s(ht,"BUTTON",{class:!0});var vt=n(te);qe=I(vt,"Sign"),vt.forEach(t),ht.forEach(t),de.forEach(t),A.forEach(t),nt.forEach(t),Fe=h(y),$=s(y,"DIV",{class:!0});var _t=n($);le=s(_t,"DIV",{class:!0});var pt=n(le);K.l(pt),pt.forEach(t),_t.forEach(t),y.forEach(t),B.forEach(t),this.h()},h(){a(v,"class","text-3xl text-center my-3"),a(k,"class",w=`text-lg text-center mb-3 ${p[2]!==""?"text-red-500":""}`),a(V,"class","text-xl text-left mt-3 mb-1"),a(b,"type","password"),a(b,"class","input input-bordered w-full dark:bg-gray-800 dark:text-white"),a(b,"placeholder","New Password"),a(O,"class","text-xl text-left mt-3 mb-1"),a(L,"type","password"),a(L,"class","input input-bordered w-full dark:bg-gray-800 dark:text-white"),a(L,"placeholder","Confirm Password"),a(Q,"class","divider"),a(re,"class","text-lime-700"),a(G,"class","label-text dark:text-white"),a(X,"type","checkbox"),a(X,"class","checkbox"),X.checked=p[4],a(M,"class","label cursor-pointer"),a(W,"class","form-control"),a(oe,"class","text-3xl text-center font-bold mb-2"),a(ne,"class","text-xl text-center"),a(ie,"class","text-lg text-center dark:text-green-100"),a(ee,"class","btn mt-5"),a(ce,"class","grid flex-grow"),a(he,"class","divider divider-horizontal"),a(te,"class","btn w-full mt-5"),a(ue,"class","grid flex-grow"),a(F,"class","flex w-full mt-2"),a(H,"class","modal-box dark:bg-gray-800 dark:text-white"),a(Z,"class","modal"),ge(Z,"modal-open",p[3]),a(le,"class","modal-box dark:bg-gray-800 dark:text-white"),a($,"class","modal"),ge($,"modal-open",p[6]),a(r,"class","mt-6 w-4/5 mx-auto")},m(_,B){P(_,o,B),yt(c,o,null),e(o,d),e(o,r),e(r,v),e(v,m),e(r,N),e(r,k),e(k,C),e(r,T),e(r,E),e(E,V),e(V,Y),e(E,i),e(E,b),xe(b,p[0]),e(r,R),e(r,g),e(r,j),e(r,U),e(U,O),e(O,u),e(U,S),e(U,L),xe(L,p[1]),e(r,q),e(r,Q),e(r,ae),e(r,W),e(W,M),e(M,G),e(G,Ie),e(G,Pe),e(G,De),e(G,re),e(re,Te),e(M,Ve),e(M,X),e(r,Be),z.m(r,null),e(r,pe),e(r,Z),e(Z,H),e(H,oe),e(oe,Ne),e(H,Ce),e(H,Se),e(H,He),e(H,ne),e(ne,Re),e(H,Ue),e(H,Ae),e(H,Ye),e(H,ie),e(ie,be),e(H,Le),e(H,Oe),e(H,Me),e(H,F),e(F,ce),e(ce,ee),e(ee,ze),e(F,Ke),e(F,he),e(F,je),e(F,ue),e(ue,te),e(te,qe),e(r,Fe),e(r,$),e($,le),K.m(le,null),J=!0,Je||(Xe=[se(b,"input",p[9]),se(L,"input",p[10]),se(X,"change",p[11]),se(ee,"click",p[12]),se(te,"click",p[8])],Je=!0)},p(_,[B]){var y,ve;(!J||B&4)&&D!==(D=(_[2]!==""?_[2]:"You will use this to unlock your wallet")+"")&&We(C,D),(!J||B&4&&w!==(w=`text-lg text-center mb-3 ${_[2]!==""?"text-red-500":""}`))&&a(k,"class",w),B&1&&b.value!==_[0]&&xe(b,_[0]),B&2&&L.value!==_[1]&&xe(L,_[1]),(!J||B&16)&&(X.checked=_[4]),me===(me=Ze(_))&&z?z.p(_,B):(z.d(1),z=me(_),z&&(z.c(),z.m(r,pe))),(!J||B&32)&&fe!==(fe=`${(ve=(y=_[5])==null?void 0:y.payload)==null?void 0:ve.eula}`??"...")&&We(be,fe),(!J||B&8)&&ge(Z,"modal-open",_[3]),we===(we=$e(_))&&K?K.p(_,B):(K.d(1),K=we(_),K&&(K.c(),K.m(le,null))),(!J||B&64)&&ge($,"modal-open",_[6])},i(_){J||(gt(c.$$.fragment,_),J=!0)},o(_){xt(c.$$.fragment,_),J=!1},d(_){_&&t(o),It(c),z.d(),K.d(),Je=!1,Pt(Xe)}}}function Lt(p,o,c){let d="",r="",v="",m,N=!1,k=!0,D,C=!1;async function w(){try{const g=await Tt(D.payload);m=await Vt(D.payload.flowId,g==null?void 0:g.signature,g==null?void 0:g.pubKey),await Nt(d),St.set(m.payload.token),c(3,N=!0)}catch{c(2,v="Something went wrong"),console.error(v)}}const T=async()=>{d===r&&d!==""&&d.length>=6&&k?(c(2,v=""),c(3,N=!0)):d.length<6?c(2,v="Password has to be at least 6 characters long"):k?c(2,v="Passwords are not matching"):c(2,v="You need to accept the terms and conditions"),c(5,D=await Dt())},E=async()=>{await w(),v.length<1&&Ct.set(0),c(6,C=!0)};function V(){d=this.value,c(0,d)}function Y(){r=this.value,c(1,r)}return[d,r,v,N,k,D,C,T,E,V,Y,()=>c(4,k=!k),()=>c(3,N=!1),()=>{c(3,N=!1),c(6,C=!1)}]}class qt extends bt{constructor(o){super(),mt(this,o,Lt,Yt,wt,{})}}export{qt as component}; +import{S as bt,i as mt,s as wt,k as l,y as Et,a as f,q as x,l as s,m as n,z as kt,c as h,r as I,h as t,n as a,K as ge,b as P,A as yt,D as e,Q as xe,J as se,u as Qe,g as gt,d as xt,B as It,L as Pt,H as We}from"../chunks/index.f3b06f47.js";import{a as Dt,s as Tt,b as Vt}from"../chunks/functionsForLogin.1a2a5d01.js";import{H as Bt}from"../chunks/Header.b7ab37a3.js";import{e as Nt}from"../chunks/secondAuth.f9ee4b2a.js";import{o as Ct,j as St}from"../chunks/store.26750aee.js";function Ht(p){let o,c;return{c(){o=l("button"),c=x("Confirm"),this.h()},l(d){o=s(d,"BUTTON",{class:!0});var r=n(o);c=I(r,"Confirm"),r.forEach(t),this.h()},h(){o.disabled=!0,a(o,"class","btn btn-wide block mx-auto")},m(d,r){P(d,o,r),e(o,c)},p:We,d(d){d&&t(o)}}}function Rt(p){let o,c,d,r;return{c(){o=l("button"),c=x("Confirm"),this.h()},l(v){o=s(v,"BUTTON",{class:!0});var m=n(o);c=I(m,"Confirm"),m.forEach(t),this.h()},h(){a(o,"class","btn btn-wide block mx-auto")},m(v,m){P(v,o,m),e(o,c),d||(r=se(o,"click",p[7]),d=!0)},p:We,d(v){v&&t(o),d=!1,r()}}}function Ut(p){let o,c,d,r,v,m,N,k,D,C,w,T,E,V,Y;return{c(){o=l("h1"),c=x("Lets go 🚀!"),d=f(),r=l("br"),v=f(),m=l("p"),N=x("You are all set ✅"),k=f(),D=l("br"),C=f(),w=l("div"),T=l("div"),E=l("a"),V=l("button"),Y=x("Dashboard"),this.h()},l(i){o=s(i,"H1",{class:!0});var b=n(o);c=I(b,"Lets go 🚀!"),b.forEach(t),d=h(i),r=s(i,"BR",{}),v=h(i),m=s(i,"P",{class:!0});var R=n(m);N=I(R,"You are all set ✅"),R.forEach(t),k=h(i),D=s(i,"BR",{}),C=h(i),w=s(i,"DIV",{class:!0});var g=n(w);T=s(g,"DIV",{class:!0});var j=n(T);E=s(j,"A",{href:!0,class:!0});var U=n(E);V=s(U,"BUTTON",{class:!0});var O=n(V);Y=I(O,"Dashboard"),O.forEach(t),U.forEach(t),j.forEach(t),g.forEach(t),this.h()},h(){a(o,"class","text-5xl text-left mb-2"),a(m,"class","text-lg text-left text-green-500"),a(V,"class","btn w-full h-full"),a(E,"href","/"),a(E,"class","btn mt-5 p-0"),a(T,"class","grid flex-grow"),a(w,"class","flex w-full mt-2")},m(i,b){P(i,o,b),e(o,c),P(i,d,b),P(i,r,b),P(i,v,b),P(i,m,b),e(m,N),P(i,k,b),P(i,D,b),P(i,C,b),P(i,w,b),e(w,T),e(T,E),e(E,V),e(V,Y)},p:We,d(i){i&&t(o),i&&t(d),i&&t(r),i&&t(v),i&&t(m),i&&t(k),i&&t(D),i&&t(C),i&&t(w)}}}function At(p){let o,c,d,r,v,m,N,k,D,C,w,T,E,V,Y,i,b,R,g,j,U,O;return{c(){o=l("h1"),c=x("Unable to sign-in ☹️!"),d=f(),r=l("br"),v=f(),m=l("p"),N=x(p[2]),k=f(),D=l("br"),C=f(),w=l("div"),T=l("div"),E=l("a"),V=x("Try later"),Y=f(),i=l("div"),b=f(),R=l("div"),g=l("button"),j=x("Retry"),this.h()},l(u){o=s(u,"H1",{class:!0});var S=n(o);c=I(S,"Unable to sign-in ☹️!"),S.forEach(t),d=h(u),r=s(u,"BR",{}),v=h(u),m=s(u,"P",{class:!0});var L=n(m);N=I(L,p[2]),L.forEach(t),k=h(u),D=s(u,"BR",{}),C=h(u),w=s(u,"DIV",{class:!0});var q=n(w);T=s(q,"DIV",{class:!0});var G=n(T);E=s(G,"A",{href:!0,class:!0});var ae=n(E);V=I(ae,"Try later"),ae.forEach(t),G.forEach(t),Y=h(q),i=s(q,"DIV",{class:!0}),n(i).forEach(t),b=h(q),R=s(q,"DIV",{class:!0});var Q=n(R);g=s(Q,"BUTTON",{class:!0});var M=n(g);j=I(M,"Retry"),M.forEach(t),Q.forEach(t),q.forEach(t),this.h()},h(){a(o,"class","text-3xl text-center mb-2"),a(m,"class","text-lg text-left text-red-500"),a(E,"href","/"),a(E,"class","btn w-full h-full"),a(T,"class","grid flex-grow"),a(i,"class","divider divider-horizontal"),a(g,"class","btn w-full h-full"),a(R,"class","grid flex-grow"),a(w,"class","flex w-full mt-2")},m(u,S){P(u,o,S),e(o,c),P(u,d,S),P(u,r,S),P(u,v,S),P(u,m,S),e(m,N),P(u,k,S),P(u,D,S),P(u,C,S),P(u,w,S),e(w,T),e(T,E),e(E,V),e(w,Y),e(w,i),e(w,b),e(w,R),e(R,g),e(g,j),U||(O=se(g,"click",p[13]),U=!0)},p(u,S){S&4&&Qe(N,u[2])},d(u){u&&t(o),u&&t(d),u&&t(r),u&&t(v),u&&t(m),u&&t(k),u&&t(D),u&&t(C),u&&t(w),U=!1,O()}}}function Yt(p){var et,tt;let o,c,d,r,v,m,N,k,D=(p[2]!==""?p[2]:"You will use this to unlock your wallet")+"",C,w,T,E,V,Y,i,b,R,g,j,U,O,u,S,L,q,G,ae,Q,M,W,Ie,Ge=" ",Pe,De,re,Te,Ve,X,Be,pe,Z,H,oe,Ne,Ce,Se,He,ne,Re,Ue,Ae,Ye,ie,fe=`${(tt=(et=p[5])==null?void 0:et.payload)==null?void 0:tt.eula}`??"...",be,Le,Oe,Me,F,ce,ee,ze,Ke,he,je,ue,te,qe,Fe,$,le,J,Je,Xe;c=new Bt({});function Ze(_,B){return _[4]?Rt:Ht}let me=Ze(p),z=me(p);function $e(_,B){return _[2].length>0?At:Ut}let we=$e(p),K=we(p);return{c(){o=l("div"),Et(c.$$.fragment),d=f(),r=l("div"),v=l("h1"),m=x("Create Your Password"),N=f(),k=l("h1"),C=x(D),T=f(),E=l("div"),V=l("h2"),Y=x("New Password"),i=f(),b=l("input"),R=f(),g=l("br"),j=f(),U=l("div"),O=l("h2"),u=x("Confirm Password"),S=f(),L=l("input"),q=f(),G=l("div"),ae=f(),Q=l("div"),M=l("label"),W=l("span"),Ie=x("I agree to the"),Pe=x(Ge),De=f(),re=l("span"),Te=x("Terms of Service"),Ve=f(),X=l("input"),Be=f(),z.c(),pe=f(),Z=l("div"),H=l("div"),oe=l("h1"),Ne=x("You are signing!"),Ce=f(),Se=l("br"),He=f(),ne=l("h2"),Re=x("Message"),Ue=f(),Ae=l("br"),Ye=f(),ie=l("p"),be=x(fe),Le=f(),Oe=l("br"),Me=f(),F=l("div"),ce=l("div"),ee=l("button"),ze=x("CANCEL"),Ke=f(),he=l("div"),je=f(),ue=l("div"),te=l("button"),qe=x("Sign"),Fe=f(),$=l("div"),le=l("div"),K.c(),this.h()},l(_){o=s(_,"DIV",{});var B=n(o);kt(c.$$.fragment,B),d=h(B),r=s(B,"DIV",{class:!0});var y=n(r);v=s(y,"H1",{class:!0});var ve=n(v);m=I(ve,"Create Your Password"),ve.forEach(t),N=h(y),k=s(y,"H1",{class:!0});var lt=n(k);C=I(lt,D),lt.forEach(t),T=h(y),E=s(y,"DIV",{});var Ee=n(E);V=s(Ee,"H2",{class:!0});var st=n(V);Y=I(st,"New Password"),st.forEach(t),i=h(Ee),b=s(Ee,"INPUT",{type:!0,class:!0,placeholder:!0}),Ee.forEach(t),R=h(y),g=s(y,"BR",{}),j=h(y),U=s(y,"DIV",{});var ke=n(U);O=s(ke,"H2",{class:!0});var at=n(O);u=I(at,"Confirm Password"),at.forEach(t),S=h(ke),L=s(ke,"INPUT",{type:!0,class:!0,placeholder:!0}),ke.forEach(t),q=h(y),G=s(y,"DIV",{class:!0}),n(G).forEach(t),ae=h(y),Q=s(y,"DIV",{class:!0});var rt=n(Q);M=s(rt,"LABEL",{class:!0});var ye=n(M);W=s(ye,"SPAN",{class:!0});var _e=n(W);Ie=I(_e,"I agree to the"),Pe=I(_e,Ge),De=h(_e),re=s(_e,"SPAN",{class:!0});var ot=n(re);Te=I(ot,"Terms of Service"),ot.forEach(t),_e.forEach(t),Ve=h(ye),X=s(ye,"INPUT",{type:!0,class:!0}),ye.forEach(t),rt.forEach(t),Be=h(y),z.l(y),pe=h(y),Z=s(y,"DIV",{class:!0});var nt=n(Z);H=s(nt,"DIV",{class:!0});var A=n(H);oe=s(A,"H1",{class:!0});var it=n(oe);Ne=I(it,"You are signing!"),it.forEach(t),Ce=h(A),Se=s(A,"BR",{}),He=h(A),ne=s(A,"H2",{class:!0});var ct=n(ne);Re=I(ct,"Message"),ct.forEach(t),Ue=h(A),Ae=s(A,"BR",{}),Ye=h(A),ie=s(A,"P",{class:!0});var ut=n(ie);be=I(ut,fe),ut.forEach(t),Le=h(A),Oe=s(A,"BR",{}),Me=h(A),F=s(A,"DIV",{class:!0});var de=n(F);ce=s(de,"DIV",{class:!0});var dt=n(ce);ee=s(dt,"BUTTON",{class:!0});var ft=n(ee);ze=I(ft,"CANCEL"),ft.forEach(t),dt.forEach(t),Ke=h(de),he=s(de,"DIV",{class:!0}),n(he).forEach(t),je=h(de),ue=s(de,"DIV",{class:!0});var ht=n(ue);te=s(ht,"BUTTON",{class:!0});var vt=n(te);qe=I(vt,"Sign"),vt.forEach(t),ht.forEach(t),de.forEach(t),A.forEach(t),nt.forEach(t),Fe=h(y),$=s(y,"DIV",{class:!0});var _t=n($);le=s(_t,"DIV",{class:!0});var pt=n(le);K.l(pt),pt.forEach(t),_t.forEach(t),y.forEach(t),B.forEach(t),this.h()},h(){a(v,"class","text-3xl text-center my-3"),a(k,"class",w=`text-lg text-center mb-3 ${p[2]!==""?"text-red-500":""}`),a(V,"class","text-xl text-left mt-3 mb-1"),a(b,"type","password"),a(b,"class","input input-bordered w-full dark:bg-gray-800 dark:text-white"),a(b,"placeholder","New Password"),a(O,"class","text-xl text-left mt-3 mb-1"),a(L,"type","password"),a(L,"class","input input-bordered w-full dark:bg-gray-800 dark:text-white"),a(L,"placeholder","Confirm Password"),a(G,"class","divider"),a(re,"class","text-lime-700"),a(W,"class","label-text dark:text-white"),a(X,"type","checkbox"),a(X,"class","checkbox"),X.checked=p[4],a(M,"class","label cursor-pointer"),a(Q,"class","form-control"),a(oe,"class","text-3xl text-center font-bold mb-2"),a(ne,"class","text-xl text-center"),a(ie,"class","text-lg text-center dark:text-green-100"),a(ee,"class","btn mt-5"),a(ce,"class","grid flex-grow"),a(he,"class","divider divider-horizontal"),a(te,"class","btn w-full mt-5"),a(ue,"class","grid flex-grow"),a(F,"class","flex w-full mt-2"),a(H,"class","modal-box dark:bg-gray-800 dark:text-white"),a(Z,"class","modal"),ge(Z,"modal-open",p[3]),a(le,"class","modal-box dark:bg-gray-800 dark:text-white"),a($,"class","modal"),ge($,"modal-open",p[6]),a(r,"class","mt-6 w-4/5 mx-auto")},m(_,B){P(_,o,B),yt(c,o,null),e(o,d),e(o,r),e(r,v),e(v,m),e(r,N),e(r,k),e(k,C),e(r,T),e(r,E),e(E,V),e(V,Y),e(E,i),e(E,b),xe(b,p[0]),e(r,R),e(r,g),e(r,j),e(r,U),e(U,O),e(O,u),e(U,S),e(U,L),xe(L,p[1]),e(r,q),e(r,G),e(r,ae),e(r,Q),e(Q,M),e(M,W),e(W,Ie),e(W,Pe),e(W,De),e(W,re),e(re,Te),e(M,Ve),e(M,X),e(r,Be),z.m(r,null),e(r,pe),e(r,Z),e(Z,H),e(H,oe),e(oe,Ne),e(H,Ce),e(H,Se),e(H,He),e(H,ne),e(ne,Re),e(H,Ue),e(H,Ae),e(H,Ye),e(H,ie),e(ie,be),e(H,Le),e(H,Oe),e(H,Me),e(H,F),e(F,ce),e(ce,ee),e(ee,ze),e(F,Ke),e(F,he),e(F,je),e(F,ue),e(ue,te),e(te,qe),e(r,Fe),e(r,$),e($,le),K.m(le,null),J=!0,Je||(Xe=[se(b,"input",p[9]),se(L,"input",p[10]),se(X,"change",p[11]),se(ee,"click",p[12]),se(te,"click",p[8])],Je=!0)},p(_,[B]){var y,ve;(!J||B&4)&&D!==(D=(_[2]!==""?_[2]:"You will use this to unlock your wallet")+"")&&Qe(C,D),(!J||B&4&&w!==(w=`text-lg text-center mb-3 ${_[2]!==""?"text-red-500":""}`))&&a(k,"class",w),B&1&&b.value!==_[0]&&xe(b,_[0]),B&2&&L.value!==_[1]&&xe(L,_[1]),(!J||B&16)&&(X.checked=_[4]),me===(me=Ze(_))&&z?z.p(_,B):(z.d(1),z=me(_),z&&(z.c(),z.m(r,pe))),(!J||B&32)&&fe!==(fe=`${(ve=(y=_[5])==null?void 0:y.payload)==null?void 0:ve.eula}`??"...")&&Qe(be,fe),(!J||B&8)&&ge(Z,"modal-open",_[3]),we===(we=$e(_))&&K?K.p(_,B):(K.d(1),K=we(_),K&&(K.c(),K.m(le,null))),(!J||B&64)&&ge($,"modal-open",_[6])},i(_){J||(gt(c.$$.fragment,_),J=!0)},o(_){xt(c.$$.fragment,_),J=!1},d(_){_&&t(o),It(c),z.d(),K.d(),Je=!1,Pt(Xe)}}}function Lt(p,o,c){let d="",r="",v="",m,N=!1,k=!0,D,C=!1;async function w(){try{const g=await Tt(D.payload);m=await Vt(D.payload.flowId,g==null?void 0:g.signature,g==null?void 0:g.pubKey),await Nt(d),St.set(m.payload.token),c(3,N=!0)}catch{c(2,v="Something went wrong"),console.error(v)}}const T=async()=>{d===r&&d!==""&&d.length>=6&&k?(c(2,v=""),c(3,N=!0)):d.length<6?c(2,v="Password has to be at least 6 characters long"):k?c(2,v="Passwords are not matching"):c(2,v="You need to accept the terms and conditions"),c(5,D=await Dt())},E=async()=>{await w(),v.length<1&&Ct.set(0),c(6,C=!0)};function V(){d=this.value,c(0,d)}function Y(){r=this.value,c(1,r)}return[d,r,v,N,k,D,C,T,E,V,Y,()=>c(4,k=!k),()=>c(3,N=!1),()=>{c(3,N=!1),c(6,C=!1)}]}class qt extends bt{constructor(o){super(),mt(this,o,Lt,Yt,wt,{})}}export{qt as component}; diff --git a/build/app/immutable/nodes/9.821502a3.js b/build/app/immutable/nodes/9.821502a3.js new file mode 100644 index 000000000..86e5e9e5a --- /dev/null +++ b/build/app/immutable/nodes/9.821502a3.js @@ -0,0 +1 @@ +import{S as Pt,i as It,s as Mt,k as w,y as Xe,a as I,l as b,m as H,z as $e,c as M,h as y,n as v,b as O,A as qe,D as d,d as ie,f as At,g as se,B as Fe,I as We,o as Gt,v as Et,H as ye,q as X,r as $,K as Ee,Q as He,J as ge,u as kt,L as Lt,U as _e}from"../chunks/index.f3b06f47.js";import{H as Rt}from"../chunks/Header.b7ab37a3.js";import{j as Ht,c as ee,r as Nt,w as Ut,d as Ct}from"../chunks/store.26750aee.js";import{g as jt,I as Ot,a as zt}from"../chunks/qrCode.9ed71917.js";import{c as Vt}from"../chunks/secondAuth.f9ee4b2a.js";import{a as Bt}from"../chunks/public.02ab71de.js";import{A as Wt}from"../chunks/AskToLogin.c273dc76.js";const Xt=async()=>{let p="",r="";Ht.subscribe(l=>p=l);try{return[await(await fetch(`${Bt}/profile`,{method:"GET",headers:{Authorization:`Bearer ${p}`}})).json(),null]}catch(l){return r=l,[null,r]}};var Qe={},Ye={exports:{}};Ye.exports;(function(p){(function(r,l,o){function f(e){var a=this,u=i();a.next=function(){var t=2091639*a.s0+a.c*23283064365386963e-26;return a.s0=a.s1,a.s1=a.s2,a.s2=t-(a.c=t|0)},a.c=1,a.s0=u(" "),a.s1=u(" "),a.s2=u(" "),a.s0-=u(e),a.s0<0&&(a.s0+=1),a.s1-=u(e),a.s1<0&&(a.s1+=1),a.s2-=u(e),a.s2<0&&(a.s2+=1),u=null}function k(e,a){return a.c=e.c,a.s0=e.s0,a.s1=e.s1,a.s2=e.s2,a}function x(e,a){var u=new f(e),t=a&&a.state,n=u.next;return n.int32=function(){return u.next()*4294967296|0},n.double=function(){return n()+(n()*2097152|0)*11102230246251565e-32},n.quick=n,t&&(typeof t=="object"&&k(t,u),n.state=function(){return k(u,{})}),n}function i(){var e=4022871197,a=function(u){u=String(u);for(var t=0;t>>0,n-=e,n*=e,e=n>>>0,n-=e,e+=n*4294967296}return(e>>>0)*23283064365386963e-26};return a}l&&l.exports?l.exports=x:o&&o.amd?o(function(){return x}):this.alea=x})(ee,p,!1)})(Ye);var $t=Ye.exports,Je={exports:{}};Je.exports;(function(p){(function(r,l,o){function f(i){var e=this,a="";e.x=0,e.y=0,e.z=0,e.w=0,e.next=function(){var t=e.x^e.x<<11;return e.x=e.y,e.y=e.z,e.z=e.w,e.w^=e.w>>>19^t^t>>>8},i===(i|0)?e.x=i:a+=i;for(var u=0;u>>0)/4294967296};return t.double=function(){do var n=a.next()>>>11,s=(a.next()>>>0)/4294967296,c=(n+s)/(1<<21);while(c===0);return c},t.int32=a.next,t.quick=t,u&&(typeof u=="object"&&k(u,a),t.state=function(){return k(a,{})}),t}l&&l.exports?l.exports=x:o&&o.amd?o(function(){return x}):this.xor128=x})(ee,p,!1)})(Je);var qt=Je.exports,Ke={exports:{}};Ke.exports;(function(p){(function(r,l,o){function f(i){var e=this,a="";e.next=function(){var t=e.x^e.x>>>2;return e.x=e.y,e.y=e.z,e.z=e.w,e.w=e.v,(e.d=e.d+362437|0)+(e.v=e.v^e.v<<4^(t^t<<1))|0},e.x=0,e.y=0,e.z=0,e.w=0,e.v=0,i===(i|0)?e.x=i:a+=i;for(var u=0;u>>4),e.next()}function k(i,e){return e.x=i.x,e.y=i.y,e.z=i.z,e.w=i.w,e.v=i.v,e.d=i.d,e}function x(i,e){var a=new f(i),u=e&&e.state,t=function(){return(a.next()>>>0)/4294967296};return t.double=function(){do var n=a.next()>>>11,s=(a.next()>>>0)/4294967296,c=(n+s)/(1<<21);while(c===0);return c},t.int32=a.next,t.quick=t,u&&(typeof u=="object"&&k(u,a),t.state=function(){return k(a,{})}),t}l&&l.exports?l.exports=x:o&&o.amd?o(function(){return x}):this.xorwow=x})(ee,p,!1)})(Ke);var Ft=Ke.exports,Ze={exports:{}};Ze.exports;(function(p){(function(r,l,o){function f(i){var e=this;e.next=function(){var u=e.x,t=e.i,n,s;return n=u[t],n^=n>>>7,s=n^n<<24,n=u[t+1&7],s^=n^n>>>10,n=u[t+3&7],s^=n^n>>>3,n=u[t+4&7],s^=n^n<<7,n=u[t+7&7],n=n^n<<13,s^=n^n<<9,u[t]=s,e.i=t+1&7,s};function a(u,t){var n,s=[];if(t===(t|0))s[0]=t;else for(t=""+t,n=0;n0;--n)u.next()}a(e,i)}function k(i,e){return e.x=i.x.slice(),e.i=i.i,e}function x(i,e){i==null&&(i=+new Date);var a=new f(i),u=e&&e.state,t=function(){return(a.next()>>>0)/4294967296};return t.double=function(){do var n=a.next()>>>11,s=(a.next()>>>0)/4294967296,c=(n+s)/(1<<21);while(c===0);return c},t.int32=a.next,t.quick=t,u&&(u.x&&k(u,a),t.state=function(){return k(a,{})}),t}l&&l.exports?l.exports=x:o&&o.amd?o(function(){return x}):this.xorshift7=x})(ee,p,!1)})(Ze);var Qt=Ze.exports,et={exports:{}};et.exports;(function(p){(function(r,l,o){function f(i){var e=this;e.next=function(){var u=e.w,t=e.X,n=e.i,s,c;return e.w=u=u+1640531527|0,c=t[n+34&127],s=t[n=n+1&127],c^=c<<13,s^=s<<17,c^=c>>>15,s^=s>>>12,c=t[n]=c^s,e.i=n,c+(u^u>>>16)|0};function a(u,t){var n,s,c,C,D,P=[],z=128;for(t===(t|0)?(s=t,t=null):(t=t+"\0",s=0,z=Math.max(z,t.length)),c=0,C=-32;C>>15,s^=s<<4,s^=s>>>13,C>=0&&(D=D+1640531527|0,n=P[C&127]^=s+D,c=n==0?c+1:0);for(c>=128&&(P[(t&&t.length||0)&127]=-1),c=127,C=4*128;C>0;--C)s=P[c+34&127],n=P[c=c+1&127],s^=s<<13,n^=n<<17,s^=s>>>15,n^=n>>>12,P[c]=s^n;u.w=D,u.X=P,u.i=c}a(e,i)}function k(i,e){return e.i=i.i,e.w=i.w,e.X=i.X.slice(),e}function x(i,e){i==null&&(i=+new Date);var a=new f(i),u=e&&e.state,t=function(){return(a.next()>>>0)/4294967296};return t.double=function(){do var n=a.next()>>>11,s=(a.next()>>>0)/4294967296,c=(n+s)/(1<<21);while(c===0);return c},t.int32=a.next,t.quick=t,u&&(u.X&&k(u,a),t.state=function(){return k(a,{})}),t}l&&l.exports?l.exports=x:o&&o.amd?o(function(){return x}):this.xor4096=x})(ee,p,!1)})(et);var Yt=et.exports,tt={exports:{}};tt.exports;(function(p){(function(r,l,o){function f(i){var e=this,a="";e.next=function(){var t=e.b,n=e.c,s=e.d,c=e.a;return t=t<<25^t>>>7^n,n=n-s|0,s=s<<24^s>>>8^c,c=c-t|0,e.b=t=t<<20^t>>>12^n,e.c=n=n-s|0,e.d=s<<16^n>>>16^c,e.a=c-t|0},e.a=0,e.b=0,e.c=-1640531527,e.d=1367130551,i===Math.floor(i)?(e.a=i/4294967296|0,e.b=i|0):a+=i;for(var u=0;u>>0)/4294967296};return t.double=function(){do var n=a.next()>>>11,s=(a.next()>>>0)/4294967296,c=(n+s)/(1<<21);while(c===0);return c},t.int32=a.next,t.quick=t,u&&(typeof u=="object"&&k(u,a),t.state=function(){return k(a,{})}),t}l&&l.exports?l.exports=x:o&&o.amd?o(function(){return x}):this.tychei=x})(ee,p,!1)})(tt);var Jt=tt.exports,Dt={exports:{}};(function(p){(function(r,l,o){var f=256,k=6,x=52,i="random",e=o.pow(f,k),a=o.pow(2,x),u=a*2,t=f-1,n;function s(m,g,S){var B=[];g=g==!0?{entropy:!0}:g||{};var A=P(D(g.entropy?[m,q(l)]:m??z(),3),B),L=new c(B),G=function(){for(var _=L.g(k),T=e,R=0;_=u;)_/=2,T/=2,R>>>=1;return(_+R)/T};return G.int32=function(){return L.g(4)|0},G.quick=function(){return L.g(4)/4294967296},G.double=G,P(q(L.S),l),(g.pass||S||function(_,T,R,j){return j&&(j.S&&C(j,L),_.state=function(){return C(L,{})}),R?(o[i]=_,T):_})(G,A,"global"in g?g.global:this==o,g.state)}function c(m){var g,S=m.length,B=this,A=0,L=B.i=B.j=0,G=B.S=[];for(S||(m=[S++]);A{ne[he]=null}),At(),S=ne[g],S?S.p(h,E):(S=ne[g]=at[g](h),S.c()),se(S,1),S.m(m,null)),(!re||E&32)&&Ee(m,"bg-gray-900",h[5]),Ce===(Ce=lt(h))&&F?F.p(h,E):(F.d(1),F=Ce(h),F&&(F.c(),F.m(ae,null))),E&2&&Q.value!==h[1]&&He(Q,h[1]),E&4&&Y.value!==h[2]&&He(Y,h[2]),(!re||E&1)&&Ee(Z,"modal-open",h[0])},i(h){re||(se(S),re=!0)},o(h){ie(S),re=!1},d(h){h&&y(r),U&&U.d(),h&&y(c),h&&y(C),ne[g].d(),F.d(),h&&y(be),h&&y(te),h&&y(ke),h&&y(Z),Ve=!1,Lt(rt)}}}function cr(p){let r,l;return{c(){r=w("img"),this.h()},l(o){r=b(o,"IMG",{src:!0,alt:!0,class:!0}),this.h()},h(){_e(r.src,l=p[4])||v(r,"src",l),v(r,"alt","aptos token"),v(r,"class","w-32 h-32 rounded-full object-center flex items-center mx-2 mb-4")},m(o,f){O(o,r,f)},p(o,f){f&16&&!_e(r.src,l=o[4])&&v(r,"src",l)},d(o){o&&y(r)}}}function fr(p){let r,l;return{c(){r=w("img"),this.h()},l(o){r=b(o,"IMG",{src:!0,alt:!0,class:!0}),this.h()},h(){_e(r.src,l=p[9])||v(r,"src",l),v(r,"alt","aptos token"),v(r,"class","w-28 flex items-center mx-2 mb-4")},m(o,f){O(o,r,f)},p(o,f){f&512&&!_e(r.src,l=o[9])&&v(r,"src",l)},d(o){o&&y(r)}}}function pr(p){let r,l;return r=new Ot({props:{src:zt,color:"#11D9C5"}}),{c(){Xe(r.$$.fragment)},l(o){$e(r.$$.fragment,o)},m(o,f){qe(r,o,f),l=!0},p:ye,i(o){l||(se(r.$$.fragment,o),l=!0)},o(o){ie(r.$$.fragment,o),l=!1},d(o){Fe(r,o)}}}function dr(p){let r;return{c(){r=X("COPIED")},l(l){r=$(l,"COPIED")},m(l,o){O(l,r,o)},p:ye,i:ye,o:ye,d(l){l&&y(r)}}}function hr(p){let r,l;return{c(){r=w("p"),l=X("Generating QR code...")},l(o){r=b(o,"P",{});var f=H(r);l=$(f,"Generating QR code..."),f.forEach(y)},m(o,f){O(o,r,f),d(r,l)},p:ye,d(o){o&&y(r)}}}function vr(p){let r,l;return{c(){r=w("img"),this.h()},l(o){r=b(o,"IMG",{src:!0,alt:!0}),this.h()},h(){_e(r.src,l=p[8])||v(r,"src",l),v(r,"alt","QR Code")},m(o,f){O(o,r,f)},p(o,f){f&256&&!_e(r.src,l=o[8])&&v(r,"src",l)},d(o){o&&y(r)}}}function xr(p){let r,l,o,f,k,x,i,e,a;l=new Rt({});const u=[ur,sr],t=[];function n(s,c){return s[7]?0:1}return i=n(p),e=t[i]=u[i](p),{c(){r=w("div"),Xe(l.$$.fragment),o=I(),f=w("br"),k=I(),x=w("div"),e.c(),this.h()},l(s){r=b(s,"DIV",{class:!0});var c=H(r);$e(l.$$.fragment,c),o=M(c),f=b(c,"BR",{}),k=M(c),x=b(c,"DIV",{class:!0});var C=H(x);e.l(C),C.forEach(y),c.forEach(y),this.h()},h(){v(x,"class","w-auto rounded-lg shadow-xl p-5"),v(r,"class","bg-white text-black dark:bg-gray-900 dark:text-white")},m(s,c){O(s,r,c),qe(l,r,null),d(r,o),d(r,f),d(r,k),d(r,x),t[i].m(x,null),a=!0},p(s,[c]){let C=i;i=n(s),i===C?t[i].p(s,c):(Et(),ie(t[C],1,1,()=>{t[C]=null}),At(),e=t[i],e?e.p(s,c):(e=t[i]=u[i](s),e.c()),se(e,1),e.m(x,null))},i(s){a||(se(l.$$.fragment,s),se(e),a=!0)},o(s){ie(l.$$.fragment,s),ie(e),a=!1},d(s){s&&y(r),Fe(l),t[i].d()}}}function mr(p,r,l){let o,f,k;We(p,Ht,_=>l(19,o=_)),We(p,Ut,_=>l(20,f=_)),We(p,Ct,_=>l(9,k=_));let x=!1,i="",e="",a="",u="",t=!1,n,s,c="...",C=!0,D="",P="";const z=()=>{if(k!=="")return;const _=new Tt;Ct.set(_.generateRandomAvatar(f))},q=()=>{navigator.clipboard.writeText(f),l(5,t=!0)};async function m(){l(8,P=await jt(f))}const g=async()=>{const[_,T]=await Xt();l(3,a=_.payload.name),l(4,u=_.payload.profilePictureUrl),T?D=f:D=_.payload.walletAddress,l(6,c=`${D.substring(0,5)}...${D.substring(D.length-4)}`)},S=async()=>{try{let _=i.trim(),T=e.trim(),R=new Headers;R.append("Authorization",`Bearer ${o}`),R.append("Content-Type","application/json");let j=JSON.stringify({name:_,profilePictureUrl:T});(await fetch(`${Bt}/profile`,{method:"PATCH",headers:R,body:j})).status!==200&&(s="Failed to update the profile")}catch(_){console.error(_)}finally{await g(),l(0,x=!1)}};Gt(async()=>{await g(),z(),m(),n.payload.roles,l(7,[C]=await Vt(),C)});const B=()=>l(0,x=!0);function A(){i=this.value,l(1,i)}function L(){e=this.value,l(2,e)}return[x,i,e,a,u,t,c,C,P,k,q,S,B,A,L,()=>l(0,x=!1)]}class Sr extends Pt{constructor(r){super(),It(this,r,mr,xr,Mt,{})}}export{Sr as component}; diff --git a/build/app/immutable/nodes/9.da97ad2b.js b/build/app/immutable/nodes/9.da97ad2b.js deleted file mode 100644 index 61993bcfc..000000000 --- a/build/app/immutable/nodes/9.da97ad2b.js +++ /dev/null @@ -1 +0,0 @@ -import{S as Lt,i as Rt,s as Ut,k as x,y as Ze,a as T,l as _,m as H,z as et,c as I,h as m,n as v,b as $,A as tt,D as d,d as fe,f as Pt,g as pe,B as rt,I as Je,o as jt,v as Tt,H as ke,q as X,r as q,K as Te,P as be,J as ce,u as Ke,L as zt,V as Ce}from"../chunks/index.83ca82d8.js";import{H as Ot}from"../chunks/Header.80bfed2a.js";import{j as It,c as re,r as Vt,w as Wt,d as Bt}from"../chunks/store.e259513c.js";import{g as Xt,I as qt,a as $t}from"../chunks/qrCode.2a0c2c54.js";import{c as Ft}from"../chunks/secondAuth.d664856c.js";import{a as Mt}from"../chunks/public.02ab71de.js";import{A as Yt}from"../chunks/AskToLogin.9a7bb0f7.js";const Qt=async()=>{let f="",n="";It.subscribe(o=>f=o);try{return[await(await fetch(`${Mt}/profile`,{method:"GET",headers:{Authorization:`Bearer ${f}`}})).json(),null]}catch(o){return n=o,[null,n]}};var nt={},at={exports:{}};at.exports;(function(f){(function(n,o,l){function p(e){var r=this,u=s();r.next=function(){var t=2091639*r.s0+r.c*23283064365386963e-26;return r.s0=r.s1,r.s1=r.s2,r.s2=t-(r.c=t|0)},r.c=1,r.s0=u(" "),r.s1=u(" "),r.s2=u(" "),r.s0-=u(e),r.s0<0&&(r.s0+=1),r.s1-=u(e),r.s1<0&&(r.s1+=1),r.s2-=u(e),r.s2<0&&(r.s2+=1),u=null}function w(e,r){return r.c=e.c,r.s0=e.s0,r.s1=e.s1,r.s2=e.s2,r}function y(e,r){var u=new p(e),t=r&&r.state,a=u.next;return a.int32=function(){return u.next()*4294967296|0},a.double=function(){return a()+(a()*2097152|0)*11102230246251565e-32},a.quick=a,t&&(typeof t=="object"&&w(t,u),a.state=function(){return w(u,{})}),a}function s(){var e=4022871197,r=function(u){u=String(u);for(var t=0;t>>0,a-=e,a*=e,e=a>>>0,a-=e,e+=a*4294967296}return(e>>>0)*23283064365386963e-26};return r}o&&o.exports?o.exports=y:l&&l.amd?l(function(){return y}):this.alea=y})(re,f,!1)})(at);var Jt=at.exports,ot={exports:{}};ot.exports;(function(f){(function(n,o,l){function p(s){var e=this,r="";e.x=0,e.y=0,e.z=0,e.w=0,e.next=function(){var t=e.x^e.x<<11;return e.x=e.y,e.y=e.z,e.z=e.w,e.w^=e.w>>>19^t^t>>>8},s===(s|0)?e.x=s:r+=s;for(var u=0;u>>0)/4294967296};return t.double=function(){do var a=r.next()>>>11,i=(r.next()>>>0)/4294967296,c=(a+i)/(1<<21);while(c===0);return c},t.int32=r.next,t.quick=t,u&&(typeof u=="object"&&w(u,r),t.state=function(){return w(r,{})}),t}o&&o.exports?o.exports=y:l&&l.amd?l(function(){return y}):this.xor128=y})(re,f,!1)})(ot);var Kt=ot.exports,lt={exports:{}};lt.exports;(function(f){(function(n,o,l){function p(s){var e=this,r="";e.next=function(){var t=e.x^e.x>>>2;return e.x=e.y,e.y=e.z,e.z=e.w,e.w=e.v,(e.d=e.d+362437|0)+(e.v=e.v^e.v<<4^(t^t<<1))|0},e.x=0,e.y=0,e.z=0,e.w=0,e.v=0,s===(s|0)?e.x=s:r+=s;for(var u=0;u>>4),e.next()}function w(s,e){return e.x=s.x,e.y=s.y,e.z=s.z,e.w=s.w,e.v=s.v,e.d=s.d,e}function y(s,e){var r=new p(s),u=e&&e.state,t=function(){return(r.next()>>>0)/4294967296};return t.double=function(){do var a=r.next()>>>11,i=(r.next()>>>0)/4294967296,c=(a+i)/(1<<21);while(c===0);return c},t.int32=r.next,t.quick=t,u&&(typeof u=="object"&&w(u,r),t.state=function(){return w(r,{})}),t}o&&o.exports?o.exports=y:l&&l.amd?l(function(){return y}):this.xorwow=y})(re,f,!1)})(lt);var Zt=lt.exports,it={exports:{}};it.exports;(function(f){(function(n,o,l){function p(s){var e=this;e.next=function(){var u=e.x,t=e.i,a,i;return a=u[t],a^=a>>>7,i=a^a<<24,a=u[t+1&7],i^=a^a>>>10,a=u[t+3&7],i^=a^a>>>3,a=u[t+4&7],i^=a^a<<7,a=u[t+7&7],a=a^a<<13,i^=a^a<<9,u[t]=i,e.i=t+1&7,i};function r(u,t){var a,i=[];if(t===(t|0))i[0]=t;else for(t=""+t,a=0;a0;--a)u.next()}r(e,s)}function w(s,e){return e.x=s.x.slice(),e.i=s.i,e}function y(s,e){s==null&&(s=+new Date);var r=new p(s),u=e&&e.state,t=function(){return(r.next()>>>0)/4294967296};return t.double=function(){do var a=r.next()>>>11,i=(r.next()>>>0)/4294967296,c=(a+i)/(1<<21);while(c===0);return c},t.int32=r.next,t.quick=t,u&&(u.x&&w(u,r),t.state=function(){return w(r,{})}),t}o&&o.exports?o.exports=y:l&&l.amd?l(function(){return y}):this.xorshift7=y})(re,f,!1)})(it);var er=it.exports,st={exports:{}};st.exports;(function(f){(function(n,o,l){function p(s){var e=this;e.next=function(){var u=e.w,t=e.X,a=e.i,i,c;return e.w=u=u+1640531527|0,c=t[a+34&127],i=t[a=a+1&127],c^=c<<13,i^=i<<17,c^=c>>>15,i^=i>>>12,c=t[a]=c^i,e.i=a,c+(u^u>>>16)|0};function r(u,t){var a,i,c,E,j,G=[],D=128;for(t===(t|0)?(i=t,t=null):(t=t+"\0",i=0,D=Math.max(D,t.length)),c=0,E=-32;E>>15,i^=i<<4,i^=i>>>13,E>=0&&(j=j+1640531527|0,a=G[E&127]^=i+j,c=a==0?c+1:0);for(c>=128&&(G[(t&&t.length||0)&127]=-1),c=127,E=4*128;E>0;--E)i=G[c+34&127],a=G[c=c+1&127],i^=i<<13,a^=a<<17,i^=i>>>15,a^=a>>>12,G[c]=i^a;u.w=j,u.X=G,u.i=c}r(e,s)}function w(s,e){return e.i=s.i,e.w=s.w,e.X=s.X.slice(),e}function y(s,e){s==null&&(s=+new Date);var r=new p(s),u=e&&e.state,t=function(){return(r.next()>>>0)/4294967296};return t.double=function(){do var a=r.next()>>>11,i=(r.next()>>>0)/4294967296,c=(a+i)/(1<<21);while(c===0);return c},t.int32=r.next,t.quick=t,u&&(u.X&&w(u,r),t.state=function(){return w(r,{})}),t}o&&o.exports?o.exports=y:l&&l.amd?l(function(){return y}):this.xor4096=y})(re,f,!1)})(st);var tr=st.exports,ut={exports:{}};ut.exports;(function(f){(function(n,o,l){function p(s){var e=this,r="";e.next=function(){var t=e.b,a=e.c,i=e.d,c=e.a;return t=t<<25^t>>>7^a,a=a-i|0,i=i<<24^i>>>8^c,c=c-t|0,e.b=t=t<<20^t>>>12^a,e.c=a=a-i|0,e.d=i<<16^a>>>16^c,e.a=c-t|0},e.a=0,e.b=0,e.c=-1640531527,e.d=1367130551,s===Math.floor(s)?(e.a=s/4294967296|0,e.b=s|0):r+=s;for(var u=0;u>>0)/4294967296};return t.double=function(){do var a=r.next()>>>11,i=(r.next()>>>0)/4294967296,c=(a+i)/(1<<21);while(c===0);return c},t.int32=r.next,t.quick=t,u&&(typeof u=="object"&&w(u,r),t.state=function(){return w(r,{})}),t}o&&o.exports?o.exports=y:l&&l.amd?l(function(){return y}):this.tychei=y})(re,f,!1)})(ut);var rr=ut.exports,Gt={exports:{}};(function(f){(function(n,o,l){var p=256,w=6,y=52,s="random",e=l.pow(p,w),r=l.pow(2,y),u=r*2,t=p-1,a;function i(g,C,M){var S=[];C=C==!0?{entropy:!0}:C||{};var k=G(j(C.entropy?[g,R(o)]:g??D(),3),S),B=new c(S),U=function(){for(var P=B.g(w),V=e,N=0;P=u;)P/=2,V/=2,N>>>=1;return(P+N)/V};return U.int32=function(){return B.g(4)|0},U.quick=function(){return B.g(4)/4294967296},U.double=U,G(R(B.S),o),(C.pass||M||function(P,V,N,b){return b&&(b.S&&E(b,B),P.state=function(){return E(B,{})}),N?(l[s]=P,V):P})(U,k,"global"in C?C.global:this==l,C.state)}function c(g){var C,M=g.length,S=this,k=0,B=S.i=S.j=0,U=S.S=[];for(M||(g=[M++]);k{oe[ge]=null}),Pt(),B=oe[k],B?B.p(h,A):(B=oe[k]=pt[k](h),B.c()),pe(B,1),B.m(S,null)),(!te||A&128)&&Te(S,"bg-gray-900",h[7]),Be===(Be=ht(h))&&Y?Y.p(h,A):(Y.d(1),Y=Be(h),Y&&(Y.c(),Y.m(ie,null))),A&2&&Q.value!==h[1]&&be(Q,h[1]),A&4&&J.value!==h[2]&&be(J,h[2]),A&8&&K.value!==h[3]&&be(K,h[3]),(!te||A&1)&&Te(ee,"modal-open",h[0])},i(h){te||(pe(B),te=!0)},o(h){fe(B),te=!1},d(h){h&&m(n),O&&O.d(),h&&m(G),h&&m(D),oe[k].d(),Y.d(),h&&m(Ee),h&&m(ae),h&&m(He),h&&m(ee),Fe=!1,zt(ct)}}}function vr(f){let n,o;return{c(){n=x("img"),this.h()},l(l){n=_(l,"IMG",{src:!0,alt:!0,class:!0}),this.h()},h(){Ce(n.src,o=f[6])||v(n,"src",o),v(n,"alt","aptos token"),v(n,"class","w-32 h-32 rounded-full object-center flex items-center mx-2 mb-4")},m(l,p){$(l,n,p)},p(l,p){p&64&&!Ce(n.src,o=l[6])&&v(n,"src",o)},d(l){l&&m(n)}}}function yr(f){let n,o;return{c(){n=x("img"),this.h()},l(l){n=_(l,"IMG",{src:!0,alt:!0,class:!0}),this.h()},h(){Ce(n.src,o=f[11])||v(n,"src",o),v(n,"alt","aptos token"),v(n,"class","w-28 flex items-center mx-2 mb-4")},m(l,p){$(l,n,p)},p(l,p){p&2048&&!Ce(n.src,o=l[11])&&v(n,"src",o)},d(l){l&&m(n)}}}function mr(f){let n,o;return n=new qt({props:{src:$t,color:"#11D9C5"}}),{c(){Ze(n.$$.fragment)},l(l){et(n.$$.fragment,l)},m(l,p){tt(n,l,p),o=!0},p:ke,i(l){o||(pe(n.$$.fragment,l),o=!0)},o(l){fe(n.$$.fragment,l),o=!1},d(l){rt(n,l)}}}function gr(f){let n;return{c(){n=X("COPIED")},l(o){n=q(o,"COPIED")},m(o,l){$(o,n,l)},p:ke,i:ke,o:ke,d(o){o&&m(n)}}}function xr(f){let n,o;return{c(){n=x("p"),o=X("Generating QR code...")},l(l){n=_(l,"P",{});var p=H(n);o=q(p,"Generating QR code..."),p.forEach(m)},m(l,p){$(l,n,p),d(n,o)},p:ke,d(l){l&&m(n)}}}function _r(f){let n,o;return{c(){n=x("img"),this.h()},l(l){n=_(l,"IMG",{src:!0,alt:!0}),this.h()},h(){Ce(n.src,o=f[10])||v(n,"src",o),v(n,"alt","QR Code")},m(l,p){$(l,n,p)},p(l,p){p&1024&&!Ce(n.src,o=l[10])&&v(n,"src",o)},d(l){l&&m(n)}}}function wr(f){let n,o,l,p,w,y,s,e,r;o=new Ot({});const u=[hr,dr],t=[];function a(i,c){return i[9]?0:1}return s=a(f),e=t[s]=u[s](f),{c(){n=x("div"),Ze(o.$$.fragment),l=T(),p=x("br"),w=T(),y=x("div"),e.c(),this.h()},l(i){n=_(i,"DIV",{class:!0});var c=H(n);et(o.$$.fragment,c),l=I(c),p=_(c,"BR",{}),w=I(c),y=_(c,"DIV",{class:!0});var E=H(y);e.l(E),E.forEach(m),c.forEach(m),this.h()},h(){v(y,"class","w-auto rounded-lg shadow-xl p-5"),v(n,"class","bg-white text-black dark:bg-gray-900 dark:text-white")},m(i,c){$(i,n,c),tt(o,n,null),d(n,l),d(n,p),d(n,w),d(n,y),t[s].m(y,null),r=!0},p(i,[c]){let E=s;s=a(i),s===E?t[s].p(i,c):(Tt(),fe(t[E],1,1,()=>{t[E]=null}),Pt(),e=t[s],e?e.p(i,c):(e=t[s]=u[s](i),e.c()),pe(e,1),e.m(y,null))},i(i){r||(pe(o.$$.fragment,i),pe(e),r=!0)},o(i){fe(o.$$.fragment,i),fe(e),r=!1},d(i){i&&m(n),rt(o),t[s].d()}}}function br(f,n,o){let l,p,w;Je(f,It,b=>o(22,l=b)),Je(f,Wt,b=>o(23,p=b)),Je(f,Bt,b=>o(11,w=b));let y=!1,s="",e="",r="",u="",t="",a="",i=!1,c,E,j="...",G=!0,D="",R="";const g=()=>{if(w!=="")return;const b=new Nt;Bt.set(b.generateRandomAvatar(p))},C=()=>{navigator.clipboard.writeText(p),o(7,i=!0)};async function M(){o(10,R=await Xt(p))}const S=async()=>{const[b,z]=await Qt();o(4,u=b.payload.name),o(5,t=b.payload.country),o(6,a=b.payload.profilePictureUrl),z?D=p:D=b.payload.walletAddress,o(8,j=`${D.substring(0,5)}...${D.substring(D.length-4)}`)},k=async()=>{try{let b=s.trim(),z=e.trim(),F=r.trim(),le=new Headers;le.append("Authorization",`Bearer ${l}`),le.append("Content-Type","application/json");let ne=JSON.stringify({name:b,country:z,profilePictureUrl:F});(await fetch(`${Mt}/profile`,{method:"PATCH",headers:le,body:ne})).status!==200&&(E="Failed to update the profile")}catch(b){console.error(b)}finally{await S(),o(0,y=!1)}};jt(async()=>{await S(),g(),M(),c.payload.roles,o(9,[G]=await Ft(),G)});const B=()=>o(0,y=!0);function U(){s=this.value,o(1,s)}function P(){e=this.value,o(2,e)}function V(){r=this.value,o(3,r)}return[y,s,e,r,u,t,a,i,j,G,R,w,C,k,B,U,P,V,()=>o(0,y=!1)]}class Dr extends Lt{constructor(n){super(),Rt(this,n,br,wr,Ut,{})}}export{Dr as component}; diff --git a/build/app/version.json b/build/app/version.json index 71355e96d..c63b4aeef 100644 --- a/build/app/version.json +++ b/build/app/version.json @@ -1 +1 @@ -{"version":"1700659441027"} \ No newline at end of file +{"version":"1701430280745"} \ No newline at end of file diff --git a/build/index.html b/build/index.html index 6075f5f61..f623edb7f 100644 --- a/build/index.html +++ b/build/index.html @@ -5,19 +5,19 @@ - - - - - - - - - - - + + + + + + + + + + + - +
      @@ -43,7 +43,7 @@ > Menu -
        +
      + diff --git a/build/manifest.json b/build/manifest.json index 497d0c935..faf35f2bc 100644 --- a/build/manifest.json +++ b/build/manifest.json @@ -2,8 +2,8 @@ "name": "NetSepio", "version": "0.4.0", "manifest_version": 3, - "short_name": "Detect & Label Cyber Threats", - "description": "Browser Extension to detect threats and label domains as spam, malware, advertisements, etc.", + "short_name": "Your AI Powered Crypto Security Partner", + "description": "A crypto security tool that uses AI and community insights to protect you from scams and malicious websites", "content_security_policy": { "extension_pages": "script-src 'self'; object-src 'self'; script-src-elem 'self' 'unsafe-inline'" }, diff --git a/src/lib/components/Dashboard.svelte b/src/lib/components/Dashboard.svelte index b25ee1d2b..1d5c5cabe 100644 --- a/src/lib/components/Dashboard.svelte +++ b/src/lib/components/Dashboard.svelte @@ -8,19 +8,31 @@ import { jwtToken } from '$lib/store/store'; import { get } from 'svelte/store'; import { writable } from 'svelte/store'; + import Loader from './Loader.svelte'; let currentUrl: string; let url: string | undefined; let stats: any = []; let donutData: any; + let isLoading = false; // let tempUrl = 'https://blog.com'; - const getUrl = async () => { - const [tab] = await chrome.tabs.query({ active: true, currentWindow: true }); - url = tab.url?.toLocaleLowerCase(); + $: urlWithoutProtocol = url?.replace(/^https?:\/\/([^/]+)\/.*/, '$1'); + // new URL(`${url}`).hostname; + // // tempUrl? - console.log(url); + const getUrl = async () => { + isLoading = true; + try { + const [tab] = await chrome.tabs.query({ active: true, currentWindow: true }); + url = tab.url?.toLocaleLowerCase(); + } catch (error) { + console.log(error) + }finally{ + isLoading = false; + } + // console.log(url); }; let getStats = async () => { @@ -36,10 +48,13 @@ } }; - const response = await fetch(`${PUBLIC_GATEWAY_URL}/stats?siteUrl=${url}`, options); + const response = await fetch( + `${PUBLIC_GATEWAY_URL}/stats?domain=${urlWithoutProtocol}`, + options + ); const result = await response.json(); stats = result.payload; - console.log(stats); + console.log(result); }; const structureDataForDonut = async () => { @@ -60,33 +75,14 @@ } }; - // Add a reactive variable to trigger re-fetching data - let triggerReload = writable(false); - - const reloadStats = async () => { - // Update the reactive variable to trigger re-fetching - triggerReload.set(!get(triggerReload)); - - console.log(triggerReload); - - // Fetch data asynchronously - await getStats(); - await structureDataForDonut(); - triggerReload.set(false); // Reset the trigger - }; onMount(async () => { await getUrl(); await getStats(); await structureDataForDonut(); - currentUrl = url?.substring(0, 23) + '...'; + // currentUrl = urlWithoutProtocol; }); - $: reloadStats(); // Initial data fetch - - $: if (get(triggerReload)) { - reloadStats(); // When triggerReload changes, re-fetch data - }
      @@ -94,7 +90,7 @@
      - {currentUrl} + {urlWithoutProtocol}
      {#if stats && stats.length > 0} @@ -110,8 +106,8 @@

      What people say

      - - + +
      @@ -120,7 +116,7 @@

      Be the first to review this website

      - +
      {/if} @@ -130,4 +126,10 @@ {/if} --> + diff --git a/src/lib/components/Header.svelte b/src/lib/components/Header.svelte index fdecfdd77..84909478c 100644 --- a/src/lib/components/Header.svelte +++ b/src/lib/components/Header.svelte @@ -32,7 +32,7 @@ -
        +
        • diff --git a/src/lib/components/Logout.svelte b/src/lib/components/Logout.svelte index c9f14ef56..5fc946e08 100644 --- a/src/lib/components/Logout.svelte +++ b/src/lib/components/Logout.svelte @@ -27,7 +27,7 @@
          diff --git a/src/lib/components/Review.svelte b/src/lib/components/Review.svelte index a4d65ed4d..1507c8e54 100644 --- a/src/lib/components/Review.svelte +++ b/src/lib/components/Review.svelte @@ -1,8 +1,8 @@ diff --git a/src/lib/components/SubmitReview.svelte b/src/lib/components/SubmitReview.svelte index f52dbad17..3edbced18 100644 --- a/src/lib/components/SubmitReview.svelte +++ b/src/lib/components/SubmitReview.svelte @@ -5,12 +5,12 @@ import Loader from './Loader.svelte'; // Declare the reloadStats prop - export let reloadStats: () => void; + // export let reloadStats: () => void; let showModal = false; let title: string; let description: string; let websiteUrl: string | undefined; - let category: string = 'website'; + let category: string; let siteTag: string; let siteSafety: string; let siteType: string; @@ -18,7 +18,9 @@ let isAuthenticated = false; let isLoading = false; let siteRating = 0; - // let tempUrl = 'https://blog.com'; + + // let tempUrl = 'https://blog.com'; + // $: urlWithoutProtocol = tempUrl?.replace(/^https?:\/\//, '').replace(/\/$/, ''); const getUrl = async () => { const [tab] = await chrome.tabs.query({ active: true, currentWindow: true }); @@ -35,7 +37,7 @@ category: category ?? '', image: image ?? '', domainAddress: domainAddress ?? '', - siteUrl: websiteUrl ?? tempUrl, + siteUrl: websiteUrl ?? '', siteType: siteType ?? '', siteTag: siteTag ?? '', siteSafety: siteSafety ?? '', @@ -47,9 +49,9 @@ try { let reviewData = { - category: category ?? 'website', + category: category ?? '', domainAddress: domainAddress ?? '', - siteUrl: websiteUrl ?? tempUrl, + siteUrl: websiteUrl ?? '', siteType: siteType ?? '', siteTag: siteTag ?? '', siteSafety: siteSafety ?? '', @@ -64,14 +66,7 @@ isLoading = false; showModal = false; // Call the reloadStats function to trigger a dashboard reload - reloadStats(); - siteRating = 0; - title = ''; - description = ''; - category = 'website'; - siteType = ''; - siteTag = ''; - siteSafety = ''; + location.reload(); } }; @@ -111,14 +106,26 @@ disabled /> - - + + + - - - - + + + + + + diff --git a/src/lib/components/WalletMain.svelte b/src/lib/components/WalletMain.svelte index ba753355b..995bb634d 100644 --- a/src/lib/components/WalletMain.svelte +++ b/src/lib/components/WalletMain.svelte @@ -2,11 +2,13 @@ import { authenticateUser, checkAuth } from '$lib/modules/secondAuth'; import Wallet from '$lib/components/Wallet.svelte'; import { onMount } from 'svelte'; + import Logout from '$lib/components/Logout.svelte'; let password = ''; let errorMessage = ''; let isWalletPresent = false; let isWalletUnlocked = false; + let resetPassword = false; const handleSubmit = async () => { if (password.length >= 6) { @@ -34,7 +36,7 @@

          Wallet is locked!

          1} > {errorMessage.length > 1 ? errorMessage : `Enter Password`} @@ -45,7 +47,14 @@ class="input input-bordered input-md w-full max-w-xs dark:bg-gray-700 dark:text-white" bind:value={password} /> - + +

          + + + {#if resetPassword} + + {/if} +
          {:else if isWalletPresent && isWalletUnlocked} {/if} diff --git a/src/lib/store/store.ts b/src/lib/store/store.ts index 5b7434429..a0fc75873 100644 --- a/src/lib/store/store.ts +++ b/src/lib/store/store.ts @@ -46,7 +46,7 @@ async function getMnemonicPhrase(): Promise { async function removeMnemonicPhrase(): Promise { try { - await sessionStorage.removeItem('mnemonicPhrase'); + sessionStorage.removeItem('mnemonicPhrase'); return true; } catch (error) { return false; diff --git a/src/routes/profile/+page.svelte b/src/routes/profile/+page.svelte index 196fc9df2..66767367b 100644 --- a/src/routes/profile/+page.svelte +++ b/src/routes/profile/+page.svelte @@ -27,10 +27,10 @@ let showModal = false; let userName = ''; - let userCountry = ''; + // let userCountry = ''; let userImage = ''; let name = ''; - let country = ''; + // let country = ''; let image = ''; let copied = false; let clicked = false; @@ -62,7 +62,7 @@ const [response, error] = await fetchUserProfileData(); name = response.payload.name; - country = response.payload.country; + // country = response.payload.country; image = response.payload.profilePictureUrl; if (!error) { @@ -78,7 +78,7 @@ const handleUpdateProfile = async () => { try { let trimmedUserName = userName.trim(); - let trimmedUserCountry = userCountry.trim(); + // let trimmedUserCountry = userCountry.trim(); let trimmedUserImage = userImage.trim(); let myHeaders = new Headers(); @@ -87,7 +87,7 @@ let body = JSON.stringify({ name: trimmedUserName, - country: trimmedUserCountry, + // country: trimmedUserCountry, profilePictureUrl: trimmedUserImage }); @@ -142,9 +142,9 @@
          Your Profile
          -
          -

          Username: {name || "What's your name"}

          - Country: {country || "What' your country"} +
          +

          Username:

          +

          {name || 'Create your username'}

          @@ -222,12 +222,12 @@ placeholder="Enter your name" bind:value={userName} /> - + /> -->