1"use strict";(self.webpackChunkbazedbet_frontend=self.webpackChunkbazedbet_frontend||[]).push([["26672"],{7423:function(e,t,s){s.d(t,{zb:()=>C,Vs:()=>et,Ic:()=>Z,jb:()=>B,t0:()=>O,uA:()=>w,uc:()=>H,zv:()=>y,AV:()=>m}),Symbol();let r=Symbol(),o=Object.getPrototypeOf,a=new WeakMap,n=e=>e&&(a.has(e)?a.get(e):o(e)===Object.prototype||o(e)===Array.prototype),i=e=>n(e)&&e[r]||null,l=(e,t=!0)=>{a.set(e,t)},c=e=>"object"==typeof e&&null!==e,d=new WeakMap,p=new WeakSet,[u]=((e=Object.is,t=(e,t)=>new Proxy(e,t),s=e=>c(e)&&!p.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),r=e=>{switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e}},o=new WeakMap,a=(e,t,s=r)=>{let n=o.get(e);if((null==n?void 0:n[0])===t)return n[1];let i=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return l(i,!0),o.set(e,[t,i]),Reflect.ownKeys(e).forEach(t=>{if(Object.getOwnPropertyDescriptor(i,t))return;let r=Reflect.get(e,t),o={value:r,enumerable:!0,configurable:!0};if(p.has(r))l(r,!1);else if(r instanceof Promise)delete o.value,o.get=()=>s(r);else if(d.has(r)){let[e,t]=d.get(r);o.value=a(e,t(),s)}Object.defineProperty(i,t,o)}),Object.preventExtensions(i)},n=new WeakMap,u=[1,1],f=r=>{if(!c(r))throw Error("object required");let o=n.get(r);if(o)return o;let l=u[0],h=new Set,g=(e,t=++u[0])=>{l!==t&&(l=t,h.forEach(s=>s(e,t)))},b=u[1],m=(e=++u[1])=>(b===e||h.size||(b=e,v.forEach(([t])=>{let s=t[1](e);s>l&&(l=s)})),l),y=e=>(t,s)=>{let r=[...t];r[1]=[e,...r[1]],g(r,s)},v=new Map,w=(e,t)=>{if(v.has(e))throw Error("prop listener already exists");if(h.size){let s=t[3](y(e));v.set(e,[t,s])}else v.set(e,[t])},I=e=>{var t;let s=v.get(e);s&&(v.delete(e),null==(t=s[1])||t.call(s))},C=e=>{h.add(e),1===h.size&&v.forEach(([e,t],s)=>{if(t)throw Error("remove already exists");let r=e[3](y(s));v.set(s,[e,r])});let t=()=>{h.delete(e),0===h.size&&v.forEach(([e,t],s)=>{t&&(t(),v.set(s,[e]))})};return t},W=Array.isArray(r)?[]:Object.create(Object.getPrototypeOf(r)),O={deleteProperty(e,t){let s=Reflect.get(e,t);I(t);let r=Reflect.deleteProperty(e,t);return r&&g(["delete",[t],s]),r},set(t,r,o,a){let l=Reflect.has(t,r),u=Reflect.get(t,r,a);if(l&&(e(u,o)||n.has(o)&&e(u,n.get(o))))return!0;I(r),c(o)&&(o=i(o)||o);let h=o;if(o instanceof Promise)o.then(e=>{o.status="fulfilled",o.value=e,g(["resolve",[r],e])}).catch(e=>{o.status="rejected",o.reason=e,g(["reject",[r],e])});else{!d.has(o)&&s(o)&&(h=f(o));let e=!p.has(h)&&d.get(h);e&&w(r,e)}return Reflect.set(t,r,h,a),g(["set",[r],o,u]),!0}},E=t(W,O);n.set(r,E);let j=[W,m,a,C];return d.set(E,j),Reflect.ownKeys(r).forEach(e=>{let t=Object.getOwnPropertyDescriptor(r,e);"value"in t&&(E[e]=r[e],delete t.value,delete t.writable),Object.defineProperty(W,e,t)}),E})=>[f,d,p,e,t,s,r,o,a,n,u])();function f(e={}){return u(e)}function h(e,t,s){let r;let o=d.get(e);o||console.warn("Please use proxy object");let a=[],n=o[3],i=!1,l=n(e=>{if(a.push(e),s){t(a.splice(0));return}r||(r=Promise.resolve().then(()=>{r=void 0,i&&t(a.splice(0))}))});return i=!0,()=>{i=!1,l()}}var g=s(48764).Buffer;let b=f({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),m={state:b,subscribe:e=>h(b,()=>e(b)),push(e,t){e!==b.view&&(b.view=e,t&&(b.data=t),b.history.push(e))},reset(e){b.view=e,b.history=[e]},replace(e){b.history.length>1&&(b.history[b.history.length-1]=e,b.view=e)},goBack(){if(b.history.length>1){b.history.pop();let[e]=b.history.slice(-1);b.view=e}},setData(e){b.data=e}},y={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile:()=>"undefined"!=typeof window&&!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),isAndroid:()=>y.isMobile()&&navigator.userAgent.toLowerCase().includes("android"),isIos(){let e=navigator.userAgent.toLowerCase();return y.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl:e=>e.startsWith("http://")||e.startsWith("https://"),isArray:e=>Array.isArray(e)&&e.length>0,isTelegram:()=>"undefined"!=typeof window&&(!!window.TelegramWebviewProxy||!!window.Telegram||!!window.TelegramWebviewProxyProto),formatNativeUrl(e,t,s
1){if(y.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);let o=encodeURIComponent(t);return`${r}wc?uri=${o}`},formatUniversalUrl(e,t,s){if(!y.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let r=e;if(r.startsWith("https://t.me")){let e=g.from(t).toString("base64").replace(/[=]/g,"");r.endsWith("/")&&(r=r.slice(0,-1)),this.setWalletConnectDeepLink(r,s);let o=new URL(r);return o.searchParams.set("startapp",e),o.toString()}r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);let o=encodeURIComponent(t);return`${r}wc?uri=${o}`},wait:async e=>new Promise(t=>{setTimeout(t,e)}),openHref(e,t){let s=this.isTelegram()?"_blank":t;window.open(e,s,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(y.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch(e){console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{let[t]=e.split("?");localStorage.setItem(y.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch(e){console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(y.WALLETCONNECT_DEEPLINK_CHOICE)}catch(e){console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{"undefined"!=typeof localStorage&&localStorage.setItem(y.WCM_VERSION,"2.7.0")}catch(e){console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;let t=null==(e=m.state.data)?void 0:e.Wallet;if(!t)throw Error('Missing "Wallet" view data');return t}},v=f({enabled:"undefined"!=typeof location&&(location.hostname.includes("localhost")||location.protocol.includes("https")),userSessionId:"",events:[],connectedWalletId:void 0}),w={state:v,subscribe:e=>h(v.events,()=>e(function(e,t){let s=d.get(e);s||console.warn("Please use proxy object");let[r,o,a]=s;return a(r,o(),void 0)}(v.events[v.events.length-1]))),initialize(){v.enabled&&void 0!==(null==crypto?void 0:crypto.randomUUID)&&(v.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){v.connectedWalletId=e},click(e){if(v.enabled){let t={type:"CLICK",name:e.name,userSessionId:v.userSessionId,timestamp:Date.now(),data:e};v.events.push(t)}},track(e){if(v.enabled){let t={type:"TRACK",name:e.name,userSessionId:v.userSessionId,timestamp:Date.now(),data:e};v.events.push(t)}},view(e){if(v.enabled){let t={type:"VIEW",name:e.name,userSessionId:v.userSessionId,timestamp:Date.now(),data:e};v.events.push(t)}}},I=f({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),C={state:I,subscribe:e=>h(I,()=>e(I)),setChains(e){I.chains=e},setWalletConnectUri(e){I.walletConnectUri=e}
1,setIsCustomDesktop(e){I.isCustomDesktop=e},setIsCustomMobile(e){I.isCustomMobile=e},setIsDataLoaded(e){I.isDataLoaded=e},setIsUiLoaded(e){I.isUiLoaded=e},setIsAuth(e){I.isAuth=e}},W=f({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}),O={state:W,subscribe:e=>h(W,()=>e(W)),setConfig(e){var t,s;w.initialize(),C.setChains(e.chains),C.setIsAuth(!!e.enableAuthMode),C.setIsCustomMobile(!!(null==(t=e.mobileWallets)?void 0:t.length)),C.setIsCustomDesktop(!!(null==(s=e.desktopWallets)?void 0:s.length)),y.setModalVersionInStorage(),Object.assign(W,e)}};var E=Object.defineProperty,j=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,k=(e,t,s)=>t in e?E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,M=(e,t)=>{for(var s in t||(t={}))L.call(t,s)&&k(e,s,t[s]);if(j)for(var s of j(t))A.call(t,s)&&k(e,s,t[s]);return e};let U="https://explorer-api.walletconnect.com",P="js-2.7.0";async function D(e,t){let s=M({sdkType:"wcm",sdkVersion:P},t),r=new URL(e,U);return r.searchParams.append("projectId",O.state.projectId),Object.entries(s).forEach(([e,t])=>{t&&r.searchParams.append(e,String(t))}),(await fetch(r)).json()}let S={getDesktopListings:async e=>D("/w3m/v1/getDesktopListings",e),getMobileListings:async e=>D("/w3m/v1/getMobileListings",e),getAllListings:async e=>D("/w3m/v1/getAllListings",e),getWalletImageUrl:e=>`${U}/w3m/v1/getWalletImage/${e}?projectId=${O.state.projectId}&sdkType=wcm&sdkVersion=${P}`,getAssetImageUrl:e=>`${U}/w3m/v1/getAssetImage/${e}?projectId=${O.state.projectId}&sdkType=wcm&sdkVersion=${P}`};var T=Object.defineProperty,N=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,x=(e,t,s)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,$=(e,t)=>{for(var s in t||(t={}))R.call(t,s)&&x(e,s,t[s]);if(N)for(var s of N(t))_.call(t,s)&&x(e,s,t[s]);return e};let V=y.isMobile(),z=f({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),H={state:z,async getRecomendedWallets(){let{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=O.state;if("NONE"===e||"ALL"===t&&!e)return z.recomendedWallets;if(y.isArray(e)){let t=e.join(","),{listings:s}=await S.getAllListings({recommendedIds:t}),r=Object.values(s);r.sort((t,s)=>e.indexOf(t.id)-e.indexOf(s.id)),z.recomendedWallets=r}else{let{chains:e,isAuth:s}=C.state,r=null==e?void 0:e.join(","),o=y.isArray(t),a={page:1,sdks:s?"auth_v1":void 0,entries:y.RECOMMENDED_WALLET_AMOUNT,chains:r,version:2,excludedIds:o?t.join(","):void 0},{listings:n}=V?await S.getMobileListings(a):await S.getDesktopListings(a);z.recomendedWallets=Object.values(n)}return z.recomendedWallets},async getWallets(e){let t=$({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:r}=O.state,{recomendedWallets:o}=z;if("ALL"===r)return z.wallets;o.length?t.excludedIds=o.map(e=>e.id).join(","):y.isArray(s)&&(t.excludedIds=s.join(",")),y.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(",")),C.state.isAuth&&(t.sdks="auth_v1");let{page:a,search:n}=e,{listings:i,total:l}=V?await S.getMobileListings(t):await S.getDesktopListings(t),c=Object.values(i),d=n?"search":"wallets";return z[d]={listings:[...z[d].listings,...c],total:l,page:null!=a?a:1},{listings:c,total:l}},getWalletImageUrl:e=>S.getWalletImageUrl(e),getAssetImageUrl:e=>S.getAssetImageUrl(e),resetSearch(){z.search={listings:[],total:0,page:1}}},K=f({open:!1}),B={state:K,subscribe:e=>h(K,()=>e(K)),open:async e=>new Promise(t=>{let{isUiLoaded:s,isDataLoaded:r}=C.state;if(y.removeWalletConnectDeepLink(),C.setWalletConnectUri(null==e?void 0:e.uri),C.setChains(null==e?void 0:e.chains),m.reset("ConnectWallet"),s&&r)K.open=!0,t();else{let e=setInterval(()=>{let s=C.state;s.isUiLoaded&&s.isDataLoaded&&(clearInterval(e),K.open=!0,t())},200)}}),close(){K.open=!1}};var J=Object.defineProperty,q=Object.getOwnPropertySymbols,F=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,Q=(e,t,s)=>t in e?J(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,X=(e,t)=>{for(var s in t||(t={}))F.call(t,s)&&Q(e,s,t[s]);if(q)for(var s of q(t))G.call(t,s)&&Q(e,s,t[s]);return e};let Y=f({themeMode:"undefined"!=typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)").matches?"dar
1k":"light"}),Z={state:Y,subscribe:e=>h(Y,()=>e(Y)),setThemeConfig(e){let{themeMode:t,themeVariables:s}=e;t&&(Y.themeMode=t),s&&(Y.themeVariables=X({},s))}},ee=f({open:!1,message:"",variant:"success"}),et={state:ee,subscribe:e=>h(ee,()=>e(ee)),openToast(e,t){ee.open=!0,ee.message=e,ee.variant=t},closeToast(){ee.open=!1}}},57539:function(e,t,s){s.d(t,{WalletConnectModal:()=>o});var r=s(7423);class o{constructor(e){this.openModal=r.jb.open,this.closeModal=r.jb.close,this.subscribeModal=r.jb.subscribe,this.setTheme=r.Ic.setThemeConfig,r.Ic.setThemeConfig(e),r.t0.setConfig(e),this.initUi()}async initUi(){if("undefined"!=typeof window){await s.e("74763").then(s.bind(s,73590));let e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),r.zb.setIsUiLoaded(!0)}}}}}]);
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.