PageSourceSearch

https://michi-xyz.vercel.app/assets/index-49d7045b.js

js michi-xyz.vercel.app collected 2026-10-03 07:18:57 UTC 12,303 bytes, 1 lines download raw bytes

1import{_ as _e}from"./index-87f46e81.js";const pe=Symbol(),Z=Object.getPrototypeOf,Q=new WeakMap,Ie=e=>e&&(Q.has(e)?Q.get(e):Z(e)===Object.prototype||Z(e)===Array.prototype),ue=e=>Ie(e)&&e[pe]||null,ee=(e,t=!0)=>{Q.set(e,t)},z=e=>typeof e=="object"&&e!==null,y=new WeakMap,H=new WeakSet,me=(e=Object.is,t=(n,m)=>new Proxy(n,m),s=n=>z(n)&&!H.has(n)&&(Array.isArray(n)||!(Symbol.iterator in n))&&!(n instanceof WeakMap)&&!(n instanceof WeakSet)&&!(n instanceof Error)&&!(n instanceof Number)&&!(n instanceof Date)&&!(n instanceof String)&&!(n instanceof RegExp)&&!(n instanceof ArrayBuffer),i=n=>{switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:throw n}},l=new WeakMap,c=(n,m,L=i)=>{const h=l.get(n);if(h?.[0]===m)return h[1];const T=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n));return ee(T,!0),l.set(n,[m,T]),Reflect.ownKeys(n).forEach(U=>{if(Object.getOwnPropertyDescriptor(T,U))return;const C=Reflect.get(n,U),M={value:C,enumerable:!0,configurable:!0};if(H.has(C))ee(C,!1);else if(C instanceof Promise)delete M.value,M.get=()=>L(C);else if(y.has(C)){const[R,B]=y.get(C);M.value=c(R,B(),L)}Object.defineProperty(T,U,M)}),Object.preventExtensions(T)},I=new WeakMap,p=[1,1],g=n=>{if(!z(n))throw new Error("object required");const m=I.get(n);if(m)return m;let L=p[0];const h=new Set,T=(a,r=++p[0])=>{L!==r&&(L=r,h.forEach(o=>o(a,r)))};let U=p[1];const C=(a=++p[1])=>(U!==a&&!h.size&&(U=a,R.forEach(([r])=>{const o=r[1](a);o>L&&(L=o)})),L),M=a=>(r,o)=>{const u=[...r];u[1]=[a,...u[1]],T(u,o)},R=new Map,B=(a,r)=>{if(h.size){const o=r[3](M(a));R.set(a,[r,o])}else R.set(a,[r])},Y=a=>{var r;const o=R.get(a);o&&(R.delete(a),(r=o[1])==null||r.call(o))},Ee=a=>(h.add(a),h.size===1&&R.forEach(([o,u],W)=>{const G=o[3](M(W));R.set(W,[o,G])}),()=>{h.delete(a),h.size===0&&R.forEach(([o,u],W)=>{u&&(u(),R.set(W,[o]))})}),K=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),j=t(K,{deleteProperty(a,r){const o=Reflect.get(a,r);Y(r);const u=Reflect.deleteProperty(a,r);return u&&T(["delete",[r],o]),u},set(a,r,o,u){const W=Reflect.has(a,r),G=Reflect.get(a,r,u);if(W&&(e(G,o)||I.has(o)&&e(G,I.get(o))))return!0;Y(r),z(o)&&(o=ue(o)||o);let N=o;if(o instanceof Promise)o.then(O=>{o.status="fulfilled",o.value=O,T(["resolve",[r],O])}).catch(O=>{o.status="rejected",o.reason=O,T(["reject",[r],O])});else{!y.has(o)&&s(o)&&(N=g(o));const O=!H.has(N)&&y.get(N);O&&B(r,O)}return Reflect.set(a,r,N,u),T(["set",[r],o,G]),!0}});I.set(n,j);const de=[K,C,c,Ee];return y.set(j,de),Reflect.ownKeys(n).forEach(a=>{const r=Object.getOwnPropertyDescriptor(n,a);"value"in r&&(j[a]=n[a],delete r.value,delete r.writable),Object.defineProperty(K,a,r)}),j})=>[g,y,H,e,t,s,i,l,c,I,p],[he]=me();function v(e={}){return he(e)}function S(e,t,s){const i=y.get(e);let l;const c=[],I=i[3];let p=!1;const n=I(m=>{if(c.push(m),s){t(c.splice(0));return}l||(l=Promise.resolve().then(()=>{l=void 0,p&&t(c.splice(0))}))});return p=!0,()=>{p=!1,n()}}function Te(e,t){const s=y.get(e),[i,l,c]=s;return c(i,l(),t)}const E=v({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),ce={state:E,subscribe(e){return S(E,()=>e(E))},push(e,t){e!==E.view&&(E.view=e,t&&(E.data=t),E.history.push(e))},reset(e){E.view=e,E.history=[e]},replace(e){E.history.length>1&&(E.history[E.history.length-1]=e,E.view=e)},goBack(){if(E.history.length>1){E.history.pop();const[e]=E.history.slice(-1);E.view=e}},setData(e){E.data=e}},_={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return _.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return _.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(_.isHttpUrl(e))return this.formatUniversalUrl(e,t,s
1);let i=e;i.includes("://")||(i=e.replaceAll("/","").replaceAll(":",""),i=`${i}://`),i.endsWith("/")||(i=`${i}/`),this.setWalletConnectDeepLink(i,s);const l=encodeURIComponent(t);return`${i}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!_.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let i=e;i.endsWith("/")||(i=`${i}/`),this.setWalletConnectDeepLink(i,s);const l=encodeURIComponent(t);return`${i}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(_.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(_.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(_.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(_.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=ce.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},Re=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),d=v({enabled:Re,userSessionId:"",events:[],connectedWalletId:void 0}),fe={state:d,subscribe(e){return S(d.events,()=>e(Te(d.events[d.events.length-1])))},initialize(){d.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(d.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){d.connectedWalletId=e},click(e){if(d.enabled){const t={type:"CLICK",name:e.name,userSessionId:d.userSessionId,timestamp:Date.now(),data:e};d.events.push(t)}},track(e){if(d.enabled){const t={type:"TRACK",name:e.name,userSessionId:d.userSessionId,timestamp:Date.now(),data:e};d.events.push(t)}},view(e){if(d.enabled){const t={type:"VIEW",name:e.name,userSessionId:d.userSessionId,timestamp:Date.now(),data:e};d.events.push(t)}}},V=v({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),f={state:V,subscribe(e){return S(V,()=>e(V))},setChains(e){V.chains=e},setWalletConnectUri(e){V.walletConnectUri=e},setIsCustomDesktop(e){V.isCustomDesktop=e},setIsCustomMobile(e){V.isCustomMobile=e},setIsDataLoaded(e){V.isDataLoaded=e},setIsUiLoaded(e){V.isUiLoaded=e},setIsAuth(e){V.isAuth=e}},$=v({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),D={state:$,subscribe(e){return S($,()=>e($))},setConfig(e){var t,s;fe.initialize(),f.setChains(e.chains),f.setIsAuth(!!e.enableAuthMode),f.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),f.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),_.setModalVersionInStorage(),Object.assign($,e)}};var Le=Object.defineProperty,te=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,se=(e,t,s)=>t in e?Le(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Ce=(e,t)=>{for(var s in t||(t={}))Ve.call(t,s)&&se(e,s,t[s]);if(te)for(var s of te(t))be.call(t,s)&&se(e,s,t[s]);return e};const J="https://explorer-api.walletconnect.com",q="wcm",X="js-2.6.2";async function x(e,t){const s=Ce({sdkType:q,sdkVersion:X},t),i=new URL(e,J);return i.searchParams.append("projectId",D.state.projectId),Object.entries(s).forEach(([l,c])=>{c&&i.searchParams.append(l,String(c))}),(await fetch(i)).json()}const A={async getDesktopListings(e){return x("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return x("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return x("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return x("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${J}/w3m/v1/getWalletImage/${e}?projectId=${D.state.projectId}&sdkType=${q}&sdkVersion=${X}`},getAssetImageUrl(e){return`${J}/w3m/v1/getAssetImage/${e}?projectId=${D.state.projectId}&sdkType=${q}&sdkVersion=${X}`}};var ge=Object.defineProperty,ne=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,oe=(e,t,s)=>t in e?ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,ve=(e,t)=>
1{for(var s in t||(t={}))Oe.call(t,s)&&oe(e,s,t[s]);if(ne)for(var s of ne(t))ye.call(t,s)&&oe(e,s,t[s]);return e};const ie=_.isMobile(),b=v({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),Ge={state:b,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=D.state;if(e==="NONE"||t==="ALL"&&!e)return b.recomendedWallets;if(_.isArray(e)){const s={recommendedIds:e.join(",")},{listings:i}=await A.getAllListings(s),l=Object.values(i);l.sort((c,I)=>{const p=e.indexOf(c.id),g=e.indexOf(I.id);return p-g}),b.recomendedWallets=l}else{const{chains:s,isAuth:i}=f.state,l=s?.join(","),c=_.isArray(t),I={page:1,sdks:i?"auth_v1":void 0,entries:_.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:c?t.join(","):void 0},{listings:p}=ie?await A.getMobileListings(I):await A.getDesktopListings(I);b.recomendedWallets=Object.values(p)}return b.recomendedWallets},async getWallets(e){const t=ve({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:i}=D.state,{recomendedWallets:l}=b;if(i==="ALL")return b.wallets;l.length?t.excludedIds=l.map(L=>L.id).join(","):_.isArray(s)&&(t.excludedIds=s.join(",")),_.isArray(i)&&(t.excludedIds=[t.excludedIds,i].filter(Boolean).join(",")),f.state.isAuth&&(t.sdks="auth_v1");const{page:c,search:I}=e,{listings:p,total:g}=ie?await A.getMobileListings(t):await A.getDesktopListings(t),n=Object.values(p),m=I?"search":"wallets";return b[m]={listings:[...b[m].listings,...n],total:g,page:c??1},{listings:n,total:g}},getWalletImageUrl(e){return A.getWalletImageUrl(e)},getAssetImageUrl(e){return A.getAssetImageUrl(e)},resetSearch(){b.search={listings:[],total:0,page:1}}},P=v({open:!1}),F={state:P,subscribe(e){return S(P,()=>e(P))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:i}=f.state;if(_.removeWalletConnectDeepLink(),f.setWalletConnectUri(e?.uri),f.setChains(e?.chains),ce.reset("ConnectWallet"),s&&i)P.open=!0,t();else{const l=setInterval(()=>{const c=f.state;c.isUiLoaded&&c.isDataLoaded&&(clearInterval(l),P.open=!0,t())},200)}})},close(){P.open=!1}};var Me=Object.defineProperty,re=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,ae=(e,t,s)=>t in e?Me(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Se=(e,t)=>{for(var s in t||(t={}))Ae.call(t,s)&&ae(e,s,t[s]);if(re)for(var s of re(t))we.call(t,s)&&ae(e,s,t[s]);return e};function Ue(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const k=v({themeMode:Ue()?"dark":"light"}),le={state:k,subscribe(e){return S(k,()=>e(k))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(k.themeMode=t),s&&(k.themeVariables=Se({},s))}},w=v({open:!1,message:"",variant:"success"}),ke={state:w,subscribe(e){return S(w,()=>e(w))},openToast(e,t){w.open=!0,w.message=e,w.variant=t},closeToast(){w.open=!1}};class We{constructor(t){this.openModal=F.open,this.closeModal=F.close,this.subscribeModal=F.subscribe,this.setTheme=le.setThemeConfig,le.setThemeConfig(t),D.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await _e(()=>import("./index-766fbe39.js"),["assets/index-766fbe39.js","assets/index-87f46e81.js","assets/index-1586d825.css"]);const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),f.setIsUiLoaded(!0)}}}const je=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:We},Symbol.toStringTag,{value:"Module"}));export{fe as R,ce as T,_ as a,je as i,le as n,ke as o,f as p,F as s,Ge as t,D as y};

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.