1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[65099],{11492:(e,t,a)=>{a.d(t,{l:()=>n});var l=a(12115);let n=e=>{let{wallet:t,...a}=e;return t&&l.createElement("img",{src:t.adapter.icon,alt:"".concat(t.adapter.name," icon"),...a})}},30692:(e,t,a)=>{a.d(t,{N:()=>p});var l=a(51470),n=a(55955),r=a(12115),o=a(47650);let s=e=>{let{id:t,children:a,expanded:l=!1}=e,n=(0,r.useRef)(null),o=(0,r.useRef)(!0);return(0,r.useLayoutEffect)(()=>{l?(()=>{let e=n.current;e&&requestAnimationFrame(()=>{e.style.height=e.scrollHeight+"px"})})():(()=>{let e=n.current;e&&requestAnimationFrame(()=>{e.style.height=e.offsetHeight+"px",e.style.overflow="hidden",requestAnimationFrame(()=>{e.style.height="0"})})})()},[l]),(0,r.useLayoutEffect)(()=>{let e=n.current;if(e)return o.current&&(t(),o.current=!1),e.addEventListener("transitionend",a),()=>e.removeEventListener("transitionend",a);function t(){e&&(e.style.overflow=l?"initial":"hidden",l&&(e.style.height="auto"))}function a(a){e&&a.target===e&&"height"===a.propertyName&&t()}},[l]),r.createElement("div",{className:"wallet-adapter-collapse",id:t,ref:n,role:"region",style:{height:0,transition:o.current?void 0:"height 250ms ease-out"}},a)};var c=a(89172),i=a(11492);let d=e=>{let{handleClick:t,tabIndex:a,wallet:n}=e;return r.createElement("li",null,r.createElement(c.$,{onClick:t,startIcon:r.createElement(i.l,{wallet:n}),tabIndex:a},n.adapter.name,n.readyState===l.Ok.Installed&&r.createElement("span",null,"Detected")))},m=()=>r.createElement("svg",{width:"97",height:"96",viewBox:"0 0 97 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("circle",{cx:"48.5",cy:"48",r:"48",fill:"url(#paint0_linear_880_5115)",fillOpacity:"0.1"}),r.createElement("circle",{cx:"48.5",cy:"48",r:"47",stroke:"url(#paint1_linear_880_5115)",strokeOpacity:"0.4",strokeWidth:"2"}),r.createElement("g",{clipPath:"url(#clip0_880_5115)"},r.createElement("path",{d:"M65.5769 28.1523H31.4231C27.6057 28.1523 24.5 31.258 24.5 35.0754V60.9215C24.5 64.7389 27.6057 67.8446 31.4231 67.8446H65.5769C69.3943 67.8446 72.5 64.7389 72.5 60.9215V35.0754C72.5 31.258 69.3943 28.1523 65.5769 28.1523ZM69.7308 52.1523H59.5769C57.2865 52.1523 55.4231 50.289 55.4231 47.9985C55.4231 45.708 57.2864 43.8446 59.5769 43.8446H69.7308V52.1523ZM69.7308 41.0754H59.5769C55.7595 41.0754 52.6539 44.1811 52.6539 47.9985C52.6539 51.8159 55.7595 54.9215 59.5769 54.9215H69.7308V60.9215C69.7308 63.2119 67.8674 65.0754 65.5769 65.0754H31.4231C29.1327 65.0754 27.2692 63.212 27.2692 60.9215V35.0754C27.2692 32.785 29.1326 30.9215 31.4231 30.9215H65.5769C67.8673 30.9215 69.7308 32.7849 69.7308 35.0754V41.0754Z",fill:"url(#paint2_linear_880_5115)"}),r.createElement("path",{d:"M61.4231 46.6172H59.577C58.8123 46.6172 58.1924 47.2371 58.1924 48.0018C58.1924 48.7665 58.8123 49.3863 59.577 49.3863H61.4231C62.1878 49.3863 62.8077 48.7664 62.8077 48.0018C62.8077 47.2371 62.1878 46.6172 61.4231 46.6172Z",fill:"url(#paint3_linear_880_5115)"})),r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear_880_5115",x1:"3.41664",y1:"98.0933",x2:"103.05",y2:"8.42498",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#9945FF"}),r.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),r.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),r.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),r.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),r.createElement("stop",{offset:"1",stopColor:"#00D18C"})),r.createElement("linearGradient",{id:"paint1_linear_880_5115",x1:"3.41664",y1:"98.0933",x2:"103.05",y2:"8.42498",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#9945FF"}),r.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),r.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),r.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),r.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),r.createElement("stop",{offset:"1",stopColor:"#00D18C"})),r.createElement("linearGradient",{id:"paint2_linear_880_5115",x1:"25.9583",y1:"68.7101",x2:"67.2337",y2:"23.7879",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#9945FF"}),r.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),r.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),r.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),r.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),r.createElement("stop",{offset:"1",stopColor:"#00D18C"})),r.createElement("linearGradient",{id:"paint3_linear_880_5115",x1:"58.3326",y1:"49.4467",x2:"61.0002",y2:"45.4453",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#9945FF"}),r.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),r.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),r.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),r.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),r.createElement("stop",{offset:"1",stopColor:"#00D18C"})),r.createElement("clipPath",{id:"clip0_880_5115"},r.createElement("rect",{width:"48",height:"48",fill:"white",transform:"translate(24.5 24)"}
1))));var u=a(38183);let p=e=>{let{className:t="",container:a="body"}=e,c=(0,r.useRef)(null),{wallets:i,select:p}=(0,n.v)(),{setVisible:E}=(0,u.o)(),[f,h]=(0,r.useState)(!1),[C,w]=(0,r.useState)(!1),[v,y]=(0,r.useState)(null),[g,x]=(0,r.useMemo)(()=>{let e=[],t=[];for(let a of i)a.readyState===l.Ok.Installed?e.push(a):t.push(a);return e.length?[e,t]:[t,[]]},[i]),b=(0,r.useCallback)(()=>{w(!1),setTimeout(()=>E(!1),150)},[E]),k=(0,r.useCallback)(e=>{e.preventDefault(),b()},[b]),_=(0,r.useCallback)((e,t)=>{p(t),k(e)},[p,k]),L=(0,r.useCallback)(()=>h(!f),[f]),N=(0,r.useCallback)(e=>{let t=c.current;if(!t)return;let a=t.querySelectorAll("button"),l=a[0],n=a[a.length-1];e.shiftKey?document.activeElement===l&&(n.focus(),e.preventDefault()):document.activeElement===n&&(l.focus(),e.preventDefault())},[c]);return(0,r.useLayoutEffect)(()=>{let e=e=>{"Escape"===e.key?b():"Tab"===e.key&&N(e)},{overflow:t}=window.getComputedStyle(document.body);return setTimeout(()=>w(!0),0),document.body.style.overflow="hidden",window.addEventListener("keydown",e,!1),()=>{document.body.style.overflow=t,window.removeEventListener("keydown",e,!1)}},[b,N]),(0,r.useLayoutEffect)(()=>y(document.querySelector(a)),[a]),v&&(0,o.createPortal)(r.createElement("div",{"aria-labelledby":"wallet-adapter-modal-title","aria-modal":"true",className:"wallet-adapter-modal ".concat(C&&"wallet-adapter-modal-fade-in"," ").concat(t),ref:c,role:"dialog"},r.createElement("div",{className:"wallet-adapter-modal-container"},r.createElement("div",{className:"wallet-adapter-modal-wrapper"},r.createElement("button",{onClick:k,className:"wallet-adapter-modal-button-close"},r.createElement("svg",{width:"14",height:"14"},r.createElement("path",{d:"M14 12.461 8.3 6.772l5.234-5.233L12.006 0 6.772 5.234 1.54 0 0 1.539l5.234 5.233L0 12.006l1.539 1.528L6.772 8.3l5.69 5.7L14 12.461z"}))),g.length?r.createElement(r.Fragment,null,r.createElement("h1",{className:"wallet-adapter-modal-title"},"Connect a wallet on Solana to continue"),r.createElement("ul",{className:"wallet-adapter-modal-list"},g.map(e=>r.createElement(d,{key:e.adapter.name,handleClick:t=>_(t,e.adapter.name),wallet:e})),x.length?r.createElement(s,{expanded:f,id:"wallet-adapter-modal-collapse"},x.map(e=>r.createElement(d,{key:e.adapter.name,handleClick:t=>_(t,e.adapter.name),tabIndex:f?0:-1,wallet:e}))):null),x.length?r.createElement("button",{className:"wallet-adapter-modal-list-more",onClick:L,tabIndex:0},r.createElement("span",null,f?"Less ":"More ","options"),r.createElement("svg",{width:"13",height:"7",viewBox:"0 0 13 7",xmlns:"http://www.w3.org/2000/svg",className:"".concat(f?"wallet-adapter-modal-list-more-icon-rotate":"")},r.createElement("path",{d:"M0.71418 1.626L5.83323 6.26188C5.91574 6.33657 6.0181 6.39652 6.13327 6.43762C6.24844 6.47872 6.37371 6.5 6.50048 6.5C6.62725 6.5 6.75252 6.47872 6.8677 6.43762C6.98287 6.39652 7.08523 6.33657 7.16774 6.26188L12.2868 1.626C12.7753 1.1835 12.3703 0.5 11.6195 0.5H1.37997C0.629216 0.5 0.224175 1.1835 0.71418 1.626Z"}))):null):r.createElement(r.Fragment,null,r.createElement("h1",{className:"wallet-adapter-modal-title"},"You'll need a wallet on Solana to continue"),r.createElement("div",{className:"wallet-adapter-modal-middle"},r.createElement(m,null)),x.length?r.createElement(r.Fragment,null,r.createElement("button",{className:"wallet-adapter-modal-list-more",onClick:L,tabIndex:0},r.createElement("span",null,f?"Hide ":"Already have a wallet? View ","options"),r.createElement("svg",{width:"13",height:"7",viewBox:"0 0 13 7",xmlns:"http://www.w3.org/2000/svg",className:"".concat(f?"wallet-adapter-modal-list-more-icon-rotate":"")},r.createElement("path",{d:"M0.71418 1.626L5.83323 6.26188C5.91574 6.33657 6.0181 6.39652 6.13327 6.43762C6.24844 6.47872 6.37371 6.5 6.50048 6.5C6.62725 6.5 6.75252 6.47872 6.8677 6.43762C6.98287 6.39652 7.08523 6.33657 7.16774 6.26188L12.2868 1.626C12.7753 1.1835 12.3703 0.5 11.6195 0.5H1.37997C0.629216 0.5 0.224175 1.1835 0.71418 1.626Z"}))),r.createElement(s,{expanded:f,id:"wallet-adapter-modal-collapse"},r.createElement("ul",{className:"wallet-adapter-modal-list"},x.map(e=>r.createElement(d,{key:e.adapter.name,handleClick:t=>_(t,e.adapter.name),tabIndex:f?0:-1,wallet:e}))))):null))),r.createElement("div",{className:"wallet-adapter-modal-overlay",onMouseDown:k})),v)}},36452:(e,t,a)=>{a.d(t,{AE:()=>n,Ez:()=>o,K3:()=>f,Kd:()=>m,PQ:()=>c,Sz:()=>r,UF:()=>p,Y6:()=>s,Y8:()=>i,fk:()=>d,kW:()=>u,m7:()=>l,o7:()=>h,z4:()=>E});
1class l extends Error{constructor(e,t){super(e),this.error=t}}class n extends l{constructor(){super(...arguments),this.name="WalletNotReadyError"}}class r extends l{constructor(){super(...arguments),this.name="WalletLoadError"}}class o extends l{constructor(){super(...arguments),this.name="WalletConfigError"}}class s extends l{constructor(){super(...arguments),this.name="WalletConnectionError"}}class c extends l{constructor(){super(...arguments),this.name="WalletDisconnectedError"}}class i extends l{constructor(){super(...arguments),this.name="WalletDisconnectionError"}}class d extends l{constructor(){super(...arguments),this.name="WalletAccountError"}}class m extends l{constructor(){super(...arguments),this.name="WalletPublicKeyError"}}class u extends l{constructor(){super(...arguments),this.name="WalletNotConnectedError"}}class p extends l{constructor(){super(...arguments),this.name="WalletSendTransactionError"}}class E extends l{constructor(){super(...arguments),this.name="WalletSignTransactionError"}}class f extends l{constructor(){super(...arguments),this.name="WalletSignMessageError"}}class h extends l{constructor(){super(...arguments),this.name="WalletSignInError"}}},38183:(e,t,a)=>{a.d(t,{o:()=>s,w:()=>o});var l=a(12115);let n={setVisible(e){console.error(r("call","setVisible"))},visible:!1};function r(e,t){return"You have tried to "+" ".concat(e,' "').concat(t,'"')+" on a WalletModalContext without providing one. Make sure to render a WalletModalProvider as an ancestor of the component that uses WalletModalContext"}Object.defineProperty(n,"visible",{get:()=>(console.error(r("read","visible")),!1)});let o=(0,l.createContext)(n);function s(){return(0,l.useContext)(o)}},51470:(e,t,a)=>{a.d(t,{Br:()=>c,Ce:()=>o,Ok:()=>l,qG:()=>s});var l,n=a(68463),r=a(36452);!function(e){e.Installed="Installed",e.NotDetected="NotDetected",e.Loadable="Loadable",e.Unsupported="Unsupported"}(l||(l={}));class o extends n.A{get connected(){return!!this.publicKey}async autoConnect(){await this.connect()}async prepareTransaction(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=this.publicKey;if(!l)throw new r.kW;return e.feePayer=e.feePayer||l,e.recentBlockhash=e.recentBlockhash||(await t.getLatestBlockhash({commitment:a.preflightCommitment,minContextSlot:a.minContextSlot})).blockhash,e}}function s(e){if("undefined"==typeof window||"undefined"==typeof document)return;let t=[];function a(){if(e())for(let e of t)e()}let l=setInterval(a,1e3);t.push(()=>clearInterval(l)),"loading"===document.readyState&&(document.addEventListener("DOMContentLoaded",a,{once:!0}),t.push(()=>document.removeEventListener("DOMContentLoaded",a))),"complete"!==document.readyState&&(window.addEventListener("load",a,{once:!0}),t.push(()=>window.removeEventListener("load",a))),a()}function c(){if(!navigator)return!1;let e=navigator.userAgent.toLowerCase(),t=e.includes("iphone")||e.includes("ipad"),a=e.includes("safari");return t&&a}},65099:(e,t,a)=>{a.d(t,{I:()=>o});var l=a(12115),n=a(38183),r=a(30692);let o=e=>{let{children:t,...a}=e,[o,s]=(0,l.useState)(!1);return l.createElement(n.w.Provider,{value:{visible:o,setVisible:s}},t,o&&l.createElement(r.N,{...a}))}},89172:(e,t,a)=>{a.d(t,{$:()=>n});var l=a(12115);let n=e=>l.createElement("button",{className:"wallet-adapter-button ".concat(e.className||""),disabled:e.disabled,style:e.style,onClick:e.onClick,tabIndex:e.tabIndex||0,type:"button"},e.startIcon&&l.createElement("i",{className:"wallet-adapter-button-start-icon"},e.startIcon),e.children,e.endIcon&&l.createElement("i",{className:"wallet-adapter-button-end-icon"},e.endIcon))}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.