96?pa:ha},ga=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},ma=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return fa(t,n,r),ca((function(){return function(e,t,n){fa(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}(t,n,r)})),null},ya=function t(n,r){var i,o,a=n.__emotion_real===n,s=a&&n.__emotion_base||n;void 0!==r&&(i=r.label,o=r.target);var c=ga(n,r,a),u=c||va(s),l=!u("as");return function(){var d=arguments,f=a&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==i&&f.push("label:"+i+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{0,f.push(d[0][0]);for(var p=d.length,h=1;h=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+c;return{name:u,styles:i,next:oa}}(f.concat(d),n.registered,p);a+=n.key+"-"+v.name,void 0!==o&&(a+=" "+o);var g=l&&void 0===c?va(i):u,m={};for(var y in t)l&&"as"===y||g(y)&&(m[y]=t[y]);return m.className=a,m.ref=r,e.createElement(e.Fragment,null,e.createElement(ma,{cache:n,serialized:v,isStringTag:"string"===typeof i}),e.createElement(i,m))}));return v.displayName=void 0!==i?i:"Styled("+("string"===typeof s?s:s.displayName||s.name||"Component")+")",v.defaultProps=n.defaultProps,v.__emotion_real=v,v.__emotion_base=s,v.__emotion_styles=f,v.__emotion_forwardProp=c,Object.defineProperty(v,"toString",{value:function(){return"."+o}}),v.withComponent=function(e,n){return t(e,Ki({},r,n,{shouldForwardProp:ga(v,n,!0)})).apply(void 0,f)},v}}.bind();function ba(e,t){return ya(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){ya[e]=ya(e)}));var wa=n(20240);function xa(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?Ki({},e):e;return Sa(e)&&Sa(t)&&Object.keys(t).forEach((function(i){"__proto__"!==i&&(Sa(t[i])&&i in e&&Sa(e[i])?r[i]=Ea(e[i],t[i],n):n.clone?r[i]=Sa(t[i])?Ca(t[i]):t[i]:r[i]=t[i])})),r}var _a=function(e,t){return t?Ea(e,t,{clone:!1}):e},Ta={xs:0,sm:600,md:900,lg:1200,xl:1536},Ma={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Ta[e],"px)")}};function Aa(e,t,n){var r=e.theme||{};if(Array.isArray(t)){var i=r.breakpoints||Ma;return t.reduce((function(e,r,o){return e[i.up(i.keys[o])]=n(t[o]),e}),{})}if("object"===typeof t){var o=r.breakpoints||Ma;return Object.keys(t).reduce((function(e,r){if(-1!==Object.keys(o.values||Ta).indexOf(r)){e[o.up(r)]=n(t[r],r)}else{var i=r;e[i]=t[i]}return e}),{})}return n(t)}function ja(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(null==(e=t.keys)?void 0:e.reduce((function(e,n){return e[t.up(n)]={},e}),{}))||{}}function Pa(e,t){return e.reduce((function(e,t){var n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function Ia(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){var r="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=r)return r}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function Ra(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||i:Ia(e,n)||i,t&&(r=t(r,i,e)),r}var Oa=function(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,i=e.themeKey,o=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=Ia(e.theme,i)||{};return Aa(e,n,(function(e){var n=Ra(a,o,e);return e===n&&"string"===typeof e&&(n=Ra(a,o,"".concat(t).concat("default"===e?"":ka(e)),e)),!1===r?n:(0,wa.Z)({},r,n)}))};return a.propTypes={},a.filterProps=[t],a};var Za={m:"margin",p:"padding"},La={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Na={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Fa=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!Na[e])return[e];e=Na[e]}var t=e.split(""),n=(0,i.Z)(t,2),r=n[0],o=n[1],a=Za[r],s=La[o]||"";return Array.isArray(s)?s.map((function(e){return a+e})):[a+s]})),Da=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ua=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Ga=[].concat(Da,Ua);function Ba(e,t,n,r){var i,o=null!=(i=Ia(e,t,!1))?i:n;return"number"===typeof o?function(e){return"string"===typeof e?e:o*e}:Array.isArray(o)?function(e){return"string"===typeof e?e:o[e]}:"function"===typeof o?o:function(){}}function za(e){return Ba(e,"spacing",8)}function Ka(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function Wa(e,t,n,r){if(-1===t.indexOf(n))return null;var i=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=Ka(t,n),e}),{})}}(Fa(n),r);return Aa(e,e[n],i)}function qa(e,t){var n=za(e.theme);return Object.keys(e).map((function(r){return Wa(e,t,r,n)})).reduce(_a,{})}function Ha(e){return qa(e,Da)}function Va(e){return qa(e,Ua)}function Xa(e){return qa(e,Ga)}Ha.propTypes={},Ha.filterProps=Da,Va.propTypes={},Va.filterProps=Ua,Xa.propTypes={},Xa.filterProps=Ga;var Ya=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.palette,i=void 0===r?{}:r,o=e.spacing,a=e.shape,s=void 0===a?{}:a,c=(0,Wi.Z)(e,Ms),u=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,r=e.unit,i=void 0===r?"px":r,o=e.step,a=void 0===o?5:o,s=(0,Wi.Z)(e,Es),c=_s(n),u=Object.keys(c);function l(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(i,")")}function d(e){var t="number"===typeof n[e]?n[e]:e;return"@media (max-width:".concat(t-a/100).concat(i,")")}function f(e,t){var r=u.indexOf(t);return"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(i,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[u[r]]?n[u[r]]:t)-a/100).concat(i,")")}return Ki({keys:u,values:c,up:l,down:d,between:f,only:function(e){return u.indexOf(e)+10&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=za({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r1?f-1:0),h=1;h0&&void 0!==arguments[0]?arguments[0]:null,r=e.useContext(da);return r&&(t=r,0!==Object.keys(t).length)?r:n},Ps=As();var Is=function(){return js(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ps)},Rs=n(93169),Os=["className","component"];var Zs=function(e){return e},Ls=function(){var e=Zs;return{configure:function(t){e=t},generate:function(t){return e(t)},reset:function(){e=Zs}}}();function Ns(e,t){var n;return Ki({toolbar:(n={minHeight:56},(0,wa.Z)(n,e.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),(0,wa.Z)(n,e.up("sm"),{minHeight:64}),n)},t)}function Fs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function Ds(e){if(e.type)return e;if("#"===e.charAt(0))return Ds(function(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(xa(9,e));var r,i=e.substring(t+1,e.length-1);if("color"===n){if(r=(i=i.split(" ")).shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(xa(10,r))}else i=i.split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)})),colorSpace:r}}function Us(e){var t=e.type,n=e.colorSpace,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function Gs(e){var t="hsl"===(e=Ds(e)).type||"hsla"===e.type?Ds(function(e){var t=(e=Ds(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),Us({type:s,values:c})}(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Bs(e,t){if(e=Ds(e),t=Fs(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return Us(e)}function zs(e,t){if(e=Ds(e),t=Fs(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Us(e)}var Ks={black:"#000",white:"#fff"},Ws={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},qs={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Hs={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Vs={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Xs={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ys={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Qs={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Js=["mode","contrastThreshold","tonalOffset"],$s={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ks.white,default:Ks.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},ec={text:{primary:Ks.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ks.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function tc(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=zs(e.main,i):"dark"===t&&(e.dark=Bs(e.main,o)))}function nc(e){var t=e.mode,n=void 0===t?"light":t,r=e.contrastThreshold,i=void 0===r?3:r,o=e.tonalOffset,a=void 0===o?.2:o,s=(0,Wi.Z)(e,Js),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Xs[200],light:Xs[50],dark:Xs[400]}:{main:Xs[700],light:Xs[400],dark:Xs[800]}}(n),u=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:qs[200],light:qs[50],dark:qs[400]}:{main:qs[500],light:qs[300],dark:qs[700]}}(n),l=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Hs[500],light:Hs[300],dark:Hs[700]}:{main:Hs[700],light:Hs[400],dark:Hs[800]}}(n),d=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Ys[400],light:Ys[300],dark:Ys[700]}:{main:Ys[700],light:Ys[500],dark:Ys[900]}}(n),f=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Qs[400],light:Qs[300],dark:Qs[700]}:{main:Qs[800],light:Qs[500],dark:Qs[900]}}(n),p=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Vs[400],light:Vs[300],dark:Vs[700]}:{main:"#ed6c02",light:Vs[500],dark:Vs[900]}}(n);function h(e){var t=function(e,t){var n=Gs(e),r=Gs(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,ec.text.primary)>=i?ec.text.primary:$s.text.primary;return t}var v=function(e){var t=e.color,n=e.name,r=e.mainShade,i=void 0===r?500:r,o=e.lightShade,s=void 0===o?300:o,c=e.darkShade,u=void 0===c?700:c;if(!(t=Ki({},t)).main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw new Error(xa(11,n?" (".concat(n,")"):"",i));if("string"!==typeof t.main)throw new Error(xa(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return tc(t,"light",s,a),tc(t,"dark",u,a),t.contrastText||(t.contrastText=h(t.main)),t},g={dark:ec,light:$s};return Ea(Ki({common:Ki({},Ks),mode:n,primary:v({color:c,name:"primary"}),secondary:v({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:l,name:"error"}),warning:v({color:p,name:"warning"}),info:v({color:d,name:"info"}),success:v({color:f,name:"success"}),grey:Ws,contrastThreshold:i,getContrastText:h,augmentColor:v,tonalOffset:a},g[n]),s)}var rc=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var ic={textTransform:"uppercase"},oc='"Roboto", "Helvetica", "Arial", sans-serif';function ac(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,i=void 0===r?oc:r,o=n.fontSize,a=void 0===o?14:o,s=n.fontWeightLight,c=void 0===s?300:s,u=n.fontWeightRegular,l=void 0===u?400:u,d=n.fontWeightMedium,f=void 0===d?500:d,p=n.fontWeightBold,h=void 0===p?700:p,v=n.htmlFontSize,g=void 0===v?16:v,m=n.allVariants,y=n.pxToRem,b=(0,Wi.Z)(n,rc);var w=a/14,x=y||function(e){return"".concat(e/g*w,"rem")},k=function(e,t,n,r,o){return Ki({fontFamily:i,fontWeight:e,fontSize:x(t),lineHeight:n},i===oc?{letterSpacing:"".concat((a=r/t,Math.round(1e5*a)/1e5),"em")}:{},o,m);var a},S={h1:k(c,96,1.167,-1.5),h2:k(c,60,1.2,-.5),h3:k(l,48,1.167,0),h4:k(l,34,1.235,.25),h5:k(l,24,1.334,0),h6:k(f,20,1.6,.15),subtitle1:k(l,16,1.75,.15),subtitle2:k(f,14,1.57,.1),body1:k(l,16,1.5,.15),body2:k(l,14,1.43,.15),button:k(f,14,1.75,.4,ic),caption:k(l,12,1.66,.4),overline:k(l,12,2.66,1,ic),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ea(Ki({htmlFontSize:g,pxToRem:x,fontFamily:i,fontSize:a,fontWeightLight:c,fontWeightRegular:l,fontWeightMedium:f,fontWeightBold:h},S),b,{clone:!1})}function sc(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var cc=["none",sc(0,2,1,-1,0,1,1,0,0,1,3,0),sc(0,3,1,-2,0,2,2,0,0,1,5,0),sc(0,3,3,-2,0,3,4,0,0,1,8,0),sc(0,2,4,-1,0,4,5,0,0,1,10,0),sc(0,3,5,-1,0,5,8,0,0,1,14,0),sc(0,3,5,-1,0,6,10,0,0,1,18,0),sc(0,4,5,-2,0,7,10,1,0,2,16,1),sc(0,5,5,-3,0,8,10,1,0,3,14,2),sc(0,5,6,-3,0,9,12,1,0,3,16,2),sc(0,6,6,-3,0,10,14,1,0,4,18,3),sc(0,6,7,-4,0,11,15,1,0,4,20,3),sc(0,7,8,-4,0,12,17,2,0,5,22,4),sc(0,7,8,-4,0,13,19,2,0,5,24,4),sc(0,7,9,-4,0,14,21,2,0,5,26,4),sc(0,8,9,-5,0,15,22,2,0,6,28,5),sc(0,8,10,-5,0,16,24,2,0,6,30,5),sc(0,8,11,-5,0,17,26,2,0,6,32,5),sc(0,9,11,-5,0,18,28,2,0,7,34,6),sc(0,9,12,-6,0,19,29,2,0,7,36,6),sc(0,10,13,-6,0,20,31,3,0,8,38,7),sc(0,10,13,-6,0,21,33,3,0,8,40,7),sc(0,10,14,-6,0,22,35,3,0,8,42,7),sc(0,11,14,-7,0,23,36,3,0,9,44,8),sc(0,11,15,-7,0,24,38,3,0,9,46,8)],uc=["duration","easing","delay"],lc={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},dc={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function fc(e){return"".concat(Math.round(e),"ms")}function pc(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}function hc(e){var t=Ki({},lc,e.easing),n=Ki({},dc,e.duration);return Ki({getAutoHeightDuration:pc,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.duration,o=void 0===i?n.standard:i,a=r.easing,s=void 0===a?t.easeInOut:a,c=r.delay,u=void 0===c?0:c;(0,Wi.Z)(r,uc);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof o?o:fc(o)," ").concat(s," ").concat("string"===typeof u?u:fc(u))})).join(",")}},e,{easing:t,duration:n})}var vc={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},gc=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function mc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,n=void 0===t?{}:t,r=e.palette,i=void 0===r?{}:r,o=e.transitions,a=void 0===o?{}:o,s=e.typography,c=void 0===s?{}:s,u=(0,Wi.Z)(e,gc);if(e.vars)throw new Error(xa(18));var l=nc(i),d=As(e),f=Ea(d,{mixins:Ns(d.breakpoints,n),palette:l,shadows:cc.slice(),typography:ac(l,c),transitions:hc(a),zIndex:Ki({},vc)});f=Ea(f,u);for(var p=arguments.length,h=new Array(p>1?p-1:0),v=1;v0&&void 0!==arguments[0]?arguments[0]:{},n=t.themeId,r=t.defaultTheme,i=t.defaultClassName,o=void 0===i?"MuiBox-root":i,a=t.generateClassName,s=ba("div",{shouldForwardProp:function(e){return"theme"!==e&&"sx"!==e&&"as"!==e}})(ks),c=e.forwardRef((function(e,t){var i=Is(r),c=function(e){var t,n=e.sx,r=(0,Wi.Z)(e,Ss),i=Cs(r),o=i.systemProps,a=i.otherProps;return t=Array.isArray(n)?[o].concat((0,f.Z)(n)):"function"===typeof n?function(){var e=n.apply(void 0,arguments);return Sa(e)?Ki({},o,e):o}:Ki({},o,n),Ki({},a,{sx:t})}(e),u=c.className,l=c.component,d=void 0===l?"div":l,p=(0,Wi.Z)(c,Os);return(0,Rs.jsx)(s,Ki({as:d,ref:t,className:Hi(u,a?a(o):o),theme:n&&i[n]||i},p))}));return c}({themeId:bc,defaultTheme:wc,defaultClassName:"MuiBox-root",generateClassName:Ls.generate}),kc=xc;function Sc(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function Cc(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};var n={};return Object.keys(e).filter((function(n){return n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n)})).forEach((function(t){n[t]=e[t]})),n}function _c(e){if(void 0===e)return{};var t={};return Object.keys(e).filter((function(t){return!(t.match(/^on[A-Z]/)&&"function"===typeof e[t])})).forEach((function(n){t[n]=e[n]})),t}var Tc=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Mc(e){var t,n=e.elementType,r=e.externalSlotProps,i=e.ownerState,o=e.skipResolvingSlotProps,a=void 0!==o&&o,s=(0,Wi.Z)(e,Tc),c=a?{}:function(e,t,n){return"function"===typeof e?e(t,n):e}(r,i),u=function(e){var t=e.getSlotProps,n=e.additionalProps,r=e.externalSlotProps,i=e.externalForwardedProps,o=e.className;if(!t){var a=Hi(null==i?void 0:i.className,null==r?void 0:r.className,o,null==n?void 0:n.className),s=Ki({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),c=Ki({},n,i,r);return a.length>0&&(c.className=a),Object.keys(s).length>0&&(c.style=s),{props:c,internalRef:void 0}}var u=Ec(Ki({},i,r)),l=_c(r),d=_c(i),f=t(u),p=Hi(null==f?void 0:f.className,null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),h=Ki({},null==f?void 0:f.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),v=Ki({},f,n,d,l);return p.length>0&&(v.className=p),Object.keys(h).length>0&&(v.style=h),{props:v,internalRef:f.ref}}(Ki({},s,{externalSlotProps:c})),l=function(e,t,n){return void 0===e||"string"===typeof e?t:Ki({},t,{ownerState:Ki({},t.ownerState,n)})}(n,Ki({},u.props,{ref:Cc(u.internalRef,null==c?void 0:c.ref,null==(t=e.additionalProps)?void 0:t.ref)}),i);return l}function Ac(e){return e&&e.ownerDocument||document}var jc="undefined"!==typeof window?e.useLayoutEffect:e.useEffect;var Pc=function(t){var n=e.useRef(t);return jc((function(){n.current=t})),e.useCallback((function(){return n.current.apply(void 0,arguments)}),[])};function Ic(){for(var e=arguments.length,t=new Array(e),n=0;nt.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){var i=function(e){var t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Ac(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight="".concat(Zc(r)+i,"px");var o=Ac(r).querySelectorAll(".mui-fixed");[].forEach.call(o,(function(e){n.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat(Zc(e)+i,"px")}))}var a;if(r.parentNode instanceof DocumentFragment)a=Ac(r).body;else{var s=r.parentElement,c=Rc(r);a="HTML"===(null==s?void 0:s.nodeName)&&"scroll"===c.getComputedStyle(s).overflowY?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return function(){n.forEach((function(e){var t=e.value,n=e.el,r=e.property;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var Dc=function(){function e(){(0,s.Z)(this,e),this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}return(0,a.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Oc(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Lc(t,e.mount,e.modalRef,r,!0);var i=Nc(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}},{key:"mount",value:function(e,t){var n=Nc(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Fc(r,t))}},{key:"remove",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.modals.indexOf(e);if(-1===n)return n;var r=Nc(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&Oc(e.modalRef,t),Lc(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{var o=i.modals[i.modals.length-1];o.modalRef&&Oc(o.modalRef,!1)}return n}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var Uc=new Dc;function Gc(t){var n=t.container,r=t.disableEscapeKeyDown,o=void 0!==r&&r,a=t.disableScrollLock,s=void 0!==a&&a,c=t.manager,u=void 0===c?Uc:c,l=t.closeAfterTransition,d=void 0!==l&&l,f=t.onTransitionEnter,p=t.onTransitionExited,h=t.children,v=t.onClose,g=t.open,m=t.rootRef,y=e.useRef({}),b=e.useRef(null),w=e.useRef(null),x=Cc(w,m),k=e.useState(!g),S=(0,i.Z)(k,2),C=S[0],E=S[1],_=function(e){return!!e&&e.props.hasOwnProperty("in")}(h),T=!0;"false"!==t["aria-hidden"]&&!1!==t["aria-hidden"]||(T=!1);var M=function(){return y.current.modalRef=w.current,y.current.mount=b.current,y.current},A=function(){u.mount(M(),{disableScrollLock:s}),w.current&&(w.current.scrollTop=0)},j=Pc((function(){var e=function(e){return"function"===typeof e?e():e}(n)||Ac(b.current).body;u.add(M(),e),w.current&&A()})),P=e.useCallback((function(){return u.isTopModal(M())}),[u]),I=Pc((function(e){b.current=e,e&&(g&&P()?A():w.current&&Oc(w.current,T))})),R=e.useCallback((function(){u.remove(M(),T)}),[T,u]);e.useEffect((function(){return function(){R()}}),[R]),e.useEffect((function(){g?j():_&&d||R()}),[g,R,_,d,j]);var O=function(e){return function(t){var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&P()&&(o||(t.stopPropagation(),v&&v(t,"escapeKeyDown")))}},Z=function(e){return function(t){var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&v&&v(t,"backdropClick")}};return{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Ec(t);delete n.onTransitionEnter,delete n.onTransitionExited;var r=Ki({},n,e);return Ki({role:"presentation"},r,{onKeyDown:O(r),ref:x})},getBackdropProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ki({"aria-hidden":!0},e,{onClick:Z(e),open:g})},getTransitionProps:function(){return{onEnter:Ic((function(){E(!1),f&&f()}),null==h?void 0:h.props.onEnter),onExited:Ic((function(){E(!0),p&&p(),d&&R()}),null==h?void 0:h.props.onExited)}},rootRef:x,portalRef:I,isTopModal:P,exited:C,hasTransition:_}}function Bc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r={};return Object.keys(e).forEach((function(i){r[i]=e[i].reduce((function(e,r){if(r){var i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}var zc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Kc(e){var t=[],n=[];return Array.from(e.querySelectorAll(zc)).forEach((function(e,r){var i=function(e){var t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;var t=function(t){return e.ownerDocument.querySelector('input[type="radio"]'.concat(t))},n=t('[name="'.concat(e.name,'"]:checked'));return n||(n=t('[name="'.concat(e.name,'"]'))),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort((function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex})).map((function(e){return e.node})).concat(t)}function Wc(){return!0}function qc(t){var n=t.children,r=t.disableAutoFocus,i=void 0!==r&&r,o=t.disableEnforceFocus,a=void 0!==o&&o,s=t.disableRestoreFocus,c=void 0!==s&&s,u=t.getTabbable,l=void 0===u?Kc:u,d=t.isEnabled,f=void 0===d?Wc:d,p=t.open,h=e.useRef(!1),v=e.useRef(null),g=e.useRef(null),m=e.useRef(null),y=e.useRef(null),b=e.useRef(!1),w=e.useRef(null),x=Cc(n.ref,w),k=e.useRef(null);e.useEffect((function(){p&&w.current&&(b.current=!i)}),[i,p]),e.useEffect((function(){if(p&&w.current){var e=Ac(w.current);return w.current.contains(e.activeElement)||(w.current.hasAttribute("tabIndex")||w.current.setAttribute("tabIndex","-1"),b.current&&w.current.focus()),function(){c||(m.current&&m.current.focus&&(h.current=!0,m.current.focus()),m.current=null)}}}),[p]),e.useEffect((function(){if(p&&w.current){var e=Ac(w.current),t=function(t){k.current=t,!a&&f()&&"Tab"===t.key&&e.activeElement===w.current&&t.shiftKey&&(h.current=!0,g.current&&g.current.focus())},n=function(){var t=w.current;if(null!==t)if(e.hasFocus()&&f()&&!h.current){if(!t.contains(e.activeElement)&&(!a||e.activeElement===v.current||e.activeElement===g.current)){if(e.activeElement!==y.current)y.current=null;else if(null!==y.current)return;if(b.current){var n=[];if(e.activeElement!==v.current&&e.activeElement!==g.current||(n=l(w.current)),n.length>0){var r,i,o=Boolean((null==(r=k.current)?void 0:r.shiftKey)&&"Tab"===(null==(i=k.current)?void 0:i.key)),s=n[0],c=n[n.length-1];"string"!==typeof s&&"string"!==typeof c&&(o?c.focus():s.focus())}else t.focus()}}}else h.current=!1};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);var r=setInterval((function(){e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return function(){clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}}),[i,a,c,f,p,l]);var S=function(e){null===m.current&&(m.current=e.relatedTarget),b.current=!0};return(0,Rs.jsxs)(e.Fragment,{children:[(0,Rs.jsx)("div",{tabIndex:p?0:-1,onFocus:S,ref:v,"data-testid":"sentinelStart"}),e.cloneElement(n,{ref:x,onFocus:function(e){null===m.current&&(m.current=e.relatedTarget),b.current=!0,y.current=e.target;var t=n.props.onFocus;t&&t(e)}}),(0,Rs.jsx)("div",{tabIndex:p?0:-1,onFocus:S,ref:g,"data-testid":"sentinelEnd"})]})}var Hc=e.forwardRef((function(t,n){var r=t.children,o=t.container,a=t.disablePortal,s=void 0!==a&&a,c=e.useState(null),u=(0,i.Z)(c,2),l=u[0],d=u[1],f=Cc(e.isValidElement(r)?r.ref:null,n);if(jc((function(){s||d(function(e){return"function"===typeof e?e():e}(o)||document.body)}),[o,s]),jc((function(){if(l&&!s)return Sc(n,l),function(){Sc(n,null)}}),[n,l,s]),s){if(e.isValidElement(r)){var p={ref:f};return e.cloneElement(r,p)}return(0,Rs.jsx)(e.Fragment,{children:r})}return(0,Rs.jsx)(e.Fragment,{children:l?Hn.createPortal(r,l):l})}));var Vc=["variant"];function Xc(e){return 0===e.length}function Yc(e){var t=e.variant,n=(0,Wi.Z)(e,Vc),r=t||"";return Object.keys(n).sort().forEach((function(t){r+="color"===t?Xc(r)?e[t]:ka(e[t]):"".concat(Xc(r)?t:ka(t)).concat(ka(e[t].toString()))})),r}var Qc=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];var Jc=function(e){var t={};return e&&e.forEach((function(e){var n=Yc(e.props);t[n]=e.style})),t},$c=function(e,t,n){var r=e.ownerState,i=void 0===r?{}:r,o=[];return n&&n.forEach((function(n){var r=!0;Object.keys(n.props).forEach((function(t){i[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&o.push(t[Yc(n.props)])})),o};function eu(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var tu=As();function nu(e){var t,n=e.defaultTheme,r=e.theme,i=e.themeId;return t=r,0===Object.keys(t).length?n:r[i]||r}var ru=function(e){var t,n=e.styledArg,r=e.props,i=n(Ki({},r,{theme:nu(Ki({},r,{defaultTheme:e.defaultTheme,themeId:e.themeId}))}));if(i&&i.variants&&(t=i.variants,delete i.variants),t){var o=$c(r,Jc(t),t);return[i].concat((0,f.Z)(o))}return i};var iu=yc(),ou=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.themeId,n=e.defaultTheme,r=void 0===n?tu:n,o=e.rootShouldForwardProp,a=void 0===o?eu:o,s=e.slotShouldForwardProp,c=void 0===s?eu:s,u=function(e){return ks(Ki({},e,{theme:nu(Ki({},e,{defaultTheme:r,themeId:t}))}))};return u.__mui_systemSx=!0,function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var o,s,l=n.name,d=n.slot,p=n.skipVariantsResolver,h=n.skipSx,v=n.overridesResolver,g=void 0===v?(o=(s=d)?s.charAt(0).toLowerCase()+s.slice(1):s)?function(e,t){return t[o]}:null:v,m=(0,Wi.Z)(n,Qc),y=void 0!==p?p:d&&"Root"!==d&&"root"!==d||!1,b=h||!1;var w=eu;"Root"===d||"root"===d?w=a:d?w=c:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(w=void 0);var x=ba(e,Ki({shouldForwardProp:w,label:undefined},m)),k=function(n){for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s0){var v=new Array(h).fill("");(p=[].concat((0,f.Z)(n),(0,f.Z)(v))).raw=[].concat((0,f.Z)(n.raw),(0,f.Z)(v))}var m=x.apply(void 0,[p].concat((0,f.Z)(d)));return e.muiName&&(m.muiName=e.muiName),m};return x.withConfig&&(k.withConfig=x.withConfig),k}}({themeId:bc,defaultTheme:iu,rootShouldForwardProp:function(e){return eu(e)&&"classes"!==e}}),au=ou;function su(e,t){var n=Ki({},t);return Object.keys(e).forEach((function(r){if(r.toString().match(/^(components|slots)$/))n[r]=Ki({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){var i=e[r]||{},o=t[r];n[r]={},o&&Object.keys(o)?i&&Object.keys(i)?(n[r]=Ki({},o),Object.keys(i).forEach((function(e){n[r][e]=su(i[e],o[e])}))):n[r]=o:n[r]=i}else void 0===n[r]&&(n[r]=e[r])})),n}function cu(e){var t=e.theme,n=e.name,r=e.props;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?su(t.components[n].defaultProps,r):r}function uu(e){return function(e){var t=e.props,n=e.name,r=e.defaultTheme,i=e.themeId,o=Is(r);return i&&(o=o[i]||o),cu({theme:o,name:n,props:t})}({props:e.props,name:e.name,defaultTheme:iu,themeId:bc})}var lu=n(80374);var du=!1,fu=e.createContext(null),pu="unmounted",hu="exited",vu="entering",gu="entered",mu="exiting",yu=function(t){var n,r;function i(e,n){var r;r=t.call(this,e,n)||this;var i,o=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?o?(i=hu,r.appearStatus=vu):i=gu:i=e.unmountOnExit||e.mountOnEnter?pu:hu,r.state={status:i},r.nextCallback=null,r}r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,(0,lu.Z)(n,r),i.getDerivedStateFromProps=function(e,t){return e.in&&t.status===pu?{status:hu}:null};var o=i.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==vu&&n!==gu&&(t=vu):n!==vu&&n!==gu||(t=mu)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},o.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===vu){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Hn.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===hu&&this.setState({status:pu})},o.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Hn.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;!e&&!n||du?this.safeSetState({status:gu},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:vu},(function(){t.props.onEntering(o,a),t.onTransitionEnd(c,(function(){t.safeSetState({status:gu},(function(){t.props.onEntered(o,a)}))}))})))},o.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Hn.findDOMNode(this);t&&!du?(this.props.onExit(r),this.safeSetState({status:mu},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:hu},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:hu},(function(){e.props.onExited(r)}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Hn.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},o.render=function(){var t=this.state.status;if(t===pu)return null;var n=this.props,r=n.children,i=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,(0,Wi.Z)(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(fu.Provider,{value:null},"function"===typeof r?r(t,i):e.cloneElement(e.Children.only(r),i))},i}(e.Component);function bu(){}yu.contextType=fu,yu.propTypes={},yu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:bu,onEntering:bu,onEntered:bu,onExit:bu,onExiting:bu,onExited:bu},yu.UNMOUNTED=pu,yu.EXITED=hu,yu.ENTERING=vu,yu.ENTERED=gu,yu.EXITING=mu;var wu=yu;function xu(e,t){var n,r,i=e.timeout,o=e.easing,a=e.style,s=void 0===a?{}:a;return{duration:null!=(n=s.transitionDuration)?n:"number"===typeof i?i:i[t.mode]||0,easing:null!=(r=s.transitionTimingFunction)?r:"object"===typeof o?o[t.mode]:o,delay:s.transitionDelay}}var ku=Cc,Su=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Cu={entering:{opacity:1},entered:{opacity:1}},Eu=e.forwardRef((function(t,n){var r=function(){var e=Is(iu);return e[bc]||e}(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},o=t.addEndListener,a=t.appear,s=void 0===a||a,c=t.children,u=t.easing,l=t.in,d=t.onEnter,f=t.onEntered,p=t.onEntering,h=t.onExit,v=t.onExited,g=t.onExiting,m=t.style,y=t.timeout,b=void 0===y?i:y,w=t.TransitionComponent,x=void 0===w?wu:w,k=(0,Wi.Z)(t,Su),S=e.useRef(null),C=ku(S,c.ref,n),E=function(e){return function(t){if(e){var n=S.current;void 0===t?e(n):e(n,t)}}},_=E(p),T=E((function(e,t){!function(e){e.scrollTop}(e);var n=xu({style:m,timeout:b,easing:u},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),d&&d(e,t)})),M=E(f),A=E(g),j=E((function(e){var t=xu({style:m,timeout:b,easing:u},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),h&&h(e)})),P=E(v);return(0,Rs.jsx)(x,Ki({appear:s,in:l,nodeRef:S,onEnter:T,onEntered:M,onEntering:_,onExit:j,onExited:P,onExiting:A,addEndListener:function(e){o&&o(S.current,e)},timeout:b},k,{children:function(t,n){return e.cloneElement(c,Ki({style:Ki({opacity:0,visibility:"exited"!==t||l?void 0:"hidden"},Cu[t],m,c.props.style),ref:C},n))}}))})),_u=Eu,Tu={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Mu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",r=Tu[t];return r?"".concat(n,"-").concat(r):"".concat(Ls.generate(e),"-").concat(t)}function Au(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",r={};return t.forEach((function(t){r[t]=Mu(e,t,n)})),r}function ju(e){return Mu("MuiBackdrop",e)}Au("MuiBackdrop",["root","invisible"]);var Pu=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Iu=au("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.invisible&&t.invisible]}})((function(e){return Ki({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.ownerState.invisible&&{backgroundColor:"transparent"})})),Ru=e.forwardRef((function(e,t){var n,r,i,o=uu({props:e,name:"MuiBackdrop"}),a=o.children,s=o.className,c=o.component,u=void 0===c?"div":c,l=o.components,d=void 0===l?{}:l,f=o.componentsProps,p=void 0===f?{}:f,h=o.invisible,v=void 0!==h&&h,g=o.open,m=o.slotProps,y=void 0===m?{}:m,b=o.slots,w=void 0===b?{}:b,x=o.TransitionComponent,k=void 0===x?_u:x,S=o.transitionDuration,C=(0,Wi.Z)(o,Pu),E=Ki({},o,{component:u,invisible:v}),_=function(e){var t=e.classes;return Bc({root:["root",e.invisible&&"invisible"]},ju,t)}(E),T=null!=(n=y.root)?n:p.root;return(0,Rs.jsx)(k,Ki({in:g,timeout:S},C,{children:(0,Rs.jsx)(Iu,Ki({"aria-hidden":!0},T,{as:null!=(r=null!=(i=w.root)?i:d.Root)?r:u,className:Hi(_.root,s,null==T?void 0:T.className),ownerState:Ki({},E,null==T?void 0:T.ownerState),classes:_,ref:t,children:a}))}))}));function Ou(e){return Mu("MuiModal",e)}Au("MuiModal",["root","hidden","backdrop"]);var Zu,Lu,Nu,Fu,Du,Uu,Gu,Bu,zu,Ku,Wu,qu,Hu,Vu,Xu,Yu,Qu,Ju,$u,el,tl,nl,rl,il,ol,al,sl,cl,ul,ll=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],dl=au("div",{name:"MuiModal",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.open&&n.exited&&t.hidden]}})((function(e){var t=e.theme,n=e.ownerState;return Ki({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})})),fl=au(Ru,{name:"MuiModal",slot:"Backdrop",overridesResolver:function(e,t){return t.backdrop}})({zIndex:-1}),pl=e.forwardRef((function(t,n){var r,i,o,a,s,c,u=uu({name:"MuiModal",props:t}),l=u.BackdropComponent,d=void 0===l?fl:l,f=u.BackdropProps,p=u.className,h=u.closeAfterTransition,v=void 0!==h&&h,g=u.children,m=u.container,y=u.component,b=u.components,w=void 0===b?{}:b,x=u.componentsProps,k=void 0===x?{}:x,S=u.disableAutoFocus,C=void 0!==S&&S,E=u.disableEnforceFocus,_=void 0!==E&&E,T=u.disableEscapeKeyDown,M=void 0!==T&&T,A=u.disablePortal,j=void 0!==A&&A,P=u.disableRestoreFocus,I=void 0!==P&&P,R=u.disableScrollLock,O=void 0!==R&&R,Z=u.hideBackdrop,L=void 0!==Z&&Z,N=u.keepMounted,F=void 0!==N&&N,D=u.onBackdropClick,U=u.open,G=u.slotProps,B=u.slots,z=(0,Wi.Z)(u,ll),K=Ki({},u,{closeAfterTransition:v,disableAutoFocus:C,disableEnforceFocus:_,disableEscapeKeyDown:M,disablePortal:j,disableRestoreFocus:I,disableScrollLock:O,hideBackdrop:L,keepMounted:F}),W=Gc(Ki({},K,{rootRef:n})),q=W.getRootProps,H=W.getBackdropProps,V=W.getTransitionProps,X=W.portalRef,Y=W.isTopModal,Q=W.exited,J=W.hasTransition,$=Ki({},K,{exited:Q}),ee=function(e){var t=e.open,n=e.exited;return Bc({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Ou,e.classes)}($),te={};if(void 0===g.props.tabIndex&&(te.tabIndex="-1"),J){var ne=V(),re=ne.onEnter,ie=ne.onExited;te.onEnter=re,te.onExited=ie}var oe=null!=(r=null!=(i=null==B?void 0:B.root)?i:w.Root)?r:dl,ae=null!=(o=null!=(a=null==B?void 0:B.backdrop)?a:w.Backdrop)?o:d,se=null!=(s=null==G?void 0:G.root)?s:k.root,ce=null!=(c=null==G?void 0:G.backdrop)?c:k.backdrop,ue=Mc({elementType:oe,externalSlotProps:se,externalForwardedProps:z,getSlotProps:q,additionalProps:{ref:n,as:y},ownerState:$,className:Hi(p,null==se?void 0:se.className,null==ee?void 0:ee.root,!$.open&&$.exited&&(null==ee?void 0:ee.hidden))}),le=Mc({elementType:ae,externalSlotProps:ce,additionalProps:f,getSlotProps:function(e){return H(Ki({},e,{onClick:function(t){D&&D(t),null!=e&&e.onClick&&e.onClick(t)}}))},className:Hi(null==ce?void 0:ce.className,null==f?void 0:f.className,null==ee?void 0:ee.backdrop),ownerState:$});return F||U||J&&!Q?(0,Rs.jsx)(Hc,{ref:X,container:m,disablePortal:j,children:(0,Rs.jsxs)(oe,Ki({},ue,{children:[!L&&d?(0,Rs.jsx)(ae,Ki({},le)):null,(0,Rs.jsx)(qc,{disableEnforceFocus:_,disableAutoFocus:C,disableRestoreFocus:I,isEnabled:Y,open:U,children:e.cloneElement(g,te)})]}))}):null})),hl=pl,vl=zi.div(Zu||(Zu=(0,o.Z)(["\n align-items: center !important;\n flex-direction: column !important;\n display: flex !important;\n flex-wrap: wrap;\n align-content: space-around;\n justify-content: center;\n margin: 0 0 4rem 0;\n"]))),gl=zi.video(Lu||(Lu=(0,o.Z)(["\n position: absolute;\n z-index: -1;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n min-width: 100%;\n min-height: 100%;\n object-fit: cover;\n background-position-x: center;\n"]))),ml=zi.a(Nu||(Nu=(0,o.Z)(["\n width: 100px;\n height: 100px;\n background: radial-gradient(rgb(112, 76, 179, 0.8) 60%, rgba(255, 255, 255, 1) 62%);\n border-radius: 50%;\n position: relative;\n display: block;\n margin: 1.2rem 0;\n box-shadow: 0px 0px 20px 3px #fff;\n user-select: none;\n -webkit-user-drag: none;\n\n &:before {\n content: '';\n position: absolute;\n width: 150%;\n height: 150%;\n -webkit-animation-delay: 0s;\n animation-delay: 0s;\n -webkit-animation: pulsate1 2s;\n animation: pulsate1 2s;\n -webkit-animation-direction: forwards;\n animation-direction: forwards;\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-timing-function: steps;\n animation-timing-function: steps;\n opacity: 1;\n border-radius: 50%;\n border: 5px solid #fff;\n top: -25%;\n left: -25%;\n background: whitesmoke;\n }\n\n &:after {\n content: '';\n position: absolute;\n left: 50%;\n top: 50%;\n -webkit-transform: translateX(-40%) translateY(-50%);\n transform: translateX(-40%) translateY(-50%);\n transform-origin: center center;\n width: 0;\n height: 0;\n border-top: 15px solid transparent;\n border-bottom: 15px solid transparent;\n border-left: 25px solid #fff;\n z-index: 1;\n -webkit-transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);\n transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);\n }\n"]))),yl=zi.button(Fu||(Fu=(0,o.Z)(["\n padding: 0px;\n margin-bottom: 0px;\n line-height: 0px;\n border: 0px !important;\n background-color: transparent !important;\n"]))),bl=zi.div(Du||(Du=(0,o.Z)(["\n display: flex;\n flex-flow: row wrap;\n align-items: center;\n justify-content: center;\n gap: 0rem 4rem;\n"]))),wl=zi.div(Uu||(Uu=(0,o.Z)(["\n max-width: 17rem;\n width: ",";\n height: 100%;\n margin-left: -7px;\n margin-top: 18px;\n\n img {\n transition: 1s ease;\n\n &:hover {\n -webkit-transform: scale(1.2);\n -ms-transform: scale(1.2);\n transform: scale(1.2);\n transition: 1s ease;\n }\n }\n"])),(function(e){return e.isSmallScreen?"11rem":"17rem"})),xl={position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},kl=zi.div(Gu||(Gu=(0,o.Z)(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */\n display: flex;\n justify-content: center;\n align-items: center;\n"]))),Sl=zi.div(Bu||(Bu=(0,o.Z)(["\n width: 80%; /* Adjust this value as needed */\n background-color: white;\n position: relative;\n\n &:before {\n content: '';\n display: block;\n padding-top: 56.25%; /* 16:9 aspect ratio (9 / 16 = 0.5625) */\n }\n"]))),Cl=function(t){var r=t.isScreen550,o=(0,e.useState)(!1),a=(0,i.Z)(o,2),s=a[0],c=a[1];return(0,Rs.jsxs)(Rs.Fragment,{children:[(0,Rs.jsx)(hl,{open:s,onClose:function(){return c(!1)},"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:(0,Rs.jsx)(kc,{sx:xl,children:(0,Rs.jsx)(kl,{children:(0,Rs.jsx)(Sl,{className:"embed-responsive",children:(0,Rs.jsx)("iframe",{id:"video",width:"100%",height:"100%",className:"responsive-iframe",src:"https://www.youtube.com/embed/tpR_GkFUrkY?si=nWWBZ678w3Wc-a-_",title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})})})}),(0,Rs.jsxs)("div",{className:"hero page-section",id:"home",style:{marginTop:"0px",height:"91vh"},children:[(0,Rs.jsxs)(gl,{autoPlay:!0,muted:!0,loop:!0,controls:!1,disablePictureInPicture:!0,children:[(0,Rs.jsx)("source",{src:n(90556),type:"video/webm"}),(0,Rs.jsx)("source",{src:n(29085),type:"video/mp4"})]}),(0,Rs.jsxs)(vl,{children:[(0,Rs.jsx)("img",{style:{width:"30rem"},src:n(55198),alt:"msw_logo"}),(0,Rs.jsx)("div",{className:"yt-trailer",children:(0,Rs.jsx)(yl,{name:"play-btn",onClick:function(){c(!0)},type:"button","aria-label":"youtube-trailer",className:"btn btn-primary video-btn",children:(0,Rs.jsx)(ml,{className:"play-btn",href:"#"})})}),(0,Rs.jsxs)(bl,{children:[(0,Rs.jsx)(wl,{isSmallScreen:r,children:(0,Rs.jsx)("a",{className:"btn-googleplay hover-shadow",target:"_blank",href:"https://www.metagg.com/msw-webgl-build/",children:(0,Rs.jsx)("img",{className:"btn-googleplay",src:n(44173)})})}),(0,Rs.jsx)(wl,{isSmallScreen:r,children:(0,Rs.jsx)("a",{className:"btn-googleplay hover-shadow",target:"_blank",href:"https://play.google.com/store/apps/details?id=com.metagg",children:(0,Rs.jsx)("img",{className:"btn-googleplay",src:n(29512)})})}),(0,Rs.jsx)(wl,{isSmallScreen:r,children:(0,Rs.jsx)("a",{className:"btn-googleplay hover-shadow",target:"_blank",href:" https://apps.apple.com/ph/app/metasaga-warriors/id6469090246",children:(0,Rs.jsx)("img",{className:"btn-googleplay",src:n(42129)})})})]})]})]})]})},El=(zi.button(zu||(zu=(0,o.Z)(["\n min-width: 7.8rem;\n max-width: 26rem;\n height: 3rem;\n padding: 0 1rem;\n background: linear-gradient(45deg, transparent 5%, #e63525 5%);\n border: 0;\n color: #fff;\n letter-spacing: 2.5px;\n box-shadow: 1rem 0px 0px ",";\n outline: transparent;\n position: relative;\n user-select: none;\n -webkit-user-select: none;\n touch-action: manipulation;\n position: relative;\n z-index: 5;\n"])),(function(e){return e.signed?"#00ffe1":"#303030"})),zi.div(Ku||(Ku=(0,o.Z)(["\n display: flex;\n justify-content: center;\n margin: 1.5rem;\n"])))),_l=zi.div(Wu||(Wu=(0,o.Z)(["\n position: relative;\n align-items: center;\n display: flex;\n flex-direction: column;\n min-width: 0;\n word-wrap: break-word;\n background-color: rgba(255, 255, 255, 0);\n -webkit-background-clip: border-box;\n background-clip: border-box;\n padding: ",";\n border: 0rem solid rgba(0, 0, 0, 0.125);\n border-radius: 0rem;\n background-image: url(",");\n background-size: cover;\n background-position: center;\n\n @media (max-width: 721px) {\n padding: 3rem 5rem !important;\n\n h1 {\n font-size: 2.4rem !important;\n }\n }\n\n @media (max-width: 440px) {\n padding: 3rem 5rem !important;\n h1 {\n font-size: 2.4rem !important;\n }\n }\n"])),(function(e){var t=e.padding;return null!==t&&void 0!==t?t:"2rem 4rem"}),n(26200)),Tl=zi.div(qu||(qu=(0,o.Z)(["\n margin: ",";\n max-width: ",";\n justify-content: ",";\n min-height: ",";\n display: ",";\n gap: 1rem;\n"])),(function(e){var t=e.margin;return null!==t&&void 0!==t?t:"8rem"}),(function(e){var t=e.maxWidth;return null!==t&&void 0!==t?t:"none"}),(function(e){var t=e.justifyContent;return null!==t&&void 0!==t?t:"none"}),(function(e){var t=e.minHeight;return null!==t&&void 0!==t?t:"30rem"}),(function(e){var t=e.display;return null!==t&&void 0!==t?t:"flex"})),Ml=zi.div(Hu||(Hu=(0,o.Z)(["\n background-image: url(",");\n background-repeat: no-repeat;\n background-size: cover;\n background-position: center;\n flex: 1;\n text-align: justify;\n line-height: 1.5rem;\n\n h1 {\n text-align: center;\n }\n"])),n(36653)),Al=zi.div(Vu||(Vu=(0,o.Z)(["\n background-image: url(",");\n background-repeat: no-repeat;\n background-size: cover;\n background-position: center;\n\n ",";\n"])),n(64156),(function(e){return e.isMedScreen?"\n height: 15rem;\n ":"flex: 1;"})),jl=zi.div(Xu||(Xu=(0,o.Z)(["\n display: flex;\n flex-flow: ",";\n gap: 1rem;\n max-width: 53rem;\n align-self: center;\n"])),(function(e){return e.isMedScreen?"column wrap":"row wrap"})),Pl=function(e){var t=e.isScreen800;return(0,Rs.jsx)(Rs.Fragment,{children:(0,Rs.jsxs)("div",{className:"page-section",id:"about",children:[(0,Rs.jsx)(El,{children:(0,Rs.jsx)(_l,{className:"titleCard",children:(0,Rs.jsx)("h1",{style:{fontSize:"2.5rem"},children:"ABOUT"})})}),(0,Rs.jsxs)(Tl,{display:"flex",margin:"0",style:{flexFlow:"column nowrap"},children:[(0,Rs.jsx)("h1",{style:{textAlign:"center"},children:"What is MSW?"}),(0,Rs.jsx)(jl,{isMedScreen:t,children:t?(0,Rs.jsxs)(Rs.Fragment,{children:[(0,Rs.jsx)(Al,{isMedScreen:t,children:"\xa0"}),(0,Rs.jsxs)(Ml,{children:[(0,Rs.jsx)("div",{className:"about-text",children:"MetaSaga Warriors is a roguelike dungeon crawler FREE-TO-OWN NFT game where you command a party of warriors (known as Diggers) on a mission to stop the corruption that encroached upon their paradise. These warriors, their parts, weapons, and other equipment are non-fungible tokens."}),(0,Rs.jsx)("br",{}),(0,Rs.jsx)("div",{className:"about-text",children:"The game is being developed by MetaGaming Guild (MGG), a community-governed organization which offers Game-Fi solutions to thousands of players all around the globe. MetaSaga Warriors will be launched as MGG\u2019s flagship game offer."})]})]}):(0,Rs.jsxs)(Rs.Fragment,{children:[(0,Rs.jsxs)(Ml,{children:[(0,Rs.jsx)("div",{className:"about-text",children:"MetaSaga Warriors is a roguelike dungeon crawler FREE-TO-OWN NFT game where you command a party of warriors (known as Diggers) on a mission to stop the corruption that encroached upon their paradise. These warriors, their parts, weapons, and other equipment are non-fungible tokens."}),(0,Rs.jsx)("br",{}),(0,Rs.jsx)("div",{className:"about-text",children:"The game is being developed by MetaGaming Guild (MGG), a community-governed organization which offers Game-Fi solutions to thousands of players all around the globe. MetaSaga Warriors will be launched as MGG\u2019s flagship game offer."})]}),(0,Rs.jsx)(Al,{isMedScreen:t,children:"\xa0"})]})})]})]})})},Il=zi.div(Yu||(Yu=(0,o.Z)(["\n max-width: 20rem;\n"]))),Rl=zi.div(Qu||(Qu=(0,o.Z)(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-flow: row wrap;\n"]))),Ol=function(e){e.isScreen550;return(0,Rs.jsx)(Rs.Fragment,{children:(0,Rs.jsxs)("div",{className:"page-section",id:"gameplay",children:[(0,Rs.jsx)(El,{children:(0,Rs.jsx)(_l,{className:"titleCard",padding:"2rem 4rem",children:(0,Rs.jsx)("h1",{style:{fontSize:"2rem"},children:"GAMEPLAY"})})}),(0,Rs.jsx)(Tl,{margin:"0",style:{alignItems:"center",justifyContent:"center"},children:(0,Rs.jsxs)(Rl,{children:[(0,Rs.jsx)(Il,{className:"grow",children:(0,Rs.jsx)("img",{src:n(97411),className:"",alt:""})}),(0,Rs.jsx)(Il,{className:"grow",children:(0,Rs.jsx)("img",{src:n(6062),className:"",alt:""})}),(0,Rs.jsx)(Il,{className:"grow",children:(0,Rs.jsx)("img",{src:n(7256),className:"",alt:""})})]})})]})})},Zl=n(31074),Ll=zi.div(Ju||(Ju=(0,o.Z)(["\n position: relative;\n align-items: center;\n display: flex;\n flex-direction: column;\n min-width: 0;\n word-wrap: break-word;\n background-color: rgba(255, 255, 255, 0);\n -webkit-background-clip: border-box;\n background-clip: border-box;\n padding: ",";\n border: 0rem solid rgba(0, 0, 0, 0.125);\n border-radius: 0rem;\n background-image: url(",");\n background-size: cover;\n background-position: center;\n\n @media (max-width: 721px) {\n padding: 2rem 5rem !important;\n\n h1 {\n font-size: 2.5rem !important;\n }\n }\n\n @media (max-width: 440px) {\n padding: 2rem 5rem !important;\n h1 {\n font-size: 2.5rem !important;\n }\n }\n"])),(function(e){var t=e.padding;return null!==t&&void 0!==t?t:"2rem 4rem"}),n(26200)),Nl=(zi(Zl.lr)($u||($u=(0,o.Z)(["\n .control-arrow {\n background-color: transparent; \n }\n\n .control-arrow:before {\n color: #FFFFFF; \n font-size: 50px; \n \n @media (max-width: 820px){\n font-size: 32px;\n } \n @media (max-width: 575px) {\n font-size: 20px;\n }\n\n @media (max-width: 375px) {\n font-size: 20px;\n }\n }\n\n .control-prev.control-arrow:before {\n content: '\ud83d\udf80'; \n }\n\n .control-next.control-arrow:before {\n content: '\ud83d\udf82';\n }\n"]))),zi.div(el||(el=(0,o.Z)(["\n display: table-cell;\n width: 100%;\n"])))),Fl=zi.div(tl||(tl=(0,o.Z)(["\n position: absolute;\n top: 60px;\n padding: ",";\n color: white;\n width: 45%;\n \n h1 {\n font-size: 80px;\n color: #ecb602;\n\n @media (max-width: 1025px) {\n font-size: 80px;\n }\n\n @media (max-width: 800px) {\n font-size: 50px;\n width: 20.3rem;\n }\n\n @media (max-width: 500px) {\n font-size: 45px;\n width: 20rem;\n }\n }\n\n p {\n font-size: 1.8rem;\n text-align: center;\n\n @media (max-width: 1025px) {\n font-size: 1.75rem;\n }\n\n @media (max-width: 800px) {\n font-size: 1.5rem;\n width: 20rem;\n }\n\n @media (max-width: 500px) {\n font-size: 1.2rem;\n width: 20rem;\n }\n }\n"])),(function(e){return e.isScreen800?"48% 2rem 2em 2rem":"4%"})),Dl=function(e){var t=e.isScreen800;e.isScreen650;return(0,Rs.jsxs)(Zl.lr,{showThumbs:!1,preventMovementUntilSwipeScrollTolerance:!0,swipeScrollTolerance:50,children:[(0,Rs.jsxs)("div",{style:{position:"relative"},children:[(0,Rs.jsx)("img",{src:n(6793)("./".concat(t?"mobile_lore_sm.png":"lore.jpg"))}),(0,Rs.jsxs)(Fl,{isScreen800:t,children:[(0,Rs.jsx)("h1",{style:{padding:"0 0 1rem 0"},children:"THE BIG PULSE"}),(0,Rs.jsx)("p",{children:"Long ago, a crystal meteor crashed into our world. It crawled, sank, and melded into the ground as if it were alive. The comet radiated a pulse felt throughout the land, beckoning us. We were in awe as we were afeared of this mysterious thing from above. Those curious to touch the crystal suffered pain, and many succumbed. After decades of research, we developed the technology to stabilize, contain, and control the crystals' energy to amplify our magic and power our world. We established a cave system that stretched far and wide. For centuries, we were happy and content in our home we named Permafaria."})]})]}),(0,Rs.jsxs)("div",{children:[(0,Rs.jsx)("img",{src:n(6793)("./".concat(t?"mobile_lore2_sm.png":"lore_2.png"))}),(0,Rs.jsx)(Fl,{isScreen800:t,children:(0,Rs.jsx)("p",{className:"second",children:"Our knowledge of the arcane and the natural elements made our civilization thrive, but our progress demanded more and more of crystals. One day, we dug a little too deep. We hit the core. With a single strike, it exploded a massive amount of dreadful energy, reaching every corner of our paradise. It brought monsters from other worlds and corrupted many of our fellow digglers. Those of us who made it out found ourselves fending off these abominations. For decades, we stood guard at the entrance, never letting anything pass through. But the we know the onslaught would go on forever unless we stop the source of corruption. And so armed with magic, technology, and weaponry powered by the crystal, we shall venture into the caves and destroy the core once and for all."})})]})]})},Ul=function(t){var n=t.isScreen800,r=(0,e.useState)(!1),o=(0,i.Z)(r,2),a=o[0],s=o[1];return(0,e.useMemo)((function(){s(window.innerWidth<650)}),[]),(0,Rs.jsx)(Rs.Fragment,{children:(0,Rs.jsxs)("div",{className:"page-section",id:"lore",style:{padding:"0"},children:[(0,Rs.jsx)(El,{children:(0,Rs.jsx)(Ll,{className:"titleCard",padding:"3rem 6.5rem",children:(0,Rs.jsx)("h1",{style:{fontSize:"2.2rem"},children:"Lore"})})}),(0,Rs.jsx)(Tl,{margin:"0",children:(0,Rs.jsx)(Nl,{children:(0,Rs.jsx)(Dl,{isScreen800:n,isScreen650:a})})})]})})},Gl=[{name:"Wizard",images:{icon:"wizard.png",stock:"wizardcard1.png",legendary:"legendary_wizard.png"},description:"The Wizard focuses on the mystical arcane, years of studies grant its spell more firepower. Having a wizard in your party will give you non-stop blabber of the arcane and also more damage to your spells.",stat:{dmg:2,atkspd:1,dmgSk:5,hp:2,util:3}},{name:"Musketeer",images:{icon:"musketeer.png",stock:"musketeercard1.png",legendary:"Legendary_Musketeer.png"},description:"Ol\xe9! Enter the Musketeer! It will not only capture the gems but also your heart! The Musketeer is fast and also adept with both melee and ranged combat. With a musketeer in your party, your other Digglers will follow its rhythmic steps granting them bonus dodge chance!",stat:{dmg:3,atkspd:3,dmgSk:1,hp:2,util:2}},{name:"Knight",images:{icon:"knight.png",stock:"knightcard1.png",legendary:"legendary_knight.png"},description:"The Knight can withstand any hit with its defenses, and is also adept in melee combat and can exchange blows with even the heaviest hitters. With a knight in your party, your other digglers are bolstered to be like him and they also receive less damage!",stat:{dmg:3,atkspd:2,dmgSk:1,hp:5,util:3}},{name:"Archer",images:{icon:"Archer.png",stock:"archercard1.png",legendary:"legendary_archer.png"},description:"If you are having trouble with foes that have strong melee attacks and slow movement, why not try having an archer in your party? The archer is a ranged class, elite with the bow and arrow. The archer also teaches your party to have a keen eye on the foes\u2019 weak spots, granting critical strike chances.",stat:{dmg:3,atkspd:3,dmgSk:1,hp:2,util:2}},{name:"Plague Doctor",images:{icon:"Plague_Doctor.png",stock:"plaguedoctorcard1.png",legendary:"legendary_plaguedoctor.png"},description:"Mysterious and even terrifying, this odd class focuses on the weapon that kills on its own: Poison. But don\u2019t worry, when it is on your side it helps you resist such negative effects.",stat:{dmg:2,atkspd:2,dmgSk:4,hp:3,util:4}},{name:"Berserker",images:{icon:"Berserker.png",stock:"berserkercard1.png",legendary:"legendary_Berserker.png"},description:"The Berserker is the most reliable class of breaking the foes\u2019 formations. With high health and melee prowess, this beast can plow through crowds of enemies and having one in your party encourages other digglers to a warpath granting them bonus lifesteal.",stat:{dmg:4,atkspd:4,dmgSk:1,hp:3,util:2}},{name:"Engineer",images:{icon:"Engineer.png",stock:"engineercard1.png",legendary:"legendary_Engineer.png"},description:"Need a helping hand? The Engineer\u2019s on it! When switching, it will summon a turret that can help you keep foes at bay! Also, having an Engineer in your party will give you the much needed boost to physical and magic damage.",stat:{dmg:3,atkspd:3,dmgSk:3,hp:3,util:3}},{name:"Vicar",images:{icon:"Vicar.png",stock:"vicarcard1.png",legendary:"legendary_Vicar.png"},description:"The Vicar does not excel well in combat, but it can support your party well with the blessing of the gods! The Vicar heals your other allies when you switch to it and it also grants passive health regeneration. What a blessing!",stat:{dmg:1,atkspd:1,dmgSk:2,hp:3,util:5}},{name:"Artillery",images:{icon:"Altillery.png",stock:"altillerycard1.png",legendary:"legendary_Artillery.png"},description:"This class is the expert of guns, their skills allow them to stay out of reach while foes try desperately to close the distance from the Artillery. Having an Artillery in your party grants all your digglers more knockback chances to keep distance.",stat:{dmg:5,atkspd:2,dmgSk:2,hp:2,util:4}},{name:"Elemental",images:{icon:"Elemental_nft.png",stock:"elementalcard1.png",legendary:"legendary_Elemental.png"},description:"The elemental, powerful in both physical and magical strength. They hold the secrets of primal fire magic and having one in your party causes your other diggler\u2019s attacks and spells to burn, even if they are different elements.",stat:{dmg:5,atkspd:1,dmgSk:4,hp:4,util:3}},{name:"Magitek",images:{icon:"Magitek_nft.png",stock:"magitekcard1.png",legendary:"legendary_Magitek.png"},description:"The Magitech is the product of ancient research and technology of the meteor from decades past. They have overwhelming power that spells sometimes get overcharged. When you switch in magitek, it will release stored energy dealing heavy damage to surrounding foes. (The longer the time away from battle, the higher the damage?)",stat:{dmg:1,atkspd:2,dmgSk:5,hp:3,util:5}},{name:"Dark Knight",images:{icon:"Dark_Knight.png",stock:"darkknightcard1.png",legendary:"legendary_Darkknight.png"},description:"They are digglers that came out of the cave too late when the pulse happened. Fortunately, they kept their sanity and vow to help digglerkind. When you have a dark knight in your party, it gives your other digglers thorns, hurting those that hurt them.",stat:{dmg:5,atkspd:1,dmgSk:4,hp:4,util:0}}],Bl=zi.div(nl||(nl=(0,o.Z)(["\n position: relative;\n align-items: center;\n display: flex;\n flex-direction: column;\n min-width: 0;\n word-wrap: break-word;\n background-color: rgba(255, 255, 255, 0);\n -webkit-background-clip: border-box;\n background-clip: border-box;\n padding: ",";\n border: 0rem solid rgba(0, 0, 0, 0.125);\n border-radius: 0rem;\n background-image: url(",");\n background-size: cover;\n background-position: center;\n\n \n @media (max-width: 721px) {\n padding: 2rem 2rem !important;\n\n h1 {\n font-size: 1.8rem !important;\n }\n }\n\n @media (max-width: 440px) {\n padding: 2rem 2rem !important;\n h1 {\n font-size: 1.8rem !important;\n }\n }\n"])),(function(e){var t=e.padding;return null!==t&&void 0!==t?t:"2rem 4rem"}),n(26200)),zl=zi.div(rl||(rl=(0,o.Z)(["\n display: flex;\n flex-flow: column nowrap;\n width: 100%;\n"]))),Kl=zi.div(il||(il=(0,o.Z)(["\n display: flex;\n position: relative;\n flex-wrap: nowrap;\n margin-right: 1.5rem;\n margin-left: 1.5rem;\n gap: 2rem;\n justify-content: center;\n\n img {\n display: block;\n height: auto;\n max-width: 100%;\n width: 100%;\n object-fit: cover;\n }\n"]))),Wl=zi.div(ol||(ol=(0,o.Z)(["\n display: flex;\n position: relative;\n flex-flow: column nowrap;\n align-items: center;\n align-content: center;\n justify-content: center;\n margin-right: 1.5rem;\n margin-left: 1.5rem;\n gap: 1rem;\n justify-content: center;\n"]))),ql=zi.div(al||(al=(0,o.Z)(["\n margin-top: 3rem;\n max-width: 65rem;\n align-self: center;\n justify-content: center;\n align-items: center;\n display: flex;\n flex-flow: row wrap;\n gap: 1rem;\n\n @media (max-width: 575px) {\n max-height: 10.1rem;\n flex-flow: row wrap;\n overflow: scroll;\n max-width: 100%;\n gap: 0.39rem\n\n }\n /* Adjust the scrollbar width and style */\n &::-webkit-scrollbar {\n height: 0px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: #888; /* Color of the scrollbar thumb */\n border-radius: 5px; /* Round the scrollbar thumb */\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background: #555; /* Color of the scrollbar thumb on hover */\n }\n\n"]))),Hl=zi.div(sl||(sl=(0,o.Z)(["\n position: relative;\n border: 5px solid #4acae8;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: #232959;\n border-radius: 10px;\n width: 160px;\n height: 133px;\n cursor: pointer;\n\n @media (max-width: 575px) {\n width: 140px;\n height: 113px; \n }\n\n ","\n\n img {\n z-index: 2;\n width: 100px;\n height: 100px;\n margin-top: 5px;\n margin-bottom: 0px;\n }\n"])),(function(e){var t=e.img;return t?'\n &:before{\n z-index: 0;\n content: " ";\n position: absolute;\n opacity: 0.15;\n width: 100%;\n height: 100%;\n background-size: cover;\n background-position: center;\n background-image: url('.concat(n(72437)("./"+t),");\n }\n "):""})),Vl=function(e){for(var t=e.count,n=[],r=1;r<=5;r++)n.push((0,Rs.jsx)("span",{className:r<=t?"fa fa-star checked":"fa fa-star"},r));return(0,Rs.jsx)("div",{style:{display:"flex",width:"100%",gap:"0.5rem"},children:n})},Xl=function(t){var r=t.isScreen800,o=(t.isScreen550,(0,e.useState)(0)),a=(0,i.Z)(o,2),s=a[0],c=a[1],u=(0,e.useState)(!1),l=(0,i.Z)(u,2),d=l[0],f=l[1];return(0,e.useMemo)((function(){f(window.innerWidth<650)}),[]),(0,Rs.jsx)(Rs.Fragment,{children:(0,Rs.jsxs)("div",{className:"page-section",id:"nftCharacters",children:[(0,Rs.jsx)(El,{children:(0,Rs.jsx)(Bl,{className:"titleCard",padding:"2rem",children:(0,Rs.jsx)("h1",{style:{fontSize:"2rem"},children:"NFT Characters"})})}),(0,Rs.jsx)(Tl,{margin:"auto",children:(0,Rs.jsxs)(zl,{children:[r?(0,Rs.jsxs)(Wl,{children:[(0,Rs.jsx)("div",{children:(0,Rs.jsxs)("div",{children:[(0,Rs.jsx)("h1",{className:"animate__animated animate__fadeInDown",children:Gl[s].name}),(0,Rs.jsx)("br",{}),(0,Rs.jsx)("p",{className:"animate__animated animate__fadeInUp",style:{textAlign:"justify"},children:Gl[s].description})]},s)}),(0,Rs.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr"},children:[(0,Rs.jsx)("img",{src:n(43705)("./".concat(Gl[s].images.stock)),className:"filter-shadow ",alt:"..."}),(0,Rs.jsx)("img",{src:n(43705)("./".concat(Gl[s].images.legendary)),className:"filter-shadow ",alt:"..."})]}),(0,Rs.jsxs)("div",{style:{display:"flex",flexFlow:"row wrap",alignItems:"center",justifyContent:"center",gap:"2rem"},children:[(0,Rs.jsxs)("div",{children:[(0,Rs.jsx)("p",{style:{margin:"0 0 0.5rem 0"},children:"Physical Damage"}),(0,Rs.jsx)(Vl,{count:Gl[s].stat.dmg})]}),(0,Rs.jsxs)("div",{children:[(0,Rs.jsx)("p",{style:{margin:"0 0 0.5rem 0"},children:"Attack Speed"}),(0,Rs.jsx)(Vl,{count:Gl[s].stat.atkspd})]}),(0,Rs.jsxs)("div",{children:[(0,Rs.jsx)("p",{style:{margin:"0 0 0.5rem 0"},children:"Skill Damage"}),(0,Rs.jsx)(Vl,{count:Gl[s].stat.dmgSk})]}),(0,Rs.jsxs)("div",{children:[(0,Rs.jsx)("p",{style:{margin:"0 0 0.5rem 0"},children:"Health"}),(0,Rs.jsx)(Vl,{count:Gl[s].stat.hp})]}),(0,Rs.jsxs)("div",{children:[(0,Rs.jsx)("p",{style:{margin:"0 0 0.5rem 0"},children:"Utility"}),(0,Rs.jsx)(Vl,{count:Gl[s].stat.util})]})]},s)]}):(0,Rs.jsxs)(Kl,{children:[(0,Rs.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",flex:"0 0 25%",maxWidth:"25%"},children:[(0,Rs.jsx)("img",{src:n(43705)("./".concat(Gl[s].images.stock)),className:"filter-shadow ",alt:"..."}),(0,Rs.jsx)("img",{src:n(43705)("./".concat(Gl[s].images.legendary)),className:"filter-shadow ",alt:"..."})]}),(0,Rs.jsx)("div",{style:{flex:"0 0 33.3333333333%",maxWidth:"33.3333333333%"},children:(0,Rs.jsxs)("div",{children:[(0,Rs.jsx)("h1",{className:"animate__animated animate__fadeInDown",children:Gl[s].name}),(0,Rs.jsx)("br",{}),(0,Rs.jsx)("p",{className:"animate__animated animate__fadeInUp",style:{textAlign:"justify"},children:Gl[s].description})]},s)}),(0,Rs.jsxs)("div",{style:{flex:"0 0 16.6666666667%",maxWidth:"17.6666666667%",padding:"0%"},children:[(0,Rs.jsx)("p",{style:{margin:"0 0 0.5rem 0"},children:"Physical Damage"}),(0,Rs.jsx)(Vl,{count:Gl[s].stat.dmg}),(0,Rs.jsx)("br",{})," ",(0,Rs.jsx)("br",{}),(0,Rs.jsx)("p",{style:{margin:"0 0 0.5rem 0"},children:"Attack Speed"}),(0,Rs.jsx)(Vl,{count:Gl[s].stat.atkspd}),(0,Rs.jsx)("br",{})," ",(0,Rs.jsx)("br",{}),(0,Rs.jsx)("p",{style:{margin:"0 0 0.5rem 0"},children:"Skill Damage"}),(0,Rs.jsx)(Vl,{count:Gl[s].stat.dmgSk}),(0,Rs.jsx)("br",{})," ",(0,Rs.jsx)("br",{}),(0,Rs.jsx)("p",{style:{margin:"0 0 0.5rem 0"},children:"Health"}),(0,Rs.jsx)(Vl,{count:Gl[s].stat.hp}),(0,Rs.jsx)("br",{})," ",(0,Rs.jsx)("br",{}),(0,Rs.jsx)("p",{style:{margin:"0 0 0.5rem 0"},children:"Utility"}),(0,Rs.jsx)(Vl,{count:Gl[s].stat.util})]},s)]}),(0,Rs.jsx)(ql,{className:"classes",isScreen575:d,children:Gl.map((function(e,t){return(0,Rs.jsx)(Rs.Fragment,{children:(0,Rs.jsx)(Hl,{onClick:function(){c(t)},className:"NFTClasses ".concat(s===t?"active":"grow"),img:e.images.icon,style:{flexShrink:d?0:1},children:(0,Rs.jsx)("img",{src:n(72437)("./".concat(e.images.icon))})},t)})}))})]})})]})})},Yl=zi.div(cl||(cl=(0,o.Z)(["\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 2rem;\n width: 100%;\n\n @media (max-width: 720px) {\n display: flex;\n flex-flow: column wrap;\n }\n\n h1 {\n font-size: '64px';\n\n @media (max-width: 520px) {\n font-size: 2.5rem;\n }\n }\n"]))),Ql=zi.div(ul||(ul=(0,o.Z)(["\n display: grid;\n grid-template-columns: 1fr 1fr 1fr ;\n gap: 1rem;\n \n @media (max-width: 520px) {\n display: flex;\n justify-content: center;\n align-items: center;\n flex-flow: row wrap;\n }\n\n img {\n @media (max-width: 520px) {\n width: 180px;\n height: 240px;\n \n }\n }\n"]))),Jl=function(e){e.isScreen550;return(0,Rs.jsx)(Rs.Fragment,{children:(0,Rs.jsxs)("div",{className:"page-section",id:"gallery",children:[(0,Rs.jsx)(El,{children:(0,Rs.jsx)(_l,{className:"titleCard",children:(0,Rs.jsx)("h1",{style:{fontSize:"2.2rem"},children:"Gallery"})})}),(0,Rs.jsxs)(Tl,{style:{flexFlow:"column wrap"},margin:"auto",maxWidth:"1140px",children:[(0,Rs.jsxs)(Yl,{children:[(0,Rs.jsx)("h1",{style:{color:"#ECB602",lineHeight:"0.9"},children:"Permafaria Events Gallery"}),(0,Rs.jsx)("p",{children:"Step into the real-world excitement as we venture to diverse events, dedicated to fostering mass adoption and expanding our player base. Don\u2019t miss out on the action; be part of our upcoming events and tournaments to win exclusive MSW Merch and thrilling prizes!"})]}),(0,Rs.jsxs)(Ql,{children:[(0,Rs.jsx)("img",{src:n(44505),alt:"...",width:"600",height:"400"}),(0,Rs.jsx)("img",{src:n(9889),alt:"...",width:"600",height:"400"}),(0,Rs.jsx)("img",{src:n(70185),alt:"...",width:"600",height:"400"}),(0,Rs.jsx)("img",{src:n(7598),alt:"...",width:"600",height:"400"}),(0,Rs.jsx)("img",{src:n(50902),alt:"...",width:"600",height:"400"}),(0,Rs.jsx)("img",{src:n(37044),alt:"...",width:"600",height:"400"})]})]})]})})},$l=[{question:"What is MetaSaga Warriors?",answer:"MetaSaga Warriors is an NFT game that combines elements of a rogue-like dungeon crawler. It offers players the opportunity to take control of a group of warriors, referred to as Diggers, who embark on a crucial quest to halt the encroaching corruption that has invaded their once idyllic paradise. Every warrior, as well as their distinct components, weapons, and equipment, is represented as a non-fungible token (NFT)."},{question:"What blockchain is MetaSaga Warriors built on?",answer:"MetaSaga Warriors is built on Polygon Network."},{question:"How do I acquire MetaSaga Warriors?",answer:"To acquire MetaSaga Warriors, you can purchase them directly on OpenSea."},{question:"What is the official collection links for MetaSaga Warriors Genesis Collection?",answer:"Visit our collections Here!"},{question:"How do I store and manage my MetaSaga Warriors?",answer:"To store and manage your MetaSaga Warriors securely, you will need a digital wallet compatible with the blockchain on which they are built. You can choose from various wallet options, such as MetaMask, Trust Wallet, or hardware wallets like Ledger or Trezor."},{question:"What is the total supply of MetaSaga Warriors Genesis Collection?",answer:"The total supply of Genesis Collection is 10,000."},{question:"How can I play the game?",answer:"You can play the game on desktop or mobile devices by visiting this link: http://msw.gg"},{question:"How do I stay updated and safe?",answer:"All updates for MetaSaga Warriors will be made through the official MetaSaga Warriors Twitter, Facebook and Discord. There will never be a \u201csurprise mint\u201d or sudden instance where we will ask you to connect your wallet or send us any of your NFTs."}];function ed(){return ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var nd=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],rd=function(e){return e?6:5},id=new Map,od=new Map,ad=function(e,t,n,r,i,o){clearTimeout(i);var a=function(e){return{_s:e,status:nd[e],isEnter:e<3,isMounted:6!==e,isResolved:2===e||e>4}}(t),s=new Map(r.current);s.set(e,a),n(s),r.current=s,o&&o({key:e,current:a})},sd=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.allowMultiple,r=t.enter,o=void 0===r||r,a=t.exit,s=void 0===a||a,c=t.preEnter,u=t.preExit,l=t.timeout,d=t.initialEntered,f=t.mountOnEnter,p=t.unmountOnExit,h=t.onStateChange,v=(0,e.useState)(id),g=(0,i.Z)(v,2),m=g[0],y=g[1],b=(0,e.useRef)(m),x=(0,e.useRef)(od),k=function(e){return"object"===typeof e?[e.enter,e.exit]:[e,e]}(l),S=(0,i.Z)(k,2),C=S[0],E=S[1],_=(0,e.useCallback)((function(e,t){var n=(t||{}).initialEntered,r=(void 0===n?d:n)?2:rd(f);ad(e,r,y,b),x.current.set(e,{})}),[d,f]),T=(0,e.useCallback)((function(e){var t=new Map(b.current);return!!t.delete(e)&&(y(t),b.current=t,x.current.delete(e),!0)}),[]),M=(0,e.useCallback)((function(e){var t=b.current.get(e);if(t){var n=x.current.get(e).timeoutId,r=function(e,t){switch(e){case 1:case 0:return 2;case 4:case 3:return rd(t)}}(t._s,p);r&&ad(e,r,y,b,n,h)}}),[h,p]),A=(0,e.useCallback)((function(e,t){var r=b.current.get(e);if(r){var i=x.current.get(e),a=function t(n){switch(ad(e,n,y,b,i.timeoutId,h),n){case 1:C>=0&&(i.timeoutId=setTimeout((function(){return M(e)}),C));break;case 4:E>=0&&(i.timeoutId=setTimeout((function(){return M(e)}),E));break;case 0:case 3:i.timeoutId=function(e,t){return setTimeout((function(){isNaN(document.body.offsetTop)||e(t+1)}),0)}(t,n)}},l=r.isEnter;"boolean"!==typeof t&&(t=!l),t?l||(a(o?c?0:1:2),!n&&b.current.forEach((function(t,n){return n!==e&&A(n,!1)}))):l&&a(s?u?3:4:rd(p))}}),[h,M,n,o,s,c,u,C,E,p]),j=(0,e.useCallback)((function(e){if(n||!1===e){var t,r=(0,w.Z)(b.current.keys());try{for(r.s();!(t=r.n()).done;){var i=t.value;A(i,e)}}catch(o){r.e(o)}finally{r.f()}}}),[n,A]);return{stateMap:m,toggle:A,toggleAll:j,endTransition:M,setItem:_,deleteItem:T}},cd=["transition","transitionTimeout"],ud=function(e,t){return!0===e||!(!e||!e[t])},ld="szh-accordion",dd="szh-adn",fd="data-".concat(dd),pd="data-".concat(dd,"-btn"),hd=(0,e.createContext)({}),vd=function(e,t,n){return function(r,i){var o=t?"".concat(e,"__").concat(t):e,a=o;n&&Object.keys(n).forEach((function(e){var t=n[e];t&&(a+=" ".concat(o,"--").concat(!0===t?e:"".concat(e,"-").concat(t)))}));var s="function"===typeof r?r(i):r;return"string"===typeof s&&(s=s.trim())&&(a+=" ".concat(s)),a}},gd=function(e,t){if(!t)return e;var n=ed({},e);return Object.keys(t).forEach((function(r){var i=e[r],o=t[r];n[r]="function"===typeof o&&i?function(){i.apply(void 0,arguments),o.apply(void 0,arguments)}:o})),n},md=function(e){return(0,Rs.jsx)(hd.Provider,ed({},e))},yd=function(e){do{e=e.parentElement}while(e&&!e.hasAttribute(fd));return e},bd=function(e,t,n){return e?t>0?t-1:n-1:(t+1)%n},wd=function(e,t){var n=document.activeElement;if(n&&n.hasAttribute(pd)&&yd(n)===t.currentTarget)for(var r=t.currentTarget.querySelectorAll("[".concat(pd,"]")),i=r.length,o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.transition,n=e.transitionTimeout,r=td(e,cd),i=sd(ed({timeout:n,enter:ud(t,"enter"),exit:ud(t,"exit"),preEnter:ud(t,"preEnter"),preExit:ud(t,"preExit")},r));return ed({mountOnEnter:!!r.mountOnEnter,initialEntered:!!r.initialEntered},i)}({allowMultiple:n,initialEntered:r,mountOnEnter:i,unmountOnExit:o,transition:a,transitionTimeout:s,onStateChange:c});return(0,Rs.jsx)(kd,ed({},u,{ref:t,providerValue:l}))}));Cd.displayName="Accordion";var Ed=0,_d=e.useId||function(){var t=(0,e.useState)(),n=(0,i.Z)(t,2),r=n[0],o=n[1];return(0,e.useEffect)((function(){return o(++Ed)}),[]),r&&"".concat(dd,"-").concat(r)},Td="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?e.useLayoutEffect:e.useEffect;function Md(e,t){"function"===typeof e?e(t):e.current=t}function Ad(t,n){return(0,e.useMemo)((function(){return t?n?function(e){Md(t,e),Md(n,e)}:t:n}),[t,n])}var jd=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.itemKey,r=t.initialEntered,i=t.disabled,o=(0,e.useRef)(null),a=(0,e.useContext)(hd),s=null!=n?n:o.current,c=function(e,t,n){var r=e.stateMap,i=e.mountOnEnter,o=e.initialEntered,a=null!=n?n:o;return r.get(t)||{status:a?"entered":i?"unmounted":"exited",isMounted:!i,isEnter:a,isResolved:!0}}(a,s,r),u=a.setItem,l=a.deleteItem,d=a.toggle;return(0,e.useEffect)((function(){if(!i){var e=null!=n?n:o.current;return u(e,{initialEntered:r}),function(){l(e)}}}),[u,l,n,r,i]),{itemRef:o,state:c,toggle:(0,e.useCallback)((function(e){return d(s,e)}),[d,s])}},Pd=["itemKey","initialEntered"],Id=function(t){var n=(0,e.forwardRef)((function(e,n){var r=e.itemKey,i=e.initialEntered,o=td(e,Pd);return(0,Rs.jsx)(t,ed({forwardedRef:n},o,jd({itemKey:r,initialEntered:i,disabled:o.disabled})))}));return n.displayName="WithAccordionItem",n},Rd=["forwardedRef","itemRef","state","toggle","className","disabled","header","headingTag","headingProps","buttonProps","contentProps","panelProps","children"],Od=function(e,t){return"function"===typeof e?e(t):e},Zd=(0,e.memo)((function(t){var n=t.forwardedRef,r=t.itemRef,o=t.state,a=t.toggle,s=t.className,c=t.disabled,u=t.header,l=t.headingTag,d=void 0===l?"h3":l,f=t.headingProps,p=t.buttonProps,h=t.contentProps,v=t.panelProps,g=t.children,m=td(t,Rd),y={state:o,toggle:a,disabled:c},b=function(e){var t=e.state,n=e.toggle,r=e.disabled,i=_d(),o=i&&i+"-",a={id:i,"aria-controls":o,"aria-expanded":t.isEnter,onClick:n};return r?a.disabled=!0:a[pd]="",{buttonProps:a,panelProps:{id:o,"aria-labelledby":i,role:"region"}}}(y),w=b.buttonProps,x=b.panelProps,k=function(t){var n=t.status,r=t.isResolved,o=(0,e.useState)(),a=(0,i.Z)(o,2),s=a[0],c=a[1],u=(0,e.useRef)(null);return Td((function(){("preEnter"===n||"preExit"===n)&&c(u.current.getBoundingClientRect().height)}),[n]),[{height:"preEnter"===n||"exiting"===n?0:"entering"===n||"preExit"===n?s:void 0,overflow:r?void 0:"hidden"},u]}(o),S=(0,i.Z)(k,2),C=S[0],E=S[1],_=Ad(v&&v.ref,E),T=o.status,M=o.isMounted,A=o.isEnter;return(0,Rs.jsxs)("div",ed({},m,{ref:Ad(n,r),className:vd(ld,"item",{status:T,expanded:A})(s,o),children:[(0,Rs.jsx)(d,ed({},f,{style:ed({margin:0},f&&f.style),className:vd(ld,"item-heading")(f&&f.className,o),children:(0,Rs.jsx)("button",ed({},gd(w,p),{type:"button",className:vd(ld,"item-btn")(p&&p.className,o),children:Od(u,y)}))})),M&&(0,Rs.jsx)("div",ed({},h,{style:ed({display:"exited"===T?"none":void 0},C,h&&h.style),className:vd(ld,"item-content")(h&&h.className,o),children:(0,Rs.jsx)("div",ed({},gd(x,v),{ref:_,className:vd(ld,"item-panel")(v&&v.className,o),children:Od(g,y)}))}))]}))}));Zd.displayName="AccordionItem";var Ld=Id(Zd),Nd={accordion:"accordionStyle_accordion__wFXEY",item:"accordionStyle_item__94lAb",itemBtn:"accordionStyle_itemBtn__-p2V6",itemBtnExpanded:"accordionStyle_itemBtnExpanded__XZUYa",itemContent:"accordionStyle_itemContent__3o1jN",itemPanel:"accordionStyle_itemPanel__2UrBL",chevron:"accordionStyle_chevron__U1Gz5"};var Fd,Dd,Ud=n.p+"static/media/chevron-down.932a047472c3455cd9a4d68b8b2179e8.svg";function Gd(){return(0,Rs.jsx)(Rs.Fragment,{children:(0,Rs.jsxs)("div",{className:"page-section",id:"faqs",children:[(0,Rs.jsx)(El,{children:(0,Rs.jsx)(_l,{className:"titleCard",padding:"2rem 6.5rem",children:(0,Rs.jsx)("h1",{style:{fontSize:"2.2rem"},children:"FAQs"})})}),(0,Rs.jsx)(Tl,{className:"accordion",style:{flexFlow:"column wrap",gap:"1em"},margin:"auto",maxWidth:"1140px",children:(0,Rs.jsx)(Cd,{allowMultiple:!0,transition:!0,transitionTimeout:250,children:$l.map((function(e,t){var n=e.question,r=e.answer;return(0,Rs.jsx)(Ld,{style:{marginBottom:"2rem"},header:(0,Rs.jsxs)(Rs.Fragment,{children:[(0,Rs.jsx)("h2",{children:"".concat(t+1,". ").concat(n)}),(0,Rs.jsx)("img",{className:Nd.chevron,src:Ud,alt:"Chevron Down"})]}),className:Nd.item,buttonProps:{className:function(e){var t=e.isEnter;return"".concat(Nd.itemBtn," ").concat(t&&Nd.itemBtnExpanded)}},contentProps:{className:Nd.itemContent},panelProps:{className:Nd.itemPanel},children:(0,Rs.jsx)("p",{style:{borderLeft:"solid white",padding:"2rem 0 2rem 1rem"},children:3===t?(0,Rs.jsx)("a",{style:{textDecoration:"none"},href:"https://opensea.io/collection/metasagawarriors",target:"_blank",children:r}):r})},t)}))})})]})})}var Bd,zd,Kd,Wd,qd,Hd=zi.div(Fd||(Fd=(0,o.Z)(["\n max-width: 14.5rem;\n \n @media (max-width: 800px) {\n max-width: 9rem;\n padding: 1rem;\n }\n\n @media (max-width: 500px) {\n max-width: 8rem;\n padding: 1rem;\n }\n"]))),Vd=zi.div(Dd||(Dd=(0,o.Z)(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-flow: row wrap;\n"]))),Xd=function(e){e.isScreen550;return(0,Rs.jsx)(Rs.Fragment,{children:(0,Rs.jsxs)("div",{className:"page-section",id:"partners",children:[(0,Rs.jsx)(El,{children:(0,Rs.jsx)(_l,{className:"titleCard",padding:"2rem 4rem",children:(0,Rs.jsx)("h1",{style:{fontSize:"2.2rem"},children:"PARTNERS"})})}),(0,Rs.jsx)(Tl,{margin:"2rem",style:{alignItems:"center",justifyContent:"center"},children:(0,Rs.jsxs)(Vd,{children:[(0,Rs.jsx)(Hd,{className:"col-md-5 grow",children:(0,Rs.jsx)("a",{target:"_blank",href:"https://nftb.io",children:(0,Rs.jsx)("img",{src:n(3597),className:"",alt:"",width:"200",height:"50"})})}),(0,Rs.jsx)(Hd,{className:"col-md-5 grow",children:(0,Rs.jsx)("a",{target:"_blank",href:"https://afkdao.io",children:(0,Rs.jsx)("img",{src:n(17220),className:"",alt:"",width:"200",height:"50"})})}),(0,Rs.jsx)(Hd,{className:"col-md-5 grow",children:(0,Rs.jsx)("a",{target:"_blank",href:"https://tegro.com",children:(0,Rs.jsx)("img",{src:n(78101),className:"",alt:"",width:"200",height:"50"})})}),(0,Rs.jsx)(Hd,{className:"col-md-5 grow",children:(0,Rs.jsx)("a",{target:"_blank",href:"https://odyn.gg",children:(0,Rs.jsx)("img",{src:n(42074),className:"",alt:"",width:"200",height:"50"})})}),(0,Rs.jsx)(Hd,{className:"col-md-5 grow",children:(0,Rs.jsx)("a",{target:"_blank",href:"https://simplio.io",children:(0,Rs.jsx)("img",{src:n(85934),className:"",alt:"",width:"200",height:"50"})})})]})})]})})},Yd=[{name:"Andy Agnas",role:"CEO",bgImg:"Andy_Agnas.png",img:"Andy_Agnas_CEO.png"},{name:"Rico Zu\xf1iga",role:"CTO",bgImg:"Rico_Zu\xf1iga.png",img:"Rico_Zu\xf1iga_CTO.png"},{name:"Mike Re\xf1evo",role:"Lead Game Designer",bgImg:"Mike_Re\xf1evo.png",img:"Mike_Re\xf1evo_Lead_Game_Designer.png"},{name:"Harvin Cadag",role:"Game Artist",bgImg:"Harvin_Cadag.png",img:"Harvin_Cadag_Game_Artist.png"},{name:"Salvador Amba Jr.",role:"Game Developer",bgImg:"Salvador_Amba_Jr.png",img:"Salvador_Jr._Amba.png"},{name:"Aldrick Bonaobra",role:"Blockchain Developer",bgImg:"Aldrick_Bonaobra.png",img:"Aldrick_Bonaobra_Blockchain_Developer.png"},{name:"John Anthony Balbin",role:"QA Specialist",bgImg:"John_Anthony_Balbin.png",img:"John_Anthony_Balbin_QA_Specialist.png"},{name:"Emmanuel Adornado",role:"QA Specialist",bgImg:"Emman_adonardo.png",img:"Emman_adonardo_qa_specialist_720.png"},{name:"Alfonse Cristofano Nasayao",role:"Game Artist",bgImg:"Alfonse_nasayao.png",img:"Alfonse_nasayao_game_artist_720.png"},{name:"Diana Gee Delas Alas",role:"Front End Developer",bgImg:"Gee_delas_alas.png",img:"Gee_website_developer_720.png"}],Qd=zi.div(Bd||(Bd=(0,o.Z)(["\n background-image: url(","),\n url(","),\n url(","),\n url(",");\n background-repeat: no-repeat;\n background-size: 20%, 20%, 30%, 30%;\n background-position: bottom left, bottom right, bottom right, bottom left;\n\n padding: 2rem;\n font-family: 'Alphakind', cursive;\n\n @media (max-width: 406px) {\n padding: 0.5rem;\n }\n"])),n(11212),n(58107),n(53785),n(7210)),Jd=zi.div(zd||(zd=(0,o.Z)(["\n display: flex;\n ","\n\n background-size: contain;\n background-repeat: no-repeat;\n\n img {\n opacity: 1;\n transition: opacity 0.3s ease-in-out;\n -moz-transition: opacity 0.3s ease-in-out;\n -webkit-transition: opacity 0.3s ease-in-out;\n\n &:hover {\n opacity: 0;\n transition: opacity 0.3s ease-in-out;\n -moz-transition: opacity 0.3s ease-in-out;\n -webkit-transition: opacity 0.3s ease-in-out;\n }\n }\n"])),(function(e){var t=e.bgImg;return t?"\n background-image: url(".concat(n(99745)("./"+t),");\n "):""})),$d=zi.img(Kd||(Kd=(0,o.Z)(["\n max-width: 10rem;\n\n @media (max-width: 900px) {\n max-width: 8rem;\n }\n\n @media (max-width: 500px) {\n max-width: 6rem;\n }\n"]))),ef=zi.div(Wd||(Wd=(0,o.Z)(["\n max-width: 12rem;\n\n @media (max-width: 900px) {\n font-size: 1rem;\n max-width: 10rem;\n }\n"]))),tf=zi.div(qd||(qd=(0,o.Z)(["\n display: flex;\n flex-flow: column wrap;\n align-items: center;\n text-align: center;\n line-height: 1.8rem;\n min-width: 10rem;\n max-width: 10rem;\n\n @media (max-width: 413px) {\n min-width: 8rem;\n max-width: 8rem;\n }\n\n @media (max-width: 741px) {\n line-height: 1.3rem;\n }\n"]))),nf=function(e){var t=e.bgImg,r=e.img,i=e.name,o=e.role;return(0,Rs.jsx)(Rs.Fragment,{children:(0,Rs.jsxs)(tf,{children:[(0,Rs.jsx)(Jd,{bgImg:t,children:(0,Rs.jsx)($d,{src:n(99745)("./".concat(r))})}),(0,Rs.jsxs)(ef,{children:[(0,Rs.jsx)("div",{children:i}),(0,Rs.jsx)("div",{style:{fontFamily:"'Mustica Pro', sans-serif"},children:o})]})]})})};function rf(){var t=0,n=(0,e.useState)(!1),r=(0,i.Z)(n,2),o=(r[0],r[1],(0,e.useState)([3,7,10])),a=(0,i.Z)(o,2),s=a[0],c=a[1];return(0,e.useMemo)((function(){window.innerWidth<800?c([10]):c([3,7,10])}),[]),(0,Rs.jsx)(Rs.Fragment,{children:(0,Rs.jsxs)(Qd,{className:"page-section",id:"team",children:[(0,Rs.jsx)(El,{children:(0,Rs.jsx)(_l,{className:"titleCard",padding:"2rem 6.5rem",children:(0,Rs.jsx)("h1",{style:{fontSize:"2.2rem"},children:"Team"})})}),(0,Rs.jsx)(Tl,{margin:"auto",display:"block",children:s.map((function(e,n){for(var r=[],i=t;i0?k:S),deleteToast:function(){var e=gf(d.get(c),"removed");d.delete(c),mf.emit(4,e);var t=h.queue.length;if(h.count=null==c?h.count-h.displayedToast:h.count-1,h.count<0&&(h.count=0),t>0){var n=null==c?h.props.limit:1;if(1===t||1===n)h.displayedToast++,m();else{var i=n>t?t:n;h.displayedToast=i;for(var o=0;o0&&h.count>v.limit&&x?h.queue.push({toastContent:E,toastProps:C,staleId:a}):lf(o)?setTimeout((function(){w(E,C,a)}),o):w(E,C,a)}}function w(e,t,n){var r=t.toastId;n&&d.delete(n);var i={content:e,props:t};d.set(r,i),c((function(e){return[].concat((0,f.Z)(e),[r]).filter((function(e){return e!==n}))})),mf.emit(4,gf(i,null==i.props.updateId?"added":"updated"))}return(0,e.useEffect)((function(){return h.containerId=t.containerId,mf.cancelEmit(3).on(0,y).on(1,(function(e){return u.current&&g(e)})).on(5,v).emit(2,h),function(){d.clear(),mf.emit(3,h)}}),[]),(0,e.useEffect)((function(){h.props=t,h.isToastActive=p,h.displayedToast=s.length})),{getToastToRender:function(e){var n=new Map,r=Array.from(d.values());return t.newestOnTop&&r.reverse(),r.forEach((function(e){var t=e.props.position;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(function(t){return e(t[0],t[1])}))},containerRef:u,isToastActive:p}}function xf(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function kf(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function Sf(t){var n=t.closeToast,r=t.theme,i=t.ariaLabel,o=void 0===i?"close":i;return e.createElement("button",{className:"Toastify__close-button Toastify__close-button--".concat(r),type:"button",onClick:function(e){e.stopPropagation(),n(e)},"aria-label":o},e.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},e.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function Cf(t){var n=t.delay,r=t.isRunning,i=t.closeToast,o=t.type,a=void 0===o?"default":o,s=t.hide,c=t.className,u=t.style,l=t.controlledProgress,d=t.progress,f=t.rtl,p=t.isIn,h=t.theme,v=s||l&&0===d,g=(0,b.Z)((0,b.Z)({},u),{},{animationDuration:"".concat(n,"ms"),animationPlayState:r?"running":"paused",opacity:v?0:1});l&&(g.transform="scaleX(".concat(d,")"));var m=sf("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--".concat(h),"Toastify__progress-bar--".concat(a),{"Toastify__progress-bar--rtl":f}),y=ff(c)?c({rtl:f,type:a,defaultClassName:m}):sf(m,c);return e.createElement("div",(0,wa.Z)({role:"progressbar","aria-hidden":v?"true":"false","aria-label":"notification timer",className:y,style:g},l&&d>=1?"onTransitionEnd":"onAnimationEnd",l&&d<1?null:function(){p&&i()}))}var Ef=function(t){var n=function(t){var n=(0,e.useState)(!1),r=(0,i.Z)(n,2),o=r[0],a=r[1],s=(0,e.useState)(!1),c=(0,i.Z)(s,2),u=c[0],l=c[1],d=(0,e.useRef)(null),f=(0,e.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,p=(0,e.useRef)(t),h=t.autoClose,v=t.pauseOnHover,g=t.closeToast,m=t.onClick,y=t.closeOnClick;function b(e){if(t.draggable){"touchstart"===e.nativeEvent.type&&e.nativeEvent.preventDefault(),f.didMove=!1,document.addEventListener("mousemove",S),document.addEventListener("mouseup",C),document.addEventListener("touchmove",S),document.addEventListener("touchend",C);var n=d.current;f.canCloseOnClick=!0,f.canDrag=!0,f.boundingRect=n.getBoundingClientRect(),n.style.transition="",f.x=xf(e.nativeEvent),f.y=kf(e.nativeEvent),"x"===t.draggableDirection?(f.start=f.x,f.removalDistance=n.offsetWidth*(t.draggablePercent/100)):(f.start=f.y,f.removalDistance=n.offsetHeight*(80===t.draggablePercent?1.5*t.draggablePercent:t.draggablePercent/100))}}function w(e){if(f.boundingRect){var n=f.boundingRect,r=n.top,i=n.bottom,o=n.left,a=n.right;"touchend"!==e.nativeEvent.type&&t.pauseOnHover&&f.x>=o&&f.x<=a&&f.y>=r&&f.y<=i?k():x()}}function x(){a(!0)}function k(){a(!1)}function S(e){var n=d.current;f.canDrag&&n&&(f.didMove=!0,o&&k(),f.x=xf(e),f.y=kf(e),f.delta="x"===t.draggableDirection?f.x-f.start:f.y-f.start,f.start!==f.x&&(f.canCloseOnClick=!1),n.style.transform="translate".concat(t.draggableDirection,"(").concat(f.delta,"px)"),n.style.opacity=""+(1-Math.abs(f.delta/f.removalDistance)))}function C(){document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",C),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",C);var e=d.current;if(f.canDrag&&f.didMove&&e){if(f.canDrag=!1,Math.abs(f.delta)>f.removalDistance)return l(!0),void t.closeToast();e.style.transition="transform 0.2s, opacity 0.2s",e.style.transform="translate".concat(t.draggableDirection,"(0)"),e.style.opacity="1"}}(0,e.useEffect)((function(){p.current=t})),(0,e.useEffect)((function(){return d.current&&d.current.addEventListener("d",x,{once:!0}),ff(t.onOpen)&&t.onOpen((0,e.isValidElement)(t.children)&&t.children.props),function(){var t=p.current;ff(t.onClose)&&t.onClose((0,e.isValidElement)(t.children)&&t.children.props)}}),[]),(0,e.useEffect)((function(){return t.pauseOnFocusLoss&&(document.hasFocus()||k(),window.addEventListener("focus",x),window.addEventListener("blur",k)),function(){t.pauseOnFocusLoss&&(window.removeEventListener("focus",x),window.removeEventListener("blur",k))}}),[t.pauseOnFocusLoss]);var E={onMouseDown:b,onTouchStart:b,onMouseUp:w,onTouchEnd:w};return h&&v&&(E.onMouseEnter=k,E.onMouseLeave=x),y&&(E.onClick=function(e){m&&m(e),f.canCloseOnClick&&g()}),{playToast:x,pauseToast:k,isRunning:o,preventExitTransition:u,toastRef:d,eventHandlers:E}}(t),r=n.isRunning,o=n.preventExitTransition,a=n.toastRef,s=n.eventHandlers,c=t.closeButton,u=t.children,l=t.autoClose,d=t.onClick,f=t.type,p=t.hideProgressBar,h=t.closeToast,v=t.transition,g=t.position,m=t.className,y=t.style,w=t.bodyClassName,x=t.bodyStyle,k=t.progressClassName,S=t.progressStyle,C=t.updateId,E=t.role,_=t.progress,T=t.rtl,M=t.toastId,A=t.deleteToast,j=t.isIn,P=t.isLoading,I=t.iconOut,R=t.closeOnClick,O=t.theme,Z=sf("Toastify__toast","Toastify__toast-theme--".concat(O),"Toastify__toast--".concat(f),{"Toastify__toast--rtl":T},{"Toastify__toast--close-on-click":R}),L=ff(m)?m({rtl:T,position:g,type:f,defaultClassName:Z}):sf(Z,m),N=!!_||!l,F={closeToast:h,type:f,theme:O},D=null;return!1===c||(D=ff(c)?c(F):(0,e.isValidElement)(c)?(0,e.cloneElement)(c,F):Sf(F)),e.createElement(v,{isIn:j,done:A,position:g,preventExitTransition:o,nodeRef:a},e.createElement("div",(0,b.Z)((0,b.Z)({id:M,onClick:d,className:L},s),{},{style:y,ref:a}),e.createElement("div",(0,b.Z)((0,b.Z)({},j&&{role:E}),{},{className:ff(w)?w({type:f}):sf("Toastify__toast-body",w),style:x}),null!=I&&e.createElement("div",{className:sf("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!P})},I),e.createElement("div",null,u)),D,e.createElement(Cf,(0,b.Z)((0,b.Z)({},C&&!N?{key:"pb-".concat(C)}:{}),{},{rtl:T,theme:O,delay:l,isRunning:r,isIn:j,closeToast:h,hide:p,type:f,style:S,className:k,controlledProgress:N,progress:_||0}))))},_f=function(e,t){return void 0===t&&(t=!1),{enter:"Toastify--animate Toastify__".concat(e,"-enter"),exit:"Toastify--animate Toastify__".concat(e,"-exit"),appendPosition:t}},Tf=vf(_f("bounce",!0)),Mf=(vf(_f("slide",!0)),vf(_f("zoom")),vf(_f("flip")),(0,e.forwardRef)((function(t,n){var r=wf(t),i=r.getToastToRender,o=r.containerRef,a=r.isToastActive,s=t.className,c=t.style,u=t.rtl,l=t.containerId;function d(e){var t=sf("Toastify__toast-container","Toastify__toast-container--".concat(e),{"Toastify__toast-container--rtl":u});return ff(s)?s({position:e,rtl:u,defaultClassName:t}):sf(t,pf(s))}return(0,e.useEffect)((function(){n&&(n.current=o.current)}),[]),e.createElement("div",{ref:o,className:"Toastify",id:l},i((function(t,n){var r=n.length?(0,b.Z)({},c):(0,b.Z)((0,b.Z)({},c),{},{pointerEvents:"none"});return e.createElement("div",{className:d(t),style:r,key:"container-".concat(t)},n.map((function(t,r){var i=t.content,o=t.props;return e.createElement(Ef,(0,b.Z)((0,b.Z)({},o),{},{isIn:a(o.toastId),style:(0,b.Z)((0,b.Z)({},o.style),{},{"--nth":r+1,"--len":n.length}),key:"toast-".concat(o.key)}),i)})))})))})));Mf.displayName="ToastContainer",Mf.defaultProps={position:"top-right",transition:Tf,autoClose:5e3,closeButton:Sf,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};var Af,jf=new Map,Pf=[],If=1;function Rf(){return""+If++}function Of(e){return e&&(df(e.toastId)||lf(e.toastId))?e.toastId:Rf()}function Zf(e,t){return jf.size>0?mf.emit(0,e,t):Pf.push({content:e,options:t}),t.toastId}function Lf(e,t){return(0,b.Z)((0,b.Z)({},t),{},{type:t&&t.type||e,toastId:Of(t)})}function Nf(e){return function(t,n){return Zf(t,Lf(e,n))}}function Ff(e,t){return Zf(e,Lf("default",t))}Ff.loading=function(e,t){return Zf(e,Lf("default",(0,b.Z)({isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1},t)))},Ff.promise=function(e,t,n){var r,i=t.pending,o=t.error,a=t.success;i&&(r=df(i)?Ff.loading(i,n):Ff.loading(i.render,(0,b.Z)((0,b.Z)({},n),i)));var s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=function(e,t,i){if(null!=t){var o=(0,b.Z)((0,b.Z)((0,b.Z)({type:e},s),n),{},{data:i}),a=df(t)?{render:t}:t;return r?Ff.update(r,(0,b.Z)((0,b.Z)({},o),a)):Ff(a.render,(0,b.Z)((0,b.Z)({},o),a)),i}Ff.dismiss(r)},u=ff(e)?e():e;return u.then((function(e){return c("success",a,e)})).catch((function(e){return c("error",o,e)})),u},Ff.success=Nf("success"),Ff.info=Nf("info"),Ff.error=Nf("error"),Ff.warning=Nf("warning"),Ff.warn=Ff.warning,Ff.dark=function(e,t){return Zf(e,Lf("default",(0,b.Z)({theme:"dark"},t)))},Ff.dismiss=function(e){jf.size>0?mf.emit(1,e):Pf=Pf.filter((function(t){return null!=e&&t.options.toastId!==e}))},Ff.clearWaitingQueue=function(e){return void 0===e&&(e={}),mf.emit(5,e)},Ff.isActive=function(e){var t=!1;return jf.forEach((function(n){n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},Ff.update=function(e,t){void 0===t&&(t={}),setTimeout((function(){var n=function(e,t){var n=t.containerId,r=jf.get(n||Af);return r&&r.getToast(e)}(e,t);if(n){var r=n.props,i=n.content,o=(0,b.Z)((0,b.Z)((0,b.Z)({delay:100},r),t),{},{toastId:t.toastId||e,updateId:Rf()});o.toastId!==e&&(o.staleId=e);var a=o.render||i;delete o.render,Zf(a,o)}}),0)},Ff.done=function(e){Ff.update(e,{progress:1})},Ff.onChange=function(e){return mf.on(4,e),function(){mf.off(4,e)}},Ff.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Ff.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},mf.on(2,(function(e){Af=e.containerId||e,jf.set(Af,e),Pf.forEach((function(e){mf.emit(0,e.content,e.options)})),Pf=[]})).on(3,(function(e){jf.delete(e.containerId||e),0===jf.size&&mf.off(0).off(1).off(5)}));var Df=function(e){var t,n=new Set,r=function(e,r){var i="function"===typeof e?e(t):e;if(!Object.is(i,t)){var o=t;t=(null!=r?r:"object"!==typeof i)?i:Object.assign({},t,i),n.forEach((function(e){return e(t,o)}))}},i=function(){return t},o={setState:r,getState:i,subscribe:function(e){return n.add(e),function(){return n.delete(e)}},destroy:function(){console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,i,o),o},Uf=function(e){return e?Df(e):Df},Gf=n(83255),Bf=Gf.useSyncExternalStoreWithSelector,zf=!1;var Kf,Wf,qf,Hf,Vf,Xf,Yf=function(t){"function"!==typeof t&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");var n="function"===typeof t?Uf(t):t,r=function(t,r){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.getState,r=arguments.length>2?arguments[2]:void 0;r&&!zf&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),zf=!0);var i=Bf(t.subscribe,t.getState,t.getServerState||t.getState,n,r);return(0,e.useDebugValue)(i),i}(n,t,r)};return Object.assign(r,n),r},Qf=function(e){return e?Yf(e):Yf},Jf=Qf((function(e){return{initialized:!1,user:null,userTags:[],userData:null,start:function(){var t=(0,y.Z)((0,m.Z)().mark((function t(){var n,r;return(0,m.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:of.PlayFab.settings.titleId=null!==(n="D4F8F")?n:"",of.PlayFab.settings.developerSecretKey=null!==(r="681TJSRQRR6ZNA5QRD5XK6G71MBJXKM6QXPEY1EZHCWO7Y5MP8")?r:"",of.PlayFabClient.LoginWithCustomID({CustomId:"MSWAnonymousGuest",CreateAccount:!0,CustomTags:{AccType:"AnonymousGuest"}},(function(t,n){if(t)return Ff(t.errorMessage,{type:"error"}),void e({initialized:!1})})),e({initialized:!0});case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getTitleData:function(){var t=(0,y.Z)((0,m.Z)().mark((function t(){return(0,m.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,of.PlayFabClient.GetTitleData({Keys:["IsOngoingEvent"]},(function(t,n){if(t)return Ff(t.errorMessage,{type:"error"}),void e({request:0})}));case 2:t.sent;case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),setUserInfo:function(t){e({user:t})},setUserTags:function(t){e({userTags:t})},setUserData:function(t){e({userData:t})}}})),$f=Jf,ep={position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},tp=zi.div(Kf||(Kf=(0,o.Z)(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */\n display: flex;\n justify-content: center;\n align-items: center;\n"]))),np=zi.div(Wf||(Wf=(0,o.Z)(["\n background-color: #4f19a7;\n display: flex;\n flex-flow: column nowrap;\n align-items: center;\n justify-content: center;\n border: white solid 2px;\n border-radius: 10px;\n min-width: 15rem;\n width: 35rem;\n gap: 1.5rem;\n margin: 1rem;\n\n h4 {\n font-family: 'Alphakind', cursive;\n letter-spacing: 3px;\n font-size: 1.5rem;\n font-weight: 700;\n padding: 2rem 0rem 0.5rem 0rem;\n }\n"]))),rp=zi.div(qf||(qf=(0,o.Z)(["\n display: flex;\n flex-flow: column;\n gap: 0.5rem;\n width: 100%;\n\n input {\n border-radius: 5px;\n }\n"]))),ip=zi.div(Hf||(Hf=(0,o.Z)(["\n display: flex;\n flex-flow: column nowrap;\n position: relative;\n height: 100%;\n"]))),op=zi.form(Vf||(Vf=(0,o.Z)(["\n display: flex;\n flex-flow: column;\n width: 100%;\n height: 100%;\n gap: 1rem;\n background-color: #190128;\n padding: 2rem 1rem;\n border-radius: 0 0 10px 10px;\n justify-content: start;\n text-align: start;\n\n div:last-of-type {\n margin-top: auto;\n }\n"]))),ap=zi.button(Xf||(Xf=(0,o.Z)(["\n font-family: 'Alphakind', cursive;\n display: flex;\n background-color: #8252b9;\n padding: ",";\n border-radius: ",";\n align-items: center;\n justify-content: center;\n text-align: center;\n"])),(function(e){var t=e.padding;return null!==t&&void 0!==t?t:"0.5rem 1rem"}),(function(e){var t=e.borderRadius;return null!==t&&void 0!==t?t:"20px"}));function sp(){var t=$f((function(e){return e.setUserInfo})),n=$f((function(e){return e.setUserTags})),r=$f((function(e){return e.setUserData})),o=($f((function(e){return e.user})),(0,e.useState)(!1)),a=(0,i.Z)(o,2),s=a[0],c=a[1],u=(0,e.useState)(""),l=(0,i.Z)(u,2),d=l[0],f=l[1],p=(0,e.useState)(""),h=(0,i.Z)(p,2),v=h[0],g=h[1],m=(0,e.useState)(""),y=(0,i.Z)(m,2),b=y[0],w=y[1],x=(0,e.useState)(""),k=(0,i.Z)(x,2),S=k[0],C=k[1],E=(0,e.useState)(0),_=(0,i.Z)(E,2),T=_[0],M=_[1],A=(0,e.useState)(""),j=(0,i.Z)(A,2),P=j[0],I=j[1],R=(0,e.useState)(""),O=(0,i.Z)(R,2),Z=O[0],L=O[1],N=function(){f(""),g(""),w(""),C(""),c(!1)},F=function(e){of.PlayFabClient.GetPlayerTags({PlayFabId:e},(function(t,i){t?Ff(t.errorMessage,{type:"error"}):(n(i.data.Tags),i.data.Tags.includes("title.D4F8F.BoundWallet")&&of.PlayFabClient.GetUserData({PlayFabId:e,Keys:["WalletAddress"]},(function(e,t){e?Ff(e.errorMessage,{type:"error"}):r(t.data.Data)})))}))};return(0,Rs.jsxs)(Rs.Fragment,{children:[(0,Rs.jsx)(hl,{open:s,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:(0,Rs.jsx)(kc,{sx:ep,children:(0,Rs.jsx)(tp,{children:(0,Rs.jsx)(np,{children:(0,Rs.jsxs)(Zl.lr,{showThumbs:!1,selectedItem:T,showArrows:!1,showIndicators:!1,showStatus:!1,children:[(0,Rs.jsxs)(ip,{style:{width:"100%"},children:[(0,Rs.jsx)("h4",{children:"LOGIN ACCOUNT"}),(0,Rs.jsxs)(op,{onSubmit:function(e){return function(e){e.preventDefault(),/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(P)?of.PlayFabClient.LoginWithEmailAddress({Email:P,Password:Z,InfoRequestParameters:{GetUserAccountInfo:!0,GetCharacterInventories:!1,GetCharacterList:!1,GetPlayerProfile:!1,GetPlayerStatistics:!1,GetTitleData:!1,GetUserData:!1,GetUserInventory:!1,GetUserReadOnlyData:!1,GetUserVirtualCurrency:!1}},(function(e,n){var r;e?Ff(e.errorMessage,{type:"error"}):(Ff("".concat(P," logged in"),{type:"success"}),t(null===(r=n.data.InfoResultPayload)||void 0===r?void 0:r.AccountInfo),setTimeout((function(){var e,t,r;F(null!==(e=null===(t=n.data.InfoResultPayload)||void 0===t||null===(r=t.AccountInfo)||void 0===r?void 0:r.PlayFabId)&&void 0!==e?e:"")}),100))})):of.PlayFabClient.LoginWithPlayFab({Username:P,Password:Z,InfoRequestParameters:{GetUserAccountInfo:!0,GetCharacterInventories:!1,GetCharacterList:!1,GetPlayerProfile:!1,GetPlayerStatistics:!1,GetTitleData:!1,GetUserData:!1,GetUserInventory:!1,GetUserReadOnlyData:!1,GetUserVirtualCurrency:!1}},(function(e,n){var r;e?Ff(e.errorMessage,{type:"error"}):(Ff("".concat(P," logged in"),{type:"success"}),t(null===(r=n.data.InfoResultPayload)||void 0===r?void 0:r.AccountInfo),setTimeout((function(){var e,t,r;F(null!==(e=null===(t=n.data.InfoResultPayload)||void 0===t||null===(r=t.AccountInfo)||void 0===r?void 0:r.PlayFabId)&&void 0!==e?e:"")}),100))}))}(e)},children:[(0,Rs.jsxs)(rp,{children:[(0,Rs.jsx)("span",{children:"Email or Username:"}),(0,Rs.jsx)("input",{type:"input",placeholder:"",defaultValue:P,onChange:function(e){return I(e.target.value)},required:!0})]}),(0,Rs.jsxs)(rp,{children:[(0,Rs.jsx)("span",{children:"Password:"}),(0,Rs.jsx)("input",{type:"password",placeholder:"",defaultValue:Z,onChange:function(e){return L(e.target.value)},required:!0})]}),(0,Rs.jsxs)("div",{style:{display:"flex",gap:"2rem",marginTop:"1rem"},children:[(0,Rs.jsx)(ap,{borderRadius:"8px",padding:"0.8rem 1rem",type:"submit",children:"Login"}),(0,Rs.jsx)(ap,{borderRadius:"8px",padding:"0.8rem 1rem",type:"button",onClick:function(e){return N()},children:"Cancel"})]}),(0,Rs.jsx)("div",{children:(0,Rs.jsx)("a",{style:{cursor:"pointer",fontSize:"1rem"},children:"Forgot Password?"})}),(0,Rs.jsxs)("div",{style:{display:"flex",flexFlow:"column",alignItems:"center",gap:"0.5rem"},children:[(0,Rs.jsx)("span",{style:{fontSize:"1rem"},children:"Not yet registered?"}),(0,Rs.jsx)(ap,{borderRadius:"8px",padding:"0.8rem 1rem",type:"button",onClick:function(e){return M(1)},children:"Register"})]})]})]}),(0,Rs.jsxs)(ip,{children:[(0,Rs.jsx)("h4",{children:"REGISTER ACCOUNT"}),(0,Rs.jsxs)(op,{onSubmit:function(e){return function(e){e.preventDefault(),b===S?of.PlayFabClient.RegisterPlayFabUser({Email:d,Username:v,Password:b,RequireBothUsernameAndEmail:!0},(function(e,t){e?Ff(e.errorMessage,{type:"error"}):(Ff("Register successful!",{type:"success"}),M(0),N())})):Ff("Passwords do not match!",{type:"warning"})}(e)},children:[(0,Rs.jsxs)(rp,{children:[(0,Rs.jsx)("span",{children:"Email:"}),(0,Rs.jsx)("input",{type:"email",placeholder:"example@email.com",defaultValue:d,onChange:function(e){return f(e.target.value)},required:!0})]}),(0,Rs.jsxs)(rp,{children:[(0,Rs.jsx)("span",{children:"Username:"}),(0,Rs.jsx)("input",{type:"username",placeholder:"must be 4 characters (no spaces & special characters)",defaultValue:v,onChange:function(e){return g(e.target.value)},required:!0})]}),(0,Rs.jsxs)(rp,{children:[(0,Rs.jsx)("span",{children:"Password:"}),(0,Rs.jsx)("input",{type:"password",placeholder:"must be 6 characters long",defaultValue:b,onChange:function(e){return w(e.target.value)},required:!0})]}),(0,Rs.jsxs)(rp,{children:[(0,Rs.jsx)("span",{children:"Confirm Password:"}),(0,Rs.jsx)("input",{type:"password",placeholder:"re-type password",defaultValue:S,onChange:function(e){return C(e.target.value)},required:!0})]}),(0,Rs.jsxs)("div",{style:{display:"flex",gap:"2rem"},children:[(0,Rs.jsx)(ap,{borderRadius:"8px",padding:"0.8rem 1rem",type:"submit",children:"Register"}),(0,Rs.jsx)(ap,{borderRadius:"8px",padding:"0.8rem 1rem",type:"button",onClick:function(e){return N()},children:"Cancel"})]}),(0,Rs.jsxs)("div",{style:{display:"flex",flexFlow:"column",alignItems:"center",gap:"0.5rem"},children:[(0,Rs.jsx)("span",{style:{fontSize:"1rem"},children:"Already registered?"}),(0,Rs.jsx)(ap,{borderRadius:"8px",padding:"0.8rem 1rem",type:"button",onClick:function(e){return M(0)},children:"Login"})]})]})]})]})})})})}),(0,Rs.jsx)(ap,{onClick:function(){c(!0)},children:"Login/Register"})]})}function cp(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=null;return function(){for(var i=arguments.length,o=new Array(i),a=0;a=0&&e!==1/0}function pp(e,t){return Math.max(e+(t||0)-Date.now(),0)}function hp(e,t,n){return Mp(e)?"function"===typeof t?(0,b.Z)((0,b.Z)({},n),{},{queryKey:e,queryFn:t}):(0,b.Z)((0,b.Z)({},t),{},{queryKey:e}):e}function vp(e,t,n){return Mp(e)?"function"===typeof t?(0,b.Z)((0,b.Z)({},n),{},{mutationKey:e,mutationFn:t}):(0,b.Z)((0,b.Z)({},t),{},{mutationKey:e}):"function"===typeof e?(0,b.Z)((0,b.Z)({},t),{},{mutationFn:e}):(0,b.Z)({},e)}function gp(e,t,n){return Mp(e)?[(0,b.Z)((0,b.Z)({},t),{},{queryKey:e}),n]:[e||{},t]}function mp(e,t){var n=e.type,r=void 0===n?"all":n,i=e.exact,o=e.fetchStatus,a=e.predicate,s=e.queryKey,c=e.stale;if(Mp(s))if(i){if(t.queryHash!==bp(s,t.options))return!1}else if(!xp(t.queryKey,s))return!1;if("all"!==r){var u=t.isActive();if("active"===r&&!u)return!1;if("inactive"===r&&u)return!1}return("boolean"!==typeof c||t.isStale()===c)&&(("undefined"===typeof o||o===t.state.fetchStatus)&&!(a&&!a(t)))}function yp(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(Mp(o)){if(!t.options.mutationKey)return!1;if(n){if(wp(t.options.mutationKey)!==wp(o))return!1}else if(!xp(t.options.mutationKey,o))return!1}return("boolean"!==typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function bp(e,t){return((null==t?void 0:t.queryKeyHashFn)||wp)(e)}function wp(e){return JSON.stringify(e,(function(e,t){return _p(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function xp(e,t){return kp(e,t)}function kp(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((function(n){return!kp(e[n],t[n])})))}function Sp(e,t){if(e===t)return e;var n=Ep(e)&&Ep(t);if(n||_p(e)&&_p(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},s=0,c=0;c0}},{key:"onSubscribe",value:function(){}},{key:"onUnsubscribe",value:function(){}}]),e}(),Zp=new(function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;return(0,s.Z)(this,n),(e=t.call(this)).setup=function(e){if(!lp&&window.addEventListener){var t=function(){return e()};return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),function(){window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}},e}return(0,a.Z)(n,[{key:"onSubscribe",value:function(){this.cleanup||this.setEventListener(this.setup)}},{key:"onUnsubscribe",value:function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}},{key:"setEventListener",value:function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?n.setFocused(e):n.onFocus()}))}},{key:"setFocused",value:function(e){this.focused!==e&&(this.focused=e,this.onFocus())}},{key:"onFocus",value:function(){this.listeners.forEach((function(e){(0,e.listener)()}))}},{key:"isFocused",value:function(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}]),n}(Op)),Lp=["online","offline"],Np=new(function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;return(0,s.Z)(this,n),(e=t.call(this)).setup=function(e){if(!lp&&window.addEventListener){var t=function(){return e()};return Lp.forEach((function(e){window.addEventListener(e,t,!1)})),function(){Lp.forEach((function(e){window.removeEventListener(e,t)}))}}},e}return(0,a.Z)(n,[{key:"onSubscribe",value:function(){this.cleanup||this.setEventListener(this.setup)}},{key:"onUnsubscribe",value:function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}},{key:"setEventListener",value:function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?n.setOnline(e):n.onOnline()}))}},{key:"setOnline",value:function(e){this.online!==e&&(this.online=e,this.onOnline())}},{key:"onOnline",value:function(){this.listeners.forEach((function(e){(0,e.listener)()}))}},{key:"isOnline",value:function(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine}}]),n}(Op));function Fp(e){return Math.min(1e3*Math.pow(2,e),3e4)}function Dp(e){return"online"!==(null!=e?e:"online")||Np.isOnline()}var Up=(0,a.Z)((function e(t){(0,s.Z)(this,e),this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent}));function Gp(e){return e instanceof Up}function Bp(e){var t,n,r,i=!1,o=0,a=!1,s=new Promise((function(e,t){n=e,r=t})),c=function(){return!Zp.isFocused()||"always"!==e.networkMode&&!Np.isOnline()},u=function(r){a||(a=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},l=function(n){a||(a=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},d=function(){return new Promise((function(n){t=function(e){var t=a||!c();return t&&n(e),t},null==e.onPause||e.onPause()})).then((function(){t=void 0,a||null==e.onContinue||e.onContinue()}))},f=function t(){if(!a){var n;try{n=e.fn()}catch(r){n=Promise.reject(r)}Promise.resolve(n).then(u).catch((function(n){var r,s;if(!a){var u=null!=(r=e.retry)?r:3,f=null!=(s=e.retryDelay)?s:Fp,p="function"===typeof f?f(o,n):f,h=!0===u||"number"===typeof u&&o0&&!this.isActive()}},{key:"isStale",value:function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))}},{key:"isStaleByTime",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.state.isInvalidated||!this.state.dataUpdatedAt||!pp(this.state.dataUpdatedAt,e)}},{key:"onFocus",value:function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}},{key:"onOnline",value:function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}},{key:"addObserver",value:function(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}},{key:"removeObserver",value:function(e){this.observers.includes(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}},{key:"getObserversCount",value:function(){return this.observers.length}},{key:"invalidate",value:function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}},{key:"fetch",value:function(e,t){var n,r,i=this;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var a=this.observers.find((function(e){return e.options.queryFn}));a&&this.setOptions(a.options)}var s=function(){if("function"===typeof AbortController)return new AbortController}(),c={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},u=function(e){Object.defineProperty(e,"signal",{enumerable:!0,get:function(){if(s)return i.abortSignalConsumed=!0,s.signal}})};u(c);var l,d={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:function(){return i.options.queryFn?(i.abortSignalConsumed=!1,i.options.queryFn(c)):Promise.reject("Missing queryFn for queryKey '"+i.options.queryHash+"'")}};(u(d),null==(n=this.options.behavior)||n.onFetch(d),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=d.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(l=d.fetchOptions)?void 0:l.meta});var f=function(e){var t,n,r,o;(Gp(e)&&e.silent||i.dispatch({type:"error",error:e}),Gp(e))||(null==(t=(n=i.cache.config).onError)||t.call(n,e,i),null==(r=(o=i.cache.config).onSettled)||r.call(o,i.state.data,e,i));i.isFetchingOptimistic||i.scheduleGc(),i.isFetchingOptimistic=!1};return this.retryer=Bp({fn:d.fetchFn,abort:null==s?void 0:s.abort.bind(s),onSuccess:function(e){var t,n,r,o;"undefined"!==typeof e?(i.setData(e),null==(t=(n=i.cache.config).onSuccess)||t.call(n,e,i),null==(r=(o=i.cache.config).onSettled)||r.call(o,e,i.state.error,i),i.isFetchingOptimistic||i.scheduleGc(),i.isFetchingOptimistic=!1):f(new Error(i.queryHash+" data is undefined"))},onError:f,onFail:function(e,t){i.dispatch({type:"failed",failureCount:e,error:t})},onPause:function(){i.dispatch({type:"pause"})},onContinue:function(){i.dispatch({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode}),this.promise=this.retryer.promise,this.promise}},{key:"dispatch",value:function(e){var t=this;this.state=function(n){var r,i;switch(e.type){case"failed":return(0,b.Z)((0,b.Z)({},n),{},{fetchFailureCount:e.failureCount,fetchFailureReason:e.error});case"pause":return(0,b.Z)((0,b.Z)({},n),{},{fetchStatus:"paused"});case"continue":return(0,b.Z)((0,b.Z)({},n),{},{fetchStatus:"fetching"});case"fetch":return(0,b.Z)((0,b.Z)({},n),{},{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(r=e.meta)?r:null,fetchStatus:Dp(t.options.networkMode)?"fetching":"paused"},!n.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,b.Z)((0,b.Z)({},n),{},{data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:null!=(i=e.dataUpdatedAt)?i:Date.now(),error:null,isInvalidated:!1,status:"success"},!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":var o=e.error;return Gp(o)&&o.revert&&t.revertState?(0,b.Z)((0,b.Z)({},t.revertState),{},{fetchStatus:"idle"}):(0,b.Z)((0,b.Z)({},n),{},{error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"});case"invalidate":return(0,b.Z)((0,b.Z)({},n),{},{isInvalidated:!0});case"setState":return(0,b.Z)((0,b.Z)({},n),e.state)}}(this.state),Rp.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"updated",action:e})}))}}]),n}(zp);var Wp=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var r;return(0,s.Z)(this,n),(r=t.call(this)).config=e||{},r.queries=[],r.queriesMap={},r}return(0,a.Z)(n,[{key:"build",value:function(e,t,n){var r,i=t.queryKey,o=null!=(r=t.queryHash)?r:bp(i,t),a=this.get(o);return a||(a=new Kp({cache:this,logger:e.getLogger(),queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}},{key:"add",value:function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}},{key:"remove",value:function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}},{key:"clear",value:function(){var e=this;Rp.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))}},{key:"get",value:function(e){return this.queriesMap[e]}},{key:"getAll",value:function(){return this.queries}},{key:"find",value:function(e,t){var n=gp(e,t),r=(0,i.Z)(n,1)[0];return"undefined"===typeof r.exact&&(r.exact=!0),this.queries.find((function(e){return mp(r,e)}))}},{key:"findAll",value:function(e,t){var n=gp(e,t),r=(0,i.Z)(n,1)[0];return Object.keys(r).length>0?this.queries.filter((function(e){return mp(r,e)})):this.queries}},{key:"notify",value:function(e){var t=this;Rp.batch((function(){t.listeners.forEach((function(t){(0,t.listener)(e)}))}))}},{key:"onFocus",value:function(){var e=this;Rp.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))}},{key:"onOnline",value:function(){var e=this;Rp.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))}}]),n}(Op),qp=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var r;return(0,s.Z)(this,n),(r=t.call(this)).defaultOptions=e.defaultOptions,r.mutationId=e.mutationId,r.mutationCache=e.mutationCache,r.logger=e.logger||Ip,r.observers=[],r.state=e.state||Hp(),r.setOptions(e.options),r.scheduleGc(),r}return(0,a.Z)(n,[{key:"setOptions",value:function(e){this.options=(0,b.Z)((0,b.Z)({},this.defaultOptions),e),this.updateCacheTime(this.options.cacheTime)}},{key:"meta",get:function(){return this.options.meta}},{key:"setState",value:function(e){this.dispatch({type:"setState",state:e})}},{key:"addObserver",value:function(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}},{key:"removeObserver",value:function(e){this.observers=this.observers.filter((function(t){return t!==e})),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}},{key:"optionalRemove",value:function(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}},{key:"continue",value:function(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}},{key:"execute",value:function(){var e=(0,y.Z)((0,m.Z)().mark((function e(){var t,n,r,i,o,a,s,c,u,l,d,f,p,h,v,g,y,b,w,x,k,S,C,E,_=this;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=function(){var e;return _.retryer=Bp({fn:function(){return _.options.mutationFn?_.options.mutationFn(_.state.variables):Promise.reject("No mutationFn found")},onFail:function(e,t){_.dispatch({type:"failed",failureCount:e,error:t})},onPause:function(){_.dispatch({type:"pause"})},onContinue:function(){_.dispatch({type:"continue"})},retry:null!=(e=_.options.retry)?e:0,retryDelay:_.options.retryDelay,networkMode:_.options.networkMode}),_.retryer.promise},n="loading"===this.state.status,e.prev=2,n){e.next=11;break}return this.dispatch({type:"loading",variables:this.options.variables}),e.next=7,null==(d=(f=this.mutationCache.config).onMutate)?void 0:d.call(f,this.state.variables,this);case 7:return e.next=9,null==(p=(h=this.options).onMutate)?void 0:p.call(h,this.state.variables);case 9:(v=e.sent)!==this.state.context&&this.dispatch({type:"loading",context:v,variables:this.state.variables});case 11:return e.next=13,t();case 13:return g=e.sent,e.next=16,null==(r=(i=this.mutationCache.config).onSuccess)?void 0:r.call(i,g,this.state.variables,this.state.context,this);case 16:return e.next=18,null==(o=(a=this.options).onSuccess)?void 0:o.call(a,g,this.state.variables,this.state.context);case 18:return e.next=20,null==(s=(c=this.mutationCache.config).onSettled)?void 0:s.call(c,g,null,this.state.variables,this.state.context,this);case 20:return e.next=22,null==(u=(l=this.options).onSettled)?void 0:u.call(l,g,null,this.state.variables,this.state.context);case 22:return this.dispatch({type:"success",data:g}),e.abrupt("return",g);case 26:return e.prev=26,e.t0=e.catch(2),e.prev=28,e.next=31,null==(y=(b=this.mutationCache.config).onError)?void 0:y.call(b,e.t0,this.state.variables,this.state.context,this);case 31:return e.next=34,null==(w=(x=this.options).onError)?void 0:w.call(x,e.t0,this.state.variables,this.state.context);case 34:return e.next=36,null==(k=(S=this.mutationCache.config).onSettled)?void 0:k.call(S,void 0,e.t0,this.state.variables,this.state.context,this);case 36:return e.next=38,null==(C=(E=this.options).onSettled)?void 0:C.call(E,void 0,e.t0,this.state.variables,this.state.context);case 38:throw e.t0;case 39:return e.prev=39,this.dispatch({type:"error",error:e.t0}),e.finish(39);case 42:case"end":return e.stop()}}),e,this,[[2,26],[28,,39,42]])})));return function(){return e.apply(this,arguments)}}()},{key:"dispatch",value:function(e){var t=this;this.state=function(n){switch(e.type){case"failed":return(0,b.Z)((0,b.Z)({},n),{},{failureCount:e.failureCount,failureReason:e.error});case"pause":return(0,b.Z)((0,b.Z)({},n),{},{isPaused:!0});case"continue":return(0,b.Z)((0,b.Z)({},n),{},{isPaused:!1});case"loading":return(0,b.Z)((0,b.Z)({},n),{},{context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Dp(t.options.networkMode),status:"loading",variables:e.variables});case"success":return(0,b.Z)((0,b.Z)({},n),{},{data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return(0,b.Z)((0,b.Z)({},n),{},{data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"});case"setState":return(0,b.Z)((0,b.Z)({},n),e.state)}}(this.state),Rp.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify({mutation:t,type:"updated",action:e})}))}}]),n}(zp);function Hp(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}var Vp=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var r;return(0,s.Z)(this,n),(r=t.call(this)).config=e||{},r.mutations=[],r.mutationId=0,r}return(0,a.Z)(n,[{key:"build",value:function(e,t,n){var r=new qp({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}},{key:"add",value:function(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}},{key:"remove",value:function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),this.notify({type:"removed",mutation:e})}},{key:"clear",value:function(){var e=this;Rp.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))}},{key:"getAll",value:function(){return this.mutations}},{key:"find",value:function(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find((function(t){return yp(e,t)}))}},{key:"findAll",value:function(e){return this.mutations.filter((function(t){return yp(e,t)}))}},{key:"notify",value:function(e){var t=this;Rp.batch((function(){t.listeners.forEach((function(t){(0,t.listener)(e)}))}))}},{key:"resumePausedMutations",value:function(){var e,t=this;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((function(){var e=t.mutations.filter((function(e){return e.state.isPaused}));return Rp.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(dp)}))}),Promise.resolve())}))})).then((function(){t.resuming=void 0})),this.resuming}}]),n}(Op);function Xp(){return{onFetch:function(e){e.fetchFn=function(){var t,n,r,i,o,a,s,c=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,u=null==(r=e.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,l=null==u?void 0:u.pageParam,d="forward"===(null==u?void 0:u.direction),p="backward"===(null==u?void 0:u.direction),h=(null==(o=e.state.data)?void 0:o.pages)||[],v=(null==(a=e.state.data)?void 0:a.pageParams)||[],g=v,m=!1,y=e.options.queryFn||function(){return Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")},b=function(e,t,n,r){return g=r?[t].concat((0,f.Z)(g)):[].concat((0,f.Z)(g),[t]),r?[n].concat((0,f.Z)(e)):[].concat((0,f.Z)(e),[n])},w=function(t,n,r,i){if(m)return Promise.reject("Cancelled");if("undefined"===typeof r&&!n&&t.length)return Promise.resolve(t);var o,a={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};o=a,Object.defineProperty(o,"signal",{enumerable:!0,get:function(){var t,n;return null!=(t=e.signal)&&t.aborted?m=!0:null==(n=e.signal)||n.addEventListener("abort",(function(){m=!0})),e.signal}});var s=y(a);return Promise.resolve(s).then((function(e){return b(t,r,e,i)}))};if(h.length)if(d){var x="undefined"!==typeof l,k=x?l:Yp(e.options,h);s=w(h,x,k)}else if(p){var S="undefined"!==typeof l,C=S?l:Qp(e.options,h);s=w(h,S,C,!0)}else{g=[];var E="undefined"===typeof e.options.getNextPageParam,_=!c||!h[0]||c(h[0],0,h);s=_?w([],E,v[0]):Promise.resolve(b([],v[0],h[0]));for(var T=function(t){s=s.then((function(n){if(!c||!h[t]||c(h[t],t,h)){var r=E?v[t]:Yp(e.options,n);return w(n,E,r)}return Promise.resolve(b(n,v[t],h[t]))}))},M=1;M0&&void 0!==arguments[0]?arguments[0]:{};(0,s.Z)(this,e),this.queryCache=t.queryCache||new Wp,this.mutationCache=t.mutationCache||new Vp,this.logger=t.logger||Ip,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}return(0,a.Z)(e,[{key:"mount",value:function(){var e=this;this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=Zp.subscribe((function(){Zp.isFocused()&&(e.resumePausedMutations(),e.queryCache.onFocus())})),this.unsubscribeOnline=Np.subscribe((function(){Np.isOnline()&&(e.resumePausedMutations(),e.queryCache.onOnline())})))}},{key:"unmount",value:function(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}},{key:"isFetching",value:function(e,t){var n=gp(e,t),r=(0,i.Z)(n,1)[0];return r.fetchStatus="fetching",this.queryCache.findAll(r).length}},{key:"isMutating",value:function(e){return this.mutationCache.findAll((0,b.Z)((0,b.Z)({},e),{},{fetching:!0})).length}},{key:"getQueryData",value:function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}},{key:"ensureQueryData",value:function(e,t,n){var r=hp(e,t,n),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):this.fetchQuery(r)}},{key:"getQueriesData",value:function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))}},{key:"setQueryData",value:function(e,t,n){var r=this.queryCache.find(e),i=function(e,t){return"function"===typeof e?e(t):e}(t,null==r?void 0:r.state.data);if("undefined"!==typeof i){var o=hp(e),a=this.defaultQueryOptions(o);return this.queryCache.build(this,a).setData(i,(0,b.Z)((0,b.Z)({},n),{},{manual:!0}))}}},{key:"setQueriesData",value:function(e,t,n){var r=this;return Rp.batch((function(){return r.getQueryCache().findAll(e).map((function(e){var i=e.queryKey;return[i,r.setQueryData(i,t,n)]}))}))}},{key:"getQueryState",value:function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}},{key:"removeQueries",value:function(e,t){var n=gp(e,t),r=(0,i.Z)(n,1)[0],o=this.queryCache;Rp.batch((function(){o.findAll(r).forEach((function(e){o.remove(e)}))}))}},{key:"resetQueries",value:function(e,t,n){var r=this,o=gp(e,t,n),a=(0,i.Z)(o,2),s=a[0],c=a[1],u=this.queryCache,l=(0,b.Z)({type:"active"},s);return Rp.batch((function(){return u.findAll(s).forEach((function(e){e.reset()})),r.refetchQueries(l,c)}))}},{key:"cancelQueries",value:function(e,t,n){var r=this,o=gp(e,t,n),a=(0,i.Z)(o,2),s=a[0],c=a[1],u=void 0===c?{}:c;"undefined"===typeof u.revert&&(u.revert=!0);var l=Rp.batch((function(){return r.queryCache.findAll(s).map((function(e){return e.cancel(u)}))}));return Promise.all(l).then(dp).catch(dp)}},{key:"invalidateQueries",value:function(e,t,n){var r=this,o=gp(e,t,n),a=(0,i.Z)(o,2),s=a[0],c=a[1];return Rp.batch((function(){var e,t;if(r.queryCache.findAll(s).forEach((function(e){e.invalidate()})),"none"===s.refetchType)return Promise.resolve();var n=(0,b.Z)((0,b.Z)({},s),{},{type:null!=(e=null!=(t=s.refetchType)?t:s.type)?e:"active"});return r.refetchQueries(n,c)}))}},{key:"refetchQueries",value:function(e,t,n){var r=this,o=gp(e,t,n),a=(0,i.Z)(o,2),s=a[0],c=a[1],u=Rp.batch((function(){return r.queryCache.findAll(s).filter((function(e){return!e.isDisabled()})).map((function(e){var t;return e.fetch(void 0,(0,b.Z)((0,b.Z)({},c),{},{cancelRefetch:null==(t=null==c?void 0:c.cancelRefetch)||t,meta:{refetchPage:s.refetchPage}}))}))})),l=Promise.all(u).then(dp);return null!=c&&c.throwOnError||(l=l.catch(dp)),l}},{key:"fetchQuery",value:function(e,t,n){var r=hp(e,t,n),i=this.defaultQueryOptions(r);"undefined"===typeof i.retry&&(i.retry=!1);var o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}},{key:"prefetchQuery",value:function(e,t,n){return this.fetchQuery(e,t,n).then(dp).catch(dp)}},{key:"fetchInfiniteQuery",value:function(e,t,n){var r=hp(e,t,n);return r.behavior=Xp(),this.fetchQuery(r)}},{key:"prefetchInfiniteQuery",value:function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(dp).catch(dp)}},{key:"resumePausedMutations",value:function(){return this.mutationCache.resumePausedMutations()}},{key:"getQueryCache",value:function(){return this.queryCache}},{key:"getMutationCache",value:function(){return this.mutationCache}},{key:"getLogger",value:function(){return this.logger}},{key:"getDefaultOptions",value:function(){return this.defaultOptions}},{key:"setDefaultOptions",value:function(e){this.defaultOptions=e}},{key:"setQueryDefaults",value:function(e,t){var n=this.queryDefaults.find((function(t){return wp(e)===wp(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}},{key:"getQueryDefaults",value:function(e){if(e){var t=this.queryDefaults.find((function(t){return xp(e,t.queryKey)}));return null==t?void 0:t.defaultOptions}}},{key:"setMutationDefaults",value:function(e,t){var n=this.mutationDefaults.find((function(t){return wp(e)===wp(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}},{key:"getMutationDefaults",value:function(e){if(e){var t=this.mutationDefaults.find((function(t){return xp(e,t.mutationKey)}));return null==t?void 0:t.defaultOptions}}},{key:"defaultQueryOptions",value:function(e){if(null!=e&&e._defaulted)return e;var t=(0,b.Z)((0,b.Z)((0,b.Z)((0,b.Z)({},this.defaultOptions.queries),this.getQueryDefaults(null==e?void 0:e.queryKey)),e),{},{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=bp(t.queryKey,t)),"undefined"===typeof t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),"undefined"===typeof t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}},{key:"defaultMutationOptions",value:function(e){return null!=e&&e._defaulted?e:(0,b.Z)((0,b.Z)((0,b.Z)((0,b.Z)({},this.defaultOptions.mutations),this.getMutationDefaults(null==e?void 0:e.mutationKey)),e),{},{_defaulted:!0})}},{key:"clear",value:function(){this.queryCache.clear(),this.mutationCache.clear()}}]),e}(),$p=["fetchStatus"];function eh(e){return e.state.isPaused}function th(e){return"success"===e.state.status}function nh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=[];if(!1!==t.dehydrateMutations){var i=t.shouldDehydrateMutation||eh;e.getMutationCache().getAll().forEach((function(e){i(e)&&n.push(function(e){return{mutationKey:e.options.mutationKey,state:e.state}}(e))}))}if(!1!==t.dehydrateQueries){var o=t.shouldDehydrateQuery||th;e.getQueryCache().getAll().forEach((function(e){o(e)&&r.push(function(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash}}(e))}))}return{mutations:n,queries:r}}function rh(e,t,n){if("object"===typeof t&&null!==t){var r=e.getMutationCache(),i=e.getQueryCache(),o=t.mutations||[],a=t.queries||[];o.forEach((function(t){var i;r.build(e,(0,b.Z)((0,b.Z)({},null==n||null==(i=n.defaultOptions)?void 0:i.mutations),{},{mutationKey:t.mutationKey}),t.state)})),a.forEach((function(t){var r,o=t.queryKey,a=t.state,s=t.queryHash,c=i.get(s);if(c){if(c.state.dataUpdatedAto,d=u.buster!==s,l||d?r.removeClient():rh(n,u.clientState,c)):r.removeClient()),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),r.removeClient();case 12:case"end":return e.stop()}}),e,null,[[1,8]])}))),ah.apply(this,arguments)}function sh(e){return ch.apply(this,arguments)}function ch(){return(ch=(0,y.Z)((0,m.Z)().mark((function e(t){var n,r,i,o,a,s;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.queryClient,r=t.persister,i=t.buster,o=void 0===i?"":i,a=t.dehydrateOptions,s={buster:o,timestamp:Date.now(),clientState:nh(n,a)},e.next=4,r.persistClient(s);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function uh(e){var t,n=!1,r=function(e){return ah.apply(this,arguments)}(e).then((function(){n||(t=function(e){var t=e.queryClient.getQueryCache().subscribe((function(t){oh(t.type)&&sh(e)})),n=e.queryClient.getMutationCache().subscribe((function(t){oh(t.type)&&sh(e)}));return function(){t(),n()}}(e))}));return[function(){n=!0,null==t||t()},r]}var lh=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var r,i=e.chainId,o=e.connectorId;return(0,s.Z)(this,n),(r=t.call(this,'Chain "'.concat(i,'" not configured for connector "').concat(o,'".'))).name="ChainNotConfiguredForConnectorError",r}return(0,a.Z)(n)}((0,g.Z)(Error)),dh=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;return(0,s.Z)(this,n),(e=t.apply(this,arguments)).name="ConnectorNotFoundError",e.message="Connector not found",e}return(0,a.Z)(n)}((0,g.Z)(Error));function fh(e){return"string"===typeof e?Number.parseInt(e,"0x"===e.trim().substring(0,2)?16:10):"bigint"===typeof e?Number(e):e}var ph,hh=n(38522),vh=n(73947),gh=(0,vh.ax)({id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),mh=(0,vh.ax)({id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),yh=["default"],bh=function(e,t,n){if(!t.has(e))throw TypeError("Cannot "+n)},wh=function(e,t,n){return bh(e,t,"read from private field"),n?n.call(e):t.get(e)},xh=function(e,t,n){if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},kh=function(e,t,n,r){return bh(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n},Sh=function(e,t,n){return bh(e,t,"access private method"),n},Ch=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var r,i=e.chains,o=void 0===i?[gh,mh]:i,a=e.options;return(0,s.Z)(this,n),(r=t.call(this)).chains=o,r.options=a,r}return(0,a.Z)(n,[{key:"getBlockExplorerUrls",value:function(e){var t,n=null!==(t=e.blockExplorers)&&void 0!==t?t:{},r=n.default,i=(0,l.Z)(n,yh);if(r)return[r.url].concat((0,f.Z)(Object.values(i).map((function(e){return e.url}))))}},{key:"isChainUnsupported",value:function(e){return!this.chains.some((function(t){return t.id===e}))}},{key:"setStorage",value:function(e){this.storage=e}}]),n}(hh),Eh=n(55892),_h=n(77434),Th=n(93569),Mh=256,Ah=Mh;function jh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:11;if(!ph||Ah+e>2*Mh){ph="",Ah=0;for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{}).docsPath;return(0,s.Z)(this,n),e=t.call(this,["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the WalletClient."].join("\n"),{docsPath:r,docsSlug:"account"}),Object.defineProperty((0,d.Z)(e),"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"}),e}return(0,a.Z)(n)}(Bh.G),Kh=n(23628),Wh=n(22469),qh=n(41917),Hh=["docsPath"];function Vh(e,t){var n=t.docsPath,r=(0,l.Z)(t,Hh),i=function(){var t=(0,qh.k)(e,r);return t instanceof Kh.cj?e:t}();return new Wh.mk(i,(0,b.Z)({docsPath:n},r))}var Xh=n(88255),Yh=n(26652),Qh=n(8943),Jh=n(63169),$h=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;return(0,s.Z)(this,n),e=t.call(this,"`baseFeeMultiplier` must be greater than 1."),Object.defineProperty((0,d.Z)(e),"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"}),e}return(0,a.Z)(n)}(Bh.G),ev=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;return(0,s.Z)(this,n),e=t.call(this,"Chain does not support EIP-1559 fees."),Object.defineProperty((0,d.Z)(e),"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"}),e}return(0,a.Z)(n)}(Bh.G),tv=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var r,i=e.maxPriorityFeePerGas;return(0,s.Z)(this,n),r=t.call(this,"`maxFeePerGas` cannot be less than the `maxPriorityFeePerGas` (".concat((0,Jh.o)(i)," gwei).")),Object.defineProperty((0,d.Z)(r),"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"}),r}return(0,a.Z)(n)}(Bh.G),nv=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var r,i=e.blockHash,o=e.blockNumber;(0,s.Z)(this,n);var a="Block";return i&&(a='Block at hash "'.concat(i,'"')),o&&(a='Block at number "'.concat(o,'"')),r=t.call(this,"".concat(a," could not be found.")),Object.defineProperty((0,d.Z)(r),"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"}),r}return(0,a.Z)(n)}(Bh.G);var rv={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function iv(e){var t=(0,b.Z)((0,b.Z)({},e),{},{blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,Ih.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,Ih.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?rv[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0});return"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip2930"===t.type&&(delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),t}function ov(e){var t,n=null===(t=e.transactions)||void 0===t?void 0:t.map((function(e){return"string"===typeof e?e:iv(e)}));return(0,b.Z)((0,b.Z)({},e),{},{baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,difficulty:e.difficulty?BigInt(e.difficulty):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null})}function av(e){return sv.apply(this,arguments)}function sv(){return sv=(0,y.Z)((0,m.Z)().mark((function e(t){var n,r,i,o,a,s,c,u,l,d,f,p=arguments;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(r=p.length>1&&void 0!==p[1]?p[1]:{}).blockHash,o=r.blockNumber,a=r.blockTag,s=r.includeTransactions,c=null!==a&&void 0!==a?a:"latest",u=null!==s&&void 0!==s&&s,l=void 0!==o?(0,Zh.eC)(o):void 0,d=null,!i){e.next=11;break}return e.next=8,t.request({method:"eth_getBlockByHash",params:[i,u]});case 8:d=e.sent,e.next=14;break;case 11:return e.next=13,t.request({method:"eth_getBlockByNumber",params:[l||c,u]});case 13:d=e.sent;case 14:if(d){e.next=16;break}throw new nv({blockHash:i,blockNumber:o});case 16:return f=(null===(n=t.chain)||void 0===n||null===(n=n.formatters)||void 0===n||null===(n=n.block)||void 0===n?void 0:n.format)||ov,e.abrupt("return",f(d));case 18:case"end":return e.stop()}}),e)}))),sv.apply(this,arguments)}function cv(e){return uv.apply(this,arguments)}function uv(){return uv=(0,y.Z)((0,m.Z)().mark((function e(t){var n;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.request({method:"eth_gasPrice"});case 2:return n=e.sent,e.abrupt("return",BigInt(n));case 4:case"end":return e.stop()}}),e)}))),uv.apply(this,arguments)}function lv(){return lv=(0,y.Z)((0,m.Z)().mark((function e(t,n){return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",dv(t,n));case 1:case"end":return e.stop()}}),e)}))),lv.apply(this,arguments)}function dv(e,t){return fv.apply(this,arguments)}function fv(){return fv=(0,y.Z)((0,m.Z)().mark((function e(t,n){var r,o,a,s,c,u,l,d,f,p,h,v,g,y,b;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=(s=n||{}).block,u=s.chain,l=void 0===u?t.chain:u,d=s.request,"function"!==typeof(null===l||void 0===l||null===(r=l.fees)||void 0===r?void 0:r.defaultPriorityFee)){e.next=11;break}if(e.t0=c,e.t0){e.next=7;break}return e.next=6,av(t);case 6:e.t0=e.sent;case 7:return f=e.t0,e.abrupt("return",l.fees.defaultPriorityFee({block:f,client:t,request:d}));case 11:if("undefined"===typeof(null===l||void 0===l||null===(o=l.fees)||void 0===o?void 0:o.defaultPriorityFee)){e.next=13;break}return e.abrupt("return",null===l||void 0===l||null===(a=l.fees)||void 0===a?void 0:a.defaultPriorityFee);case 13:return e.prev=13,e.next=16,t.request({method:"eth_maxPriorityFeePerGas"});case 16:return p=e.sent,e.abrupt("return",(0,Ih.y_)(p));case 20:return e.prev=20,e.t1=e.catch(13),e.next=24,Promise.all([c?Promise.resolve(c):av(t),cv(t)]);case 24:if(h=e.sent,v=(0,i.Z)(h,2),g=v[0],y=v[1],"bigint"===typeof g.baseFeePerGas){e.next=30;break}throw new ev;case 30:if(!((b=y-g.baseFeePerGas)<0n)){e.next=33;break}return e.abrupt("return",0n);case 33:return e.abrupt("return",b);case 34:case"end":return e.stop()}}),e,null,[[13,20]])}))),fv.apply(this,arguments)}function pv(){return pv=(0,y.Z)((0,m.Z)().mark((function e(t,n){return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",hv(t,n));case 1:case"end":return e.stop()}}),e)}))),pv.apply(this,arguments)}function hv(e,t){return vv.apply(this,arguments)}function vv(){return vv=(0,y.Z)((0,m.Z)().mark((function e(t,n){var r,i,o,a,s,c,u,l,d,f,p,h,v,g,b,w,x,k,S,C,E;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=(s=n||{}).block,u=s.chain,l=void 0===u?t.chain:u,d=s.request,f=s.type,p=void 0===f?"eip1559":f,e.next=3,(0,y.Z)((0,m.Z)().mark((function e(){var n,r,i;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!==typeof(null===l||void 0===l||null===(n=l.fees)||void 0===n?void 0:n.baseFeeMultiplier)){e.next=2;break}return e.abrupt("return",l.fees.baseFeeMultiplier({block:c,client:t,request:d}));case 2:return e.abrupt("return",null!==(r=null===l||void 0===l||null===(i=l.fees)||void 0===i?void 0:i.baseFeeMultiplier)&&void 0!==r?r:1.2);case 3:case"end":return e.stop()}}),e)})))();case 3:if(!((h=e.sent)<1)){e.next=6;break}throw new $h;case 6:if(v=null!==(r=null===(i=h.toString().split(".")[1])||void 0===i?void 0:i.length)&&void 0!==r?r:0,g=Math.pow(10,v),b=function(e){return e*BigInt(Math.ceil(h*g))/BigInt(g)},!c){e.next=13;break}e.t0=c,e.next=16;break;case 13:return e.next=15,av(t);case 15:e.t0=e.sent;case 16:if(w=e.t0,"function"!==typeof(null===l||void 0===l||null===(o=l.fees)||void 0===o?void 0:o.estimateFeesPerGas)){e.next=19;break}return e.abrupt("return",l.fees.estimateFeesPerGas({block:c,client:t,multiply:b,request:d,type:p}));case 19:if("eip1559"!==p){e.next=33;break}if("bigint"===typeof w.baseFeePerGas){e.next=22;break}throw new ev;case 22:if(null===d||void 0===d||!d.maxPriorityFeePerGas){e.next=26;break}e.t1=d.maxPriorityFeePerGas,e.next=29;break;case 26:return e.next=28,dv(t,{block:w,chain:l,request:d});case 28:e.t1=e.sent;case 29:return k=e.t1,S=b(w.baseFeePerGas),C=null!==(x=null===d||void 0===d?void 0:d.maxFeePerGas)&&void 0!==x?x:S+k,e.abrupt("return",{maxFeePerGas:C,maxPriorityFeePerGas:k});case 33:if(null===(a=null===d||void 0===d?void 0:d.gasPrice)||void 0===a){e.next=37;break}e.t2=a,e.next=42;break;case 37:return e.t3=b,e.next=40,cv(t);case 40:e.t4=e.sent,e.t2=(0,e.t3)(e.t4);case 42:return E=e.t2,e.abrupt("return",{gasPrice:E});case 44:case"end":return e.stop()}}),e)}))),vv.apply(this,arguments)}var gv=n(60791),mv=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e,r){var i,o=r.account,a=r.docsPath,c=r.chain,u=r.data,l=r.gas,p=r.gasPrice,h=r.maxFeePerGas,v=r.maxPriorityFeePerGas,g=r.nonce,m=r.to,y=r.value;(0,s.Z)(this,n);var b=(0,Wh.xr)({from:null===o||void 0===o?void 0:o.address,to:m,value:"undefined"!==typeof y&&"".concat((0,gv.d)(y)," ").concat((null===c||void 0===c?void 0:c.nativeCurrency.symbol)||"ETH"),data:u,gas:l,gasPrice:"undefined"!==typeof p&&"".concat((0,Jh.o)(p)," gwei"),maxFeePerGas:"undefined"!==typeof h&&"".concat((0,Jh.o)(h)," gwei"),maxPriorityFeePerGas:"undefined"!==typeof v&&"".concat((0,Jh.o)(v)," gwei"),nonce:g});return i=t.call(this,e.shortMessage,{cause:e,docsPath:a,metaMessages:[].concat((0,f.Z)(e.metaMessages?[].concat((0,f.Z)(e.metaMessages),[" "]):[]),["Estimate Gas Arguments:",b]).filter(Boolean)}),Object.defineProperty((0,d.Z)(i),"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty((0,d.Z)(i),"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),i.cause=e,i}return(0,a.Z)(n)}(Bh.G),yv=["docsPath"];function bv(e,t){var n=t.docsPath,r=(0,l.Z)(t,yv),i=function(){var t=(0,qh.k)(e,r);return t instanceof Kh.cj?e:t}();return new mv(i,(0,b.Z)({docsPath:n},r))}var wv=["accessList","blockNumber","blockTag","data","gas","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","value"];function xv(e,t){return kv.apply(this,arguments)}function kv(){return kv=(0,y.Z)((0,m.Z)().mark((function e(t,n){var r,i,o,a,s,c,u,d,f,p,h,v,g,y,w,x,k,S,C,E,_,T;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=null!==(r=n.account)&&void 0!==r?r:t.account){e.next=3;break}throw new zh({docsPath:"/docs/actions/public/estimateGas"});case 3:if(o=(0,Th.T)(i),e.prev=4,"local"!==o.type){e.next=11;break}return e.next=8,_v(t,n);case 8:e.t0=e.sent,e.next=12;break;case 11:e.t0=n;case 12:return s=e.t0,c=s.accessList,u=s.blockNumber,d=s.blockTag,f=s.data,p=s.gas,h=s.gasPrice,v=s.maxFeePerGas,g=s.maxPriorityFeePerGas,y=s.nonce,w=s.to,x=s.value,k=(0,l.Z)(s,wv),S=u?(0,Zh.eC)(u):void 0,C=S||d,(0,Qh.F)(n),E=(null===(a=t.chain)||void 0===a||null===(a=a.formatters)||void 0===a||null===(a=a.transactionRequest)||void 0===a?void 0:a.format)||Yh.tG,_=E((0,b.Z)((0,b.Z)({},(0,Xh.K)(k,{format:E})),{},{from:o.address,accessList:c,data:f,gas:p,gasPrice:h,maxFeePerGas:v,maxPriorityFeePerGas:g,nonce:y,to:w,value:x})),e.next=32,t.request({method:"eth_estimateGas",params:C?[_,C]:[_]});case 32:return T=e.sent,e.abrupt("return",BigInt(T));case 36:throw e.prev=36,e.t1=e.catch(4),bv(e.t1,(0,b.Z)((0,b.Z)({},n),{},{account:o,chain:t.chain}));case 39:case"end":return e.stop()}}),e,null,[[4,36]])}))),kv.apply(this,arguments)}function Sv(e,t){return Cv.apply(this,arguments)}function Cv(){return Cv=(0,y.Z)((0,m.Z)().mark((function e(t,n){var r,i,o,a,s;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.address,i=n.blockTag,o=void 0===i?"latest":i,a=n.blockNumber,e.next=3,t.request({method:"eth_getTransactionCount",params:[r,a?(0,Zh.eC)(a):o]});case 3:return s=e.sent,e.abrupt("return",(0,Ih.ly)(s));case 5:case"end":return e.stop()}}),e)}))),Cv.apply(this,arguments)}function Ev(e){if(e.type)return e.type;if("undefined"!==typeof e.maxFeePerGas||"undefined"!==typeof e.maxPriorityFeePerGas)return"eip1559";if("undefined"!==typeof e.gasPrice)return"undefined"!==typeof e.accessList?"eip2930":"legacy";throw new Wh.j3({transaction:e})}function _v(e,t){return Tv.apply(this,arguments)}function Tv(){return Tv=(0,y.Z)((0,m.Z)().mark((function e(t,n){var r,i,o,a,s,c,u,l,d,f,p,h,v,g;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.account,i=void 0===r?t.account:r,o=n.chain,a=n.gas,s=n.nonce,c=n.type,i){e.next=3;break}throw new zh;case 3:return u=(0,Th.T)(i),e.next=6,av(t,{blockTag:"latest"});case 6:if(l=e.sent,d=(0,b.Z)((0,b.Z)({},n),{},{from:u.address}),"undefined"!==typeof s){e.next=12;break}return e.next=11,Sv(t,{address:u.address,blockTag:"pending"});case 11:d.nonce=e.sent;case 12:if("undefined"===typeof c)try{d.type=Ev(d)}catch(m){d.type="bigint"===typeof l.baseFeePerGas?"eip1559":"legacy"}if("eip1559"!==d.type){e.next=25;break}return e.next=16,hv(t,{block:l,chain:o,request:d});case 16:if(f=e.sent,p=f.maxFeePerGas,h=f.maxPriorityFeePerGas,!("undefined"===typeof n.maxPriorityFeePerGas&&n.maxFeePerGas&&n.maxFeePerGas1&&void 0!==arguments[1]?arguments[1]:{},n=t.delay,r=void 0===n?100:n,i=t.retryCount,o=void 0===i?2:i,a=t.shouldRetry,s=void 0===a?function(){return!0}:a;return new Promise((function(t,n){var i=function(){var a=(0,y.Z)((0,m.Z)().mark((function a(){var c,u,l,d,f=arguments;return(0,m.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return c=(f.length>0&&void 0!==f[0]?f[0]:{}).count,u=void 0===c?0:c,l=function(){var e=(0,y.Z)((0,m.Z)().mark((function e(t){var n,o;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.error,!(o="function"===typeof r?r({count:u,error:n}):r)){e.next=5;break}return e.next=5,og(o);case 5:i({count:u+1});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a.prev=2,a.next=5,e();case 5:d=a.sent,t(d),a.next=19;break;case 9:if(a.prev=9,a.t0=a.catch(2),a.t1=u1&&void 0!==arguments[1]?arguments[1]:{},n=t.retryDelay,r=void 0===n?150:n,i=t.retryCount,o=void 0===i?3:i;return function(){var t=(0,y.Z)((0,m.Z)().mark((function t(n){return(0,m.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",sg((0,y.Z)((0,m.Z)().mark((function t(){var r;return(0,m.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e(n);case 3:return t.abrupt("return",t.sent);case 6:t.prev=6,t.t0=t.catch(0),r=t.t0,t.t1=r.code,t.next=t.t1===_h.s7.code?12:t.t1===_h.B.code?13:t.t1===_h.LX.code?14:t.t1===_h.nY.code?15:t.t1===_h.XS.code?16:t.t1===_h.yR.code?17:t.t1===_h.Og.code?18:t.t1===_h.pT.code?19:t.t1===_h.KB.code?20:t.t1===_h.gS.code?21:t.t1===_h.Pv.code?22:t.t1===_h.GD.code?23:t.t1===_h.ab.code?24:t.t1===_h.PE.code?25:t.t1===_h.Ts.code?26:t.t1===_h.u5.code?27:t.t1===_h.I0.code?28:t.t1===_h.x3.code?29:5e3===t.t1?30:31;break;case 12:throw new _h.s7(r);case 13:throw new _h.B(r);case 14:throw new _h.LX(r);case 15:throw new _h.nY(r);case 16:throw new _h.XS(r);case 17:throw new _h.yR(r);case 18:throw new _h.Og(r);case 19:throw new _h.pT(r);case 20:throw new _h.KB(r);case 21:throw new _h.gS(r);case 22:throw new _h.Pv(r);case 23:throw new _h.GD(r);case 24:case 30:throw new _h.ab(r);case 25:throw new _h.PE(r);case 26:throw new _h.Ts(r);case 27:throw new _h.u5(r);case 28:throw new _h.I0(r);case 29:throw new _h.x3(r);case 31:if(!(t.t0 instanceof Bh.G)){t.next=33;break}throw t.t0;case 33:throw new _h.ir(r);case 34:case"end":return t.stop()}}),t,null,[[0,6]])}))),{delay:function(e){var t=e.count,n=e.error;if(n&&n instanceof ig.Gg){var i,o=null===n||void 0===n||null===(i=n.headers)||void 0===i?void 0:i.get("Retry-After");if(null!==o&&void 0!==o&&o.match(/\d/))return 1e3*parseInt(o)}return~~(1<1&&void 0!==arguments[1]?arguments[1]:{},n=t.key,r=void 0===n?"custom":n,i=t.name,o=void 0===i?"Custom Provider":i,a=t.retryDelay;return function(n){var i,s=n.retryCount;return dg({key:r,name:o,request:e.request.bind(e),retryCount:null!==(i=t.retryCount)&&void 0!==i?i:s,retryDelay:a,type:"custom"})}}var pg=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.chains,o=r.options;(0,s.Z)(this,n);var a=(0,b.Z)({shimDisconnect:!0,getProvider:function(){if("undefined"!==typeof window){var e=window.ethereum;return null!==e&&void 0!==e&&e.providers?e.providers[0]:e}}},o);(e=t.call(this,{chains:i,options:a})).id="injected",xh((0,d.Z)(e),cg,void 0),e.shimDisconnectKey="".concat(e.id,".shimDisconnect"),e.onAccountsChanged=function(t){0===t.length?e.emit("disconnect"):e.emit("change",{account:(0,Eh.K)(t[0])})},e.onChainChanged=function(t){var n=fh(t),r=e.isChainUnsupported(n);e.emit("change",{chain:{id:n,unsupported:r}})},e.onDisconnect=function(){var t=(0,y.Z)((0,m.Z)().mark((function t(n){var r;return(0,m.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(1013!==n.code){t.next=10;break}return t.next=3,e.getProvider();case 3:if(!t.sent){t.next=10;break}return t.next=7,e.getAccount();case 7:if(!t.sent){t.next=10;break}return t.abrupt("return");case 10:e.emit("disconnect"),e.options.shimDisconnect&&(null===(r=e.storage)||void 0===r||r.removeItem(e.shimDisconnectKey));case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();var c=a.getProvider();if("string"===typeof a.name)e.name=a.name;else if(c){var u=function(e){var t,n;if(!e)return"Injected";var r=function(e){return e.isApexWallet?"Apex Wallet":e.isAvalanche?"Core Wallet":e.isBackpack?"Backpack":e.isBifrost?"Bifrost Wallet":e.isBitKeep?"BitKeep":e.isBitski?"Bitski":e.isBlockWallet?"BlockWallet":e.isBraveWallet?"Brave Wallet":e.isCoin98?"Coin98 Wallet":e.isCoinbaseWallet?"Coinbase Wallet":e.isDawn?"Dawn Wallet":e.isDefiant?"Defiant":e.isDesig?"Desig Wallet":e.isEnkrypt?"Enkrypt":e.isExodus?"Exodus":e.isFordefi?"Fordefi":e.isFrame?"Frame":e.isFrontier?"Frontier Wallet":e.isGamestop?"GameStop Wallet":e.isHaqqWallet?"HAQQ Wallet":e.isHyperPay?"HyperPay Wallet":e.isImToken?"ImToken":e.isHaloWallet?"Halo Wallet":e.isKuCoinWallet?"KuCoin Wallet":e.isMathWallet?"MathWallet":e.isNovaWallet?"Nova Wallet":e.isOkxWallet||e.isOKExWallet?"OKX Wallet":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?"1inch Wallet":e.isOpera?"Opera":e.isPhantom?"Phantom":e.isPortal?"Ripio Portal":e.isRabby?"Rabby Wallet":e.isRainbow?"Rainbow":e.isStatus?"Status":e.isSubWallet?"SubWallet":e.isTalisman?"Talisman":e.isTally?"Taho":e.isTokenPocket?"TokenPocket":e.isTokenary?"Tokenary":e.isTrust||e.isTrustWallet?"Trust Wallet":e.isTTWallet?"TTWallet":e.isXDEFI?"XDEFI Wallet":e.isZeal?"Zeal":e.isZerion?"Zerion":e.isMetaMask?"MetaMask":void 0};if(null!==(t=e.providers)&&void 0!==t&&t.length){var i,o,a=new Set,s=1,c=(0,w.Z)(e.providers);try{for(c.s();!(o=c.n()).done;){var u=r(o.value);u||(u="Unknown Wallet #".concat(s),s+=1),a.add(u)}}catch(d){c.e(d)}finally{c.f()}var l=(0,f.Z)(a);return l.length?l:null!==(i=l[0])&&void 0!==i?i:"Injected"}return null!==(n=r(e))&&void 0!==n?n:"Injected"}(c);a.name?e.name=a.name(u):e.name="string"===typeof u?u:u[0]}else e.name="Injected";return e.ready=!!c,e}return(0,a.Z)(n,[{key:"connect",value:function(){var e=(0,y.Z)((0,m.Z)().mark((function e(){var t,n,r,i,o,a,s,c,u=arguments;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(u.length>0&&void 0!==u[0]?u[0]:{}).chainId,e.prev=1,e.next=4,this.getProvider();case 4:if(r=e.sent){e.next=7;break}throw new dh;case 7:return r.on&&(r.on("accountsChanged",this.onAccountsChanged),r.on("chainChanged",this.onChainChanged),r.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"}),e.next=11,r.request({method:"eth_requestAccounts"});case 11:return i=e.sent,o=(0,Eh.K)(i[0]),e.next=15,this.getChainId();case 15:if(a=e.sent,s=this.isChainUnsupported(a),!t||a===t){e.next=23;break}return e.next=20,this.switchChain(t);case 20:c=e.sent,a=c.id,s=this.isChainUnsupported(a);case 23:return this.options.shimDisconnect&&(null===(n=this.storage)||void 0===n||n.setItem(this.shimDisconnectKey,!0)),e.abrupt("return",{account:o,chain:{id:a,unsupported:s}});case 27:if(e.prev=27,e.t0=e.catch(1),!this.isUserRejectedRequestError(e.t0)){e.next=31;break}throw new _h.ab(e.t0);case 31:if(-32002!==e.t0.code){e.next=33;break}throw new _h.pT(e.t0);case 33:throw e.t0;case 34:case"end":return e.stop()}}),e,this,[[1,27]])})));return function(){return e.apply(this,arguments)}}()},{key:"disconnect",value:function(){var e=(0,y.Z)((0,m.Z)().mark((function e(){var t,n;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getProvider();case 2:if(null!==(n=e.sent)&&void 0!==n&&n.removeListener){e.next=5;break}return e.abrupt("return");case 5:n.removeListener("accountsChanged",this.onAccountsChanged),n.removeListener("chainChanged",this.onChainChanged),n.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&(null===(t=this.storage)||void 0===t||t.removeItem(this.shimDisconnectKey));case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getAccount",value:function(){var e=(0,y.Z)((0,m.Z)().mark((function e(){var t,n;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getProvider();case 2:if(t=e.sent){e.next=5;break}throw new dh;case 5:return e.next=7,t.request({method:"eth_accounts"});case 7:return n=e.sent,e.abrupt("return",(0,Eh.K)(n[0]));case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getChainId",value:function(){var e=(0,y.Z)((0,m.Z)().mark((function e(){var t;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getProvider();case 2:if(t=e.sent){e.next=5;break}throw new dh;case 5:return e.abrupt("return",t.request({method:"eth_chainId"}).then(fh));case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getProvider",value:function(){var e=(0,y.Z)((0,m.Z)().mark((function e(){var t;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=this.options.getProvider())&&kh(this,cg,t),e.abrupt("return",wh(this,cg));case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getWalletClient",value:function(){var e=(0,y.Z)((0,m.Z)().mark((function e(){var t,n,r,o,a,s,c=arguments;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(c.length>0&&void 0!==c[0]?c[0]:{}).chainId,e.next=3,Promise.all([this.getProvider(),this.getAccount()]);case 3:if(n=e.sent,r=(0,i.Z)(n,2),o=r[0],a=r[1],s=this.chains.find((function(e){return e.id===t})),o){e.next=10;break}throw new Error("provider is required.");case 10:return e.abrupt("return",rg({account:a,chain:s,transport:fg(o)}));case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"isAuthorized",value:function(){var e=(0,y.Z)((0,m.Z)().mark((function e(){var t,n;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.options.shimDisconnect||null!==(t=this.storage)&&void 0!==t&&t.getItem(this.shimDisconnectKey)){e.next=3;break}return e.abrupt("return",!1);case 3:return e.next=5,this.getProvider();case 5:if(e.sent){e.next=8;break}throw new dh;case 8:return e.next=10,this.getAccount();case 10:return n=e.sent,e.abrupt("return",!!n);case 14:return e.prev=14,e.t0=e.catch(0),e.abrupt("return",!1);case 17:case"end":return e.stop()}}),e,this,[[0,14]])})));return function(){return e.apply(this,arguments)}}()},{key:"switchChain",value:function(){var e=(0,y.Z)((0,m.Z)().mark((function e(t){var n,r,i,o,a,s,c,u=this;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getProvider();case 2:if(n=e.sent){e.next=5;break}throw new dh;case 5:return r=(0,Zh.eC)(t),e.prev=6,e.next=9,Promise.all([n.request({method:"wallet_switchEthereumChain",params:[{chainId:r}]}),new Promise((function(e){return u.on("change",(function(n){var r=n.chain;(null===r||void 0===r?void 0:r.id)===t&&e()}))}))]);case 9:return e.abrupt("return",null!==(i=this.chains.find((function(e){return e.id===t})))&&void 0!==i?i:{id:t,name:"Chain ".concat(r),network:"".concat(r),nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}});case 12:if(e.prev=12,e.t0=e.catch(6),a=this.chains.find((function(e){return e.id===t})),a){e.next=17;break}throw new lh({chainId:t,connectorId:this.id});case 17:if(4902!==e.t0.code&&4902!==(null===e.t0||void 0===e.t0||null===(o=e.t0.data)||void 0===o||null===(o=o.originalError)||void 0===o?void 0:o.code)){e.next=32;break}return e.prev=18,e.next=21,n.request({method:"wallet_addEthereumChain",params:[{chainId:r,chainName:a.name,nativeCurrency:a.nativeCurrency,rpcUrls:[null!==(s=null===(c=a.rpcUrls.public)||void 0===c?void 0:c.http[0])&&void 0!==s?s:""],blockExplorerUrls:this.getBlockExplorerUrls(a)}]});case 21:return e.next=23,this.getChainId();case 23:if(e.sent===t){e.next=26;break}throw new _h.ab(new Error("User rejected switch after adding network."));case 26:return e.abrupt("return",a);case 29:throw e.prev=29,e.t1=e.catch(18),new _h.ab(e.t1);case 32:if(!this.isUserRejectedRequestError(e.t0)){e.next=34;break}throw new _h.ab(e.t0);case 34:throw new _h.x3(e.t0);case 35:case"end":return e.stop()}}),e,this,[[6,12],[18,29]])})));return function(t){return e.apply(this,arguments)}}()},{key:"watchAsset",value:function(){var e=(0,y.Z)((0,m.Z)().mark((function e(t){var n,r,i,o,a,s;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.address,r=t.decimals,i=void 0===r?18:r,o=t.image,a=t.symbol,e.next=3,this.getProvider();case 3:if(s=e.sent){e.next=6;break}throw new dh;case 6:return e.abrupt("return",s.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:n,decimals:i,image:o,symbol:a}}}));case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"isUserRejectedRequestError",value:function(e){return 4001===e.code}}]),n}(Ch);cg=new WeakMap;var hg=function(e,t,n){if(!t.has(e))throw TypeError("Cannot "+n)},vg=function(e,t,n){return hg(e,t,"read from private field"),n?n.call(e):t.get(e)},gg=function(e,t,n){if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},mg=function(e,t,n,r){return hg(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n},yg=n(21681),bg=n(77261),wg=n(2602),xg=n(61572),kg=n(31159),Sg=n(90416);function Cg(e,t){var n,r,i=t.method,o={};return"fallback"===e.transport.type&&(null===(n=(r=e.transport).onResponse)||void 0===n||n.call(r,(function(e){var t=e.method,n=e.response,r=e.status,a=e.transport;"success"===r&&i===t&&(o[n]=a.request)}))),function(t){return o[t]||e.request}}function Eg(){return Eg=(0,y.Z)((0,m.Z)().mark((function e(t){var n,r;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Cg(t,{method:"eth_newBlockFilter"}),e.next=3,t.request({method:"eth_newBlockFilter"});case 3:return r=e.sent,e.abrupt("return",{id:r,request:n(r),type:"block"});case 5:case"end":return e.stop()}}),e)}))),Eg.apply(this,arguments)}var _g=function(e){(0,c.Z)(n,e);var t=(0,u.Z)(n);function n(e){var r;return(0,s.Z)(this,n),r=t.call(this,'Filter type "'.concat(e,'" is not supported.')),Object.defineProperty((0,d.Z)(r),"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"}),r}return(0,a.Z)(n)}(Bh.G),Tg=n(11818),Mg=n(15463),Ag=n(31650),jg=n(59986),Pg=n(31041);function Ig(e){var t=e.abi,n=e.eventName,r=e.args,i=t[0];if(n&&!(i=(0,Pg.m)({abi:t,args:r,name:n})))throw new Nh.mv(n,{docsPath:"/docs/contract/encodeEventTopics"});if("event"!==i.type)throw new Nh.mv(void 0,{docsPath:"/docs/contract/encodeEventTopics"});var o=(0,jg.t)(i),a=(0,Mg.e)(o),s=[];if(r&&"inputs"in i){var c,u,l,d=null===(c=i.inputs)||void 0===c?void 0:c.filter((function(e){return"indexed"in e&&e.indexed})),p=Array.isArray(r)?r:Object.values(r).length>0&&null!==(u=null===d||void 0===d?void 0:d.map((function(e){return r[e.name]})))&&void 0!==u?u:[];if(p.length>0)s=null!==(l=null===d||void 0===d?void 0:d.map((function(e,t){return Array.isArray(p[t])?p[t].map((function(n,r){return Rg({param:e,value:p[t][r]})})):p[t]?Rg({param:e,value:p[t]}):null})))&&void 0!==l?l:[]}return[a].concat((0,f.Z)(s))}function Rg(e){var t=e.param,n=e.value;if("string"===t.type||"bytes"===t.type)return(0,Ag.w)((0,Tg.O0)(n));if("tuple"===t.type||t.type.match(/^(.*)\[(\d+)?\]$/))throw new _g(t.type);return(0,Dh.E)([t],[n])}function Og(e,t){return Zg.apply(this,arguments)}function Zg(){return Zg=(0,y.Z)((0,m.Z)().mark((function e(t,n){var r,i,o,a,s,c,u,l,d,f;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.address,i=n.abi,o=n.args,a=n.eventName,s=n.fromBlock,c=n.strict,u=n.toBlock,l=Cg(t,{method:"eth_newFilter"}),d=a?Ig({abi:i,args:o,eventName:a}):void 0,e.next=5,t.request({method:"eth_newFilter",params:[{address:r,fromBlock:"bigint"===typeof s?(0,Zh.eC)(s):s,toBlock:"bigint"===typeof u?(0,Zh.eC)(u):u,topics:d}]});case 5:return f=e.sent,e.abrupt("return",{abi:i,args:o,eventName:a,id:f,request:l(f),strict:c,type:"event"});case 7:case"end":return e.stop()}}),e)}))),Zg.apply(this,arguments)}function Lg(e){return Ng.apply(this,arguments)}function Ng(){return Ng=(0,y.Z)((0,m.Z)().mark((function e(t){var n,r,i,o,a,s,c,u,l,d,f,p,h=arguments;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(n=h.length>1&&void 0!==h[1]?h[1]:{}).address,i=n.args,o=n.event,a=n.events,s=n.fromBlock,c=n.strict,u=n.toBlock,l=null!==a&&void 0!==a?a:o?[o]:void 0,d=Cg(t,{method:"eth_newFilter"}),f=[],l&&(f=[l.flatMap((function(e){return Ig({abi:[e],eventName:e.name,args:i})}))],o&&(f=f[0])),e.next=7,t.request({method:"eth_newFilter",params:[(0,b.Z)({address:r,fromBlock:"bigint"===typeof s?(0,Zh.eC)(s):s,toBlock:"bigint"===typeof u?(0,Zh.eC)(u):u},f.length?{topics:f}:{})]});case 7:return p=e.sent,e.abrupt("return",{abi:l,args:i,eventName:o?o.name:void 0,fromBlock:s,id:p,request:d(p),strict:c,toBlock:u,type:"event"});case 9:case"end":return e.stop()}}),e)}))),Ng.apply(this,arguments)}function Fg(e){return Dg.apply(this,arguments)}function Dg(){return Dg=(0,y.Z)((0,m.Z)().mark((function e(t){var n,r;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Cg(t,{method:"eth_newPendingTransactionFilter"}),e.next=3,t.request({method:"eth_newPendingTransactionFilter"});case 3:return r=e.sent,e.abrupt("return",{id:r,request:n(r),type:"transaction"});case 5:case"end":return e.stop()}}),e)}))),Dg.apply(this,arguments)}var Ug=n(97642),Gg=["abi","address","args","functionName"];function Bg(){return Bg=(0,y.Z)((0,m.Z)().mark((function e(t,n){var r,i,o,a,s,c,u,d;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.abi,i=n.address,o=n.args,a=n.functionName,s=(0,l.Z)(n,Gg),c=(0,$v.R)({abi:r,args:o,functionName:a}),e.prev=2,e.next=5,xv(t,(0,b.Z)({data:c,to:i},s));case 5:return u=e.sent,e.abrupt("return",u);case 9:throw e.prev=9,e.t0=e.catch(2),d=s.account?(0,Th.T)(s.account):void 0,(0,Ug.S)(e.t0,{abi:r,address:i,args:o,docsPath:"/docs/contract/estimateContractGas",functionName:a,sender:null===d||void 0===d?void 0:d.address});case 13:case"end":return e.stop()}}),e,null,[[2,9]])}))),Bg.apply(this,arguments)}function zg(){return zg=(0,y.Z)((0,m.Z)().mark((function e(t,n){var r,i,o,a,s,c;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.address,i=n.blockNumber,o=n.blockTag,a=void 0===o?"latest":o,s=i?(0,Zh.eC)(i):void 0,e.next=4,t.request({method:"eth_getBalance",params:[r,s||a]});case 4:return c=e.sent,e.abrupt("return",BigInt(c));case 6:case"end":return e.stop()}}),e)}))),zg.apply(this,arguments)}var Kg=new Map,Wg=new Map;function qg(e){var t=function(e,t){return{clear:function(){return t.delete(e)},get:function(){return t.get(e)},set:function(n){return t.set(e,n)}}},n=t(e,Kg),r=t(e,Wg);return{clear:function(){n.clear(),r.clear()},promise:n,response:r}}function Hg(e,t){return Vg.apply(this,arguments)}function Vg(){return Vg=(0,y.Z)((0,m.Z)().mark((function e(t,n){var r,i,o,a,s,c,u;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.cacheKey,i=n.cacheTime,o=void 0===i?1/0:i,a=qg(r),!((s=a.response.get())&&o>0)){e.next=7;break}if(!((new Date).getTime()-s.created.getTime()1&&void 0!==s[1]?s[1]:{}).cacheTime,i=void 0===r?t.cacheTime:r,o=n.maxAge,e.next=3,Hg((function(){return t.request({method:"eth_blockNumber"})}),{cacheKey:Xg(t.uid),cacheTime:null!==o&&void 0!==o?o:i});case 3:return a=e.sent,e.abrupt("return",BigInt(a));case 5:case"end":return e.stop()}}),e)}))),Qg.apply(this,arguments)}function Jg(){return Jg=(0,y.Z)((0,m.Z)().mark((function e(t){var n,r,i,o,a,s,c,u=arguments;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(n=u.length>1&&void 0!==u[1]?u[1]:{}).blockHash,i=n.blockNumber,o=n.blockTag,a=void 0===o?"latest":o,s=void 0!==i?(0,Zh.eC)(i):void 0,!r){e.next=8;break}return e.next=5,t.request({method:"eth_getBlockTransactionCountByHash",params:[r]});case 5:c=e.sent,e.next=11;break;case 8:return e.next=10,t.request({method:"eth_getBlockTransactionCountByNumber",params:[s||a]});case 10:c=e.sent;case 11:return e.abrupt("return",(0,Ih.ly)(c));case 12:case"end":return e.stop()}}),e)}))),Jg.apply(this,arguments)}function $g(){return $g=(0,y.Z)((0,m.Z)().mark((function e(t,n){var r,i,o,a,s,c;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.address,i=n.blockNumber,o=n.blockTag,a=void 0===o?"latest":o,s=void 0!==i?(0,Zh.eC)(i):void 0,e.next=4,t.request({method:"eth_getCode",params:[r,s||a]});case 4:if("0x"!==(c=e.sent)){e.next=7;break}return e.abrupt("return",void 0);case 7:return e.abrupt("return",c);case 8:case"end":return e.stop()}}),e)}))),$g.apply(this,arguments)}var em=n(9189),tm=n(54464),nm="/docs/contract/decodeEventLog";function rm(e){var t=e.abi,n=e.data,r=e.strict,i=e.topics,o=null===r||void 0===r||r,a=(0,em.Z)(i),s=a[0],c=a.slice(1);if(!s)throw new Nh.FM({docsPath:nm});var u=t.find((function(e){return"event"===e.type&&s===(0,Mg.e)((0,jg.t)(e))}));if(!u||!("name"in u)||"event"!==u.type)throw new Nh.lC(s,{docsPath:nm});var l=u.name,d=u.inputs,p=null===d||void 0===d?void 0:d.some((function(e){return!("name"in e&&e.name)})),h=p?[]:{},v=d.filter((function(e){return"indexed"in e&&e.indexed}));if(c.length>0)for(var g=0;g0)if(n&&"0x"!==n)try{var w=(0,tm.r)(b,n);if(w)if(p)h=[].concat((0,f.Z)(h),(0,f.Z)(w));else for(var x=0;x0?h:void 0}}function im(e){var t=e.param,n=e.value;return"string"===t.type||"bytes"===t.type||"tuple"===t.type||t.type.match(/^(.*)\[(\d+)?\]$/)?n:((0,tm.r)([t],n)||[])[0]}function om(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.args,r=t.eventName;return(0,b.Z)((0,b.Z)({},e),{},{blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null},r?{args:n,eventName:r}:{})}function am(e){return sm.apply(this,arguments)}function sm(){return sm=(0,y.Z)((0,m.Z)().mark((function e(t){var n,r,i,o,a,s,c,u,l,d,f,p,h,v=arguments;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(n=v.length>1&&void 0!==v[1]?v[1]:{}).address,i=n.blockHash,o=n.fromBlock,a=n.toBlock,s=n.event,c=n.events,u=n.args,l=n.strict,d=null!==l&&void 0!==l&&l,p=[],(f=null!==c&&void 0!==c?c:s?[s]:void 0)&&(p=[f.flatMap((function(e){return Ig({abi:[e],eventName:e.name,args:u})}))],s&&(p=p[0])),!i){e.next=11;break}return e.next=8,t.request({method:"eth_getLogs",params:[{address:r,topics:p,blockHash:i}]});case 8:h=e.sent,e.next=14;break;case 11:return e.next=13,t.request({method:"eth_getLogs",params:[{address:r,topics:p,fromBlock:"bigint"===typeof o?(0,Zh.eC)(o):o,toBlock:"bigint"===typeof a?(0,Zh.eC)(a):a}]});case 13:h=e.sent;case 14:return e.abrupt("return",h.map((function(e){try{var t=f?rm({abi:f,data:e.data,topics:e.topics,strict:d}):{eventName:void 0,args:void 0},n=t.eventName;return om(e,{args:t.args,eventName:n})}catch(a){var r,i;if(a instanceof Nh.SM||a instanceof Nh.Gy){var o;if(d)return;r=a.abiItem.name,i=null===(o=a.abiItem.inputs)||void 0===o?void 0:o.some((function(e){return!("name"in e&&e.name)}))}return om(e,{args:i?[]:{},eventName:r})}})).filter(Boolean));case 15:case"end":return e.stop()}}),e)}))),sm.apply(this,arguments)}function cm(e,t){return um.apply(this,arguments)}function um(){return um=(0,y.Z)((0,m.Z)().mark((function e(t,n){var r,i,o,a,s,c,u,l,d,f;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.abi,i=n.address,o=n.args,a=n.blockHash,s=n.eventName,c=n.fromBlock,u=n.toBlock,l=n.strict,d=s?(0,Pg.m)({abi:r,name:s}):void 0,f=d?void 0:r.filter((function(e){return"event"===e.type})),e.abrupt("return",am(t,{address:i,args:o,blockHash:a,event:d,events:f,fromBlock:c,toBlock:u,strict:l}));case 4:case"end":return e.stop()}}),e)}))),um.apply(this,arguments)}function lm(e){var t;return{baseFeePerGas:e.baseFeePerGas.map((function(e){return BigInt(e)})),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:null===(t=e.reward)||void 0===t?void 0:t.map((function(e){return e.map((function(e){return BigInt(e)}))}))}}function dm(){return dm=(0,y.Z)((0,m.Z)().mark((function e(t,n){var r,i,o,a,s,c,u;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.blockCount,i=n.blockNumber,o=n.blockTag,a=void 0===o?"latest":o,s=n.rewardPercentiles,c=i?(0,Zh.eC)(i):void 0,e.next=4,t.request({method:"eth_feeHistory",params:[(0,Zh.eC)(r),c||a,s]});case 4:return u=e.sent,e.abrupt("return",lm(u));case 6:case"end":return e.stop()}}),e)}))),dm.apply(this,arguments)}function fm(e,t){return pm.apply(this,arguments)}function pm(){return pm=(0,y.Z)((0,m.Z)().mark((function e(t,n){var r,i,o;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.filter,i="strict"in r&&r.strict,e.next=4,r.request({method:"eth_getFilterChanges",params:[r.id]});case 4:return o=e.sent,e.abrupt("return",o.map((function(e){if("string"===typeof e)return e;try{var t="abi"in r&&r.abi?rm({abi:r.abi,data:e.data,topics:e.topics,strict:i}):{eventName:void 0,args:void 0},n=t.eventName;return om(e,{args:t.args,eventName:n})}catch(c){var o,a;if(c instanceof Nh.SM||c instanceof Nh.Gy){var s;if("strict"in r&&r.strict)return;o=c.abiItem.name,a=null===(s=c.abiItem.inputs)||void 0===s?void 0:s.some((function(e){return!("name"in e&&e.name)}))}return om(e,{args:a?[]:{},eventName:o})}})).filter(Boolean));case 6:case"end":return e.stop()}}),e)}))),pm.apply(this,arguments)}function hm(){return hm=(0,y.Z)((0,m.Z)().mark((function e(t,n){var r,i,o,a;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.filter,o=null!==(r=i.strict)&&void 0!==r&&r,e.next=4,i.request({method:"eth_getFilterLogs",params:[i.id]});case 4:return a=e.sent,e.abrupt("return",a.map((function(e){try{var t="abi"in i&&i.abi?rm({abi:i.abi,data:e.data,topics:e.topics,strict:o}):{eventName:void 0,args:void 0},n=t.eventName;return om(e,{args:t.args,eventName:n})}catch(c){var r,a;if(c instanceof Nh.SM||c instanceof Nh.Gy){var s;if("strict"in i&&i.strict)return;r=c.abiItem.name,a=null===(s=c.abiItem.inputs)||void 0===s?void 0:s.some((function(e){return!("name"in e&&e.name)}))}return om(e,{args:a?[]:{},eventName:r})}})).filter(Boolean));case 6:case"end":return e.stop()}}),e)}))),hm.apply(this,arguments)}function vm(e){return(0,b.Z)((0,b.Z)({},e),{},{balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?(0,Ih.ly)(e.nonce):void 0,storageProof:e.storageProof?(t=e.storageProof,t.map((function(e){return(0,b.Z)((0,b.Z)({},e),{},{value:BigInt(e.value)})}))):void 0});var t}function gm(){return gm=(0,y.Z)((0,m.Z)().mark((function e(t,n){var r,i,o,a,s,c,u;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.address,i=n.blockNumber,o=n.blockTag,a=n.storageKeys,s=null!==o&&void 0!==o?o:"latest",c=void 0!==i?(0,Zh.eC)(i):void 0,e.next=5,t.request({method:"eth_getProof",params:[r,a,c||s]});case 5:return u=e.sent,e.abrupt("return",vm(u));case 7:case"end":return e.stop()}}),e)}))),gm.apply(this,arguments)}function mm(){return mm=(0,y.Z)((0,m.Z)().mark((function e(t,n){var r,i,o,a,s,c,u;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.address,i=n.blockNumber,o=n.blockTag,a=void 0===o?"latest":o,s=n.slot,c=void 0!==i?(0,Zh.eC)(i):void 0,e.next=4,t.request({method:"eth_getStorageAt",params:[r,s,c||a]});case 4:return u=e.sent,e.abrupt("return",u);case 6:case"end":return e.stop()}}),e)}))),mm.apply(this,arguments)}function ym(e,t){return bm.apply(this,arguments)}function bm(){return bm=(0,y.Z)((0,m.Z)().mark((function e(t,n){var r,i,o,a,s,c,u,l,d,f;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.blockHash,o=n.blockNumber,a=n.blockTag,s=n.hash,c=n.index,u=a||"latest",l=void 0!==o?(0,Zh.eC)(o):void 0,d=null,!s){e.next=10;break}return e.next=7,t.request({method:"eth_getTransactionByHash",params:[s]});case 7:d=e.sent,e.next=20;break;case 10:if(!i){e.next=16;break}return e.next=13,t.request({method:"eth_getTransactionByBlockHashAndIndex",params:[i,(0,Zh.eC)(c)]});case 13:d=e.sent,e.next=20;break;case 16:if(!l&&!u){e.next=20;break}return e.next=19,t.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[l||u,(0,Zh.eC)(c)]});case 19:d=e.sent;case 20:if(d){e.next=22;break}throw new Wh.Bh({blockHash:i,blockNumber:o,blockTag:u,hash:s,index:c});case 22:return f=(null===(r=t.chain)||void 0===r||null===(r=r.formatters)||void 0===r||null===(r=r.transaction)||void 0===r?void 0:r.format)||iv,e.abrupt("return",f(d));case 24:case"end":return e.stop()}}),e)}))),bm.apply(this,arguments)}function wm(){return wm=(0,y.Z)((0,m.Z)().mark((function e(t,n){var r,o,a,s,c,u,l;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.hash,o=n.transactionReceipt,e.next=3,Promise.all([Yg(t),r?ym(t,{hash:r}):void 0]);case 3:if(a=e.sent,s=(0,i.Z)(a,2),c=s[0],u=s[1],l=(null===o||void 0===o?void 0:o.blockNumber)||(null===u||void 0===u?void 0:u.blockNumber)){e.next=10;break}return e.abrupt("return",0n);case 10:return e.abrupt("return",c-l+1n);case 11:case"end":return e.stop()}}),e)}))),wm.apply(this,arguments)}var xm={"0x0":"reverted","0x1":"success"};function km(e){return(0,b.Z)((0,b.Z)({},e),{},{blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map((function(e){return om(e)})):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,Ih.ly)(e.transactionIndex):null,status:e.status?xm[e.status]:null,type:e.type?rv[e.type]||e.type:null})}function Sm(e,t){return Cm.apply(this,arguments)}function Cm(){return Cm=(0,y.Z)((0,m.Z)().mark((function e(t,n){var r,i,o,a;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.hash,e.next=3,t.request({method:"eth_getTransactionReceipt",params:[i]});case 3:if(o=e.sent){e.next=6;break}throw new Wh.Yb({hash:i});case 6:return a=(null===(r=t.chain)||void 0===r||null===(r=r.formatters)||void 0===r||null===(r=r.transactionReceipt)||void 0===r?void 0:r.format)||km,e.abrupt("return",a(o));case 8:case"end":return e.stop()}}),e)}))),Cm.apply(this,arguments)}var Em=n(13771),_m=n(78052),Tm=n(81483),Mm=n(40117);function Am(){return Am=(0,y.Z)((0,m.Z)().mark((function e(t,n){var r,i,o,a,s,c,u,l,d,p,h,v,g,y,b,w,x,k,S,C,E,_,T,M,A,j,P,I,R,O,Z,L,N,F,D,U,G,B,z;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.allowFailure,o=void 0===i||i,a=n.batchSize,s=n.blockNumber,c=n.blockTag,u=n.contracts,l=n.multicallAddress,d=null!==a&&void 0!==a?a:"object"===typeof(null===(r=t.batch)||void 0===r?void 0:r.multicall)&&t.batch.multicall.batchSize||1024,p=l){e.next=7;break}if(t.chain){e.next=6;break}throw new Error("client chain not configured. multicallAddress is required.");case 6:p=(0,vh.LI)({blockNumber:s,chain:t.chain,contract:"multicall3"});case 7:h=[[]],v=0,g=0,y=0;case 11:if(!(y0&&g>d&&h[v].length>0&&(v++,g=(C.length-2)/2,h[v]=[]),h[v]=[].concat((0,f.Z)(h[v]),[{allowFailure:!0,callData:C,target:x}]),e.next=26;break;case 20:if(e.prev=20,e.t0=e.catch(13),E=(0,Ug.S)(e.t0,{abi:w,address:x,args:k,docsPath:"/docs/contract/multicall",functionName:S}),o){e.next=25;break}throw E;case 25:h[v]=[].concat((0,f.Z)(h[v]),[{allowFailure:!0,callData:"0x",target:x}]);case 26:y++,e.next=11;break;case 29:return e.next=31,Promise.allSettled(h.map((function(e){return(0,Mm.L)(t,{abi:Em.F8,address:p,args:[e],blockNumber:s,blockTag:c,functionName:"aggregate3"})})));case 31:_=e.sent,T=[],M=0;case 34:if(!(M<_.length)){e.next=68;break}if("rejected"!==(A=_[M]).status){e.next=41;break}if(o){e.next=39;break}throw A.reason;case 39:for(j=0;j