iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: https://d36jcksde1wxzq.cloudfront.net/hub-ui/Bzc8gTsr.js
var Lt=Object.defineProperty;var jt=(t,e,n)=>e in t?Lt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Y=(t,e,n)=>jt(t,typeof e!="symbol"?e+"":e,n);import{r as u,a as X,j as N}from"./BL9F-HQ1.js";import{_ as vt,f as E,h as ft,k as tt,s as et,e as dt,i as Nt,g as kt}from"./C-wObYiq.js";import{i as ut}from"./B8k4qzLc.js";function Ot(t,e){typeof t=="function"?t(e):t&&(t.current=e)}const $t=typeof window<"u"?u.useLayoutEffect:u.useEffect;function G(t){const e=u.useRef(t);return $t(()=>{e.current=t}),u.useRef((...n)=>(0,e.current)(...n)).current}function lt(...t){return u.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{Ot(n,e)})},t)}const ct={};function ht(t,e){const n=u.useRef(ct);return n.current===ct&&(n.current=t(e)),n}const Ft=[];function Ut(t){u.useEffect(t,Ft)}class nt{constructor(){Y(this,"currentId",null);Y(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Y(this,"disposeEffect",()=>this.clear)}static create(){return new nt}start(e,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},e)}}function zt(){const t=ht(nt.create).current;return Ut(t.disposeEffect),t}function _t(t,e){if(t==null)return{};var n={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(e.includes(a))continue;n[a]=t[a]}return n}function J(t,e){return J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},J(t,e)}function At(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,J(t,e)}const pt=X.createContext(null);function Yt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ot(t,e){var n=function(r){return e&&u.isValidElement(r)?e(r):r},a=Object.create(null);return t&&u.Children.map(t,function(o){return o}).forEach(function(o){a[o.key]=n(o)}),a}function Xt(t,e){t=t||{},e=e||{};function n(d){return d in e?e[d]:t[d]}var a=Object.create(null),o=[];for(var r in t)r in e?o.length&&(a[r]=o,o=[]):o.push(r);var i,p={};for(var l in e){if(a[l])for(i=0;i{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new q}static use(){const e=ht(q.create).current,[n,a]=u.useState(!1);return e.shouldMount=n,e.setShouldMount=a,u.useEffect(e.mountEffect,[n]),e}mount(){return this.mounted||(this.mounted=Zt(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...e)})}stop(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...e)})}pulsate(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...e)})}}function qt(){return q.use()}function Zt(){let t,e;const n=new Promise((a,o)=>{t=a,e=o});return n.resolve=t,n.reject=e,n}function Jt(t){const{className:e,classes:n,pulsate:a=!1,rippleX:o,rippleY:r,rippleSize:i,in:p,onExited:l,timeout:f}=t,[d,M]=u.useState(!1),b=E(e,n.ripple,n.rippleVisible,a&&n.ripplePulsate),w={width:i,height:i,top:-(i/2)+r,left:-(i/2)+o},h=E(n.child,d&&n.childLeaving,a&&n.childPulsate);return!p&&!d&&M(!0),u.useEffect(()=>{if(!p&&l!=null){const S=setTimeout(l,f);return()=>{clearTimeout(S)}}},[l,p,f]),N.jsx("span",{className:b,style:w,children:N.jsx("span",{className:h})})}const m=ft("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Q=550,Qt=80,te=tt` 0% { transform: scale(0); opacity: 0.1; } 100% { transform: scale(1); opacity: 0.3; } `,ee=tt` 0% { opacity: 1; } 100% { opacity: 0; } `,ne=tt` 0% { transform: scale(1); } 50% { transform: scale(0.92); } 100% { transform: scale(1); } `,oe=et("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),re=et(Jt,{name:"MuiTouchRipple",slot:"Ripple"})` opacity: 0; position: absolute; &.${m.rippleVisible} { opacity: 0.3; transform: scale(1); animation-name: ${te}; animation-duration: ${Q}ms; animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; } &.${m.ripplePulsate} { animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms; } & .${m.child} { opacity: 1; display: block; width: 100%; height: 100%; border-radius: 50%; background-color: currentColor; } & .${m.childLeaving} { opacity: 0; animation-name: ${ee}; animation-duration: ${Q}ms; animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; } & .${m.childPulsate} { position: absolute; /* @noflip */ left: 0px; top: 0; animation-name: ${ne}; animation-duration: 2500ms; animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; animation-iteration-count: infinite; animation-delay: 200ms; } `,ie=u.forwardRef(function(e,n){const a=dt({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:r={},className:i,...p}=a,[l,f]=u.useState([]),d=u.useRef(0),M=u.useRef(null);u.useEffect(()=>{M.current&&(M.current(),M.current=null)},[l]);const b=u.useRef(!1),w=zt(),h=u.useRef(null),S=u.useRef(null),x=u.useCallback(c=>{const{pulsate:R,rippleX:g,rippleY:$,rippleSize:D,cb:F}=c;f(y=>[...y,N.jsx(re,{classes:{ripple:E(r.ripple,m.ripple),rippleVisible:E(r.rippleVisible,m.rippleVisible),ripplePulsate:E(r.ripplePulsate,m.ripplePulsate),child:E(r.child,m.child),childLeaving:E(r.childLeaving,m.childLeaving),childPulsate:E(r.childPulsate,m.childPulsate)},timeout:Q,pulsate:R,rippleX:g,rippleY:$,rippleSize:D},d.current)]),d.current+=1,M.current=F},[r]),k=u.useCallback((c={},R={},g=()=>{})=>{const{pulsate:$=!1,center:D=o||R.pulsate,fakeElement:F=!1}=R;if((c==null?void 0:c.type)==="mousedown"&&b.current){b.current=!1;return}(c==null?void 0:c.type)==="touchstart"&&(b.current=!0);const y=F?null:S.current,V=y?y.getBoundingClientRect():{width:0,height:0,left:0,top:0};let I,C,B;if(D||c===void 0||c.clientX===0&&c.clientY===0||!c.clientX&&!c.touches)I=Math.round(V.width/2),C=Math.round(V.height/2);else{const{clientX:U,clientY:L}=c.touches&&c.touches.length>0?c.touches[0]:c;I=Math.round(U-V.left),C=Math.round(L-V.top)}if(D)B=Math.sqrt((2*V.width**2+V.height**2)/3),B%2===0&&(B+=1);else{const U=Math.max(Math.abs((y?y.clientWidth:0)-I),I)*2+2,L=Math.max(Math.abs((y?y.clientHeight:0)-C),C)*2+2;B=Math.sqrt(U**2+L**2)}c!=null&&c.touches?h.current===null&&(h.current=()=>{x({pulsate:$,rippleX:I,rippleY:C,rippleSize:B,cb:g})},w.start(Qt,()=>{h.current&&(h.current(),h.current=null)})):x({pulsate:$,rippleX:I,rippleY:C,rippleSize:B,cb:g})},[o,x,w]),K=u.useCallback(()=>{k({},{pulsate:!0})},[k]),O=u.useCallback((c,R)=>{if(w.clear(),(c==null?void 0:c.type)==="touchend"&&h.current){h.current(),h.current=null,w.start(0,()=>{O(c,R)});return}h.current=null,f(g=>g.length>0?g.slice(1):g),M.current=R},[w]);return u.useImperativeHandle(n,()=>({pulsate:K,start:k,stop:O}),[K,k,O]),N.jsx(oe,{className:E(m.root,r.root,i),ref:S,...p,children:N.jsx(rt,{component:null,exit:!0,children:l})})});function se(t){return Nt("MuiButtonBase",t)}const ae=ft("MuiButtonBase",["root","disabled","focusVisible"]),ue=t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:a,classes:o}=t,i=kt({root:["root",e&&"disabled",n&&"focusVisible"]},se,o);return n&&a&&(i.root+=` ${a}`),i},le=et("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ae.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),me=u.forwardRef(function(e,n){const a=dt({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:r=!1,children:i,className:p,component:l="button",disabled:f=!1,disableRipple:d=!1,disableTouchRipple:M=!1,focusRipple:b=!1,focusVisibleClassName:w,LinkComponent:h="a",onBlur:S,onClick:x,onContextMenu:k,onDragLeave:K,onFocus:O,onFocusVisible:c,onKeyDown:R,onKeyUp:g,onMouseDown:$,onMouseLeave:D,onMouseUp:F,onTouchEnd:y,onTouchMove:V,onTouchStart:I,tabIndex:C=0,TouchRippleProps:B,touchRippleRef:U,type:L,...z}=a,_=u.useRef(null),T=qt(),mt=lt(T.ref,U),[j,W]=u.useState(!1);f&&j&&W(!1),u.useImperativeHandle(o,()=>({focusVisible:()=>{W(!0),_.current.focus()}}),[]);const bt=T.shouldMount&&!d&&!f;u.useEffect(()=>{j&&b&&!d&&T.pulsate()},[d,b,j,T]);function P(s,st,Dt=M){return G(at=>(st&&st(at),Dt||T[s](at),!0))}const gt=P("start",$),Mt=P("stop",k),Rt=P("stop",K),yt=P("stop",F),Et=P("stop",s=>{j&&s.preventDefault(),D&&D(s)}),xt=P("start",I),Ct=P("stop",y),Tt=P("stop",V),Pt=P("stop",s=>{ut(s.target)||W(!1),S&&S(s)},!1),wt=G(s=>{_.current||(_.current=s.currentTarget),ut(s.target)&&(W(!0),c&&c(s)),O&&O(s)}),Z=()=>{const s=_.current;return l&&l!=="button"&&!(s.tagName==="A"&&s.href)},Vt=G(s=>{b&&!s.repeat&&j&&s.key===" "&&T.stop(s,()=>{T.start(s)}),s.target===s.currentTarget&&Z()&&s.key===" "&&s.preventDefault(),R&&R(s),s.target===s.currentTarget&&Z()&&s.key==="Enter"&&!f&&(s.preventDefault(),x&&x(s))}),It=G(s=>{b&&s.key===" "&&j&&!s.defaultPrevented&&T.stop(s,()=>{T.pulsate(s)}),g&&g(s),x&&s.target===s.currentTarget&&Z()&&s.key===" "&&!s.defaultPrevented&&x(s)});let H=l;H==="button"&&(z.href||z.to)&&(H=h);const A={};H==="button"?(A.type=L===void 0?"button":L,A.disabled=f):(!z.href&&!z.to&&(A.role="button"),f&&(A["aria-disabled"]=f));const Bt=lt(n,_),it={...a,centerRipple:r,component:l,disabled:f,disableRipple:d,disableTouchRipple:M,focusRipple:b,tabIndex:C,focusVisible:j},St=ue(it);return N.jsxs(le,{as:H,className:E(St.root,p),ownerState:it,onBlur:Pt,onClick:x,onContextMenu:Mt,onFocus:wt,onKeyDown:Vt,onKeyUp:It,onMouseDown:gt,onMouseLeave:Et,onMouseUp:yt,onDragLeave:Rt,onTouchEnd:Ct,onTouchMove:Tt,onTouchStart:xt,ref:Bt,tabIndex:f?-1:C,type:L,...A,...z,children:[i,bt?N.jsx(ie,{ref:mt,center:r,...B}):null]})});export{me as B,pt as T,_t as _,$t as a,G as b,zt as c,At as d,rt as e,nt as f,Ot as s,lt as u};