@credenza3/passport-sui 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/{App-D8Bsln9W.js → App-CiVYs_be.js} +18 -18
  2. package/dist/{App-D8Bsln9W.js.map → App-CiVYs_be.js.map} +1 -1
  3. package/dist/{Button-FKUK-FB7.js → Button-BoE6UH7J.js} +4 -4
  4. package/dist/{Button-FKUK-FB7.js.map → Button-BoE6UH7J.js.map} +1 -1
  5. package/dist/{ButtonBack-DVLBbyYt.js → ButtonBack-ZuJIZvbM.js} +4 -4
  6. package/dist/{ButtonBack-DVLBbyYt.js.map → ButtonBack-ZuJIZvbM.js.map} +1 -1
  7. package/dist/{ButtonLink-BA_d9t6a.js → ButtonLink-Dn3fg--i.js} +3 -3
  8. package/dist/{ButtonLink-BA_d9t6a.js.map → ButtonLink-Dn3fg--i.js.map} +1 -1
  9. package/dist/{ConfirmAccount-XP4R3yKl.js → ConfirmAccount-B_xj8sv2.js} +9 -9
  10. package/dist/{ConfirmAccount-XP4R3yKl.js.map → ConfirmAccount-B_xj8sv2.js.map} +1 -1
  11. package/dist/{ContentHeader-DtZj1Hgo.js → ContentHeader-f66pzycq.js} +3 -3
  12. package/dist/{ContentHeader-DtZj1Hgo.js.map → ContentHeader-f66pzycq.js.map} +1 -1
  13. package/dist/{Error-CSKRMnSS.js → Error-De7P-glG.js} +5 -5
  14. package/dist/{Error-CSKRMnSS.js.map → Error-De7P-glG.js.map} +1 -1
  15. package/dist/{Input-C7u8hGWy.js → Input-C8HxuxD3.js} +4 -4
  16. package/dist/{Input-C7u8hGWy.js.map → Input-C8HxuxD3.js.map} +1 -1
  17. package/dist/{Label-4blmucYF.js → Label-J_7qJTYM.js} +3 -3
  18. package/dist/{Label-4blmucYF.js.map → Label-J_7qJTYM.js.map} +1 -1
  19. package/dist/{Loader-Cu6YpHI4.js → Loader-Dfa1xrjr.js} +3 -3
  20. package/dist/{Loader-Cu6YpHI4.js.map → Loader-Dfa1xrjr.js.map} +1 -1
  21. package/dist/{Login-Cwa8nS7a.js → Login-CHb27HoO.js} +9 -9
  22. package/dist/{Login-Cwa8nS7a.js.map → Login-CHb27HoO.js.map} +1 -1
  23. package/dist/{Logout-sQNv9wRk.js → Logout-BSauJopw.js} +6 -6
  24. package/dist/{Logout-sQNv9wRk.js.map → Logout-BSauJopw.js.map} +1 -1
  25. package/dist/{Nav-HeCF0rs6.js → Nav-CachMbHd.js} +5 -5
  26. package/dist/{Nav-HeCF0rs6.js.map → Nav-CachMbHd.js.map} +1 -1
  27. package/dist/{PassportId-ChJDp_KV.js → PassportId-DAmN88Xx.js} +7 -7
  28. package/dist/{PassportId-ChJDp_KV.js.map → PassportId-DAmN88Xx.js.map} +1 -1
  29. package/dist/{Payment-DVmk-5zj.js → Payment-CAVUR9D4.js} +11 -11
  30. package/dist/{Payment-DVmk-5zj.js.map → Payment-CAVUR9D4.js.map} +1 -1
  31. package/dist/{PaymentResult-BPNUpR6a.js → PaymentResult-Bs7bYTUy.js} +4 -4
  32. package/dist/{PaymentResult-BPNUpR6a.js.map → PaymentResult-Bs7bYTUy.js.map} +1 -1
  33. package/dist/{Profile-DN_Y-fHB.js → Profile-BUft3Yyd.js} +7 -7
  34. package/dist/{Profile-DN_Y-fHB.js.map → Profile-BUft3Yyd.js.map} +1 -1
  35. package/dist/{ProgressVideo-BgMprzFf.js → ProgressVideo-USviamwx.js} +6 -6
  36. package/dist/{ProgressVideo-BgMprzFf.js.map → ProgressVideo-USviamwx.js.map} +1 -1
  37. package/dist/{ProgressVideo.service-CiCieW6X.js → ProgressVideo.service-D9xqftcM.js} +2 -2
  38. package/dist/{ProgressVideo.service-CiCieW6X.js.map → ProgressVideo.service-D9xqftcM.js.map} +1 -1
  39. package/dist/{RichAlert-dSY8MJTQ.js → RichAlert-DGHqlYas.js} +6 -6
  40. package/dist/{RichAlert-dSY8MJTQ.js.map → RichAlert-DGHqlYas.js.map} +1 -1
  41. package/dist/{Scanner-qMAihqZq.js → Scanner-BmB0QpJ4.js} +7 -7
  42. package/dist/{Scanner-qMAihqZq.js.map → Scanner-BmB0QpJ4.js.map} +1 -1
  43. package/dist/{SendTokens-D87tzGx9.js → SendTokens-BfLxsIne.js} +7 -7
  44. package/dist/{SendTokens-D87tzGx9.js.map → SendTokens-BfLxsIne.js.map} +1 -1
  45. package/dist/{Sign-BGA7enT4.js → Sign-DNPq5HuJ.js} +7 -7
  46. package/dist/{Sign-BGA7enT4.js.map → Sign-DNPq5HuJ.js.map} +1 -1
  47. package/dist/{Stripe.service-C119NvVj.js → Stripe.service-8oeSe26X.js} +3 -3
  48. package/dist/{Stripe.service-C119NvVj.js.map → Stripe.service-8oeSe26X.js.map} +1 -1
  49. package/dist/{UpdateProfile-DKgDmHn9.js → UpdateProfile-C0wtR1WE.js} +10 -10
  50. package/dist/{UpdateProfile-DKgDmHn9.js.map → UpdateProfile-C0wtR1WE.js.map} +1 -1
  51. package/dist/{UserInfo-CFTntH_A.js → UserInfo-Bm0e3CV5.js} +4 -4
  52. package/dist/{UserInfo-CFTntH_A.js.map → UserInfo-Bm0e3CV5.js.map} +1 -1
  53. package/dist/{Wallet-eC5Y6pR2.js → Wallet-PitFWALT.js} +8 -8
  54. package/dist/{Wallet-eC5Y6pR2.js.map → Wallet-PitFWALT.js.map} +1 -1
  55. package/dist/{each-CvlyEbiw.js → each-DnjePYDb.js} +2 -2
  56. package/dist/{each-CvlyEbiw.js.map → each-DnjePYDb.js.map} +1 -1
  57. package/dist/{html-CoDrz2MD.js → html-BQDrIauy.js} +3 -3
  58. package/dist/{html-CoDrz2MD.js.map → html-BQDrIauy.js.map} +1 -1
  59. package/dist/{index-qsKp2OJc.js → index-DYFZGr8a.js} +6 -6
  60. package/dist/{index-qsKp2OJc.js.map → index-DYFZGr8a.js.map} +1 -1
  61. package/dist/{index-client-DqEnqJlv.js → index-client-CT6sSU2-.js} +2 -2
  62. package/dist/{index-client-DqEnqJlv.js.map → index-client-CT6sSU2-.js.map} +1 -1
  63. package/dist/{input-B_qkEDlO.js → input-DhTOoToG.js} +3 -3
  64. package/dist/{input-B_qkEDlO.js.map → input-DhTOoToG.js.map} +1 -1
  65. package/dist/{legacy-CYnP3rAB.js → legacy-CMJEekqF.js} +2 -2
  66. package/dist/{legacy-CYnP3rAB.js.map → legacy-CMJEekqF.js.map} +1 -1
  67. package/dist/passport.es.js +1 -1
  68. package/dist/passport.umd.js +3 -3
  69. package/dist/passport.umd.js.map +1 -1
  70. package/dist/{socket-io-C0kUrNSm.js → socket-io-D23M6alP.js} +2 -2
  71. package/dist/{socket-io-C0kUrNSm.js.map → socket-io-D23M6alP.js.map} +1 -1
  72. package/dist/types/Passport.d.ts +1 -1
  73. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(`@import"https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap";.crdz-ui *,.crdz-ui :before,.crdz-ui :after{font-family:Poppins,serif;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}.crdz-ui :before,.crdz-ui :after{--tw-content: ""}.crdz-ui hr{height:0;color:inherit;border-top-width:1px}.crdz-ui abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.crdz-ui h1,.crdz-ui h2,.crdz-ui h3,.crdz-ui h4,.crdz-ui h5,.crdz-ui h6{font-size:inherit;font-weight:inherit}.crdz-ui a{color:inherit;text-decoration:inherit}.crdz-ui b,.crdz-ui strong{font-weight:bolder}.crdz-ui code,.crdz-ui kbd,.crdz-ui samp,.crdz-ui pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}.crdz-ui small{font-size:80%}.crdz-ui sub,.crdz-ui sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.crdz-ui sub{bottom:-.25em}.crdz-ui sup{top:-.5em}.crdz-ui table{text-indent:0;border-color:inherit;border-collapse:collapse}.crdz-ui button,.crdz-ui select{text-transform:none}.crdz-ui button,.crdz-ui [type=button],.crdz-ui [type=reset],.crdz-ui [type=submit]{font-size:100%;-webkit-appearance:button;background-image:none}.crdz-ui :-moz-focusring{outline:auto}.crdz-ui :-moz-ui-invalid{box-shadow:none}.crdz-ui progress{vertical-align:baseline}.crdz-ui ::-webkit-inner-spin-button,.crdz-ui ::-webkit-outer-spin-button{height:auto}.crdz-ui [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.crdz-ui ::-webkit-search-decoration{-webkit-appearance:none}.crdz-ui ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.crdz-ui summary{display:list-item}.crdz-ui blockquote,.crdz-ui dl,.crdz-ui dd,.crdz-ui h1,.crdz-ui h2,.crdz-ui h3,.crdz-ui h4,.crdz-ui h5,.crdz-ui h6,.crdz-ui hr,.crdz-ui figure,.crdz-ui p,.crdz-ui span,.crdz-ui label,.crdz-ui pre{margin:0;letter-spacing:normal!important}.crdz-ui label{text-transform:initial!important}.crdz-ui fieldset{margin:0;padding:0}.crdz-ui legend{padding:0}.crdz-ui ol,.crdz-ui ul,.crdz-ui menu{list-style:none;margin:0;padding:0}.crdz-ui dialog{padding:0}.crdz-ui textarea{resize:vertical}.crdz-ui input::-moz-placeholder,.crdz-ui textarea::-moz-placeholder{opacity:1;color:#9ca3af}.crdz-ui input::placeholder,.crdz-ui textarea::placeholder{opacity:1;color:#9ca3af}.crdz-ui button,.crdz-ui [role=button]{cursor:pointer}.crdz-ui :disabled{cursor:default}.crdz-ui img,.crdz-ui svg,.crdz-ui video,.crdz-ui canvas,.crdz-ui audio,.crdz-ui iframe,.crdz-ui embed,.crdz-ui object{display:block;vertical-align:middle;opacity:1}.crdz-ui [hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.crtw-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border-width:0!important}.crtw-pointer-events-none{pointer-events:none!important}.crtw-invisible{visibility:hidden!important}.crtw-fixed{position:fixed!important}.crtw-absolute{position:absolute!important}.crtw-relative{position:relative!important}.crtw-bottom-0{bottom:0!important}.crtw-left-0{left:0!important}.crtw-right-0{right:0!important}.crtw-top-0{top:0!important}.crtw-top-\\[8px\\]{top:8px!important}.crtw-z-10{z-index:10!important}.crtw-z-50{z-index:50!important}.crtw-z-\\[-1\\]{z-index:-1!important}.crtw-z-\\[1050\\]{z-index:1050!important}.crtw-float-right{float:right!important}.crtw-m-2{margin:.5rem!important}.crtw-m-3\\.5{margin:.875rem!important}.crtw-m-5{margin:1.25rem!important}.crtw-mx-1\\.5{margin-left:.375rem!important;margin-right:.375rem!important}.crtw-mx-auto{margin-left:auto!important;margin-right:auto!important}.crtw-my-0{margin-top:0!important;margin-bottom:0!important}.crtw-my-0\\.5{margin-top:.125rem!important;margin-bottom:.125rem!important}.crtw-my-4{margin-top:1rem!important;margin-bottom:1rem!important}.crtw-my-5{margin-top:1.25rem!important;margin-bottom:1.25rem!important}.crtw-mb-1{margin-bottom:.25rem!important}.crtw-mb-1\\.5{margin-bottom:.375rem!important}.crtw-mb-2{margin-bottom:.5rem!important}.crtw-mb-2\\.5{margin-bottom:.625rem!important}.crtw-mb-3{margin-bottom:.75rem!important}.crtw-mb-3\\.5{margin-bottom:.875rem!important}.crtw-mb-4{margin-bottom:1rem!important}.crtw-mb-5{margin-bottom:1.25rem!important}.crtw-mb-6{margin-bottom:1.5rem!important}.crtw-mb-9{margin-bottom:2.25rem!important}.crtw-mb-\\[30px\\]{margin-bottom:30px!important}.crtw-ml-1{margin-left:.25rem!important}.crtw-ml-1\\.5{margin-left:.375rem!important}.crtw-ml-2\\.5{margin-left:.625rem!important}.crtw-mr-0\\.5{margin-right:.125rem!important}.crtw-mr-1\\.5{margin-right:.375rem!important}.crtw-mr-14{margin-right:3.5rem!important}.crtw-mr-2{margin-right:.5rem!important}.crtw-mt-0\\.5{margin-top:.125rem!important}.crtw-mt-1{margin-top:.25rem!important}.crtw-mt-1\\.5{margin-top:.375rem!important}.crtw-mt-2\\.5{margin-top:.625rem!important}.crtw-mt-3\\.5{margin-top:.875rem!important}.crtw-mt-4{margin-top:1rem!important}.crtw-mt-6{margin-top:1.5rem!important}.crtw-mt-9{margin-top:2.25rem!important}.crtw-mt-\\[-10px\\]{margin-top:-10px!important}.crtw-mt-\\[5px\\]{margin-top:5px!important}.crtw-box-border{box-sizing:border-box!important}.crtw-block{display:block!important}.crtw-flex{display:flex!important}.crtw-inline-flex{display:inline-flex!important}.crtw-hidden{display:none!important}.crtw-h-1\\.5{height:.375rem!important}.crtw-h-11{height:2.75rem!important}.crtw-h-3{height:.75rem!important}.crtw-h-4{height:1rem!important}.crtw-h-64{height:16rem!important}.crtw-h-7{height:1.75rem!important}.crtw-h-8{height:2rem!important}.crtw-h-9{height:2.25rem!important}.crtw-h-\\[30px\\]{height:30px!important}.crtw-h-\\[50px\\]{height:50px!important}.crtw-h-\\[53px\\]{height:53px!important}.crtw-h-full{height:100%!important}.crtw-max-h-full{max-height:100%!important}.crtw-min-h-\\[155px\\]{min-height:155px!important}.crtw-min-h-screen{min-height:100vh!important}.crtw-w-1\\.5{width:.375rem!important}.crtw-w-1\\/2{width:50%!important}.crtw-w-11{width:2.75rem!important}.crtw-w-16{width:4rem!important}.crtw-w-4{width:1rem!important}.crtw-w-40{width:10rem!important}.crtw-w-56{width:14rem!important}.crtw-w-8{width:2rem!important}.crtw-w-\\[110px\\]{width:110px!important}.crtw-w-\\[70px\\]{width:70px!important}.crtw-w-\\[90px\\]{width:90px!important}.crtw-w-full{width:100%!important}.crtw-min-w-16{min-width:4rem!important}.crtw-max-w-\\[30px\\]{max-width:30px!important}.crtw-max-w-\\[380px\\]{max-width:380px!important}.crtw-max-w-xs{max-width:20rem!important}.crtw-flex-1{flex:1 1 0%!important}@keyframes crtw-spin{to{transform:rotate(360deg)}}.crtw-animate-spin{animation:crtw-spin 1s linear infinite!important}.crtw-cursor-pointer{cursor:pointer!important}.crtw-appearance-none{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important}.crtw-flex-row{flex-direction:row!important}.crtw-flex-col{flex-direction:column!important}.crtw-items-start{align-items:flex-start!important}.crtw-items-center{align-items:center!important}.crtw-justify-start{justify-content:flex-start!important}.crtw-justify-center{justify-content:center!important}.crtw-justify-between{justify-content:space-between!important}.crtw-gap-10{gap:2.5rem!important}.crtw-gap-14{gap:3.5rem!important}.crtw-gap-2\\.5{gap:.625rem!important}.crtw-gap-3{gap:.75rem!important}.crtw-gap-4{gap:1rem!important}.crtw-gap-6{gap:1.5rem!important}.crtw-gap-9{gap:2.25rem!important}.crtw-gap-\\[22px\\]{gap:22px!important}.crtw-overflow-hidden{overflow:hidden!important}.crtw-overflow-y-scroll{overflow-y:scroll!important}.crtw-whitespace-normal{white-space:normal!important}.crtw-break-words{overflow-wrap:break-word!important}.crtw-break-all{word-break:break-all!important}.crtw-rounded{border-radius:.25rem!important}.crtw-rounded-\\[10px\\]{border-radius:10px!important}.crtw-rounded-\\[3px\\]{border-radius:3px!important}.crtw-rounded-full{border-radius:9999px!important}.crtw-rounded-lg{border-radius:.5rem!important}.crtw-rounded-md{border-radius:.375rem!important}.crtw-rounded-sm{border-radius:.125rem!important}.crtw-border{border-width:1px!important}.crtw-border-0{border-width:0px!important}.crtw-border-2{border-width:2px!important}.crtw-border-b-2{border-bottom-width:2px!important}.crtw-border-t-2{border-top-width:2px!important}.crtw-border-\\[\\#990008\\]{--tw-border-opacity: 1 !important;border-color:rgb(153 0 8 / var(--tw-border-opacity, 1))!important}.crtw-border-\\[\\#d9d9d9\\]{--tw-border-opacity: 1 !important;border-color:rgb(217 217 217 / var(--tw-border-opacity, 1))!important}.crtw-border-black{--tw-border-opacity: 1 !important;border-color:rgb(0 0 0 / var(--tw-border-opacity, 1))!important}.crtw-border-blue-800{--tw-border-opacity: 1 !important;border-color:rgb(30 64 175 / var(--tw-border-opacity, 1))!important}.crtw-border-gray-200{--tw-border-opacity: 1 !important;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))!important}.crtw-border-gray-300{--tw-border-opacity: 1 !important;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))!important}.crtw-border-gray-400{--tw-border-opacity: 1 !important;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))!important}.crtw-border-gray-700{--tw-border-opacity: 1 !important;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))!important}.crtw-bg-black{--tw-bg-opacity: 1 !important;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important}.crtw-bg-black\\/70{background-color:#000000b3!important}.crtw-bg-gray-200{--tw-bg-opacity: 1 !important;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))!important}.crtw-bg-gray-300{--tw-bg-opacity: 1 !important;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))!important}.crtw-bg-green-500{--tw-bg-opacity: 1 !important;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))!important}.crtw-bg-red-500{--tw-bg-opacity: 1 !important;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))!important}.crtw-bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.crtw-fill-black{fill:#000!important}.crtw-fill-red-500{fill:#ef4444!important}.crtw-p-0{padding:0!important}.crtw-p-2\\.5{padding:.625rem!important}.crtw-p-px{padding:1px!important}.crtw-px-0{padding-left:0!important;padding-right:0!important}.crtw-px-0\\.5{padding-left:.125rem!important;padding-right:.125rem!important}.crtw-px-2{padding-left:.5rem!important;padding-right:.5rem!important}.crtw-px-2\\.5{padding-left:.625rem!important;padding-right:.625rem!important}.crtw-px-4{padding-left:1rem!important;padding-right:1rem!important}.crtw-px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}.crtw-px-\\[22px\\]{padding-left:22px!important;padding-right:22px!important}.crtw-py-0{padding-top:0!important;padding-bottom:0!important}.crtw-py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.crtw-py-2\\.5{padding-top:.625rem!important;padding-bottom:.625rem!important}.crtw-py-4{padding-top:1rem!important;padding-bottom:1rem!important}.crtw-pb-2{padding-bottom:.5rem!important}.crtw-pb-9{padding-bottom:2.25rem!important}.crtw-pl-5{padding-left:1.25rem!important}.crtw-pr-1\\.5{padding-right:.375rem!important}.crtw-pr-5{padding-right:1.25rem!important}.crtw-pt-11{padding-top:2.75rem!important}.crtw-pt-4{padding-top:1rem!important}.crtw-pt-5{padding-top:1.25rem!important}.crtw-pt-\\[3px\\]{padding-top:3px!important}.crtw-text-left{text-align:left!important}.crtw-text-center{text-align:center!important}.crtw-text-right{text-align:right!important}.crtw-text-justify{text-align:justify!important}.crtw-font-\\[\\'Poppins\\'\\]{font-family:Poppins!important}.crtw-font-\\[\\'poppins\\'\\],.crtw-font-\\[poppins\\]{font-family:poppins!important}.crtw-text-2xl{font-size:1.5rem!important;line-height:2rem!important}.crtw-text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.crtw-text-\\[10px\\]{font-size:10px!important}.crtw-text-\\[13px\\]{font-size:13px!important}.crtw-text-\\[21px\\]{font-size:21px!important}.crtw-text-\\[9px\\]{font-size:9px!important}.crtw-text-base{font-size:1rem!important;line-height:1.5rem!important}.crtw-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.crtw-text-sm{font-size:.875rem!important;line-height:1.25rem!important}.crtw-text-xl{font-size:1.25rem!important;line-height:1.75rem!important}.crtw-text-xs{font-size:.75rem!important;line-height:1rem!important}.crtw-font-bold{font-weight:700!important}.crtw-font-medium{font-weight:500!important}.crtw-font-semibold{font-weight:600!important}.crtw-uppercase{text-transform:uppercase!important}.crtw-text-\\[\\#121e2b\\]{--tw-text-opacity: 1 !important;color:rgb(18 30 43 / var(--tw-text-opacity, 1))!important}.crtw-text-\\[\\#990008\\]{--tw-text-opacity: 1 !important;color:rgb(153 0 8 / var(--tw-text-opacity, 1))!important}.crtw-text-black{--tw-text-opacity: 1 !important;color:rgb(0 0 0 / var(--tw-text-opacity, 1))!important}.crtw-text-blue-600{--tw-text-opacity: 1 !important;color:rgb(37 99 235 / var(--tw-text-opacity, 1))!important}.crtw-text-gray-400{--tw-text-opacity: 1 !important;color:rgb(156 163 175 / var(--tw-text-opacity, 1))!important}.crtw-text-gray-500{--tw-text-opacity: 1 !important;color:rgb(107 114 128 / var(--tw-text-opacity, 1))!important}.crtw-text-gray-600{--tw-text-opacity: 1 !important;color:rgb(75 85 99 / var(--tw-text-opacity, 1))!important}.crtw-text-gray-700{--tw-text-opacity: 1 !important;color:rgb(55 65 81 / var(--tw-text-opacity, 1))!important}.crtw-text-gray-800{--tw-text-opacity: 1 !important;color:rgb(31 41 55 / var(--tw-text-opacity, 1))!important}.crtw-text-hightlightColor{--tw-text-opacity: 1 !important;color:rgb(11 114 224 / var(--tw-text-opacity, 1))!important}.crtw-text-red-500{--tw-text-opacity: 1 !important;color:rgb(239 68 68 / var(--tw-text-opacity, 1))!important}.crtw-text-red-600{--tw-text-opacity: 1 !important;color:rgb(220 38 38 / var(--tw-text-opacity, 1))!important}.crtw-text-textMain{--tw-text-opacity: 1 !important;color:rgb(31 31 31 / var(--tw-text-opacity, 1))!important}.crtw-text-warningTextColor{--tw-text-opacity: 1 !important;color:rgb(153 0 8 / var(--tw-text-opacity, 1))!important}.crtw-text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.crtw-underline{text-decoration-line:underline!important}.crtw-no-underline{text-decoration-line:none!important}.crtw-placeholder-\\[\\#d9d9d9\\]::-moz-placeholder{--tw-placeholder-opacity: 1 !important;color:rgb(217 217 217 / var(--tw-placeholder-opacity, 1))!important}.crtw-placeholder-\\[\\#d9d9d9\\]::placeholder{--tw-placeholder-opacity: 1 !important;color:rgb(217 217 217 / var(--tw-placeholder-opacity, 1))!important}.crtw-outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.crtw-backdrop-blur-lg{--tw-backdrop-blur: blur(16px) !important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}.crtw-backdrop-blur-md{--tw-backdrop-blur: blur(12px) !important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}.first\\:crtw-rounded-l:first-child{border-top-left-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.last\\:crtw-rounded-r:last-child{border-top-right-radius:.25rem!important;border-bottom-right-radius:.25rem!important}.hover\\:crtw-bg-gray-100:hover{--tw-bg-opacity: 1 !important;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))!important}.hover\\:crtw-bg-gray-800:hover{--tw-bg-opacity: 1 !important;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))!important}.hover\\:crtw-text-blue-800:hover{--tw-text-opacity: 1 !important;color:rgb(30 64 175 / var(--tw-text-opacity, 1))!important}.focus\\:crtw-border-\\[\\#121e2b\\]:focus{--tw-border-opacity: 1 !important;border-color:rgb(18 30 43 / var(--tw-border-opacity, 1))!important}.focus\\:crtw-border-\\[\\#990008\\]:focus{--tw-border-opacity: 1 !important;border-color:rgb(153 0 8 / var(--tw-border-opacity, 1))!important}.focus\\:crtw-border-blue-800:focus{--tw-border-opacity: 1 !important;border-color:rgb(30 64 175 / var(--tw-border-opacity, 1))!important}.focus\\:crtw-border-blue-900:focus{--tw-border-opacity: 1 !important;border-color:rgb(30 58 138 / var(--tw-border-opacity, 1))!important}.focus\\:crtw-text-blue-900:focus{--tw-text-opacity: 1 !important;color:rgb(30 58 138 / var(--tw-text-opacity, 1))!important}.focus\\:crtw-outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}.focus\\:crtw-outline-0:focus{outline-width:0px!important}.disabled\\:crtw-bg-\\[\\#d9d9d9\\]:disabled{--tw-bg-opacity: 1 !important;background-color:rgb(217 217 217 / var(--tw-bg-opacity, 1))!important}.crtw-group:hover .group-hover\\:crtw-visible{visibility:visible!important}@media (min-width: 640px){.sm\\:crtw-m-4{margin:1rem!important}.sm\\:crtw-mb-px{margin-bottom:1px!important}.sm\\:crtw-max-w-\\[360px\\]{max-width:360px!important}.sm\\:crtw-max-w-md{max-width:28rem!important}.sm\\:crtw-px-1\\.5{padding-left:.375rem!important;padding-right:.375rem!important}.sm\\:crtw-pt-2{padding-top:.5rem!important}.sm\\:crtw-pt-\\[50px\\]{padding-top:50px!important}.sm\\:crtw-text-2xl{font-size:1.5rem!important;line-height:2rem!important}.sm\\:crtw-text-\\[11px\\]{font-size:11px!important}.sm\\:crtw-text-base{font-size:1rem!important;line-height:1.5rem!important}.sm\\:crtw-text-sm{font-size:.875rem!important;line-height:1.25rem!important}}@media (min-width: 768px){.md\\:crtw-text-2xl{font-size:1.5rem!important;line-height:2rem!important}}@media (min-height: 650px){.sm-tall\\:crtw-max-h-\\[650px\\]{max-height:650px!important}}`)),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
- (function(Do,$o){typeof exports=="object"&&typeof module<"u"?$o(exports):typeof define=="function"&&define.amd?define(["exports"],$o):(Do=typeof globalThis<"u"?globalThis:Do||self,$o(Do.CredenzaPassport={}))})(this,function(Do){"use strict";var ake=Object.defineProperty;var iQ=Do=>{throw TypeError(Do)};var cke=(Do,$o,Ha)=>$o in Do?ake(Do,$o,{enumerable:!0,configurable:!0,writable:!0,value:Ha}):Do[$o]=Ha;var oQ=(Do,$o,Ha)=>cke(Do,typeof $o!="symbol"?$o+"":$o,Ha),sQ=(Do,$o,Ha)=>$o.has(Do)||iQ("Cannot "+Ha);var hu=(Do,$o,Ha)=>(sQ(Do,$o,"read from private field"),Ha?Ha.call(Do):$o.get(Do)),YU=(Do,$o,Ha)=>$o.has(Do)?iQ("Cannot add the same private member more than once"):$o instanceof WeakSet?$o.add(Do):$o.set(Do,Ha),XU=(Do,$o,Ha,B1)=>(sQ(Do,$o,"write to private field"),B1?B1.call(Do,Ha):$o.set(Do,Ha),Ha);var kh,gl,vH;const Ha={version:"0.1.7"};var B1=(e=>(e.OAUTH="OAUTH",e.METAMASK="METAMASK",e))(B1||{}),Rd=(e=>(e.TESTNET="testnet",e.MAINNET="mainnet",e))(Rd||{}),ac=(e=>(e.DEVNET="devnet",e.TESTNET="testnet",e.MAINNET="mainnet",e))(ac||{}),Lr=(e=>(e.PROFILE="profile",e.LOGOUT="logout",e.LOGIN="login",e.PASSPORT_ID="passportId",e.WALLET="wallet",e.UPDATE_PROFILE="updateProfile",e.SEND_TOKENS="sendTokens",e.CONFIRM_ACCOUNT="confirmAccount",e.PAYMENT="payment",e.PAYMENT_RESULT="paymentResult",e.SCANNER="scanner",e.ERROR="error",e.LOADER="loader",e.SIGN="sign",e.RICH_ALERT="richAlert",e))(Lr||{}),oS=(e=>(e.STRIPE="STRIPE",e.ERC20="ERC20",e))(oS||{}),Mf=(e=>(e.WHITE="WHITE",e.BLACK="BLACK",e))(Mf||{}),D0=(e=>(e.TOP="TOP",e.BOTTOM="BOTTOM",e))(D0||{}),Dd=(e=>(e.LEFT="LEFT",e.RIGHT="RIGHT",e))(Dd||{}),Ld=(e=>(e.PASSPORT_ID="PASSPORT_ID",e.TOKENS_PURCHASE="TOKENS_PURCHASE",e.AIR_DROP_COIN="AIR_DROP_COIN",e.AIR_DROP_ASSET="AIR_DROP_ASSET",e.REQUEST_LOYALTY_POINTS="REQUEST_LOYALTY_POINTS",e.PASSPORT_ID_PASS="PASSPORT_ID_PASS",e))(Ld||{}),$U=(e=>(e.EMAIL="email",e.PHONE="phone",e))($U||{}),pu=(e=>(e.CREDIT_CARD="CREDIT_CARD",e.CREDENZA_BALANCE="CREDENZA_BALANCE",e))(pu||{}),eb=(e=>(e.ACCESS_TOKEN="credenza:passport:accessToken",e.QR_CODE="credenza:passport:qrCode",e))(eb||{}),pi=(e=>(e.ERROR="ERROR",e.INIT="INIT",e.LOGIN="LOGIN",e.LOGOUT="LOGOUT",e.PAYMENT="PAYMENT",e.SEND_TOKENS="SEND_TOKENS",e.SEND_NFT="SEND_NFT",e.RECHECK_BALANCE="RECHECK_BALANCE",e.UPDATE_PROFILE="UPDATE_PROFILE",e.ACCOUNT_CONFIRMED="ACCOUNT_CONFIRMED",e.TRANSACTION="TRANSACTION",e.RECEIPT="RECEIPT",e.UI_CLOSED="UI_CLOSED",e.REQUEST_AIRDROP="REQUEST_AIRDROP",e.REQUEST_LOYALTY_POINTS="REQUEST_LOYALTY_POINTS",e))(pi||{}),e9={},tb={};tb.byteLength=gQ,tb.toByteArray=vQ,tb.fromByteArray=AQ;for(var Uf=[],Gu=[],hQ=typeof Uint8Array<"u"?Uint8Array:Array,sS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T1=0,pQ=sS.length;T1<pQ;++T1)Uf[T1]=sS[T1],Gu[sS.charCodeAt(T1)]=T1;Gu[45]=62,Gu[95]=63;function t9(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function gQ(e){var t=t9(e),r=t[0],n=t[1];return(r+n)*3/4-n}function mQ(e,t,r){return(t+r)*3/4-r}function vQ(e){var t,r=t9(e),n=r[0],i=r[1],o=new hQ(mQ(e,n,i)),s=0,a=i>0?n-4:n,u;for(u=0;u<a;u+=4)t=Gu[e.charCodeAt(u)]<<18|Gu[e.charCodeAt(u+1)]<<12|Gu[e.charCodeAt(u+2)]<<6|Gu[e.charCodeAt(u+3)],o[s++]=t>>16&255,o[s++]=t>>8&255,o[s++]=t&255;return i===2&&(t=Gu[e.charCodeAt(u)]<<2|Gu[e.charCodeAt(u+1)]>>4,o[s++]=t&255),i===1&&(t=Gu[e.charCodeAt(u)]<<10|Gu[e.charCodeAt(u+1)]<<4|Gu[e.charCodeAt(u+2)]>>2,o[s++]=t>>8&255,o[s++]=t&255),o}function yQ(e){return Uf[e>>18&63]+Uf[e>>12&63]+Uf[e>>6&63]+Uf[e&63]}function wQ(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(yQ(n));return i.join("")}function AQ(e){for(var t,r=e.length,n=r%3,i=[],o=16383,s=0,a=r-n;s<a;s+=o)i.push(wQ(e,s,s+o>a?a:s+o));return n===1?(t=e[r-1],i.push(Uf[t>>2]+Uf[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Uf[t>>10]+Uf[t>>4&63]+Uf[t<<2&63]+"=")),i.join("")}var aS={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */aS.read=function(e,t,r,n,i){var o,s,a=i*8-n-1,u=(1<<a)-1,p=u>>1,g=-7,y=r?i-1:0,E=r?-1:1,M=e[t+y];for(y+=E,o=M&(1<<-g)-1,M>>=-g,g+=a;g>0;o=o*256+e[t+y],y+=E,g-=8);for(s=o&(1<<-g)-1,o>>=-g,g+=n;g>0;s=s*256+e[t+y],y+=E,g-=8);if(o===0)o=1-p;else{if(o===u)return s?NaN:(M?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-p}return(M?-1:1)*s*Math.pow(2,o-n)},aS.write=function(e,t,r,n,i,o){var s,a,u,p=o*8-i-1,g=(1<<p)-1,y=g>>1,E=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=n?0:o-1,I=n?1:-1,N=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=g):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+y>=1?t+=E/u:t+=E*Math.pow(2,1-y),t*u>=2&&(s++,u/=2),s+y>=g?(a=0,s=g):s+y>=1?(a=(t*u-1)*Math.pow(2,i),s=s+y):(a=t*Math.pow(2,y-1)*Math.pow(2,i),s=0));i>=8;e[r+M]=a&255,M+=I,a/=256,i-=8);for(s=s<<i|a,p+=i;p>0;e[r+M]=s&255,M+=I,s/=256,p-=8);e[r+M-I]|=N*128};/*!
2
+ (function(Do,$o){typeof exports=="object"&&typeof module<"u"?$o(exports):typeof define=="function"&&define.amd?define(["exports"],$o):(Do=typeof globalThis<"u"?globalThis:Do||self,$o(Do.CredenzaPassport={}))})(this,function(Do){"use strict";var ake=Object.defineProperty;var iQ=Do=>{throw TypeError(Do)};var cke=(Do,$o,Ha)=>$o in Do?ake(Do,$o,{enumerable:!0,configurable:!0,writable:!0,value:Ha}):Do[$o]=Ha;var oQ=(Do,$o,Ha)=>cke(Do,typeof $o!="symbol"?$o+"":$o,Ha),sQ=(Do,$o,Ha)=>$o.has(Do)||iQ("Cannot "+Ha);var hu=(Do,$o,Ha)=>(sQ(Do,$o,"read from private field"),Ha?Ha.call(Do):$o.get(Do)),YU=(Do,$o,Ha)=>$o.has(Do)?iQ("Cannot add the same private member more than once"):$o instanceof WeakSet?$o.add(Do):$o.set(Do,Ha),XU=(Do,$o,Ha,B1)=>(sQ(Do,$o,"write to private field"),B1?B1.call(Do,Ha):$o.set(Do,Ha),Ha);var kh,gl,vH;const Ha={version:"0.1.8"};var B1=(e=>(e.OAUTH="OAUTH",e.METAMASK="METAMASK",e))(B1||{}),Rd=(e=>(e.TESTNET="testnet",e.MAINNET="mainnet",e))(Rd||{}),ac=(e=>(e.DEVNET="devnet",e.TESTNET="testnet",e.MAINNET="mainnet",e))(ac||{}),Lr=(e=>(e.PROFILE="profile",e.LOGOUT="logout",e.LOGIN="login",e.PASSPORT_ID="passportId",e.WALLET="wallet",e.UPDATE_PROFILE="updateProfile",e.SEND_TOKENS="sendTokens",e.CONFIRM_ACCOUNT="confirmAccount",e.PAYMENT="payment",e.PAYMENT_RESULT="paymentResult",e.SCANNER="scanner",e.ERROR="error",e.LOADER="loader",e.SIGN="sign",e.RICH_ALERT="richAlert",e))(Lr||{}),oS=(e=>(e.STRIPE="STRIPE",e.ERC20="ERC20",e))(oS||{}),Mf=(e=>(e.WHITE="WHITE",e.BLACK="BLACK",e))(Mf||{}),D0=(e=>(e.TOP="TOP",e.BOTTOM="BOTTOM",e))(D0||{}),Dd=(e=>(e.LEFT="LEFT",e.RIGHT="RIGHT",e))(Dd||{}),Ld=(e=>(e.PASSPORT_ID="PASSPORT_ID",e.TOKENS_PURCHASE="TOKENS_PURCHASE",e.AIR_DROP_COIN="AIR_DROP_COIN",e.AIR_DROP_ASSET="AIR_DROP_ASSET",e.REQUEST_LOYALTY_POINTS="REQUEST_LOYALTY_POINTS",e.PASSPORT_ID_PASS="PASSPORT_ID_PASS",e))(Ld||{}),$U=(e=>(e.EMAIL="email",e.PHONE="phone",e))($U||{}),pu=(e=>(e.CREDIT_CARD="CREDIT_CARD",e.CREDENZA_BALANCE="CREDENZA_BALANCE",e))(pu||{}),eb=(e=>(e.ACCESS_TOKEN="credenza:passport:accessToken",e.QR_CODE="credenza:passport:qrCode",e))(eb||{}),pi=(e=>(e.ERROR="ERROR",e.INIT="INIT",e.LOGIN="LOGIN",e.LOGOUT="LOGOUT",e.PAYMENT="PAYMENT",e.SEND_TOKENS="SEND_TOKENS",e.SEND_NFT="SEND_NFT",e.RECHECK_BALANCE="RECHECK_BALANCE",e.UPDATE_PROFILE="UPDATE_PROFILE",e.ACCOUNT_CONFIRMED="ACCOUNT_CONFIRMED",e.TRANSACTION="TRANSACTION",e.RECEIPT="RECEIPT",e.UI_CLOSED="UI_CLOSED",e.REQUEST_AIRDROP="REQUEST_AIRDROP",e.REQUEST_LOYALTY_POINTS="REQUEST_LOYALTY_POINTS",e))(pi||{}),e9={},tb={};tb.byteLength=gQ,tb.toByteArray=vQ,tb.fromByteArray=AQ;for(var Uf=[],Gu=[],hQ=typeof Uint8Array<"u"?Uint8Array:Array,sS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T1=0,pQ=sS.length;T1<pQ;++T1)Uf[T1]=sS[T1],Gu[sS.charCodeAt(T1)]=T1;Gu[45]=62,Gu[95]=63;function t9(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function gQ(e){var t=t9(e),r=t[0],n=t[1];return(r+n)*3/4-n}function mQ(e,t,r){return(t+r)*3/4-r}function vQ(e){var t,r=t9(e),n=r[0],i=r[1],o=new hQ(mQ(e,n,i)),s=0,a=i>0?n-4:n,u;for(u=0;u<a;u+=4)t=Gu[e.charCodeAt(u)]<<18|Gu[e.charCodeAt(u+1)]<<12|Gu[e.charCodeAt(u+2)]<<6|Gu[e.charCodeAt(u+3)],o[s++]=t>>16&255,o[s++]=t>>8&255,o[s++]=t&255;return i===2&&(t=Gu[e.charCodeAt(u)]<<2|Gu[e.charCodeAt(u+1)]>>4,o[s++]=t&255),i===1&&(t=Gu[e.charCodeAt(u)]<<10|Gu[e.charCodeAt(u+1)]<<4|Gu[e.charCodeAt(u+2)]>>2,o[s++]=t>>8&255,o[s++]=t&255),o}function yQ(e){return Uf[e>>18&63]+Uf[e>>12&63]+Uf[e>>6&63]+Uf[e&63]}function wQ(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(yQ(n));return i.join("")}function AQ(e){for(var t,r=e.length,n=r%3,i=[],o=16383,s=0,a=r-n;s<a;s+=o)i.push(wQ(e,s,s+o>a?a:s+o));return n===1?(t=e[r-1],i.push(Uf[t>>2]+Uf[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Uf[t>>10]+Uf[t>>4&63]+Uf[t<<2&63]+"=")),i.join("")}var aS={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */aS.read=function(e,t,r,n,i){var o,s,a=i*8-n-1,u=(1<<a)-1,p=u>>1,g=-7,y=r?i-1:0,E=r?-1:1,M=e[t+y];for(y+=E,o=M&(1<<-g)-1,M>>=-g,g+=a;g>0;o=o*256+e[t+y],y+=E,g-=8);for(s=o&(1<<-g)-1,o>>=-g,g+=n;g>0;s=s*256+e[t+y],y+=E,g-=8);if(o===0)o=1-p;else{if(o===u)return s?NaN:(M?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-p}return(M?-1:1)*s*Math.pow(2,o-n)},aS.write=function(e,t,r,n,i,o){var s,a,u,p=o*8-i-1,g=(1<<p)-1,y=g>>1,E=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=n?0:o-1,I=n?1:-1,N=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=g):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+y>=1?t+=E/u:t+=E*Math.pow(2,1-y),t*u>=2&&(s++,u/=2),s+y>=g?(a=0,s=g):s+y>=1?(a=(t*u-1)*Math.pow(2,i),s=s+y):(a=t*Math.pow(2,y-1)*Math.pow(2,i),s=0));i>=8;e[r+M]=a&255,M+=I,a/=256,i-=8);for(s=s<<i|a,p+=i;p>0;e[r+M]=s&255,M+=I,s/=256,p-=8);e[r+M-I]|=N*128};/*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
5
5
  * @author Feross Aboukhadijeh <https://feross.org>
6
6
  * @license MIT
7
- */(function(e){const t=tb,r=aS,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=g,e.SlowBuffer=$,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i;const{Uint8Array:o,ArrayBuffer:s,SharedArrayBuffer:a}=globalThis;g.TYPED_ARRAY_SUPPORT=u(),!g.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 u(){try{const L=new o(1),T={foo:function(){return 42}};return Object.setPrototypeOf(T,o.prototype),Object.setPrototypeOf(L,T),L.foo()===42}catch{return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}});function p(L){if(L>i)throw new RangeError('The value "'+L+'" is invalid for option "size"');const T=new o(L);return Object.setPrototypeOf(T,g.prototype),T}function g(L,T,D){if(typeof L=="number"){if(typeof T=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return I(L)}return y(L,T,D)}g.poolSize=8192;function y(L,T,D){if(typeof L=="string")return N(L,T);if(s.isView(L))return V(L);if(L==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L);if(kn(L,s)||L&&kn(L.buffer,s)||typeof a<"u"&&(kn(L,a)||L&&kn(L.buffer,a)))return Z(L,T,D);if(typeof L=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ee=L.valueOf&&L.valueOf();if(ee!=null&&ee!==L)return g.from(ee,T,D);const Ae=Q(L);if(Ae)return Ae;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof L[Symbol.toPrimitive]=="function")return g.from(L[Symbol.toPrimitive]("string"),T,D);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L)}g.from=function(L,T,D){return y(L,T,D)},Object.setPrototypeOf(g.prototype,o.prototype),Object.setPrototypeOf(g,o);function E(L){if(typeof L!="number")throw new TypeError('"size" argument must be of type number');if(L<0)throw new RangeError('The value "'+L+'" is invalid for option "size"')}function M(L,T,D){return E(L),L<=0?p(L):T!==void 0?typeof D=="string"?p(L).fill(T,D):p(L).fill(T):p(L)}g.alloc=function(L,T,D){return M(L,T,D)};function I(L){return E(L),p(L<0?0:K(L)|0)}g.allocUnsafe=function(L){return I(L)},g.allocUnsafeSlow=function(L){return I(L)};function N(L,T){if((typeof T!="string"||T==="")&&(T="utf8"),!g.isEncoding(T))throw new TypeError("Unknown encoding: "+T);const D=oe(L,T)|0;let ee=p(D);const Ae=ee.write(L,T);return Ae!==D&&(ee=ee.slice(0,Ae)),ee}function O(L){const T=L.length<0?0:K(L.length)|0,D=p(T);for(let ee=0;ee<T;ee+=1)D[ee]=L[ee]&255;return D}function V(L){if(kn(L,o)){const T=new o(L);return Z(T.buffer,T.byteOffset,T.byteLength)}return O(L)}function Z(L,T,D){if(T<0||L.byteLength<T)throw new RangeError('"offset" is outside of buffer bounds');if(L.byteLength<T+(D||0))throw new RangeError('"length" is outside of buffer bounds');let ee;return T===void 0&&D===void 0?ee=new o(L):D===void 0?ee=new o(L,T):ee=new o(L,T,D),Object.setPrototypeOf(ee,g.prototype),ee}function Q(L){if(g.isBuffer(L)){const T=K(L.length)|0,D=p(T);return D.length===0||L.copy(D,0,0,T),D}if(L.length!==void 0)return typeof L.length!="number"||Si(L.length)?p(0):O(L);if(L.type==="Buffer"&&Array.isArray(L.data))return O(L.data)}function K(L){if(L>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return L|0}function $(L){return+L!=L&&(L=0),g.alloc(+L)}g.isBuffer=function(T){return T!=null&&T._isBuffer===!0&&T!==g.prototype},g.compare=function(T,D){if(kn(T,o)&&(T=g.from(T,T.offset,T.byteLength)),kn(D,o)&&(D=g.from(D,D.offset,D.byteLength)),!g.isBuffer(T)||!g.isBuffer(D))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(T===D)return 0;let ee=T.length,Ae=D.length;for(let Te=0,Ve=Math.min(ee,Ae);Te<Ve;++Te)if(T[Te]!==D[Te]){ee=T[Te],Ae=D[Te];break}return ee<Ae?-1:Ae<ee?1:0},g.isEncoding=function(T){switch(String(T).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(T,D){if(!Array.isArray(T))throw new TypeError('"list" argument must be an Array of Buffers');if(T.length===0)return g.alloc(0);let ee;if(D===void 0)for(D=0,ee=0;ee<T.length;++ee)D+=T[ee].length;const Ae=g.allocUnsafe(D);let Te=0;for(ee=0;ee<T.length;++ee){let Ve=T[ee];if(kn(Ve,o))Te+Ve.length>Ae.length?(g.isBuffer(Ve)||(Ve=g.from(Ve)),Ve.copy(Ae,Te)):o.prototype.set.call(Ae,Ve,Te);else if(g.isBuffer(Ve))Ve.copy(Ae,Te);else throw new TypeError('"list" argument must be an Array of Buffers');Te+=Ve.length}return Ae};function oe(L,T){if(g.isBuffer(L))return L.length;if(s.isView(L)||kn(L,s))return L.byteLength;if(typeof L!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof L);const D=L.length,ee=arguments.length>2&&arguments[2]===!0;if(!ee&&D===0)return 0;let Ae=!1;for(;;)switch(T){case"ascii":case"latin1":case"binary":return D;case"utf8":case"utf-8":return ni(L).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D*2;case"hex":return D>>>1;case"base64":return Jn(L).length;default:if(Ae)return ee?-1:ni(L).length;T=(""+T).toLowerCase(),Ae=!0}}g.byteLength=oe;function ae(L,T,D){let ee=!1;if((T===void 0||T<0)&&(T=0),T>this.length||((D===void 0||D>this.length)&&(D=this.length),D<=0)||(D>>>=0,T>>>=0,D<=T))return"";for(L||(L="utf8");;)switch(L){case"hex":return Bt(this,T,D);case"utf8":case"utf-8":return Qe(this,T,D);case"ascii":return bt(this,T,D);case"latin1":case"binary":return It(this,T,D);case"base64":return be(this,T,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Nt(this,T,D);default:if(ee)throw new TypeError("Unknown encoding: "+L);L=(L+"").toLowerCase(),ee=!0}}g.prototype._isBuffer=!0;function ue(L,T,D){const ee=L[T];L[T]=L[D],L[D]=ee}g.prototype.swap16=function(){const T=this.length;if(T%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let D=0;D<T;D+=2)ue(this,D,D+1);return this},g.prototype.swap32=function(){const T=this.length;if(T%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let D=0;D<T;D+=4)ue(this,D,D+3),ue(this,D+1,D+2);return this},g.prototype.swap64=function(){const T=this.length;if(T%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let D=0;D<T;D+=8)ue(this,D,D+7),ue(this,D+1,D+6),ue(this,D+2,D+5),ue(this,D+3,D+4);return this},g.prototype.toString=function(){const T=this.length;return T===0?"":arguments.length===0?Qe(this,0,T):ae.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(T){if(!g.isBuffer(T))throw new TypeError("Argument must be a Buffer");return this===T?!0:g.compare(this,T)===0},g.prototype.inspect=function(){let T="";const D=e.INSPECT_MAX_BYTES;return T=this.toString("hex",0,D).replace(/(.{2})/g,"$1 ").trim(),this.length>D&&(T+=" ... "),"<Buffer "+T+">"},n&&(g.prototype[n]=g.prototype.inspect),g.prototype.compare=function(T,D,ee,Ae,Te){if(kn(T,o)&&(T=g.from(T,T.offset,T.byteLength)),!g.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(D===void 0&&(D=0),ee===void 0&&(ee=T?T.length:0),Ae===void 0&&(Ae=0),Te===void 0&&(Te=this.length),D<0||ee>T.length||Ae<0||Te>this.length)throw new RangeError("out of range index");if(Ae>=Te&&D>=ee)return 0;if(Ae>=Te)return-1;if(D>=ee)return 1;if(D>>>=0,ee>>>=0,Ae>>>=0,Te>>>=0,this===T)return 0;let Ve=Te-Ae,it=ee-D;const Rt=Math.min(Ve,it),zn=this.slice(Ae,Te),yi=T.slice(D,ee);for(let In=0;In<Rt;++In)if(zn[In]!==yi[In]){Ve=zn[In],it=yi[In];break}return Ve<it?-1:it<Ve?1:0};function Se(L,T,D,ee,Ae){if(L.length===0)return-1;if(typeof D=="string"?(ee=D,D=0):D>2147483647?D=2147483647:D<-2147483648&&(D=-2147483648),D=+D,Si(D)&&(D=Ae?0:L.length-1),D<0&&(D=L.length+D),D>=L.length){if(Ae)return-1;D=L.length-1}else if(D<0)if(Ae)D=0;else return-1;if(typeof T=="string"&&(T=g.from(T,ee)),g.isBuffer(T))return T.length===0?-1:Me(L,T,D,ee,Ae);if(typeof T=="number")return T=T&255,typeof o.prototype.indexOf=="function"?Ae?o.prototype.indexOf.call(L,T,D):o.prototype.lastIndexOf.call(L,T,D):Me(L,[T],D,ee,Ae);throw new TypeError("val must be string, number or Buffer")}function Me(L,T,D,ee,Ae){let Te=1,Ve=L.length,it=T.length;if(ee!==void 0&&(ee=String(ee).toLowerCase(),ee==="ucs2"||ee==="ucs-2"||ee==="utf16le"||ee==="utf-16le")){if(L.length<2||T.length<2)return-1;Te=2,Ve/=2,it/=2,D/=2}function Rt(yi,In){return Te===1?yi[In]:yi.readUInt16BE(In*Te)}let zn;if(Ae){let yi=-1;for(zn=D;zn<Ve;zn++)if(Rt(L,zn)===Rt(T,yi===-1?0:zn-yi)){if(yi===-1&&(yi=zn),zn-yi+1===it)return yi*Te}else yi!==-1&&(zn-=zn-yi),yi=-1}else for(D+it>Ve&&(D=Ve-it),zn=D;zn>=0;zn--){let yi=!0;for(let In=0;In<it;In++)if(Rt(L,zn+In)!==Rt(T,In)){yi=!1;break}if(yi)return zn}return-1}g.prototype.includes=function(T,D,ee){return this.indexOf(T,D,ee)!==-1},g.prototype.indexOf=function(T,D,ee){return Se(this,T,D,ee,!0)},g.prototype.lastIndexOf=function(T,D,ee){return Se(this,T,D,ee,!1)};function ge(L,T,D,ee){D=Number(D)||0;const Ae=L.length-D;ee?(ee=Number(ee),ee>Ae&&(ee=Ae)):ee=Ae;const Te=T.length;ee>Te/2&&(ee=Te/2);let Ve;for(Ve=0;Ve<ee;++Ve){const it=parseInt(T.substr(Ve*2,2),16);if(Si(it))return Ve;L[D+Ve]=it}return Ve}function Pe(L,T,D,ee){return Ji(ni(T,L.length-D),L,D,ee)}function He(L,T,D,ee){return Ji(jr(T),L,D,ee)}function $e(L,T,D,ee){return Ji(Jn(T),L,D,ee)}function me(L,T,D,ee){return Ji(Zr(T,L.length-D),L,D,ee)}g.prototype.write=function(T,D,ee,Ae){if(D===void 0)Ae="utf8",ee=this.length,D=0;else if(ee===void 0&&typeof D=="string")Ae=D,ee=this.length,D=0;else if(isFinite(D))D=D>>>0,isFinite(ee)?(ee=ee>>>0,Ae===void 0&&(Ae="utf8")):(Ae=ee,ee=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Te=this.length-D;if((ee===void 0||ee>Te)&&(ee=Te),T.length>0&&(ee<0||D<0)||D>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ae||(Ae="utf8");let Ve=!1;for(;;)switch(Ae){case"hex":return ge(this,T,D,ee);case"utf8":case"utf-8":return Pe(this,T,D,ee);case"ascii":case"latin1":case"binary":return He(this,T,D,ee);case"base64":return $e(this,T,D,ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,T,D,ee);default:if(Ve)throw new TypeError("Unknown encoding: "+Ae);Ae=(""+Ae).toLowerCase(),Ve=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function be(L,T,D){return T===0&&D===L.length?t.fromByteArray(L):t.fromByteArray(L.slice(T,D))}function Qe(L,T,D){D=Math.min(L.length,D);const ee=[];let Ae=T;for(;Ae<D;){const Te=L[Ae];let Ve=null,it=Te>239?4:Te>223?3:Te>191?2:1;if(Ae+it<=D){let Rt,zn,yi,In;switch(it){case 1:Te<128&&(Ve=Te);break;case 2:Rt=L[Ae+1],(Rt&192)===128&&(In=(Te&31)<<6|Rt&63,In>127&&(Ve=In));break;case 3:Rt=L[Ae+1],zn=L[Ae+2],(Rt&192)===128&&(zn&192)===128&&(In=(Te&15)<<12|(Rt&63)<<6|zn&63,In>2047&&(In<55296||In>57343)&&(Ve=In));break;case 4:Rt=L[Ae+1],zn=L[Ae+2],yi=L[Ae+3],(Rt&192)===128&&(zn&192)===128&&(yi&192)===128&&(In=(Te&15)<<18|(Rt&63)<<12|(zn&63)<<6|yi&63,In>65535&&In<1114112&&(Ve=In))}}Ve===null?(Ve=65533,it=1):Ve>65535&&(Ve-=65536,ee.push(Ve>>>10&1023|55296),Ve=56320|Ve&1023),ee.push(Ve),Ae+=it}return rt(ee)}const Xe=4096;function rt(L){const T=L.length;if(T<=Xe)return String.fromCharCode.apply(String,L);let D="",ee=0;for(;ee<T;)D+=String.fromCharCode.apply(String,L.slice(ee,ee+=Xe));return D}function bt(L,T,D){let ee="";D=Math.min(L.length,D);for(let Ae=T;Ae<D;++Ae)ee+=String.fromCharCode(L[Ae]&127);return ee}function It(L,T,D){let ee="";D=Math.min(L.length,D);for(let Ae=T;Ae<D;++Ae)ee+=String.fromCharCode(L[Ae]);return ee}function Bt(L,T,D){const ee=L.length;(!T||T<0)&&(T=0),(!D||D<0||D>ee)&&(D=ee);let Ae="";for(let Te=T;Te<D;++Te)Ae+=w[L[Te]];return Ae}function Nt(L,T,D){const ee=L.slice(T,D);let Ae="";for(let Te=0;Te<ee.length-1;Te+=2)Ae+=String.fromCharCode(ee[Te]+ee[Te+1]*256);return Ae}g.prototype.slice=function(T,D){const ee=this.length;T=~~T,D=D===void 0?ee:~~D,T<0?(T+=ee,T<0&&(T=0)):T>ee&&(T=ee),D<0?(D+=ee,D<0&&(D=0)):D>ee&&(D=ee),D<T&&(D=T);const Ae=this.subarray(T,D);return Object.setPrototypeOf(Ae,g.prototype),Ae};function Tt(L,T,D){if(L%1!==0||L<0)throw new RangeError("offset is not uint");if(L+T>D)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(T,D,ee){T=T>>>0,D=D>>>0,ee||Tt(T,D,this.length);let Ae=this[T],Te=1,Ve=0;for(;++Ve<D&&(Te*=256);)Ae+=this[T+Ve]*Te;return Ae},g.prototype.readUintBE=g.prototype.readUIntBE=function(T,D,ee){T=T>>>0,D=D>>>0,ee||Tt(T,D,this.length);let Ae=this[T+--D],Te=1;for(;D>0&&(Te*=256);)Ae+=this[T+--D]*Te;return Ae},g.prototype.readUint8=g.prototype.readUInt8=function(T,D){return T=T>>>0,D||Tt(T,1,this.length),this[T]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(T,D){return T=T>>>0,D||Tt(T,2,this.length),this[T]|this[T+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(T,D){return T=T>>>0,D||Tt(T,2,this.length),this[T]<<8|this[T+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(T,D){return T=T>>>0,D||Tt(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+this[T+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(T,D){return T=T>>>0,D||Tt(T,4,this.length),this[T]*16777216+(this[T+1]<<16|this[T+2]<<8|this[T+3])},g.prototype.readBigUInt64LE=S(function(T){T=T>>>0,vi(T,"offset");const D=this[T],ee=this[T+7];(D===void 0||ee===void 0)&&Ei(T,this.length-8);const Ae=D+this[++T]*2**8+this[++T]*2**16+this[++T]*2**24,Te=this[++T]+this[++T]*2**8+this[++T]*2**16+ee*2**24;return BigInt(Ae)+(BigInt(Te)<<BigInt(32))}),g.prototype.readBigUInt64BE=S(function(T){T=T>>>0,vi(T,"offset");const D=this[T],ee=this[T+7];(D===void 0||ee===void 0)&&Ei(T,this.length-8);const Ae=D*2**24+this[++T]*2**16+this[++T]*2**8+this[++T],Te=this[++T]*2**24+this[++T]*2**16+this[++T]*2**8+ee;return(BigInt(Ae)<<BigInt(32))+BigInt(Te)}),g.prototype.readIntLE=function(T,D,ee){T=T>>>0,D=D>>>0,ee||Tt(T,D,this.length);let Ae=this[T],Te=1,Ve=0;for(;++Ve<D&&(Te*=256);)Ae+=this[T+Ve]*Te;return Te*=128,Ae>=Te&&(Ae-=Math.pow(2,8*D)),Ae},g.prototype.readIntBE=function(T,D,ee){T=T>>>0,D=D>>>0,ee||Tt(T,D,this.length);let Ae=D,Te=1,Ve=this[T+--Ae];for(;Ae>0&&(Te*=256);)Ve+=this[T+--Ae]*Te;return Te*=128,Ve>=Te&&(Ve-=Math.pow(2,8*D)),Ve},g.prototype.readInt8=function(T,D){return T=T>>>0,D||Tt(T,1,this.length),this[T]&128?(255-this[T]+1)*-1:this[T]},g.prototype.readInt16LE=function(T,D){T=T>>>0,D||Tt(T,2,this.length);const ee=this[T]|this[T+1]<<8;return ee&32768?ee|4294901760:ee},g.prototype.readInt16BE=function(T,D){T=T>>>0,D||Tt(T,2,this.length);const ee=this[T+1]|this[T]<<8;return ee&32768?ee|4294901760:ee},g.prototype.readInt32LE=function(T,D){return T=T>>>0,D||Tt(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},g.prototype.readInt32BE=function(T,D){return T=T>>>0,D||Tt(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},g.prototype.readBigInt64LE=S(function(T){T=T>>>0,vi(T,"offset");const D=this[T],ee=this[T+7];(D===void 0||ee===void 0)&&Ei(T,this.length-8);const Ae=this[T+4]+this[T+5]*2**8+this[T+6]*2**16+(ee<<24);return(BigInt(Ae)<<BigInt(32))+BigInt(D+this[++T]*2**8+this[++T]*2**16+this[++T]*2**24)}),g.prototype.readBigInt64BE=S(function(T){T=T>>>0,vi(T,"offset");const D=this[T],ee=this[T+7];(D===void 0||ee===void 0)&&Ei(T,this.length-8);const Ae=(D<<24)+this[++T]*2**16+this[++T]*2**8+this[++T];return(BigInt(Ae)<<BigInt(32))+BigInt(this[++T]*2**24+this[++T]*2**16+this[++T]*2**8+ee)}),g.prototype.readFloatLE=function(T,D){return T=T>>>0,D||Tt(T,4,this.length),r.read(this,T,!0,23,4)},g.prototype.readFloatBE=function(T,D){return T=T>>>0,D||Tt(T,4,this.length),r.read(this,T,!1,23,4)},g.prototype.readDoubleLE=function(T,D){return T=T>>>0,D||Tt(T,8,this.length),r.read(this,T,!0,52,8)},g.prototype.readDoubleBE=function(T,D){return T=T>>>0,D||Tt(T,8,this.length),r.read(this,T,!1,52,8)};function nt(L,T,D,ee,Ae,Te){if(!g.isBuffer(L))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>Ae||T<Te)throw new RangeError('"value" argument is out of bounds');if(D+ee>L.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(T,D,ee,Ae){if(T=+T,D=D>>>0,ee=ee>>>0,!Ae){const it=Math.pow(2,8*ee)-1;nt(this,T,D,ee,it,0)}let Te=1,Ve=0;for(this[D]=T&255;++Ve<ee&&(Te*=256);)this[D+Ve]=T/Te&255;return D+ee},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(T,D,ee,Ae){if(T=+T,D=D>>>0,ee=ee>>>0,!Ae){const it=Math.pow(2,8*ee)-1;nt(this,T,D,ee,it,0)}let Te=ee-1,Ve=1;for(this[D+Te]=T&255;--Te>=0&&(Ve*=256);)this[D+Te]=T/Ve&255;return D+ee},g.prototype.writeUint8=g.prototype.writeUInt8=function(T,D,ee){return T=+T,D=D>>>0,ee||nt(this,T,D,1,255,0),this[D]=T&255,D+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(T,D,ee){return T=+T,D=D>>>0,ee||nt(this,T,D,2,65535,0),this[D]=T&255,this[D+1]=T>>>8,D+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(T,D,ee){return T=+T,D=D>>>0,ee||nt(this,T,D,2,65535,0),this[D]=T>>>8,this[D+1]=T&255,D+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(T,D,ee){return T=+T,D=D>>>0,ee||nt(this,T,D,4,4294967295,0),this[D+3]=T>>>24,this[D+2]=T>>>16,this[D+1]=T>>>8,this[D]=T&255,D+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(T,D,ee){return T=+T,D=D>>>0,ee||nt(this,T,D,4,4294967295,0),this[D]=T>>>24,this[D+1]=T>>>16,this[D+2]=T>>>8,this[D+3]=T&255,D+4};function yt(L,T,D,ee,Ae){fi(T,ee,Ae,L,D,7);let Te=Number(T&BigInt(4294967295));L[D++]=Te,Te=Te>>8,L[D++]=Te,Te=Te>>8,L[D++]=Te,Te=Te>>8,L[D++]=Te;let Ve=Number(T>>BigInt(32)&BigInt(4294967295));return L[D++]=Ve,Ve=Ve>>8,L[D++]=Ve,Ve=Ve>>8,L[D++]=Ve,Ve=Ve>>8,L[D++]=Ve,D}function Ir(L,T,D,ee,Ae){fi(T,ee,Ae,L,D,7);let Te=Number(T&BigInt(4294967295));L[D+7]=Te,Te=Te>>8,L[D+6]=Te,Te=Te>>8,L[D+5]=Te,Te=Te>>8,L[D+4]=Te;let Ve=Number(T>>BigInt(32)&BigInt(4294967295));return L[D+3]=Ve,Ve=Ve>>8,L[D+2]=Ve,Ve=Ve>>8,L[D+1]=Ve,Ve=Ve>>8,L[D]=Ve,D+8}g.prototype.writeBigUInt64LE=S(function(T,D=0){return yt(this,T,D,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=S(function(T,D=0){return Ir(this,T,D,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(T,D,ee,Ae){if(T=+T,D=D>>>0,!Ae){const Rt=Math.pow(2,8*ee-1);nt(this,T,D,ee,Rt-1,-Rt)}let Te=0,Ve=1,it=0;for(this[D]=T&255;++Te<ee&&(Ve*=256);)T<0&&it===0&&this[D+Te-1]!==0&&(it=1),this[D+Te]=(T/Ve>>0)-it&255;return D+ee},g.prototype.writeIntBE=function(T,D,ee,Ae){if(T=+T,D=D>>>0,!Ae){const Rt=Math.pow(2,8*ee-1);nt(this,T,D,ee,Rt-1,-Rt)}let Te=ee-1,Ve=1,it=0;for(this[D+Te]=T&255;--Te>=0&&(Ve*=256);)T<0&&it===0&&this[D+Te+1]!==0&&(it=1),this[D+Te]=(T/Ve>>0)-it&255;return D+ee},g.prototype.writeInt8=function(T,D,ee){return T=+T,D=D>>>0,ee||nt(this,T,D,1,127,-128),T<0&&(T=255+T+1),this[D]=T&255,D+1},g.prototype.writeInt16LE=function(T,D,ee){return T=+T,D=D>>>0,ee||nt(this,T,D,2,32767,-32768),this[D]=T&255,this[D+1]=T>>>8,D+2},g.prototype.writeInt16BE=function(T,D,ee){return T=+T,D=D>>>0,ee||nt(this,T,D,2,32767,-32768),this[D]=T>>>8,this[D+1]=T&255,D+2},g.prototype.writeInt32LE=function(T,D,ee){return T=+T,D=D>>>0,ee||nt(this,T,D,4,2147483647,-2147483648),this[D]=T&255,this[D+1]=T>>>8,this[D+2]=T>>>16,this[D+3]=T>>>24,D+4},g.prototype.writeInt32BE=function(T,D,ee){return T=+T,D=D>>>0,ee||nt(this,T,D,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[D]=T>>>24,this[D+1]=T>>>16,this[D+2]=T>>>8,this[D+3]=T&255,D+4},g.prototype.writeBigInt64LE=S(function(T,D=0){return yt(this,T,D,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=S(function(T,D=0){return Ir(this,T,D,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function mr(L,T,D,ee,Ae,Te){if(D+ee>L.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("Index out of range")}function kr(L,T,D,ee,Ae){return T=+T,D=D>>>0,Ae||mr(L,T,D,4),r.write(L,T,D,ee,23,4),D+4}g.prototype.writeFloatLE=function(T,D,ee){return kr(this,T,D,!0,ee)},g.prototype.writeFloatBE=function(T,D,ee){return kr(this,T,D,!1,ee)};function Fr(L,T,D,ee,Ae){return T=+T,D=D>>>0,Ae||mr(L,T,D,8),r.write(L,T,D,ee,52,8),D+8}g.prototype.writeDoubleLE=function(T,D,ee){return Fr(this,T,D,!0,ee)},g.prototype.writeDoubleBE=function(T,D,ee){return Fr(this,T,D,!1,ee)},g.prototype.copy=function(T,D,ee,Ae){if(!g.isBuffer(T))throw new TypeError("argument should be a Buffer");if(ee||(ee=0),!Ae&&Ae!==0&&(Ae=this.length),D>=T.length&&(D=T.length),D||(D=0),Ae>0&&Ae<ee&&(Ae=ee),Ae===ee||T.length===0||this.length===0)return 0;if(D<0)throw new RangeError("targetStart out of bounds");if(ee<0||ee>=this.length)throw new RangeError("Index out of range");if(Ae<0)throw new RangeError("sourceEnd out of bounds");Ae>this.length&&(Ae=this.length),T.length-D<Ae-ee&&(Ae=T.length-D+ee);const Te=Ae-ee;return this===T&&typeof o.prototype.copyWithin=="function"?this.copyWithin(D,ee,Ae):o.prototype.set.call(T,this.subarray(ee,Ae),D),Te},g.prototype.fill=function(T,D,ee,Ae){if(typeof T=="string"){if(typeof D=="string"?(Ae=D,D=0,ee=this.length):typeof ee=="string"&&(Ae=ee,ee=this.length),Ae!==void 0&&typeof Ae!="string")throw new TypeError("encoding must be a string");if(typeof Ae=="string"&&!g.isEncoding(Ae))throw new TypeError("Unknown encoding: "+Ae);if(T.length===1){const Ve=T.charCodeAt(0);(Ae==="utf8"&&Ve<128||Ae==="latin1")&&(T=Ve)}}else typeof T=="number"?T=T&255:typeof T=="boolean"&&(T=Number(T));if(D<0||this.length<D||this.length<ee)throw new RangeError("Out of range index");if(ee<=D)return this;D=D>>>0,ee=ee===void 0?this.length:ee>>>0,T||(T=0);let Te;if(typeof T=="number")for(Te=D;Te<ee;++Te)this[Te]=T;else{const Ve=g.isBuffer(T)?T:g.from(T,Ae),it=Ve.length;if(it===0)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for(Te=0;Te<ee-D;++Te)this[Te+D]=Ve[Te%it]}return this};const wn={};function _r(L,T,D){wn[L]=class extends D{constructor(){super(),Object.defineProperty(this,"message",{value:T.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${L}]`,this.stack,delete this.name}get code(){return L}set code(Ae){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Ae,writable:!0})}toString(){return`${this.name} [${L}]: ${this.message}`}}}_r("ERR_BUFFER_OUT_OF_BOUNDS",function(L){return L?`${L} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),_r("ERR_INVALID_ARG_TYPE",function(L,T){return`The "${L}" argument must be of type number. Received type ${typeof T}`},TypeError),_r("ERR_OUT_OF_RANGE",function(L,T,D){let ee=`The value of "${L}" is out of range.`,Ae=D;return Number.isInteger(D)&&Math.abs(D)>2**32?Ae=en(String(D)):typeof D=="bigint"&&(Ae=String(D),(D>BigInt(2)**BigInt(32)||D<-(BigInt(2)**BigInt(32)))&&(Ae=en(Ae)),Ae+="n"),ee+=` It must be ${T}. Received ${Ae}`,ee},RangeError);function en(L){let T="",D=L.length;const ee=L[0]==="-"?1:0;for(;D>=ee+4;D-=3)T=`_${L.slice(D-3,D)}${T}`;return`${L.slice(0,D)}${T}`}function $r(L,T,D){vi(T,"offset"),(L[T]===void 0||L[T+D]===void 0)&&Ei(T,L.length-(D+1))}function fi(L,T,D,ee,Ae,Te){if(L>D||L<T){const Ve=typeof T=="bigint"?"n":"";let it;throw T===0||T===BigInt(0)?it=`>= 0${Ve} and < 2${Ve} ** ${(Te+1)*8}${Ve}`:it=`>= -(2${Ve} ** ${(Te+1)*8-1}${Ve}) and < 2 ** ${(Te+1)*8-1}${Ve}`,new wn.ERR_OUT_OF_RANGE("value",it,L)}$r(ee,Ae,Te)}function vi(L,T){if(typeof L!="number")throw new wn.ERR_INVALID_ARG_TYPE(T,"number",L)}function Ei(L,T,D){throw Math.floor(L)!==L?(vi(L,D),new wn.ERR_OUT_OF_RANGE("offset","an integer",L)):T<0?new wn.ERR_BUFFER_OUT_OF_BOUNDS:new wn.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${T}`,L)}const ki=/[^+/0-9A-Za-z-_]/g;function jn(L){if(L=L.split("=")[0],L=L.trim().replace(ki,""),L.length<2)return"";for(;L.length%4!==0;)L=L+"=";return L}function ni(L,T){T=T||1/0;let D;const ee=L.length;let Ae=null;const Te=[];for(let Ve=0;Ve<ee;++Ve){if(D=L.charCodeAt(Ve),D>55295&&D<57344){if(!Ae){if(D>56319){(T-=3)>-1&&Te.push(239,191,189);continue}else if(Ve+1===ee){(T-=3)>-1&&Te.push(239,191,189);continue}Ae=D;continue}if(D<56320){(T-=3)>-1&&Te.push(239,191,189),Ae=D;continue}D=(Ae-55296<<10|D-56320)+65536}else Ae&&(T-=3)>-1&&Te.push(239,191,189);if(Ae=null,D<128){if((T-=1)<0)break;Te.push(D)}else if(D<2048){if((T-=2)<0)break;Te.push(D>>6|192,D&63|128)}else if(D<65536){if((T-=3)<0)break;Te.push(D>>12|224,D>>6&63|128,D&63|128)}else if(D<1114112){if((T-=4)<0)break;Te.push(D>>18|240,D>>12&63|128,D>>6&63|128,D&63|128)}else throw new Error("Invalid code point")}return Te}function jr(L){const T=[];for(let D=0;D<L.length;++D)T.push(L.charCodeAt(D)&255);return T}function Zr(L,T){let D,ee,Ae;const Te=[];for(let Ve=0;Ve<L.length&&!((T-=2)<0);++Ve)D=L.charCodeAt(Ve),ee=D>>8,Ae=D%256,Te.push(Ae),Te.push(ee);return Te}function Jn(L){return t.toByteArray(jn(L))}function Ji(L,T,D,ee){let Ae;for(Ae=0;Ae<ee&&!(Ae+D>=T.length||Ae>=L.length);++Ae)T[Ae+D]=L[Ae];return Ae}function kn(L,T){return L instanceof T||L!=null&&L.constructor!=null&&L.constructor.name!=null&&L.constructor.name===T.name}function Si(L){return L!==L}const w=function(){const L="0123456789abcdef",T=new Array(256);for(let D=0;D<16;++D){const ee=D*16;for(let Ae=0;Ae<16;++Ae)T[ee+Ae]=L[D]+L[Ae]}return T}();function S(L){return typeof BigInt>"u"?R:L}function R(){throw new Error("BigInt not supported")}})(e9);const Pd=e9.Buffer;var rb={GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_eda43510-e9eb-481e-8948-430bf462f3e5",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",STATS_TRP:"true",USER:"runner",npm_config_always_auth:"true",npm_config_user_agent:"pnpm/10.12.3 npm/? node/v20.19.2 linux x64",CI:"true",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_eda43510-e9eb-481e-8948-430bf462f3e5",PIPX_HOME:"/opt/pipx",RUNNER_ENVIRONMENT:"github-hosted",npm_node_execpath:"/opt/hostedtoolcache/node/20.19.2/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",NODE_AUTH_TOKEN:"XXXXX-XXXXX-XXXXX-XXXXX",SHLVL:"1",HOME:"/home/runner",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",RUNNER_TEMP:"/home/runner/work/_temp",npm_package_json:"/home/runner/work/passport/passport/packages/passport-sui/package.json",GITHUB_REPOSITORY_OWNER:"credenza-web3",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",npm_package_engines_node:">=18",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.1.13356709",GITHUB_RETENTION_DAYS:"90",GRADLE_HOME:"/usr/share/gradle-8.14.2",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",GITHUB_REPOSITORY_OWNER_ID:"93208388",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",npm_config__credenza3_registry:"https://registry.npmjs.org/",npm_config_userconfig:"/home/runner/work/_temp/.npmrc",SYSTEMD_EXEC_PID:"711",npm_config_engine_strict:"true",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",ImageVersion:"20250622.1.0",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",RUNNER_OS:"Linux",SWIFT_PATH:"/usr/share/swift/usr/bin",pnpm_config_verify_deps_before_run:"false",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GITHUB_WORKFLOW:"Publish @credenza3/passport-sui",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.10/x64",JOURNAL_STREAM:"9:6596",RUNNER_USER:"runner",STATS_V3PS:"true",_:"/home/runner/setup-pnpm/node_modules/.bin/pnpm",GOROOT_1_24_X64:"/opt/hostedtoolcache/go/1.24.4/x64",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",npm_config_registry:"https://registry.npmjs.org/",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",GITHUB_RUN_ID:"15899260398",STATS_D:"true",STATS_VMFE:"true",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_BASE_REF:"",GITHUB_REF_TYPE:"branch",GITHUB_WORKFLOW_SHA:"6bc73a5f892656e696a48e76140a1590c5b22a41",ImageOS:"ubuntu24",GITHUB_ACTION_REPOSITORY:"",GITHUB_WORKFLOW_REF:"credenza-web3/passport/.github/workflows/publish-sui.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",npm_config_node_gyp:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.12.3/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/passport/passport/packages/passport-sui/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.12.3/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/passport/passport/node_modules/.bin:/home/runner/work/passport/passport/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.12.3/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/passport/passport/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.19.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",INVOCATION_ID:"d024f6c06d6a40028bd52cb28f5cb2cd",NODE:"/opt/hostedtoolcache/node/20.19.2/x64/bin/node",NPM_CONFIG_USERCONFIG:"/home/runner/work/_temp/.npmrc",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",RUNNER_TRACKING_ID:"github_baebcbba-e140-4573-b613-77fc8dea16ee",TURBO_HASH:"338be6ac282ca34f",npm_package_name:"@credenza3/passport-sui",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"86",GITHUB_TRIGGERING_ACTOR:"mikeavvad",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",npm_config_frozen_lockfile:"",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"credenza-web3/passport",RUNNER_NAME:"GitHub Actions 1000000346",STATS_D_D:"true",STATS_VMD:"true",XDG_CONFIG_HOME:"/home/runner/.config",npm_lifecycle_script:"vite build",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",DEBIAN_FRONTEND:"noninteractive",GITHUB_ACTION_REF:"",STATS_UE:"true",GITHUB_ACTIONS:"true",GITHUB_REPOSITORY_ID:"493155814",NODE_PATH:"/home/runner/work/passport/passport/node_modules/.pnpm/vite@6.3.5_@types+node@24.0.4_jiti@2.4.2_lightningcss@1.29.1_sass@1.89.2_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/vite@6.3.5_@types+node@24.0.4_jiti@2.4.2_lightningcss@1.29.1_sass@1.89.2_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/vite@6.3.5_@types+node@24.0.4_jiti@2.4.2_lightningcss@1.29.1_sass@1.89.2_yaml@2.8.0/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.12.3/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.12.3/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.12.3/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/turbo@1.13.3/node_modules/turbo/bin/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/turbo@1.13.3/node_modules/turbo/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/turbo@1.13.3/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.12.3/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.12.3/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.12.3/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules",STATS_PIP:"false",npm_package_version:"0.1.7",npm_config_verify_deps_before_run:"false",npm_lifecycle_event:"build",GITHUB_REF_PROTECTED:"false",ACCEPT_EULA:"Y",GITHUB_JOB:"publish-gpr",GITHUB_WORKSPACE:"/home/runner/work/passport/passport",RUNNER_PERFLOG:"/home/runner/perflog",TURBO_INVOCATION_DIR:"/home/runner/work/passport/passport",GITHUB_RUN_ATTEMPT:"1",GITHUB_SHA:"6bc73a5f892656e696a48e76140a1590c5b22a41",STATS_D_TC:"true",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",GITHUB_ACTOR:"mikeavvad",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR_ID:"87299315",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_eda43510-e9eb-481e-8948-430bf462f3e5",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/passport/passport/packages/passport-sui",RUNNER_WORKSPACE:"/home/runner/work/passport",npm_execpath:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.12.3/node_modules/pnpm/bin/pnpm.cjs",ANDROID_HOME:"/usr/local/lib/android/sdk",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_EVENT_NAME:"push",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_eda43510-e9eb-481e-8948-430bf462f3e5",GITHUB_SERVER_URL:"https://github.com",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",HOMEBREW_NO_AUTO_UPDATE:"1",EDGEWEBDRIVER:"/usr/local/share/edge_driver",PNPM_SCRIPT_SRC_DIR:"/home/runner/work/passport/passport/packages/passport-sui",STATS_EXT:"true",npm_config__jsr_registry:"https://npm.jsr.io/",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",CHROME_BIN:"/usr/bin/google-chrome",SGX_AESM_ADDR:"1",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",PNPM_HOME:"/home/runner/setup-pnpm/node_modules/.bin",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_eda43510-e9eb-481e-8948-430bf462f3e5",INIT_CWD:"/home/runner/work/passport/passport/packages/passport-sui",NODE_ENV:"production"},zr;if(typeof window>"u"){var r9={hostname:""};zr={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:r9,referrer:""},screen:{width:0,height:0},location:r9,addEventListener:function(){},removeEventListener:function(){}}}else zr=window;function n9(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i9(e,t,r,n,i,o,s){try{var a=e[o](s),u=a.value}catch(p){r(p);return}a.done?t(u):Promise.resolve(u).then(n,i)}function cS(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(u){i9(o,n,i,s,a,"next",u)}function a(u){i9(o,n,i,s,a,"throw",u)}s(void 0)})}}function nb(e,t,r){return o9()?nb=Reflect.construct:nb=function(i,o,s){var a=[null];a.push.apply(a,o);var u=Function.bind.apply(i,a),p=new u;return s&&My(p,s.prototype),p},nb.apply(null,arguments)}function bQ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ga(e,t,r){return t&&bQ(e.prototype,t),e}function oo(){return oo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oo.apply(this,arguments)}function uS(e){return uS=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},uS(e)}function cc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&My(e,t)}function Ci(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function EQ(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function xy(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function My(e,t){return My=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},My(e,t)}function Hi(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function kQ(e,t){if(e){if(typeof e=="string")return n9(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n9(e,t)}}function ib(e){var t=typeof Map=="function"?new Map:void 0;return ib=function(n){if(n===null||!EQ(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return nb(n,arguments,uS(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),My(i,n)},ib(e)}function o9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(o9=function(){return!!e})()}function un(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=kQ(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Uy(e,t){var r,n,i,o,s={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(p){return function(g){return u([p,g])}}function u(p){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=p[0]&2?n.return:p[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,p[1])).done)return i;switch(n=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,n=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){s.label=p[1];break}if(p[0]===6&&s.label<i[1]){s.label=i[1],i=p;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(p);break}i[2]&&s.ops.pop(),s.trys.pop();continue}p=t.call(e,s)}catch(g){p=[6,g],n=0}finally{r=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}function s9(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var SQ=Object.defineProperty,IQ=function(e,t,r){return t in e?SQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Br=function(e,t,r){return IQ(e,(typeof t>"u"?"undefined":Hi(t))!=="symbol"?t+"":t,r)},a9,CQ=Object.defineProperty,BQ=function(e,t,r){return t in e?CQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},c9=function(e,t,r){return BQ(e,(typeof t>"u"?"undefined":Hi(t))!=="symbol"?t+"":t,r)},pa=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(pa||{}),u9={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},l9={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ob={},TQ=function(){return!!globalThis.Zone};function lS(e){if(ob[e])return ob[e];var t=globalThis[e],r=t.prototype,n=e in u9?u9[e]:void 0,i=!!(n&&n.every(function(g){var y,E;return!!((E=(y=Object.getOwnPropertyDescriptor(r,g))==null?void 0:y.get)!=null&&E.toString().includes("[native code]"))})),o=e in l9?l9[e]:void 0,s=!!(o&&o.every(function(g){var y;return typeof r[g]=="function"&&((y=r[g])==null?void 0:y.toString().includes("[native code]"))}));if(i&&s&&!TQ())return ob[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return t.prototype;var p=u[e].prototype;return document.body.removeChild(a),p?ob[e]=p:r}catch{return r}}var fS={};function tp(e,t,r){var n,i=e+"."+String(r);if(fS[i])return fS[i].call(t);var o=lS(e),s=(n=Object.getOwnPropertyDescriptor(o,r))==null?void 0:n.get;return s?(fS[i]=s,s.call(t)):t[r]}var dS={};function f9(e,t,r){var n=e+"."+String(r);if(dS[n])return dS[n].bind(t);var i=lS(e),o=i[r];return typeof o!="function"?t[r]:(dS[n]=o,o.bind(t))}function xQ(e){return tp("Node",e,"childNodes")}function MQ(e){return tp("Node",e,"parentNode")}function UQ(e){return tp("Node",e,"parentElement")}function OQ(e){return tp("Node",e,"textContent")}function NQ(e,t){return f9("Node",e,"contains")(t)}function RQ(e){return f9("Node",e,"getRootNode")()}function DQ(e){return!e||!("host"in e)?null:tp("ShadowRoot",e,"host")}function LQ(e){return e.styleSheets}function PQ(e){return!e||!("shadowRoot"in e)?null:tp("Element",e,"shadowRoot")}function VQ(e,t){return tp("Element",e,"querySelector")(t)}function FQ(e,t){return tp("Element",e,"querySelectorAll")(t)}function jQ(){return lS("MutationObserver").constructor}var uc={childNodes:xQ,parentNode:MQ,parentElement:UQ,textContent:OQ,contains:NQ,getRootNode:RQ,host:DQ,styleSheets:LQ,shadowRoot:PQ,querySelector:VQ,querySelectorAll:FQ,mutationObserver:jQ};function d9(e){return e.nodeType===e.ELEMENT_NODE}function Oy(e){var t=e&&"host"in e&&"mode"in e&&uc.host(e)||null;return!!(t&&"shadowRoot"in t&&uc.shadowRoot(t)===e)}function Ny(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function JQ(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function zQ(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return e.layerName===""?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function hS(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);var n=Array.from(t,function(i){return h9(i,r)}).join("");return JQ(n)}catch{return null}}function h9(e,t){if(GQ(e)){var r;try{r=hS(e.styleSheet)||zQ(e)}catch{r=e.cssText}return e.styleSheet.href?sb(r,e.styleSheet.href):r}else{var n=e.cssText;return WQ(e)&&e.selectorText.includes(":")&&(n=HQ(n)),t?sb(n,t):n}}function HQ(e){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function GQ(e){return"styleSheet"in e}function WQ(e){return"selectorText"in e}var p9=function(){function e(){c9(this,"idNodeMap",new Map),c9(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(n){var i;if(!n)return-1;var o=(i=this.getMeta(n))==null?void 0:i.id;return o??-1},t.getNode=function(n){return this.idNodeMap.get(n)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(n){return this.nodeMetaMap.get(n)||null},t.removeNodeFromMap=function(n){var i=this,o=this.getId(n);this.idNodeMap.delete(o),n.childNodes&&n.childNodes.forEach(function(s){return i.removeNodeFromMap(s)})},t.has=function(n){return this.idNodeMap.has(n)},t.hasNode=function(n){return this.nodeMetaMap.has(n)},t.add=function(n,i){var o=i.id;this.idNodeMap.set(o,n),this.nodeMetaMap.set(n,i)},t.replace=function(n,i){var o=this.getNode(n);if(o){var s=this.nodeMetaMap.get(o);s&&this.nodeMetaMap.set(i,s)}this.idNodeMap.set(n,i)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function QQ(){return new p9}function pS(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",u=i&&L0(i);return(r[n.toLowerCase()]||u&&r[u])&&(s?a=s(a,t):a="*".repeat(a.length)),a}function L0(e){return e.toLowerCase()}var g9="__rrweb_original__";function ZQ(e){var t=e.getContext("2d");if(!t)return!0;for(var r=50,n=0;n<e.width;n+=r)for(var i=0;i<e.height;i+=r){var o=t.getImageData,s=g9 in o?o[g9]:o,a=new Uint32Array(s.call(t,n,i,Math.min(r,e.width-n),Math.min(r,e.height-i)).data.buffer);if(a.some(function(u){return u!==0}))return!1}return!0}function gS(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?L0(t):null}function m9(e,t){var r;try{r=new URL(e,t??window.location.href)}catch{return null}var n=/\.([0-9a-z]+)(?:$)/i,i=r.pathname.match(n),o;return(o=i==null?void 0:i[1])!=null?o:null}function KQ(e){var t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var YQ=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,XQ=/^(?:[a-z+]+:)?\/\//i,qQ=/^www\..*/i,_Q=/^(data:)([^,]*),(.*)/i;function sb(e,t){return(e||"").replace(YQ,function(r,n,i,o,s,a){var u=i||s||a,p=n||o||"";if(!u)return r;if(XQ.test(u)||qQ.test(u)||_Q.test(u))return"url("+p+u+p+")";if(u[0]==="/")return"url("+p+(KQ(t)+u)+p+")";var g=t.split("/"),y=u.split("/");g.pop();for(var E=un(y),M;!(M=E()).done;){var I=M.value;I!=="."&&(I===".."?g.pop():g.push(I))}return"url("+p+g.join("/")+p+")"})}function mS(e){return e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function $Q(e,t){var r=Array.from(t.childNodes),n=[];if(r.length>1&&e&&typeof e=="string"){for(var i=mS(e),o=1;o<r.length;o++)if(r[o].textContent&&typeof r[o].textContent=="string")for(var s=mS(r[o].textContent),a=3;a<s.length;a++){var u=s.substring(0,a);if(i.split(u).length===2){for(var p=i.indexOf(u),g=p;g<e.length;g++)if(mS(e.substring(0,g)).length===p){n.push(e.substring(0,g)),e=e.substring(g);break}break}}}return n.push(e),n}function eZ(e,t){return $Q(e,t).join("/* rr_split */")}var tZ=1,rZ=new RegExp("[^a-z0-9-_:]"),Ry=-2;function v9(){return tZ++}function nZ(e){if(Ci(e,HTMLFormElement))return"form";var t=L0(e.tagName);return rZ.test(t)?"div":t}var x1,y9,iZ=/^[^ \t\n\r\u000c]+/,oZ=/^[, \t\n\r\u000c]+/;function sZ(e,t){if(t.trim()==="")return t;var r=0;function n(p){var g,y=p.exec(t.substring(r));return y?(g=y[0],r+=g.length,g):""}for(var i=[];n(oZ),!(r>=t.length);){var o=n(iZ);if(o.slice(-1)===",")o=M1(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=M1(e,o);for(var a=!1;;){var u=t.charAt(r);if(u===""){i.push((o+s).trim());break}else if(a)u===")"&&(a=!1);else if(u===","){r+=1,i.push((o+s).trim());break}else u==="("&&(a=!0);s+=u,r+=1}}}return i.join(", ")}var w9=new WeakMap;function M1(e,t){return!t||t.trim()===""?t:vS(e,t)}function aZ(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function vS(e,t){var r=w9.get(e);if(r||(r=e.createElement("a"),w9.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function A9(e,t,r,n){return n&&(r==="src"||r==="href"&&!(t==="use"&&n[0]==="#")||r==="xlink:href"&&n[0]!=="#"||r==="background"&&(t==="table"||t==="td"||t==="th")?M1(e,n):r==="srcset"?sZ(e,n):r==="style"?sb(n,vS(e)):t==="object"&&r==="data"?M1(e,n):n)}function b9(e,t,r){return(e==="video"||e==="audio")&&t==="autoplay"}function cZ(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch{}return!1}function ab(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?ab(uc.parentNode(e),t,r):!1;for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return r?ab(uc.parentNode(e),t,r):!1}function E9(e,t,r,n){var i;if(d9(e)){if(i=e,!uc.childNodes(i).length)return!1}else{if(uc.parentElement(e)===null)return!1;i=uc.parentElement(e)}try{if(typeof t=="string"){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(ab(i,t,n))return!0;if(r){if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}}catch{}return!1}function uZ(e,t,r){var n=e.contentWindow;if(n){var i=!1,o;try{o=n.document.readyState}catch{return}if(o!=="complete"){var s=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(s),i=!0,t()});return}var a="about:blank";if(n.location.href!==a||e.src===a||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}function lZ(e,t,r){var n=!1,i;try{i=e.sheet}catch{return}if(!i){var o=setTimeout(function(){n||(t(),n=!0)},r);e.addEventListener("load",function(){clearTimeout(o),n=!0,t()})}}function fZ(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,u=t.maskInputOptions,p=u===void 0?{}:u,g=t.maskTextFn,y=t.maskInputFn,E=t.dataURLOptions,M=E===void 0?{}:E,I=t.inlineImages,N=t.recordCanvas,O=t.keepIframeSrcFn,V=t.newlyAddedElement,Z=V===void 0?!1:V,Q=t.cssCaptured,K=Q===void 0?!1:Q,$=dZ(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:pa.Document,childNodes:[],compatMode:e.compatMode}:{type:pa.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:pa.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:$};case e.ELEMENT_NODE:return pZ(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:p,maskInputFn:y,dataURLOptions:M,inlineImages:I,recordCanvas:N,keepIframeSrcFn:O,newlyAddedElement:Z,rootId:$});case e.TEXT_NODE:return hZ(e,{doc:r,needsMask:s,maskTextFn:g,rootId:$,cssCaptured:K});case e.CDATA_SECTION_NODE:return{type:pa.CDATA,textContent:"",rootId:$};case e.COMMENT_NODE:return{type:pa.Comment,textContent:uc.textContent(e)||"",rootId:$};default:return!1}}function dZ(e,t){if(t.hasNode(e)){var r=t.getId(e);return r===1?void 0:r}}function hZ(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=uc.parentNode(e),a=s&&s.tagName,u="",p=a==="STYLE"?!0:void 0,g=a==="SCRIPT"?!0:void 0;return g?u="SCRIPT_PLACEHOLDER":o||(u=uc.textContent(e),p&&u&&(u=sb(u,vS(t.doc)))),!p&&!g&&u&&r&&(u=n?n(u,uc.parentElement(e)):u.replace(/[\S]/g,"*")),{type:pa.Text,textContent:u||"",rootId:i}}function pZ(e,t){for(var r=t.doc,n=t.blockClass,i=t.blockSelector,o=t.inlineStylesheet,s=t.maskInputOptions,a=s===void 0?{}:s,u=t.maskInputFn,p=t.dataURLOptions,g=p===void 0?{}:p,y=t.inlineImages,E=t.recordCanvas,M=t.keepIframeSrcFn,I=t.newlyAddedElement,N=I===void 0?!1:I,O=t.rootId,V=cZ(e,n,i),Z=nZ(e),Q={},K=e.attributes.length,$=0;$<K;$++){var oe=e.attributes[$];b9(Z,oe.name,oe.value)||(Q[oe.name]=A9(r,Z,L0(oe.name),oe.value))}if(Z==="link"&&o){var ae=Array.from(r.styleSheets).find(function(Tt){return Tt.href===e.href}),ue=null;ae&&(ue=hS(ae)),ue&&(delete Q.rel,delete Q.href,Q._cssText=ue)}if(Z==="style"&&e.sheet){var Se=hS(e.sheet);Se&&(e.childNodes.length>1&&(Se=eZ(Se,e)),Q._cssText=Se)}if(Z==="input"||Z==="textarea"||Z==="select"){var Me=e.value,ge=e.checked;Q.type!=="radio"&&Q.type!=="checkbox"&&Q.type!=="submit"&&Q.type!=="button"&&Me?Q.value=pS({element:e,type:gS(e),tagName:Z,value:Me,maskInputOptions:a,maskInputFn:u}):ge&&(Q.checked=ge)}if(Z==="option"&&(e.selected&&!a.select?Q.selected=!0:delete Q.selected),Z==="dialog"&&e.open&&(Q.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),Z==="canvas"&&E){if(e.__context==="2d")ZQ(e)||(Q.rr_dataURL=e.toDataURL(g.type,g.quality));else if(!("__context"in e)){var Pe=e.toDataURL(g.type,g.quality),He=r.createElement("canvas");He.width=e.width,He.height=e.height;var $e=He.toDataURL(g.type,g.quality);Pe!==$e&&(Q.rr_dataURL=Pe)}}if(Z==="img"&&y){x1||(x1=r.createElement("canvas"),y9=x1.getContext("2d"));var me=e,be=me.currentSrc||me.getAttribute("src")||"<unknown-src>",Qe=me.crossOrigin,Xe=function(){me.removeEventListener("load",Xe);try{x1.width=me.naturalWidth,x1.height=me.naturalHeight,y9.drawImage(me,0,0),Q.rr_dataURL=x1.toDataURL(g.type,g.quality)}catch(Tt){if(me.crossOrigin!=="anonymous"){me.crossOrigin="anonymous",me.complete&&me.naturalWidth!==0?Xe():me.addEventListener("load",Xe);return}else console.warn("Cannot inline img src="+be+"! Error: "+Tt)}me.crossOrigin==="anonymous"&&(Qe?Q.crossOrigin=Qe:me.removeAttribute("crossorigin"))};me.complete&&me.naturalWidth!==0?Xe():me.addEventListener("load",Xe)}if(Z==="audio"||Z==="video"){var rt=Q;rt.rr_mediaState=e.paused?"paused":"played",rt.rr_mediaCurrentTime=e.currentTime,rt.rr_mediaPlaybackRate=e.playbackRate,rt.rr_mediaMuted=e.muted,rt.rr_mediaLoop=e.loop,rt.rr_mediaVolume=e.volume}if(N||(e.scrollLeft&&(Q.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(Q.rr_scrollTop=e.scrollTop)),V){var bt=e.getBoundingClientRect(),It=bt.width,Bt=bt.height;Q={class:Q.class,rr_width:""+It+"px",rr_height:""+Bt+"px"}}Z==="iframe"&&!M(Q.src)&&(e.contentDocument||(Q.rr_src=Q.src),delete Q.src);var Nt;try{customElements.get(Z)&&(Nt=!0)}catch{}return{type:pa.Element,tagName:Z,attributes:Q,childNodes:[],isSVG:aZ(e)||void 0,needBlock:V,rootId:O,isCustom:Nt}}function Go(e){return e==null?"":e.toLowerCase()}function gZ(e,t){if(t.comment&&e.type===pa.Comment)return!0;if(e.type===pa.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&m9(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Go(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Go(e.attributes.name)==="application-name"||Go(e.attributes.rel)==="icon"||Go(e.attributes.rel)==="apple-touch-icon"||Go(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Go(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Go(e.attributes.property).match(/^(og|twitter|fb):/)||Go(e.attributes.name).match(/^(og|twitter):/)||Go(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Go(e.attributes.name)==="robots"||Go(e.attributes.name)==="googlebot"||Go(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Go(e.attributes.name)==="author"||Go(e.attributes.name)==="generator"||Go(e.attributes.name)==="framework"||Go(e.attributes.name)==="publisher"||Go(e.attributes.name)==="progid"||Go(e.attributes.property).match(/^article:/)||Go(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Go(e.attributes.name)==="google-site-verification"||Go(e.attributes.name)==="yandex-verification"||Go(e.attributes.name)==="csrf-token"||Go(e.attributes.name)==="p:domain_verify"||Go(e.attributes.name)==="verify-v1"||Go(e.attributes.name)==="verification"||Go(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function U1(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,u=t.skipChild,p=u===void 0?!1:u,g=t.inlineStylesheet,y=g===void 0?!0:g,E=t.maskInputOptions,M=E===void 0?{}:E,I=t.maskTextFn,N=t.maskInputFn,O=t.slimDOMOptions,V=t.dataURLOptions,Z=V===void 0?{}:V,Q=t.inlineImages,K=Q===void 0?!1:Q,$=t.recordCanvas,oe=$===void 0?!1:$,ae=t.onSerialize,ue=t.onIframeLoad,Se=t.iframeLoadTimeout,Me=Se===void 0?5e3:Se,ge=t.onStylesheetLoad,Pe=t.stylesheetLoadTimeout,He=Pe===void 0?5e3:Pe,$e=t.keepIframeSrcFn,me=$e===void 0?function(){return!1}:$e,be=t.newlyAddedElement,Qe=be===void 0?!1:be,Xe=t.cssCaptured,rt=Xe===void 0?!1:Xe,bt=t.needsMask,It=t.preserveWhiteSpace,Bt=It===void 0?!0:It;if(!bt){var Nt=bt===void 0;bt=E9(e,s,a,Nt)}var Tt=fZ(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:bt,inlineStylesheet:y,maskInputOptions:M,maskTextFn:I,maskInputFn:N,dataURLOptions:Z,inlineImages:K,recordCanvas:oe,keepIframeSrcFn:me,newlyAddedElement:Qe,cssCaptured:rt});if(!Tt)return console.warn(e,"not serialized"),null;var nt;n.hasNode(e)?nt=n.getId(e):gZ(Tt,O)||!Bt&&Tt.type===pa.Text&&!Tt.textContent.replace(/^\s+|\s+$/gm,"").length?nt=Ry:nt=v9();var yt=Object.assign(Tt,{id:nt});if(n.add(e,yt),nt===Ry)return null;ae&&ae(e);var Ir=!p;if(yt.type===pa.Element){Ir=Ir&&!yt.needBlock,delete yt.needBlock;var mr=uc.shadowRoot(e);mr&&Ny(mr)&&(yt.isShadowHost=!0)}if((yt.type===pa.Document||yt.type===pa.Element)&&Ir){O.headWhitespace&&yt.type===pa.Element&&yt.tagName==="head"&&(Bt=!1);var kr={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:bt,maskTextClass:s,maskTextSelector:a,skipChild:p,inlineStylesheet:y,maskInputOptions:M,maskTextFn:I,maskInputFn:N,slimDOMOptions:O,dataURLOptions:Z,inlineImages:K,recordCanvas:oe,preserveWhiteSpace:Bt,onSerialize:ae,onIframeLoad:ue,iframeLoadTimeout:Me,onStylesheetLoad:ge,stylesheetLoadTimeout:He,keepIframeSrcFn:me,cssCaptured:!1};if(!(yt.type===pa.Element&&yt.tagName==="textarea"&&yt.attributes.value!==void 0)){yt.type===pa.Element&&yt.attributes._cssText!==void 0&&typeof yt.attributes._cssText=="string"&&(kr.cssCaptured=!0);for(var Fr=un(Array.from(uc.childNodes(e))),wn;!(wn=Fr()).done;){var _r=wn.value,en=U1(_r,kr);en&&yt.childNodes.push(en)}}var $r=null;if(d9(e)&&($r=uc.shadowRoot(e)))for(var fi=un(Array.from(uc.childNodes($r))),vi;!(vi=fi()).done;){var Ei=vi.value,ki=U1(Ei,kr);ki&&(Ny($r)&&(ki.isShadow=!0),yt.childNodes.push(ki))}}var jn=uc.parentNode(e);return jn&&Oy(jn)&&Ny(jn)&&(yt.isShadow=!0),yt.type===pa.Element&&yt.tagName==="iframe"&&uZ(e,function(){var ni=e.contentDocument;if(ni&&ue){var jr=U1(ni,{doc:ni,mirror:n,blockClass:i,blockSelector:o,needsMask:bt,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:y,maskInputOptions:M,maskTextFn:I,maskInputFn:N,slimDOMOptions:O,dataURLOptions:Z,inlineImages:K,recordCanvas:oe,preserveWhiteSpace:Bt,onSerialize:ae,onIframeLoad:ue,iframeLoadTimeout:Me,onStylesheetLoad:ge,stylesheetLoadTimeout:He,keepIframeSrcFn:me});jr&&ue(e,jr)}},Me),yt.type===pa.Element&&yt.tagName==="link"&&typeof yt.attributes.rel=="string"&&(yt.attributes.rel==="stylesheet"||yt.attributes.rel==="preload"&&typeof yt.attributes.href=="string"&&m9(yt.attributes.href)==="css")&&lZ(e,function(){if(ge){var ni=U1(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:bt,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:y,maskInputOptions:M,maskTextFn:I,maskInputFn:N,slimDOMOptions:O,dataURLOptions:Z,inlineImages:K,recordCanvas:oe,preserveWhiteSpace:Bt,onSerialize:ae,onIframeLoad:ue,iframeLoadTimeout:Me,onStylesheetLoad:ge,stylesheetLoadTimeout:He,keepIframeSrcFn:me});ni&&ge(e,ni)}},He),yt}function mZ(e,t){var r=t||{},n=r.mirror,i=n===void 0?new p9:n,o=r.blockClass,s=o===void 0?"rr-block":o,a=r.blockSelector,u=a===void 0?null:a,p=r.maskTextClass,g=p===void 0?"rr-mask":p,y=r.maskTextSelector,E=y===void 0?null:y,M=r.inlineStylesheet,I=M===void 0?!0:M,N=r.inlineImages,O=N===void 0?!1:N,V=r.recordCanvas,Z=V===void 0?!1:V,Q=r.maskAllInputs,K=Q===void 0?!1:Q,$=r.maskTextFn,oe=r.maskInputFn,ae=r.slimDOM,ue=ae===void 0?!1:ae,Se=r.dataURLOptions,Me=r.preserveWhiteSpace,ge=r.onSerialize,Pe=r.onIframeLoad,He=r.iframeLoadTimeout,$e=r.onStylesheetLoad,me=r.stylesheetLoadTimeout,be=r.keepIframeSrcFn,Qe=be===void 0?function(){return!1}:be,Xe=K===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:K===!1?{password:!0}:K,rt=ue===!0||ue==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:ue==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:ue===!1?{}:ue;return U1(e,{doc:e,mirror:i,blockClass:s,blockSelector:u,maskTextClass:g,maskTextSelector:E,skipChild:!1,inlineStylesheet:I,maskInputOptions:Xe,maskTextFn:$,maskInputFn:oe,slimDOMOptions:rt,dataURLOptions:Se,inlineImages:O,recordCanvas:Z,preserveWhiteSpace:Me,onSerialize:ge,onIframeLoad:Pe,iframeLoadTimeout:He,onStylesheetLoad:$e,stylesheetLoadTimeout:me,keepIframeSrcFn:Qe,newlyAddedElement:!1})}function vZ(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yZ(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return Ci(this,n)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var yS={exports:{}},es=String,k9=function(){return{isColorSupported:!1,reset:es,bold:es,dim:es,italic:es,underline:es,inverse:es,hidden:es,strikethrough:es,black:es,red:es,green:es,yellow:es,blue:es,magenta:es,cyan:es,white:es,gray:es,bgBlack:es,bgRed:es,bgGreen:es,bgYellow:es,bgBlue:es,bgMagenta:es,bgCyan:es,bgWhite:es}};yS.exports=k9(),yS.exports.createColors=k9;var wZ=yS.exports,AZ={},bZ=Object.freeze(Object.defineProperty({__proto__:null,default:AZ},Symbol.toStringTag,{value:"Module"})),Ds=yZ(bZ),S9=wZ,I9=Ds,wS=function(e){cc(t,e);function t(n,i,o,s,a,u){var p;return p=e.call(this,n)||this,p.name="CssSyntaxError",p.reason=n,a&&(p.file=a),s&&(p.source=s),u&&(p.plugin=u),typeof i<"u"&&typeof o<"u"&&(typeof i=="number"?(p.line=i,p.column=o):(p.line=i.line,p.column=i.column,p.endLine=o.line,p.endColumn=o.column)),p.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(p,t),p}var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(i){var o=this;if(!this.source)return"";var s=this.source;i==null&&(i=S9.isColorSupported),I9&&i&&(s=I9(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),p=Math.min(this.line+2,a.length),g=String(p).length,y,E;if(i){var M=S9.createColors(!0),I=M.bold,N=M.gray,O=M.red;y=function(V){return I(O(V))},E=function(V){return N(V)}}else y=E=function(V){return V};return a.slice(u,p).map(function(V,Z){var Q=u+1+Z,K=" "+(" "+Q).slice(-g)+" | ";if(Q===o.line){var $=E(K.replace(/\d/g," "))+V.slice(0,o.column-1).replace(/[^\t]/g," ");return y(">")+E(K)+V+`
7
+ */(function(e){const t=tb,r=aS,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=g,e.SlowBuffer=$,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i;const{Uint8Array:o,ArrayBuffer:s,SharedArrayBuffer:a}=globalThis;g.TYPED_ARRAY_SUPPORT=u(),!g.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 u(){try{const L=new o(1),T={foo:function(){return 42}};return Object.setPrototypeOf(T,o.prototype),Object.setPrototypeOf(L,T),L.foo()===42}catch{return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}});function p(L){if(L>i)throw new RangeError('The value "'+L+'" is invalid for option "size"');const T=new o(L);return Object.setPrototypeOf(T,g.prototype),T}function g(L,T,D){if(typeof L=="number"){if(typeof T=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return I(L)}return y(L,T,D)}g.poolSize=8192;function y(L,T,D){if(typeof L=="string")return N(L,T);if(s.isView(L))return V(L);if(L==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L);if(kn(L,s)||L&&kn(L.buffer,s)||typeof a<"u"&&(kn(L,a)||L&&kn(L.buffer,a)))return Z(L,T,D);if(typeof L=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ee=L.valueOf&&L.valueOf();if(ee!=null&&ee!==L)return g.from(ee,T,D);const Ae=Q(L);if(Ae)return Ae;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof L[Symbol.toPrimitive]=="function")return g.from(L[Symbol.toPrimitive]("string"),T,D);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L)}g.from=function(L,T,D){return y(L,T,D)},Object.setPrototypeOf(g.prototype,o.prototype),Object.setPrototypeOf(g,o);function E(L){if(typeof L!="number")throw new TypeError('"size" argument must be of type number');if(L<0)throw new RangeError('The value "'+L+'" is invalid for option "size"')}function M(L,T,D){return E(L),L<=0?p(L):T!==void 0?typeof D=="string"?p(L).fill(T,D):p(L).fill(T):p(L)}g.alloc=function(L,T,D){return M(L,T,D)};function I(L){return E(L),p(L<0?0:K(L)|0)}g.allocUnsafe=function(L){return I(L)},g.allocUnsafeSlow=function(L){return I(L)};function N(L,T){if((typeof T!="string"||T==="")&&(T="utf8"),!g.isEncoding(T))throw new TypeError("Unknown encoding: "+T);const D=oe(L,T)|0;let ee=p(D);const Ae=ee.write(L,T);return Ae!==D&&(ee=ee.slice(0,Ae)),ee}function O(L){const T=L.length<0?0:K(L.length)|0,D=p(T);for(let ee=0;ee<T;ee+=1)D[ee]=L[ee]&255;return D}function V(L){if(kn(L,o)){const T=new o(L);return Z(T.buffer,T.byteOffset,T.byteLength)}return O(L)}function Z(L,T,D){if(T<0||L.byteLength<T)throw new RangeError('"offset" is outside of buffer bounds');if(L.byteLength<T+(D||0))throw new RangeError('"length" is outside of buffer bounds');let ee;return T===void 0&&D===void 0?ee=new o(L):D===void 0?ee=new o(L,T):ee=new o(L,T,D),Object.setPrototypeOf(ee,g.prototype),ee}function Q(L){if(g.isBuffer(L)){const T=K(L.length)|0,D=p(T);return D.length===0||L.copy(D,0,0,T),D}if(L.length!==void 0)return typeof L.length!="number"||Si(L.length)?p(0):O(L);if(L.type==="Buffer"&&Array.isArray(L.data))return O(L.data)}function K(L){if(L>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return L|0}function $(L){return+L!=L&&(L=0),g.alloc(+L)}g.isBuffer=function(T){return T!=null&&T._isBuffer===!0&&T!==g.prototype},g.compare=function(T,D){if(kn(T,o)&&(T=g.from(T,T.offset,T.byteLength)),kn(D,o)&&(D=g.from(D,D.offset,D.byteLength)),!g.isBuffer(T)||!g.isBuffer(D))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(T===D)return 0;let ee=T.length,Ae=D.length;for(let Te=0,Ve=Math.min(ee,Ae);Te<Ve;++Te)if(T[Te]!==D[Te]){ee=T[Te],Ae=D[Te];break}return ee<Ae?-1:Ae<ee?1:0},g.isEncoding=function(T){switch(String(T).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(T,D){if(!Array.isArray(T))throw new TypeError('"list" argument must be an Array of Buffers');if(T.length===0)return g.alloc(0);let ee;if(D===void 0)for(D=0,ee=0;ee<T.length;++ee)D+=T[ee].length;const Ae=g.allocUnsafe(D);let Te=0;for(ee=0;ee<T.length;++ee){let Ve=T[ee];if(kn(Ve,o))Te+Ve.length>Ae.length?(g.isBuffer(Ve)||(Ve=g.from(Ve)),Ve.copy(Ae,Te)):o.prototype.set.call(Ae,Ve,Te);else if(g.isBuffer(Ve))Ve.copy(Ae,Te);else throw new TypeError('"list" argument must be an Array of Buffers');Te+=Ve.length}return Ae};function oe(L,T){if(g.isBuffer(L))return L.length;if(s.isView(L)||kn(L,s))return L.byteLength;if(typeof L!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof L);const D=L.length,ee=arguments.length>2&&arguments[2]===!0;if(!ee&&D===0)return 0;let Ae=!1;for(;;)switch(T){case"ascii":case"latin1":case"binary":return D;case"utf8":case"utf-8":return ni(L).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D*2;case"hex":return D>>>1;case"base64":return Jn(L).length;default:if(Ae)return ee?-1:ni(L).length;T=(""+T).toLowerCase(),Ae=!0}}g.byteLength=oe;function ae(L,T,D){let ee=!1;if((T===void 0||T<0)&&(T=0),T>this.length||((D===void 0||D>this.length)&&(D=this.length),D<=0)||(D>>>=0,T>>>=0,D<=T))return"";for(L||(L="utf8");;)switch(L){case"hex":return Bt(this,T,D);case"utf8":case"utf-8":return Qe(this,T,D);case"ascii":return bt(this,T,D);case"latin1":case"binary":return It(this,T,D);case"base64":return be(this,T,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Nt(this,T,D);default:if(ee)throw new TypeError("Unknown encoding: "+L);L=(L+"").toLowerCase(),ee=!0}}g.prototype._isBuffer=!0;function ue(L,T,D){const ee=L[T];L[T]=L[D],L[D]=ee}g.prototype.swap16=function(){const T=this.length;if(T%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let D=0;D<T;D+=2)ue(this,D,D+1);return this},g.prototype.swap32=function(){const T=this.length;if(T%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let D=0;D<T;D+=4)ue(this,D,D+3),ue(this,D+1,D+2);return this},g.prototype.swap64=function(){const T=this.length;if(T%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let D=0;D<T;D+=8)ue(this,D,D+7),ue(this,D+1,D+6),ue(this,D+2,D+5),ue(this,D+3,D+4);return this},g.prototype.toString=function(){const T=this.length;return T===0?"":arguments.length===0?Qe(this,0,T):ae.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(T){if(!g.isBuffer(T))throw new TypeError("Argument must be a Buffer");return this===T?!0:g.compare(this,T)===0},g.prototype.inspect=function(){let T="";const D=e.INSPECT_MAX_BYTES;return T=this.toString("hex",0,D).replace(/(.{2})/g,"$1 ").trim(),this.length>D&&(T+=" ... "),"<Buffer "+T+">"},n&&(g.prototype[n]=g.prototype.inspect),g.prototype.compare=function(T,D,ee,Ae,Te){if(kn(T,o)&&(T=g.from(T,T.offset,T.byteLength)),!g.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(D===void 0&&(D=0),ee===void 0&&(ee=T?T.length:0),Ae===void 0&&(Ae=0),Te===void 0&&(Te=this.length),D<0||ee>T.length||Ae<0||Te>this.length)throw new RangeError("out of range index");if(Ae>=Te&&D>=ee)return 0;if(Ae>=Te)return-1;if(D>=ee)return 1;if(D>>>=0,ee>>>=0,Ae>>>=0,Te>>>=0,this===T)return 0;let Ve=Te-Ae,it=ee-D;const Rt=Math.min(Ve,it),zn=this.slice(Ae,Te),yi=T.slice(D,ee);for(let In=0;In<Rt;++In)if(zn[In]!==yi[In]){Ve=zn[In],it=yi[In];break}return Ve<it?-1:it<Ve?1:0};function Se(L,T,D,ee,Ae){if(L.length===0)return-1;if(typeof D=="string"?(ee=D,D=0):D>2147483647?D=2147483647:D<-2147483648&&(D=-2147483648),D=+D,Si(D)&&(D=Ae?0:L.length-1),D<0&&(D=L.length+D),D>=L.length){if(Ae)return-1;D=L.length-1}else if(D<0)if(Ae)D=0;else return-1;if(typeof T=="string"&&(T=g.from(T,ee)),g.isBuffer(T))return T.length===0?-1:Me(L,T,D,ee,Ae);if(typeof T=="number")return T=T&255,typeof o.prototype.indexOf=="function"?Ae?o.prototype.indexOf.call(L,T,D):o.prototype.lastIndexOf.call(L,T,D):Me(L,[T],D,ee,Ae);throw new TypeError("val must be string, number or Buffer")}function Me(L,T,D,ee,Ae){let Te=1,Ve=L.length,it=T.length;if(ee!==void 0&&(ee=String(ee).toLowerCase(),ee==="ucs2"||ee==="ucs-2"||ee==="utf16le"||ee==="utf-16le")){if(L.length<2||T.length<2)return-1;Te=2,Ve/=2,it/=2,D/=2}function Rt(yi,In){return Te===1?yi[In]:yi.readUInt16BE(In*Te)}let zn;if(Ae){let yi=-1;for(zn=D;zn<Ve;zn++)if(Rt(L,zn)===Rt(T,yi===-1?0:zn-yi)){if(yi===-1&&(yi=zn),zn-yi+1===it)return yi*Te}else yi!==-1&&(zn-=zn-yi),yi=-1}else for(D+it>Ve&&(D=Ve-it),zn=D;zn>=0;zn--){let yi=!0;for(let In=0;In<it;In++)if(Rt(L,zn+In)!==Rt(T,In)){yi=!1;break}if(yi)return zn}return-1}g.prototype.includes=function(T,D,ee){return this.indexOf(T,D,ee)!==-1},g.prototype.indexOf=function(T,D,ee){return Se(this,T,D,ee,!0)},g.prototype.lastIndexOf=function(T,D,ee){return Se(this,T,D,ee,!1)};function ge(L,T,D,ee){D=Number(D)||0;const Ae=L.length-D;ee?(ee=Number(ee),ee>Ae&&(ee=Ae)):ee=Ae;const Te=T.length;ee>Te/2&&(ee=Te/2);let Ve;for(Ve=0;Ve<ee;++Ve){const it=parseInt(T.substr(Ve*2,2),16);if(Si(it))return Ve;L[D+Ve]=it}return Ve}function Pe(L,T,D,ee){return Ji(ni(T,L.length-D),L,D,ee)}function He(L,T,D,ee){return Ji(jr(T),L,D,ee)}function $e(L,T,D,ee){return Ji(Jn(T),L,D,ee)}function me(L,T,D,ee){return Ji(Zr(T,L.length-D),L,D,ee)}g.prototype.write=function(T,D,ee,Ae){if(D===void 0)Ae="utf8",ee=this.length,D=0;else if(ee===void 0&&typeof D=="string")Ae=D,ee=this.length,D=0;else if(isFinite(D))D=D>>>0,isFinite(ee)?(ee=ee>>>0,Ae===void 0&&(Ae="utf8")):(Ae=ee,ee=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Te=this.length-D;if((ee===void 0||ee>Te)&&(ee=Te),T.length>0&&(ee<0||D<0)||D>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ae||(Ae="utf8");let Ve=!1;for(;;)switch(Ae){case"hex":return ge(this,T,D,ee);case"utf8":case"utf-8":return Pe(this,T,D,ee);case"ascii":case"latin1":case"binary":return He(this,T,D,ee);case"base64":return $e(this,T,D,ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,T,D,ee);default:if(Ve)throw new TypeError("Unknown encoding: "+Ae);Ae=(""+Ae).toLowerCase(),Ve=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function be(L,T,D){return T===0&&D===L.length?t.fromByteArray(L):t.fromByteArray(L.slice(T,D))}function Qe(L,T,D){D=Math.min(L.length,D);const ee=[];let Ae=T;for(;Ae<D;){const Te=L[Ae];let Ve=null,it=Te>239?4:Te>223?3:Te>191?2:1;if(Ae+it<=D){let Rt,zn,yi,In;switch(it){case 1:Te<128&&(Ve=Te);break;case 2:Rt=L[Ae+1],(Rt&192)===128&&(In=(Te&31)<<6|Rt&63,In>127&&(Ve=In));break;case 3:Rt=L[Ae+1],zn=L[Ae+2],(Rt&192)===128&&(zn&192)===128&&(In=(Te&15)<<12|(Rt&63)<<6|zn&63,In>2047&&(In<55296||In>57343)&&(Ve=In));break;case 4:Rt=L[Ae+1],zn=L[Ae+2],yi=L[Ae+3],(Rt&192)===128&&(zn&192)===128&&(yi&192)===128&&(In=(Te&15)<<18|(Rt&63)<<12|(zn&63)<<6|yi&63,In>65535&&In<1114112&&(Ve=In))}}Ve===null?(Ve=65533,it=1):Ve>65535&&(Ve-=65536,ee.push(Ve>>>10&1023|55296),Ve=56320|Ve&1023),ee.push(Ve),Ae+=it}return rt(ee)}const Xe=4096;function rt(L){const T=L.length;if(T<=Xe)return String.fromCharCode.apply(String,L);let D="",ee=0;for(;ee<T;)D+=String.fromCharCode.apply(String,L.slice(ee,ee+=Xe));return D}function bt(L,T,D){let ee="";D=Math.min(L.length,D);for(let Ae=T;Ae<D;++Ae)ee+=String.fromCharCode(L[Ae]&127);return ee}function It(L,T,D){let ee="";D=Math.min(L.length,D);for(let Ae=T;Ae<D;++Ae)ee+=String.fromCharCode(L[Ae]);return ee}function Bt(L,T,D){const ee=L.length;(!T||T<0)&&(T=0),(!D||D<0||D>ee)&&(D=ee);let Ae="";for(let Te=T;Te<D;++Te)Ae+=w[L[Te]];return Ae}function Nt(L,T,D){const ee=L.slice(T,D);let Ae="";for(let Te=0;Te<ee.length-1;Te+=2)Ae+=String.fromCharCode(ee[Te]+ee[Te+1]*256);return Ae}g.prototype.slice=function(T,D){const ee=this.length;T=~~T,D=D===void 0?ee:~~D,T<0?(T+=ee,T<0&&(T=0)):T>ee&&(T=ee),D<0?(D+=ee,D<0&&(D=0)):D>ee&&(D=ee),D<T&&(D=T);const Ae=this.subarray(T,D);return Object.setPrototypeOf(Ae,g.prototype),Ae};function Tt(L,T,D){if(L%1!==0||L<0)throw new RangeError("offset is not uint");if(L+T>D)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(T,D,ee){T=T>>>0,D=D>>>0,ee||Tt(T,D,this.length);let Ae=this[T],Te=1,Ve=0;for(;++Ve<D&&(Te*=256);)Ae+=this[T+Ve]*Te;return Ae},g.prototype.readUintBE=g.prototype.readUIntBE=function(T,D,ee){T=T>>>0,D=D>>>0,ee||Tt(T,D,this.length);let Ae=this[T+--D],Te=1;for(;D>0&&(Te*=256);)Ae+=this[T+--D]*Te;return Ae},g.prototype.readUint8=g.prototype.readUInt8=function(T,D){return T=T>>>0,D||Tt(T,1,this.length),this[T]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(T,D){return T=T>>>0,D||Tt(T,2,this.length),this[T]|this[T+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(T,D){return T=T>>>0,D||Tt(T,2,this.length),this[T]<<8|this[T+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(T,D){return T=T>>>0,D||Tt(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+this[T+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(T,D){return T=T>>>0,D||Tt(T,4,this.length),this[T]*16777216+(this[T+1]<<16|this[T+2]<<8|this[T+3])},g.prototype.readBigUInt64LE=S(function(T){T=T>>>0,vi(T,"offset");const D=this[T],ee=this[T+7];(D===void 0||ee===void 0)&&Ei(T,this.length-8);const Ae=D+this[++T]*2**8+this[++T]*2**16+this[++T]*2**24,Te=this[++T]+this[++T]*2**8+this[++T]*2**16+ee*2**24;return BigInt(Ae)+(BigInt(Te)<<BigInt(32))}),g.prototype.readBigUInt64BE=S(function(T){T=T>>>0,vi(T,"offset");const D=this[T],ee=this[T+7];(D===void 0||ee===void 0)&&Ei(T,this.length-8);const Ae=D*2**24+this[++T]*2**16+this[++T]*2**8+this[++T],Te=this[++T]*2**24+this[++T]*2**16+this[++T]*2**8+ee;return(BigInt(Ae)<<BigInt(32))+BigInt(Te)}),g.prototype.readIntLE=function(T,D,ee){T=T>>>0,D=D>>>0,ee||Tt(T,D,this.length);let Ae=this[T],Te=1,Ve=0;for(;++Ve<D&&(Te*=256);)Ae+=this[T+Ve]*Te;return Te*=128,Ae>=Te&&(Ae-=Math.pow(2,8*D)),Ae},g.prototype.readIntBE=function(T,D,ee){T=T>>>0,D=D>>>0,ee||Tt(T,D,this.length);let Ae=D,Te=1,Ve=this[T+--Ae];for(;Ae>0&&(Te*=256);)Ve+=this[T+--Ae]*Te;return Te*=128,Ve>=Te&&(Ve-=Math.pow(2,8*D)),Ve},g.prototype.readInt8=function(T,D){return T=T>>>0,D||Tt(T,1,this.length),this[T]&128?(255-this[T]+1)*-1:this[T]},g.prototype.readInt16LE=function(T,D){T=T>>>0,D||Tt(T,2,this.length);const ee=this[T]|this[T+1]<<8;return ee&32768?ee|4294901760:ee},g.prototype.readInt16BE=function(T,D){T=T>>>0,D||Tt(T,2,this.length);const ee=this[T+1]|this[T]<<8;return ee&32768?ee|4294901760:ee},g.prototype.readInt32LE=function(T,D){return T=T>>>0,D||Tt(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},g.prototype.readInt32BE=function(T,D){return T=T>>>0,D||Tt(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},g.prototype.readBigInt64LE=S(function(T){T=T>>>0,vi(T,"offset");const D=this[T],ee=this[T+7];(D===void 0||ee===void 0)&&Ei(T,this.length-8);const Ae=this[T+4]+this[T+5]*2**8+this[T+6]*2**16+(ee<<24);return(BigInt(Ae)<<BigInt(32))+BigInt(D+this[++T]*2**8+this[++T]*2**16+this[++T]*2**24)}),g.prototype.readBigInt64BE=S(function(T){T=T>>>0,vi(T,"offset");const D=this[T],ee=this[T+7];(D===void 0||ee===void 0)&&Ei(T,this.length-8);const Ae=(D<<24)+this[++T]*2**16+this[++T]*2**8+this[++T];return(BigInt(Ae)<<BigInt(32))+BigInt(this[++T]*2**24+this[++T]*2**16+this[++T]*2**8+ee)}),g.prototype.readFloatLE=function(T,D){return T=T>>>0,D||Tt(T,4,this.length),r.read(this,T,!0,23,4)},g.prototype.readFloatBE=function(T,D){return T=T>>>0,D||Tt(T,4,this.length),r.read(this,T,!1,23,4)},g.prototype.readDoubleLE=function(T,D){return T=T>>>0,D||Tt(T,8,this.length),r.read(this,T,!0,52,8)},g.prototype.readDoubleBE=function(T,D){return T=T>>>0,D||Tt(T,8,this.length),r.read(this,T,!1,52,8)};function nt(L,T,D,ee,Ae,Te){if(!g.isBuffer(L))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>Ae||T<Te)throw new RangeError('"value" argument is out of bounds');if(D+ee>L.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(T,D,ee,Ae){if(T=+T,D=D>>>0,ee=ee>>>0,!Ae){const it=Math.pow(2,8*ee)-1;nt(this,T,D,ee,it,0)}let Te=1,Ve=0;for(this[D]=T&255;++Ve<ee&&(Te*=256);)this[D+Ve]=T/Te&255;return D+ee},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(T,D,ee,Ae){if(T=+T,D=D>>>0,ee=ee>>>0,!Ae){const it=Math.pow(2,8*ee)-1;nt(this,T,D,ee,it,0)}let Te=ee-1,Ve=1;for(this[D+Te]=T&255;--Te>=0&&(Ve*=256);)this[D+Te]=T/Ve&255;return D+ee},g.prototype.writeUint8=g.prototype.writeUInt8=function(T,D,ee){return T=+T,D=D>>>0,ee||nt(this,T,D,1,255,0),this[D]=T&255,D+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(T,D,ee){return T=+T,D=D>>>0,ee||nt(this,T,D,2,65535,0),this[D]=T&255,this[D+1]=T>>>8,D+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(T,D,ee){return T=+T,D=D>>>0,ee||nt(this,T,D,2,65535,0),this[D]=T>>>8,this[D+1]=T&255,D+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(T,D,ee){return T=+T,D=D>>>0,ee||nt(this,T,D,4,4294967295,0),this[D+3]=T>>>24,this[D+2]=T>>>16,this[D+1]=T>>>8,this[D]=T&255,D+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(T,D,ee){return T=+T,D=D>>>0,ee||nt(this,T,D,4,4294967295,0),this[D]=T>>>24,this[D+1]=T>>>16,this[D+2]=T>>>8,this[D+3]=T&255,D+4};function yt(L,T,D,ee,Ae){fi(T,ee,Ae,L,D,7);let Te=Number(T&BigInt(4294967295));L[D++]=Te,Te=Te>>8,L[D++]=Te,Te=Te>>8,L[D++]=Te,Te=Te>>8,L[D++]=Te;let Ve=Number(T>>BigInt(32)&BigInt(4294967295));return L[D++]=Ve,Ve=Ve>>8,L[D++]=Ve,Ve=Ve>>8,L[D++]=Ve,Ve=Ve>>8,L[D++]=Ve,D}function Ir(L,T,D,ee,Ae){fi(T,ee,Ae,L,D,7);let Te=Number(T&BigInt(4294967295));L[D+7]=Te,Te=Te>>8,L[D+6]=Te,Te=Te>>8,L[D+5]=Te,Te=Te>>8,L[D+4]=Te;let Ve=Number(T>>BigInt(32)&BigInt(4294967295));return L[D+3]=Ve,Ve=Ve>>8,L[D+2]=Ve,Ve=Ve>>8,L[D+1]=Ve,Ve=Ve>>8,L[D]=Ve,D+8}g.prototype.writeBigUInt64LE=S(function(T,D=0){return yt(this,T,D,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=S(function(T,D=0){return Ir(this,T,D,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(T,D,ee,Ae){if(T=+T,D=D>>>0,!Ae){const Rt=Math.pow(2,8*ee-1);nt(this,T,D,ee,Rt-1,-Rt)}let Te=0,Ve=1,it=0;for(this[D]=T&255;++Te<ee&&(Ve*=256);)T<0&&it===0&&this[D+Te-1]!==0&&(it=1),this[D+Te]=(T/Ve>>0)-it&255;return D+ee},g.prototype.writeIntBE=function(T,D,ee,Ae){if(T=+T,D=D>>>0,!Ae){const Rt=Math.pow(2,8*ee-1);nt(this,T,D,ee,Rt-1,-Rt)}let Te=ee-1,Ve=1,it=0;for(this[D+Te]=T&255;--Te>=0&&(Ve*=256);)T<0&&it===0&&this[D+Te+1]!==0&&(it=1),this[D+Te]=(T/Ve>>0)-it&255;return D+ee},g.prototype.writeInt8=function(T,D,ee){return T=+T,D=D>>>0,ee||nt(this,T,D,1,127,-128),T<0&&(T=255+T+1),this[D]=T&255,D+1},g.prototype.writeInt16LE=function(T,D,ee){return T=+T,D=D>>>0,ee||nt(this,T,D,2,32767,-32768),this[D]=T&255,this[D+1]=T>>>8,D+2},g.prototype.writeInt16BE=function(T,D,ee){return T=+T,D=D>>>0,ee||nt(this,T,D,2,32767,-32768),this[D]=T>>>8,this[D+1]=T&255,D+2},g.prototype.writeInt32LE=function(T,D,ee){return T=+T,D=D>>>0,ee||nt(this,T,D,4,2147483647,-2147483648),this[D]=T&255,this[D+1]=T>>>8,this[D+2]=T>>>16,this[D+3]=T>>>24,D+4},g.prototype.writeInt32BE=function(T,D,ee){return T=+T,D=D>>>0,ee||nt(this,T,D,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[D]=T>>>24,this[D+1]=T>>>16,this[D+2]=T>>>8,this[D+3]=T&255,D+4},g.prototype.writeBigInt64LE=S(function(T,D=0){return yt(this,T,D,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=S(function(T,D=0){return Ir(this,T,D,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function mr(L,T,D,ee,Ae,Te){if(D+ee>L.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("Index out of range")}function kr(L,T,D,ee,Ae){return T=+T,D=D>>>0,Ae||mr(L,T,D,4),r.write(L,T,D,ee,23,4),D+4}g.prototype.writeFloatLE=function(T,D,ee){return kr(this,T,D,!0,ee)},g.prototype.writeFloatBE=function(T,D,ee){return kr(this,T,D,!1,ee)};function Fr(L,T,D,ee,Ae){return T=+T,D=D>>>0,Ae||mr(L,T,D,8),r.write(L,T,D,ee,52,8),D+8}g.prototype.writeDoubleLE=function(T,D,ee){return Fr(this,T,D,!0,ee)},g.prototype.writeDoubleBE=function(T,D,ee){return Fr(this,T,D,!1,ee)},g.prototype.copy=function(T,D,ee,Ae){if(!g.isBuffer(T))throw new TypeError("argument should be a Buffer");if(ee||(ee=0),!Ae&&Ae!==0&&(Ae=this.length),D>=T.length&&(D=T.length),D||(D=0),Ae>0&&Ae<ee&&(Ae=ee),Ae===ee||T.length===0||this.length===0)return 0;if(D<0)throw new RangeError("targetStart out of bounds");if(ee<0||ee>=this.length)throw new RangeError("Index out of range");if(Ae<0)throw new RangeError("sourceEnd out of bounds");Ae>this.length&&(Ae=this.length),T.length-D<Ae-ee&&(Ae=T.length-D+ee);const Te=Ae-ee;return this===T&&typeof o.prototype.copyWithin=="function"?this.copyWithin(D,ee,Ae):o.prototype.set.call(T,this.subarray(ee,Ae),D),Te},g.prototype.fill=function(T,D,ee,Ae){if(typeof T=="string"){if(typeof D=="string"?(Ae=D,D=0,ee=this.length):typeof ee=="string"&&(Ae=ee,ee=this.length),Ae!==void 0&&typeof Ae!="string")throw new TypeError("encoding must be a string");if(typeof Ae=="string"&&!g.isEncoding(Ae))throw new TypeError("Unknown encoding: "+Ae);if(T.length===1){const Ve=T.charCodeAt(0);(Ae==="utf8"&&Ve<128||Ae==="latin1")&&(T=Ve)}}else typeof T=="number"?T=T&255:typeof T=="boolean"&&(T=Number(T));if(D<0||this.length<D||this.length<ee)throw new RangeError("Out of range index");if(ee<=D)return this;D=D>>>0,ee=ee===void 0?this.length:ee>>>0,T||(T=0);let Te;if(typeof T=="number")for(Te=D;Te<ee;++Te)this[Te]=T;else{const Ve=g.isBuffer(T)?T:g.from(T,Ae),it=Ve.length;if(it===0)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for(Te=0;Te<ee-D;++Te)this[Te+D]=Ve[Te%it]}return this};const wn={};function _r(L,T,D){wn[L]=class extends D{constructor(){super(),Object.defineProperty(this,"message",{value:T.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${L}]`,this.stack,delete this.name}get code(){return L}set code(Ae){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Ae,writable:!0})}toString(){return`${this.name} [${L}]: ${this.message}`}}}_r("ERR_BUFFER_OUT_OF_BOUNDS",function(L){return L?`${L} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),_r("ERR_INVALID_ARG_TYPE",function(L,T){return`The "${L}" argument must be of type number. Received type ${typeof T}`},TypeError),_r("ERR_OUT_OF_RANGE",function(L,T,D){let ee=`The value of "${L}" is out of range.`,Ae=D;return Number.isInteger(D)&&Math.abs(D)>2**32?Ae=en(String(D)):typeof D=="bigint"&&(Ae=String(D),(D>BigInt(2)**BigInt(32)||D<-(BigInt(2)**BigInt(32)))&&(Ae=en(Ae)),Ae+="n"),ee+=` It must be ${T}. Received ${Ae}`,ee},RangeError);function en(L){let T="",D=L.length;const ee=L[0]==="-"?1:0;for(;D>=ee+4;D-=3)T=`_${L.slice(D-3,D)}${T}`;return`${L.slice(0,D)}${T}`}function $r(L,T,D){vi(T,"offset"),(L[T]===void 0||L[T+D]===void 0)&&Ei(T,L.length-(D+1))}function fi(L,T,D,ee,Ae,Te){if(L>D||L<T){const Ve=typeof T=="bigint"?"n":"";let it;throw T===0||T===BigInt(0)?it=`>= 0${Ve} and < 2${Ve} ** ${(Te+1)*8}${Ve}`:it=`>= -(2${Ve} ** ${(Te+1)*8-1}${Ve}) and < 2 ** ${(Te+1)*8-1}${Ve}`,new wn.ERR_OUT_OF_RANGE("value",it,L)}$r(ee,Ae,Te)}function vi(L,T){if(typeof L!="number")throw new wn.ERR_INVALID_ARG_TYPE(T,"number",L)}function Ei(L,T,D){throw Math.floor(L)!==L?(vi(L,D),new wn.ERR_OUT_OF_RANGE("offset","an integer",L)):T<0?new wn.ERR_BUFFER_OUT_OF_BOUNDS:new wn.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${T}`,L)}const ki=/[^+/0-9A-Za-z-_]/g;function jn(L){if(L=L.split("=")[0],L=L.trim().replace(ki,""),L.length<2)return"";for(;L.length%4!==0;)L=L+"=";return L}function ni(L,T){T=T||1/0;let D;const ee=L.length;let Ae=null;const Te=[];for(let Ve=0;Ve<ee;++Ve){if(D=L.charCodeAt(Ve),D>55295&&D<57344){if(!Ae){if(D>56319){(T-=3)>-1&&Te.push(239,191,189);continue}else if(Ve+1===ee){(T-=3)>-1&&Te.push(239,191,189);continue}Ae=D;continue}if(D<56320){(T-=3)>-1&&Te.push(239,191,189),Ae=D;continue}D=(Ae-55296<<10|D-56320)+65536}else Ae&&(T-=3)>-1&&Te.push(239,191,189);if(Ae=null,D<128){if((T-=1)<0)break;Te.push(D)}else if(D<2048){if((T-=2)<0)break;Te.push(D>>6|192,D&63|128)}else if(D<65536){if((T-=3)<0)break;Te.push(D>>12|224,D>>6&63|128,D&63|128)}else if(D<1114112){if((T-=4)<0)break;Te.push(D>>18|240,D>>12&63|128,D>>6&63|128,D&63|128)}else throw new Error("Invalid code point")}return Te}function jr(L){const T=[];for(let D=0;D<L.length;++D)T.push(L.charCodeAt(D)&255);return T}function Zr(L,T){let D,ee,Ae;const Te=[];for(let Ve=0;Ve<L.length&&!((T-=2)<0);++Ve)D=L.charCodeAt(Ve),ee=D>>8,Ae=D%256,Te.push(Ae),Te.push(ee);return Te}function Jn(L){return t.toByteArray(jn(L))}function Ji(L,T,D,ee){let Ae;for(Ae=0;Ae<ee&&!(Ae+D>=T.length||Ae>=L.length);++Ae)T[Ae+D]=L[Ae];return Ae}function kn(L,T){return L instanceof T||L!=null&&L.constructor!=null&&L.constructor.name!=null&&L.constructor.name===T.name}function Si(L){return L!==L}const w=function(){const L="0123456789abcdef",T=new Array(256);for(let D=0;D<16;++D){const ee=D*16;for(let Ae=0;Ae<16;++Ae)T[ee+Ae]=L[D]+L[Ae]}return T}();function S(L){return typeof BigInt>"u"?R:L}function R(){throw new Error("BigInt not supported")}})(e9);const Pd=e9.Buffer;var rb={GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_38ad5029-c5a9-4b9e-b46f-32d487bbfb22",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",STATS_TRP:"true",USER:"runner",npm_config_always_auth:"true",npm_config_user_agent:"pnpm/10.12.3 npm/? node/v20.19.2 linux x64",CI:"true",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_38ad5029-c5a9-4b9e-b46f-32d487bbfb22",PIPX_HOME:"/opt/pipx",RUNNER_ENVIRONMENT:"github-hosted",npm_node_execpath:"/opt/hostedtoolcache/node/20.19.2/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",NODE_AUTH_TOKEN:"XXXXX-XXXXX-XXXXX-XXXXX",SHLVL:"1",HOME:"/home/runner",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",RUNNER_TEMP:"/home/runner/work/_temp",npm_package_json:"/home/runner/work/passport/passport/packages/passport-sui/package.json",GITHUB_REPOSITORY_OWNER:"credenza-web3",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",npm_package_engines_node:">=18",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.1.13356709",GITHUB_RETENTION_DAYS:"90",GRADLE_HOME:"/usr/share/gradle-8.14.2",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",GITHUB_REPOSITORY_OWNER_ID:"93208388",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",npm_config__credenza3_registry:"https://registry.npmjs.org/",npm_config_userconfig:"/home/runner/work/_temp/.npmrc",SYSTEMD_EXEC_PID:"713",npm_config_engine_strict:"true",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",ImageVersion:"20250622.1.0",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",RUNNER_OS:"Linux",SWIFT_PATH:"/usr/share/swift/usr/bin",pnpm_config_verify_deps_before_run:"false",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GITHUB_WORKFLOW:"Publish @credenza3/passport-sui",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.10/x64",JOURNAL_STREAM:"9:5741",RUNNER_USER:"runner",STATS_V3PS:"true",_:"/home/runner/setup-pnpm/node_modules/.bin/pnpm",GOROOT_1_24_X64:"/opt/hostedtoolcache/go/1.24.4/x64",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",npm_config_registry:"https://registry.npmjs.org/",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",GITHUB_RUN_ID:"15900307080",STATS_D:"true",STATS_VMFE:"true",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_BASE_REF:"",GITHUB_REF_TYPE:"branch",GITHUB_WORKFLOW_SHA:"d5ee046c38d6a5cff2c250f523fae603dc7ef633",ImageOS:"ubuntu24",GITHUB_ACTION_REPOSITORY:"",GITHUB_WORKFLOW_REF:"credenza-web3/passport/.github/workflows/publish-sui.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",npm_config_node_gyp:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.12.3/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/passport/passport/packages/passport-sui/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.12.3/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/passport/passport/node_modules/.bin:/home/runner/work/passport/passport/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.12.3/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/passport/passport/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.19.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",INVOCATION_ID:"27f762094bb547d0a5e1239852e2e815",NODE:"/opt/hostedtoolcache/node/20.19.2/x64/bin/node",NPM_CONFIG_USERCONFIG:"/home/runner/work/_temp/.npmrc",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",RUNNER_TRACKING_ID:"github_67b1130c-1544-4343-a087-500ab2199889",TURBO_HASH:"c3b09443452392ab",npm_package_name:"@credenza3/passport-sui",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"87",GITHUB_TRIGGERING_ACTOR:"mikeavvad",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",npm_config_frozen_lockfile:"",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"credenza-web3/passport",RUNNER_NAME:"GitHub Actions 1000000347",STATS_D_D:"true",STATS_VMD:"true",XDG_CONFIG_HOME:"/home/runner/.config",npm_lifecycle_script:"vite build",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",DEBIAN_FRONTEND:"noninteractive",GITHUB_ACTION_REF:"",STATS_UE:"true",GITHUB_ACTIONS:"true",GITHUB_REPOSITORY_ID:"493155814",NODE_PATH:"/home/runner/work/passport/passport/node_modules/.pnpm/vite@6.3.5_@types+node@24.0.4_jiti@2.4.2_lightningcss@1.29.1_sass@1.89.2_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/vite@6.3.5_@types+node@24.0.4_jiti@2.4.2_lightningcss@1.29.1_sass@1.89.2_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/vite@6.3.5_@types+node@24.0.4_jiti@2.4.2_lightningcss@1.29.1_sass@1.89.2_yaml@2.8.0/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.12.3/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.12.3/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.12.3/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/turbo@1.13.3/node_modules/turbo/bin/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/turbo@1.13.3/node_modules/turbo/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/turbo@1.13.3/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.12.3/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.12.3/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.12.3/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules",STATS_PIP:"false",npm_package_version:"0.1.8",npm_config_verify_deps_before_run:"false",npm_lifecycle_event:"build",GITHUB_REF_PROTECTED:"false",ACCEPT_EULA:"Y",GITHUB_JOB:"publish-gpr",GITHUB_WORKSPACE:"/home/runner/work/passport/passport",RUNNER_PERFLOG:"/home/runner/perflog",TURBO_INVOCATION_DIR:"/home/runner/work/passport/passport",GITHUB_RUN_ATTEMPT:"1",GITHUB_SHA:"d5ee046c38d6a5cff2c250f523fae603dc7ef633",STATS_D_TC:"true",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",GITHUB_ACTOR:"mikeavvad",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR_ID:"87299315",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_38ad5029-c5a9-4b9e-b46f-32d487bbfb22",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/passport/passport/packages/passport-sui",RUNNER_WORKSPACE:"/home/runner/work/passport",npm_execpath:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.12.3/node_modules/pnpm/bin/pnpm.cjs",ANDROID_HOME:"/usr/local/lib/android/sdk",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_EVENT_NAME:"push",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_38ad5029-c5a9-4b9e-b46f-32d487bbfb22",GITHUB_SERVER_URL:"https://github.com",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",HOMEBREW_NO_AUTO_UPDATE:"1",EDGEWEBDRIVER:"/usr/local/share/edge_driver",PNPM_SCRIPT_SRC_DIR:"/home/runner/work/passport/passport/packages/passport-sui",STATS_EXT:"true",npm_config__jsr_registry:"https://npm.jsr.io/",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",CHROME_BIN:"/usr/bin/google-chrome",SGX_AESM_ADDR:"1",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",PNPM_HOME:"/home/runner/setup-pnpm/node_modules/.bin",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_38ad5029-c5a9-4b9e-b46f-32d487bbfb22",INIT_CWD:"/home/runner/work/passport/passport/packages/passport-sui",NODE_ENV:"production"},zr;if(typeof window>"u"){var r9={hostname:""};zr={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:r9,referrer:""},screen:{width:0,height:0},location:r9,addEventListener:function(){},removeEventListener:function(){}}}else zr=window;function n9(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i9(e,t,r,n,i,o,s){try{var a=e[o](s),u=a.value}catch(p){r(p);return}a.done?t(u):Promise.resolve(u).then(n,i)}function cS(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(u){i9(o,n,i,s,a,"next",u)}function a(u){i9(o,n,i,s,a,"throw",u)}s(void 0)})}}function nb(e,t,r){return o9()?nb=Reflect.construct:nb=function(i,o,s){var a=[null];a.push.apply(a,o);var u=Function.bind.apply(i,a),p=new u;return s&&My(p,s.prototype),p},nb.apply(null,arguments)}function bQ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ga(e,t,r){return t&&bQ(e.prototype,t),e}function oo(){return oo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oo.apply(this,arguments)}function uS(e){return uS=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},uS(e)}function cc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&My(e,t)}function Ci(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function EQ(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function xy(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function My(e,t){return My=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},My(e,t)}function Hi(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function kQ(e,t){if(e){if(typeof e=="string")return n9(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n9(e,t)}}function ib(e){var t=typeof Map=="function"?new Map:void 0;return ib=function(n){if(n===null||!EQ(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return nb(n,arguments,uS(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),My(i,n)},ib(e)}function o9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(o9=function(){return!!e})()}function un(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=kQ(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Uy(e,t){var r,n,i,o,s={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(p){return function(g){return u([p,g])}}function u(p){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=p[0]&2?n.return:p[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,p[1])).done)return i;switch(n=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,n=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){s.label=p[1];break}if(p[0]===6&&s.label<i[1]){s.label=i[1],i=p;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(p);break}i[2]&&s.ops.pop(),s.trys.pop();continue}p=t.call(e,s)}catch(g){p=[6,g],n=0}finally{r=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}function s9(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var SQ=Object.defineProperty,IQ=function(e,t,r){return t in e?SQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Br=function(e,t,r){return IQ(e,(typeof t>"u"?"undefined":Hi(t))!=="symbol"?t+"":t,r)},a9,CQ=Object.defineProperty,BQ=function(e,t,r){return t in e?CQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},c9=function(e,t,r){return BQ(e,(typeof t>"u"?"undefined":Hi(t))!=="symbol"?t+"":t,r)},pa=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(pa||{}),u9={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},l9={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ob={},TQ=function(){return!!globalThis.Zone};function lS(e){if(ob[e])return ob[e];var t=globalThis[e],r=t.prototype,n=e in u9?u9[e]:void 0,i=!!(n&&n.every(function(g){var y,E;return!!((E=(y=Object.getOwnPropertyDescriptor(r,g))==null?void 0:y.get)!=null&&E.toString().includes("[native code]"))})),o=e in l9?l9[e]:void 0,s=!!(o&&o.every(function(g){var y;return typeof r[g]=="function"&&((y=r[g])==null?void 0:y.toString().includes("[native code]"))}));if(i&&s&&!TQ())return ob[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return t.prototype;var p=u[e].prototype;return document.body.removeChild(a),p?ob[e]=p:r}catch{return r}}var fS={};function tp(e,t,r){var n,i=e+"."+String(r);if(fS[i])return fS[i].call(t);var o=lS(e),s=(n=Object.getOwnPropertyDescriptor(o,r))==null?void 0:n.get;return s?(fS[i]=s,s.call(t)):t[r]}var dS={};function f9(e,t,r){var n=e+"."+String(r);if(dS[n])return dS[n].bind(t);var i=lS(e),o=i[r];return typeof o!="function"?t[r]:(dS[n]=o,o.bind(t))}function xQ(e){return tp("Node",e,"childNodes")}function MQ(e){return tp("Node",e,"parentNode")}function UQ(e){return tp("Node",e,"parentElement")}function OQ(e){return tp("Node",e,"textContent")}function NQ(e,t){return f9("Node",e,"contains")(t)}function RQ(e){return f9("Node",e,"getRootNode")()}function DQ(e){return!e||!("host"in e)?null:tp("ShadowRoot",e,"host")}function LQ(e){return e.styleSheets}function PQ(e){return!e||!("shadowRoot"in e)?null:tp("Element",e,"shadowRoot")}function VQ(e,t){return tp("Element",e,"querySelector")(t)}function FQ(e,t){return tp("Element",e,"querySelectorAll")(t)}function jQ(){return lS("MutationObserver").constructor}var uc={childNodes:xQ,parentNode:MQ,parentElement:UQ,textContent:OQ,contains:NQ,getRootNode:RQ,host:DQ,styleSheets:LQ,shadowRoot:PQ,querySelector:VQ,querySelectorAll:FQ,mutationObserver:jQ};function d9(e){return e.nodeType===e.ELEMENT_NODE}function Oy(e){var t=e&&"host"in e&&"mode"in e&&uc.host(e)||null;return!!(t&&"shadowRoot"in t&&uc.shadowRoot(t)===e)}function Ny(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function JQ(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function zQ(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return e.layerName===""?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function hS(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);var n=Array.from(t,function(i){return h9(i,r)}).join("");return JQ(n)}catch{return null}}function h9(e,t){if(GQ(e)){var r;try{r=hS(e.styleSheet)||zQ(e)}catch{r=e.cssText}return e.styleSheet.href?sb(r,e.styleSheet.href):r}else{var n=e.cssText;return WQ(e)&&e.selectorText.includes(":")&&(n=HQ(n)),t?sb(n,t):n}}function HQ(e){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function GQ(e){return"styleSheet"in e}function WQ(e){return"selectorText"in e}var p9=function(){function e(){c9(this,"idNodeMap",new Map),c9(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(n){var i;if(!n)return-1;var o=(i=this.getMeta(n))==null?void 0:i.id;return o??-1},t.getNode=function(n){return this.idNodeMap.get(n)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(n){return this.nodeMetaMap.get(n)||null},t.removeNodeFromMap=function(n){var i=this,o=this.getId(n);this.idNodeMap.delete(o),n.childNodes&&n.childNodes.forEach(function(s){return i.removeNodeFromMap(s)})},t.has=function(n){return this.idNodeMap.has(n)},t.hasNode=function(n){return this.nodeMetaMap.has(n)},t.add=function(n,i){var o=i.id;this.idNodeMap.set(o,n),this.nodeMetaMap.set(n,i)},t.replace=function(n,i){var o=this.getNode(n);if(o){var s=this.nodeMetaMap.get(o);s&&this.nodeMetaMap.set(i,s)}this.idNodeMap.set(n,i)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function QQ(){return new p9}function pS(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",u=i&&L0(i);return(r[n.toLowerCase()]||u&&r[u])&&(s?a=s(a,t):a="*".repeat(a.length)),a}function L0(e){return e.toLowerCase()}var g9="__rrweb_original__";function ZQ(e){var t=e.getContext("2d");if(!t)return!0;for(var r=50,n=0;n<e.width;n+=r)for(var i=0;i<e.height;i+=r){var o=t.getImageData,s=g9 in o?o[g9]:o,a=new Uint32Array(s.call(t,n,i,Math.min(r,e.width-n),Math.min(r,e.height-i)).data.buffer);if(a.some(function(u){return u!==0}))return!1}return!0}function gS(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?L0(t):null}function m9(e,t){var r;try{r=new URL(e,t??window.location.href)}catch{return null}var n=/\.([0-9a-z]+)(?:$)/i,i=r.pathname.match(n),o;return(o=i==null?void 0:i[1])!=null?o:null}function KQ(e){var t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var YQ=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,XQ=/^(?:[a-z+]+:)?\/\//i,qQ=/^www\..*/i,_Q=/^(data:)([^,]*),(.*)/i;function sb(e,t){return(e||"").replace(YQ,function(r,n,i,o,s,a){var u=i||s||a,p=n||o||"";if(!u)return r;if(XQ.test(u)||qQ.test(u)||_Q.test(u))return"url("+p+u+p+")";if(u[0]==="/")return"url("+p+(KQ(t)+u)+p+")";var g=t.split("/"),y=u.split("/");g.pop();for(var E=un(y),M;!(M=E()).done;){var I=M.value;I!=="."&&(I===".."?g.pop():g.push(I))}return"url("+p+g.join("/")+p+")"})}function mS(e){return e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function $Q(e,t){var r=Array.from(t.childNodes),n=[];if(r.length>1&&e&&typeof e=="string"){for(var i=mS(e),o=1;o<r.length;o++)if(r[o].textContent&&typeof r[o].textContent=="string")for(var s=mS(r[o].textContent),a=3;a<s.length;a++){var u=s.substring(0,a);if(i.split(u).length===2){for(var p=i.indexOf(u),g=p;g<e.length;g++)if(mS(e.substring(0,g)).length===p){n.push(e.substring(0,g)),e=e.substring(g);break}break}}}return n.push(e),n}function eZ(e,t){return $Q(e,t).join("/* rr_split */")}var tZ=1,rZ=new RegExp("[^a-z0-9-_:]"),Ry=-2;function v9(){return tZ++}function nZ(e){if(Ci(e,HTMLFormElement))return"form";var t=L0(e.tagName);return rZ.test(t)?"div":t}var x1,y9,iZ=/^[^ \t\n\r\u000c]+/,oZ=/^[, \t\n\r\u000c]+/;function sZ(e,t){if(t.trim()==="")return t;var r=0;function n(p){var g,y=p.exec(t.substring(r));return y?(g=y[0],r+=g.length,g):""}for(var i=[];n(oZ),!(r>=t.length);){var o=n(iZ);if(o.slice(-1)===",")o=M1(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=M1(e,o);for(var a=!1;;){var u=t.charAt(r);if(u===""){i.push((o+s).trim());break}else if(a)u===")"&&(a=!1);else if(u===","){r+=1,i.push((o+s).trim());break}else u==="("&&(a=!0);s+=u,r+=1}}}return i.join(", ")}var w9=new WeakMap;function M1(e,t){return!t||t.trim()===""?t:vS(e,t)}function aZ(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function vS(e,t){var r=w9.get(e);if(r||(r=e.createElement("a"),w9.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function A9(e,t,r,n){return n&&(r==="src"||r==="href"&&!(t==="use"&&n[0]==="#")||r==="xlink:href"&&n[0]!=="#"||r==="background"&&(t==="table"||t==="td"||t==="th")?M1(e,n):r==="srcset"?sZ(e,n):r==="style"?sb(n,vS(e)):t==="object"&&r==="data"?M1(e,n):n)}function b9(e,t,r){return(e==="video"||e==="audio")&&t==="autoplay"}function cZ(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch{}return!1}function ab(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?ab(uc.parentNode(e),t,r):!1;for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return r?ab(uc.parentNode(e),t,r):!1}function E9(e,t,r,n){var i;if(d9(e)){if(i=e,!uc.childNodes(i).length)return!1}else{if(uc.parentElement(e)===null)return!1;i=uc.parentElement(e)}try{if(typeof t=="string"){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(ab(i,t,n))return!0;if(r){if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}}catch{}return!1}function uZ(e,t,r){var n=e.contentWindow;if(n){var i=!1,o;try{o=n.document.readyState}catch{return}if(o!=="complete"){var s=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(s),i=!0,t()});return}var a="about:blank";if(n.location.href!==a||e.src===a||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}function lZ(e,t,r){var n=!1,i;try{i=e.sheet}catch{return}if(!i){var o=setTimeout(function(){n||(t(),n=!0)},r);e.addEventListener("load",function(){clearTimeout(o),n=!0,t()})}}function fZ(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,u=t.maskInputOptions,p=u===void 0?{}:u,g=t.maskTextFn,y=t.maskInputFn,E=t.dataURLOptions,M=E===void 0?{}:E,I=t.inlineImages,N=t.recordCanvas,O=t.keepIframeSrcFn,V=t.newlyAddedElement,Z=V===void 0?!1:V,Q=t.cssCaptured,K=Q===void 0?!1:Q,$=dZ(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:pa.Document,childNodes:[],compatMode:e.compatMode}:{type:pa.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:pa.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:$};case e.ELEMENT_NODE:return pZ(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:p,maskInputFn:y,dataURLOptions:M,inlineImages:I,recordCanvas:N,keepIframeSrcFn:O,newlyAddedElement:Z,rootId:$});case e.TEXT_NODE:return hZ(e,{doc:r,needsMask:s,maskTextFn:g,rootId:$,cssCaptured:K});case e.CDATA_SECTION_NODE:return{type:pa.CDATA,textContent:"",rootId:$};case e.COMMENT_NODE:return{type:pa.Comment,textContent:uc.textContent(e)||"",rootId:$};default:return!1}}function dZ(e,t){if(t.hasNode(e)){var r=t.getId(e);return r===1?void 0:r}}function hZ(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=uc.parentNode(e),a=s&&s.tagName,u="",p=a==="STYLE"?!0:void 0,g=a==="SCRIPT"?!0:void 0;return g?u="SCRIPT_PLACEHOLDER":o||(u=uc.textContent(e),p&&u&&(u=sb(u,vS(t.doc)))),!p&&!g&&u&&r&&(u=n?n(u,uc.parentElement(e)):u.replace(/[\S]/g,"*")),{type:pa.Text,textContent:u||"",rootId:i}}function pZ(e,t){for(var r=t.doc,n=t.blockClass,i=t.blockSelector,o=t.inlineStylesheet,s=t.maskInputOptions,a=s===void 0?{}:s,u=t.maskInputFn,p=t.dataURLOptions,g=p===void 0?{}:p,y=t.inlineImages,E=t.recordCanvas,M=t.keepIframeSrcFn,I=t.newlyAddedElement,N=I===void 0?!1:I,O=t.rootId,V=cZ(e,n,i),Z=nZ(e),Q={},K=e.attributes.length,$=0;$<K;$++){var oe=e.attributes[$];b9(Z,oe.name,oe.value)||(Q[oe.name]=A9(r,Z,L0(oe.name),oe.value))}if(Z==="link"&&o){var ae=Array.from(r.styleSheets).find(function(Tt){return Tt.href===e.href}),ue=null;ae&&(ue=hS(ae)),ue&&(delete Q.rel,delete Q.href,Q._cssText=ue)}if(Z==="style"&&e.sheet){var Se=hS(e.sheet);Se&&(e.childNodes.length>1&&(Se=eZ(Se,e)),Q._cssText=Se)}if(Z==="input"||Z==="textarea"||Z==="select"){var Me=e.value,ge=e.checked;Q.type!=="radio"&&Q.type!=="checkbox"&&Q.type!=="submit"&&Q.type!=="button"&&Me?Q.value=pS({element:e,type:gS(e),tagName:Z,value:Me,maskInputOptions:a,maskInputFn:u}):ge&&(Q.checked=ge)}if(Z==="option"&&(e.selected&&!a.select?Q.selected=!0:delete Q.selected),Z==="dialog"&&e.open&&(Q.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),Z==="canvas"&&E){if(e.__context==="2d")ZQ(e)||(Q.rr_dataURL=e.toDataURL(g.type,g.quality));else if(!("__context"in e)){var Pe=e.toDataURL(g.type,g.quality),He=r.createElement("canvas");He.width=e.width,He.height=e.height;var $e=He.toDataURL(g.type,g.quality);Pe!==$e&&(Q.rr_dataURL=Pe)}}if(Z==="img"&&y){x1||(x1=r.createElement("canvas"),y9=x1.getContext("2d"));var me=e,be=me.currentSrc||me.getAttribute("src")||"<unknown-src>",Qe=me.crossOrigin,Xe=function(){me.removeEventListener("load",Xe);try{x1.width=me.naturalWidth,x1.height=me.naturalHeight,y9.drawImage(me,0,0),Q.rr_dataURL=x1.toDataURL(g.type,g.quality)}catch(Tt){if(me.crossOrigin!=="anonymous"){me.crossOrigin="anonymous",me.complete&&me.naturalWidth!==0?Xe():me.addEventListener("load",Xe);return}else console.warn("Cannot inline img src="+be+"! Error: "+Tt)}me.crossOrigin==="anonymous"&&(Qe?Q.crossOrigin=Qe:me.removeAttribute("crossorigin"))};me.complete&&me.naturalWidth!==0?Xe():me.addEventListener("load",Xe)}if(Z==="audio"||Z==="video"){var rt=Q;rt.rr_mediaState=e.paused?"paused":"played",rt.rr_mediaCurrentTime=e.currentTime,rt.rr_mediaPlaybackRate=e.playbackRate,rt.rr_mediaMuted=e.muted,rt.rr_mediaLoop=e.loop,rt.rr_mediaVolume=e.volume}if(N||(e.scrollLeft&&(Q.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(Q.rr_scrollTop=e.scrollTop)),V){var bt=e.getBoundingClientRect(),It=bt.width,Bt=bt.height;Q={class:Q.class,rr_width:""+It+"px",rr_height:""+Bt+"px"}}Z==="iframe"&&!M(Q.src)&&(e.contentDocument||(Q.rr_src=Q.src),delete Q.src);var Nt;try{customElements.get(Z)&&(Nt=!0)}catch{}return{type:pa.Element,tagName:Z,attributes:Q,childNodes:[],isSVG:aZ(e)||void 0,needBlock:V,rootId:O,isCustom:Nt}}function Go(e){return e==null?"":e.toLowerCase()}function gZ(e,t){if(t.comment&&e.type===pa.Comment)return!0;if(e.type===pa.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&m9(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Go(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Go(e.attributes.name)==="application-name"||Go(e.attributes.rel)==="icon"||Go(e.attributes.rel)==="apple-touch-icon"||Go(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Go(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Go(e.attributes.property).match(/^(og|twitter|fb):/)||Go(e.attributes.name).match(/^(og|twitter):/)||Go(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Go(e.attributes.name)==="robots"||Go(e.attributes.name)==="googlebot"||Go(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Go(e.attributes.name)==="author"||Go(e.attributes.name)==="generator"||Go(e.attributes.name)==="framework"||Go(e.attributes.name)==="publisher"||Go(e.attributes.name)==="progid"||Go(e.attributes.property).match(/^article:/)||Go(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Go(e.attributes.name)==="google-site-verification"||Go(e.attributes.name)==="yandex-verification"||Go(e.attributes.name)==="csrf-token"||Go(e.attributes.name)==="p:domain_verify"||Go(e.attributes.name)==="verify-v1"||Go(e.attributes.name)==="verification"||Go(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function U1(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,u=t.skipChild,p=u===void 0?!1:u,g=t.inlineStylesheet,y=g===void 0?!0:g,E=t.maskInputOptions,M=E===void 0?{}:E,I=t.maskTextFn,N=t.maskInputFn,O=t.slimDOMOptions,V=t.dataURLOptions,Z=V===void 0?{}:V,Q=t.inlineImages,K=Q===void 0?!1:Q,$=t.recordCanvas,oe=$===void 0?!1:$,ae=t.onSerialize,ue=t.onIframeLoad,Se=t.iframeLoadTimeout,Me=Se===void 0?5e3:Se,ge=t.onStylesheetLoad,Pe=t.stylesheetLoadTimeout,He=Pe===void 0?5e3:Pe,$e=t.keepIframeSrcFn,me=$e===void 0?function(){return!1}:$e,be=t.newlyAddedElement,Qe=be===void 0?!1:be,Xe=t.cssCaptured,rt=Xe===void 0?!1:Xe,bt=t.needsMask,It=t.preserveWhiteSpace,Bt=It===void 0?!0:It;if(!bt){var Nt=bt===void 0;bt=E9(e,s,a,Nt)}var Tt=fZ(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:bt,inlineStylesheet:y,maskInputOptions:M,maskTextFn:I,maskInputFn:N,dataURLOptions:Z,inlineImages:K,recordCanvas:oe,keepIframeSrcFn:me,newlyAddedElement:Qe,cssCaptured:rt});if(!Tt)return console.warn(e,"not serialized"),null;var nt;n.hasNode(e)?nt=n.getId(e):gZ(Tt,O)||!Bt&&Tt.type===pa.Text&&!Tt.textContent.replace(/^\s+|\s+$/gm,"").length?nt=Ry:nt=v9();var yt=Object.assign(Tt,{id:nt});if(n.add(e,yt),nt===Ry)return null;ae&&ae(e);var Ir=!p;if(yt.type===pa.Element){Ir=Ir&&!yt.needBlock,delete yt.needBlock;var mr=uc.shadowRoot(e);mr&&Ny(mr)&&(yt.isShadowHost=!0)}if((yt.type===pa.Document||yt.type===pa.Element)&&Ir){O.headWhitespace&&yt.type===pa.Element&&yt.tagName==="head"&&(Bt=!1);var kr={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:bt,maskTextClass:s,maskTextSelector:a,skipChild:p,inlineStylesheet:y,maskInputOptions:M,maskTextFn:I,maskInputFn:N,slimDOMOptions:O,dataURLOptions:Z,inlineImages:K,recordCanvas:oe,preserveWhiteSpace:Bt,onSerialize:ae,onIframeLoad:ue,iframeLoadTimeout:Me,onStylesheetLoad:ge,stylesheetLoadTimeout:He,keepIframeSrcFn:me,cssCaptured:!1};if(!(yt.type===pa.Element&&yt.tagName==="textarea"&&yt.attributes.value!==void 0)){yt.type===pa.Element&&yt.attributes._cssText!==void 0&&typeof yt.attributes._cssText=="string"&&(kr.cssCaptured=!0);for(var Fr=un(Array.from(uc.childNodes(e))),wn;!(wn=Fr()).done;){var _r=wn.value,en=U1(_r,kr);en&&yt.childNodes.push(en)}}var $r=null;if(d9(e)&&($r=uc.shadowRoot(e)))for(var fi=un(Array.from(uc.childNodes($r))),vi;!(vi=fi()).done;){var Ei=vi.value,ki=U1(Ei,kr);ki&&(Ny($r)&&(ki.isShadow=!0),yt.childNodes.push(ki))}}var jn=uc.parentNode(e);return jn&&Oy(jn)&&Ny(jn)&&(yt.isShadow=!0),yt.type===pa.Element&&yt.tagName==="iframe"&&uZ(e,function(){var ni=e.contentDocument;if(ni&&ue){var jr=U1(ni,{doc:ni,mirror:n,blockClass:i,blockSelector:o,needsMask:bt,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:y,maskInputOptions:M,maskTextFn:I,maskInputFn:N,slimDOMOptions:O,dataURLOptions:Z,inlineImages:K,recordCanvas:oe,preserveWhiteSpace:Bt,onSerialize:ae,onIframeLoad:ue,iframeLoadTimeout:Me,onStylesheetLoad:ge,stylesheetLoadTimeout:He,keepIframeSrcFn:me});jr&&ue(e,jr)}},Me),yt.type===pa.Element&&yt.tagName==="link"&&typeof yt.attributes.rel=="string"&&(yt.attributes.rel==="stylesheet"||yt.attributes.rel==="preload"&&typeof yt.attributes.href=="string"&&m9(yt.attributes.href)==="css")&&lZ(e,function(){if(ge){var ni=U1(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:bt,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:y,maskInputOptions:M,maskTextFn:I,maskInputFn:N,slimDOMOptions:O,dataURLOptions:Z,inlineImages:K,recordCanvas:oe,preserveWhiteSpace:Bt,onSerialize:ae,onIframeLoad:ue,iframeLoadTimeout:Me,onStylesheetLoad:ge,stylesheetLoadTimeout:He,keepIframeSrcFn:me});ni&&ge(e,ni)}},He),yt}function mZ(e,t){var r=t||{},n=r.mirror,i=n===void 0?new p9:n,o=r.blockClass,s=o===void 0?"rr-block":o,a=r.blockSelector,u=a===void 0?null:a,p=r.maskTextClass,g=p===void 0?"rr-mask":p,y=r.maskTextSelector,E=y===void 0?null:y,M=r.inlineStylesheet,I=M===void 0?!0:M,N=r.inlineImages,O=N===void 0?!1:N,V=r.recordCanvas,Z=V===void 0?!1:V,Q=r.maskAllInputs,K=Q===void 0?!1:Q,$=r.maskTextFn,oe=r.maskInputFn,ae=r.slimDOM,ue=ae===void 0?!1:ae,Se=r.dataURLOptions,Me=r.preserveWhiteSpace,ge=r.onSerialize,Pe=r.onIframeLoad,He=r.iframeLoadTimeout,$e=r.onStylesheetLoad,me=r.stylesheetLoadTimeout,be=r.keepIframeSrcFn,Qe=be===void 0?function(){return!1}:be,Xe=K===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:K===!1?{password:!0}:K,rt=ue===!0||ue==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:ue==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:ue===!1?{}:ue;return U1(e,{doc:e,mirror:i,blockClass:s,blockSelector:u,maskTextClass:g,maskTextSelector:E,skipChild:!1,inlineStylesheet:I,maskInputOptions:Xe,maskTextFn:$,maskInputFn:oe,slimDOMOptions:rt,dataURLOptions:Se,inlineImages:O,recordCanvas:Z,preserveWhiteSpace:Me,onSerialize:ge,onIframeLoad:Pe,iframeLoadTimeout:He,onStylesheetLoad:$e,stylesheetLoadTimeout:me,keepIframeSrcFn:Qe,newlyAddedElement:!1})}function vZ(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yZ(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return Ci(this,n)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var yS={exports:{}},es=String,k9=function(){return{isColorSupported:!1,reset:es,bold:es,dim:es,italic:es,underline:es,inverse:es,hidden:es,strikethrough:es,black:es,red:es,green:es,yellow:es,blue:es,magenta:es,cyan:es,white:es,gray:es,bgBlack:es,bgRed:es,bgGreen:es,bgYellow:es,bgBlue:es,bgMagenta:es,bgCyan:es,bgWhite:es}};yS.exports=k9(),yS.exports.createColors=k9;var wZ=yS.exports,AZ={},bZ=Object.freeze(Object.defineProperty({__proto__:null,default:AZ},Symbol.toStringTag,{value:"Module"})),Ds=yZ(bZ),S9=wZ,I9=Ds,wS=function(e){cc(t,e);function t(n,i,o,s,a,u){var p;return p=e.call(this,n)||this,p.name="CssSyntaxError",p.reason=n,a&&(p.file=a),s&&(p.source=s),u&&(p.plugin=u),typeof i<"u"&&typeof o<"u"&&(typeof i=="number"?(p.line=i,p.column=o):(p.line=i.line,p.column=i.column,p.endLine=o.line,p.endColumn=o.column)),p.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(p,t),p}var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(i){var o=this;if(!this.source)return"";var s=this.source;i==null&&(i=S9.isColorSupported),I9&&i&&(s=I9(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),p=Math.min(this.line+2,a.length),g=String(p).length,y,E;if(i){var M=S9.createColors(!0),I=M.bold,N=M.gray,O=M.red;y=function(V){return I(O(V))},E=function(V){return N(V)}}else y=E=function(V){return V};return a.slice(u,p).map(function(V,Z){var Q=u+1+Z,K=" "+(" "+Q).slice(-g)+" | ";if(Q===o.line){var $=E(K.replace(/\d/g," "))+V.slice(0,o.column-1).replace(/[^\t]/g," ");return y(">")+E(K)+V+`
8
8
  `+$+y("^")}return" "+E(K)+V}).join(`
9
9
  `)},r.toString=function(){var i=this.showSourceCode();return i&&(i=`
10
10
 
@@ -881,7 +881,7 @@ buffer/index.js:
881
881
  errors
882
882
  }
883
883
  }
884
- `);async function JV({address:e,bytes:t,signature:r,intentScope:n,client:i=new RV({url:"https://sui-mainnet.mystenlabs.com/graphql"})}){var o,s;const a=await i.query({query:yae,variables:{bytes:t,signature:r,intentScope:n,author:e}});return((o=a.data)==null?void 0:o.verifyZkloginSignature.success)===!0&&((s=a.data)==null?void 0:s.verifyZkloginSignature.errors.length)===0}function DC(e){const t=typeof e=="string"?Su(e):e;if(t[0]!==ph.ZkLogin)throw new Error("Invalid signature scheme");const r=t.slice(1),{inputs:n,maxEpoch:i,userSignature:o}=mae(r),{issBase64Details:s,addressSeed:a}=n,u=pae(s,"iss"),p=jV(BigInt(a),u);return{serializedSignature:js(t),signatureScheme:"ZkLogin",zkLogin:{inputs:n,maxEpoch:i,userSignature:o,iss:u,addressSeed:BigInt(a)},signature:t,publicKey:p.toRawBytes()}}function wae({signature:e,signatureScheme:t,publicKey:r}){if(!r)throw new Error("`publicKey` is required");const n=r.toRawBytes(),i=new Uint8Array(1+e.length+n.length);return i.set([ph[t]]),i.set(e,1),i.set(n,1+e.length),js(i)}function Jm(e){const t=Su(e),r=CV[t[0]];switch(r){case"MultiSig":const n=Cu.MultiSig.parse(t.slice(1));return{serializedSignature:e,signatureScheme:r,multisig:n,bytes:t};case"ZkLogin":return DC(e);case"ED25519":case"Secp256k1":case"Secp256r1":const i=Nse[r],o=t.slice(1,t.length-i),s=t.slice(1+o.length);return{serializedSignature:e,signatureScheme:r,signature:o,publicKey:s,bytes:t};default:throw new Error("Unsupported signature scheme")}}let zV=class extends kC{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,Foe(t);const n=Vp(r);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,o=new Uint8Array(i);o.set(n.length>i?t.create().update(n).digest():n);for(let s=0;s<o.length;s++)o[s]^=54;this.iHash.update(o),this.oHash=t.create();for(let s=0;s<o.length;s++)o[s]^=106;this.oHash.update(o),o.fill(0)}update(t){return Dm(this),this.iHash.update(t),this}digestInto(t){Dm(this),q2(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:r,iHash:n,finished:i,destroyed:o,blockLen:s,outputLen:a}=this;return t=t,t.finished=i,t.destroyed=o,t.blockLen=s,t.outputLen=a,t.oHash=r._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}};const HV=(e,t,r)=>new zV(e,t).update(r).digest();HV.create=(e,t)=>new zV(e,t);function Aae(e,t,r,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,n);const i=BigInt(32),o=BigInt(4294967295),s=Number(r>>i&o),a=Number(r&o),u=n?4:0,p=n?0:4;e.setUint32(t+u,s,n),e.setUint32(t+p,a,n)}const bae=(e,t,r)=>e&t^~e&r,Eae=(e,t,r)=>e&t^e&r^t&r;let kae=class extends kC{constructor(t,r,n,i){super(),this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=EC(this.buffer)}update(t){Dm(this);const{view:r,buffer:n,blockLen:i}=this;t=Vp(t);const o=t.length;for(let s=0;s<o;){const a=Math.min(i-this.pos,o-s);if(a===i){const u=EC(t);for(;i<=o-s;s+=i)this.process(u,s);continue}n.set(t.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===i&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Dm(this),mV(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:i,isLE:o}=this;let{pos:s}=this;r[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>i-s&&(this.process(n,0),s=0);for(let y=s;y<i;y++)r[y]=0;Aae(n,i-8,BigInt(this.length*8),o),this.process(n,0);const a=EC(t),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const p=u/4,g=this.get();if(p>g.length)throw new Error("_sha2: outputLen bigger than state");for(let y=0;y<p;y++)a.setUint32(4*y,g[y],o)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:n,length:i,finished:o,destroyed:s,pos:a}=this;return t.length=i,t.pos=a,t.finished=o,t.destroyed=s,i%r&&t.buffer.set(n),t}};const Sae=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]),zp=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Hp=new Uint32Array(64);let Iae=class extends kae{constructor(){super(64,32,8,!1),this.A=zp[0]|0,this.B=zp[1]|0,this.C=zp[2]|0,this.D=zp[3]|0,this.E=zp[4]|0,this.F=zp[5]|0,this.G=zp[6]|0,this.H=zp[7]|0}get(){const{A:t,B:r,C:n,D:i,E:o,F:s,G:a,H:u}=this;return[t,r,n,i,o,s,a,u]}set(t,r,n,i,o,s,a,u){this.A=t|0,this.B=r|0,this.C=n|0,this.D=i|0,this.E=o|0,this.F=s|0,this.G=a|0,this.H=u|0}process(t,r){for(let y=0;y<16;y++,r+=4)Hp[y]=t.getUint32(r,!1);for(let y=16;y<64;y++){const E=Hp[y-15],M=Hp[y-2],I=$f(E,7)^$f(E,18)^E>>>3,N=$f(M,17)^$f(M,19)^M>>>10;Hp[y]=N+Hp[y-7]+I+Hp[y-16]|0}let{A:n,B:i,C:o,D:s,E:a,F:u,G:p,H:g}=this;for(let y=0;y<64;y++){const E=$f(a,6)^$f(a,11)^$f(a,25),M=g+E+bae(a,u,p)+Sae[y]+Hp[y]|0,I=($f(n,2)^$f(n,13)^$f(n,22))+Eae(n,i,o)|0;g=p,p=u,u=a,a=s+M|0,s=o,o=i,i=n,n=M+I|0}n=n+this.A|0,i=i+this.B|0,o=o+this.C|0,s=s+this.D|0,a=a+this.E|0,u=u+this.F|0,p=p+this.G|0,g=g+this.H|0,this.set(n,i,o,s,a,u,p,g)}roundClean(){Hp.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};const F3=Goe(()=>new Iae);var tw={};Object.defineProperty(tw,"__esModule",{value:!0}),tw.bech32m=tw.bech32=void 0;const j3="qpzry9x8gf2tvdw0s3jn54khce6mua7l",GV={};for(let e=0;e<j3.length;e++){const t=j3.charAt(e);GV[t]=e}function zm(e){const t=e>>25;return(e&33554431)<<5^-(t>>0&1)&996825010^-(t>>1&1)&642813549^-(t>>2&1)&513874426^-(t>>3&1)&1027748829^-(t>>4&1)&705979059}function WV(e){let t=1;for(let r=0;r<e.length;++r){const n=e.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+e+")";t=zm(t)^n>>5}t=zm(t);for(let r=0;r<e.length;++r){const n=e.charCodeAt(r);t=zm(t)^n&31}return t}function LC(e,t,r,n){let i=0,o=0;const s=(1<<r)-1,a=[];for(let u=0;u<e.length;++u)for(i=i<<t|e[u],o+=t;o>=r;)o-=r,a.push(i>>o&s);if(n)o>0&&a.push(i<<r-o&s);else{if(o>=t)return"Excess padding";if(i<<r-o&s)return"Non-zero padding"}return a}function Cae(e){return LC(e,8,5,!0)}function Bae(e){const t=LC(e,5,8,!1);if(Array.isArray(t))return t}function Tae(e){const t=LC(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}function QV(e){let t;e==="bech32"?t=1:t=734539939;function r(s,a,u){if(u=u||90,s.length+7+a.length>u)throw new TypeError("Exceeds length limit");s=s.toLowerCase();let p=WV(s);if(typeof p=="string")throw new Error(p);let g=s+"1";for(let y=0;y<a.length;++y){const E=a[y];if(E>>5)throw new Error("Non 5-bit word");p=zm(p)^E,g+=j3.charAt(E)}for(let y=0;y<6;++y)p=zm(p);p^=t;for(let y=0;y<6;++y){const E=p>>(5-y)*5&31;g+=j3.charAt(E)}return g}function n(s,a){if(a=a||90,s.length<8)return s+" too short";if(s.length>a)return"Exceeds length limit";const u=s.toLowerCase(),p=s.toUpperCase();if(s!==u&&s!==p)return"Mixed-case string "+s;s=u;const g=s.lastIndexOf("1");if(g===-1)return"No separator character for "+s;if(g===0)return"Missing prefix for "+s;const y=s.slice(0,g),E=s.slice(g+1);if(E.length<6)return"Data too short";let M=WV(y);if(typeof M=="string")return M;const I=[];for(let N=0;N<E.length;++N){const O=E.charAt(N),V=GV[O];if(V===void 0)return"Unknown character "+O;M=zm(M)^V,!(N+6>=E.length)&&I.push(V)}return M!==t?"Invalid checksum for "+s:{prefix:y,words:I}}function i(s,a){const u=n(s,a);if(typeof u=="object")return u}function o(s,a){const u=n(s,a);if(typeof u=="object")return u;throw new Error(u)}return{decodeUnsafe:i,decode:o,encode:r,toWords:Cae,fromWordsUnsafe:Bae,fromWords:Tae}}tw.bech32=QV("bech32"),tw.bech32m=QV("bech32m");let xae=class{async signWithIntent(t,r){const n=IV(r,t),i=k3(n,{dkLen:32});return{signature:wae({signature:await this.sign(i),signatureScheme:this.getKeyScheme(),publicKey:this.getPublicKey()}),bytes:js(t)}}async signTransaction(t){return this.signWithIntent(t,"TransactionData")}async signPersonalMessage(t){const{signature:r}=await this.signWithIntent(Oe.vector(Oe.u8()).serialize(t).toBytes(),"PersonalMessage");return{bytes:js(t),signature:r}}toSuiAddress(){return this.getPublicKey().toSuiAddress()}};function Mae(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.')}var ZV={exports:{}};const Uae={},Oae=Object.freeze(Object.defineProperty({__proto__:null,default:Uae},Symbol.toStringTag,{value:"Module"})),Nae=_ie(Oae);(function(e){(function(t){var r=function(B){var J,F=new Float64Array(16);if(B)for(J=0;J<B.length;J++)F[J]=B[J];return F},n=function(){throw new Error("no PRNG")},i=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var s=r(),a=r([1]),u=r([56129,1]),p=r([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),g=r([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),y=r([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),E=r([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),M=r([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function I(B,J,F,b){B[J]=F>>24&255,B[J+1]=F>>16&255,B[J+2]=F>>8&255,B[J+3]=F&255,B[J+4]=b>>24&255,B[J+5]=b>>16&255,B[J+6]=b>>8&255,B[J+7]=b&255}function N(B,J,F,b,H){var le,de=0;for(le=0;le<H;le++)de|=B[J+le]^F[b+le];return(1&de-1>>>8)-1}function O(B,J,F,b){return N(B,J,F,b,16)}function V(B,J,F,b){return N(B,J,F,b,32)}function Z(B,J,F,b){for(var H=b[0]&255|(b[1]&255)<<8|(b[2]&255)<<16|(b[3]&255)<<24,le=F[0]&255|(F[1]&255)<<8|(F[2]&255)<<16|(F[3]&255)<<24,de=F[4]&255|(F[5]&255)<<8|(F[6]&255)<<16|(F[7]&255)<<24,Re=F[8]&255|(F[9]&255)<<8|(F[10]&255)<<16|(F[11]&255)<<24,Je=F[12]&255|(F[13]&255)<<8|(F[14]&255)<<16|(F[15]&255)<<24,xt=b[4]&255|(b[5]&255)<<8|(b[6]&255)<<16|(b[7]&255)<<24,ut=J[0]&255|(J[1]&255)<<8|(J[2]&255)<<16|(J[3]&255)<<24,Nr=J[4]&255|(J[5]&255)<<8|(J[6]&255)<<16|(J[7]&255)<<24,gt=J[8]&255|(J[9]&255)<<8|(J[10]&255)<<16|(J[11]&255)<<24,Yt=J[12]&255|(J[13]&255)<<8|(J[14]&255)<<16|(J[15]&255)<<24,Gt=b[8]&255|(b[9]&255)<<8|(b[10]&255)<<16|(b[11]&255)<<24,sr=F[16]&255|(F[17]&255)<<8|(F[18]&255)<<16|(F[19]&255)<<24,Et=F[20]&255|(F[21]&255)<<8|(F[22]&255)<<16|(F[23]&255)<<24,Wt=F[24]&255|(F[25]&255)<<8|(F[26]&255)<<16|(F[27]&255)<<24,Jt=F[28]&255|(F[29]&255)<<8|(F[30]&255)<<16|(F[31]&255)<<24,er=b[12]&255|(b[13]&255)<<8|(b[14]&255)<<16|(b[15]&255)<<24,mt=H,Ut=le,lt=de,At=Re,Ct=Je,st=xt,ve=ut,we=Nr,Fe=gt,De=Yt,Le=Gt,Ge=sr,Zt=Et,ar=Wt,fr=Jt,lr=er,_,gr=0;gr<20;gr+=2)_=mt+Zt|0,Ct^=_<<7|_>>>25,_=Ct+mt|0,Fe^=_<<9|_>>>23,_=Fe+Ct|0,Zt^=_<<13|_>>>19,_=Zt+Fe|0,mt^=_<<18|_>>>14,_=st+Ut|0,De^=_<<7|_>>>25,_=De+st|0,ar^=_<<9|_>>>23,_=ar+De|0,Ut^=_<<13|_>>>19,_=Ut+ar|0,st^=_<<18|_>>>14,_=Le+ve|0,fr^=_<<7|_>>>25,_=fr+Le|0,lt^=_<<9|_>>>23,_=lt+fr|0,ve^=_<<13|_>>>19,_=ve+lt|0,Le^=_<<18|_>>>14,_=lr+Ge|0,At^=_<<7|_>>>25,_=At+lr|0,we^=_<<9|_>>>23,_=we+At|0,Ge^=_<<13|_>>>19,_=Ge+we|0,lr^=_<<18|_>>>14,_=mt+At|0,Ut^=_<<7|_>>>25,_=Ut+mt|0,lt^=_<<9|_>>>23,_=lt+Ut|0,At^=_<<13|_>>>19,_=At+lt|0,mt^=_<<18|_>>>14,_=st+Ct|0,ve^=_<<7|_>>>25,_=ve+st|0,we^=_<<9|_>>>23,_=we+ve|0,Ct^=_<<13|_>>>19,_=Ct+we|0,st^=_<<18|_>>>14,_=Le+De|0,Ge^=_<<7|_>>>25,_=Ge+Le|0,Fe^=_<<9|_>>>23,_=Fe+Ge|0,De^=_<<13|_>>>19,_=De+Fe|0,Le^=_<<18|_>>>14,_=lr+fr|0,Zt^=_<<7|_>>>25,_=Zt+lr|0,ar^=_<<9|_>>>23,_=ar+Zt|0,fr^=_<<13|_>>>19,_=fr+ar|0,lr^=_<<18|_>>>14;mt=mt+H|0,Ut=Ut+le|0,lt=lt+de|0,At=At+Re|0,Ct=Ct+Je|0,st=st+xt|0,ve=ve+ut|0,we=we+Nr|0,Fe=Fe+gt|0,De=De+Yt|0,Le=Le+Gt|0,Ge=Ge+sr|0,Zt=Zt+Et|0,ar=ar+Wt|0,fr=fr+Jt|0,lr=lr+er|0,B[0]=mt>>>0&255,B[1]=mt>>>8&255,B[2]=mt>>>16&255,B[3]=mt>>>24&255,B[4]=Ut>>>0&255,B[5]=Ut>>>8&255,B[6]=Ut>>>16&255,B[7]=Ut>>>24&255,B[8]=lt>>>0&255,B[9]=lt>>>8&255,B[10]=lt>>>16&255,B[11]=lt>>>24&255,B[12]=At>>>0&255,B[13]=At>>>8&255,B[14]=At>>>16&255,B[15]=At>>>24&255,B[16]=Ct>>>0&255,B[17]=Ct>>>8&255,B[18]=Ct>>>16&255,B[19]=Ct>>>24&255,B[20]=st>>>0&255,B[21]=st>>>8&255,B[22]=st>>>16&255,B[23]=st>>>24&255,B[24]=ve>>>0&255,B[25]=ve>>>8&255,B[26]=ve>>>16&255,B[27]=ve>>>24&255,B[28]=we>>>0&255,B[29]=we>>>8&255,B[30]=we>>>16&255,B[31]=we>>>24&255,B[32]=Fe>>>0&255,B[33]=Fe>>>8&255,B[34]=Fe>>>16&255,B[35]=Fe>>>24&255,B[36]=De>>>0&255,B[37]=De>>>8&255,B[38]=De>>>16&255,B[39]=De>>>24&255,B[40]=Le>>>0&255,B[41]=Le>>>8&255,B[42]=Le>>>16&255,B[43]=Le>>>24&255,B[44]=Ge>>>0&255,B[45]=Ge>>>8&255,B[46]=Ge>>>16&255,B[47]=Ge>>>24&255,B[48]=Zt>>>0&255,B[49]=Zt>>>8&255,B[50]=Zt>>>16&255,B[51]=Zt>>>24&255,B[52]=ar>>>0&255,B[53]=ar>>>8&255,B[54]=ar>>>16&255,B[55]=ar>>>24&255,B[56]=fr>>>0&255,B[57]=fr>>>8&255,B[58]=fr>>>16&255,B[59]=fr>>>24&255,B[60]=lr>>>0&255,B[61]=lr>>>8&255,B[62]=lr>>>16&255,B[63]=lr>>>24&255}function Q(B,J,F,b){for(var H=b[0]&255|(b[1]&255)<<8|(b[2]&255)<<16|(b[3]&255)<<24,le=F[0]&255|(F[1]&255)<<8|(F[2]&255)<<16|(F[3]&255)<<24,de=F[4]&255|(F[5]&255)<<8|(F[6]&255)<<16|(F[7]&255)<<24,Re=F[8]&255|(F[9]&255)<<8|(F[10]&255)<<16|(F[11]&255)<<24,Je=F[12]&255|(F[13]&255)<<8|(F[14]&255)<<16|(F[15]&255)<<24,xt=b[4]&255|(b[5]&255)<<8|(b[6]&255)<<16|(b[7]&255)<<24,ut=J[0]&255|(J[1]&255)<<8|(J[2]&255)<<16|(J[3]&255)<<24,Nr=J[4]&255|(J[5]&255)<<8|(J[6]&255)<<16|(J[7]&255)<<24,gt=J[8]&255|(J[9]&255)<<8|(J[10]&255)<<16|(J[11]&255)<<24,Yt=J[12]&255|(J[13]&255)<<8|(J[14]&255)<<16|(J[15]&255)<<24,Gt=b[8]&255|(b[9]&255)<<8|(b[10]&255)<<16|(b[11]&255)<<24,sr=F[16]&255|(F[17]&255)<<8|(F[18]&255)<<16|(F[19]&255)<<24,Et=F[20]&255|(F[21]&255)<<8|(F[22]&255)<<16|(F[23]&255)<<24,Wt=F[24]&255|(F[25]&255)<<8|(F[26]&255)<<16|(F[27]&255)<<24,Jt=F[28]&255|(F[29]&255)<<8|(F[30]&255)<<16|(F[31]&255)<<24,er=b[12]&255|(b[13]&255)<<8|(b[14]&255)<<16|(b[15]&255)<<24,mt=H,Ut=le,lt=de,At=Re,Ct=Je,st=xt,ve=ut,we=Nr,Fe=gt,De=Yt,Le=Gt,Ge=sr,Zt=Et,ar=Wt,fr=Jt,lr=er,_,gr=0;gr<20;gr+=2)_=mt+Zt|0,Ct^=_<<7|_>>>25,_=Ct+mt|0,Fe^=_<<9|_>>>23,_=Fe+Ct|0,Zt^=_<<13|_>>>19,_=Zt+Fe|0,mt^=_<<18|_>>>14,_=st+Ut|0,De^=_<<7|_>>>25,_=De+st|0,ar^=_<<9|_>>>23,_=ar+De|0,Ut^=_<<13|_>>>19,_=Ut+ar|0,st^=_<<18|_>>>14,_=Le+ve|0,fr^=_<<7|_>>>25,_=fr+Le|0,lt^=_<<9|_>>>23,_=lt+fr|0,ve^=_<<13|_>>>19,_=ve+lt|0,Le^=_<<18|_>>>14,_=lr+Ge|0,At^=_<<7|_>>>25,_=At+lr|0,we^=_<<9|_>>>23,_=we+At|0,Ge^=_<<13|_>>>19,_=Ge+we|0,lr^=_<<18|_>>>14,_=mt+At|0,Ut^=_<<7|_>>>25,_=Ut+mt|0,lt^=_<<9|_>>>23,_=lt+Ut|0,At^=_<<13|_>>>19,_=At+lt|0,mt^=_<<18|_>>>14,_=st+Ct|0,ve^=_<<7|_>>>25,_=ve+st|0,we^=_<<9|_>>>23,_=we+ve|0,Ct^=_<<13|_>>>19,_=Ct+we|0,st^=_<<18|_>>>14,_=Le+De|0,Ge^=_<<7|_>>>25,_=Ge+Le|0,Fe^=_<<9|_>>>23,_=Fe+Ge|0,De^=_<<13|_>>>19,_=De+Fe|0,Le^=_<<18|_>>>14,_=lr+fr|0,Zt^=_<<7|_>>>25,_=Zt+lr|0,ar^=_<<9|_>>>23,_=ar+Zt|0,fr^=_<<13|_>>>19,_=fr+ar|0,lr^=_<<18|_>>>14;B[0]=mt>>>0&255,B[1]=mt>>>8&255,B[2]=mt>>>16&255,B[3]=mt>>>24&255,B[4]=st>>>0&255,B[5]=st>>>8&255,B[6]=st>>>16&255,B[7]=st>>>24&255,B[8]=Le>>>0&255,B[9]=Le>>>8&255,B[10]=Le>>>16&255,B[11]=Le>>>24&255,B[12]=lr>>>0&255,B[13]=lr>>>8&255,B[14]=lr>>>16&255,B[15]=lr>>>24&255,B[16]=ve>>>0&255,B[17]=ve>>>8&255,B[18]=ve>>>16&255,B[19]=ve>>>24&255,B[20]=we>>>0&255,B[21]=we>>>8&255,B[22]=we>>>16&255,B[23]=we>>>24&255,B[24]=Fe>>>0&255,B[25]=Fe>>>8&255,B[26]=Fe>>>16&255,B[27]=Fe>>>24&255,B[28]=De>>>0&255,B[29]=De>>>8&255,B[30]=De>>>16&255,B[31]=De>>>24&255}function K(B,J,F,b){Z(B,J,F,b)}function $(B,J,F,b){Q(B,J,F,b)}var oe=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function ae(B,J,F,b,H,le,de){var Re=new Uint8Array(16),Je=new Uint8Array(64),xt,ut;for(ut=0;ut<16;ut++)Re[ut]=0;for(ut=0;ut<8;ut++)Re[ut]=le[ut];for(;H>=64;){for(K(Je,Re,de,oe),ut=0;ut<64;ut++)B[J+ut]=F[b+ut]^Je[ut];for(xt=1,ut=8;ut<16;ut++)xt=xt+(Re[ut]&255)|0,Re[ut]=xt&255,xt>>>=8;H-=64,J+=64,b+=64}if(H>0)for(K(Je,Re,de,oe),ut=0;ut<H;ut++)B[J+ut]=F[b+ut]^Je[ut];return 0}function ue(B,J,F,b,H){var le=new Uint8Array(16),de=new Uint8Array(64),Re,Je;for(Je=0;Je<16;Je++)le[Je]=0;for(Je=0;Je<8;Je++)le[Je]=b[Je];for(;F>=64;){for(K(de,le,H,oe),Je=0;Je<64;Je++)B[J+Je]=de[Je];for(Re=1,Je=8;Je<16;Je++)Re=Re+(le[Je]&255)|0,le[Je]=Re&255,Re>>>=8;F-=64,J+=64}if(F>0)for(K(de,le,H,oe),Je=0;Je<F;Je++)B[J+Je]=de[Je];return 0}function Se(B,J,F,b,H){var le=new Uint8Array(32);$(le,b,H,oe);for(var de=new Uint8Array(8),Re=0;Re<8;Re++)de[Re]=b[Re+16];return ue(B,J,F,de,le)}function Me(B,J,F,b,H,le,de){var Re=new Uint8Array(32);$(Re,le,de,oe);for(var Je=new Uint8Array(8),xt=0;xt<8;xt++)Je[xt]=le[xt+16];return ae(B,J,F,b,H,Je,Re)}var ge=function(B){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var J,F,b,H,le,de,Re,Je;J=B[0]&255|(B[1]&255)<<8,this.r[0]=J&8191,F=B[2]&255|(B[3]&255)<<8,this.r[1]=(J>>>13|F<<3)&8191,b=B[4]&255|(B[5]&255)<<8,this.r[2]=(F>>>10|b<<6)&7939,H=B[6]&255|(B[7]&255)<<8,this.r[3]=(b>>>7|H<<9)&8191,le=B[8]&255|(B[9]&255)<<8,this.r[4]=(H>>>4|le<<12)&255,this.r[5]=le>>>1&8190,de=B[10]&255|(B[11]&255)<<8,this.r[6]=(le>>>14|de<<2)&8191,Re=B[12]&255|(B[13]&255)<<8,this.r[7]=(de>>>11|Re<<5)&8065,Je=B[14]&255|(B[15]&255)<<8,this.r[8]=(Re>>>8|Je<<8)&8191,this.r[9]=Je>>>5&127,this.pad[0]=B[16]&255|(B[17]&255)<<8,this.pad[1]=B[18]&255|(B[19]&255)<<8,this.pad[2]=B[20]&255|(B[21]&255)<<8,this.pad[3]=B[22]&255|(B[23]&255)<<8,this.pad[4]=B[24]&255|(B[25]&255)<<8,this.pad[5]=B[26]&255|(B[27]&255)<<8,this.pad[6]=B[28]&255|(B[29]&255)<<8,this.pad[7]=B[30]&255|(B[31]&255)<<8};ge.prototype.blocks=function(B,J,F){for(var b=this.fin?0:2048,H,le,de,Re,Je,xt,ut,Nr,gt,Yt,Gt,sr,Et,Wt,Jt,er,mt,Ut,lt,At=this.h[0],Ct=this.h[1],st=this.h[2],ve=this.h[3],we=this.h[4],Fe=this.h[5],De=this.h[6],Le=this.h[7],Ge=this.h[8],Zt=this.h[9],ar=this.r[0],fr=this.r[1],lr=this.r[2],_=this.r[3],gr=this.r[4],Jr=this.r[5],Rr=this.r[6],dr=this.r[7],Mr=this.r[8],wr=this.r[9];F>=16;)H=B[J+0]&255|(B[J+1]&255)<<8,At+=H&8191,le=B[J+2]&255|(B[J+3]&255)<<8,Ct+=(H>>>13|le<<3)&8191,de=B[J+4]&255|(B[J+5]&255)<<8,st+=(le>>>10|de<<6)&8191,Re=B[J+6]&255|(B[J+7]&255)<<8,ve+=(de>>>7|Re<<9)&8191,Je=B[J+8]&255|(B[J+9]&255)<<8,we+=(Re>>>4|Je<<12)&8191,Fe+=Je>>>1&8191,xt=B[J+10]&255|(B[J+11]&255)<<8,De+=(Je>>>14|xt<<2)&8191,ut=B[J+12]&255|(B[J+13]&255)<<8,Le+=(xt>>>11|ut<<5)&8191,Nr=B[J+14]&255|(B[J+15]&255)<<8,Ge+=(ut>>>8|Nr<<8)&8191,Zt+=Nr>>>5|b,gt=0,Yt=gt,Yt+=At*ar,Yt+=Ct*(5*wr),Yt+=st*(5*Mr),Yt+=ve*(5*dr),Yt+=we*(5*Rr),gt=Yt>>>13,Yt&=8191,Yt+=Fe*(5*Jr),Yt+=De*(5*gr),Yt+=Le*(5*_),Yt+=Ge*(5*lr),Yt+=Zt*(5*fr),gt+=Yt>>>13,Yt&=8191,Gt=gt,Gt+=At*fr,Gt+=Ct*ar,Gt+=st*(5*wr),Gt+=ve*(5*Mr),Gt+=we*(5*dr),gt=Gt>>>13,Gt&=8191,Gt+=Fe*(5*Rr),Gt+=De*(5*Jr),Gt+=Le*(5*gr),Gt+=Ge*(5*_),Gt+=Zt*(5*lr),gt+=Gt>>>13,Gt&=8191,sr=gt,sr+=At*lr,sr+=Ct*fr,sr+=st*ar,sr+=ve*(5*wr),sr+=we*(5*Mr),gt=sr>>>13,sr&=8191,sr+=Fe*(5*dr),sr+=De*(5*Rr),sr+=Le*(5*Jr),sr+=Ge*(5*gr),sr+=Zt*(5*_),gt+=sr>>>13,sr&=8191,Et=gt,Et+=At*_,Et+=Ct*lr,Et+=st*fr,Et+=ve*ar,Et+=we*(5*wr),gt=Et>>>13,Et&=8191,Et+=Fe*(5*Mr),Et+=De*(5*dr),Et+=Le*(5*Rr),Et+=Ge*(5*Jr),Et+=Zt*(5*gr),gt+=Et>>>13,Et&=8191,Wt=gt,Wt+=At*gr,Wt+=Ct*_,Wt+=st*lr,Wt+=ve*fr,Wt+=we*ar,gt=Wt>>>13,Wt&=8191,Wt+=Fe*(5*wr),Wt+=De*(5*Mr),Wt+=Le*(5*dr),Wt+=Ge*(5*Rr),Wt+=Zt*(5*Jr),gt+=Wt>>>13,Wt&=8191,Jt=gt,Jt+=At*Jr,Jt+=Ct*gr,Jt+=st*_,Jt+=ve*lr,Jt+=we*fr,gt=Jt>>>13,Jt&=8191,Jt+=Fe*ar,Jt+=De*(5*wr),Jt+=Le*(5*Mr),Jt+=Ge*(5*dr),Jt+=Zt*(5*Rr),gt+=Jt>>>13,Jt&=8191,er=gt,er+=At*Rr,er+=Ct*Jr,er+=st*gr,er+=ve*_,er+=we*lr,gt=er>>>13,er&=8191,er+=Fe*fr,er+=De*ar,er+=Le*(5*wr),er+=Ge*(5*Mr),er+=Zt*(5*dr),gt+=er>>>13,er&=8191,mt=gt,mt+=At*dr,mt+=Ct*Rr,mt+=st*Jr,mt+=ve*gr,mt+=we*_,gt=mt>>>13,mt&=8191,mt+=Fe*lr,mt+=De*fr,mt+=Le*ar,mt+=Ge*(5*wr),mt+=Zt*(5*Mr),gt+=mt>>>13,mt&=8191,Ut=gt,Ut+=At*Mr,Ut+=Ct*dr,Ut+=st*Rr,Ut+=ve*Jr,Ut+=we*gr,gt=Ut>>>13,Ut&=8191,Ut+=Fe*_,Ut+=De*lr,Ut+=Le*fr,Ut+=Ge*ar,Ut+=Zt*(5*wr),gt+=Ut>>>13,Ut&=8191,lt=gt,lt+=At*wr,lt+=Ct*Mr,lt+=st*dr,lt+=ve*Rr,lt+=we*Jr,gt=lt>>>13,lt&=8191,lt+=Fe*gr,lt+=De*_,lt+=Le*lr,lt+=Ge*fr,lt+=Zt*ar,gt+=lt>>>13,lt&=8191,gt=(gt<<2)+gt|0,gt=gt+Yt|0,Yt=gt&8191,gt=gt>>>13,Gt+=gt,At=Yt,Ct=Gt,st=sr,ve=Et,we=Wt,Fe=Jt,De=er,Le=mt,Ge=Ut,Zt=lt,J+=16,F-=16;this.h[0]=At,this.h[1]=Ct,this.h[2]=st,this.h[3]=ve,this.h[4]=we,this.h[5]=Fe,this.h[6]=De,this.h[7]=Le,this.h[8]=Ge,this.h[9]=Zt},ge.prototype.finish=function(B,J){var F=new Uint16Array(10),b,H,le,de;if(this.leftover){for(de=this.leftover,this.buffer[de++]=1;de<16;de++)this.buffer[de]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(b=this.h[1]>>>13,this.h[1]&=8191,de=2;de<10;de++)this.h[de]+=b,b=this.h[de]>>>13,this.h[de]&=8191;for(this.h[0]+=b*5,b=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=b,b=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=b,F[0]=this.h[0]+5,b=F[0]>>>13,F[0]&=8191,de=1;de<10;de++)F[de]=this.h[de]+b,b=F[de]>>>13,F[de]&=8191;for(F[9]-=8192,H=(b^1)-1,de=0;de<10;de++)F[de]&=H;for(H=~H,de=0;de<10;de++)this.h[de]=this.h[de]&H|F[de];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,le=this.h[0]+this.pad[0],this.h[0]=le&65535,de=1;de<8;de++)le=(this.h[de]+this.pad[de]|0)+(le>>>16)|0,this.h[de]=le&65535;B[J+0]=this.h[0]>>>0&255,B[J+1]=this.h[0]>>>8&255,B[J+2]=this.h[1]>>>0&255,B[J+3]=this.h[1]>>>8&255,B[J+4]=this.h[2]>>>0&255,B[J+5]=this.h[2]>>>8&255,B[J+6]=this.h[3]>>>0&255,B[J+7]=this.h[3]>>>8&255,B[J+8]=this.h[4]>>>0&255,B[J+9]=this.h[4]>>>8&255,B[J+10]=this.h[5]>>>0&255,B[J+11]=this.h[5]>>>8&255,B[J+12]=this.h[6]>>>0&255,B[J+13]=this.h[6]>>>8&255,B[J+14]=this.h[7]>>>0&255,B[J+15]=this.h[7]>>>8&255},ge.prototype.update=function(B,J,F){var b,H;if(this.leftover){for(H=16-this.leftover,H>F&&(H=F),b=0;b<H;b++)this.buffer[this.leftover+b]=B[J+b];if(F-=H,J+=H,this.leftover+=H,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(F>=16&&(H=F-F%16,this.blocks(B,J,H),J+=H,F-=H),F){for(b=0;b<F;b++)this.buffer[this.leftover+b]=B[J+b];this.leftover+=F}};function Pe(B,J,F,b,H,le){var de=new ge(le);return de.update(F,b,H),de.finish(B,J),0}function He(B,J,F,b,H,le){var de=new Uint8Array(16);return Pe(de,0,F,b,H,le),O(B,J,de,0)}function $e(B,J,F,b,H){var le;if(F<32)return-1;for(Me(B,0,J,0,F,b,H),Pe(B,16,B,32,F-32,B),le=0;le<16;le++)B[le]=0;return 0}function me(B,J,F,b,H){var le,de=new Uint8Array(32);if(F<32||(Se(de,0,32,b,H),He(J,16,J,32,F-32,de)!==0))return-1;for(Me(B,0,J,0,F,b,H),le=0;le<32;le++)B[le]=0;return 0}function be(B,J){var F;for(F=0;F<16;F++)B[F]=J[F]|0}function Qe(B){var J,F,b=1;for(J=0;J<16;J++)F=B[J]+b+65535,b=Math.floor(F/65536),B[J]=F-b*65536;B[0]+=b-1+37*(b-1)}function Xe(B,J,F){for(var b,H=~(F-1),le=0;le<16;le++)b=H&(B[le]^J[le]),B[le]^=b,J[le]^=b}function rt(B,J){var F,b,H,le=r(),de=r();for(F=0;F<16;F++)de[F]=J[F];for(Qe(de),Qe(de),Qe(de),b=0;b<2;b++){for(le[0]=de[0]-65517,F=1;F<15;F++)le[F]=de[F]-65535-(le[F-1]>>16&1),le[F-1]&=65535;le[15]=de[15]-32767-(le[14]>>16&1),H=le[15]>>16&1,le[14]&=65535,Xe(de,le,1-H)}for(F=0;F<16;F++)B[2*F]=de[F]&255,B[2*F+1]=de[F]>>8}function bt(B,J){var F=new Uint8Array(32),b=new Uint8Array(32);return rt(F,B),rt(b,J),V(F,0,b,0)}function It(B){var J=new Uint8Array(32);return rt(J,B),J[0]&1}function Bt(B,J){var F;for(F=0;F<16;F++)B[F]=J[2*F]+(J[2*F+1]<<8);B[15]&=32767}function Nt(B,J,F){for(var b=0;b<16;b++)B[b]=J[b]+F[b]}function Tt(B,J,F){for(var b=0;b<16;b++)B[b]=J[b]-F[b]}function nt(B,J,F){var b,H,le=0,de=0,Re=0,Je=0,xt=0,ut=0,Nr=0,gt=0,Yt=0,Gt=0,sr=0,Et=0,Wt=0,Jt=0,er=0,mt=0,Ut=0,lt=0,At=0,Ct=0,st=0,ve=0,we=0,Fe=0,De=0,Le=0,Ge=0,Zt=0,ar=0,fr=0,lr=0,_=F[0],gr=F[1],Jr=F[2],Rr=F[3],dr=F[4],Mr=F[5],wr=F[6],Vn=F[7],qr=F[8],Cn=F[9],Bn=F[10],Pn=F[11],Un=F[12],Li=F[13],ti=F[14],Ti=F[15];b=J[0],le+=b*_,de+=b*gr,Re+=b*Jr,Je+=b*Rr,xt+=b*dr,ut+=b*Mr,Nr+=b*wr,gt+=b*Vn,Yt+=b*qr,Gt+=b*Cn,sr+=b*Bn,Et+=b*Pn,Wt+=b*Un,Jt+=b*Li,er+=b*ti,mt+=b*Ti,b=J[1],de+=b*_,Re+=b*gr,Je+=b*Jr,xt+=b*Rr,ut+=b*dr,Nr+=b*Mr,gt+=b*wr,Yt+=b*Vn,Gt+=b*qr,sr+=b*Cn,Et+=b*Bn,Wt+=b*Pn,Jt+=b*Un,er+=b*Li,mt+=b*ti,Ut+=b*Ti,b=J[2],Re+=b*_,Je+=b*gr,xt+=b*Jr,ut+=b*Rr,Nr+=b*dr,gt+=b*Mr,Yt+=b*wr,Gt+=b*Vn,sr+=b*qr,Et+=b*Cn,Wt+=b*Bn,Jt+=b*Pn,er+=b*Un,mt+=b*Li,Ut+=b*ti,lt+=b*Ti,b=J[3],Je+=b*_,xt+=b*gr,ut+=b*Jr,Nr+=b*Rr,gt+=b*dr,Yt+=b*Mr,Gt+=b*wr,sr+=b*Vn,Et+=b*qr,Wt+=b*Cn,Jt+=b*Bn,er+=b*Pn,mt+=b*Un,Ut+=b*Li,lt+=b*ti,At+=b*Ti,b=J[4],xt+=b*_,ut+=b*gr,Nr+=b*Jr,gt+=b*Rr,Yt+=b*dr,Gt+=b*Mr,sr+=b*wr,Et+=b*Vn,Wt+=b*qr,Jt+=b*Cn,er+=b*Bn,mt+=b*Pn,Ut+=b*Un,lt+=b*Li,At+=b*ti,Ct+=b*Ti,b=J[5],ut+=b*_,Nr+=b*gr,gt+=b*Jr,Yt+=b*Rr,Gt+=b*dr,sr+=b*Mr,Et+=b*wr,Wt+=b*Vn,Jt+=b*qr,er+=b*Cn,mt+=b*Bn,Ut+=b*Pn,lt+=b*Un,At+=b*Li,Ct+=b*ti,st+=b*Ti,b=J[6],Nr+=b*_,gt+=b*gr,Yt+=b*Jr,Gt+=b*Rr,sr+=b*dr,Et+=b*Mr,Wt+=b*wr,Jt+=b*Vn,er+=b*qr,mt+=b*Cn,Ut+=b*Bn,lt+=b*Pn,At+=b*Un,Ct+=b*Li,st+=b*ti,ve+=b*Ti,b=J[7],gt+=b*_,Yt+=b*gr,Gt+=b*Jr,sr+=b*Rr,Et+=b*dr,Wt+=b*Mr,Jt+=b*wr,er+=b*Vn,mt+=b*qr,Ut+=b*Cn,lt+=b*Bn,At+=b*Pn,Ct+=b*Un,st+=b*Li,ve+=b*ti,we+=b*Ti,b=J[8],Yt+=b*_,Gt+=b*gr,sr+=b*Jr,Et+=b*Rr,Wt+=b*dr,Jt+=b*Mr,er+=b*wr,mt+=b*Vn,Ut+=b*qr,lt+=b*Cn,At+=b*Bn,Ct+=b*Pn,st+=b*Un,ve+=b*Li,we+=b*ti,Fe+=b*Ti,b=J[9],Gt+=b*_,sr+=b*gr,Et+=b*Jr,Wt+=b*Rr,Jt+=b*dr,er+=b*Mr,mt+=b*wr,Ut+=b*Vn,lt+=b*qr,At+=b*Cn,Ct+=b*Bn,st+=b*Pn,ve+=b*Un,we+=b*Li,Fe+=b*ti,De+=b*Ti,b=J[10],sr+=b*_,Et+=b*gr,Wt+=b*Jr,Jt+=b*Rr,er+=b*dr,mt+=b*Mr,Ut+=b*wr,lt+=b*Vn,At+=b*qr,Ct+=b*Cn,st+=b*Bn,ve+=b*Pn,we+=b*Un,Fe+=b*Li,De+=b*ti,Le+=b*Ti,b=J[11],Et+=b*_,Wt+=b*gr,Jt+=b*Jr,er+=b*Rr,mt+=b*dr,Ut+=b*Mr,lt+=b*wr,At+=b*Vn,Ct+=b*qr,st+=b*Cn,ve+=b*Bn,we+=b*Pn,Fe+=b*Un,De+=b*Li,Le+=b*ti,Ge+=b*Ti,b=J[12],Wt+=b*_,Jt+=b*gr,er+=b*Jr,mt+=b*Rr,Ut+=b*dr,lt+=b*Mr,At+=b*wr,Ct+=b*Vn,st+=b*qr,ve+=b*Cn,we+=b*Bn,Fe+=b*Pn,De+=b*Un,Le+=b*Li,Ge+=b*ti,Zt+=b*Ti,b=J[13],Jt+=b*_,er+=b*gr,mt+=b*Jr,Ut+=b*Rr,lt+=b*dr,At+=b*Mr,Ct+=b*wr,st+=b*Vn,ve+=b*qr,we+=b*Cn,Fe+=b*Bn,De+=b*Pn,Le+=b*Un,Ge+=b*Li,Zt+=b*ti,ar+=b*Ti,b=J[14],er+=b*_,mt+=b*gr,Ut+=b*Jr,lt+=b*Rr,At+=b*dr,Ct+=b*Mr,st+=b*wr,ve+=b*Vn,we+=b*qr,Fe+=b*Cn,De+=b*Bn,Le+=b*Pn,Ge+=b*Un,Zt+=b*Li,ar+=b*ti,fr+=b*Ti,b=J[15],mt+=b*_,Ut+=b*gr,lt+=b*Jr,At+=b*Rr,Ct+=b*dr,st+=b*Mr,ve+=b*wr,we+=b*Vn,Fe+=b*qr,De+=b*Cn,Le+=b*Bn,Ge+=b*Pn,Zt+=b*Un,ar+=b*Li,fr+=b*ti,lr+=b*Ti,le+=38*Ut,de+=38*lt,Re+=38*At,Je+=38*Ct,xt+=38*st,ut+=38*ve,Nr+=38*we,gt+=38*Fe,Yt+=38*De,Gt+=38*Le,sr+=38*Ge,Et+=38*Zt,Wt+=38*ar,Jt+=38*fr,er+=38*lr,H=1,b=le+H+65535,H=Math.floor(b/65536),le=b-H*65536,b=de+H+65535,H=Math.floor(b/65536),de=b-H*65536,b=Re+H+65535,H=Math.floor(b/65536),Re=b-H*65536,b=Je+H+65535,H=Math.floor(b/65536),Je=b-H*65536,b=xt+H+65535,H=Math.floor(b/65536),xt=b-H*65536,b=ut+H+65535,H=Math.floor(b/65536),ut=b-H*65536,b=Nr+H+65535,H=Math.floor(b/65536),Nr=b-H*65536,b=gt+H+65535,H=Math.floor(b/65536),gt=b-H*65536,b=Yt+H+65535,H=Math.floor(b/65536),Yt=b-H*65536,b=Gt+H+65535,H=Math.floor(b/65536),Gt=b-H*65536,b=sr+H+65535,H=Math.floor(b/65536),sr=b-H*65536,b=Et+H+65535,H=Math.floor(b/65536),Et=b-H*65536,b=Wt+H+65535,H=Math.floor(b/65536),Wt=b-H*65536,b=Jt+H+65535,H=Math.floor(b/65536),Jt=b-H*65536,b=er+H+65535,H=Math.floor(b/65536),er=b-H*65536,b=mt+H+65535,H=Math.floor(b/65536),mt=b-H*65536,le+=H-1+37*(H-1),H=1,b=le+H+65535,H=Math.floor(b/65536),le=b-H*65536,b=de+H+65535,H=Math.floor(b/65536),de=b-H*65536,b=Re+H+65535,H=Math.floor(b/65536),Re=b-H*65536,b=Je+H+65535,H=Math.floor(b/65536),Je=b-H*65536,b=xt+H+65535,H=Math.floor(b/65536),xt=b-H*65536,b=ut+H+65535,H=Math.floor(b/65536),ut=b-H*65536,b=Nr+H+65535,H=Math.floor(b/65536),Nr=b-H*65536,b=gt+H+65535,H=Math.floor(b/65536),gt=b-H*65536,b=Yt+H+65535,H=Math.floor(b/65536),Yt=b-H*65536,b=Gt+H+65535,H=Math.floor(b/65536),Gt=b-H*65536,b=sr+H+65535,H=Math.floor(b/65536),sr=b-H*65536,b=Et+H+65535,H=Math.floor(b/65536),Et=b-H*65536,b=Wt+H+65535,H=Math.floor(b/65536),Wt=b-H*65536,b=Jt+H+65535,H=Math.floor(b/65536),Jt=b-H*65536,b=er+H+65535,H=Math.floor(b/65536),er=b-H*65536,b=mt+H+65535,H=Math.floor(b/65536),mt=b-H*65536,le+=H-1+37*(H-1),B[0]=le,B[1]=de,B[2]=Re,B[3]=Je,B[4]=xt,B[5]=ut,B[6]=Nr,B[7]=gt,B[8]=Yt,B[9]=Gt,B[10]=sr,B[11]=Et,B[12]=Wt,B[13]=Jt,B[14]=er,B[15]=mt}function yt(B,J){nt(B,J,J)}function Ir(B,J){var F=r(),b;for(b=0;b<16;b++)F[b]=J[b];for(b=253;b>=0;b--)yt(F,F),b!==2&&b!==4&&nt(F,F,J);for(b=0;b<16;b++)B[b]=F[b]}function mr(B,J){var F=r(),b;for(b=0;b<16;b++)F[b]=J[b];for(b=250;b>=0;b--)yt(F,F),b!==1&&nt(F,F,J);for(b=0;b<16;b++)B[b]=F[b]}function kr(B,J,F){var b=new Uint8Array(32),H=new Float64Array(80),le,de,Re=r(),Je=r(),xt=r(),ut=r(),Nr=r(),gt=r();for(de=0;de<31;de++)b[de]=J[de];for(b[31]=J[31]&127|64,b[0]&=248,Bt(H,F),de=0;de<16;de++)Je[de]=H[de],ut[de]=Re[de]=xt[de]=0;for(Re[0]=ut[0]=1,de=254;de>=0;--de)le=b[de>>>3]>>>(de&7)&1,Xe(Re,Je,le),Xe(xt,ut,le),Nt(Nr,Re,xt),Tt(Re,Re,xt),Nt(xt,Je,ut),Tt(Je,Je,ut),yt(ut,Nr),yt(gt,Re),nt(Re,xt,Re),nt(xt,Je,Nr),Nt(Nr,Re,xt),Tt(Re,Re,xt),yt(Je,Re),Tt(xt,ut,gt),nt(Re,xt,u),Nt(Re,Re,ut),nt(xt,xt,Re),nt(Re,ut,gt),nt(ut,Je,H),yt(Je,Nr),Xe(Re,Je,le),Xe(xt,ut,le);for(de=0;de<16;de++)H[de+16]=Re[de],H[de+32]=xt[de],H[de+48]=Je[de],H[de+64]=ut[de];var Yt=H.subarray(32),Gt=H.subarray(16);return Ir(Yt,Yt),nt(Gt,Gt,Yt),rt(B,Gt),0}function Fr(B,J){return kr(B,J,o)}function wn(B,J){return n(J,32),Fr(B,J)}function _r(B,J,F){var b=new Uint8Array(32);return kr(b,F,J),$(B,i,b,oe)}var en=$e,$r=me;function fi(B,J,F,b,H,le){var de=new Uint8Array(32);return _r(de,H,le),en(B,J,F,b,de)}function vi(B,J,F,b,H,le){var de=new Uint8Array(32);return _r(de,H,le),$r(B,J,F,b,de)}var Ei=[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 ki(B,J,F,b){for(var H=new Int32Array(16),le=new Int32Array(16),de,Re,Je,xt,ut,Nr,gt,Yt,Gt,sr,Et,Wt,Jt,er,mt,Ut,lt,At,Ct,st,ve,we,Fe,De,Le,Ge,Zt=B[0],ar=B[1],fr=B[2],lr=B[3],_=B[4],gr=B[5],Jr=B[6],Rr=B[7],dr=J[0],Mr=J[1],wr=J[2],Vn=J[3],qr=J[4],Cn=J[5],Bn=J[6],Pn=J[7],Un=0;b>=128;){for(Ct=0;Ct<16;Ct++)st=8*Ct+Un,H[Ct]=F[st+0]<<24|F[st+1]<<16|F[st+2]<<8|F[st+3],le[Ct]=F[st+4]<<24|F[st+5]<<16|F[st+6]<<8|F[st+7];for(Ct=0;Ct<80;Ct++)if(de=Zt,Re=ar,Je=fr,xt=lr,ut=_,Nr=gr,gt=Jr,Yt=Rr,Gt=dr,sr=Mr,Et=wr,Wt=Vn,Jt=qr,er=Cn,mt=Bn,Ut=Pn,ve=Rr,we=Pn,Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=(_>>>14|qr<<18)^(_>>>18|qr<<14)^(qr>>>9|_<<23),we=(qr>>>14|_<<18)^(qr>>>18|_<<14)^(_>>>9|qr<<23),Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,ve=_&gr^~_&Jr,we=qr&Cn^~qr&Bn,Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,ve=Ei[Ct*2],we=Ei[Ct*2+1],Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,ve=H[Ct%16],we=le[Ct%16],Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,lt=Le&65535|Ge<<16,At=Fe&65535|De<<16,ve=lt,we=At,Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=(Zt>>>28|dr<<4)^(dr>>>2|Zt<<30)^(dr>>>7|Zt<<25),we=(dr>>>28|Zt<<4)^(Zt>>>2|dr<<30)^(Zt>>>7|dr<<25),Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,ve=Zt&ar^Zt&fr^ar&fr,we=dr&Mr^dr&wr^Mr&wr,Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,Yt=Le&65535|Ge<<16,Ut=Fe&65535|De<<16,ve=xt,we=Wt,Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=lt,we=At,Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,xt=Le&65535|Ge<<16,Wt=Fe&65535|De<<16,ar=de,fr=Re,lr=Je,_=xt,gr=ut,Jr=Nr,Rr=gt,Zt=Yt,Mr=Gt,wr=sr,Vn=Et,qr=Wt,Cn=Jt,Bn=er,Pn=mt,dr=Ut,Ct%16===15)for(st=0;st<16;st++)ve=H[st],we=le[st],Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=H[(st+9)%16],we=le[(st+9)%16],Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,lt=H[(st+1)%16],At=le[(st+1)%16],ve=(lt>>>1|At<<31)^(lt>>>8|At<<24)^lt>>>7,we=(At>>>1|lt<<31)^(At>>>8|lt<<24)^(At>>>7|lt<<25),Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,lt=H[(st+14)%16],At=le[(st+14)%16],ve=(lt>>>19|At<<13)^(At>>>29|lt<<3)^lt>>>6,we=(At>>>19|lt<<13)^(lt>>>29|At<<3)^(At>>>6|lt<<26),Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,H[st]=Le&65535|Ge<<16,le[st]=Fe&65535|De<<16;ve=Zt,we=dr,Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=B[0],we=J[0],Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,B[0]=Zt=Le&65535|Ge<<16,J[0]=dr=Fe&65535|De<<16,ve=ar,we=Mr,Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=B[1],we=J[1],Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,B[1]=ar=Le&65535|Ge<<16,J[1]=Mr=Fe&65535|De<<16,ve=fr,we=wr,Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=B[2],we=J[2],Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,B[2]=fr=Le&65535|Ge<<16,J[2]=wr=Fe&65535|De<<16,ve=lr,we=Vn,Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=B[3],we=J[3],Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,B[3]=lr=Le&65535|Ge<<16,J[3]=Vn=Fe&65535|De<<16,ve=_,we=qr,Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=B[4],we=J[4],Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,B[4]=_=Le&65535|Ge<<16,J[4]=qr=Fe&65535|De<<16,ve=gr,we=Cn,Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=B[5],we=J[5],Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,B[5]=gr=Le&65535|Ge<<16,J[5]=Cn=Fe&65535|De<<16,ve=Jr,we=Bn,Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=B[6],we=J[6],Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,B[6]=Jr=Le&65535|Ge<<16,J[6]=Bn=Fe&65535|De<<16,ve=Rr,we=Pn,Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=B[7],we=J[7],Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,B[7]=Rr=Le&65535|Ge<<16,J[7]=Pn=Fe&65535|De<<16,Un+=128,b-=128}return b}function jn(B,J,F){var b=new Int32Array(8),H=new Int32Array(8),le=new Uint8Array(256),de,Re=F;for(b[0]=1779033703,b[1]=3144134277,b[2]=1013904242,b[3]=2773480762,b[4]=1359893119,b[5]=2600822924,b[6]=528734635,b[7]=1541459225,H[0]=4089235720,H[1]=2227873595,H[2]=4271175723,H[3]=1595750129,H[4]=2917565137,H[5]=725511199,H[6]=4215389547,H[7]=327033209,ki(b,H,J,F),F%=128,de=0;de<F;de++)le[de]=J[Re-F+de];for(le[F]=128,F=256-128*(F<112?1:0),le[F-9]=0,I(le,F-8,Re/536870912|0,Re<<3),ki(b,H,le,F),de=0;de<8;de++)I(B,8*de,b[de],H[de]);return 0}function ni(B,J){var F=r(),b=r(),H=r(),le=r(),de=r(),Re=r(),Je=r(),xt=r(),ut=r();Tt(F,B[1],B[0]),Tt(ut,J[1],J[0]),nt(F,F,ut),Nt(b,B[0],B[1]),Nt(ut,J[0],J[1]),nt(b,b,ut),nt(H,B[3],J[3]),nt(H,H,g),nt(le,B[2],J[2]),Nt(le,le,le),Tt(de,b,F),Tt(Re,le,H),Nt(Je,le,H),Nt(xt,b,F),nt(B[0],de,Re),nt(B[1],xt,Je),nt(B[2],Je,Re),nt(B[3],de,xt)}function jr(B,J,F){var b;for(b=0;b<4;b++)Xe(B[b],J[b],F)}function Zr(B,J){var F=r(),b=r(),H=r();Ir(H,J[2]),nt(F,J[0],H),nt(b,J[1],H),rt(B,b),B[31]^=It(F)<<7}function Jn(B,J,F){var b,H;for(be(B[0],s),be(B[1],a),be(B[2],a),be(B[3],s),H=255;H>=0;--H)b=F[H/8|0]>>(H&7)&1,jr(B,J,b),ni(J,B),ni(B,B),jr(B,J,b)}function Ji(B,J){var F=[r(),r(),r(),r()];be(F[0],y),be(F[1],E),be(F[2],a),nt(F[3],y,E),Jn(B,F,J)}function kn(B,J,F){var b=new Uint8Array(64),H=[r(),r(),r(),r()],le;for(F||n(J,32),jn(b,J,32),b[0]&=248,b[31]&=127,b[31]|=64,Ji(H,b),Zr(B,H),le=0;le<32;le++)J[le+32]=B[le];return 0}var Si=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 w(B,J){var F,b,H,le;for(b=63;b>=32;--b){for(F=0,H=b-32,le=b-12;H<le;++H)J[H]+=F-16*J[b]*Si[H-(b-32)],F=Math.floor((J[H]+128)/256),J[H]-=F*256;J[H]+=F,J[b]=0}for(F=0,H=0;H<32;H++)J[H]+=F-(J[31]>>4)*Si[H],F=J[H]>>8,J[H]&=255;for(H=0;H<32;H++)J[H]-=F*Si[H];for(b=0;b<32;b++)J[b+1]+=J[b]>>8,B[b]=J[b]&255}function S(B){var J=new Float64Array(64),F;for(F=0;F<64;F++)J[F]=B[F];for(F=0;F<64;F++)B[F]=0;w(B,J)}function R(B,J,F,b){var H=new Uint8Array(64),le=new Uint8Array(64),de=new Uint8Array(64),Re,Je,xt=new Float64Array(64),ut=[r(),r(),r(),r()];jn(H,b,32),H[0]&=248,H[31]&=127,H[31]|=64;var Nr=F+64;for(Re=0;Re<F;Re++)B[64+Re]=J[Re];for(Re=0;Re<32;Re++)B[32+Re]=H[32+Re];for(jn(de,B.subarray(32),F+32),S(de),Ji(ut,de),Zr(B,ut),Re=32;Re<64;Re++)B[Re]=b[Re];for(jn(le,B,F+64),S(le),Re=0;Re<64;Re++)xt[Re]=0;for(Re=0;Re<32;Re++)xt[Re]=de[Re];for(Re=0;Re<32;Re++)for(Je=0;Je<32;Je++)xt[Re+Je]+=le[Re]*H[Je];return w(B.subarray(32),xt),Nr}function L(B,J){var F=r(),b=r(),H=r(),le=r(),de=r(),Re=r(),Je=r();return be(B[2],a),Bt(B[1],J),yt(H,B[1]),nt(le,H,p),Tt(H,H,B[2]),Nt(le,B[2],le),yt(de,le),yt(Re,de),nt(Je,Re,de),nt(F,Je,H),nt(F,F,le),mr(F,F),nt(F,F,H),nt(F,F,le),nt(F,F,le),nt(B[0],F,le),yt(b,B[0]),nt(b,b,le),bt(b,H)&&nt(B[0],B[0],M),yt(b,B[0]),nt(b,b,le),bt(b,H)?-1:(It(B[0])===J[31]>>7&&Tt(B[0],s,B[0]),nt(B[3],B[0],B[1]),0)}function T(B,J,F,b){var H,le=new Uint8Array(32),de=new Uint8Array(64),Re=[r(),r(),r(),r()],Je=[r(),r(),r(),r()];if(F<64||L(Je,b))return-1;for(H=0;H<F;H++)B[H]=J[H];for(H=0;H<32;H++)B[H+32]=b[H];if(jn(de,B,F),S(de),Jn(Re,Je,de),Ji(Je,J.subarray(32)),ni(Re,Je),Zr(le,Re),F-=64,V(J,0,le,0)){for(H=0;H<F;H++)B[H]=0;return-1}for(H=0;H<F;H++)B[H]=J[H+64];return F}var D=32,ee=24,Ae=32,Te=16,Ve=32,it=32,Rt=32,zn=32,yi=32,In=ee,ra=Ae,na=Te,Zo=64,vs=32,ia=64,ke=32,$c=64;t.lowlevel={crypto_core_hsalsa20:$,crypto_stream_xor:Me,crypto_stream:Se,crypto_stream_salsa20_xor:ae,crypto_stream_salsa20:ue,crypto_onetimeauth:Pe,crypto_onetimeauth_verify:He,crypto_verify_16:O,crypto_verify_32:V,crypto_secretbox:$e,crypto_secretbox_open:me,crypto_scalarmult:kr,crypto_scalarmult_base:Fr,crypto_box_beforenm:_r,crypto_box_afternm:en,crypto_box:fi,crypto_box_open:vi,crypto_box_keypair:wn,crypto_hash:jn,crypto_sign:R,crypto_sign_keypair:kn,crypto_sign_open:T,crypto_secretbox_KEYBYTES:D,crypto_secretbox_NONCEBYTES:ee,crypto_secretbox_ZEROBYTES:Ae,crypto_secretbox_BOXZEROBYTES:Te,crypto_scalarmult_BYTES:Ve,crypto_scalarmult_SCALARBYTES:it,crypto_box_PUBLICKEYBYTES:Rt,crypto_box_SECRETKEYBYTES:zn,crypto_box_BEFORENMBYTES:yi,crypto_box_NONCEBYTES:In,crypto_box_ZEROBYTES:ra,crypto_box_BOXZEROBYTES:na,crypto_sign_BYTES:Zo,crypto_sign_PUBLICKEYBYTES:vs,crypto_sign_SECRETKEYBYTES:ia,crypto_sign_SEEDBYTES:ke,crypto_hash_BYTES:$c,gf:r,D:p,L:Si,pack25519:rt,unpack25519:Bt,M:nt,A:Nt,S:yt,Z:Tt,pow2523:mr,add:ni,set25519:be,modL:w,scalarmult:Jn,scalarbase:Ji};function oa(B,J){if(B.length!==D)throw new Error("bad key size");if(J.length!==ee)throw new Error("bad nonce size")}function ld(B,J){if(B.length!==Rt)throw new Error("bad public key size");if(J.length!==zn)throw new Error("bad secret key size")}function Yi(){for(var B=0;B<arguments.length;B++)if(!(arguments[B]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function eu(B){for(var J=0;J<B.length;J++)B[J]=0}t.randomBytes=function(B){var J=new Uint8Array(B);return n(J,B),J},t.secretbox=function(B,J,F){Yi(B,J,F),oa(F,J);for(var b=new Uint8Array(Ae+B.length),H=new Uint8Array(b.length),le=0;le<B.length;le++)b[le+Ae]=B[le];return $e(H,b,b.length,J,F),H.subarray(Te)},t.secretbox.open=function(B,J,F){Yi(B,J,F),oa(F,J);for(var b=new Uint8Array(Te+B.length),H=new Uint8Array(b.length),le=0;le<B.length;le++)b[le+Te]=B[le];return b.length<32||me(H,b,b.length,J,F)!==0?null:H.subarray(Ae)},t.secretbox.keyLength=D,t.secretbox.nonceLength=ee,t.secretbox.overheadLength=Te,t.scalarMult=function(B,J){if(Yi(B,J),B.length!==it)throw new Error("bad n size");if(J.length!==Ve)throw new Error("bad p size");var F=new Uint8Array(Ve);return kr(F,B,J),F},t.scalarMult.base=function(B){if(Yi(B),B.length!==it)throw new Error("bad n size");var J=new Uint8Array(Ve);return Fr(J,B),J},t.scalarMult.scalarLength=it,t.scalarMult.groupElementLength=Ve,t.box=function(B,J,F,b){var H=t.box.before(F,b);return t.secretbox(B,J,H)},t.box.before=function(B,J){Yi(B,J),ld(B,J);var F=new Uint8Array(yi);return _r(F,B,J),F},t.box.after=t.secretbox,t.box.open=function(B,J,F,b){var H=t.box.before(F,b);return t.secretbox.open(B,J,H)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var B=new Uint8Array(Rt),J=new Uint8Array(zn);return wn(B,J),{publicKey:B,secretKey:J}},t.box.keyPair.fromSecretKey=function(B){if(Yi(B),B.length!==zn)throw new Error("bad secret key size");var J=new Uint8Array(Rt);return Fr(J,B),{publicKey:J,secretKey:new Uint8Array(B)}},t.box.publicKeyLength=Rt,t.box.secretKeyLength=zn,t.box.sharedKeyLength=yi,t.box.nonceLength=In,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(B,J){if(Yi(B,J),J.length!==ia)throw new Error("bad secret key size");var F=new Uint8Array(Zo+B.length);return R(F,B,B.length,J),F},t.sign.open=function(B,J){if(Yi(B,J),J.length!==vs)throw new Error("bad public key size");var F=new Uint8Array(B.length),b=T(F,B,B.length,J);if(b<0)return null;for(var H=new Uint8Array(b),le=0;le<H.length;le++)H[le]=F[le];return H},t.sign.detached=function(B,J){for(var F=t.sign(B,J),b=new Uint8Array(Zo),H=0;H<b.length;H++)b[H]=F[H];return b},t.sign.detached.verify=function(B,J,F){if(Yi(B,J,F),J.length!==Zo)throw new Error("bad signature size");if(F.length!==vs)throw new Error("bad public key size");var b=new Uint8Array(Zo+B.length),H=new Uint8Array(Zo+B.length),le;for(le=0;le<Zo;le++)b[le]=J[le];for(le=0;le<B.length;le++)b[le+Zo]=B[le];return T(H,b,b.length,F)>=0},t.sign.keyPair=function(){var B=new Uint8Array(vs),J=new Uint8Array(ia);return kn(B,J),{publicKey:B,secretKey:J}},t.sign.keyPair.fromSecretKey=function(B){if(Yi(B),B.length!==ia)throw new Error("bad secret key size");for(var J=new Uint8Array(vs),F=0;F<J.length;F++)J[F]=B[32+F];return{publicKey:J,secretKey:new Uint8Array(B)}},t.sign.keyPair.fromSeed=function(B){if(Yi(B),B.length!==ke)throw new Error("bad seed size");for(var J=new Uint8Array(vs),F=new Uint8Array(ia),b=0;b<32;b++)F[b]=B[b];return kn(J,F,!0),{publicKey:J,secretKey:F}},t.sign.publicKeyLength=vs,t.sign.secretKeyLength=ia,t.sign.seedLength=ke,t.sign.signatureLength=Zo,t.hash=function(B){Yi(B);var J=new Uint8Array($c);return jn(J,B,B.length),J},t.hash.hashLength=$c,t.verify=function(B,J){return Yi(B,J),B.length===0||J.length===0||B.length!==J.length?!1:N(B,0,J,0,B.length)===0},t.setPRNG=function(B){n=B},function(){var B=typeof self<"u"?self.crypto||self.msCrypto:null;if(B&&B.getRandomValues){var J=65536;t.setPRNG(function(F,b){var H,le=new Uint8Array(b);for(H=0;H<b;H+=J)B.getRandomValues(le.subarray(H,H+Math.min(b-H,J)));for(H=0;H<b;H++)F[H]=le[H];eu(le)})}else typeof Mae<"u"&&(B=Nae,B&&B.randomBytes&&t.setPRNG(function(F,b){var H,le=B.randomBytes(b);for(H=0;H<b;H++)F[H]=le[H];eu(le)}))}()})(e.exports?e.exports:self.nacl=self.nacl||{})})(ZV);var Rae=ZV.exports;const Dae=VP(Rae),PC=32;let KV=class extends $2{constructor(t){if(super(),typeof t=="string"?this.data=Su(t):t instanceof Uint8Array?this.data=t:this.data=Uint8Array.from(t),this.data.length!==PC)throw new Error(`Invalid public key input. Expected ${PC} bytes, got ${this.data.length}`)}equals(t){return super.equals(t)}toRawBytes(){return this.data}flag(){return ph.ED25519}async verify(t,r){let n;if(typeof r=="string"){const i=Jm(r);if(i.signatureScheme!=="ED25519")throw new Error("Invalid signature scheme");if(!Vm(this.toRawBytes(),i.publicKey))throw new Error("Signature does not match public key");n=i.signature}else n=r;return Dae.sign.detached.verify(t,n,this.toRawBytes())}};KV.SIZE=PC;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const YV=BigInt(0),J3=BigInt(1),Lae=BigInt(2);function hg(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function rw(e){if(!hg(e))throw new Error("Uint8Array expected")}const Pae=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Hm(e){rw(e);let t="";for(let r=0;r<e.length;r++)t+=Pae[e[r]];return t}function XV(e){const t=e.toString(16);return t.length&1?`0${t}`:t}function VC(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return BigInt(e===""?"0":`0x${e}`)}const gh={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function qV(e){if(e>=gh._0&&e<=gh._9)return e-gh._0;if(e>=gh._A&&e<=gh._F)return e-(gh._A-10);if(e>=gh._a&&e<=gh._f)return e-(gh._a-10)}function Gm(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let i=0,o=0;i<r;i++,o+=2){const s=qV(e.charCodeAt(o)),a=qV(e.charCodeAt(o+1));if(s===void 0||a===void 0){const u=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+u+'" at index '+o)}n[i]=s*16+a}return n}function pg(e){return VC(Hm(e))}function FC(e){return rw(e),VC(Hm(Uint8Array.from(e).reverse()))}function Wm(e,t){return Gm(e.toString(16).padStart(t*2,"0"))}function jC(e,t){return Wm(e,t).reverse()}function Vae(e){return Gm(XV(e))}function ef(e,t,r){let n;if(typeof t=="string")try{n=Gm(t)}catch(o){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${o}`)}else if(hg(t))n=Uint8Array.from(t);else throw new Error(`${e} must be hex string or Uint8Array`);const i=n.length;if(typeof r=="number"&&i!==r)throw new Error(`${e} expected ${r} bytes, got ${i}`);return n}function nw(...e){let t=0;for(let n=0;n<e.length;n++){const i=e[n];rw(i),t+=i.length}const r=new Uint8Array(t);for(let n=0,i=0;n<e.length;n++){const o=e[n];r.set(o,i),i+=o.length}return r}function Fae(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return r===0}function jae(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Jae(e){let t;for(t=0;e>YV;e>>=J3,t+=1);return t}function zae(e,t){return e>>BigInt(t)&J3}function Hae(e,t,r){return e|(r?J3:YV)<<BigInt(t)}const JC=e=>(Lae<<BigInt(e-1))-J3,zC=e=>new Uint8Array(e),_V=e=>Uint8Array.from(e);function $V(e,t,r){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let n=zC(e),i=zC(e),o=0;const s=()=>{n.fill(1),i.fill(0),o=0},a=(...g)=>r(i,n,...g),u=(g=zC())=>{i=a(_V([0]),g),n=a(),g.length!==0&&(i=a(_V([1]),g),n=a())},p=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let g=0;const y=[];for(;g<t;){n=a();const E=n.slice();y.push(E),g+=n.length}return nw(...y)};return(g,y)=>{s(),u(g);let E;for(;!(E=y(p()));)u();return s(),E}}const Gae={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||hg(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function iw(e,t,r={}){const n=(i,o,s)=>{const a=Gae[o];if(typeof a!="function")throw new Error(`Invalid validator "${o}", expected function`);const u=e[i];if(!(s&&u===void 0)&&!a(u,e))throw new Error(`Invalid param ${String(i)}=${u} (${typeof u}), expected ${o}`)};for(const[i,o]of Object.entries(t))n(i,o,!1);for(const[i,o]of Object.entries(r))n(i,o,!0);return e}const Wae=Object.freeze(Object.defineProperty({__proto__:null,abytes:rw,bitGet:zae,bitLen:Jae,bitMask:JC,bitSet:Hae,bytesToHex:Hm,bytesToNumberBE:pg,bytesToNumberLE:FC,concatBytes:nw,createHmacDrbg:$V,ensureBytes:ef,equalBytes:Fae,hexToBytes:Gm,hexToNumber:VC,isBytes:hg,numberToBytesBE:Wm,numberToBytesLE:jC,numberToHexUnpadded:XV,numberToVarBytesBE:Vae,utf8ToBytes:jae,validateObject:iw},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ua=BigInt(0),zs=BigInt(1),gg=BigInt(2),Qae=BigInt(3),HC=BigInt(4),eF=BigInt(5),tF=BigInt(8);BigInt(9),BigInt(16);function Xc(e,t){const r=e%t;return r>=Ua?r:t+r}function Zae(e,t,r){if(r<=Ua||t<Ua)throw new Error("Expected power/modulo > 0");if(r===zs)return Ua;let n=zs;for(;t>Ua;)t&zs&&(n=n*e%r),e=e*e%r,t>>=zs;return n}function al(e,t,r){let n=e;for(;t-- >Ua;)n*=n,n%=r;return n}function GC(e,t){if(e===Ua||t<=Ua)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=Xc(e,t),n=t,i=Ua,o=zs;for(;r!==Ua;){const s=n/r,a=n%r,u=i-o*s;n=r,r=a,i=o,o=u}if(n!==zs)throw new Error("invert: does not exist");return Xc(i,t)}function Kae(e){const t=(e-zs)/gg;let r,n,i;for(r=e-zs,n=0;r%gg===Ua;r/=gg,n++);for(i=gg;i<e&&Zae(i,t,e)!==e-zs;i++);if(n===1){const s=(e+zs)/HC;return function(a,u){const p=a.pow(u,s);if(!a.eql(a.sqr(p),u))throw new Error("Cannot find square root");return p}}const o=(r+zs)/gg;return function(s,a){if(s.pow(a,t)===s.neg(s.ONE))throw new Error("Cannot find square root");let u=n,p=s.pow(s.mul(s.ONE,i),r),g=s.pow(a,o),y=s.pow(a,r);for(;!s.eql(y,s.ONE);){if(s.eql(y,s.ZERO))return s.ZERO;let E=1;for(let I=s.sqr(y);E<u&&!s.eql(I,s.ONE);E++)I=s.sqr(I);const M=s.pow(p,zs<<BigInt(u-E-1));p=s.sqr(M),g=s.mul(g,M),y=s.mul(y,p),u=E}return g}}function Yae(e){if(e%HC===Qae){const t=(e+zs)/HC;return function(r,n){const i=r.pow(n,t);if(!r.eql(r.sqr(i),n))throw new Error("Cannot find square root");return i}}if(e%tF===eF){const t=(e-eF)/tF;return function(r,n){const i=r.mul(n,gg),o=r.pow(i,t),s=r.mul(n,o),a=r.mul(r.mul(s,gg),o),u=r.mul(s,r.sub(a,r.ONE));if(!r.eql(r.sqr(u),n))throw new Error("Cannot find square root");return u}}return Kae(e)}const Xae=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function qae(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=Xae.reduce((n,i)=>(n[i]="function",n),t);return iw(e,r)}function _ae(e,t,r){if(r<Ua)throw new Error("Expected power > 0");if(r===Ua)return e.ONE;if(r===zs)return t;let n=e.ONE,i=t;for(;r>Ua;)r&zs&&(n=e.mul(n,i)),i=e.sqr(i),r>>=zs;return n}function $ae(e,t){const r=new Array(t.length),n=t.reduce((o,s,a)=>e.is0(s)?o:(r[a]=o,e.mul(o,s)),e.ONE),i=e.inv(n);return t.reduceRight((o,s,a)=>e.is0(s)?o:(r[a]=e.mul(o,r[a]),e.mul(o,s)),i),r}function rF(e,t){const r=t!==void 0?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function nF(e,t,r=!1,n={}){if(e<=Ua)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:i,nByteLength:o}=rF(e,t);if(o>2048)throw new Error("Field lengths over 2048 bytes are not supported");const s=Yae(e),a=Object.freeze({ORDER:e,BITS:i,BYTES:o,MASK:JC(i),ZERO:Ua,ONE:zs,create:u=>Xc(u,e),isValid:u=>{if(typeof u!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof u}`);return Ua<=u&&u<e},is0:u=>u===Ua,isOdd:u=>(u&zs)===zs,neg:u=>Xc(-u,e),eql:(u,p)=>u===p,sqr:u=>Xc(u*u,e),add:(u,p)=>Xc(u+p,e),sub:(u,p)=>Xc(u-p,e),mul:(u,p)=>Xc(u*p,e),pow:(u,p)=>_ae(a,u,p),div:(u,p)=>Xc(u*GC(p,e),e),sqrN:u=>u*u,addN:(u,p)=>u+p,subN:(u,p)=>u-p,mulN:(u,p)=>u*p,inv:u=>GC(u,e),sqrt:n.sqrt||(u=>s(a,u)),invertBatch:u=>$ae(a,u),cmov:(u,p,g)=>g?p:u,toBytes:u=>r?jC(u,o):Wm(u,o),fromBytes:u=>{if(u.length!==o)throw new Error(`Fp.fromBytes: expected ${o}, got ${u.length}`);return r?FC(u):pg(u)}});return Object.freeze(a)}function iF(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function oF(e){const t=iF(e);return t+Math.ceil(t/2)}function ece(e,t,r=!1){const n=e.length,i=iF(t),o=oF(t);if(n<16||n<o||n>1024)throw new Error(`expected ${o}-1024 bytes of input, got ${n}`);const s=r?pg(e):FC(e),a=Xc(s,t-zs)+zs;return r?jC(a,i):Wm(a,i)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const tce=BigInt(0),WC=BigInt(1);function rce(e,t){const r=(i,o)=>{const s=o.negate();return i?s:o},n=i=>{const o=Math.ceil(t/i)+1,s=2**(i-1);return{windows:o,windowSize:s}};return{constTimeNegate:r,unsafeLadder(i,o){let s=e.ZERO,a=i;for(;o>tce;)o&WC&&(s=s.add(a)),a=a.double(),o>>=WC;return s},precomputeWindow(i,o){const{windows:s,windowSize:a}=n(o),u=[];let p=i,g=p;for(let y=0;y<s;y++){g=p,u.push(g);for(let E=1;E<a;E++)g=g.add(p),u.push(g);p=g.double()}return u},wNAF(i,o,s){const{windows:a,windowSize:u}=n(i);let p=e.ZERO,g=e.BASE;const y=BigInt(2**i-1),E=2**i,M=BigInt(i);for(let I=0;I<a;I++){const N=I*u;let O=Number(s&y);s>>=M,O>u&&(O-=E,s+=WC);const V=N,Z=N+Math.abs(O)-1,Q=I%2!==0,K=O<0;O===0?g=g.add(r(Q,o[V])):p=p.add(r(K,o[Z]))}return{p,f:g}},wNAFCached(i,o,s,a){const u=i._WINDOW_SIZE||1;let p=o.get(i);return p||(p=this.precomputeWindow(i,u),u!==1&&o.set(i,a(p))),this.wNAF(u,p,s)}}}function sF(e){return qae(e.Fp),iw(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...rF(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function nce(e){const t=sF(e);iw(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a:i}=t;if(r){if(!n.eql(i,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof r!="object"||typeof r.beta!="bigint"||typeof r.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}const{bytesToNumberBE:ice,hexToBytes:oce}=Wae,mg={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){const{Err:t}=mg;if(e.length<2||e[0]!==2)throw new t("Invalid signature integer tag");const r=e[1],n=e.subarray(2,r+2);if(!r||n.length!==r)throw new t("Invalid signature integer: wrong length");if(n[0]&128)throw new t("Invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new t("Invalid signature integer: unnecessary leading zero");return{d:ice(n),l:e.subarray(r+2)}},toSig(e){const{Err:t}=mg,r=typeof e=="string"?oce(e):e;rw(r);let n=r.length;if(n<2||r[0]!=48)throw new t("Invalid signature tag");if(r[1]!==n-2)throw new t("Invalid signature: incorrect length");const{d:i,l:o}=mg._parseInt(r.subarray(2)),{d:s,l:a}=mg._parseInt(o);if(a.length)throw new t("Invalid signature: left bytes after parsing");return{r:i,s}},hexFromSig(e){const t=p=>Number.parseInt(p[0],16)&8?"00"+p:p,r=p=>{const g=p.toString(16);return g.length&1?`0${g}`:g},n=t(r(e.s)),i=t(r(e.r)),o=n.length/2,s=i.length/2,a=r(o),u=r(s);return`30${r(s+o+4)}02${u}${i}02${a}${n}`}},mh=BigInt(0),cl=BigInt(1);BigInt(2);const aF=BigInt(3);BigInt(4);function sce(e){const t=nce(e),{Fp:r}=t,n=t.toBytes||((I,N,O)=>{const V=N.toAffine();return nw(Uint8Array.from([4]),r.toBytes(V.x),r.toBytes(V.y))}),i=t.fromBytes||(I=>{const N=I.subarray(1),O=r.fromBytes(N.subarray(0,r.BYTES)),V=r.fromBytes(N.subarray(r.BYTES,2*r.BYTES));return{x:O,y:V}});function o(I){const{a:N,b:O}=t,V=r.sqr(I),Z=r.mul(V,I);return r.add(r.add(Z,r.mul(I,N)),O)}if(!r.eql(r.sqr(t.Gy),o(t.Gx)))throw new Error("bad generator point: equation left != right");function s(I){return typeof I=="bigint"&&mh<I&&I<t.n}function a(I){if(!s(I))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function u(I){const{allowedPrivateKeyLengths:N,nByteLength:O,wrapPrivateKey:V,n:Z}=t;if(N&&typeof I!="bigint"){if(hg(I)&&(I=Hm(I)),typeof I!="string"||!N.includes(I.length))throw new Error("Invalid key");I=I.padStart(O*2,"0")}let Q;try{Q=typeof I=="bigint"?I:pg(ef("private key",I,O))}catch{throw new Error(`private key must be ${O} bytes, hex or bigint, not ${typeof I}`)}return V&&(Q=Xc(Q,Z)),a(Q),Q}const p=new Map;function g(I){if(!(I instanceof y))throw new Error("ProjectivePoint expected")}class y{constructor(N,O,V){if(this.px=N,this.py=O,this.pz=V,N==null||!r.isValid(N))throw new Error("x required");if(O==null||!r.isValid(O))throw new Error("y required");if(V==null||!r.isValid(V))throw new Error("z required")}static fromAffine(N){const{x:O,y:V}=N||{};if(!N||!r.isValid(O)||!r.isValid(V))throw new Error("invalid affine point");if(N instanceof y)throw new Error("projective point not allowed");const Z=Q=>r.eql(Q,r.ZERO);return Z(O)&&Z(V)?y.ZERO:new y(O,V,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(N){const O=r.invertBatch(N.map(V=>V.pz));return N.map((V,Z)=>V.toAffine(O[Z])).map(y.fromAffine)}static fromHex(N){const O=y.fromAffine(i(ef("pointHex",N)));return O.assertValidity(),O}static fromPrivateKey(N){return y.BASE.multiply(u(N))}_setWindowSize(N){this._WINDOW_SIZE=N,p.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:N,y:O}=this.toAffine();if(!r.isValid(N)||!r.isValid(O))throw new Error("bad point: x or y not FE");const V=r.sqr(O),Z=o(N);if(!r.eql(V,Z))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:N}=this.toAffine();if(r.isOdd)return!r.isOdd(N);throw new Error("Field doesn't support isOdd")}equals(N){g(N);const{px:O,py:V,pz:Z}=this,{px:Q,py:K,pz:$}=N,oe=r.eql(r.mul(O,$),r.mul(Q,Z)),ae=r.eql(r.mul(V,$),r.mul(K,Z));return oe&&ae}negate(){return new y(this.px,r.neg(this.py),this.pz)}double(){const{a:N,b:O}=t,V=r.mul(O,aF),{px:Z,py:Q,pz:K}=this;let $=r.ZERO,oe=r.ZERO,ae=r.ZERO,ue=r.mul(Z,Z),Se=r.mul(Q,Q),Me=r.mul(K,K),ge=r.mul(Z,Q);return ge=r.add(ge,ge),ae=r.mul(Z,K),ae=r.add(ae,ae),$=r.mul(N,ae),oe=r.mul(V,Me),oe=r.add($,oe),$=r.sub(Se,oe),oe=r.add(Se,oe),oe=r.mul($,oe),$=r.mul(ge,$),ae=r.mul(V,ae),Me=r.mul(N,Me),ge=r.sub(ue,Me),ge=r.mul(N,ge),ge=r.add(ge,ae),ae=r.add(ue,ue),ue=r.add(ae,ue),ue=r.add(ue,Me),ue=r.mul(ue,ge),oe=r.add(oe,ue),Me=r.mul(Q,K),Me=r.add(Me,Me),ue=r.mul(Me,ge),$=r.sub($,ue),ae=r.mul(Me,Se),ae=r.add(ae,ae),ae=r.add(ae,ae),new y($,oe,ae)}add(N){g(N);const{px:O,py:V,pz:Z}=this,{px:Q,py:K,pz:$}=N;let oe=r.ZERO,ae=r.ZERO,ue=r.ZERO;const Se=t.a,Me=r.mul(t.b,aF);let ge=r.mul(O,Q),Pe=r.mul(V,K),He=r.mul(Z,$),$e=r.add(O,V),me=r.add(Q,K);$e=r.mul($e,me),me=r.add(ge,Pe),$e=r.sub($e,me),me=r.add(O,Z);let be=r.add(Q,$);return me=r.mul(me,be),be=r.add(ge,He),me=r.sub(me,be),be=r.add(V,Z),oe=r.add(K,$),be=r.mul(be,oe),oe=r.add(Pe,He),be=r.sub(be,oe),ue=r.mul(Se,me),oe=r.mul(Me,He),ue=r.add(oe,ue),oe=r.sub(Pe,ue),ue=r.add(Pe,ue),ae=r.mul(oe,ue),Pe=r.add(ge,ge),Pe=r.add(Pe,ge),He=r.mul(Se,He),me=r.mul(Me,me),Pe=r.add(Pe,He),He=r.sub(ge,He),He=r.mul(Se,He),me=r.add(me,He),ge=r.mul(Pe,me),ae=r.add(ae,ge),ge=r.mul(be,me),oe=r.mul($e,oe),oe=r.sub(oe,ge),ge=r.mul($e,Pe),ue=r.mul(be,ue),ue=r.add(ue,ge),new y(oe,ae,ue)}subtract(N){return this.add(N.negate())}is0(){return this.equals(y.ZERO)}wNAF(N){return M.wNAFCached(this,p,N,O=>{const V=r.invertBatch(O.map(Z=>Z.pz));return O.map((Z,Q)=>Z.toAffine(V[Q])).map(y.fromAffine)})}multiplyUnsafe(N){const O=y.ZERO;if(N===mh)return O;if(a(N),N===cl)return this;const{endo:V}=t;if(!V)return M.unsafeLadder(this,N);let{k1neg:Z,k1:Q,k2neg:K,k2:$}=V.splitScalar(N),oe=O,ae=O,ue=this;for(;Q>mh||$>mh;)Q&cl&&(oe=oe.add(ue)),$&cl&&(ae=ae.add(ue)),ue=ue.double(),Q>>=cl,$>>=cl;return Z&&(oe=oe.negate()),K&&(ae=ae.negate()),ae=new y(r.mul(ae.px,V.beta),ae.py,ae.pz),oe.add(ae)}multiply(N){a(N);let O=N,V,Z;const{endo:Q}=t;if(Q){const{k1neg:K,k1:$,k2neg:oe,k2:ae}=Q.splitScalar(O);let{p:ue,f:Se}=this.wNAF($),{p:Me,f:ge}=this.wNAF(ae);ue=M.constTimeNegate(K,ue),Me=M.constTimeNegate(oe,Me),Me=new y(r.mul(Me.px,Q.beta),Me.py,Me.pz),V=ue.add(Me),Z=Se.add(ge)}else{const{p:K,f:$}=this.wNAF(O);V=K,Z=$}return y.normalizeZ([V,Z])[0]}multiplyAndAddUnsafe(N,O,V){const Z=y.BASE,Q=($,oe)=>oe===mh||oe===cl||!$.equals(Z)?$.multiplyUnsafe(oe):$.multiply(oe),K=Q(this,O).add(Q(N,V));return K.is0()?void 0:K}toAffine(N){const{px:O,py:V,pz:Z}=this,Q=this.is0();N==null&&(N=Q?r.ONE:r.inv(Z));const K=r.mul(O,N),$=r.mul(V,N),oe=r.mul(Z,N);if(Q)return{x:r.ZERO,y:r.ZERO};if(!r.eql(oe,r.ONE))throw new Error("invZ was invalid");return{x:K,y:$}}isTorsionFree(){const{h:N,isTorsionFree:O}=t;if(N===cl)return!0;if(O)return O(y,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:N,clearCofactor:O}=t;return N===cl?this:O?O(y,this):this.multiplyUnsafe(t.h)}toRawBytes(N=!0){return this.assertValidity(),n(y,this,N)}toHex(N=!0){return Hm(this.toRawBytes(N))}}y.BASE=new y(t.Gx,t.Gy,r.ONE),y.ZERO=new y(r.ZERO,r.ONE,r.ZERO);const E=t.nBitLength,M=rce(y,t.endo?Math.ceil(E/2):E);return{CURVE:t,ProjectivePoint:y,normPrivateKeyToScalar:u,weierstrassEquation:o,isWithinCurveOrder:s}}function ace(e){const t=sF(e);return iw(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function cce(e){const t=ace(e),{Fp:r,n}=t,i=r.BYTES+1,o=2*r.BYTES+1;function s(me){return mh<me&&me<r.ORDER}function a(me){return Xc(me,n)}function u(me){return GC(me,n)}const{ProjectivePoint:p,normPrivateKeyToScalar:g,weierstrassEquation:y,isWithinCurveOrder:E}=sce({...t,toBytes(me,be,Qe){const Xe=be.toAffine(),rt=r.toBytes(Xe.x),bt=nw;return Qe?bt(Uint8Array.from([be.hasEvenY()?2:3]),rt):bt(Uint8Array.from([4]),rt,r.toBytes(Xe.y))},fromBytes(me){const be=me.length,Qe=me[0],Xe=me.subarray(1);if(be===i&&(Qe===2||Qe===3)){const rt=pg(Xe);if(!s(rt))throw new Error("Point is not on curve");const bt=y(rt);let It;try{It=r.sqrt(bt)}catch(Nt){const Tt=Nt instanceof Error?": "+Nt.message:"";throw new Error("Point is not on curve"+Tt)}const Bt=(It&cl)===cl;return(Qe&1)===1!==Bt&&(It=r.neg(It)),{x:rt,y:It}}else if(be===o&&Qe===4){const rt=r.fromBytes(Xe.subarray(0,r.BYTES)),bt=r.fromBytes(Xe.subarray(r.BYTES,2*r.BYTES));return{x:rt,y:bt}}else throw new Error(`Point of length ${be} was invalid. Expected ${i} compressed bytes or ${o} uncompressed bytes`)}}),M=me=>Hm(Wm(me,t.nByteLength));function I(me){const be=n>>cl;return me>be}function N(me){return I(me)?a(-me):me}const O=(me,be,Qe)=>pg(me.slice(be,Qe));class V{constructor(be,Qe,Xe){this.r=be,this.s=Qe,this.recovery=Xe,this.assertValidity()}static fromCompact(be){const Qe=t.nByteLength;return be=ef("compactSignature",be,Qe*2),new V(O(be,0,Qe),O(be,Qe,2*Qe))}static fromDER(be){const{r:Qe,s:Xe}=mg.toSig(ef("DER",be));return new V(Qe,Xe)}assertValidity(){if(!E(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!E(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(be){return new V(this.r,this.s,be)}recoverPublicKey(be){const{r:Qe,s:Xe,recovery:rt}=this,bt=ae(ef("msgHash",be));if(rt==null||![0,1,2,3].includes(rt))throw new Error("recovery id invalid");const It=rt===2||rt===3?Qe+t.n:Qe;if(It>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const Bt=rt&1?"03":"02",Nt=p.fromHex(Bt+M(It)),Tt=u(It),nt=a(-bt*Tt),yt=a(Xe*Tt),Ir=p.BASE.multiplyAndAddUnsafe(Nt,nt,yt);if(!Ir)throw new Error("point at infinify");return Ir.assertValidity(),Ir}hasHighS(){return I(this.s)}normalizeS(){return this.hasHighS()?new V(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return Gm(this.toDERHex())}toDERHex(){return mg.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Gm(this.toCompactHex())}toCompactHex(){return M(this.r)+M(this.s)}}const Z={isValidPrivateKey(me){try{return g(me),!0}catch{return!1}},normPrivateKeyToScalar:g,randomPrivateKey:()=>{const me=oF(t.n);return ece(t.randomBytes(me),t.n)},precompute(me=8,be=p.BASE){return be._setWindowSize(me),be.multiply(BigInt(3)),be}};function Q(me,be=!0){return p.fromPrivateKey(me).toRawBytes(be)}function K(me){const be=hg(me),Qe=typeof me=="string",Xe=(be||Qe)&&me.length;return be?Xe===i||Xe===o:Qe?Xe===2*i||Xe===2*o:me instanceof p}function $(me,be,Qe=!0){if(K(me))throw new Error("first arg must be private key");if(!K(be))throw new Error("second arg must be public key");return p.fromHex(be).multiply(g(me)).toRawBytes(Qe)}const oe=t.bits2int||function(me){const be=pg(me),Qe=me.length*8-t.nBitLength;return Qe>0?be>>BigInt(Qe):be},ae=t.bits2int_modN||function(me){return a(oe(me))},ue=JC(t.nBitLength);function Se(me){if(typeof me!="bigint")throw new Error("bigint expected");if(!(mh<=me&&me<ue))throw new Error(`bigint expected < 2^${t.nBitLength}`);return Wm(me,t.nByteLength)}function Me(me,be,Qe=ge){if(["recovered","canonical"].some(kr=>kr in Qe))throw new Error("sign() legacy options not supported");const{hash:Xe,randomBytes:rt}=t;let{lowS:bt,prehash:It,extraEntropy:Bt}=Qe;bt==null&&(bt=!0),me=ef("msgHash",me),It&&(me=ef("prehashed msgHash",Xe(me)));const Nt=ae(me),Tt=g(be),nt=[Se(Tt),Se(Nt)];if(Bt!=null&&Bt!==!1){const kr=Bt===!0?rt(r.BYTES):Bt;nt.push(ef("extraEntropy",kr))}const yt=nw(...nt),Ir=Nt;function mr(kr){const Fr=oe(kr);if(!E(Fr))return;const wn=u(Fr),_r=p.BASE.multiply(Fr).toAffine(),en=a(_r.x);if(en===mh)return;const $r=a(wn*a(Ir+en*Tt));if($r===mh)return;let fi=(_r.x===en?0:2)|Number(_r.y&cl),vi=$r;return bt&&I($r)&&(vi=N($r),fi^=1),new V(en,vi,fi)}return{seed:yt,k2sig:mr}}const ge={lowS:t.lowS,prehash:!1},Pe={lowS:t.lowS,prehash:!1};function He(me,be,Qe=ge){const{seed:Xe,k2sig:rt}=Me(me,be,Qe),bt=t;return $V(bt.hash.outputLen,bt.nByteLength,bt.hmac)(Xe,rt)}p.BASE._setWindowSize(8);function $e(me,be,Qe,Xe=Pe){var rt;const bt=me;if(be=ef("msgHash",be),Qe=ef("publicKey",Qe),"strict"in Xe)throw new Error("options.strict was renamed to lowS");const{lowS:It,prehash:Bt}=Xe;let Nt,Tt;try{if(typeof bt=="string"||hg(bt))try{Nt=V.fromDER(bt)}catch(_r){if(!(_r instanceof mg.Err))throw _r;Nt=V.fromCompact(bt)}else if(typeof bt=="object"&&typeof bt.r=="bigint"&&typeof bt.s=="bigint"){const{r:_r,s:en}=bt;Nt=new V(_r,en)}else throw new Error("PARSE");Tt=p.fromHex(Qe)}catch(_r){if(_r.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(It&&Nt.hasHighS())return!1;Bt&&(be=t.hash(be));const{r:nt,s:yt}=Nt,Ir=ae(be),mr=u(yt),kr=a(Ir*mr),Fr=a(nt*mr),wn=(rt=p.BASE.multiplyAndAddUnsafe(Tt,kr,Fr))==null?void 0:rt.toAffine();return wn?a(wn.x)===nt:!1}return{CURVE:t,getPublicKey:Q,getSharedSecret:$,sign:He,verify:$e,ProjectivePoint:p,Signature:V,utils:Z}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function uce(e){return{hash:e,hmac:(t,...r)=>HV(e,t,Hoe(...r)),randomBytes:Qoe}}function cF(e,t){const r=n=>cce({...e,...uce(n)});return Object.freeze({...r(t),create:r})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const uF=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),lF=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),lce=BigInt(1),QC=BigInt(2),fF=(e,t)=>(e+t/QC)/t;function fce(e){const t=uF,r=BigInt(3),n=BigInt(6),i=BigInt(11),o=BigInt(22),s=BigInt(23),a=BigInt(44),u=BigInt(88),p=e*e*e%t,g=p*p*e%t,y=al(g,r,t)*g%t,E=al(y,r,t)*g%t,M=al(E,QC,t)*p%t,I=al(M,i,t)*M%t,N=al(I,o,t)*I%t,O=al(N,a,t)*N%t,V=al(O,u,t)*O%t,Z=al(V,a,t)*N%t,Q=al(Z,r,t)*g%t,K=al(Q,s,t)*I%t,$=al(K,n,t)*p%t,oe=al($,QC,t);if(!ZC.eql(ZC.sqr(oe),e))throw new Error("Cannot find square root");return oe}const ZC=nF(uF,void 0,void 0,{sqrt:fce}),KC=cF({a:BigInt(0),b:BigInt(7),Fp:ZC,n:lF,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=lF,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-lce*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,s=BigInt("0x100000000000000000000000000000000"),a=fF(o*e,t),u=fF(-n*e,t);let p=Xc(e-a*r-u*i,t),g=Xc(-a*n-u*o,t);const y=p>s,E=g>s;if(y&&(p=t-p),E&&(g=t-g),p>s||g>s)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:y,k1:p,k2neg:E,k2:g}}}},F3);BigInt(0),KC.ProjectivePoint;const YC=33;let dF=class extends $2{constructor(t){if(super(),typeof t=="string"?this.data=Su(t):t instanceof Uint8Array?this.data=t:this.data=Uint8Array.from(t),this.data.length!==YC)throw new Error(`Invalid public key input. Expected ${YC} bytes, got ${this.data.length}`)}equals(t){return super.equals(t)}toRawBytes(){return this.data}flag(){return ph.Secp256k1}async verify(t,r){let n;if(typeof r=="string"){const i=Jm(r);if(i.signatureScheme!=="Secp256k1")throw new Error("Invalid signature scheme");if(!Vm(this.toRawBytes(),i.publicKey))throw new Error("Signature does not match public key");n=i.signature}else n=r;return KC.verify(KC.Signature.fromCompact(n),F3(t),this.toRawBytes())}};dF.SIZE=YC;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const hF=nF(BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff")),dce=hF.create(BigInt("-3")),hce=BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b"),pce=cF({a:dce,b:hce,Fp:hF,n:BigInt("0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551"),Gx:BigInt("0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296"),Gy:BigInt("0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"),h:BigInt(1),lowS:!1},F3),pF=pce,XC=33;let gF=class extends $2{constructor(t){if(super(),typeof t=="string"?this.data=Su(t):t instanceof Uint8Array?this.data=t:this.data=Uint8Array.from(t),this.data.length!==XC)throw new Error(`Invalid public key input. Expected ${XC} bytes, got ${this.data.length}`)}equals(t){return super.equals(t)}toRawBytes(){return this.data}flag(){return ph.Secp256r1}async verify(t,r){let n;if(typeof r=="string"){const i=Jm(r);if(i.signatureScheme!=="Secp256r1")throw new Error("Invalid signature scheme");if(!Vm(this.toRawBytes(),i.publicKey))throw new Error("Signature does not match public key");n=i.signature}else n=r;return pF.verify(pF.Signature.fromCompact(n),F3(t),this.toRawBytes())}};gF.SIZE=XC;var mF=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},ow=(e,t,r)=>(mF(e,t,"read from private field"),r?r.call(e):t.get(e)),vF=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},yF=(e,t,r,n)=>(mF(e,t,"write to private field"),t.set(e,r),r),Qm,sw;let gce=class extends xae{constructor(t,r=[]){var n;super(),vF(this,Qm,void 0),vF(this,sw,void 0),yF(this,Qm,t),yF(this,sw,r);let i=new Set,o=0;const s=t.getPublicKeys().map(({weight:a,publicKey:u})=>({weight:a,address:u.toSuiAddress()}));for(let a of r){const u=a.toSuiAddress();if(i.has(u))throw new Error("Can't create MultiSigSigner with duplicate signers");i.add(u);const p=(n=s.find(g=>g.address===u))==null?void 0:n.weight;if(!p)throw new Error(`Signer ${u} is not part of the MultiSig public key`);o+=p}if(o<t.getThreshold())throw new Error("Combined weight of signers is less than threshold")}getKeyScheme(){return"MultiSig"}getPublicKey(){return ow(this,Qm)}sign(t){throw new Error("MultiSigSigner does not support signing directly. Use signTransaction or signPersonalMessage instead")}signData(t){throw new Error("MultiSigSigner does not support signing directly. Use signTransaction or signPersonalMessage instead")}async signTransaction(t){return{signature:ow(this,Qm).combinePartialSignatures(await Promise.all(ow(this,sw).map(async r=>(await r.signTransaction(t)).signature))),bytes:js(t)}}async signPersonalMessage(t){return{signature:ow(this,Qm).combinePartialSignatures(await Promise.all(ow(this,sw).map(async r=>(await r.signPersonalMessage(t)).signature))),bytes:js(t)}}};Qm=new WeakMap,sw=new WeakMap;const aw=10,wF=1;let AF=class dQ extends $2{constructor(t,r={}){if(super(),typeof t=="string"?(this.rawBytes=Su(t),this.multisigPublicKey=Cu.MultiSigPublicKey.parse(this.rawBytes)):t instanceof Uint8Array?(this.rawBytes=t,this.multisigPublicKey=Cu.MultiSigPublicKey.parse(this.rawBytes)):(this.multisigPublicKey=t,this.rawBytes=Cu.MultiSigPublicKey.serialize(t).toBytes()),this.multisigPublicKey.threshold<1)throw new Error("Invalid threshold");const n=new Set;this.publicKeys=this.multisigPublicKey.pk_map.map(({pubKey:o,weight:s})=>{const[a,u]=Object.entries(o).filter(([g])=>g!=="$kind")[0],p=Uint8Array.from(u).toString();if(n.has(p))throw new Error("Multisig does not support duplicate public keys");if(n.add(p),s<1)throw new Error("Invalid weight");return{publicKey:qC(a,Uint8Array.from(u),r),weight:s}});const i=this.publicKeys.reduce((o,{weight:s})=>o+s,0);if(this.multisigPublicKey.threshold>i)throw new Error("Unreachable threshold");if(this.publicKeys.length>aw)throw new Error(`Max number of signers in a multisig is ${aw}`);if(this.publicKeys.length<wF)throw new Error(`Min number of signers in a multisig is ${wF}`)}static fromPublicKeys({threshold:t,publicKeys:r}){return new dQ({pk_map:r.map(({publicKey:n,weight:i})=>({pubKey:{[CV[n.flag()]]:Array.from(n.toRawBytes())},weight:i})),threshold:t})}equals(t){return super.equals(t)}toRawBytes(){return this.rawBytes}getPublicKeys(){return this.publicKeys}getThreshold(){return this.multisigPublicKey.threshold}getSigner(...t){return new gce(this,t)}toSuiAddress(){const t=1+65*aw+2,r=new Uint8Array(t);r.set([ph.MultiSig]),r.set(Cu.u16().serialize(this.multisigPublicKey.threshold).toBytes(),1);let n=3;for(const{publicKey:i,weight:o}of this.publicKeys){const s=i.toSuiBytes();r.set(s,n),n+=s.length,r.set([o],n++)}return Iu(yV(k3(r.slice(0,n),{dkLen:32})))}flag(){return ph.MultiSig}async verify(t,r){const n=Jm(r);if(n.signatureScheme!=="MultiSig")throw new Error("Invalid signature scheme");const{multisig:i}=n;let o=0;if(!Vm(Cu.MultiSigPublicKey.serialize(this.multisigPublicKey).toBytes(),Cu.MultiSigPublicKey.serialize(i.multisig_pk).toBytes()))return!1;for(const{publicKey:s,weight:a,signature:u}of mce(i)){if(!await s.verify(t,u))return!1;o+=a}return o>=this.multisigPublicKey.threshold}combinePartialSignatures(t){var r,n;if(t.length>aw)throw new Error(`Max number of signatures in a multisig is ${aw}`);let i=0;const o=new Array(t.length);for(let p=0;p<t.length;p++){let g=Jm(t[p]);if(g.signatureScheme==="MultiSig")throw new Error("MultiSig is not supported inside MultiSig");let y;g.signatureScheme==="ZkLogin"?y=jV((r=g.zkLogin)==null?void 0:r.addressSeed,(n=g.zkLogin)==null?void 0:n.iss).toRawBytes():y=g.publicKey,o[p]={[g.signatureScheme]:Array.from(g.signature.map(M=>Number(M)))};let E;for(let M=0;M<this.publicKeys.length;M++)if(Vm(y,this.publicKeys[M].publicKey.toRawBytes())){if(i&1<<M)throw new Error("Received multiple signatures from the same public key");E=M;break}if(E===void 0)throw new Error("Received signature from unknown public key");i|=1<<E}let s={sigs:o,bitmap:i,multisig_pk:this.multisigPublicKey};const a=Cu.MultiSig.serialize(s,{maxSize:8192}).toBytes();let u=new Uint8Array(a.length+1);return u.set([ph.MultiSig]),u.set(a,1),js(u)}};function mce(e,t={}){let r=new Array(e.sigs.length);for(let n=0;n<e.sigs.length;n++){const[i,o]=Object.entries(e.sigs[n]).filter(([g])=>g!=="$kind")[0],s=vce(e.bitmap).at(n),a=e.multisig_pk.pk_map[s],u=Uint8Array.from(Object.values(a.pubKey)[0]);if(i==="MultiSig")throw new Error("MultiSig is not supported inside MultiSig");const p=qC(i,u,t);r[n]={signatureScheme:i,signature:Uint8Array.from(o),publicKey:p,weight:a.weight}}return r}function vce(e){if(e<0||e>1024)throw new Error("Invalid bitmap");let t=[];for(let r=0;r<10;r++)e&1<<r&&t.push(r);return Uint8Array.from(t)}async function yce(e,t,r={}){const n=bF(t,r);if(!await n.publicKey.verifyPersonalMessage(e,n.serializedSignature))throw new Error("Signature is not valid for the provided message");return n.publicKey}async function wce(e,t){const r=bF(t);if(!await r.publicKey.verifyTransaction(e,r.serializedSignature))throw new Error("Signature is not valid for the provided Transaction");return r.publicKey}function bF(e,t={}){const r=Jm(e);if(r.signatureScheme==="MultiSig")return{...r,publicKey:new AF(r.multisig.multisig_pk)};const n=qC(r.signatureScheme,r.publicKey,t);return{...r,publicKey:n}}function qC(e,t,r={}){switch(e){case"ED25519":return new KV(t);case"Secp256k1":return new dF(t);case"Secp256r1":return new gF(t);case"MultiSig":return new AF(t);case"ZkLogin":return new FV(t,r);default:throw new Error(`Unsupported signature scheme ${e}`)}}async function Ace({txb:e,client:t,sdk:r}){const n=await e.build({client:t}),{signature:i}=await kV(r,{method:bV.SIGN_TRANSACTION,param:CC.Buffer.from(n).toString("base64")});return await wce(n,i),{signature:i,transactionBlock:n}}async function bce({message:e,sdk:t}){const r=await kV(t,{method:bV.SIGN_PERSONAL_MESSAGE,param:CC.Buffer.from(e).toString("base64")});return await yce(new TextEncoder().encode(e),r.signature),r}let EF=class{constructor({suiNetwork:t=ed.MAINNET,extensions:r}){ku(this,"name","sui"),ku(this,"zkLogin"),ku(this,"sdk"),ku(this,"client"),ku(this,"gqlClient"),ku(this,"suiAddress"),ku(this,"currentSuiNetwork"),ku(this,"extensions",[]),ku(this,"_isZkActive",!1),ku(this,"_signSuiBlockData"),ku(this,"_signSuiPersonalMessage"),ku(this,"_getSuiAddress"),this.switchNetwork(t);for(const n of r||[])Object.assign(this,{[n.name]:n}),this.extensions.push(n.name)}async _initialize(t){var r;this.sdk=t;for(const n of this.extensions)await((r=this[n])==null?void 0:r._initialize(this.sdk)),this[n].name==="zkLogin"&&this.sdk.env===_2.PROD&&(this._isZkActive=!0);if(this.sdk.on(kse.LOGOUT,()=>{this.suiAddress=void 0}),this._isZkActive&&t.env===_2.PROD){this._signSuiBlockData=t.sui.zkLogin.signTransactionBlock.bind(this.sdk.sui.zkLogin),this._signSuiPersonalMessage=t.sui.zkLogin.signPersonalMessage.bind(this.sdk.sui.zkLogin),this._getSuiAddress=t.sui.zkLogin.getAddress.bind(this.sdk.sui.zkLogin);return}this._signSuiBlockData=async n=>await Ace({txb:n,client:this.client,sdk:this.sdk}),this._signSuiPersonalMessage=async n=>await bce({message:n,sdk:this.sdk}),this._getSuiAddress=async()=>await Sse(this.sdk)}_assureLogin(){const t=this.sdk.getAccessToken();if(!t)throw new Error("User is not logged in");return t}switchNetwork(t){if(this._isZkActive)throw new Error("SUI ZK Login is active, cannot switch network");if(this.client&&this.currentSuiNetwork===t)throw new Error(`Already on sui ${t}`);return this.client=new Ase({url:bse[t]}),this.gqlClient=new RV({url:Ese[t]}),this.currentSuiNetwork=t,this.suiAddress=void 0,{client:this.getSuiClient(),network:this.getNetworkName()}}getSuiGqlClient(){return this.gqlClient}getSuiClient(){return this.client}getNetworkName(){return this.currentSuiNetwork}async getAddress(){if(this._assureLogin(),!this.suiAddress){const{address:t}=await this._getSuiAddress();this.suiAddress=t}return this.suiAddress}async signPersonalMessage(t){return this._assureLogin(),this._signSuiPersonalMessage(t)}async signTransactionBlock(t){this._assureLogin(),t.setSenderIfNotSet(await this.getAddress());const{signature:r,transactionBlock:n}=await this._signSuiBlockData(t);return{signature:r,transactionBlock:n}}async signAndExecuteTransactionBlock(t){const r=await this.signTransactionBlock(t);return await this.client.executeTransactionBlock(r)}};ku(EF,"SUI_NETWORK",ed);const Ece={testnet:{credenza:{apiUrl:"https://api.testnets.credenza.online",generalWssUrl:"wss://general-staging-staging.up.railway.app",evmWssUrl:"wss://evm-staging-staging.up.railway.app",gitbookUrl:"https://developer.credenza3.com/credenza-sdk-v3.0/",evmApiUrl:"https://evm.staging.credenza3.com",suiApiUrl:"https://sui.staging.credenza3.com",generalApiUrl:"https://api.staging.credenza3.com",accountsApiUrl:"https://accounts.staging.credenza3.com"},stripe:{pk:{DEFAULT:"pk_test_51LJ0nZHfOaPNdSbZUzB3H4D44JoFD0AIfYv4QLSSSxrBs8ch4A5UlpJOXF4OG0fkgppBD2jOrDTCNaGzevnxdH2200rI1wY1cC",OH:"pk_test_51Q88NV09wu09MZ3mFHuhO3j7F0GJqUsFxfOojSXyEmBWyn1XNsSqYpt3qTzlOQCqoWPrZXR4XrQUiS5mnwwkctyT00x50hXVty"}}},mainnet:{credenza:{accountsApiUrl:"https://accounts.credenza3.com",apiUrl:"https://api.credenza.online",generalApiUrl:"https://api.credenza3.com",gitbookUrl:"https://developer.credenza3.com/credenza-sdk-v3.0/",evmApiUrl:"https://evm.credenza3.com",suiApiUrl:"https://sui.credenza3.com",generalWssUrl:"wss://general-prod-prod.up.railway.app",evmWssUrl:"wss://evm-prod-prod.up.railway.app"},stripe:{pk:{DEFAULT:"pk_live_51LJ0nZHfOaPNdSbZpj7gaAUfmbfWylFaORiGxRxyVn8efm1hMTP6Cz2ihL1AhEcUu9AyqTKsUblMQL5m0YU6HTg3001izgq3Fj",OH:"pk_live_51Q88NV09wu09MZ3mt4QLre8zWqEcNDrpBEnnoiJaEA1v5MI3XBEX3iIn83OILmbCr7QrQtB9GIcM1hxmkPfBHRmH00azqgbOQj"}}}};async function kce(e={}){var t;try{if(!Object.keys(e).length)return;const r=[];e.name&&r.push(vo.account.updateProfile({name:e.name})),e.email&&r.push(vo.account.changeEmail(e.email)),e.phone&&r.push(vo.account.changePhone(e.phone));const n=await Promise.all(r);for(const o of n)if((t=o.errors)!=null&&t.length)throw new Error(o.errors[0].error);const i=await z3();return xc.set(i),Qi(pi.UPDATE_PROFILE,i),i}catch(r){throw Qi(pi.ERROR,{error:r}),r}}async function Sce(e){try{const t=[];e.phoneCode&&t.push(vo.account.verifyCode(e.phoneCode)),e.emailCode&&t.push(vo.account.verifyCode(e.emailCode)),await Promise.all(t);const r=await z3();return xc.set(r),Qi(pi.ACCOUNT_CONFIRMED,{...r!=null&&r.name?{name:r.name}:{},...r!=null&&r.email?{email:r.email}:{},...r!=null&&r.phone?{phone:r.phone}:{}}),r}catch(t){throw Qi(pi.ERROR,{error:t}),t}}const Ice=async()=>(await vo.account.pendingVerificationContacts()).reduce((t,r)=>(r.phone&&(t.phone=r.phone),r.email&&(t.email=r.email),t),{}),z3=async()=>({...await vo.account.info(),pending:{...await Ice()}}),Cce=async()=>{try{dm.set(!0);const e=xr(Oi),t=await Fs(),r=vo.getAccessToken();Wl.set(r);const n=await z3();xc.set(n),qu.set(!0),dm.set(!1),dc.identify(n.sub),dc.people.set({$email:n.email,$phone:n.phone,$name:n.name,suiNetwork:e.suiNetwork,address:t,location:window.location.href}),dc.track("cp_init",{$email:n.email,$phone:n.phone,suiNetwork:e.suiNetwork,clientId:e.clientId,address:t,location:window.location.href})}catch(e){localStorage.removeItem(eb.ACCESS_TOKEN),qu.set(!1),dm.set(!1),xc.set(null),Wl.set(null),console.error("Cannot init credenza user",e)}},kF=async e=>{if(!xr(Wl))throw new Error("Passport access token doesn't exist.");const r=xr(Oi),n=await fetch(`${r.credenza.suiApiUrl}/accounts/${e}/assigned-address`,{method:"get",headers:{"Content-Type":"application/json",Authorization:`Bearer ${xr(Wl)}`}}),i=await n.json();if(!n.ok)throw new Error(i.error);return i},Bce={[ac.DEVNET]:"0xd286ee42d5d11f0fdc4a872c6669b95d565fbcbd38cbfbc422998970bad2fe10",[ac.TESTNET]:"0xba2fd0bf21cbd67224c1666019f2a33114edf9d7e29264be4cc179bb57323faa",[ac.MAINNET]:"0xe64d96c0cbe4c37add416ae07fd6494722210c247bc2a4ba2e91542dc599c9fb"},Tce={[ac.DEVNET]:"0xd286ee42d5d11f0fdc4a872c6669b95d565fbcbd38cbfbc422998970bad2fe10",[ac.TESTNET]:"0x2337ee16db47843d4bbf489cc9c2f155832fec5928ec1c21052e604184fbdeb2",[ac.MAINNET]:"0x95a6d3b0ee9cb477dfd4ebec796094516ba28e325560609c0dd8c5076d2eae56"},vg=e=>{switch(e){case"6756b6f8c7d313c0d6ca03f0":case"65a510cd9415d41b1aa933dc":return{currencySymbol:"GH₵",name:"OH",minStoredValueToPurchase:10,maxStoredValueToPurchase:5e3};default:return{currencySymbol:"$",name:"DEFAULT",minStoredValueToPurchase:0,maxStoredValueToPurchase:100}}},xce=async(e,t)=>{const r=await fetch(`${e}/clients/${t}/public`,{method:"get",headers:{"Content-Type":"application/json"}}),n=await r.json();if(!r.ok)throw new Error(n.error);return n.ui_settings=Object.assign({stored_value_alias:"stored value",cred_alias:"CRED"},n.ui_settings),n};async function Mce(e){this.networkType=e.suiNetwork===ac.MAINNET?Rd.MAINNET:Rd.TESTNET,this.config={...Vie(Ece[this.networkType],e.config||{}),suiNetwork:e.suiNetwork,clientId:e.clientId,networkType:this.networkType},this.suiNetwork=this.config.suiNetwork,this.suiPackage=this.config.storedValuePackageId||Bce[this.config.suiNetwork],ME.set(this.suiPackage),Oi.set(this.config)}async function Uce(){try{const{suiNetwork:e,auth:t,clientId:r,credenza:n}=this.config,i=await xce(n.accountsApiUrl,r);hm.set(i);const o=[];if((t==null?void 0:t.zk)===!0){const{ZkLoginExtension:u}=await Promise.resolve().then(()=>l1e);o.push(new u)}const s=[new EF({suiNetwork:e,extensions:o})],a=Lte(r,s,this.networkType);if(vo.on(pi.LOGIN,async()=>{await Oce(a)}),await a,!vo.getAccessToken())return;await oC(vo.getAccessToken()),await Cce()}catch{}Qi(pi.INIT),xr(qu)&&this.close()}const Oce=async e=>{await e;const t=await vo.account.info();await oC(vo.getAccessToken());const{suiNetwork:r,clientId:n}=xr(Oi);dc.track("cp_login",{$email:t.email,$phone:t.phone,suiNetwork:r,clientId:n,address:await vo.sui.getAddress(),location:window.location.href}),Qi(pi.LOGIN,{user:t})};async function Nce({amount:e,coinType:t=Xf(),suiNetwork:r}){try{const{clientId:n,suiNetwork:i}=xr(Oi);if(r!==i)throw Qi(pi.ERROR,{error:{message:"Sui network of airdrop does not match current network",title:"Air drop failed"}}),new Error("Sui network of airdrop does not match current network");const o=Tce[i],s=await uh(o,i),[a]=await s.CredenzaAirdrop.getCreatedConfigs(),u=await s.CredenzaAirdrop.requestCoin(a,e*j2);Qi(pi.REQUEST_AIRDROP,u),Qi(pi.RECHECK_BALANCE),dc.track("cp_airdrop_coin",{suiNetwork:i,clientId:n,coinType:t,to:await Fs(),amount:e})}catch(n){throw Qi(pi.ERROR,{error:{message:n.statusText,title:"Air drop failed",code:n.status}}),n}}async function Rce({amount:e,packageId:t,configId:r,assetId:n,suiNetwork:i}){try{const{clientId:o,suiNetwork:s}=xr(Oi);if(i!==s)throw Qi(pi.ERROR,{error:{message:"Sui network of airdrop does not match current network",title:"Air drop failed"}}),new Error("Sui network of airdrop does not match current network");const u=await(await uh(t,s)).CredenzaAirdrop.requestAsset(r,+n,e);Qi(pi.REQUEST_AIRDROP,u),Qi(pi.RECHECK_BALANCE),dc.track("cp_airdrop_asset",{suiNetwork:s,clientId:o,packageId:t,assetId:n,configId:r,to:await Fs(),amount:e})}catch(o){throw Qi(pi.ERROR,{error:{message:o.statusText,title:"Air drop failed",code:o.status}}),o}}const Dce=async({apiUrl:e,eventId:t,contractAddress:r,chainType:n,evmChainId:i})=>{const o=await fetch(`${e}/promo/loyalty/request-points`,{method:"post",body:JSON.stringify({event_id:t,contract_address:r,chain_type:n}),headers:{"Content-Type":"application/json",Authorization:`Bearer ${xr(Wl)}`}}),s=await o.json();if(!o.ok)throw new Error(`Points request failed. ${s.message}`);return s};async function Lce(e,t){try{const{suiNetwork:r,clientId:n,credenza:i}=xr(Oi);await Dce({eventId:e,contractAddress:t,chainType:"sui",apiUrl:i.generalApiUrl});const o={suiNetwork:r,clientId:n,packageId:t,eventId:e,from:await Fs()};Qi(pi.REQUEST_LOYALTY_POINTS,o),dc.track("cp_request_loyalty",o)}catch(r){throw Qi(pi.ERROR,{error:{message:r.statusText,title:"Request loyalty points failed",code:r.status}}),r}}const af=class af{constructor(t){if(this.accessToken=null,this.isLoggedIn=!1,this.user=null,this.login=Nie,this.jwtlogin=Rie,this.logout=Die,this.openUI=fte,this.close=lte,this.toastAlert=GD,this.destroy=ute,this.hideNavigation=dte,this.showNavigation=hte,this.configurePassport=Mce,this.init=Uce,this.checkMembership=Cie,this.sendTokens=TP,this.getAddress=Fs,this.sendNft=Bie,this.switchChain=Iie,this.getBalance=J2,this.getSuiClient=Oie,this.getUserCollectionAssetsWithBalances=Tie,this.requestAirDropCoin=Nce,this.requestAirDropAsset=Rce,this.updateProfile=kce,this.confirmAccount=Sce,this.getUser=z3,this.requestLoyaltyPoints=Lce,this.on=f8,this.once=l8,this.destroy(),t!=null&&t.suiNetwork&&!Object.values(ac).includes(t==null?void 0:t.suiNetwork))throw new Error('Unsupported Sui network. Check "Passport.suiNetworks" for available networks.');this.configurePassport(t),ga.set({openUI:this.openUI,close:this.close,toastAlert:(r,n,i)=>{if(this.networkType!==Rd.MAINNET)return this.toastAlert(r,n,i)},logout:this.logout,login:this.login.bind(this),updateProfile:this.updateProfile,confirmAccount:this.confirmAccount,getCREDContract:Xf,getBalance:this.getBalance,checkMembership:this.checkMembership,sendTokens:this.sendTokens,requestLoyaltyPoints:this.requestLoyaltyPoints}),qI.set({requestAirDropAsset:this.requestAirDropAsset,requestAirDropCoin:this.requestAirDropCoin}),xc.subscribe(r=>this.user=r),qu.subscribe(r=>{this.isLoggedIn=r||!1}),Wl.subscribe(r=>this.accessToken=r),kP.subscribe(r=>{r&&typeof window<"u"&&this.openUI()}),Q_(this.networkType)}};af.version=Ha.version,af.suiNetworks=ac,af.pages=Lr,af.paymentTypes=oS,af.themes=Mf,af.navDirections=D0,af.navMinimizationTogglerPositions=Dd,af.scanTypes=Ld,af.events=pi;let H3=af;typeof window<"u"&&(window.CredenzaPassport=H3);const Pce="5";typeof window<"u"&&((vH=window.__svelte??(window.__svelte={})).v??(vH.v=new Set)).add(Pce),p$();var Vce=Vt("<div></div>");const Fce={hash:"svelte-wttqlc",code:".brand-credenza.svelte-wttqlc {top:8px;left:-1px;}.brand-nhl.svelte-wttqlc {top:2px;}.brand-mlb.full.svelte-wttqlc {top:initial;bottom:8px;left:7px;}"};function SF(e,t){if(new.target)return hn({component:SF,...e});sn(t,!1),Sp(e,Fce);const[r,n]=gc(),i=()=>To(qu,"$isLoggedInStore",r);let o=$t(t,"brandName",12);var s=Vce();let a;Er(p=>a=ea(s,1,`crtw-w-1.5 crtw-h-1.5 crtw-rounded-[3px] crtw-absolute crtw-left-0 crtw-top-[8px] brand-${o()}`,"svelte-wttqlc",a,p),[()=>({"crtw-bg-green-500":i(),"crtw-bg-red-500":!i()})],ln),Ze(e,s);var u=an({get brandName(){return o()},set brandName(p){o(p),_t()},$set:dn,$on:(p,g)=>fn(t,p,g)});return n(),u}var jce=Vt("<span><!></span>"),Jce=Vt("<div><!></div> <!>",1),zce=Vt('<div role="button"><!> <div class="crtw-flex crtw-items-center crtw-relative crtw-h-full crtw-mx-1.5"><!> <!></div> <!></div>');function yg(e,t){if(new.target)return hn({component:yg,...e});sn(t,!1);const[r,n]=gc(),i=()=>To(qu,"$isLoggedInStore",r),o=qt();let s=$t(t,"options",12),{title:a,onClick:u,isDisabled:p,theme:g,isMain:y}=s();xn(()=>ir(s()),()=>{ct(o,s().isMinimized)}),ns(),li();var E=zce();let M;mi(E,"tabindex",0);var I=pt(E);{var N=ae=>{var ue=jce();let Se;var Me=pt(ue);{var ge=He=>{var $e=$n(),me=Tr($e);Hl(me,t,"default",{}),Ze(He,$e)},Pe=He=>{var $e=gs();Er(()=>Sn($e,a)),Ze(He,$e)};ur(Me,He=>{y?He(ge):He(Pe,!1)})}dt(ue),Er(He=>Se=ea(ue,1,`crtw-flex crtw-items-center crtw-justify-center crtw-invisible crtw-bg-white crtw-text-black crtw-text-center crtw-absolute crtw-z-10
884
+ `);async function JV({address:e,bytes:t,signature:r,intentScope:n,client:i=new RV({url:"https://sui-mainnet.mystenlabs.com/graphql"})}){var o,s;const a=await i.query({query:yae,variables:{bytes:t,signature:r,intentScope:n,author:e}});return((o=a.data)==null?void 0:o.verifyZkloginSignature.success)===!0&&((s=a.data)==null?void 0:s.verifyZkloginSignature.errors.length)===0}function DC(e){const t=typeof e=="string"?Su(e):e;if(t[0]!==ph.ZkLogin)throw new Error("Invalid signature scheme");const r=t.slice(1),{inputs:n,maxEpoch:i,userSignature:o}=mae(r),{issBase64Details:s,addressSeed:a}=n,u=pae(s,"iss"),p=jV(BigInt(a),u);return{serializedSignature:js(t),signatureScheme:"ZkLogin",zkLogin:{inputs:n,maxEpoch:i,userSignature:o,iss:u,addressSeed:BigInt(a)},signature:t,publicKey:p.toRawBytes()}}function wae({signature:e,signatureScheme:t,publicKey:r}){if(!r)throw new Error("`publicKey` is required");const n=r.toRawBytes(),i=new Uint8Array(1+e.length+n.length);return i.set([ph[t]]),i.set(e,1),i.set(n,1+e.length),js(i)}function Jm(e){const t=Su(e),r=CV[t[0]];switch(r){case"MultiSig":const n=Cu.MultiSig.parse(t.slice(1));return{serializedSignature:e,signatureScheme:r,multisig:n,bytes:t};case"ZkLogin":return DC(e);case"ED25519":case"Secp256k1":case"Secp256r1":const i=Nse[r],o=t.slice(1,t.length-i),s=t.slice(1+o.length);return{serializedSignature:e,signatureScheme:r,signature:o,publicKey:s,bytes:t};default:throw new Error("Unsupported signature scheme")}}let zV=class extends kC{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,Foe(t);const n=Vp(r);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,o=new Uint8Array(i);o.set(n.length>i?t.create().update(n).digest():n);for(let s=0;s<o.length;s++)o[s]^=54;this.iHash.update(o),this.oHash=t.create();for(let s=0;s<o.length;s++)o[s]^=106;this.oHash.update(o),o.fill(0)}update(t){return Dm(this),this.iHash.update(t),this}digestInto(t){Dm(this),q2(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:r,iHash:n,finished:i,destroyed:o,blockLen:s,outputLen:a}=this;return t=t,t.finished=i,t.destroyed=o,t.blockLen=s,t.outputLen=a,t.oHash=r._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}};const HV=(e,t,r)=>new zV(e,t).update(r).digest();HV.create=(e,t)=>new zV(e,t);function Aae(e,t,r,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,n);const i=BigInt(32),o=BigInt(4294967295),s=Number(r>>i&o),a=Number(r&o),u=n?4:0,p=n?0:4;e.setUint32(t+u,s,n),e.setUint32(t+p,a,n)}const bae=(e,t,r)=>e&t^~e&r,Eae=(e,t,r)=>e&t^e&r^t&r;let kae=class extends kC{constructor(t,r,n,i){super(),this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=EC(this.buffer)}update(t){Dm(this);const{view:r,buffer:n,blockLen:i}=this;t=Vp(t);const o=t.length;for(let s=0;s<o;){const a=Math.min(i-this.pos,o-s);if(a===i){const u=EC(t);for(;i<=o-s;s+=i)this.process(u,s);continue}n.set(t.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===i&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Dm(this),mV(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:i,isLE:o}=this;let{pos:s}=this;r[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>i-s&&(this.process(n,0),s=0);for(let y=s;y<i;y++)r[y]=0;Aae(n,i-8,BigInt(this.length*8),o),this.process(n,0);const a=EC(t),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const p=u/4,g=this.get();if(p>g.length)throw new Error("_sha2: outputLen bigger than state");for(let y=0;y<p;y++)a.setUint32(4*y,g[y],o)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:n,length:i,finished:o,destroyed:s,pos:a}=this;return t.length=i,t.pos=a,t.finished=o,t.destroyed=s,i%r&&t.buffer.set(n),t}};const Sae=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]),zp=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Hp=new Uint32Array(64);let Iae=class extends kae{constructor(){super(64,32,8,!1),this.A=zp[0]|0,this.B=zp[1]|0,this.C=zp[2]|0,this.D=zp[3]|0,this.E=zp[4]|0,this.F=zp[5]|0,this.G=zp[6]|0,this.H=zp[7]|0}get(){const{A:t,B:r,C:n,D:i,E:o,F:s,G:a,H:u}=this;return[t,r,n,i,o,s,a,u]}set(t,r,n,i,o,s,a,u){this.A=t|0,this.B=r|0,this.C=n|0,this.D=i|0,this.E=o|0,this.F=s|0,this.G=a|0,this.H=u|0}process(t,r){for(let y=0;y<16;y++,r+=4)Hp[y]=t.getUint32(r,!1);for(let y=16;y<64;y++){const E=Hp[y-15],M=Hp[y-2],I=$f(E,7)^$f(E,18)^E>>>3,N=$f(M,17)^$f(M,19)^M>>>10;Hp[y]=N+Hp[y-7]+I+Hp[y-16]|0}let{A:n,B:i,C:o,D:s,E:a,F:u,G:p,H:g}=this;for(let y=0;y<64;y++){const E=$f(a,6)^$f(a,11)^$f(a,25),M=g+E+bae(a,u,p)+Sae[y]+Hp[y]|0,I=($f(n,2)^$f(n,13)^$f(n,22))+Eae(n,i,o)|0;g=p,p=u,u=a,a=s+M|0,s=o,o=i,i=n,n=M+I|0}n=n+this.A|0,i=i+this.B|0,o=o+this.C|0,s=s+this.D|0,a=a+this.E|0,u=u+this.F|0,p=p+this.G|0,g=g+this.H|0,this.set(n,i,o,s,a,u,p,g)}roundClean(){Hp.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};const F3=Goe(()=>new Iae);var tw={};Object.defineProperty(tw,"__esModule",{value:!0}),tw.bech32m=tw.bech32=void 0;const j3="qpzry9x8gf2tvdw0s3jn54khce6mua7l",GV={};for(let e=0;e<j3.length;e++){const t=j3.charAt(e);GV[t]=e}function zm(e){const t=e>>25;return(e&33554431)<<5^-(t>>0&1)&996825010^-(t>>1&1)&642813549^-(t>>2&1)&513874426^-(t>>3&1)&1027748829^-(t>>4&1)&705979059}function WV(e){let t=1;for(let r=0;r<e.length;++r){const n=e.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+e+")";t=zm(t)^n>>5}t=zm(t);for(let r=0;r<e.length;++r){const n=e.charCodeAt(r);t=zm(t)^n&31}return t}function LC(e,t,r,n){let i=0,o=0;const s=(1<<r)-1,a=[];for(let u=0;u<e.length;++u)for(i=i<<t|e[u],o+=t;o>=r;)o-=r,a.push(i>>o&s);if(n)o>0&&a.push(i<<r-o&s);else{if(o>=t)return"Excess padding";if(i<<r-o&s)return"Non-zero padding"}return a}function Cae(e){return LC(e,8,5,!0)}function Bae(e){const t=LC(e,5,8,!1);if(Array.isArray(t))return t}function Tae(e){const t=LC(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}function QV(e){let t;e==="bech32"?t=1:t=734539939;function r(s,a,u){if(u=u||90,s.length+7+a.length>u)throw new TypeError("Exceeds length limit");s=s.toLowerCase();let p=WV(s);if(typeof p=="string")throw new Error(p);let g=s+"1";for(let y=0;y<a.length;++y){const E=a[y];if(E>>5)throw new Error("Non 5-bit word");p=zm(p)^E,g+=j3.charAt(E)}for(let y=0;y<6;++y)p=zm(p);p^=t;for(let y=0;y<6;++y){const E=p>>(5-y)*5&31;g+=j3.charAt(E)}return g}function n(s,a){if(a=a||90,s.length<8)return s+" too short";if(s.length>a)return"Exceeds length limit";const u=s.toLowerCase(),p=s.toUpperCase();if(s!==u&&s!==p)return"Mixed-case string "+s;s=u;const g=s.lastIndexOf("1");if(g===-1)return"No separator character for "+s;if(g===0)return"Missing prefix for "+s;const y=s.slice(0,g),E=s.slice(g+1);if(E.length<6)return"Data too short";let M=WV(y);if(typeof M=="string")return M;const I=[];for(let N=0;N<E.length;++N){const O=E.charAt(N),V=GV[O];if(V===void 0)return"Unknown character "+O;M=zm(M)^V,!(N+6>=E.length)&&I.push(V)}return M!==t?"Invalid checksum for "+s:{prefix:y,words:I}}function i(s,a){const u=n(s,a);if(typeof u=="object")return u}function o(s,a){const u=n(s,a);if(typeof u=="object")return u;throw new Error(u)}return{decodeUnsafe:i,decode:o,encode:r,toWords:Cae,fromWordsUnsafe:Bae,fromWords:Tae}}tw.bech32=QV("bech32"),tw.bech32m=QV("bech32m");let xae=class{async signWithIntent(t,r){const n=IV(r,t),i=k3(n,{dkLen:32});return{signature:wae({signature:await this.sign(i),signatureScheme:this.getKeyScheme(),publicKey:this.getPublicKey()}),bytes:js(t)}}async signTransaction(t){return this.signWithIntent(t,"TransactionData")}async signPersonalMessage(t){const{signature:r}=await this.signWithIntent(Oe.vector(Oe.u8()).serialize(t).toBytes(),"PersonalMessage");return{bytes:js(t),signature:r}}toSuiAddress(){return this.getPublicKey().toSuiAddress()}};function Mae(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.')}var ZV={exports:{}};const Uae={},Oae=Object.freeze(Object.defineProperty({__proto__:null,default:Uae},Symbol.toStringTag,{value:"Module"})),Nae=_ie(Oae);(function(e){(function(t){var r=function(B){var J,F=new Float64Array(16);if(B)for(J=0;J<B.length;J++)F[J]=B[J];return F},n=function(){throw new Error("no PRNG")},i=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var s=r(),a=r([1]),u=r([56129,1]),p=r([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),g=r([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),y=r([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),E=r([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),M=r([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function I(B,J,F,b){B[J]=F>>24&255,B[J+1]=F>>16&255,B[J+2]=F>>8&255,B[J+3]=F&255,B[J+4]=b>>24&255,B[J+5]=b>>16&255,B[J+6]=b>>8&255,B[J+7]=b&255}function N(B,J,F,b,H){var le,de=0;for(le=0;le<H;le++)de|=B[J+le]^F[b+le];return(1&de-1>>>8)-1}function O(B,J,F,b){return N(B,J,F,b,16)}function V(B,J,F,b){return N(B,J,F,b,32)}function Z(B,J,F,b){for(var H=b[0]&255|(b[1]&255)<<8|(b[2]&255)<<16|(b[3]&255)<<24,le=F[0]&255|(F[1]&255)<<8|(F[2]&255)<<16|(F[3]&255)<<24,de=F[4]&255|(F[5]&255)<<8|(F[6]&255)<<16|(F[7]&255)<<24,Re=F[8]&255|(F[9]&255)<<8|(F[10]&255)<<16|(F[11]&255)<<24,Je=F[12]&255|(F[13]&255)<<8|(F[14]&255)<<16|(F[15]&255)<<24,xt=b[4]&255|(b[5]&255)<<8|(b[6]&255)<<16|(b[7]&255)<<24,ut=J[0]&255|(J[1]&255)<<8|(J[2]&255)<<16|(J[3]&255)<<24,Nr=J[4]&255|(J[5]&255)<<8|(J[6]&255)<<16|(J[7]&255)<<24,gt=J[8]&255|(J[9]&255)<<8|(J[10]&255)<<16|(J[11]&255)<<24,Yt=J[12]&255|(J[13]&255)<<8|(J[14]&255)<<16|(J[15]&255)<<24,Gt=b[8]&255|(b[9]&255)<<8|(b[10]&255)<<16|(b[11]&255)<<24,sr=F[16]&255|(F[17]&255)<<8|(F[18]&255)<<16|(F[19]&255)<<24,Et=F[20]&255|(F[21]&255)<<8|(F[22]&255)<<16|(F[23]&255)<<24,Wt=F[24]&255|(F[25]&255)<<8|(F[26]&255)<<16|(F[27]&255)<<24,Jt=F[28]&255|(F[29]&255)<<8|(F[30]&255)<<16|(F[31]&255)<<24,er=b[12]&255|(b[13]&255)<<8|(b[14]&255)<<16|(b[15]&255)<<24,mt=H,Ut=le,lt=de,At=Re,Ct=Je,st=xt,ve=ut,we=Nr,Fe=gt,De=Yt,Le=Gt,Ge=sr,Zt=Et,ar=Wt,fr=Jt,lr=er,_,gr=0;gr<20;gr+=2)_=mt+Zt|0,Ct^=_<<7|_>>>25,_=Ct+mt|0,Fe^=_<<9|_>>>23,_=Fe+Ct|0,Zt^=_<<13|_>>>19,_=Zt+Fe|0,mt^=_<<18|_>>>14,_=st+Ut|0,De^=_<<7|_>>>25,_=De+st|0,ar^=_<<9|_>>>23,_=ar+De|0,Ut^=_<<13|_>>>19,_=Ut+ar|0,st^=_<<18|_>>>14,_=Le+ve|0,fr^=_<<7|_>>>25,_=fr+Le|0,lt^=_<<9|_>>>23,_=lt+fr|0,ve^=_<<13|_>>>19,_=ve+lt|0,Le^=_<<18|_>>>14,_=lr+Ge|0,At^=_<<7|_>>>25,_=At+lr|0,we^=_<<9|_>>>23,_=we+At|0,Ge^=_<<13|_>>>19,_=Ge+we|0,lr^=_<<18|_>>>14,_=mt+At|0,Ut^=_<<7|_>>>25,_=Ut+mt|0,lt^=_<<9|_>>>23,_=lt+Ut|0,At^=_<<13|_>>>19,_=At+lt|0,mt^=_<<18|_>>>14,_=st+Ct|0,ve^=_<<7|_>>>25,_=ve+st|0,we^=_<<9|_>>>23,_=we+ve|0,Ct^=_<<13|_>>>19,_=Ct+we|0,st^=_<<18|_>>>14,_=Le+De|0,Ge^=_<<7|_>>>25,_=Ge+Le|0,Fe^=_<<9|_>>>23,_=Fe+Ge|0,De^=_<<13|_>>>19,_=De+Fe|0,Le^=_<<18|_>>>14,_=lr+fr|0,Zt^=_<<7|_>>>25,_=Zt+lr|0,ar^=_<<9|_>>>23,_=ar+Zt|0,fr^=_<<13|_>>>19,_=fr+ar|0,lr^=_<<18|_>>>14;mt=mt+H|0,Ut=Ut+le|0,lt=lt+de|0,At=At+Re|0,Ct=Ct+Je|0,st=st+xt|0,ve=ve+ut|0,we=we+Nr|0,Fe=Fe+gt|0,De=De+Yt|0,Le=Le+Gt|0,Ge=Ge+sr|0,Zt=Zt+Et|0,ar=ar+Wt|0,fr=fr+Jt|0,lr=lr+er|0,B[0]=mt>>>0&255,B[1]=mt>>>8&255,B[2]=mt>>>16&255,B[3]=mt>>>24&255,B[4]=Ut>>>0&255,B[5]=Ut>>>8&255,B[6]=Ut>>>16&255,B[7]=Ut>>>24&255,B[8]=lt>>>0&255,B[9]=lt>>>8&255,B[10]=lt>>>16&255,B[11]=lt>>>24&255,B[12]=At>>>0&255,B[13]=At>>>8&255,B[14]=At>>>16&255,B[15]=At>>>24&255,B[16]=Ct>>>0&255,B[17]=Ct>>>8&255,B[18]=Ct>>>16&255,B[19]=Ct>>>24&255,B[20]=st>>>0&255,B[21]=st>>>8&255,B[22]=st>>>16&255,B[23]=st>>>24&255,B[24]=ve>>>0&255,B[25]=ve>>>8&255,B[26]=ve>>>16&255,B[27]=ve>>>24&255,B[28]=we>>>0&255,B[29]=we>>>8&255,B[30]=we>>>16&255,B[31]=we>>>24&255,B[32]=Fe>>>0&255,B[33]=Fe>>>8&255,B[34]=Fe>>>16&255,B[35]=Fe>>>24&255,B[36]=De>>>0&255,B[37]=De>>>8&255,B[38]=De>>>16&255,B[39]=De>>>24&255,B[40]=Le>>>0&255,B[41]=Le>>>8&255,B[42]=Le>>>16&255,B[43]=Le>>>24&255,B[44]=Ge>>>0&255,B[45]=Ge>>>8&255,B[46]=Ge>>>16&255,B[47]=Ge>>>24&255,B[48]=Zt>>>0&255,B[49]=Zt>>>8&255,B[50]=Zt>>>16&255,B[51]=Zt>>>24&255,B[52]=ar>>>0&255,B[53]=ar>>>8&255,B[54]=ar>>>16&255,B[55]=ar>>>24&255,B[56]=fr>>>0&255,B[57]=fr>>>8&255,B[58]=fr>>>16&255,B[59]=fr>>>24&255,B[60]=lr>>>0&255,B[61]=lr>>>8&255,B[62]=lr>>>16&255,B[63]=lr>>>24&255}function Q(B,J,F,b){for(var H=b[0]&255|(b[1]&255)<<8|(b[2]&255)<<16|(b[3]&255)<<24,le=F[0]&255|(F[1]&255)<<8|(F[2]&255)<<16|(F[3]&255)<<24,de=F[4]&255|(F[5]&255)<<8|(F[6]&255)<<16|(F[7]&255)<<24,Re=F[8]&255|(F[9]&255)<<8|(F[10]&255)<<16|(F[11]&255)<<24,Je=F[12]&255|(F[13]&255)<<8|(F[14]&255)<<16|(F[15]&255)<<24,xt=b[4]&255|(b[5]&255)<<8|(b[6]&255)<<16|(b[7]&255)<<24,ut=J[0]&255|(J[1]&255)<<8|(J[2]&255)<<16|(J[3]&255)<<24,Nr=J[4]&255|(J[5]&255)<<8|(J[6]&255)<<16|(J[7]&255)<<24,gt=J[8]&255|(J[9]&255)<<8|(J[10]&255)<<16|(J[11]&255)<<24,Yt=J[12]&255|(J[13]&255)<<8|(J[14]&255)<<16|(J[15]&255)<<24,Gt=b[8]&255|(b[9]&255)<<8|(b[10]&255)<<16|(b[11]&255)<<24,sr=F[16]&255|(F[17]&255)<<8|(F[18]&255)<<16|(F[19]&255)<<24,Et=F[20]&255|(F[21]&255)<<8|(F[22]&255)<<16|(F[23]&255)<<24,Wt=F[24]&255|(F[25]&255)<<8|(F[26]&255)<<16|(F[27]&255)<<24,Jt=F[28]&255|(F[29]&255)<<8|(F[30]&255)<<16|(F[31]&255)<<24,er=b[12]&255|(b[13]&255)<<8|(b[14]&255)<<16|(b[15]&255)<<24,mt=H,Ut=le,lt=de,At=Re,Ct=Je,st=xt,ve=ut,we=Nr,Fe=gt,De=Yt,Le=Gt,Ge=sr,Zt=Et,ar=Wt,fr=Jt,lr=er,_,gr=0;gr<20;gr+=2)_=mt+Zt|0,Ct^=_<<7|_>>>25,_=Ct+mt|0,Fe^=_<<9|_>>>23,_=Fe+Ct|0,Zt^=_<<13|_>>>19,_=Zt+Fe|0,mt^=_<<18|_>>>14,_=st+Ut|0,De^=_<<7|_>>>25,_=De+st|0,ar^=_<<9|_>>>23,_=ar+De|0,Ut^=_<<13|_>>>19,_=Ut+ar|0,st^=_<<18|_>>>14,_=Le+ve|0,fr^=_<<7|_>>>25,_=fr+Le|0,lt^=_<<9|_>>>23,_=lt+fr|0,ve^=_<<13|_>>>19,_=ve+lt|0,Le^=_<<18|_>>>14,_=lr+Ge|0,At^=_<<7|_>>>25,_=At+lr|0,we^=_<<9|_>>>23,_=we+At|0,Ge^=_<<13|_>>>19,_=Ge+we|0,lr^=_<<18|_>>>14,_=mt+At|0,Ut^=_<<7|_>>>25,_=Ut+mt|0,lt^=_<<9|_>>>23,_=lt+Ut|0,At^=_<<13|_>>>19,_=At+lt|0,mt^=_<<18|_>>>14,_=st+Ct|0,ve^=_<<7|_>>>25,_=ve+st|0,we^=_<<9|_>>>23,_=we+ve|0,Ct^=_<<13|_>>>19,_=Ct+we|0,st^=_<<18|_>>>14,_=Le+De|0,Ge^=_<<7|_>>>25,_=Ge+Le|0,Fe^=_<<9|_>>>23,_=Fe+Ge|0,De^=_<<13|_>>>19,_=De+Fe|0,Le^=_<<18|_>>>14,_=lr+fr|0,Zt^=_<<7|_>>>25,_=Zt+lr|0,ar^=_<<9|_>>>23,_=ar+Zt|0,fr^=_<<13|_>>>19,_=fr+ar|0,lr^=_<<18|_>>>14;B[0]=mt>>>0&255,B[1]=mt>>>8&255,B[2]=mt>>>16&255,B[3]=mt>>>24&255,B[4]=st>>>0&255,B[5]=st>>>8&255,B[6]=st>>>16&255,B[7]=st>>>24&255,B[8]=Le>>>0&255,B[9]=Le>>>8&255,B[10]=Le>>>16&255,B[11]=Le>>>24&255,B[12]=lr>>>0&255,B[13]=lr>>>8&255,B[14]=lr>>>16&255,B[15]=lr>>>24&255,B[16]=ve>>>0&255,B[17]=ve>>>8&255,B[18]=ve>>>16&255,B[19]=ve>>>24&255,B[20]=we>>>0&255,B[21]=we>>>8&255,B[22]=we>>>16&255,B[23]=we>>>24&255,B[24]=Fe>>>0&255,B[25]=Fe>>>8&255,B[26]=Fe>>>16&255,B[27]=Fe>>>24&255,B[28]=De>>>0&255,B[29]=De>>>8&255,B[30]=De>>>16&255,B[31]=De>>>24&255}function K(B,J,F,b){Z(B,J,F,b)}function $(B,J,F,b){Q(B,J,F,b)}var oe=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function ae(B,J,F,b,H,le,de){var Re=new Uint8Array(16),Je=new Uint8Array(64),xt,ut;for(ut=0;ut<16;ut++)Re[ut]=0;for(ut=0;ut<8;ut++)Re[ut]=le[ut];for(;H>=64;){for(K(Je,Re,de,oe),ut=0;ut<64;ut++)B[J+ut]=F[b+ut]^Je[ut];for(xt=1,ut=8;ut<16;ut++)xt=xt+(Re[ut]&255)|0,Re[ut]=xt&255,xt>>>=8;H-=64,J+=64,b+=64}if(H>0)for(K(Je,Re,de,oe),ut=0;ut<H;ut++)B[J+ut]=F[b+ut]^Je[ut];return 0}function ue(B,J,F,b,H){var le=new Uint8Array(16),de=new Uint8Array(64),Re,Je;for(Je=0;Je<16;Je++)le[Je]=0;for(Je=0;Je<8;Je++)le[Je]=b[Je];for(;F>=64;){for(K(de,le,H,oe),Je=0;Je<64;Je++)B[J+Je]=de[Je];for(Re=1,Je=8;Je<16;Je++)Re=Re+(le[Je]&255)|0,le[Je]=Re&255,Re>>>=8;F-=64,J+=64}if(F>0)for(K(de,le,H,oe),Je=0;Je<F;Je++)B[J+Je]=de[Je];return 0}function Se(B,J,F,b,H){var le=new Uint8Array(32);$(le,b,H,oe);for(var de=new Uint8Array(8),Re=0;Re<8;Re++)de[Re]=b[Re+16];return ue(B,J,F,de,le)}function Me(B,J,F,b,H,le,de){var Re=new Uint8Array(32);$(Re,le,de,oe);for(var Je=new Uint8Array(8),xt=0;xt<8;xt++)Je[xt]=le[xt+16];return ae(B,J,F,b,H,Je,Re)}var ge=function(B){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var J,F,b,H,le,de,Re,Je;J=B[0]&255|(B[1]&255)<<8,this.r[0]=J&8191,F=B[2]&255|(B[3]&255)<<8,this.r[1]=(J>>>13|F<<3)&8191,b=B[4]&255|(B[5]&255)<<8,this.r[2]=(F>>>10|b<<6)&7939,H=B[6]&255|(B[7]&255)<<8,this.r[3]=(b>>>7|H<<9)&8191,le=B[8]&255|(B[9]&255)<<8,this.r[4]=(H>>>4|le<<12)&255,this.r[5]=le>>>1&8190,de=B[10]&255|(B[11]&255)<<8,this.r[6]=(le>>>14|de<<2)&8191,Re=B[12]&255|(B[13]&255)<<8,this.r[7]=(de>>>11|Re<<5)&8065,Je=B[14]&255|(B[15]&255)<<8,this.r[8]=(Re>>>8|Je<<8)&8191,this.r[9]=Je>>>5&127,this.pad[0]=B[16]&255|(B[17]&255)<<8,this.pad[1]=B[18]&255|(B[19]&255)<<8,this.pad[2]=B[20]&255|(B[21]&255)<<8,this.pad[3]=B[22]&255|(B[23]&255)<<8,this.pad[4]=B[24]&255|(B[25]&255)<<8,this.pad[5]=B[26]&255|(B[27]&255)<<8,this.pad[6]=B[28]&255|(B[29]&255)<<8,this.pad[7]=B[30]&255|(B[31]&255)<<8};ge.prototype.blocks=function(B,J,F){for(var b=this.fin?0:2048,H,le,de,Re,Je,xt,ut,Nr,gt,Yt,Gt,sr,Et,Wt,Jt,er,mt,Ut,lt,At=this.h[0],Ct=this.h[1],st=this.h[2],ve=this.h[3],we=this.h[4],Fe=this.h[5],De=this.h[6],Le=this.h[7],Ge=this.h[8],Zt=this.h[9],ar=this.r[0],fr=this.r[1],lr=this.r[2],_=this.r[3],gr=this.r[4],Jr=this.r[5],Rr=this.r[6],dr=this.r[7],Mr=this.r[8],wr=this.r[9];F>=16;)H=B[J+0]&255|(B[J+1]&255)<<8,At+=H&8191,le=B[J+2]&255|(B[J+3]&255)<<8,Ct+=(H>>>13|le<<3)&8191,de=B[J+4]&255|(B[J+5]&255)<<8,st+=(le>>>10|de<<6)&8191,Re=B[J+6]&255|(B[J+7]&255)<<8,ve+=(de>>>7|Re<<9)&8191,Je=B[J+8]&255|(B[J+9]&255)<<8,we+=(Re>>>4|Je<<12)&8191,Fe+=Je>>>1&8191,xt=B[J+10]&255|(B[J+11]&255)<<8,De+=(Je>>>14|xt<<2)&8191,ut=B[J+12]&255|(B[J+13]&255)<<8,Le+=(xt>>>11|ut<<5)&8191,Nr=B[J+14]&255|(B[J+15]&255)<<8,Ge+=(ut>>>8|Nr<<8)&8191,Zt+=Nr>>>5|b,gt=0,Yt=gt,Yt+=At*ar,Yt+=Ct*(5*wr),Yt+=st*(5*Mr),Yt+=ve*(5*dr),Yt+=we*(5*Rr),gt=Yt>>>13,Yt&=8191,Yt+=Fe*(5*Jr),Yt+=De*(5*gr),Yt+=Le*(5*_),Yt+=Ge*(5*lr),Yt+=Zt*(5*fr),gt+=Yt>>>13,Yt&=8191,Gt=gt,Gt+=At*fr,Gt+=Ct*ar,Gt+=st*(5*wr),Gt+=ve*(5*Mr),Gt+=we*(5*dr),gt=Gt>>>13,Gt&=8191,Gt+=Fe*(5*Rr),Gt+=De*(5*Jr),Gt+=Le*(5*gr),Gt+=Ge*(5*_),Gt+=Zt*(5*lr),gt+=Gt>>>13,Gt&=8191,sr=gt,sr+=At*lr,sr+=Ct*fr,sr+=st*ar,sr+=ve*(5*wr),sr+=we*(5*Mr),gt=sr>>>13,sr&=8191,sr+=Fe*(5*dr),sr+=De*(5*Rr),sr+=Le*(5*Jr),sr+=Ge*(5*gr),sr+=Zt*(5*_),gt+=sr>>>13,sr&=8191,Et=gt,Et+=At*_,Et+=Ct*lr,Et+=st*fr,Et+=ve*ar,Et+=we*(5*wr),gt=Et>>>13,Et&=8191,Et+=Fe*(5*Mr),Et+=De*(5*dr),Et+=Le*(5*Rr),Et+=Ge*(5*Jr),Et+=Zt*(5*gr),gt+=Et>>>13,Et&=8191,Wt=gt,Wt+=At*gr,Wt+=Ct*_,Wt+=st*lr,Wt+=ve*fr,Wt+=we*ar,gt=Wt>>>13,Wt&=8191,Wt+=Fe*(5*wr),Wt+=De*(5*Mr),Wt+=Le*(5*dr),Wt+=Ge*(5*Rr),Wt+=Zt*(5*Jr),gt+=Wt>>>13,Wt&=8191,Jt=gt,Jt+=At*Jr,Jt+=Ct*gr,Jt+=st*_,Jt+=ve*lr,Jt+=we*fr,gt=Jt>>>13,Jt&=8191,Jt+=Fe*ar,Jt+=De*(5*wr),Jt+=Le*(5*Mr),Jt+=Ge*(5*dr),Jt+=Zt*(5*Rr),gt+=Jt>>>13,Jt&=8191,er=gt,er+=At*Rr,er+=Ct*Jr,er+=st*gr,er+=ve*_,er+=we*lr,gt=er>>>13,er&=8191,er+=Fe*fr,er+=De*ar,er+=Le*(5*wr),er+=Ge*(5*Mr),er+=Zt*(5*dr),gt+=er>>>13,er&=8191,mt=gt,mt+=At*dr,mt+=Ct*Rr,mt+=st*Jr,mt+=ve*gr,mt+=we*_,gt=mt>>>13,mt&=8191,mt+=Fe*lr,mt+=De*fr,mt+=Le*ar,mt+=Ge*(5*wr),mt+=Zt*(5*Mr),gt+=mt>>>13,mt&=8191,Ut=gt,Ut+=At*Mr,Ut+=Ct*dr,Ut+=st*Rr,Ut+=ve*Jr,Ut+=we*gr,gt=Ut>>>13,Ut&=8191,Ut+=Fe*_,Ut+=De*lr,Ut+=Le*fr,Ut+=Ge*ar,Ut+=Zt*(5*wr),gt+=Ut>>>13,Ut&=8191,lt=gt,lt+=At*wr,lt+=Ct*Mr,lt+=st*dr,lt+=ve*Rr,lt+=we*Jr,gt=lt>>>13,lt&=8191,lt+=Fe*gr,lt+=De*_,lt+=Le*lr,lt+=Ge*fr,lt+=Zt*ar,gt+=lt>>>13,lt&=8191,gt=(gt<<2)+gt|0,gt=gt+Yt|0,Yt=gt&8191,gt=gt>>>13,Gt+=gt,At=Yt,Ct=Gt,st=sr,ve=Et,we=Wt,Fe=Jt,De=er,Le=mt,Ge=Ut,Zt=lt,J+=16,F-=16;this.h[0]=At,this.h[1]=Ct,this.h[2]=st,this.h[3]=ve,this.h[4]=we,this.h[5]=Fe,this.h[6]=De,this.h[7]=Le,this.h[8]=Ge,this.h[9]=Zt},ge.prototype.finish=function(B,J){var F=new Uint16Array(10),b,H,le,de;if(this.leftover){for(de=this.leftover,this.buffer[de++]=1;de<16;de++)this.buffer[de]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(b=this.h[1]>>>13,this.h[1]&=8191,de=2;de<10;de++)this.h[de]+=b,b=this.h[de]>>>13,this.h[de]&=8191;for(this.h[0]+=b*5,b=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=b,b=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=b,F[0]=this.h[0]+5,b=F[0]>>>13,F[0]&=8191,de=1;de<10;de++)F[de]=this.h[de]+b,b=F[de]>>>13,F[de]&=8191;for(F[9]-=8192,H=(b^1)-1,de=0;de<10;de++)F[de]&=H;for(H=~H,de=0;de<10;de++)this.h[de]=this.h[de]&H|F[de];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,le=this.h[0]+this.pad[0],this.h[0]=le&65535,de=1;de<8;de++)le=(this.h[de]+this.pad[de]|0)+(le>>>16)|0,this.h[de]=le&65535;B[J+0]=this.h[0]>>>0&255,B[J+1]=this.h[0]>>>8&255,B[J+2]=this.h[1]>>>0&255,B[J+3]=this.h[1]>>>8&255,B[J+4]=this.h[2]>>>0&255,B[J+5]=this.h[2]>>>8&255,B[J+6]=this.h[3]>>>0&255,B[J+7]=this.h[3]>>>8&255,B[J+8]=this.h[4]>>>0&255,B[J+9]=this.h[4]>>>8&255,B[J+10]=this.h[5]>>>0&255,B[J+11]=this.h[5]>>>8&255,B[J+12]=this.h[6]>>>0&255,B[J+13]=this.h[6]>>>8&255,B[J+14]=this.h[7]>>>0&255,B[J+15]=this.h[7]>>>8&255},ge.prototype.update=function(B,J,F){var b,H;if(this.leftover){for(H=16-this.leftover,H>F&&(H=F),b=0;b<H;b++)this.buffer[this.leftover+b]=B[J+b];if(F-=H,J+=H,this.leftover+=H,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(F>=16&&(H=F-F%16,this.blocks(B,J,H),J+=H,F-=H),F){for(b=0;b<F;b++)this.buffer[this.leftover+b]=B[J+b];this.leftover+=F}};function Pe(B,J,F,b,H,le){var de=new ge(le);return de.update(F,b,H),de.finish(B,J),0}function He(B,J,F,b,H,le){var de=new Uint8Array(16);return Pe(de,0,F,b,H,le),O(B,J,de,0)}function $e(B,J,F,b,H){var le;if(F<32)return-1;for(Me(B,0,J,0,F,b,H),Pe(B,16,B,32,F-32,B),le=0;le<16;le++)B[le]=0;return 0}function me(B,J,F,b,H){var le,de=new Uint8Array(32);if(F<32||(Se(de,0,32,b,H),He(J,16,J,32,F-32,de)!==0))return-1;for(Me(B,0,J,0,F,b,H),le=0;le<32;le++)B[le]=0;return 0}function be(B,J){var F;for(F=0;F<16;F++)B[F]=J[F]|0}function Qe(B){var J,F,b=1;for(J=0;J<16;J++)F=B[J]+b+65535,b=Math.floor(F/65536),B[J]=F-b*65536;B[0]+=b-1+37*(b-1)}function Xe(B,J,F){for(var b,H=~(F-1),le=0;le<16;le++)b=H&(B[le]^J[le]),B[le]^=b,J[le]^=b}function rt(B,J){var F,b,H,le=r(),de=r();for(F=0;F<16;F++)de[F]=J[F];for(Qe(de),Qe(de),Qe(de),b=0;b<2;b++){for(le[0]=de[0]-65517,F=1;F<15;F++)le[F]=de[F]-65535-(le[F-1]>>16&1),le[F-1]&=65535;le[15]=de[15]-32767-(le[14]>>16&1),H=le[15]>>16&1,le[14]&=65535,Xe(de,le,1-H)}for(F=0;F<16;F++)B[2*F]=de[F]&255,B[2*F+1]=de[F]>>8}function bt(B,J){var F=new Uint8Array(32),b=new Uint8Array(32);return rt(F,B),rt(b,J),V(F,0,b,0)}function It(B){var J=new Uint8Array(32);return rt(J,B),J[0]&1}function Bt(B,J){var F;for(F=0;F<16;F++)B[F]=J[2*F]+(J[2*F+1]<<8);B[15]&=32767}function Nt(B,J,F){for(var b=0;b<16;b++)B[b]=J[b]+F[b]}function Tt(B,J,F){for(var b=0;b<16;b++)B[b]=J[b]-F[b]}function nt(B,J,F){var b,H,le=0,de=0,Re=0,Je=0,xt=0,ut=0,Nr=0,gt=0,Yt=0,Gt=0,sr=0,Et=0,Wt=0,Jt=0,er=0,mt=0,Ut=0,lt=0,At=0,Ct=0,st=0,ve=0,we=0,Fe=0,De=0,Le=0,Ge=0,Zt=0,ar=0,fr=0,lr=0,_=F[0],gr=F[1],Jr=F[2],Rr=F[3],dr=F[4],Mr=F[5],wr=F[6],Vn=F[7],qr=F[8],Cn=F[9],Bn=F[10],Pn=F[11],Un=F[12],Li=F[13],ti=F[14],Ti=F[15];b=J[0],le+=b*_,de+=b*gr,Re+=b*Jr,Je+=b*Rr,xt+=b*dr,ut+=b*Mr,Nr+=b*wr,gt+=b*Vn,Yt+=b*qr,Gt+=b*Cn,sr+=b*Bn,Et+=b*Pn,Wt+=b*Un,Jt+=b*Li,er+=b*ti,mt+=b*Ti,b=J[1],de+=b*_,Re+=b*gr,Je+=b*Jr,xt+=b*Rr,ut+=b*dr,Nr+=b*Mr,gt+=b*wr,Yt+=b*Vn,Gt+=b*qr,sr+=b*Cn,Et+=b*Bn,Wt+=b*Pn,Jt+=b*Un,er+=b*Li,mt+=b*ti,Ut+=b*Ti,b=J[2],Re+=b*_,Je+=b*gr,xt+=b*Jr,ut+=b*Rr,Nr+=b*dr,gt+=b*Mr,Yt+=b*wr,Gt+=b*Vn,sr+=b*qr,Et+=b*Cn,Wt+=b*Bn,Jt+=b*Pn,er+=b*Un,mt+=b*Li,Ut+=b*ti,lt+=b*Ti,b=J[3],Je+=b*_,xt+=b*gr,ut+=b*Jr,Nr+=b*Rr,gt+=b*dr,Yt+=b*Mr,Gt+=b*wr,sr+=b*Vn,Et+=b*qr,Wt+=b*Cn,Jt+=b*Bn,er+=b*Pn,mt+=b*Un,Ut+=b*Li,lt+=b*ti,At+=b*Ti,b=J[4],xt+=b*_,ut+=b*gr,Nr+=b*Jr,gt+=b*Rr,Yt+=b*dr,Gt+=b*Mr,sr+=b*wr,Et+=b*Vn,Wt+=b*qr,Jt+=b*Cn,er+=b*Bn,mt+=b*Pn,Ut+=b*Un,lt+=b*Li,At+=b*ti,Ct+=b*Ti,b=J[5],ut+=b*_,Nr+=b*gr,gt+=b*Jr,Yt+=b*Rr,Gt+=b*dr,sr+=b*Mr,Et+=b*wr,Wt+=b*Vn,Jt+=b*qr,er+=b*Cn,mt+=b*Bn,Ut+=b*Pn,lt+=b*Un,At+=b*Li,Ct+=b*ti,st+=b*Ti,b=J[6],Nr+=b*_,gt+=b*gr,Yt+=b*Jr,Gt+=b*Rr,sr+=b*dr,Et+=b*Mr,Wt+=b*wr,Jt+=b*Vn,er+=b*qr,mt+=b*Cn,Ut+=b*Bn,lt+=b*Pn,At+=b*Un,Ct+=b*Li,st+=b*ti,ve+=b*Ti,b=J[7],gt+=b*_,Yt+=b*gr,Gt+=b*Jr,sr+=b*Rr,Et+=b*dr,Wt+=b*Mr,Jt+=b*wr,er+=b*Vn,mt+=b*qr,Ut+=b*Cn,lt+=b*Bn,At+=b*Pn,Ct+=b*Un,st+=b*Li,ve+=b*ti,we+=b*Ti,b=J[8],Yt+=b*_,Gt+=b*gr,sr+=b*Jr,Et+=b*Rr,Wt+=b*dr,Jt+=b*Mr,er+=b*wr,mt+=b*Vn,Ut+=b*qr,lt+=b*Cn,At+=b*Bn,Ct+=b*Pn,st+=b*Un,ve+=b*Li,we+=b*ti,Fe+=b*Ti,b=J[9],Gt+=b*_,sr+=b*gr,Et+=b*Jr,Wt+=b*Rr,Jt+=b*dr,er+=b*Mr,mt+=b*wr,Ut+=b*Vn,lt+=b*qr,At+=b*Cn,Ct+=b*Bn,st+=b*Pn,ve+=b*Un,we+=b*Li,Fe+=b*ti,De+=b*Ti,b=J[10],sr+=b*_,Et+=b*gr,Wt+=b*Jr,Jt+=b*Rr,er+=b*dr,mt+=b*Mr,Ut+=b*wr,lt+=b*Vn,At+=b*qr,Ct+=b*Cn,st+=b*Bn,ve+=b*Pn,we+=b*Un,Fe+=b*Li,De+=b*ti,Le+=b*Ti,b=J[11],Et+=b*_,Wt+=b*gr,Jt+=b*Jr,er+=b*Rr,mt+=b*dr,Ut+=b*Mr,lt+=b*wr,At+=b*Vn,Ct+=b*qr,st+=b*Cn,ve+=b*Bn,we+=b*Pn,Fe+=b*Un,De+=b*Li,Le+=b*ti,Ge+=b*Ti,b=J[12],Wt+=b*_,Jt+=b*gr,er+=b*Jr,mt+=b*Rr,Ut+=b*dr,lt+=b*Mr,At+=b*wr,Ct+=b*Vn,st+=b*qr,ve+=b*Cn,we+=b*Bn,Fe+=b*Pn,De+=b*Un,Le+=b*Li,Ge+=b*ti,Zt+=b*Ti,b=J[13],Jt+=b*_,er+=b*gr,mt+=b*Jr,Ut+=b*Rr,lt+=b*dr,At+=b*Mr,Ct+=b*wr,st+=b*Vn,ve+=b*qr,we+=b*Cn,Fe+=b*Bn,De+=b*Pn,Le+=b*Un,Ge+=b*Li,Zt+=b*ti,ar+=b*Ti,b=J[14],er+=b*_,mt+=b*gr,Ut+=b*Jr,lt+=b*Rr,At+=b*dr,Ct+=b*Mr,st+=b*wr,ve+=b*Vn,we+=b*qr,Fe+=b*Cn,De+=b*Bn,Le+=b*Pn,Ge+=b*Un,Zt+=b*Li,ar+=b*ti,fr+=b*Ti,b=J[15],mt+=b*_,Ut+=b*gr,lt+=b*Jr,At+=b*Rr,Ct+=b*dr,st+=b*Mr,ve+=b*wr,we+=b*Vn,Fe+=b*qr,De+=b*Cn,Le+=b*Bn,Ge+=b*Pn,Zt+=b*Un,ar+=b*Li,fr+=b*ti,lr+=b*Ti,le+=38*Ut,de+=38*lt,Re+=38*At,Je+=38*Ct,xt+=38*st,ut+=38*ve,Nr+=38*we,gt+=38*Fe,Yt+=38*De,Gt+=38*Le,sr+=38*Ge,Et+=38*Zt,Wt+=38*ar,Jt+=38*fr,er+=38*lr,H=1,b=le+H+65535,H=Math.floor(b/65536),le=b-H*65536,b=de+H+65535,H=Math.floor(b/65536),de=b-H*65536,b=Re+H+65535,H=Math.floor(b/65536),Re=b-H*65536,b=Je+H+65535,H=Math.floor(b/65536),Je=b-H*65536,b=xt+H+65535,H=Math.floor(b/65536),xt=b-H*65536,b=ut+H+65535,H=Math.floor(b/65536),ut=b-H*65536,b=Nr+H+65535,H=Math.floor(b/65536),Nr=b-H*65536,b=gt+H+65535,H=Math.floor(b/65536),gt=b-H*65536,b=Yt+H+65535,H=Math.floor(b/65536),Yt=b-H*65536,b=Gt+H+65535,H=Math.floor(b/65536),Gt=b-H*65536,b=sr+H+65535,H=Math.floor(b/65536),sr=b-H*65536,b=Et+H+65535,H=Math.floor(b/65536),Et=b-H*65536,b=Wt+H+65535,H=Math.floor(b/65536),Wt=b-H*65536,b=Jt+H+65535,H=Math.floor(b/65536),Jt=b-H*65536,b=er+H+65535,H=Math.floor(b/65536),er=b-H*65536,b=mt+H+65535,H=Math.floor(b/65536),mt=b-H*65536,le+=H-1+37*(H-1),H=1,b=le+H+65535,H=Math.floor(b/65536),le=b-H*65536,b=de+H+65535,H=Math.floor(b/65536),de=b-H*65536,b=Re+H+65535,H=Math.floor(b/65536),Re=b-H*65536,b=Je+H+65535,H=Math.floor(b/65536),Je=b-H*65536,b=xt+H+65535,H=Math.floor(b/65536),xt=b-H*65536,b=ut+H+65535,H=Math.floor(b/65536),ut=b-H*65536,b=Nr+H+65535,H=Math.floor(b/65536),Nr=b-H*65536,b=gt+H+65535,H=Math.floor(b/65536),gt=b-H*65536,b=Yt+H+65535,H=Math.floor(b/65536),Yt=b-H*65536,b=Gt+H+65535,H=Math.floor(b/65536),Gt=b-H*65536,b=sr+H+65535,H=Math.floor(b/65536),sr=b-H*65536,b=Et+H+65535,H=Math.floor(b/65536),Et=b-H*65536,b=Wt+H+65535,H=Math.floor(b/65536),Wt=b-H*65536,b=Jt+H+65535,H=Math.floor(b/65536),Jt=b-H*65536,b=er+H+65535,H=Math.floor(b/65536),er=b-H*65536,b=mt+H+65535,H=Math.floor(b/65536),mt=b-H*65536,le+=H-1+37*(H-1),B[0]=le,B[1]=de,B[2]=Re,B[3]=Je,B[4]=xt,B[5]=ut,B[6]=Nr,B[7]=gt,B[8]=Yt,B[9]=Gt,B[10]=sr,B[11]=Et,B[12]=Wt,B[13]=Jt,B[14]=er,B[15]=mt}function yt(B,J){nt(B,J,J)}function Ir(B,J){var F=r(),b;for(b=0;b<16;b++)F[b]=J[b];for(b=253;b>=0;b--)yt(F,F),b!==2&&b!==4&&nt(F,F,J);for(b=0;b<16;b++)B[b]=F[b]}function mr(B,J){var F=r(),b;for(b=0;b<16;b++)F[b]=J[b];for(b=250;b>=0;b--)yt(F,F),b!==1&&nt(F,F,J);for(b=0;b<16;b++)B[b]=F[b]}function kr(B,J,F){var b=new Uint8Array(32),H=new Float64Array(80),le,de,Re=r(),Je=r(),xt=r(),ut=r(),Nr=r(),gt=r();for(de=0;de<31;de++)b[de]=J[de];for(b[31]=J[31]&127|64,b[0]&=248,Bt(H,F),de=0;de<16;de++)Je[de]=H[de],ut[de]=Re[de]=xt[de]=0;for(Re[0]=ut[0]=1,de=254;de>=0;--de)le=b[de>>>3]>>>(de&7)&1,Xe(Re,Je,le),Xe(xt,ut,le),Nt(Nr,Re,xt),Tt(Re,Re,xt),Nt(xt,Je,ut),Tt(Je,Je,ut),yt(ut,Nr),yt(gt,Re),nt(Re,xt,Re),nt(xt,Je,Nr),Nt(Nr,Re,xt),Tt(Re,Re,xt),yt(Je,Re),Tt(xt,ut,gt),nt(Re,xt,u),Nt(Re,Re,ut),nt(xt,xt,Re),nt(Re,ut,gt),nt(ut,Je,H),yt(Je,Nr),Xe(Re,Je,le),Xe(xt,ut,le);for(de=0;de<16;de++)H[de+16]=Re[de],H[de+32]=xt[de],H[de+48]=Je[de],H[de+64]=ut[de];var Yt=H.subarray(32),Gt=H.subarray(16);return Ir(Yt,Yt),nt(Gt,Gt,Yt),rt(B,Gt),0}function Fr(B,J){return kr(B,J,o)}function wn(B,J){return n(J,32),Fr(B,J)}function _r(B,J,F){var b=new Uint8Array(32);return kr(b,F,J),$(B,i,b,oe)}var en=$e,$r=me;function fi(B,J,F,b,H,le){var de=new Uint8Array(32);return _r(de,H,le),en(B,J,F,b,de)}function vi(B,J,F,b,H,le){var de=new Uint8Array(32);return _r(de,H,le),$r(B,J,F,b,de)}var Ei=[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 ki(B,J,F,b){for(var H=new Int32Array(16),le=new Int32Array(16),de,Re,Je,xt,ut,Nr,gt,Yt,Gt,sr,Et,Wt,Jt,er,mt,Ut,lt,At,Ct,st,ve,we,Fe,De,Le,Ge,Zt=B[0],ar=B[1],fr=B[2],lr=B[3],_=B[4],gr=B[5],Jr=B[6],Rr=B[7],dr=J[0],Mr=J[1],wr=J[2],Vn=J[3],qr=J[4],Cn=J[5],Bn=J[6],Pn=J[7],Un=0;b>=128;){for(Ct=0;Ct<16;Ct++)st=8*Ct+Un,H[Ct]=F[st+0]<<24|F[st+1]<<16|F[st+2]<<8|F[st+3],le[Ct]=F[st+4]<<24|F[st+5]<<16|F[st+6]<<8|F[st+7];for(Ct=0;Ct<80;Ct++)if(de=Zt,Re=ar,Je=fr,xt=lr,ut=_,Nr=gr,gt=Jr,Yt=Rr,Gt=dr,sr=Mr,Et=wr,Wt=Vn,Jt=qr,er=Cn,mt=Bn,Ut=Pn,ve=Rr,we=Pn,Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=(_>>>14|qr<<18)^(_>>>18|qr<<14)^(qr>>>9|_<<23),we=(qr>>>14|_<<18)^(qr>>>18|_<<14)^(_>>>9|qr<<23),Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,ve=_&gr^~_&Jr,we=qr&Cn^~qr&Bn,Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,ve=Ei[Ct*2],we=Ei[Ct*2+1],Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,ve=H[Ct%16],we=le[Ct%16],Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,lt=Le&65535|Ge<<16,At=Fe&65535|De<<16,ve=lt,we=At,Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=(Zt>>>28|dr<<4)^(dr>>>2|Zt<<30)^(dr>>>7|Zt<<25),we=(dr>>>28|Zt<<4)^(Zt>>>2|dr<<30)^(Zt>>>7|dr<<25),Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,ve=Zt&ar^Zt&fr^ar&fr,we=dr&Mr^dr&wr^Mr&wr,Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,Yt=Le&65535|Ge<<16,Ut=Fe&65535|De<<16,ve=xt,we=Wt,Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=lt,we=At,Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,xt=Le&65535|Ge<<16,Wt=Fe&65535|De<<16,ar=de,fr=Re,lr=Je,_=xt,gr=ut,Jr=Nr,Rr=gt,Zt=Yt,Mr=Gt,wr=sr,Vn=Et,qr=Wt,Cn=Jt,Bn=er,Pn=mt,dr=Ut,Ct%16===15)for(st=0;st<16;st++)ve=H[st],we=le[st],Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=H[(st+9)%16],we=le[(st+9)%16],Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,lt=H[(st+1)%16],At=le[(st+1)%16],ve=(lt>>>1|At<<31)^(lt>>>8|At<<24)^lt>>>7,we=(At>>>1|lt<<31)^(At>>>8|lt<<24)^(At>>>7|lt<<25),Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,lt=H[(st+14)%16],At=le[(st+14)%16],ve=(lt>>>19|At<<13)^(At>>>29|lt<<3)^lt>>>6,we=(At>>>19|lt<<13)^(lt>>>29|At<<3)^(At>>>6|lt<<26),Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,H[st]=Le&65535|Ge<<16,le[st]=Fe&65535|De<<16;ve=Zt,we=dr,Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=B[0],we=J[0],Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,B[0]=Zt=Le&65535|Ge<<16,J[0]=dr=Fe&65535|De<<16,ve=ar,we=Mr,Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=B[1],we=J[1],Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,B[1]=ar=Le&65535|Ge<<16,J[1]=Mr=Fe&65535|De<<16,ve=fr,we=wr,Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=B[2],we=J[2],Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,B[2]=fr=Le&65535|Ge<<16,J[2]=wr=Fe&65535|De<<16,ve=lr,we=Vn,Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=B[3],we=J[3],Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,B[3]=lr=Le&65535|Ge<<16,J[3]=Vn=Fe&65535|De<<16,ve=_,we=qr,Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=B[4],we=J[4],Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,B[4]=_=Le&65535|Ge<<16,J[4]=qr=Fe&65535|De<<16,ve=gr,we=Cn,Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=B[5],we=J[5],Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,B[5]=gr=Le&65535|Ge<<16,J[5]=Cn=Fe&65535|De<<16,ve=Jr,we=Bn,Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=B[6],we=J[6],Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,B[6]=Jr=Le&65535|Ge<<16,J[6]=Bn=Fe&65535|De<<16,ve=Rr,we=Pn,Fe=we&65535,De=we>>>16,Le=ve&65535,Ge=ve>>>16,ve=B[7],we=J[7],Fe+=we&65535,De+=we>>>16,Le+=ve&65535,Ge+=ve>>>16,De+=Fe>>>16,Le+=De>>>16,Ge+=Le>>>16,B[7]=Rr=Le&65535|Ge<<16,J[7]=Pn=Fe&65535|De<<16,Un+=128,b-=128}return b}function jn(B,J,F){var b=new Int32Array(8),H=new Int32Array(8),le=new Uint8Array(256),de,Re=F;for(b[0]=1779033703,b[1]=3144134277,b[2]=1013904242,b[3]=2773480762,b[4]=1359893119,b[5]=2600822924,b[6]=528734635,b[7]=1541459225,H[0]=4089235720,H[1]=2227873595,H[2]=4271175723,H[3]=1595750129,H[4]=2917565137,H[5]=725511199,H[6]=4215389547,H[7]=327033209,ki(b,H,J,F),F%=128,de=0;de<F;de++)le[de]=J[Re-F+de];for(le[F]=128,F=256-128*(F<112?1:0),le[F-9]=0,I(le,F-8,Re/536870912|0,Re<<3),ki(b,H,le,F),de=0;de<8;de++)I(B,8*de,b[de],H[de]);return 0}function ni(B,J){var F=r(),b=r(),H=r(),le=r(),de=r(),Re=r(),Je=r(),xt=r(),ut=r();Tt(F,B[1],B[0]),Tt(ut,J[1],J[0]),nt(F,F,ut),Nt(b,B[0],B[1]),Nt(ut,J[0],J[1]),nt(b,b,ut),nt(H,B[3],J[3]),nt(H,H,g),nt(le,B[2],J[2]),Nt(le,le,le),Tt(de,b,F),Tt(Re,le,H),Nt(Je,le,H),Nt(xt,b,F),nt(B[0],de,Re),nt(B[1],xt,Je),nt(B[2],Je,Re),nt(B[3],de,xt)}function jr(B,J,F){var b;for(b=0;b<4;b++)Xe(B[b],J[b],F)}function Zr(B,J){var F=r(),b=r(),H=r();Ir(H,J[2]),nt(F,J[0],H),nt(b,J[1],H),rt(B,b),B[31]^=It(F)<<7}function Jn(B,J,F){var b,H;for(be(B[0],s),be(B[1],a),be(B[2],a),be(B[3],s),H=255;H>=0;--H)b=F[H/8|0]>>(H&7)&1,jr(B,J,b),ni(J,B),ni(B,B),jr(B,J,b)}function Ji(B,J){var F=[r(),r(),r(),r()];be(F[0],y),be(F[1],E),be(F[2],a),nt(F[3],y,E),Jn(B,F,J)}function kn(B,J,F){var b=new Uint8Array(64),H=[r(),r(),r(),r()],le;for(F||n(J,32),jn(b,J,32),b[0]&=248,b[31]&=127,b[31]|=64,Ji(H,b),Zr(B,H),le=0;le<32;le++)J[le+32]=B[le];return 0}var Si=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 w(B,J){var F,b,H,le;for(b=63;b>=32;--b){for(F=0,H=b-32,le=b-12;H<le;++H)J[H]+=F-16*J[b]*Si[H-(b-32)],F=Math.floor((J[H]+128)/256),J[H]-=F*256;J[H]+=F,J[b]=0}for(F=0,H=0;H<32;H++)J[H]+=F-(J[31]>>4)*Si[H],F=J[H]>>8,J[H]&=255;for(H=0;H<32;H++)J[H]-=F*Si[H];for(b=0;b<32;b++)J[b+1]+=J[b]>>8,B[b]=J[b]&255}function S(B){var J=new Float64Array(64),F;for(F=0;F<64;F++)J[F]=B[F];for(F=0;F<64;F++)B[F]=0;w(B,J)}function R(B,J,F,b){var H=new Uint8Array(64),le=new Uint8Array(64),de=new Uint8Array(64),Re,Je,xt=new Float64Array(64),ut=[r(),r(),r(),r()];jn(H,b,32),H[0]&=248,H[31]&=127,H[31]|=64;var Nr=F+64;for(Re=0;Re<F;Re++)B[64+Re]=J[Re];for(Re=0;Re<32;Re++)B[32+Re]=H[32+Re];for(jn(de,B.subarray(32),F+32),S(de),Ji(ut,de),Zr(B,ut),Re=32;Re<64;Re++)B[Re]=b[Re];for(jn(le,B,F+64),S(le),Re=0;Re<64;Re++)xt[Re]=0;for(Re=0;Re<32;Re++)xt[Re]=de[Re];for(Re=0;Re<32;Re++)for(Je=0;Je<32;Je++)xt[Re+Je]+=le[Re]*H[Je];return w(B.subarray(32),xt),Nr}function L(B,J){var F=r(),b=r(),H=r(),le=r(),de=r(),Re=r(),Je=r();return be(B[2],a),Bt(B[1],J),yt(H,B[1]),nt(le,H,p),Tt(H,H,B[2]),Nt(le,B[2],le),yt(de,le),yt(Re,de),nt(Je,Re,de),nt(F,Je,H),nt(F,F,le),mr(F,F),nt(F,F,H),nt(F,F,le),nt(F,F,le),nt(B[0],F,le),yt(b,B[0]),nt(b,b,le),bt(b,H)&&nt(B[0],B[0],M),yt(b,B[0]),nt(b,b,le),bt(b,H)?-1:(It(B[0])===J[31]>>7&&Tt(B[0],s,B[0]),nt(B[3],B[0],B[1]),0)}function T(B,J,F,b){var H,le=new Uint8Array(32),de=new Uint8Array(64),Re=[r(),r(),r(),r()],Je=[r(),r(),r(),r()];if(F<64||L(Je,b))return-1;for(H=0;H<F;H++)B[H]=J[H];for(H=0;H<32;H++)B[H+32]=b[H];if(jn(de,B,F),S(de),Jn(Re,Je,de),Ji(Je,J.subarray(32)),ni(Re,Je),Zr(le,Re),F-=64,V(J,0,le,0)){for(H=0;H<F;H++)B[H]=0;return-1}for(H=0;H<F;H++)B[H]=J[H+64];return F}var D=32,ee=24,Ae=32,Te=16,Ve=32,it=32,Rt=32,zn=32,yi=32,In=ee,ra=Ae,na=Te,Zo=64,vs=32,ia=64,ke=32,$c=64;t.lowlevel={crypto_core_hsalsa20:$,crypto_stream_xor:Me,crypto_stream:Se,crypto_stream_salsa20_xor:ae,crypto_stream_salsa20:ue,crypto_onetimeauth:Pe,crypto_onetimeauth_verify:He,crypto_verify_16:O,crypto_verify_32:V,crypto_secretbox:$e,crypto_secretbox_open:me,crypto_scalarmult:kr,crypto_scalarmult_base:Fr,crypto_box_beforenm:_r,crypto_box_afternm:en,crypto_box:fi,crypto_box_open:vi,crypto_box_keypair:wn,crypto_hash:jn,crypto_sign:R,crypto_sign_keypair:kn,crypto_sign_open:T,crypto_secretbox_KEYBYTES:D,crypto_secretbox_NONCEBYTES:ee,crypto_secretbox_ZEROBYTES:Ae,crypto_secretbox_BOXZEROBYTES:Te,crypto_scalarmult_BYTES:Ve,crypto_scalarmult_SCALARBYTES:it,crypto_box_PUBLICKEYBYTES:Rt,crypto_box_SECRETKEYBYTES:zn,crypto_box_BEFORENMBYTES:yi,crypto_box_NONCEBYTES:In,crypto_box_ZEROBYTES:ra,crypto_box_BOXZEROBYTES:na,crypto_sign_BYTES:Zo,crypto_sign_PUBLICKEYBYTES:vs,crypto_sign_SECRETKEYBYTES:ia,crypto_sign_SEEDBYTES:ke,crypto_hash_BYTES:$c,gf:r,D:p,L:Si,pack25519:rt,unpack25519:Bt,M:nt,A:Nt,S:yt,Z:Tt,pow2523:mr,add:ni,set25519:be,modL:w,scalarmult:Jn,scalarbase:Ji};function oa(B,J){if(B.length!==D)throw new Error("bad key size");if(J.length!==ee)throw new Error("bad nonce size")}function ld(B,J){if(B.length!==Rt)throw new Error("bad public key size");if(J.length!==zn)throw new Error("bad secret key size")}function Yi(){for(var B=0;B<arguments.length;B++)if(!(arguments[B]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function eu(B){for(var J=0;J<B.length;J++)B[J]=0}t.randomBytes=function(B){var J=new Uint8Array(B);return n(J,B),J},t.secretbox=function(B,J,F){Yi(B,J,F),oa(F,J);for(var b=new Uint8Array(Ae+B.length),H=new Uint8Array(b.length),le=0;le<B.length;le++)b[le+Ae]=B[le];return $e(H,b,b.length,J,F),H.subarray(Te)},t.secretbox.open=function(B,J,F){Yi(B,J,F),oa(F,J);for(var b=new Uint8Array(Te+B.length),H=new Uint8Array(b.length),le=0;le<B.length;le++)b[le+Te]=B[le];return b.length<32||me(H,b,b.length,J,F)!==0?null:H.subarray(Ae)},t.secretbox.keyLength=D,t.secretbox.nonceLength=ee,t.secretbox.overheadLength=Te,t.scalarMult=function(B,J){if(Yi(B,J),B.length!==it)throw new Error("bad n size");if(J.length!==Ve)throw new Error("bad p size");var F=new Uint8Array(Ve);return kr(F,B,J),F},t.scalarMult.base=function(B){if(Yi(B),B.length!==it)throw new Error("bad n size");var J=new Uint8Array(Ve);return Fr(J,B),J},t.scalarMult.scalarLength=it,t.scalarMult.groupElementLength=Ve,t.box=function(B,J,F,b){var H=t.box.before(F,b);return t.secretbox(B,J,H)},t.box.before=function(B,J){Yi(B,J),ld(B,J);var F=new Uint8Array(yi);return _r(F,B,J),F},t.box.after=t.secretbox,t.box.open=function(B,J,F,b){var H=t.box.before(F,b);return t.secretbox.open(B,J,H)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var B=new Uint8Array(Rt),J=new Uint8Array(zn);return wn(B,J),{publicKey:B,secretKey:J}},t.box.keyPair.fromSecretKey=function(B){if(Yi(B),B.length!==zn)throw new Error("bad secret key size");var J=new Uint8Array(Rt);return Fr(J,B),{publicKey:J,secretKey:new Uint8Array(B)}},t.box.publicKeyLength=Rt,t.box.secretKeyLength=zn,t.box.sharedKeyLength=yi,t.box.nonceLength=In,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(B,J){if(Yi(B,J),J.length!==ia)throw new Error("bad secret key size");var F=new Uint8Array(Zo+B.length);return R(F,B,B.length,J),F},t.sign.open=function(B,J){if(Yi(B,J),J.length!==vs)throw new Error("bad public key size");var F=new Uint8Array(B.length),b=T(F,B,B.length,J);if(b<0)return null;for(var H=new Uint8Array(b),le=0;le<H.length;le++)H[le]=F[le];return H},t.sign.detached=function(B,J){for(var F=t.sign(B,J),b=new Uint8Array(Zo),H=0;H<b.length;H++)b[H]=F[H];return b},t.sign.detached.verify=function(B,J,F){if(Yi(B,J,F),J.length!==Zo)throw new Error("bad signature size");if(F.length!==vs)throw new Error("bad public key size");var b=new Uint8Array(Zo+B.length),H=new Uint8Array(Zo+B.length),le;for(le=0;le<Zo;le++)b[le]=J[le];for(le=0;le<B.length;le++)b[le+Zo]=B[le];return T(H,b,b.length,F)>=0},t.sign.keyPair=function(){var B=new Uint8Array(vs),J=new Uint8Array(ia);return kn(B,J),{publicKey:B,secretKey:J}},t.sign.keyPair.fromSecretKey=function(B){if(Yi(B),B.length!==ia)throw new Error("bad secret key size");for(var J=new Uint8Array(vs),F=0;F<J.length;F++)J[F]=B[32+F];return{publicKey:J,secretKey:new Uint8Array(B)}},t.sign.keyPair.fromSeed=function(B){if(Yi(B),B.length!==ke)throw new Error("bad seed size");for(var J=new Uint8Array(vs),F=new Uint8Array(ia),b=0;b<32;b++)F[b]=B[b];return kn(J,F,!0),{publicKey:J,secretKey:F}},t.sign.publicKeyLength=vs,t.sign.secretKeyLength=ia,t.sign.seedLength=ke,t.sign.signatureLength=Zo,t.hash=function(B){Yi(B);var J=new Uint8Array($c);return jn(J,B,B.length),J},t.hash.hashLength=$c,t.verify=function(B,J){return Yi(B,J),B.length===0||J.length===0||B.length!==J.length?!1:N(B,0,J,0,B.length)===0},t.setPRNG=function(B){n=B},function(){var B=typeof self<"u"?self.crypto||self.msCrypto:null;if(B&&B.getRandomValues){var J=65536;t.setPRNG(function(F,b){var H,le=new Uint8Array(b);for(H=0;H<b;H+=J)B.getRandomValues(le.subarray(H,H+Math.min(b-H,J)));for(H=0;H<b;H++)F[H]=le[H];eu(le)})}else typeof Mae<"u"&&(B=Nae,B&&B.randomBytes&&t.setPRNG(function(F,b){var H,le=B.randomBytes(b);for(H=0;H<b;H++)F[H]=le[H];eu(le)}))}()})(e.exports?e.exports:self.nacl=self.nacl||{})})(ZV);var Rae=ZV.exports;const Dae=VP(Rae),PC=32;let KV=class extends $2{constructor(t){if(super(),typeof t=="string"?this.data=Su(t):t instanceof Uint8Array?this.data=t:this.data=Uint8Array.from(t),this.data.length!==PC)throw new Error(`Invalid public key input. Expected ${PC} bytes, got ${this.data.length}`)}equals(t){return super.equals(t)}toRawBytes(){return this.data}flag(){return ph.ED25519}async verify(t,r){let n;if(typeof r=="string"){const i=Jm(r);if(i.signatureScheme!=="ED25519")throw new Error("Invalid signature scheme");if(!Vm(this.toRawBytes(),i.publicKey))throw new Error("Signature does not match public key");n=i.signature}else n=r;return Dae.sign.detached.verify(t,n,this.toRawBytes())}};KV.SIZE=PC;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const YV=BigInt(0),J3=BigInt(1),Lae=BigInt(2);function hg(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function rw(e){if(!hg(e))throw new Error("Uint8Array expected")}const Pae=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Hm(e){rw(e);let t="";for(let r=0;r<e.length;r++)t+=Pae[e[r]];return t}function XV(e){const t=e.toString(16);return t.length&1?`0${t}`:t}function VC(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return BigInt(e===""?"0":`0x${e}`)}const gh={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function qV(e){if(e>=gh._0&&e<=gh._9)return e-gh._0;if(e>=gh._A&&e<=gh._F)return e-(gh._A-10);if(e>=gh._a&&e<=gh._f)return e-(gh._a-10)}function Gm(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let i=0,o=0;i<r;i++,o+=2){const s=qV(e.charCodeAt(o)),a=qV(e.charCodeAt(o+1));if(s===void 0||a===void 0){const u=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+u+'" at index '+o)}n[i]=s*16+a}return n}function pg(e){return VC(Hm(e))}function FC(e){return rw(e),VC(Hm(Uint8Array.from(e).reverse()))}function Wm(e,t){return Gm(e.toString(16).padStart(t*2,"0"))}function jC(e,t){return Wm(e,t).reverse()}function Vae(e){return Gm(XV(e))}function ef(e,t,r){let n;if(typeof t=="string")try{n=Gm(t)}catch(o){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${o}`)}else if(hg(t))n=Uint8Array.from(t);else throw new Error(`${e} must be hex string or Uint8Array`);const i=n.length;if(typeof r=="number"&&i!==r)throw new Error(`${e} expected ${r} bytes, got ${i}`);return n}function nw(...e){let t=0;for(let n=0;n<e.length;n++){const i=e[n];rw(i),t+=i.length}const r=new Uint8Array(t);for(let n=0,i=0;n<e.length;n++){const o=e[n];r.set(o,i),i+=o.length}return r}function Fae(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return r===0}function jae(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Jae(e){let t;for(t=0;e>YV;e>>=J3,t+=1);return t}function zae(e,t){return e>>BigInt(t)&J3}function Hae(e,t,r){return e|(r?J3:YV)<<BigInt(t)}const JC=e=>(Lae<<BigInt(e-1))-J3,zC=e=>new Uint8Array(e),_V=e=>Uint8Array.from(e);function $V(e,t,r){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let n=zC(e),i=zC(e),o=0;const s=()=>{n.fill(1),i.fill(0),o=0},a=(...g)=>r(i,n,...g),u=(g=zC())=>{i=a(_V([0]),g),n=a(),g.length!==0&&(i=a(_V([1]),g),n=a())},p=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let g=0;const y=[];for(;g<t;){n=a();const E=n.slice();y.push(E),g+=n.length}return nw(...y)};return(g,y)=>{s(),u(g);let E;for(;!(E=y(p()));)u();return s(),E}}const Gae={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||hg(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function iw(e,t,r={}){const n=(i,o,s)=>{const a=Gae[o];if(typeof a!="function")throw new Error(`Invalid validator "${o}", expected function`);const u=e[i];if(!(s&&u===void 0)&&!a(u,e))throw new Error(`Invalid param ${String(i)}=${u} (${typeof u}), expected ${o}`)};for(const[i,o]of Object.entries(t))n(i,o,!1);for(const[i,o]of Object.entries(r))n(i,o,!0);return e}const Wae=Object.freeze(Object.defineProperty({__proto__:null,abytes:rw,bitGet:zae,bitLen:Jae,bitMask:JC,bitSet:Hae,bytesToHex:Hm,bytesToNumberBE:pg,bytesToNumberLE:FC,concatBytes:nw,createHmacDrbg:$V,ensureBytes:ef,equalBytes:Fae,hexToBytes:Gm,hexToNumber:VC,isBytes:hg,numberToBytesBE:Wm,numberToBytesLE:jC,numberToHexUnpadded:XV,numberToVarBytesBE:Vae,utf8ToBytes:jae,validateObject:iw},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ua=BigInt(0),zs=BigInt(1),gg=BigInt(2),Qae=BigInt(3),HC=BigInt(4),eF=BigInt(5),tF=BigInt(8);BigInt(9),BigInt(16);function Xc(e,t){const r=e%t;return r>=Ua?r:t+r}function Zae(e,t,r){if(r<=Ua||t<Ua)throw new Error("Expected power/modulo > 0");if(r===zs)return Ua;let n=zs;for(;t>Ua;)t&zs&&(n=n*e%r),e=e*e%r,t>>=zs;return n}function al(e,t,r){let n=e;for(;t-- >Ua;)n*=n,n%=r;return n}function GC(e,t){if(e===Ua||t<=Ua)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=Xc(e,t),n=t,i=Ua,o=zs;for(;r!==Ua;){const s=n/r,a=n%r,u=i-o*s;n=r,r=a,i=o,o=u}if(n!==zs)throw new Error("invert: does not exist");return Xc(i,t)}function Kae(e){const t=(e-zs)/gg;let r,n,i;for(r=e-zs,n=0;r%gg===Ua;r/=gg,n++);for(i=gg;i<e&&Zae(i,t,e)!==e-zs;i++);if(n===1){const s=(e+zs)/HC;return function(a,u){const p=a.pow(u,s);if(!a.eql(a.sqr(p),u))throw new Error("Cannot find square root");return p}}const o=(r+zs)/gg;return function(s,a){if(s.pow(a,t)===s.neg(s.ONE))throw new Error("Cannot find square root");let u=n,p=s.pow(s.mul(s.ONE,i),r),g=s.pow(a,o),y=s.pow(a,r);for(;!s.eql(y,s.ONE);){if(s.eql(y,s.ZERO))return s.ZERO;let E=1;for(let I=s.sqr(y);E<u&&!s.eql(I,s.ONE);E++)I=s.sqr(I);const M=s.pow(p,zs<<BigInt(u-E-1));p=s.sqr(M),g=s.mul(g,M),y=s.mul(y,p),u=E}return g}}function Yae(e){if(e%HC===Qae){const t=(e+zs)/HC;return function(r,n){const i=r.pow(n,t);if(!r.eql(r.sqr(i),n))throw new Error("Cannot find square root");return i}}if(e%tF===eF){const t=(e-eF)/tF;return function(r,n){const i=r.mul(n,gg),o=r.pow(i,t),s=r.mul(n,o),a=r.mul(r.mul(s,gg),o),u=r.mul(s,r.sub(a,r.ONE));if(!r.eql(r.sqr(u),n))throw new Error("Cannot find square root");return u}}return Kae(e)}const Xae=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function qae(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=Xae.reduce((n,i)=>(n[i]="function",n),t);return iw(e,r)}function _ae(e,t,r){if(r<Ua)throw new Error("Expected power > 0");if(r===Ua)return e.ONE;if(r===zs)return t;let n=e.ONE,i=t;for(;r>Ua;)r&zs&&(n=e.mul(n,i)),i=e.sqr(i),r>>=zs;return n}function $ae(e,t){const r=new Array(t.length),n=t.reduce((o,s,a)=>e.is0(s)?o:(r[a]=o,e.mul(o,s)),e.ONE),i=e.inv(n);return t.reduceRight((o,s,a)=>e.is0(s)?o:(r[a]=e.mul(o,r[a]),e.mul(o,s)),i),r}function rF(e,t){const r=t!==void 0?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function nF(e,t,r=!1,n={}){if(e<=Ua)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:i,nByteLength:o}=rF(e,t);if(o>2048)throw new Error("Field lengths over 2048 bytes are not supported");const s=Yae(e),a=Object.freeze({ORDER:e,BITS:i,BYTES:o,MASK:JC(i),ZERO:Ua,ONE:zs,create:u=>Xc(u,e),isValid:u=>{if(typeof u!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof u}`);return Ua<=u&&u<e},is0:u=>u===Ua,isOdd:u=>(u&zs)===zs,neg:u=>Xc(-u,e),eql:(u,p)=>u===p,sqr:u=>Xc(u*u,e),add:(u,p)=>Xc(u+p,e),sub:(u,p)=>Xc(u-p,e),mul:(u,p)=>Xc(u*p,e),pow:(u,p)=>_ae(a,u,p),div:(u,p)=>Xc(u*GC(p,e),e),sqrN:u=>u*u,addN:(u,p)=>u+p,subN:(u,p)=>u-p,mulN:(u,p)=>u*p,inv:u=>GC(u,e),sqrt:n.sqrt||(u=>s(a,u)),invertBatch:u=>$ae(a,u),cmov:(u,p,g)=>g?p:u,toBytes:u=>r?jC(u,o):Wm(u,o),fromBytes:u=>{if(u.length!==o)throw new Error(`Fp.fromBytes: expected ${o}, got ${u.length}`);return r?FC(u):pg(u)}});return Object.freeze(a)}function iF(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function oF(e){const t=iF(e);return t+Math.ceil(t/2)}function ece(e,t,r=!1){const n=e.length,i=iF(t),o=oF(t);if(n<16||n<o||n>1024)throw new Error(`expected ${o}-1024 bytes of input, got ${n}`);const s=r?pg(e):FC(e),a=Xc(s,t-zs)+zs;return r?jC(a,i):Wm(a,i)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const tce=BigInt(0),WC=BigInt(1);function rce(e,t){const r=(i,o)=>{const s=o.negate();return i?s:o},n=i=>{const o=Math.ceil(t/i)+1,s=2**(i-1);return{windows:o,windowSize:s}};return{constTimeNegate:r,unsafeLadder(i,o){let s=e.ZERO,a=i;for(;o>tce;)o&WC&&(s=s.add(a)),a=a.double(),o>>=WC;return s},precomputeWindow(i,o){const{windows:s,windowSize:a}=n(o),u=[];let p=i,g=p;for(let y=0;y<s;y++){g=p,u.push(g);for(let E=1;E<a;E++)g=g.add(p),u.push(g);p=g.double()}return u},wNAF(i,o,s){const{windows:a,windowSize:u}=n(i);let p=e.ZERO,g=e.BASE;const y=BigInt(2**i-1),E=2**i,M=BigInt(i);for(let I=0;I<a;I++){const N=I*u;let O=Number(s&y);s>>=M,O>u&&(O-=E,s+=WC);const V=N,Z=N+Math.abs(O)-1,Q=I%2!==0,K=O<0;O===0?g=g.add(r(Q,o[V])):p=p.add(r(K,o[Z]))}return{p,f:g}},wNAFCached(i,o,s,a){const u=i._WINDOW_SIZE||1;let p=o.get(i);return p||(p=this.precomputeWindow(i,u),u!==1&&o.set(i,a(p))),this.wNAF(u,p,s)}}}function sF(e){return qae(e.Fp),iw(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...rF(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function nce(e){const t=sF(e);iw(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a:i}=t;if(r){if(!n.eql(i,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof r!="object"||typeof r.beta!="bigint"||typeof r.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}const{bytesToNumberBE:ice,hexToBytes:oce}=Wae,mg={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){const{Err:t}=mg;if(e.length<2||e[0]!==2)throw new t("Invalid signature integer tag");const r=e[1],n=e.subarray(2,r+2);if(!r||n.length!==r)throw new t("Invalid signature integer: wrong length");if(n[0]&128)throw new t("Invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new t("Invalid signature integer: unnecessary leading zero");return{d:ice(n),l:e.subarray(r+2)}},toSig(e){const{Err:t}=mg,r=typeof e=="string"?oce(e):e;rw(r);let n=r.length;if(n<2||r[0]!=48)throw new t("Invalid signature tag");if(r[1]!==n-2)throw new t("Invalid signature: incorrect length");const{d:i,l:o}=mg._parseInt(r.subarray(2)),{d:s,l:a}=mg._parseInt(o);if(a.length)throw new t("Invalid signature: left bytes after parsing");return{r:i,s}},hexFromSig(e){const t=p=>Number.parseInt(p[0],16)&8?"00"+p:p,r=p=>{const g=p.toString(16);return g.length&1?`0${g}`:g},n=t(r(e.s)),i=t(r(e.r)),o=n.length/2,s=i.length/2,a=r(o),u=r(s);return`30${r(s+o+4)}02${u}${i}02${a}${n}`}},mh=BigInt(0),cl=BigInt(1);BigInt(2);const aF=BigInt(3);BigInt(4);function sce(e){const t=nce(e),{Fp:r}=t,n=t.toBytes||((I,N,O)=>{const V=N.toAffine();return nw(Uint8Array.from([4]),r.toBytes(V.x),r.toBytes(V.y))}),i=t.fromBytes||(I=>{const N=I.subarray(1),O=r.fromBytes(N.subarray(0,r.BYTES)),V=r.fromBytes(N.subarray(r.BYTES,2*r.BYTES));return{x:O,y:V}});function o(I){const{a:N,b:O}=t,V=r.sqr(I),Z=r.mul(V,I);return r.add(r.add(Z,r.mul(I,N)),O)}if(!r.eql(r.sqr(t.Gy),o(t.Gx)))throw new Error("bad generator point: equation left != right");function s(I){return typeof I=="bigint"&&mh<I&&I<t.n}function a(I){if(!s(I))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function u(I){const{allowedPrivateKeyLengths:N,nByteLength:O,wrapPrivateKey:V,n:Z}=t;if(N&&typeof I!="bigint"){if(hg(I)&&(I=Hm(I)),typeof I!="string"||!N.includes(I.length))throw new Error("Invalid key");I=I.padStart(O*2,"0")}let Q;try{Q=typeof I=="bigint"?I:pg(ef("private key",I,O))}catch{throw new Error(`private key must be ${O} bytes, hex or bigint, not ${typeof I}`)}return V&&(Q=Xc(Q,Z)),a(Q),Q}const p=new Map;function g(I){if(!(I instanceof y))throw new Error("ProjectivePoint expected")}class y{constructor(N,O,V){if(this.px=N,this.py=O,this.pz=V,N==null||!r.isValid(N))throw new Error("x required");if(O==null||!r.isValid(O))throw new Error("y required");if(V==null||!r.isValid(V))throw new Error("z required")}static fromAffine(N){const{x:O,y:V}=N||{};if(!N||!r.isValid(O)||!r.isValid(V))throw new Error("invalid affine point");if(N instanceof y)throw new Error("projective point not allowed");const Z=Q=>r.eql(Q,r.ZERO);return Z(O)&&Z(V)?y.ZERO:new y(O,V,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(N){const O=r.invertBatch(N.map(V=>V.pz));return N.map((V,Z)=>V.toAffine(O[Z])).map(y.fromAffine)}static fromHex(N){const O=y.fromAffine(i(ef("pointHex",N)));return O.assertValidity(),O}static fromPrivateKey(N){return y.BASE.multiply(u(N))}_setWindowSize(N){this._WINDOW_SIZE=N,p.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:N,y:O}=this.toAffine();if(!r.isValid(N)||!r.isValid(O))throw new Error("bad point: x or y not FE");const V=r.sqr(O),Z=o(N);if(!r.eql(V,Z))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:N}=this.toAffine();if(r.isOdd)return!r.isOdd(N);throw new Error("Field doesn't support isOdd")}equals(N){g(N);const{px:O,py:V,pz:Z}=this,{px:Q,py:K,pz:$}=N,oe=r.eql(r.mul(O,$),r.mul(Q,Z)),ae=r.eql(r.mul(V,$),r.mul(K,Z));return oe&&ae}negate(){return new y(this.px,r.neg(this.py),this.pz)}double(){const{a:N,b:O}=t,V=r.mul(O,aF),{px:Z,py:Q,pz:K}=this;let $=r.ZERO,oe=r.ZERO,ae=r.ZERO,ue=r.mul(Z,Z),Se=r.mul(Q,Q),Me=r.mul(K,K),ge=r.mul(Z,Q);return ge=r.add(ge,ge),ae=r.mul(Z,K),ae=r.add(ae,ae),$=r.mul(N,ae),oe=r.mul(V,Me),oe=r.add($,oe),$=r.sub(Se,oe),oe=r.add(Se,oe),oe=r.mul($,oe),$=r.mul(ge,$),ae=r.mul(V,ae),Me=r.mul(N,Me),ge=r.sub(ue,Me),ge=r.mul(N,ge),ge=r.add(ge,ae),ae=r.add(ue,ue),ue=r.add(ae,ue),ue=r.add(ue,Me),ue=r.mul(ue,ge),oe=r.add(oe,ue),Me=r.mul(Q,K),Me=r.add(Me,Me),ue=r.mul(Me,ge),$=r.sub($,ue),ae=r.mul(Me,Se),ae=r.add(ae,ae),ae=r.add(ae,ae),new y($,oe,ae)}add(N){g(N);const{px:O,py:V,pz:Z}=this,{px:Q,py:K,pz:$}=N;let oe=r.ZERO,ae=r.ZERO,ue=r.ZERO;const Se=t.a,Me=r.mul(t.b,aF);let ge=r.mul(O,Q),Pe=r.mul(V,K),He=r.mul(Z,$),$e=r.add(O,V),me=r.add(Q,K);$e=r.mul($e,me),me=r.add(ge,Pe),$e=r.sub($e,me),me=r.add(O,Z);let be=r.add(Q,$);return me=r.mul(me,be),be=r.add(ge,He),me=r.sub(me,be),be=r.add(V,Z),oe=r.add(K,$),be=r.mul(be,oe),oe=r.add(Pe,He),be=r.sub(be,oe),ue=r.mul(Se,me),oe=r.mul(Me,He),ue=r.add(oe,ue),oe=r.sub(Pe,ue),ue=r.add(Pe,ue),ae=r.mul(oe,ue),Pe=r.add(ge,ge),Pe=r.add(Pe,ge),He=r.mul(Se,He),me=r.mul(Me,me),Pe=r.add(Pe,He),He=r.sub(ge,He),He=r.mul(Se,He),me=r.add(me,He),ge=r.mul(Pe,me),ae=r.add(ae,ge),ge=r.mul(be,me),oe=r.mul($e,oe),oe=r.sub(oe,ge),ge=r.mul($e,Pe),ue=r.mul(be,ue),ue=r.add(ue,ge),new y(oe,ae,ue)}subtract(N){return this.add(N.negate())}is0(){return this.equals(y.ZERO)}wNAF(N){return M.wNAFCached(this,p,N,O=>{const V=r.invertBatch(O.map(Z=>Z.pz));return O.map((Z,Q)=>Z.toAffine(V[Q])).map(y.fromAffine)})}multiplyUnsafe(N){const O=y.ZERO;if(N===mh)return O;if(a(N),N===cl)return this;const{endo:V}=t;if(!V)return M.unsafeLadder(this,N);let{k1neg:Z,k1:Q,k2neg:K,k2:$}=V.splitScalar(N),oe=O,ae=O,ue=this;for(;Q>mh||$>mh;)Q&cl&&(oe=oe.add(ue)),$&cl&&(ae=ae.add(ue)),ue=ue.double(),Q>>=cl,$>>=cl;return Z&&(oe=oe.negate()),K&&(ae=ae.negate()),ae=new y(r.mul(ae.px,V.beta),ae.py,ae.pz),oe.add(ae)}multiply(N){a(N);let O=N,V,Z;const{endo:Q}=t;if(Q){const{k1neg:K,k1:$,k2neg:oe,k2:ae}=Q.splitScalar(O);let{p:ue,f:Se}=this.wNAF($),{p:Me,f:ge}=this.wNAF(ae);ue=M.constTimeNegate(K,ue),Me=M.constTimeNegate(oe,Me),Me=new y(r.mul(Me.px,Q.beta),Me.py,Me.pz),V=ue.add(Me),Z=Se.add(ge)}else{const{p:K,f:$}=this.wNAF(O);V=K,Z=$}return y.normalizeZ([V,Z])[0]}multiplyAndAddUnsafe(N,O,V){const Z=y.BASE,Q=($,oe)=>oe===mh||oe===cl||!$.equals(Z)?$.multiplyUnsafe(oe):$.multiply(oe),K=Q(this,O).add(Q(N,V));return K.is0()?void 0:K}toAffine(N){const{px:O,py:V,pz:Z}=this,Q=this.is0();N==null&&(N=Q?r.ONE:r.inv(Z));const K=r.mul(O,N),$=r.mul(V,N),oe=r.mul(Z,N);if(Q)return{x:r.ZERO,y:r.ZERO};if(!r.eql(oe,r.ONE))throw new Error("invZ was invalid");return{x:K,y:$}}isTorsionFree(){const{h:N,isTorsionFree:O}=t;if(N===cl)return!0;if(O)return O(y,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:N,clearCofactor:O}=t;return N===cl?this:O?O(y,this):this.multiplyUnsafe(t.h)}toRawBytes(N=!0){return this.assertValidity(),n(y,this,N)}toHex(N=!0){return Hm(this.toRawBytes(N))}}y.BASE=new y(t.Gx,t.Gy,r.ONE),y.ZERO=new y(r.ZERO,r.ONE,r.ZERO);const E=t.nBitLength,M=rce(y,t.endo?Math.ceil(E/2):E);return{CURVE:t,ProjectivePoint:y,normPrivateKeyToScalar:u,weierstrassEquation:o,isWithinCurveOrder:s}}function ace(e){const t=sF(e);return iw(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function cce(e){const t=ace(e),{Fp:r,n}=t,i=r.BYTES+1,o=2*r.BYTES+1;function s(me){return mh<me&&me<r.ORDER}function a(me){return Xc(me,n)}function u(me){return GC(me,n)}const{ProjectivePoint:p,normPrivateKeyToScalar:g,weierstrassEquation:y,isWithinCurveOrder:E}=sce({...t,toBytes(me,be,Qe){const Xe=be.toAffine(),rt=r.toBytes(Xe.x),bt=nw;return Qe?bt(Uint8Array.from([be.hasEvenY()?2:3]),rt):bt(Uint8Array.from([4]),rt,r.toBytes(Xe.y))},fromBytes(me){const be=me.length,Qe=me[0],Xe=me.subarray(1);if(be===i&&(Qe===2||Qe===3)){const rt=pg(Xe);if(!s(rt))throw new Error("Point is not on curve");const bt=y(rt);let It;try{It=r.sqrt(bt)}catch(Nt){const Tt=Nt instanceof Error?": "+Nt.message:"";throw new Error("Point is not on curve"+Tt)}const Bt=(It&cl)===cl;return(Qe&1)===1!==Bt&&(It=r.neg(It)),{x:rt,y:It}}else if(be===o&&Qe===4){const rt=r.fromBytes(Xe.subarray(0,r.BYTES)),bt=r.fromBytes(Xe.subarray(r.BYTES,2*r.BYTES));return{x:rt,y:bt}}else throw new Error(`Point of length ${be} was invalid. Expected ${i} compressed bytes or ${o} uncompressed bytes`)}}),M=me=>Hm(Wm(me,t.nByteLength));function I(me){const be=n>>cl;return me>be}function N(me){return I(me)?a(-me):me}const O=(me,be,Qe)=>pg(me.slice(be,Qe));class V{constructor(be,Qe,Xe){this.r=be,this.s=Qe,this.recovery=Xe,this.assertValidity()}static fromCompact(be){const Qe=t.nByteLength;return be=ef("compactSignature",be,Qe*2),new V(O(be,0,Qe),O(be,Qe,2*Qe))}static fromDER(be){const{r:Qe,s:Xe}=mg.toSig(ef("DER",be));return new V(Qe,Xe)}assertValidity(){if(!E(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!E(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(be){return new V(this.r,this.s,be)}recoverPublicKey(be){const{r:Qe,s:Xe,recovery:rt}=this,bt=ae(ef("msgHash",be));if(rt==null||![0,1,2,3].includes(rt))throw new Error("recovery id invalid");const It=rt===2||rt===3?Qe+t.n:Qe;if(It>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const Bt=rt&1?"03":"02",Nt=p.fromHex(Bt+M(It)),Tt=u(It),nt=a(-bt*Tt),yt=a(Xe*Tt),Ir=p.BASE.multiplyAndAddUnsafe(Nt,nt,yt);if(!Ir)throw new Error("point at infinify");return Ir.assertValidity(),Ir}hasHighS(){return I(this.s)}normalizeS(){return this.hasHighS()?new V(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return Gm(this.toDERHex())}toDERHex(){return mg.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Gm(this.toCompactHex())}toCompactHex(){return M(this.r)+M(this.s)}}const Z={isValidPrivateKey(me){try{return g(me),!0}catch{return!1}},normPrivateKeyToScalar:g,randomPrivateKey:()=>{const me=oF(t.n);return ece(t.randomBytes(me),t.n)},precompute(me=8,be=p.BASE){return be._setWindowSize(me),be.multiply(BigInt(3)),be}};function Q(me,be=!0){return p.fromPrivateKey(me).toRawBytes(be)}function K(me){const be=hg(me),Qe=typeof me=="string",Xe=(be||Qe)&&me.length;return be?Xe===i||Xe===o:Qe?Xe===2*i||Xe===2*o:me instanceof p}function $(me,be,Qe=!0){if(K(me))throw new Error("first arg must be private key");if(!K(be))throw new Error("second arg must be public key");return p.fromHex(be).multiply(g(me)).toRawBytes(Qe)}const oe=t.bits2int||function(me){const be=pg(me),Qe=me.length*8-t.nBitLength;return Qe>0?be>>BigInt(Qe):be},ae=t.bits2int_modN||function(me){return a(oe(me))},ue=JC(t.nBitLength);function Se(me){if(typeof me!="bigint")throw new Error("bigint expected");if(!(mh<=me&&me<ue))throw new Error(`bigint expected < 2^${t.nBitLength}`);return Wm(me,t.nByteLength)}function Me(me,be,Qe=ge){if(["recovered","canonical"].some(kr=>kr in Qe))throw new Error("sign() legacy options not supported");const{hash:Xe,randomBytes:rt}=t;let{lowS:bt,prehash:It,extraEntropy:Bt}=Qe;bt==null&&(bt=!0),me=ef("msgHash",me),It&&(me=ef("prehashed msgHash",Xe(me)));const Nt=ae(me),Tt=g(be),nt=[Se(Tt),Se(Nt)];if(Bt!=null&&Bt!==!1){const kr=Bt===!0?rt(r.BYTES):Bt;nt.push(ef("extraEntropy",kr))}const yt=nw(...nt),Ir=Nt;function mr(kr){const Fr=oe(kr);if(!E(Fr))return;const wn=u(Fr),_r=p.BASE.multiply(Fr).toAffine(),en=a(_r.x);if(en===mh)return;const $r=a(wn*a(Ir+en*Tt));if($r===mh)return;let fi=(_r.x===en?0:2)|Number(_r.y&cl),vi=$r;return bt&&I($r)&&(vi=N($r),fi^=1),new V(en,vi,fi)}return{seed:yt,k2sig:mr}}const ge={lowS:t.lowS,prehash:!1},Pe={lowS:t.lowS,prehash:!1};function He(me,be,Qe=ge){const{seed:Xe,k2sig:rt}=Me(me,be,Qe),bt=t;return $V(bt.hash.outputLen,bt.nByteLength,bt.hmac)(Xe,rt)}p.BASE._setWindowSize(8);function $e(me,be,Qe,Xe=Pe){var rt;const bt=me;if(be=ef("msgHash",be),Qe=ef("publicKey",Qe),"strict"in Xe)throw new Error("options.strict was renamed to lowS");const{lowS:It,prehash:Bt}=Xe;let Nt,Tt;try{if(typeof bt=="string"||hg(bt))try{Nt=V.fromDER(bt)}catch(_r){if(!(_r instanceof mg.Err))throw _r;Nt=V.fromCompact(bt)}else if(typeof bt=="object"&&typeof bt.r=="bigint"&&typeof bt.s=="bigint"){const{r:_r,s:en}=bt;Nt=new V(_r,en)}else throw new Error("PARSE");Tt=p.fromHex(Qe)}catch(_r){if(_r.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(It&&Nt.hasHighS())return!1;Bt&&(be=t.hash(be));const{r:nt,s:yt}=Nt,Ir=ae(be),mr=u(yt),kr=a(Ir*mr),Fr=a(nt*mr),wn=(rt=p.BASE.multiplyAndAddUnsafe(Tt,kr,Fr))==null?void 0:rt.toAffine();return wn?a(wn.x)===nt:!1}return{CURVE:t,getPublicKey:Q,getSharedSecret:$,sign:He,verify:$e,ProjectivePoint:p,Signature:V,utils:Z}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function uce(e){return{hash:e,hmac:(t,...r)=>HV(e,t,Hoe(...r)),randomBytes:Qoe}}function cF(e,t){const r=n=>cce({...e,...uce(n)});return Object.freeze({...r(t),create:r})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const uF=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),lF=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),lce=BigInt(1),QC=BigInt(2),fF=(e,t)=>(e+t/QC)/t;function fce(e){const t=uF,r=BigInt(3),n=BigInt(6),i=BigInt(11),o=BigInt(22),s=BigInt(23),a=BigInt(44),u=BigInt(88),p=e*e*e%t,g=p*p*e%t,y=al(g,r,t)*g%t,E=al(y,r,t)*g%t,M=al(E,QC,t)*p%t,I=al(M,i,t)*M%t,N=al(I,o,t)*I%t,O=al(N,a,t)*N%t,V=al(O,u,t)*O%t,Z=al(V,a,t)*N%t,Q=al(Z,r,t)*g%t,K=al(Q,s,t)*I%t,$=al(K,n,t)*p%t,oe=al($,QC,t);if(!ZC.eql(ZC.sqr(oe),e))throw new Error("Cannot find square root");return oe}const ZC=nF(uF,void 0,void 0,{sqrt:fce}),KC=cF({a:BigInt(0),b:BigInt(7),Fp:ZC,n:lF,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=lF,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-lce*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,s=BigInt("0x100000000000000000000000000000000"),a=fF(o*e,t),u=fF(-n*e,t);let p=Xc(e-a*r-u*i,t),g=Xc(-a*n-u*o,t);const y=p>s,E=g>s;if(y&&(p=t-p),E&&(g=t-g),p>s||g>s)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:y,k1:p,k2neg:E,k2:g}}}},F3);BigInt(0),KC.ProjectivePoint;const YC=33;let dF=class extends $2{constructor(t){if(super(),typeof t=="string"?this.data=Su(t):t instanceof Uint8Array?this.data=t:this.data=Uint8Array.from(t),this.data.length!==YC)throw new Error(`Invalid public key input. Expected ${YC} bytes, got ${this.data.length}`)}equals(t){return super.equals(t)}toRawBytes(){return this.data}flag(){return ph.Secp256k1}async verify(t,r){let n;if(typeof r=="string"){const i=Jm(r);if(i.signatureScheme!=="Secp256k1")throw new Error("Invalid signature scheme");if(!Vm(this.toRawBytes(),i.publicKey))throw new Error("Signature does not match public key");n=i.signature}else n=r;return KC.verify(KC.Signature.fromCompact(n),F3(t),this.toRawBytes())}};dF.SIZE=YC;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const hF=nF(BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff")),dce=hF.create(BigInt("-3")),hce=BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b"),pce=cF({a:dce,b:hce,Fp:hF,n:BigInt("0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551"),Gx:BigInt("0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296"),Gy:BigInt("0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"),h:BigInt(1),lowS:!1},F3),pF=pce,XC=33;let gF=class extends $2{constructor(t){if(super(),typeof t=="string"?this.data=Su(t):t instanceof Uint8Array?this.data=t:this.data=Uint8Array.from(t),this.data.length!==XC)throw new Error(`Invalid public key input. Expected ${XC} bytes, got ${this.data.length}`)}equals(t){return super.equals(t)}toRawBytes(){return this.data}flag(){return ph.Secp256r1}async verify(t,r){let n;if(typeof r=="string"){const i=Jm(r);if(i.signatureScheme!=="Secp256r1")throw new Error("Invalid signature scheme");if(!Vm(this.toRawBytes(),i.publicKey))throw new Error("Signature does not match public key");n=i.signature}else n=r;return pF.verify(pF.Signature.fromCompact(n),F3(t),this.toRawBytes())}};gF.SIZE=XC;var mF=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},ow=(e,t,r)=>(mF(e,t,"read from private field"),r?r.call(e):t.get(e)),vF=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},yF=(e,t,r,n)=>(mF(e,t,"write to private field"),t.set(e,r),r),Qm,sw;let gce=class extends xae{constructor(t,r=[]){var n;super(),vF(this,Qm,void 0),vF(this,sw,void 0),yF(this,Qm,t),yF(this,sw,r);let i=new Set,o=0;const s=t.getPublicKeys().map(({weight:a,publicKey:u})=>({weight:a,address:u.toSuiAddress()}));for(let a of r){const u=a.toSuiAddress();if(i.has(u))throw new Error("Can't create MultiSigSigner with duplicate signers");i.add(u);const p=(n=s.find(g=>g.address===u))==null?void 0:n.weight;if(!p)throw new Error(`Signer ${u} is not part of the MultiSig public key`);o+=p}if(o<t.getThreshold())throw new Error("Combined weight of signers is less than threshold")}getKeyScheme(){return"MultiSig"}getPublicKey(){return ow(this,Qm)}sign(t){throw new Error("MultiSigSigner does not support signing directly. Use signTransaction or signPersonalMessage instead")}signData(t){throw new Error("MultiSigSigner does not support signing directly. Use signTransaction or signPersonalMessage instead")}async signTransaction(t){return{signature:ow(this,Qm).combinePartialSignatures(await Promise.all(ow(this,sw).map(async r=>(await r.signTransaction(t)).signature))),bytes:js(t)}}async signPersonalMessage(t){return{signature:ow(this,Qm).combinePartialSignatures(await Promise.all(ow(this,sw).map(async r=>(await r.signPersonalMessage(t)).signature))),bytes:js(t)}}};Qm=new WeakMap,sw=new WeakMap;const aw=10,wF=1;let AF=class dQ extends $2{constructor(t,r={}){if(super(),typeof t=="string"?(this.rawBytes=Su(t),this.multisigPublicKey=Cu.MultiSigPublicKey.parse(this.rawBytes)):t instanceof Uint8Array?(this.rawBytes=t,this.multisigPublicKey=Cu.MultiSigPublicKey.parse(this.rawBytes)):(this.multisigPublicKey=t,this.rawBytes=Cu.MultiSigPublicKey.serialize(t).toBytes()),this.multisigPublicKey.threshold<1)throw new Error("Invalid threshold");const n=new Set;this.publicKeys=this.multisigPublicKey.pk_map.map(({pubKey:o,weight:s})=>{const[a,u]=Object.entries(o).filter(([g])=>g!=="$kind")[0],p=Uint8Array.from(u).toString();if(n.has(p))throw new Error("Multisig does not support duplicate public keys");if(n.add(p),s<1)throw new Error("Invalid weight");return{publicKey:qC(a,Uint8Array.from(u),r),weight:s}});const i=this.publicKeys.reduce((o,{weight:s})=>o+s,0);if(this.multisigPublicKey.threshold>i)throw new Error("Unreachable threshold");if(this.publicKeys.length>aw)throw new Error(`Max number of signers in a multisig is ${aw}`);if(this.publicKeys.length<wF)throw new Error(`Min number of signers in a multisig is ${wF}`)}static fromPublicKeys({threshold:t,publicKeys:r}){return new dQ({pk_map:r.map(({publicKey:n,weight:i})=>({pubKey:{[CV[n.flag()]]:Array.from(n.toRawBytes())},weight:i})),threshold:t})}equals(t){return super.equals(t)}toRawBytes(){return this.rawBytes}getPublicKeys(){return this.publicKeys}getThreshold(){return this.multisigPublicKey.threshold}getSigner(...t){return new gce(this,t)}toSuiAddress(){const t=1+65*aw+2,r=new Uint8Array(t);r.set([ph.MultiSig]),r.set(Cu.u16().serialize(this.multisigPublicKey.threshold).toBytes(),1);let n=3;for(const{publicKey:i,weight:o}of this.publicKeys){const s=i.toSuiBytes();r.set(s,n),n+=s.length,r.set([o],n++)}return Iu(yV(k3(r.slice(0,n),{dkLen:32})))}flag(){return ph.MultiSig}async verify(t,r){const n=Jm(r);if(n.signatureScheme!=="MultiSig")throw new Error("Invalid signature scheme");const{multisig:i}=n;let o=0;if(!Vm(Cu.MultiSigPublicKey.serialize(this.multisigPublicKey).toBytes(),Cu.MultiSigPublicKey.serialize(i.multisig_pk).toBytes()))return!1;for(const{publicKey:s,weight:a,signature:u}of mce(i)){if(!await s.verify(t,u))return!1;o+=a}return o>=this.multisigPublicKey.threshold}combinePartialSignatures(t){var r,n;if(t.length>aw)throw new Error(`Max number of signatures in a multisig is ${aw}`);let i=0;const o=new Array(t.length);for(let p=0;p<t.length;p++){let g=Jm(t[p]);if(g.signatureScheme==="MultiSig")throw new Error("MultiSig is not supported inside MultiSig");let y;g.signatureScheme==="ZkLogin"?y=jV((r=g.zkLogin)==null?void 0:r.addressSeed,(n=g.zkLogin)==null?void 0:n.iss).toRawBytes():y=g.publicKey,o[p]={[g.signatureScheme]:Array.from(g.signature.map(M=>Number(M)))};let E;for(let M=0;M<this.publicKeys.length;M++)if(Vm(y,this.publicKeys[M].publicKey.toRawBytes())){if(i&1<<M)throw new Error("Received multiple signatures from the same public key");E=M;break}if(E===void 0)throw new Error("Received signature from unknown public key");i|=1<<E}let s={sigs:o,bitmap:i,multisig_pk:this.multisigPublicKey};const a=Cu.MultiSig.serialize(s,{maxSize:8192}).toBytes();let u=new Uint8Array(a.length+1);return u.set([ph.MultiSig]),u.set(a,1),js(u)}};function mce(e,t={}){let r=new Array(e.sigs.length);for(let n=0;n<e.sigs.length;n++){const[i,o]=Object.entries(e.sigs[n]).filter(([g])=>g!=="$kind")[0],s=vce(e.bitmap).at(n),a=e.multisig_pk.pk_map[s],u=Uint8Array.from(Object.values(a.pubKey)[0]);if(i==="MultiSig")throw new Error("MultiSig is not supported inside MultiSig");const p=qC(i,u,t);r[n]={signatureScheme:i,signature:Uint8Array.from(o),publicKey:p,weight:a.weight}}return r}function vce(e){if(e<0||e>1024)throw new Error("Invalid bitmap");let t=[];for(let r=0;r<10;r++)e&1<<r&&t.push(r);return Uint8Array.from(t)}async function yce(e,t,r={}){const n=bF(t,r);if(!await n.publicKey.verifyPersonalMessage(e,n.serializedSignature))throw new Error("Signature is not valid for the provided message");return n.publicKey}async function wce(e,t){const r=bF(t);if(!await r.publicKey.verifyTransaction(e,r.serializedSignature))throw new Error("Signature is not valid for the provided Transaction");return r.publicKey}function bF(e,t={}){const r=Jm(e);if(r.signatureScheme==="MultiSig")return{...r,publicKey:new AF(r.multisig.multisig_pk)};const n=qC(r.signatureScheme,r.publicKey,t);return{...r,publicKey:n}}function qC(e,t,r={}){switch(e){case"ED25519":return new KV(t);case"Secp256k1":return new dF(t);case"Secp256r1":return new gF(t);case"MultiSig":return new AF(t);case"ZkLogin":return new FV(t,r);default:throw new Error(`Unsupported signature scheme ${e}`)}}async function Ace({txb:e,client:t,sdk:r}){const n=await e.build({client:t}),{signature:i}=await kV(r,{method:bV.SIGN_TRANSACTION,param:CC.Buffer.from(n).toString("base64")});return await wce(n,i),{signature:i,transactionBlock:n}}async function bce({message:e,sdk:t}){const r=await kV(t,{method:bV.SIGN_PERSONAL_MESSAGE,param:CC.Buffer.from(e).toString("base64")});return await yce(new TextEncoder().encode(e),r.signature),r}let EF=class{constructor({suiNetwork:t=ed.MAINNET,extensions:r}){ku(this,"name","sui"),ku(this,"zkLogin"),ku(this,"sdk"),ku(this,"client"),ku(this,"gqlClient"),ku(this,"suiAddress"),ku(this,"currentSuiNetwork"),ku(this,"extensions",[]),ku(this,"_isZkActive",!1),ku(this,"_signSuiBlockData"),ku(this,"_signSuiPersonalMessage"),ku(this,"_getSuiAddress"),this.switchNetwork(t);for(const n of r||[])Object.assign(this,{[n.name]:n}),this.extensions.push(n.name)}async _initialize(t){var r;this.sdk=t;for(const n of this.extensions)await((r=this[n])==null?void 0:r._initialize(this.sdk)),this[n].name==="zkLogin"&&this.sdk.env===_2.PROD&&(this._isZkActive=!0);if(this.sdk.on(kse.LOGOUT,()=>{this.suiAddress=void 0}),this._isZkActive&&t.env===_2.PROD){this._signSuiBlockData=t.sui.zkLogin.signTransactionBlock.bind(this.sdk.sui.zkLogin),this._signSuiPersonalMessage=t.sui.zkLogin.signPersonalMessage.bind(this.sdk.sui.zkLogin),this._getSuiAddress=t.sui.zkLogin.getAddress.bind(this.sdk.sui.zkLogin);return}this._signSuiBlockData=async n=>await Ace({txb:n,client:this.client,sdk:this.sdk}),this._signSuiPersonalMessage=async n=>await bce({message:n,sdk:this.sdk}),this._getSuiAddress=async()=>await Sse(this.sdk)}_assureLogin(){const t=this.sdk.getAccessToken();if(!t)throw new Error("User is not logged in");return t}switchNetwork(t){if(this._isZkActive)throw new Error("SUI ZK Login is active, cannot switch network");if(this.client&&this.currentSuiNetwork===t)throw new Error(`Already on sui ${t}`);return this.client=new Ase({url:bse[t]}),this.gqlClient=new RV({url:Ese[t]}),this.currentSuiNetwork=t,this.suiAddress=void 0,{client:this.getSuiClient(),network:this.getNetworkName()}}getSuiGqlClient(){return this.gqlClient}getSuiClient(){return this.client}getNetworkName(){return this.currentSuiNetwork}async getAddress(){if(this._assureLogin(),!this.suiAddress){const{address:t}=await this._getSuiAddress();this.suiAddress=t}return this.suiAddress}async signPersonalMessage(t){return this._assureLogin(),this._signSuiPersonalMessage(t)}async signTransactionBlock(t){this._assureLogin(),t.setSenderIfNotSet(await this.getAddress());const{signature:r,transactionBlock:n}=await this._signSuiBlockData(t);return{signature:r,transactionBlock:n}}async signAndExecuteTransactionBlock(t){const r=await this.signTransactionBlock(t);return await this.client.executeTransactionBlock(r)}};ku(EF,"SUI_NETWORK",ed);const Ece={testnet:{credenza:{apiUrl:"https://api.testnets.credenza.online",generalWssUrl:"wss://general-staging-staging.up.railway.app",evmWssUrl:"wss://evm-staging-staging.up.railway.app",gitbookUrl:"https://developer.credenza3.com/credenza-sdk-v3.0/",evmApiUrl:"https://evm.staging.credenza3.com",suiApiUrl:"https://sui.staging.credenza3.com",generalApiUrl:"https://api.staging.credenza3.com",accountsApiUrl:"https://accounts.staging.credenza3.com"},stripe:{pk:{DEFAULT:"pk_test_51LJ0nZHfOaPNdSbZUzB3H4D44JoFD0AIfYv4QLSSSxrBs8ch4A5UlpJOXF4OG0fkgppBD2jOrDTCNaGzevnxdH2200rI1wY1cC",OH:"pk_test_51Q88NV09wu09MZ3mFHuhO3j7F0GJqUsFxfOojSXyEmBWyn1XNsSqYpt3qTzlOQCqoWPrZXR4XrQUiS5mnwwkctyT00x50hXVty"}}},mainnet:{credenza:{accountsApiUrl:"https://accounts.credenza3.com",apiUrl:"https://api.credenza.online",generalApiUrl:"https://api.credenza3.com",gitbookUrl:"https://developer.credenza3.com/credenza-sdk-v3.0/",evmApiUrl:"https://evm.credenza3.com",suiApiUrl:"https://sui.credenza3.com",generalWssUrl:"wss://general-prod-prod.up.railway.app",evmWssUrl:"wss://evm-prod-prod.up.railway.app"},stripe:{pk:{DEFAULT:"pk_live_51LJ0nZHfOaPNdSbZpj7gaAUfmbfWylFaORiGxRxyVn8efm1hMTP6Cz2ihL1AhEcUu9AyqTKsUblMQL5m0YU6HTg3001izgq3Fj",OH:"pk_live_51Q88NV09wu09MZ3mt4QLre8zWqEcNDrpBEnnoiJaEA1v5MI3XBEX3iIn83OILmbCr7QrQtB9GIcM1hxmkPfBHRmH00azqgbOQj"}}}};async function kce(e={}){var t;try{if(!Object.keys(e).length)return;const r=[];e.name&&r.push(vo.account.updateProfile({name:e.name})),e.email&&r.push(vo.account.changeEmail(e.email)),e.phone&&r.push(vo.account.changePhone(e.phone));const n=await Promise.all(r);for(const o of n)if((t=o.errors)!=null&&t.length)throw new Error(o.errors[0].error);const i=await z3();return xc.set(i),Qi(pi.UPDATE_PROFILE,i),i}catch(r){throw Qi(pi.ERROR,{error:r}),r}}async function Sce(e){try{const t=[];e.phoneCode&&t.push(vo.account.verifyCode(e.phoneCode)),e.emailCode&&t.push(vo.account.verifyCode(e.emailCode)),await Promise.all(t);const r=await z3();return xc.set(r),Qi(pi.ACCOUNT_CONFIRMED,{...r!=null&&r.name?{name:r.name}:{},...r!=null&&r.email?{email:r.email}:{},...r!=null&&r.phone?{phone:r.phone}:{}}),r}catch(t){throw Qi(pi.ERROR,{error:t}),t}}const Ice=async()=>(await vo.account.pendingVerificationContacts()).reduce((t,r)=>(r.phone&&(t.phone=r.phone),r.email&&(t.email=r.email),t),{}),z3=async()=>({...await vo.account.info(),pending:{...await Ice()}}),Cce=async()=>{try{dm.set(!0);const e=xr(Oi),t=await Fs(),r=vo.getAccessToken();Wl.set(r);const n=await z3();xc.set(n),qu.set(!0),dm.set(!1),dc.identify(n.sub),dc.people.set({$email:n.email,$phone:n.phone,$name:n.name,suiNetwork:e.suiNetwork,address:t,location:window.location.href}),dc.track("cp_init",{$email:n.email,$phone:n.phone,suiNetwork:e.suiNetwork,clientId:e.clientId,address:t,location:window.location.href})}catch(e){localStorage.removeItem(eb.ACCESS_TOKEN),qu.set(!1),dm.set(!1),xc.set(null),Wl.set(null),console.error("Cannot init credenza user",e)}},kF=async e=>{if(!xr(Wl))throw new Error("Passport access token doesn't exist.");const r=xr(Oi),n=await fetch(`${r.credenza.suiApiUrl}/accounts/${e}/assigned-address`,{method:"get",headers:{"Content-Type":"application/json",Authorization:`Bearer ${xr(Wl)}`}}),i=await n.json();if(!n.ok)throw new Error(i.error);return i},Bce={[ac.DEVNET]:"0xd286ee42d5d11f0fdc4a872c6669b95d565fbcbd38cbfbc422998970bad2fe10",[ac.TESTNET]:"0xba2fd0bf21cbd67224c1666019f2a33114edf9d7e29264be4cc179bb57323faa",[ac.MAINNET]:"0xe64d96c0cbe4c37add416ae07fd6494722210c247bc2a4ba2e91542dc599c9fb"},Tce={[ac.DEVNET]:"0xd286ee42d5d11f0fdc4a872c6669b95d565fbcbd38cbfbc422998970bad2fe10",[ac.TESTNET]:"0x2337ee16db47843d4bbf489cc9c2f155832fec5928ec1c21052e604184fbdeb2",[ac.MAINNET]:"0x95a6d3b0ee9cb477dfd4ebec796094516ba28e325560609c0dd8c5076d2eae56"},vg=e=>{switch(e){case"6756b6f8c7d313c0d6ca03f0":case"65a510cd9415d41b1aa933dc":return{currencySymbol:"GH₵",name:"OH",minStoredValueToPurchase:10,maxStoredValueToPurchase:5e3};default:return{currencySymbol:"$",name:"DEFAULT",minStoredValueToPurchase:0,maxStoredValueToPurchase:100}}},xce=async(e,t)=>{const r=await fetch(`${e}/clients/${t}/public`,{method:"get",headers:{"Content-Type":"application/json"}}),n=await r.json();if(!r.ok)throw new Error(n.error);return n.ui_settings=Object.assign({stored_value_alias:"stored value",cred_alias:"CRED"},n.ui_settings),n};async function Mce(e){this.networkType=e.suiNetwork===ac.MAINNET?Rd.MAINNET:Rd.TESTNET,this.config={...Vie(Ece[this.networkType],e.config||{}),suiNetwork:e.suiNetwork,clientId:e.clientId,networkType:this.networkType},this.suiNetwork=this.config.suiNetwork,this.suiPackage=this.config.storedValuePackageId||Bce[this.config.suiNetwork],ME.set(this.suiPackage),Oi.set(this.config)}async function Uce(){try{const{suiNetwork:e,auth:t,clientId:r,credenza:n}=this.config,i=await xce(n.accountsApiUrl,r);hm.set(i);const o=[];if((t==null?void 0:t.zk)===!0){const{ZkLoginExtension:u}=await Promise.resolve().then(()=>l1e);o.push(new u)}const s=[new EF({suiNetwork:e,extensions:o})],a=Lte(r,s,this.networkType);if(vo.on(pi.LOGIN,async()=>{await Oce(a)}),await a,!vo.getAccessToken())return;await oC(vo.getAccessToken()),await Cce()}catch{}Qi(pi.INIT),xr(qu)&&this.close()}const Oce=async e=>{await e;const t=await vo.account.info();await oC(vo.getAccessToken());const{suiNetwork:r,clientId:n}=xr(Oi);dc.track("cp_login",{$email:t.email,$phone:t.phone,suiNetwork:r,clientId:n,address:await vo.sui.getAddress(),location:window.location.href}),Qi(pi.LOGIN,{user:t})};async function Nce({amount:e,coinType:t=Xf(),suiNetwork:r}){try{const{clientId:n,suiNetwork:i}=xr(Oi);if(r!==i)throw Qi(pi.ERROR,{error:{message:"Sui network of airdrop does not match current network",title:"Air drop failed"}}),new Error("Sui network of airdrop does not match current network");const o=Tce[i],s=await uh(o,i),[a]=await s.CredenzaAirdrop.getCreatedConfigs(),u=await s.CredenzaAirdrop.requestCoin(a,e*j2);Qi(pi.REQUEST_AIRDROP,u),Qi(pi.RECHECK_BALANCE),dc.track("cp_airdrop_coin",{suiNetwork:i,clientId:n,coinType:t,to:await Fs(),amount:e})}catch(n){throw Qi(pi.ERROR,{error:{message:n.statusText,title:"Air drop failed",code:n.status}}),n}}async function Rce({amount:e,packageId:t,configId:r,assetId:n,suiNetwork:i}){try{const{clientId:o,suiNetwork:s}=xr(Oi);if(i!==s)throw Qi(pi.ERROR,{error:{message:"Sui network of airdrop does not match current network",title:"Air drop failed"}}),new Error("Sui network of airdrop does not match current network");const u=await(await uh(t,s)).CredenzaAirdrop.requestAsset(r,+n,e);Qi(pi.REQUEST_AIRDROP,u),Qi(pi.RECHECK_BALANCE),dc.track("cp_airdrop_asset",{suiNetwork:s,clientId:o,packageId:t,assetId:n,configId:r,to:await Fs(),amount:e})}catch(o){throw Qi(pi.ERROR,{error:{message:o.statusText,title:"Air drop failed",code:o.status}}),o}}const Dce=async({apiUrl:e,eventId:t,contractAddress:r,chainType:n,evmChainId:i})=>{const o=await fetch(`${e}/promo/loyalty/request-points`,{method:"post",body:JSON.stringify({event_id:t,contract_address:r,chain_type:n}),headers:{"Content-Type":"application/json",Authorization:`Bearer ${xr(Wl)}`}}),s=await o.json();if(!o.ok)throw new Error(`Points request failed. ${s.message}`);return s};async function Lce(e,t){try{const{suiNetwork:r,clientId:n,credenza:i}=xr(Oi);await Dce({eventId:e,contractAddress:t,chainType:"sui",apiUrl:i.generalApiUrl});const o={suiNetwork:r,clientId:n,packageId:t,eventId:e,from:await Fs()};Qi(pi.REQUEST_LOYALTY_POINTS,o),dc.track("cp_request_loyalty",o)}catch(r){throw Qi(pi.ERROR,{error:{message:r.statusText,title:"Request loyalty points failed",code:r.status}}),r}}const af=class af{constructor(t){if(this.accessToken=null,this.isLoggedIn=!1,this.user=null,this.login=Nie,this.jwtLogin=Rie,this.logout=Die,this.openUI=fte,this.close=lte,this.toastAlert=GD,this.destroy=ute,this.hideNavigation=dte,this.showNavigation=hte,this.configurePassport=Mce,this.init=Uce,this.checkMembership=Cie,this.sendTokens=TP,this.getAddress=Fs,this.sendNft=Bie,this.switchChain=Iie,this.getBalance=J2,this.getSuiClient=Oie,this.getUserCollectionAssetsWithBalances=Tie,this.requestAirDropCoin=Nce,this.requestAirDropAsset=Rce,this.updateProfile=kce,this.confirmAccount=Sce,this.getUser=z3,this.requestLoyaltyPoints=Lce,this.on=f8,this.once=l8,this.destroy(),t!=null&&t.suiNetwork&&!Object.values(ac).includes(t==null?void 0:t.suiNetwork))throw new Error('Unsupported Sui network. Check "Passport.suiNetworks" for available networks.');this.configurePassport(t),ga.set({openUI:this.openUI,close:this.close,toastAlert:(r,n,i)=>{if(this.networkType!==Rd.MAINNET)return this.toastAlert(r,n,i)},logout:this.logout,login:this.login.bind(this),updateProfile:this.updateProfile,confirmAccount:this.confirmAccount,getCREDContract:Xf,getBalance:this.getBalance,checkMembership:this.checkMembership,sendTokens:this.sendTokens,requestLoyaltyPoints:this.requestLoyaltyPoints}),qI.set({requestAirDropAsset:this.requestAirDropAsset,requestAirDropCoin:this.requestAirDropCoin}),xc.subscribe(r=>this.user=r),qu.subscribe(r=>{this.isLoggedIn=r||!1}),Wl.subscribe(r=>this.accessToken=r),kP.subscribe(r=>{r&&typeof window<"u"&&this.openUI()}),Q_(this.networkType)}};af.version=Ha.version,af.suiNetworks=ac,af.pages=Lr,af.paymentTypes=oS,af.themes=Mf,af.navDirections=D0,af.navMinimizationTogglerPositions=Dd,af.scanTypes=Ld,af.events=pi;let H3=af;typeof window<"u"&&(window.CredenzaPassport=H3);const Pce="5";typeof window<"u"&&((vH=window.__svelte??(window.__svelte={})).v??(vH.v=new Set)).add(Pce),p$();var Vce=Vt("<div></div>");const Fce={hash:"svelte-wttqlc",code:".brand-credenza.svelte-wttqlc {top:8px;left:-1px;}.brand-nhl.svelte-wttqlc {top:2px;}.brand-mlb.full.svelte-wttqlc {top:initial;bottom:8px;left:7px;}"};function SF(e,t){if(new.target)return hn({component:SF,...e});sn(t,!1),Sp(e,Fce);const[r,n]=gc(),i=()=>To(qu,"$isLoggedInStore",r);let o=$t(t,"brandName",12);var s=Vce();let a;Er(p=>a=ea(s,1,`crtw-w-1.5 crtw-h-1.5 crtw-rounded-[3px] crtw-absolute crtw-left-0 crtw-top-[8px] brand-${o()}`,"svelte-wttqlc",a,p),[()=>({"crtw-bg-green-500":i(),"crtw-bg-red-500":!i()})],ln),Ze(e,s);var u=an({get brandName(){return o()},set brandName(p){o(p),_t()},$set:dn,$on:(p,g)=>fn(t,p,g)});return n(),u}var jce=Vt("<span><!></span>"),Jce=Vt("<div><!></div> <!>",1),zce=Vt('<div role="button"><!> <div class="crtw-flex crtw-items-center crtw-relative crtw-h-full crtw-mx-1.5"><!> <!></div> <!></div>');function yg(e,t){if(new.target)return hn({component:yg,...e});sn(t,!1);const[r,n]=gc(),i=()=>To(qu,"$isLoggedInStore",r),o=qt();let s=$t(t,"options",12),{title:a,onClick:u,isDisabled:p,theme:g,isMain:y}=s();xn(()=>ir(s()),()=>{ct(o,s().isMinimized)}),ns(),li();var E=zce();let M;mi(E,"tabindex",0);var I=pt(E);{var N=ae=>{var ue=jce();let Se;var Me=pt(ue);{var ge=He=>{var $e=$n(),me=Tr($e);Hl(me,t,"default",{}),Ze(He,$e)},Pe=He=>{var $e=gs();Er(()=>Sn($e,a)),Ze(He,$e)};ur(Me,He=>{y?He(ge):He(Pe,!1)})}dt(ue),Er(He=>Se=ea(ue,1,`crtw-flex crtw-items-center crtw-justify-center crtw-invisible crtw-bg-white crtw-text-black crtw-text-center crtw-absolute crtw-z-10
885
885
  crtw-top-0 crtw-bottom-0 crtw-left-0 crtw-right-0 crtw-text-[9px] crtw-rounded crtw-overflow-hidden group-hover:crtw-visible`,null,Se,He),[()=>({"crtw-bg-black":g===Mf.BLACK,"crtw-text-white":g===Mf.BLACK})],ln),Ze(ae,ue)};ur(I,ae=>{te(o)&&i()&&ae(N)})}var O=wt(I,2),V=pt(O);{var Z=ae=>{SF(ae,{get brandName(){return a}})};ur(V,ae=>{y&&ae(Z)})}var Q=wt(V,2);Hl(Q,t,"icon",{}),dt(O);var K=wt(O,2);{var $=ae=>{var ue=Jce(),Se=Tr(ue);let Me;var ge=pt(Se);FI(ge,()=>a),dt(Se);var Pe=wt(Se,2);Hl(Pe,t,"default",{}),Er(He=>Me=ea(Se,1,"crtw-flex crtw-flex-col crtw-flex-1 crtw-w-full crtw-ml-1.5 crtw-justify-center",null,Me,He),[()=>({"crtw-text-white":p})],ln),Ze(ae,ue)};ur(K,ae=>{te(o)||ae($)})}dt(E),Er(ae=>M=ea(E,1,"crtw-w-full crtw-flex crtw-flex-row crtw-items-center crtw-justify-start crtw-h-11 crtw-relative crtw-box-border crtw-group",null,M,ae),[()=>({"crtw-justify-center":te(o),"crtw-w-11":te(o)})],ln),pc("click",E,u),Ze(e,E);var oe=an({get options(){return s()},set options(ae){s(ae),_t()},$set:dn,$on:(ae,ue)=>fn(t,ae,ue)});return n(),oe}const Hce="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='currentColor'%20class='bi%20bi-chevron-up'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill-rule='evenodd'%20d='M7.646%204.646a.5.5%200%200%201%20.708%200l6%206a.5.5%200%200%201-.708.708L8%205.707l-5.646%205.647a.5.5%200%200%201-.708-.708l6-6z'/%3e%3c/svg%3e";var Gce=Vt('<img alt=""/>'),Wce=Vt('<div slot="icon"><img class="crtw-block crtw-max-w-[30px]" alt=""/></div>');function IF(e,t){if(new.target)return hn({component:IF,...e});sn(t,!1);const[r,n]=gc(),i=()=>To(qu,"$isLoggedInStore",r),o=qt(),s=qt();let a=$t(t,"options",12),{onClick:u,title:p,passIcon:g,theme:y}=a();xn(()=>ir(a()),()=>{ct(o,a().chevronStyles)}),xn(()=>ir(a()),()=>{ct(s,a().isMinimized)}),ns(),li();const E=ln(()=>({title:p,onClick:u,isDisabled:!1,isMinimized:te(s),theme:y,isMain:!0}));yg(e,{get options(){return te(E)},children:(I,N)=>{var O=$n(),V=Tr(O);{var Z=Q=>{var K=Gce();Er(()=>{mi(K,"src",Hce),Gl(K,te(o))}),Ze(Q,K)};ur(V,Q=>{i()&&Q(Z)})}Ze(I,O)},$$slots:{default:!0,icon:(I,N)=>{var O=Wce();ea(O,1,"crtw-flex crtw-justify-center crtw-items-center crtw-rounded-md");var V=pt(O);dt(O),Er(()=>mi(V,"src",g)),Ze(I,O)}}});var M=an({get options(){return a()},set options(I){a(I),_t()},$set:dn,$on:(I,N)=>fn(t,I,N)});return n(),M}var Qce=Vt('<div role="button"><!></div>');const Zce={hash:"svelte-16c70gs",code:".cpui-minimization-toggler-left.svelte-16c70gs {left:0;border-right:1px solid;}.cpui-minimization-toggler-right.svelte-16c70gs {right:0;border-left:1px solid;}"};function CF(e,t){if(new.target)return hn({component:CF,...e});sn(t,!1),Sp(e,Zce);let r=$t(t,"theme",12),n=$t(t,"navConfig",12),i=$t(t,"isMinimized",12);li();var o=$n(),s=Tr(o);{var a=u=>{var p=Qce();mi(p,"tabindex",0);let g;var y=pt(p);{var E=I=>{var N=gs();N.nodeValue=">",Ze(I,N)},M=I=>{var N=gs();N.nodeValue="<",Ze(I,N)};ur(y,I=>{ir(i()),ir(n()),ir(Dd),Mt(()=>{var N,O,V,Z;return i()&&((O=(N=n().minimization)==null?void 0:N.toggler)==null?void 0:O.position)===Dd.RIGHT||!i()&&((Z=(V=n().minimization)==null?void 0:V.toggler)==null?void 0:Z.position)!==Dd.RIGHT})?I(E):I(M,!1)})}dt(p),Er((I,N)=>g=ea(p,1,I,"svelte-16c70gs",g,N),[()=>(ir(n()),ir(Dd),Mt(()=>{var I,N,O;return`crtw-flex crtw-items-center crtw-justify-center crtw-w-4 crtw-absolute crtw-top-0 crtw-bottom-0 crtw-border-gray-700 cpui-minimization-toggler-${((O=(N=(I=n().minimization)==null?void 0:I.toggler)==null?void 0:N.position)==null?void 0:O.toLowerCase())??Dd.LEFT.toLowerCase()}`})),()=>({"border-white":r()===Mf.BLACK})],ln),pc("click",p,()=>i(!i())),Ze(u,p)};ur(s,u=>{ir(n()),Mt(()=>{var p,g;return(g=(p=n().minimization)==null?void 0:p.toggler)==null?void 0:g.enabled})&&u(a)})}return Ze(e,o),an({get theme(){return r()},set theme(u){r(u),_t()},get navConfig(){return n()},set navConfig(u){n(u),_t()},get isMinimized(){return i()},set isMinimized(u){i(u),_t()},$set:dn,$on:(u,p)=>fn(t,u,p)})}var Kce=Vt('<div class="crdz-ui" id="cpnav"><div><!> <!> <!> <!></div></div>');function BF(e,t){if(new.target)return hn({component:BF,...e});sn(t,!1);const r=qt(),n=qt(),i=qt(),o=qt();let s=$t(t,"options",12),a=$t(t,"navItemOptions",12),u=$t(t,"balanceOptions",12),p=s(),g=p.theme,y=p.cssVarStyles,E=p.navConfig,M=p.navDirection,I=p.iconStyles,N=p.onItemClicked,O=qt(p.isMinimized),V=p.expandedNavComponent;xn(()=>ir(s()),()=>{ct(r,s().isExpanded)}),xn(()=>ir(u()),()=>{ct(n,u().balance)}),xn(()=>ir(u()),()=>{ct(i,u().isShown)}),xn(()=>ir(a()),()=>{ct(o,a().chevronStyles)}),ns(),li();var Z=Kce(),Q=pt(Z);let K;var $=pt(Q);CF($,{get theme(){return g},get navConfig(){return E},get isMinimized(){return te(O)},set isMinimized(Pe){ct(O,Pe)},$$legacy:!0});var oe=wt($,2);{var ae=Pe=>{var He=$n(),$e=Tr(He);const me=ln(()=>({isMinimized:te(O),theme:g,iconStyles:I,onClick:N,isShownBalance:te(i),balance:te(n)}));Ma($e,()=>V,(be,Qe)=>{Qe(be,{get options(){return te(me)}})}),Ze(Pe,He)};ur(oe,Pe=>{ir(D0),te(r),Mt(()=>M===D0.TOP&&te(r))&&Pe(ae)})}var ue=wt(oe,2);const Se=ln(()=>(ir(a()),te(O),te(o),Mt(()=>({...a(),theme:g,isMinimized:te(O),chevronStyles:te(o)}))));IF(ue,{get options(){return te(Se)}});var Me=wt(ue,2);{var ge=Pe=>{var He=$n(),$e=Tr(He);const me=ln(()=>({isMinimized:te(O),theme:g,iconStyles:I,onClick:N,isShownBalance:te(i),balance:te(n)}));Ma($e,()=>V,(be,Qe)=>{Qe(be,{get options(){return te(me)}})}),Ze(Pe,He)};ur(Me,Pe=>{ir(D0),te(r),Mt(()=>M===D0.BOTTOM&&te(r))&&Pe(ge)})}return dt(Q),dt(Z),Er(Pe=>{K=ea(Q,1,`cpnav crtw-fixed crtw-z-50 crtw-w-56 crtw-flex crtw-flex-col crtw-items-center crtw-justify-center crtw-bg-white crtw-text-gray-800
886
886
  crtw-font-[poppins] crtw-text-xs crtw-border crtw-border-gray-700 crtw-rounded crtw-cursor-pointer crtw-pr-1.5`,null,K,Pe),Gl(Q,y)},[()=>{var Pe,He,$e,me,be,Qe,Xe,rt;return{"crtw-bg-black":g===Mf.BLACK,"crtw-text-white":g===Mf.BLACK,"crtw-w-[70px]":te(O),"crtw-pr-5":((He=(Pe=E.minimization)==null?void 0:Pe.toggler)==null?void 0:He.enabled)&&((me=($e=E.minimization)==null?void 0:$e.toggler)==null?void 0:me.position)===Dd.RIGHT,"crtw-pl-5":((Qe=(be=E.minimization)==null?void 0:be.toggler)==null?void 0:Qe.enabled)&&((rt=(Xe=E.minimization)==null?void 0:Xe.toggler)==null?void 0:rt.position)!==Dd.RIGHT}}],ln),Ze(e,Z),an({get options(){return s()},set options(Pe){s(Pe),_t()},get navItemOptions(){return a()},set navItemOptions(Pe){a(Pe),_t()},get balanceOptions(){return u()},set balanceOptions(Pe){u(Pe),_t()},$set:dn,$on:(Pe,He)=>fn(t,Pe,He)})}const Yce="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3ctitle%3eClose%3c/title%3e%3cpath%20fill='%23a6a6a6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.237%207.177a.75.75%200%2010-1.06%201.06L10.939%2012l-3.762%203.763a.75.75%200%20101.06%201.06L12%2013.061l3.763%203.762a.75.75%200%20101.06-1.06L13.061%2012l3.762-3.763a.75.75%200%2000-1.06-1.06L12%2010.939%208.237%207.177z'/%3e%3c/svg%3e";var Xce=Vt('<div class="crtw-float-right crtw-cursor-pointer crtw-h-8 crtw-w-8 crtw-absolute crtw-top-0 crtw-right-0 crtw-z-1000001 crtw-m-2 crtw-bg-white crtw-rounded-full sm:crtw-m-4" role="button"><img alt="close-icon" class="crtw-fill-red-500 crtw-w-8 crtw-h-8"/></div>');function TF(e,t){if(new.target)return hn({component:TF,...e});sn(t,!1);let r=$t(t,"onCloseClick",12),n=$t(t,"isHeaderShown",12);xn(()=>ir(n()),()=>{n(n())}),ns();var i=$n(),o=Tr(i);{var s=a=>{var u=Xce();mi(u,"tabindex",0);var p=pt(u);dt(u),Er(()=>mi(p,"src",Yce)),pc("click",u,function(...g){var y;(y=r())==null||y.apply(this,g)}),Ze(a,u)};ur(o,a=>{n()&&a(s)})}return Ze(e,i),an({get onCloseClick(){return r()},set onCloseClick(a){r(a),_t()},get isHeaderShown(){return n()},set isHeaderShown(a){n(a),_t()},$set:dn,$on:(a,u)=>fn(t,a,u)})}var qce=Vt('<p class="crtw-px-0.5 sm:crtw-px-1.5 crtw-text-textMain crtw-text-[10px] sm:crtw-text-[11px]"><!></p>');function wg(e,t){if(new.target)return hn({component:wg,...e});sn(t,!1);var r=qce(),n=pt(r);return Hl(n,t,"default",{}),dt(r),Ze(e,r),an({$set:dn,$on:(i,o)=>fn(t,i,o)})}const _ce="data:image/svg+xml,%3csvg%20id='Layer_1'%20width='100%25'%20xmlns='http://www.w3.org/2000/svg'%20height='100%25'%20viewBox='0%200%20939.84%20194'%20data-name='Layer%201'%3e%3cg%3e%3cg%3e%3cpath%20d='m181,0H13C5.82,0,0,5.82,0,13v168c0,7.18,5.82,13,13,13h154c-2.69-28.49-18.67-54.88-58.91-78.03-28.28-15.89-32.85-6.92-80.75,27.15,39.18-64.25,38.73-56.84-4-116.12,61.46,40.42,56.89,41.25,116.12-4-30.41,50.61-38.32,55.06-19.72,83.12,21.63,32.61,42.77,58.88,74.26,61.05V13c0-7.18-5.82-13-13-13Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m181,194h13v-13c0,7.18-5.82,13-13,13Z'%20style='fill:%20%23fff;'%3e%3c/path%3e%3cpath%20d='m119.74,106.12c-18.6-28.06-10.69-32.51,19.72-83.12-59.23,45.25-54.66,44.42-116.12,4,42.73,59.28,43.18,51.87,4,116.12,47.9-34.07,52.46-43.04,80.75-27.15,40.23,23.15,56.22,49.54,58.91,78.03h14c7.18,0,13-5.82,13-13v-13.83c-31.48-2.17-52.63-28.44-74.26-61.05Z'%20style='fill:%20%23fff;'%3e%3c/path%3e%3c/g%3e%3cpath%20d='m92,142.14c-22.75,17.3-20.76,16.82-44.5,1.67,16.41,22.55,16.66,20.1,1.67,44.5,23.94-17.03,19.64-17.39,44.5-1.67-17.03-23.94-16.86-19.2-1.67-44.5Z'%20style='fill:%20%23fff;'%3e%3c/path%3e%3cpath%20d='m180.28,76.84c-17.73,13.35-16.29,13.13-34.31,1.24,12.83,17.61,12.78,15.39,1.24,34.31,18.52-13.17,15.3-13.63,34.31-1.24-13.17-18.52-12.91-14.86-1.24-34.31Z'%20style='fill:%20%23fff;'%3e%3c/path%3e%3c/g%3e%3cg%20id='Credenza'%3e%3cpath%20d='m699.78,61.6c16.09,19.44,32.17,39.03,49.06,59.57v-58.61h5.58v71.37l-1.43.95c-16.41-19.27-32.17-39.03-49.22-59.42v58.62h-5.41V62.39c.51-.2.99-.47,1.43-.8h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m512.45,73.07h5.41v55.59c10.67-.16,21.19,1.6,31.22-1.91,13.22-4.62,20.71-18.64,18.32-33.93-2.07-14.33-13.38-24.37-28.19-24.85-8.92-.32-17.84,0-26.92,0v-5.58c13.7.63,27.71-2.23,40.94,3.35,14.33,6.21,22.14,21.5,19.91,38.55-2.07,15.61-13.7,27.88-29.47,29.31-10.2.95-20.71.16-31.38.16.16-20.07.16-40.3.16-60.69h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m336.59,101.59h17.68c5.26,0,10.52.16,15.93-.16,10.04-.48,15.93-7.01,15.61-17.21-.16-9.4-6.69-16.25-16.09-16.41-10.83-.16-21.82,0-33.14,0-.16-1.91-.16-3.51-.16-4.78,12.9,0,25.48-.95,37.91.32,10.99.95,17.84,10.67,17.84,21.98s-6.69,18.96-18.16,21.02c-1.28.32-2.55.48-4.62.95,8.29,9.08,16.25,17.52,24.53,26.6-4.46,1.12-7.33.48-10.04-2.71-6.37-7.33-12.9-14.33-19.75-21.34-1.63-1.48-3.7-2.38-5.89-2.55-5.1-.32-10.2-.16-15.77-.16v26.92c-2.07.16-3.66.16-5.58.32-.32-10.83-.32-21.5-.32-32.82v.03Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m834.23,67.65h-43.01v-5.1h53.52c-15.77,22.62-31.7,43.81-47.47,65.95h45.87c.16,2.07.32,3.51.32,5.41h-56.39c15.61-22.62,31.38-43.64,47.15-66.26h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m299.96,72.59c-1.28,1.12-2.39,2.07-3.35,3.03-17.04-11.95-35.84-11.47-46.83.95-10.35,11.79-10.35,32.17.32,43.81,10.99,12.1,29.94,12.43,46.99.32.8,1.12,1.75,2.39,2.71,3.66-12.9,13.86-38.39,14.5-52.25,1.43-14.65-13.7-14.98-39.35-.8-53.68,13.54-14.02,38.87-13.86,53.21.48h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m939.83,133.76c-4.14,1.6-6.06.16-7.64-3.35-8.29-19.11-16.88-37.91-25.33-56.87-.63-1.43-1.43-2.86-2.39-5.1-3.83,8.44-7.33,16.25-10.83,24.05-5.58,12.75-11.47,25.33-16.88,38.07-1.6,3.66-3.66,4.62-7.64,3.18l3.35-7.64c9.08-19.91,18-39.98,27.24-59.9.8-1.75,1.75-3.66,3.66-4.3,3.18-1.12,5.1,2.07,6.06,4.3,9.72,21.67,19.59,43.17,29.31,64.83.5.84.87,1.76,1.12,2.71h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpolygon%20style='fill:%20%23262a2e;'%20points='476.77%2095.85%20476.77%20100.62%20432.81%20100.62%20432.81%20128.82%20476.77%20128.82%20476.77%20134.08%20427.07%20134.08%20427.07%2095.85%20476.77%2095.85'%3e%3c/polygon%3e%3cpath%20d='m615.35,128.82h43.64v5.26h-49.38v-38.23h49.38c.16,1.28.32,2.71.48,4.62h-44.12v28.36h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3crect%20x='427.07'%20y='62.56'%20style='fill:%20%23262a2e;'%20width='49.7'%20height='4.94'%3e%3c/rect%3e%3cpath%20d='m659.32,67.65h-49.86v-5.1h49.54c.16,1.6.16,3.03.32,5.1h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3c/g%3e%3c/svg%3e";var $ce=Vt('<img alt="additional-logo"/>'),eue=Vt('<a class="crtw-text-hightlightColor crtw-no-underline" href="https://www.credenza3.com/company/about" target="_blank" rel="noreferrer">About</a>'),tue=Vt('<a class="crtw-text-hightlightColor crtw-no-underline" href="mailto:info@credenza3.com">Contact</a>'),rue=Vt('<a class="crtw-text-hightlightColor crtw-no-underline" href="https://www.credenza3.com/privacy-policy" target="_blank" rel="noreferrer">Privacy & terms</a>'),nue=Vt(`<section class="crtw-flex crtw-flex-col crtw-items-center crtw-pt-11"><div class="crtw-flex crtw-items-center crtw-justify-center crtw-gap-4"><img alt="credenza-logo" class="crtw-w-[110px]"/> <!></div> <div class="crtw-text-center crtw-text-textMain crtw-text-xs crtw-flex crtw-justify-center
887
887
  crtw-items-center crtw-pt-[3px] sm:crtw-pt-2"><a class="crtw-text-hightlightColor crtw-no-underline crtw-mr-1.5 crtw-text-[10px]" href="https://www.credenza3.com" target="_blank" rel="noreferrer">Credenza</a> <!> <!> <!> <!> <!> <!></div></section>`);function xF(e,t){if(new.target)return hn({component:xF,...e});sn(t,!1);let r=$t(t,"additionalLogo",12,void 0);li();var n=nue(),i=pt(n),o=pt(i),s=wt(o,2);{var a=N=>{var O=$ce();Er(()=>{mi(O,"src",(ir(r()),Mt(()=>{var V;return(V=r())==null?void 0:V.img}))),Gl(O,(ir(r()),Mt(()=>{var V;return`width: ${(V=r())==null?void 0:V.width}px`})))}),Ze(N,O)};ur(s,N=>{ir(r()),Mt(()=>{var O;return(O=r())==null?void 0:O.img})&&N(a)})}dt(i);var u=wt(i,2),p=wt(pt(u),2);wg(p,{children:(N,O)=>{Kc();var V=gs("·");Ze(N,V)},$$slots:{default:!0}});var g=wt(p,2);wg(g,{children:(N,O)=>{var V=eue();Ze(N,V)},$$slots:{default:!0}});var y=wt(g,2);wg(y,{children:(N,O)=>{Kc();var V=gs("·");Ze(N,V)},$$slots:{default:!0}});var E=wt(y,2);wg(E,{children:(N,O)=>{var V=tue();Ze(N,V)},$$slots:{default:!0}});var M=wt(E,2);wg(M,{children:(N,O)=>{Kc();var V=gs("·");Ze(N,V)},$$slots:{default:!0}});var I=wt(M,2);return wg(I,{children:(N,O)=>{var V=rue();Ze(N,V)},$$slots:{default:!0}}),dt(u),dt(n),Er(()=>mi(o,"src",_ce)),Ze(e,n),an({get additionalLogo(){return r()},set additionalLogo(N){r(N),_t()},$set:dn,$on:(N,O)=>fn(t,N,O)})}var iue=Vt("<div><!></div>");function Ag(e,t){if(new.target)return hn({component:Ag,...e});const r=A2(t,["children","$$slots","$$events","$$legacy"]);sn(t,!1),li();var n=iue(),i=pt(n);return Hl(i,t,"default",{}),dt(n),Er(()=>ea(n,1,(ir(r),Mt(()=>r.class+" crtw-w-full crtw-mx-auto crtw-my-0")))),Ze(e,n),an({$set:dn,$on:(o,s)=>fn(t,o,s)})}var oue=Vt(`<div class="crtw-flex crtw-flex-col crtw-items-center crtw-justify-center crtw-bg-white crtw-rounded