import{R as oe,r as re,y as Vt,A as Xt,bW as Kt,q as Te,s as Je,a0 as Zt,cd as et,I as tt,cg as _e}from"./index-e81753a9.js";import{c as Qt}from"./chat-service-9c87cc28.js";/**
 * @license
 * Copyright 2022 Google LLC. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0
 */function G(e){console.log(e)}const Jt=e=>new Promise((t,r)=>{const{adPath:n,onReady:o,onClosed:a,onGranted:i,onFailed:c}=e||{};window.googletag=window.googletag||{cmd:[]};let s,u;googletag.cmd.push(()=>{s=googletag.defineOutOfPageSlot(n,googletag.enums.OutOfPageFormat.REWARDED),s?(s.addService(googletag.pubads()),googletag.pubads().addEventListener("rewardedSlotReady",d=>{G("Rewarded ad slot is ready."),G("Rewarded ad is active."),d==null||d.makeRewardedVisible(),o==null||o(d)}),googletag.pubads().addEventListener("rewardedSlotClosed",()=>{G("Rewarded ad closed."),s&&googletag.destroySlots([s]),a==null||a(),t(u)}),googletag.pubads().addEventListener("rewardedSlotGranted",d=>{u=d.payload,G("Reward granted."),s?i==null||i(u):r()}),googletag.pubads().addEventListener("slotRenderEnded",d=>{d.slot===s&&d.isEmpty&&(c==null||c(),G("No ad returned for rewarded ad slot."),s&&googletag.destroySlots([s]),r())}),googletag.enableServices(),googletag.display(s)):(r(),G("Rewarded ads are not supported on this page."))})});var E=function(){return E=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},E.apply(this,arguments)};function ve(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var v="-ms-",ne="-moz-",m="-webkit-",mt="comm",xe="rule",He="decl",er="@import",yt="@keyframes",tr="@layer",bt=Math.abs,Ye=String.fromCharCode,Le=Object.assign;function rr(e,t){return R(e,0)^45?(((t<<2^R(e,0))<<2^R(e,1))<<2^R(e,2))<<2^R(e,3):0}function vt(e){return e.trim()}function N(e,t){return(e=t.exec(e))?e[0]:e}function p(e,t,r){return e.replace(t,r)}function he(e,t,r){return e.indexOf(t,r)}function R(e,t){return e.charCodeAt(t)|0}function Y(e,t,r){return e.slice(t,r)}function _(e){return e.length}function wt(e){return e.length}function te(e,t){return t.push(e),e}function nr(e,t){return e.map(t).join("")}function rt(e,t){return e.filter(function(r){return!N(r,t)})}var ke=1,q=1,St=0,O=0,C=0,K="";function Ae(e,t,r,n,o,a,i,c){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:ke,column:q,length:i,return:"",siblings:c}}function L(e,t){return Le(Ae("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function W(e){for(;e.root;)e=L(e.root,{children:[e]});te(e,e.siblings)}function or(){return C}function ar(){return C=O>0?R(K,--O):0,q--,C===10&&(q=1,ke--),C}function T(){return C=O<St?R(K,O++):0,q++,C===10&&(q=1,ke++),C}function F(){return R(K,O)}function ge(){return O}function Ce(e,t){return Y(K,e,t)}function Me(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ir(e){return ke=q=1,St=_(K=e),O=0,[]}function sr(e){return K="",e}function $e(e){return vt(Ce(O-1,je(e===91?e+2:e===40?e+1:e)))}function cr(e){for(;(C=F())&&C<33;)T();return Me(e)>2||Me(C)>3?"":" "}function ur(e,t){for(;--t&&T()&&!(C<48||C>102||C>57&&C<65||C>70&&C<97););return Ce(e,ge()+(t<6&&F()==32&&T()==32))}function je(e){for(;T();)switch(C){case e:return O;case 34:case 39:e!==34&&e!==39&&je(C);break;case 40:e===41&&je(e);break;case 92:T();break}return O}function dr(e,t){for(;T()&&e+C!==47+10;)if(e+C===42+42&&F()===47)break;return"/*"+Ce(t,O-1)+"*"+Ye(e===47?e:T())}function pr(e){for(;!Me(F());)T();return Ce(e,O)}function lr(e){return sr(me("",null,null,null,[""],e=ir(e),0,[0],e))}function me(e,t,r,n,o,a,i,c,s){for(var u=0,d=0,h=i,y=0,g=0,f=0,S=1,I=1,A=1,x=0,w="",k=o,P=a,b=n,l=w;I;)switch(f=x,x=T()){case 40:if(f!=108&&R(l,h-1)==58){he(l+=p($e(x),"&","&\f"),"&\f",bt(u?c[u-1]:0))!=-1&&(A=-1);break}case 34:case 39:case 91:l+=$e(x);break;case 9:case 10:case 13:case 32:l+=cr(f);break;case 92:l+=ur(ge()-1,7);continue;case 47:switch(F()){case 42:case 47:te(fr(dr(T(),ge()),t,r,s),s);break;default:l+="/"}break;case 123*S:c[u++]=_(l)*A;case 125*S:case 59:case 0:switch(x){case 0:case 125:I=0;case 59+d:A==-1&&(l=p(l,/\f/g,"")),g>0&&_(l)-h&&te(g>32?ot(l+";",n,r,h-1,s):ot(p(l," ","")+";",n,r,h-2,s),s);break;case 59:l+=";";default:if(te(b=nt(l,t,r,u,d,o,c,w,k=[],P=[],h,a),a),x===123)if(d===0)me(l,t,b,b,k,a,h,c,P);else switch(y===99&&R(l,3)===110?100:y){case 100:case 108:case 109:case 115:me(e,b,b,n&&te(nt(e,b,b,0,0,o,c,w,o,k=[],h,P),P),o,P,h,c,n?k:P);break;default:me(l,b,b,b,[""],P,0,c,P)}}u=d=g=0,S=A=1,w=l="",h=i;break;case 58:h=1+_(l),g=f;default:if(S<1){if(x==123)--S;else if(x==125&&S++==0&&ar()==125)continue}switch(l+=Ye(x),x*S){case 38:A=d>0?1:(l+="\f",-1);break;case 44:c[u++]=(_(l)-1)*A,A=1;break;case 64:F()===45&&(l+=$e(T())),y=F(),d=h=_(w=l+=pr(ge())),x++;break;case 45:f===45&&_(l)==2&&(S=0)}}return a}function nt(e,t,r,n,o,a,i,c,s,u,d,h){for(var y=o-1,g=o===0?a:[""],f=wt(g),S=0,I=0,A=0;S<n;++S)for(var x=0,w=Y(e,y+1,y=bt(I=i[S])),k=e;x<f;++x)(k=vt(I>0?g[x]+" "+w:p(w,/&\f/g,g[x])))&&(s[A++]=k);return Ae(e,t,r,o===0?xe:c,s,u,d,h)}function fr(e,t,r,n){return Ae(e,t,r,mt,Ye(or()),Y(e,2,-2),0,n)}function ot(e,t,r,n,o){return Ae(e,t,r,He,Y(e,0,n),Y(e,n+1,-1),n,o)}function xt(e,t,r){switch(rr(e,t)){case 5103:return m+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return m+e+e;case 4789:return ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return m+e+ne+e+v+e+e;case 5936:switch(R(e,t+11)){case 114:return m+e+v+p(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return m+e+v+p(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return m+e+v+p(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return m+e+v+e+e;case 6165:return m+e+v+"flex-"+e+e;case 5187:return m+e+p(e,/(\w+).+(:[^]+)/,m+"box-$1$2"+v+"flex-$1$2")+e;case 5443:return m+e+v+"flex-item-"+p(e,/flex-|-self/g,"")+(N(e,/flex-|baseline/)?"":v+"grid-row-"+p(e,/flex-|-self/g,""))+e;case 4675:return m+e+v+"flex-line-pack"+p(e,/align-content|flex-|-self/g,"")+e;case 5548:return m+e+v+p(e,"shrink","negative")+e;case 5292:return m+e+v+p(e,"basis","preferred-size")+e;case 6060:return m+"box-"+p(e,"-grow","")+m+e+v+p(e,"grow","positive")+e;case 4554:return m+p(e,/([^-])(transform)/g,"$1"+m+"$2")+e;case 6187:return p(p(p(e,/(zoom-|grab)/,m+"$1"),/(image-set)/,m+"$1"),e,"")+e;case 5495:case 3959:return p(e,/(image-set\([^]*)/,m+"$1$`$1");case 4968:return p(p(e,/(.+:)(flex-)?(.*)/,m+"box-pack:$3"+v+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+m+e+e;case 4200:if(!N(e,/flex-|baseline/))return v+"grid-column-align"+Y(e,t)+e;break;case 2592:case 3360:return v+p(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,N(n.props,/grid-\w+-end/)})?~he(e+(r=r[t].value),"span",0)?e:v+p(e,"-start","")+e+v+"grid-row-span:"+(~he(r,"span",0)?N(r,/\d+/):+N(r,/\d+/)-+N(e,/\d+/))+";":v+p(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return N(n.props,/grid-\w+-start/)})?e:v+p(p(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return p(e,/(.+)-inline(.+)/,m+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_(e)-1-t>6)switch(R(e,t+1)){case 109:if(R(e,t+4)!==45)break;case 102:return p(e,/(.+:)(.+)-([^]+)/,"$1"+m+"$2-$3$1"+ne+(R(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~he(e,"stretch",0)?xt(p(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return p(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,a,i,c,s,u){return v+o+":"+a+u+(i?v+o+"-span:"+(c?s:+s-+a)+u:"")+e});case 4949:if(R(e,t+6)===121)return p(e,":",":"+m)+e;break;case 6444:switch(R(e,R(e,14)===45?18:11)){case 120:return p(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+m+(R(e,14)===45?"inline-":"")+"box$3$1"+m+"$2$3$1"+v+"$2box$3")+e;case 100:return p(e,":",":"+v)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return p(e,"scroll-","scroll-snap-")+e}return e}function we(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function hr(e,t,r,n){switch(e.type){case tr:if(e.children.length)break;case er:case He:return e.return=e.return||e.value;case mt:return"";case yt:return e.return=e.value+"{"+we(e.children,n)+"}";case xe:if(!_(e.value=e.props.join(",")))return""}return _(r=we(e.children,n))?e.return=e.value+"{"+r+"}":""}function gr(e){var t=wt(e);return function(r,n,o,a){for(var i="",c=0;c<t;c++)i+=e[c](r,n,o,a)||"";return i}}function mr(e){return function(t){t.root||(t=t.return)&&e(t)}}function yr(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case He:e.return=xt(e.value,e.length,r);return;case yt:return we([L(e,{value:p(e.value,"@","@"+m)})],n);case xe:if(e.length)return nr(r=e.props,function(o){switch(N(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":W(L(e,{props:[p(o,/:(read-\w+)/,":"+ne+"$1")]})),W(L(e,{props:[o]})),Le(e,{props:rt(r,n)});break;case"::placeholder":W(L(e,{props:[p(o,/:(plac\w+)/,":"+m+"input-$1")]})),W(L(e,{props:[p(o,/:(plac\w+)/,":"+ne+"$1")]})),W(L(e,{props:[p(o,/:(plac\w+)/,v+"input-$1")]})),W(L(e,{props:[o]})),Le(e,{props:rt(r,n)});break}return""})}}var br={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},U=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",kt="active",At="data-styled-version",Pe="6.1.11",qe=`/*!sc*/
`,Ue=typeof window<"u"&&"HTMLElement"in window,vr=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY),Re=Object.freeze([]),V=Object.freeze({});function wr(e,t,r){return r===void 0&&(r=V),e.theme!==r.theme&&e.theme||t||r.theme}var Ct=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Sr=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,xr=/(^-|-$)/g;function at(e){return e.replace(Sr,"-").replace(xr,"")}var kr=/(a)(d)/gi,le=52,it=function(e){return String.fromCharCode(e+(e>25?39:97))};function Fe(e){var t,r="";for(t=Math.abs(e);t>le;t=t/le|0)r=it(t%le)+r;return(it(t%le)+r).replace(kr,"$1-$2")}var Ne,Pt=5381,H=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Rt=function(e){return H(Pt,e)};function Ar(e){return Fe(Rt(e)>>>0)}function Cr(e){return e.displayName||e.name||"Component"}function De(e){return typeof e=="string"&&!0}var It=typeof Symbol=="function"&&Symbol.for,Et=It?Symbol.for("react.memo"):60115,Pr=It?Symbol.for("react.forward_ref"):60112,Rr={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ir={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ot={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Er=((Ne={})[Pr]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ne[Et]=Ot,Ne);function st(e){return("type"in(t=e)&&t.type.$$typeof)===Et?Ot:"$$typeof"in e?Er[e.$$typeof]:Rr;var t}var Or=Object.defineProperty,Tr=Object.getOwnPropertyNames,ct=Object.getOwnPropertySymbols,_r=Object.getOwnPropertyDescriptor,$r=Object.getPrototypeOf,ut=Object.prototype;function Tt(e,t,r){if(typeof t!="string"){if(ut){var n=$r(t);n&&n!==ut&&Tt(e,n,r)}var o=Tr(t);ct&&(o=o.concat(ct(t)));for(var a=st(e),i=st(t),c=0;c<o.length;++c){var s=o[c];if(!(s in Ir||r&&r[s]||i&&s in i||a&&s in a)){var u=_r(t,s);try{Or(e,s,u)}catch{}}}}return e}function X(e){return typeof e=="function"}function Ve(e){return typeof e=="object"&&"styledComponentId"in e}function j(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function dt(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function ae(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Be(e,t,r){if(r===void 0&&(r=!1),!r&&!ae(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Be(e[n],t[n]);else if(ae(t))for(var n in t)e[n]=Be(e[n],t[n]);return e}function Xe(e,t){Object.defineProperty(e,"toString",{value:t})}function ie(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Nr=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,a=o;t>=a;)if((a<<=1)<0)throw ie(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var i=o;i<a;i++)this.groupSizes[i]=0}for(var c=this.indexOfGroup(t+1),s=(i=0,r.length);i<s;i++)this.tag.insertRule(c,r[i])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var a=n;a<o;a++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),a=o+n,i=o;i<a;i++)r+="".concat(this.tag.getRule(i)).concat(qe);return r},e}(),ye=new Map,Se=new Map,be=1,fe=function(e){if(ye.has(e))return ye.get(e);for(;Se.has(be);)be++;var t=be++;return ye.set(e,t),Se.set(t,e),t},Dr=function(e,t){be=t+1,ye.set(e,t),Se.set(t,e)},zr="style[".concat(U,"][").concat(At,'="').concat(Pe,'"]'),Lr=new RegExp("^".concat(U,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Mr=function(e,t,r){for(var n,o=r.split(","),a=0,i=o.length;a<i;a++)(n=o[a])&&e.registerName(t,n)},jr=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(qe),o=[],a=0,i=n.length;a<i;a++){var c=n[a].trim();if(c){var s=c.match(Lr);if(s){var u=0|parseInt(s[1],10),d=s[2];u!==0&&(Dr(d,u),Mr(e,d,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(c)}}};function Fr(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var _t=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(c){var s=Array.from(c.querySelectorAll("style[".concat(U,"]")));return s[s.length-1]}(r),a=o!==void 0?o.nextSibling:null;n.setAttribute(U,kt),n.setAttribute(At,Pe);var i=Fr();return i&&n.setAttribute("nonce",i),r.insertBefore(n,a),n},Br=function(){function e(t){this.element=_t(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,a=n.length;o<a;o++){var i=n[o];if(i.ownerNode===r)return i}throw ie(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),Gr=function(){function e(t){this.element=_t(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),Wr=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),pt=Ue,Hr={isServer:!Ue,useCSSOMInjection:!vr},$t=function(){function e(t,r,n){t===void 0&&(t=V),r===void 0&&(r={});var o=this;this.options=E(E({},Hr),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&Ue&&pt&&(pt=!1,function(a){for(var i=document.querySelectorAll(zr),c=0,s=i.length;c<s;c++){var u=i[c];u&&u.getAttribute(U)!==kt&&(jr(a,u),u.parentNode&&u.parentNode.removeChild(u))}}(this)),Xe(this,function(){return function(a){for(var i=a.getTag(),c=i.length,s="",u=function(h){var y=function(A){return Se.get(A)}(h);if(y===void 0)return"continue";var g=a.names.get(y),f=i.getGroup(h);if(g===void 0||f.length===0)return"continue";var S="".concat(U,".g").concat(h,'[id="').concat(y,'"]'),I="";g!==void 0&&g.forEach(function(A){A.length>0&&(I+="".concat(A,","))}),s+="".concat(f).concat(S,'{content:"').concat(I,'"}').concat(qe)},d=0;d<c;d++)u(d);return s}(o)})}return e.registerId=function(t){return fe(t)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(E(E({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new Wr(o):n?new Br(o):new Gr(o)}(this.options),new Nr(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(fe(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(fe(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(fe(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Yr=/&/g,qr=/^\s*\/\/.*$/gm;function Nt(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=Nt(r.children,t)),r})}function Ur(e){var t,r,n,o=e===void 0?V:e,a=o.options,i=a===void 0?V:a,c=o.plugins,s=c===void 0?Re:c,u=function(y,g,f){return f.startsWith(r)&&f.endsWith(r)&&f.replaceAll(r,"").length>0?".".concat(t):y},d=s.slice();d.push(function(y){y.type===xe&&y.value.includes("&")&&(y.props[0]=y.props[0].replace(Yr,r).replace(n,u))}),i.prefix&&d.push(yr),d.push(hr);var h=function(y,g,f,S){g===void 0&&(g=""),f===void 0&&(f=""),S===void 0&&(S="&"),t=S,r=g,n=new RegExp("\\".concat(r,"\\b"),"g");var I=y.replace(qr,""),A=lr(f||g?"".concat(f," ").concat(g," { ").concat(I," }"):I);i.namespace&&(A=Nt(A,i.namespace));var x=[];return we(A,gr(d.concat(mr(function(w){return x.push(w)})))),x};return h.hash=s.length?s.reduce(function(y,g){return g.name||ie(15),H(y,g.name)},Pt).toString():"",h}var Vr=new $t,Ge=Ur(),Dt=oe.createContext({shouldForwardProp:void 0,styleSheet:Vr,stylis:Ge});Dt.Consumer;oe.createContext(void 0);function lt(){return re.useContext(Dt)}var Xr=function(){function e(t,r){var n=this;this.inject=function(o,a){a===void 0&&(a=Ge);var i=n.name+a.hash;o.hasNameForId(n.id,i)||o.insertRules(n.id,i,a(n.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Xe(this,function(){throw ie(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Ge),this.name+t.hash},e}(),Kr=function(e){return e>="A"&&e<="Z"};function ft(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;Kr(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var zt=function(e){return e==null||e===!1||e===""},Lt=function(e){var t,r,n=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!zt(a)&&(Array.isArray(a)&&a.isCss||X(a)?n.push("".concat(ft(o),":"),a,";"):ae(a)?n.push.apply(n,ve(ve(["".concat(o," {")],Lt(a),!1),["}"],!1)):n.push("".concat(ft(o),": ").concat((t=o,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in br||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function B(e,t,r,n){if(zt(e))return[];if(Ve(e))return[".".concat(e.styledComponentId)];if(X(e)){if(!X(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return B(o,t,r,n)}var a;return e instanceof Xr?r?(e.inject(r,n),[e.getName(n)]):[e]:ae(e)?Lt(e):Array.isArray(e)?Array.prototype.concat.apply(Re,e.map(function(i){return B(i,t,r,n)})):[e.toString()]}function Zr(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(X(r)&&!Ve(r))return!1}return!0}var Qr=Rt(Pe),Jr=function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&Zr(t),this.componentId=r,this.baseHash=H(Qr,r),this.baseStyle=n,$t.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=j(o,this.staticRulesId);else{var a=dt(B(this.rules,t,r,n)),i=Fe(H(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,i)){var c=n(a,".".concat(i),void 0,this.componentId);r.insertRules(this.componentId,i,c)}o=j(o,i),this.staticRulesId=i}else{for(var s=H(this.baseHash,n.hash),u="",d=0;d<this.rules.length;d++){var h=this.rules[d];if(typeof h=="string")u+=h;else if(h){var y=dt(B(h,t,r,n));s=H(s,y+d),u+=y}}if(u){var g=Fe(s>>>0);r.hasNameForId(this.componentId,g)||r.insertRules(this.componentId,g,n(u,".".concat(g),void 0,this.componentId)),o=j(o,g)}}return o},e}(),Mt=oe.createContext(void 0);Mt.Consumer;var ze={};function en(e,t,r){var n=Ve(e),o=e,a=!De(e),i=t.attrs,c=i===void 0?Re:i,s=t.componentId,u=s===void 0?function(k,P){var b=typeof k!="string"?"sc":at(k);ze[b]=(ze[b]||0)+1;var l="".concat(b,"-").concat(Ar(Pe+b+ze[b]));return P?"".concat(P,"-").concat(l):l}(t.displayName,t.parentComponentId):s,d=t.displayName,h=d===void 0?function(k){return De(k)?"styled.".concat(k):"Styled(".concat(Cr(k),")")}(e):d,y=t.displayName&&t.componentId?"".concat(at(t.displayName),"-").concat(t.componentId):t.componentId||u,g=n&&o.attrs?o.attrs.concat(c).filter(Boolean):c,f=t.shouldForwardProp;if(n&&o.shouldForwardProp){var S=o.shouldForwardProp;if(t.shouldForwardProp){var I=t.shouldForwardProp;f=function(k,P){return S(k,P)&&I(k,P)}}else f=S}var A=new Jr(r,y,n?o.componentStyle:void 0);function x(k,P){return function(b,l,Z){var se=b.attrs,Bt=b.componentStyle,Gt=b.defaultProps,Wt=b.foldedComponentIds,Ht=b.styledComponentId,Yt=b.target,qt=oe.useContext(Mt),Ut=lt(),Ie=b.shouldForwardProp||Ut.shouldForwardProp,Ze=wr(l,qt,Gt)||V,$=function(ue,J,de){for(var ee,M=E(E({},J),{className:void 0,theme:de}),Oe=0;Oe<ue.length;Oe+=1){var pe=X(ee=ue[Oe])?ee(M):ee;for(var z in pe)M[z]=z==="className"?j(M[z],pe[z]):z==="style"?E(E({},M[z]),pe[z]):pe[z]}return J.className&&(M.className=j(M.className,J.className)),M}(se,l,Ze),ce=$.as||Yt,Q={};for(var D in $)$[D]===void 0||D[0]==="$"||D==="as"||D==="theme"&&$.theme===Ze||(D==="forwardedAs"?Q.as=$.forwardedAs:Ie&&!Ie(D,ce)||(Q[D]=$[D]));var Qe=function(ue,J){var de=lt(),ee=ue.generateAndInjectStyles(J,de.styleSheet,de.stylis);return ee}(Bt,$),Ee=j(Wt,Ht);return Qe&&(Ee+=" "+Qe),$.className&&(Ee+=" "+$.className),Q[De(ce)&&!Ct.has(ce)?"class":"className"]=Ee,Q.ref=Z,re.createElement(ce,Q)}(w,k,P)}x.displayName=h;var w=oe.forwardRef(x);return w.attrs=g,w.componentStyle=A,w.displayName=h,w.shouldForwardProp=f,w.foldedComponentIds=n?j(o.foldedComponentIds,o.styledComponentId):"",w.styledComponentId=y,w.target=n?o.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=n?function(P){for(var b=[],l=1;l<arguments.length;l++)b[l-1]=arguments[l];for(var Z=0,se=b;Z<se.length;Z++)Be(P,se[Z],!0);return P}({},o.defaultProps,k):k}}),Xe(w,function(){return".".concat(w.styledComponentId)}),a&&Tt(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function ht(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var gt=function(e){return Object.assign(e,{isCss:!0})};function tn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(X(e)||ae(e))return gt(B(ht(Re,ve([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?B(n):gt(B(ht(n,t)))}function We(e,t,r){if(r===void 0&&(r=V),!t)throw ie(1,t);var n=function(o){for(var a=[],i=1;i<arguments.length;i++)a[i-1]=arguments[i];return e(t,r,tn.apply(void 0,ve([o],a,!1)))};return n.attrs=function(o){return We(e,t,E(E({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return We(e,t,E(E({},r),o))},n}var jt=function(e){return We(en,e)},Ke=jt;Ct.forEach(function(e){Ke[e]=jt(e)});const rn=Ke.div`
  display: flex;
  justify-content: center;
  padding-top: 150px;
  padding-bottom: 200px;
  @media (max-width: 768px) {
    padding-top: 60px;
    padding-bottom: 110px;
  }
`,nn=Ke.div`
  max-width: 552px;
  background: #343535;
  border-radius: 20px;
  text-align: center;
  padding: 60px 40px;
  @media (max-width: 768px) {
    background: transparent;
  }
`,on="/google-ad",an="/google-ad/granted",Ft=e=>{var r,n,o;const t=(o=(r=e==null?void 0:e.id)==null?void 0:r.charAt)==null?void 0:o.call(r,((n=e==null?void 0:e.id)==null?void 0:n.length)-3);return["0","1","2","3","4","5","6","7"].includes(t)},sn=()=>{const[e]=Vt(),{profile:t}=re.useContext(Xt),{isMobile:r}=Kt(),[n,o]=re.useState(!1),[a,i]=re.useState(0),c=async()=>{var s,u,d,h;try{o(!0);const y=(s=e.get("adPath"))==null?void 0:s.replace("-","/");et.watchGoogleAd();const g=Date.now(),f=await tt.post(on);if(!((u=f==null?void 0:f.data)!=null&&u.adId))return _e.warning("Please come back later to watch the ad.");if(await Jt({adPath:y||"/23201357049/test_code"})){et.googleAdVideoTime(Date.now()-g),await tt.post(an,{secretId:Qt.obscure((d=f==null?void 0:f.data)==null?void 0:d.adId)});const I=((h=f==null?void 0:f.data)==null?void 0:h.amount)*2;i(a+I),_e.success(`${I} Message Quotas Received.`)}}catch{_e.error("Oops, the ad got lost! Please wait a bit or refresh the page.")}finally{o(!1)}};return!t||!Ft(t)?null:Te(rn,{children:Je(nn,{children:[Te("p",{style:{fontSize:r?18:20,fontWeight:600,width:r?250:"auto",paddingBottom:r?20:70},children:"🎊 Watch Ads to Earn Message Quota Rewards"}),Je("p",{style:{fontSize:r?14:20,paddingBottom:r?20:48},children:["Acquired: ",a]}),Te(Zt,{loading:n,type:"primary",block:!0,onClick:c,style:{height:50,fontWeight:700,fontSize:16},children:"Play"})]})})},dn=Object.freeze(Object.defineProperty({__proto__:null,default:sn,isInAdTestGroup:Ft},Symbol.toStringTag,{value:"Module"}));export{dn as a,Ft as i,Ke as p};