@adstore/templates 2.5.7 → 2.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @adstore/templates
2
2
 
3
+ ## 2.5.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Dont hide WideCard after click
8
+
9
+ ## 2.5.8
10
+
11
+ ### Patch Changes
12
+
13
+ - Fix DisplayText
14
+
3
15
  ## 2.5.7
4
16
 
5
17
  ### Patch Changes
@@ -1245,7 +1245,7 @@ const Io = Go(), ie = ({
1245
1245
  }), _;
1246
1246
  }, [o]), l = (c = e == null ? void 0 : e.replace(/script|\n/g, "")) == null ? void 0 : c.replace(/{{(.*?)}}/g, `<span style="${a}">$1</span>`);
1247
1247
  return i("div", b(f({}, n), {
1248
- style: t,
1248
+ style: f(f({}, t), n.style || {}),
1249
1249
  dangerouslySetInnerHTML: {
1250
1250
  __html: l
1251
1251
  }
@@ -2563,7 +2563,7 @@ const Du = (e, t) => {
2563
2563
  hide: d,
2564
2564
  clickHide: p,
2565
2565
  click: (...u) => {
2566
- d(), t.current.emit("click", ...u);
2566
+ t.current.emit("click", ...u);
2567
2567
  }
2568
2568
  };
2569
2569
  }, nf = 3700, rf = ae(({
@@ -2,4 +2,4 @@
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */(function(e){(function(){var t={}.hasOwnProperty;function o(){for(var n=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var a=typeof i;if(a==="string"||a==="number")n.push(i);else if(Array.isArray(i)){if(i.length){var l=o.apply(null,i);l&&n.push(l)}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){n.push(i.toString());continue}for(var c in i)t.call(i,c)&&i[c]&&n.push(c)}}}return n.join(" ")}e.exports?(o.default=o,e.exports=o):window.classNames=o})()})(Me);const S=W;var se,y,Y,ye,$e=0,kt=[],Ve=[],xt=_.options.__b,Ot=_.options.__r,Nt=_.options.diffed,Tt=_.options.__c,Ct=_.options.unmount;function Ae(e,t){_.options.__h&&_.options.__h(y,e,$e||t),$e=0;var o=y.__H||(y.__H={__:[],__h:[]});return e>=o.__.length&&o.__.push({__V:Ve}),o.__[e]}function ne(e){return $e=1,vn(Rt,e)}function vn(e,t,o){var n=Ae(se++,2);if(n.t=e,!n.__c&&(n.__=[o?o(t):Rt(void 0,t),function(l){var c=n.__N?n.__N[0]:n.__[0],d=n.t(c,l);c!==d&&(n.__N=[d,n.__[1]],n.__c.setState({}))}],n.__c=y,!y.u)){var r=function(l,c,d){if(!n.__c.__H)return!0;var u=n.__c.__H.__.filter(function(p){return p.__c});if(u.every(function(p){return!p.__N}))return!i||i.call(this,l,c,d);var f=!1;return u.forEach(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(f=!0)}}),!(!f&&n.__c.props===l)&&(!i||i.call(this,l,c,d))};y.u=!0;var i=y.shouldComponentUpdate,a=y.componentWillUpdate;y.componentWillUpdate=function(l,c,d){if(this.__e){var u=i;i=void 0,r(l,c,d),i=u}a&&a.call(this,l,c,d)},y.shouldComponentUpdate=r}return n.__N||n.__}function U(e,t){var o=Ae(se++,3);!_.options.__s&&lt(o.__H,t)&&(o.__=e,o.i=t,y.__H.__h.push(o))}function St(e,t){var o=Ae(se++,4);!_.options.__s&&lt(o.__H,t)&&(o.__=e,o.i=t,y.__h.push(o))}function X(e){return $e=5,Re(function(){return{current:e}},[])}function De(e,t,o){$e=6,St(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},o==null?o:o.concat(e))}function Re(e,t){var o=Ae(se++,7);return lt(o.__H,t)?(o.__V=e(),o.i=t,o.__h=e,o.__V):o.__}function gn(e,t){return $e=8,Re(function(){return e},t)}function hn(e){var t=y.context[e.__c],o=Ae(se++,9);return o.c=e,t?(o.__==null&&(o.__=!0,t.sub(y)),t.props.value):e.__}function mn(){for(var e;e=kt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Fe),e.__H.__h.forEach(ct),e.__H.__h=[]}catch(t){e.__H.__h=[],_.options.__e(t,e.__v)}}_.options.__b=function(e){y=null,xt&&xt(e)},_.options.__r=function(e){Ot&&Ot(e),se=0;var t=(y=e.__c).__H;t&&(Y===y?(t.__h=[],y.__h=[],t.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=Ve,o.__N=o.i=void 0})):(t.__h.forEach(Fe),t.__h.forEach(ct),t.__h=[])),Y=y},_.options.diffed=function(e){Nt&&Nt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(kt.push(t)!==1&&ye===_.options.requestAnimationFrame||((ye=_.options.requestAnimationFrame)||bn)(mn)),t.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==Ve&&(o.__=o.__V),o.i=void 0,o.__V=Ve})),Y=y=null},_.options.__c=function(e,t){t.some(function(o){try{o.__h.forEach(Fe),o.__h=o.__h.filter(function(n){return!n.__||ct(n)})}catch(n){t.some(function(r){r.__h&&(r.__h=[])}),t=[],_.options.__e(n,o.__v)}}),Tt&&Tt(e,t)},_.options.unmount=function(e){Ct&&Ct(e);var t,o=e.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{Fe(n)}catch(r){t=r}}),o.__H=void 0,t&&_.options.__e(t,o.__v))};var At=typeof requestAnimationFrame=="function";function bn(e){var t,o=function(){clearTimeout(n),At&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(o,100);At&&(t=requestAnimationFrame(o))}function Fe(e){var t=y,o=e.__c;typeof o=="function"&&(e.__c=void 0,o()),y=t}function ct(e){var t=y;e.__c=e.__(),y=t}function lt(e,t){return!e||e.length!==t.length||t.some(function(o,n){return o!==e[n]})}function Rt(e,t){return typeof t=="function"?t(e):t}function jt(e,t){for(var o in t)e[o]=t[o];return e}function It(e,t){for(var o in e)if(o!=="__source"&&!(o in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Lt(e){this.props=e}(Lt.prototype=new _.Component).isPureReactComponent=!0,Lt.prototype.shouldComponentUpdate=function(e,t){return It(this.props,e)||It(this.state,t)};var Et=_.options.__b;_.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Et&&Et(e)};var yn=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function le(e){function t(o){var n=jt({},o);return delete n.ref,e(n,o.ref||null)}return t.$$typeof=yn,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var $n=_.options.__e;_.options.__e=function(e,t,o,n){if(e.then){for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return t.__e==null&&(t.__e=o.__e,t.__k=o.__k),r.__c(e,t)}$n(e,t,o,n)};var Pt=_.options.unmount;function Bt(e,t,o){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=jt({},e)).__c!=null&&(e.__c.__P===o&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Bt(n,t,o)})),e}function Ht(e,t,o){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Ht(n,t,o)}),e.__c&&e.__c.__P===t&&(e.__e&&o.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=o)),e}function dt(){this.__u=0,this.t=null,this.__b=null}function zt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ge(){this.u=null,this.o=null}_.options.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Pt&&Pt(e)},(dt.prototype=new _.Component).__c=function(e,t){var o=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var r=zt(n.__v),i=!1,a=function(){i||(i=!0,o.__R=null,r?r(l):l())};o.__R=a;var l=function(){if(!--n.__u){if(n.state.__a){var d=n.state.__a;n.__v.__k[0]=Ht(d,d.__c.__P,d.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.t.pop();)u.forceUpdate()}},c=t.__h===!0;n.__u++||c||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},dt.prototype.componentWillUnmount=function(){this.t=[]},dt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Bt(this.__b,o,n.__O=n.__P)}this.__b=null}var r=t.__a&&_.createElement(_.Fragment,null,e.fallback);return r&&(r.__h=null),[_.createElement(_.Fragment,null,t.__a?null:e.children),r]};var Mt=function(e,t,o){if(++o[1]===o[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(o=e.u;o;){for(;o.length>3;)o.pop()();if(o[1]<o[0])break;e.u=o=o[2]}};(Ge.prototype=new _.Component).__a=function(e){var t=this,o=zt(t.__v),n=t.o.get(e);return n[0]++,function(r){var i=function(){t.props.revealOrder?(n.push(r),Mt(t,e,n)):r()};o?o(i):i()}},Ge.prototype.render=function(e){this.u=null,this.o=new Map;var t=_.toChildArray(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var o=t.length;o--;)this.o.set(t[o],this.u=[1,0,this.u]);return e.children},Ge.prototype.componentDidUpdate=Ge.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,o){Mt(e,o,t)})};var wn=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,kn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,xn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,On=/[A-Z0-9]/g,Nn=typeof document!="undefined",Tn=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};_.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(_.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Vt=_.options.event;function Cn(){}function Sn(){return this.cancelBubble}function An(){return this.defaultPrevented}_.options.event=function(e){return Vt&&(e=Vt(e)),e.persist=Cn,e.isPropagationStopped=Sn,e.isDefaultPrevented=An,e.nativeEvent=e};var Rn={enumerable:!1,configurable:!0,get:function(){return this.class}},Dt=_.options.vnode;_.options.vnode=function(e){typeof e.type=="string"&&function(t){var o=t.props,n=t.type,r={};for(var i in o){var a=o[i];if(!(i==="value"&&"defaultValue"in o&&a==null||Nn&&i==="children"&&n==="noscript"||i==="class"||i==="className")){var l=i.toLowerCase();i==="defaultValue"&&"value"in o&&o.value==null?i="value":i==="download"&&a===!0?a="":l==="ondoubleclick"?i="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||Tn(o.type)?l==="onfocus"?i="onfocusin":l==="onblur"?i="onfocusout":xn.test(i)?i=l:n.indexOf("-")===-1&&kn.test(i)?i=i.replace(On,"-$&").toLowerCase():a===null&&(a=void 0):l=i="oninput",l==="oninput"&&r[i=l]&&(i="oninputCapture"),r[i]=a}}n=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=_.toChildArray(o.children).forEach(function(c){c.props.selected=r.value.indexOf(c.props.value)!=-1})),n=="select"&&r.defaultValue!=null&&(r.value=_.toChildArray(o.children).forEach(function(c){c.props.selected=r.multiple?r.defaultValue.indexOf(c.props.value)!=-1:r.defaultValue==c.props.value})),o.class&&!o.className?(r.class=o.class,Object.defineProperty(r,"className",Rn)):(o.className&&!o.class||o.class&&o.className)&&(r.class=r.className=o.className),t.props=r}(e),e.$$typeof=wn,Dt&&Dt(e)};var Ft=_.options.__r;_.options.__r=function(e){Ft&&Ft(e),e.__c};var Gt=_.options.diffed;_.options.diffed=function(e){Gt&&Gt(e);var t=e.props,o=e.__e;o!=null&&e.type==="textarea"&&"value"in t&&t.value!==o.value&&(o.value=t.value==null?"":t.value)};function jn(){this.__data__=[],this.size=0}var In=jn;function Ln(e,t){return e===t||e!==e&&t!==t}var We=Ln,En=We;function Pn(e,t){for(var o=e.length;o--;)if(En(e[o][0],t))return o;return-1}var Ue=Pn,Bn=Ue,Hn=Array.prototype,zn=Hn.splice;function Mn(e){var t=this.__data__,o=Bn(t,e);if(o<0)return!1;var n=t.length-1;return o==n?t.pop():zn.call(t,o,1),--this.size,!0}var Vn=Mn,Dn=Ue;function Fn(e){var t=this.__data__,o=Dn(t,e);return o<0?void 0:t[o][1]}var Gn=Fn,Wn=Ue;function Un(e){return Wn(this.__data__,e)>-1}var qn=Un,Xn=Ue;function Kn(e,t){var o=this.__data__,n=Xn(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this}var Zn=Kn,Jn=In,Yn=Vn,Qn=Gn,er=qn,tr=Zn;function we(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}we.prototype.clear=Jn,we.prototype.delete=Yn,we.prototype.get=Qn,we.prototype.has=er,we.prototype.set=tr;var qe=we,or=qe;function nr(){this.__data__=new or,this.size=0}var rr=nr;function ar(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}var ir=ar;function sr(e){return this.__data__.get(e)}var cr=sr;function lr(e){return this.__data__.has(e)}var dr=lr,ur=typeof O=="object"&&O&&O.Object===Object&&O,Wt=ur,_r=Wt,pr=typeof self=="object"&&self&&self.Object===Object&&self,fr=_r||pr||Function("return this")(),ke=fr,vr=ke,gr=vr.Symbol,Ut=gr,qt=Ut,Xt=Object.prototype,hr=Xt.hasOwnProperty,mr=Xt.toString,je=qt?qt.toStringTag:void 0;function br(e){var t=hr.call(e,je),o=e[je];try{e[je]=void 0;var n=!0}catch(i){}var r=mr.call(e);return n&&(t?e[je]=o:delete e[je]),r}var yr=br,$r=Object.prototype,wr=$r.toString;function kr(e){return wr.call(e)}var xr=kr,Kt=Ut,Or=yr,Nr=xr,Tr="[object Null]",Cr="[object Undefined]",Zt=Kt?Kt.toStringTag:void 0;function Sr(e){return e==null?e===void 0?Cr:Tr:Zt&&Zt in Object(e)?Or(e):Nr(e)}var Xe=Sr;function Ar(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var de=Ar,Rr=Xe,jr=de,Ir="[object AsyncFunction]",Lr="[object Function]",Er="[object GeneratorFunction]",Pr="[object Proxy]";function Br(e){if(!jr(e))return!1;var t=Rr(e);return t==Lr||t==Er||t==Ir||t==Pr}var ut=Br,Hr=ke,zr=Hr["__core-js_shared__"],Mr=zr,_t=Mr,Jt=function(){var e=/[^.]+$/.exec(_t&&_t.keys&&_t.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Vr(e){return!!Jt&&Jt in e}var Dr=Vr,Fr=Function.prototype,Gr=Fr.toString;function Wr(e){if(e!=null){try{return Gr.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Ur=Wr,qr=ut,Xr=Dr,Kr=de,Zr=Ur,Jr=/[\\^$.*+?()[\]{}|]/g,Yr=/^\[object .+?Constructor\]$/,Qr=Function.prototype,ea=Object.prototype,ta=Qr.toString,oa=ea.hasOwnProperty,na=RegExp("^"+ta.call(oa).replace(Jr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ra(e){if(!Kr(e)||Xr(e))return!1;var t=qr(e)?na:Yr;return t.test(Zr(e))}var aa=ra;function ia(e,t){return e==null?void 0:e[t]}var sa=ia,ca=aa,la=sa;function da(e,t){var o=la(e,t);return ca(o)?o:void 0}var pt=da,ua=pt,_a=ke,pa=ua(_a,"Map"),Yt=pa,fa=pt,va=fa(Object,"create"),Ke=va,Qt=Ke;function ga(){this.__data__=Qt?Qt(null):{},this.size=0}var ha=ga;function ma(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ba=ma,ya=Ke,$a="__lodash_hash_undefined__",wa=Object.prototype,ka=wa.hasOwnProperty;function xa(e){var t=this.__data__;if(ya){var o=t[e];return o===$a?void 0:o}return ka.call(t,e)?t[e]:void 0}var Oa=xa,Na=Ke,Ta=Object.prototype,Ca=Ta.hasOwnProperty;function Sa(e){var t=this.__data__;return Na?t[e]!==void 0:Ca.call(t,e)}var Aa=Sa,Ra=Ke,ja="__lodash_hash_undefined__";function Ia(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Ra&&t===void 0?ja:t,this}var La=Ia,Ea=ha,Pa=ba,Ba=Oa,Ha=Aa,za=La;function xe(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}xe.prototype.clear=Ea,xe.prototype.delete=Pa,xe.prototype.get=Ba,xe.prototype.has=Ha,xe.prototype.set=za;var Ma=xe,eo=Ma,Va=qe,Da=Yt;function Fa(){this.size=0,this.__data__={hash:new eo,map:new(Da||Va),string:new eo}}var Ga=Fa;function Wa(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ua=Wa,qa=Ua;function Xa(e,t){var o=e.__data__;return qa(t)?o[typeof t=="string"?"string":"hash"]:o.map}var Ze=Xa,Ka=Ze;function Za(e){var t=Ka(this,e).delete(e);return this.size-=t?1:0,t}var Ja=Za,Ya=Ze;function Qa(e){return Ya(this,e).get(e)}var ei=Qa,ti=Ze;function oi(e){return ti(this,e).has(e)}var ni=oi,ri=Ze;function ai(e,t){var o=ri(this,e),n=o.size;return o.set(e,t),this.size+=o.size==n?0:1,this}var ii=ai,si=Ga,ci=Ja,li=ei,di=ni,ui=ii;function Oe(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}Oe.prototype.clear=si,Oe.prototype.delete=ci,Oe.prototype.get=li,Oe.prototype.has=di,Oe.prototype.set=ui;var _i=Oe,pi=qe,fi=Yt,vi=_i,gi=200;function hi(e,t){var o=this.__data__;if(o instanceof pi){var n=o.__data__;if(!fi||n.length<gi-1)return n.push([e,t]),this.size=++o.size,this;o=this.__data__=new vi(n)}return o.set(e,t),this.size=o.size,this}var mi=hi,bi=qe,yi=rr,$i=ir,wi=cr,ki=dr,xi=mi;function Ne(e){var t=this.__data__=new bi(e);this.size=t.size}Ne.prototype.clear=yi,Ne.prototype.delete=$i,Ne.prototype.get=wi,Ne.prototype.has=ki,Ne.prototype.set=xi;var Oi=Ne,Ni=pt,Ti=function(){try{var e=Ni(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),to=Ti,oo=to;function Ci(e,t,o){t=="__proto__"&&oo?oo(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}var ft=Ci,Si=ft,Ai=We;function Ri(e,t,o){(o!==void 0&&!Ai(e[t],o)||o===void 0&&!(t in e))&&Si(e,t,o)}var no=Ri;function ji(e){return function(t,o,n){for(var r=-1,i=Object(t),a=n(t),l=a.length;l--;){var c=a[e?l:++r];if(o(i[c],c,i)===!1)break}return t}}var Ii=ji,Li=Ii,Ei=Li(),Pi=Ei,Je={},Bi={get exports(){return Je},set exports(e){Je=e}};(function(e,t){var o=ke,n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,i=r&&r.exports===n,a=i?o.Buffer:void 0,l=a?a.allocUnsafe:void 0;function c(d,u){if(u)return d.slice();var f=d.length,p=l?l(f):new d.constructor(f);return d.copy(p),p}e.exports=c})(Bi,Je);var Hi=ke,zi=Hi.Uint8Array,Mi=zi,ro=Mi;function Vi(e){var t=new e.constructor(e.byteLength);return new ro(t).set(new ro(e)),t}var Di=Vi,Fi=Di;function Gi(e,t){var o=t?Fi(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}var Wi=Gi;function Ui(e,t){var o=-1,n=e.length;for(t||(t=Array(n));++o<n;)t[o]=e[o];return t}var qi=Ui,Xi=de,ao=Object.create,Ki=function(){function e(){}return function(t){if(!Xi(t))return{};if(ao)return ao(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}(),Zi=Ki;function Ji(e,t){return function(o){return e(t(o))}}var Yi=Ji,Qi=Yi,es=Qi(Object.getPrototypeOf,Object),io=es,ts=Object.prototype;function os(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||ts;return e===o}var so=os,ns=Zi,rs=io,as=so;function is(e){return typeof e.constructor=="function"&&!as(e)?ns(rs(e)):{}}var ss=is;function cs(e){return e!=null&&typeof e=="object"}var Ie=cs,ls=Xe,ds=Ie,us="[object Arguments]";function _s(e){return ds(e)&&ls(e)==us}var ps=_s,co=ps,fs=Ie,lo=Object.prototype,vs=lo.hasOwnProperty,gs=lo.propertyIsEnumerable,hs=co(function(){return arguments}())?co:function(e){return fs(e)&&vs.call(e,"callee")&&!gs.call(e,"callee")},uo=hs,ms=Array.isArray,_o=ms,bs=9007199254740991;function ys(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=bs}var po=ys,$s=ut,ws=po;function ks(e){return e!=null&&ws(e.length)&&!$s(e)}var vt=ks,xs=vt,Os=Ie;function Ns(e){return Os(e)&&xs(e)}var Ts=Ns,Le={},Cs={get exports(){return Le},set exports(e){Le=e}};function Ss(){return!1}var As=Ss;(function(e,t){var o=ke,n=As,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,l=a?o.Buffer:void 0,c=l?l.isBuffer:void 0,d=c||n;e.exports=d})(Cs,Le);var Rs=Xe,js=io,Is=Ie,Ls="[object Object]",Es=Function.prototype,Ps=Object.prototype,fo=Es.toString,Bs=Ps.hasOwnProperty,Hs=fo.call(Object);function zs(e){if(!Is(e)||Rs(e)!=Ls)return!1;var t=js(e);if(t===null)return!0;var o=Bs.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&fo.call(o)==Hs}var Ms=zs,Vs=Xe,Ds=po,Fs=Ie,Gs="[object Arguments]",Ws="[object Array]",Us="[object Boolean]",qs="[object Date]",Xs="[object Error]",Ks="[object Function]",Zs="[object Map]",Js="[object Number]",Ys="[object Object]",Qs="[object RegExp]",ec="[object Set]",tc="[object String]",oc="[object WeakMap]",nc="[object ArrayBuffer]",rc="[object DataView]",ac="[object Float32Array]",ic="[object Float64Array]",sc="[object Int8Array]",cc="[object Int16Array]",lc="[object Int32Array]",dc="[object Uint8Array]",uc="[object Uint8ClampedArray]",_c="[object Uint16Array]",pc="[object Uint32Array]",x={};x[ac]=x[ic]=x[sc]=x[cc]=x[lc]=x[dc]=x[uc]=x[_c]=x[pc]=!0,x[Gs]=x[Ws]=x[nc]=x[Us]=x[rc]=x[qs]=x[Xs]=x[Ks]=x[Zs]=x[Js]=x[Ys]=x[Qs]=x[ec]=x[tc]=x[oc]=!1;function fc(e){return Fs(e)&&Ds(e.length)&&!!x[Vs(e)]}var vc=fc;function gc(e){return function(t){return e(t)}}var hc=gc,Ye={},mc={get exports(){return Ye},set exports(e){Ye=e}};(function(e,t){var o=Wt,n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,i=r&&r.exports===n,a=i&&o.process,l=function(){try{var c=r&&r.require&&r.require("util").types;return c||a&&a.binding&&a.binding("util")}catch(d){}}();e.exports=l})(mc,Ye);var bc=vc,yc=hc,vo=Ye,go=vo&&vo.isTypedArray,$c=go?yc(go):bc,ho=$c;function wc(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var mo=wc,kc=ft,xc=We,Oc=Object.prototype,Nc=Oc.hasOwnProperty;function Tc(e,t,o){var n=e[t];(!(Nc.call(e,t)&&xc(n,o))||o===void 0&&!(t in e))&&kc(e,t,o)}var Cc=Tc,Sc=Cc,Ac=ft;function Rc(e,t,o,n){var r=!o;o||(o={});for(var i=-1,a=t.length;++i<a;){var l=t[i],c=n?n(o[l],e[l],l,o,e):void 0;c===void 0&&(c=e[l]),r?Ac(o,l,c):Sc(o,l,c)}return o}var jc=Rc;function Ic(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}var Lc=Ic,Ec=9007199254740991,Pc=/^(?:0|[1-9]\d*)$/;function Bc(e,t){var o=typeof e;return t=t==null?Ec:t,!!t&&(o=="number"||o!="symbol"&&Pc.test(e))&&e>-1&&e%1==0&&e<t}var bo=Bc,Hc=Lc,zc=uo,Mc=_o,Vc=Le,Dc=bo,Fc=ho,Gc=Object.prototype,Wc=Gc.hasOwnProperty;function Uc(e,t){var o=Mc(e),n=!o&&zc(e),r=!o&&!n&&Vc(e),i=!o&&!n&&!r&&Fc(e),a=o||n||r||i,l=a?Hc(e.length,String):[],c=l.length;for(var d in e)(t||Wc.call(e,d))&&!(a&&(d=="length"||r&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Dc(d,c)))&&l.push(d);return l}var qc=Uc;function Xc(e){var t=[];if(e!=null)for(var o in Object(e))t.push(o);return t}var Kc=Xc,Zc=de,Jc=so,Yc=Kc,Qc=Object.prototype,el=Qc.hasOwnProperty;function tl(e){if(!Zc(e))return Yc(e);var t=Jc(e),o=[];for(var n in e)n=="constructor"&&(t||!el.call(e,n))||o.push(n);return o}var ol=tl,nl=qc,rl=ol,al=vt;function il(e){return al(e)?nl(e,!0):rl(e)}var yo=il,sl=jc,cl=yo;function ll(e){return sl(e,cl(e))}var dl=ll,$o=no,ul=Je,_l=Wi,pl=qi,fl=ss,wo=uo,ko=_o,vl=Ts,gl=Le,hl=ut,ml=de,bl=Ms,yl=ho,xo=mo,$l=dl;function wl(e,t,o,n,r,i,a){var l=xo(e,o),c=xo(t,o),d=a.get(c);if(d){$o(e,o,d);return}var u=i?i(l,c,o+"",e,t,a):void 0,f=u===void 0;if(f){var p=ko(c),h=!p&&gl(c),$=!p&&!h&&yl(c);u=c,p||h||$?ko(l)?u=l:vl(l)?u=pl(l):h?(f=!1,u=ul(c,!0)):$?(f=!1,u=_l(c,!0)):u=[]:bl(c)||wo(c)?(u=l,wo(l)?u=$l(l):(!ml(l)||hl(l))&&(u=fl(c))):f=!1}f&&(a.set(c,u),r(u,c,n,i,a),a.delete(c)),$o(e,o,u)}var kl=wl,xl=Oi,Ol=no,Nl=Pi,Tl=kl,Cl=de,Sl=yo,Al=mo;function Oo(e,t,o,n,r){e!==t&&Nl(t,function(i,a){if(r||(r=new xl),Cl(i))Tl(e,t,a,o,Oo,n,r);else{var l=n?n(Al(e,a),i,a+"",e,t,r):void 0;l===void 0&&(l=i),Ol(e,a,l)}},Sl)}var Rl=Oo;function jl(e){return e}var No=jl;function Il(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}var Ll=Il,El=Ll,To=Math.max;function Pl(e,t,o){return t=To(t===void 0?e.length-1:t,0),function(){for(var n=arguments,r=-1,i=To(n.length-t,0),a=Array(i);++r<i;)a[r]=n[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=n[r];return l[t]=o(a),El(e,this,l)}}var Bl=Pl;function Hl(e){return function(){return e}}var zl=Hl,Ml=zl,Co=to,Vl=No,Dl=Co?function(e,t){return Co(e,"toString",{configurable:!0,enumerable:!1,value:Ml(t),writable:!0})}:Vl,Fl=Dl,Gl=800,Wl=16,Ul=Date.now;function ql(e){var t=0,o=0;return function(){var n=Ul(),r=Wl-(n-o);if(o=n,r>0){if(++t>=Gl)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Xl=ql,Kl=Fl,Zl=Xl,Jl=Zl(Kl),Yl=Jl,Ql=No,ed=Bl,td=Yl;function od(e,t){return td(ed(e,t,Ql),e+"")}var nd=od,rd=We,ad=vt,id=bo,sd=de;function cd(e,t,o){if(!sd(o))return!1;var n=typeof t;return(n=="number"?ad(o)&&id(t,o.length):n=="string"&&t in o)?rd(o[t],e):!1}var ld=cd,dd=nd,ud=ld;function _d(e){return dd(function(t,o){var n=-1,r=o.length,i=r>1?o[r-1]:void 0,a=r>2?o[2]:void 0;for(i=e.length>3&&typeof i=="function"?(r--,i):void 0,a&&ud(o[0],o[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++n<r;){var l=o[n];l&&e(t,l,n,i)}return t})}var pd=_d,fd=Rl,vd=pd;vd(function(e,t,o){fd(e,t,o)});const ue=(e,t,o)=>Array.isArray(e)?e.map((n,r)=>{const i=[o,r].filter(z).join(".");return ue(t(r,n,i),t,i)}):typeof e=="object"&&e?Object.entries(e).reduce((n,[r,i])=>{const a=[o,r].filter(z).join(".");return n[r]=ue(t(r,i,a),t,a),n},{}):e,gd=e=>{const t=document.getElementsByTagName("head")[0],o=document.createElement("link");Object.entries(e).forEach(([n,r])=>o.setAttribute(n,r)),t.appendChild(o)},Qe=()=>{let e={};return{on:(a,l)=>{a in e?e[a].push(l):e[a]=[l]},has:a=>a in e,get:a=>e[a],emit:(a,...l)=>a in e?e[a].map(c=>c(...l)).filter(Boolean):[],reset:()=>e={}}},hd=()=>({name:null,logo:null}),So=()=>({name:null,logo:null}),md=()=>({factor:null,type:null,outcome:null,value:null}),bd=()=>({w1:null,x:null,w2:null}),yd=()=>({w1:null,w2:null}),$d=()=>({one_x_two:bd(),one_two:yd()}),Ao=(e,t)=>{var n;const o={slug:(e==null?void 0:e.slug)||null,sportSlug:(e==null?void 0:e.sport_slug)||null,matchDate:(e==null?void 0:e.match_date)||null,teams:v({},(e==null?void 0:e.teams)||{0:So(),1:So()}),league:(e==null?void 0:e.unique_tournament)||hd(),prediction:(e==null?void 0:e.prediction)||md(),isNational:(n=e==null?void 0:e.is_national)!=null?n:null};if(t!=null&&t.markets){const r=t.markets.reduce((i,a)=>(i[a]=b(e||{},`markets.${a}`,$d()[a||"one_two"]),i),{});Ee(o,"markets",r)}return o},wd=(e=300,t)=>new Promise(o=>setTimeout(()=>o(t),e)),kd=e=>!e&&e==null,z=e=>!kd(e),Ro=e=>typeof e!="object"&&typeof e!="function"||e===null,xd=e=>typeof e=="object"&&!Array.isArray(e)&&z(e),Od=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,o)=>(o?"-":"")+t.toLowerCase()),re=(e,...t)=>t.reduce((o,n)=>(o[n]=e[n],o),{});function J(e,...t){const o=v({},e);return t.forEach(n=>{delete o[n]}),o}const b=(e,t,o)=>{if(!t)return;const r=(Array.isArray(t)?t:t.match(/([^[.\]])+/g)).reduce((i,a)=>i&&i[a],e);return r===void 0?o:r},Ee=(e,t,o)=>{const n=Array.isArray(t)?t:t.match(/([^[.\]])+/g);return n.reduce((r,i,a)=>(r[i]===void 0&&(r[i]={}),a===n.length-1&&(r[i]=o),r[i]),e)},Nd=e=>{const t=e.slice(1);t.length===3&&(e=t.split("").map(n=>`${n}${n}`).join(""));const o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return o?{r:parseInt(o[1],16),g:parseInt(o[2],16),b:parseInt(o[3],16)}:void 0},jo=(...e)=>e.map(t=>JSON.stringify(t)).every((t,o,n)=>t===n[0]),Td=e=>"id"in e&&"root"in e,Cd=(e,t=1)=>e.replace(")",`, ${t})`).replace("rgb","rgba"),Io=(e,t,o)=>ue(e,(n,r,i)=>Ro(r)||Array.isArray(r)&&r.every(Ro)?o?o(n,[r,b(t,i)],i)?b(t,i,r):r:b(t,i,r):r),Sd=(e,t)=>{try{ue(e,(o,n,r)=>{if(t(o,n,r))throw{key:o,value:n,path:r};return n})}catch(o){return o}},Ad=(e,t)=>{const o=[];return ue(e,(n,r,i)=>(t(n,r,i,o)&&o.push({key:n,value:r,path:i}),r)),o},Lo=["desktop","laptop","tablet","mobile"],Rd={mobile:320,tablet:768,laptop:1024,desktop:1920},N={root:"_root_1i41t_1",icon:"_icon_1i41t_5",iconTarget:"_iconTarget_1i41t_17",body:"_body_1i41t_23",bodyOpen:"_bodyOpen_1i41t_31",simpleGift_in:"_simpleGift_in_1i41t_1",close:"_close_1i41t_44",arrow:"_arrow_1i41t_58",container:"_container_1i41t_69",inner:"_inner_1i41t_75",logo:"_logo_1i41t_82",text:"_text_1i41t_89",button:"_button_1i41t_96",buttonAnimated:"_buttonAnimated_1i41t_105",increase:"_increase_1i41t_1",legalGap:"_legalGap_1i41t_109",legalOpen:"_legalOpen_1i41t_113",legal:"_legal_1i41t_109",legalText:"_legalText_1i41t_141",legalButton:"_legalButton_1i41t_159",fadein:"_fadein_1i41t_1",pulse:"_pulse_1i41t_1",gradient:"_gradient_1i41t_1",wiggle:"_wiggle_1i41t_1"};var jd=0;function s(e,t,o,n,r,i){var a,l,c={};for(l in t)l=="ref"?a=t[l]:c[l]=t[l];var d={type:e,props:c,key:o,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--jd,__source:r,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(l in a)c[l]===void 0&&(c[l]=a[l]);return _.options.vnode&&_.options.vnode(d),d}const Eo=_.createContext(),_e=({children:e,value:t})=>s(Eo.Provider,{value:t,children:e}),pe=e=>a=>ze(this,null,function*(){var l=a,{target:t,id:o,ref:n,state:r}=l,i=wt(l,["target","id","ref","state"]);if(!("ResizeObserver"in window)){const c=yield Promise.resolve().then(()=>Du);window.ResizeObserver=c.ResizeObserver}return _.render(s(_e,{value:r,children:_.cloneElement(e,v({ref:n,id:o},i))}),t)}),q=()=>hn(Eo),Id=(e={})=>typeof e=="object"&&z(e)&&Lo.every(t=>t in e),Ld=(e,t)=>e&&ue(e,(o,n)=>{if(Id(n)){const r=n[t];return r&&"parent"in r&&z(r.parent)?v(v({},n[r.parent]),J(r,"parent")):r}return n}),fe=(e,t)=>Ld(e,t),Te=({id:e,targetRef:t,parentKey:o="device-container",breakpoints:n=Rd})=>{const[r,i]=ne("desktop"),a=l=>{var f;const c=l.getBoundingClientRect().width||0,d=Object.entries(v({},n)).sort(([p,h],[$,m])=>h-m),u=((f=d.find(([p,h],$)=>{const[m,T]=d[$+1]||[];return c>=h&&c<T}))==null?void 0:f[0])||"desktop";i(u)};return St(()=>{const l=t.current.closest(`[data-${o}='${e}']`)||document.body;l&&(new ResizeObserver(()=>a(l)).observe(l),a(l))},[]),r},Po=e=>console.warn(`[Adstore-templates Deprecated]: ${e}`),et=(e,t)=>z(e)&&!(typeof e=="number"?e.toString():e).includes(t)?`${e}${t}`:e,Ed=e=>e.startsWith("px_"),Pd=e=>e.startsWith("percent_"),Bd=(e,t)=>{let o=e,n=t;return Ed(o)&&(o=o.replace("px_",""),n=et(t,"px")),Pd(o)&&(o=o.replace("percent_",""),n=et(t,"%")),{key:o,value:n}},Hd="-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji'",zd=["borderWidth","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","minHeight","minWidth","maxWidth","maxHeight","fontSize","height","width","letterSpacing","fontSize","left","right","top","bottom","marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"],Bo=e=>{const t=Object.keys(e);return(t.includes("innerHTML")||t.includes("innerText"))&&console.warn('Warning! InnerHTML and innerText is deprecated. Use "children" property.'),typeof e!="object"?e:Object.entries(e).reduce((o,[n,r])=>{zd.includes(n)&&(r=et(r,"px"));const{key:i,value:a}=Bd(n,r);if(xd(a)&&(o[i]=Bo(a)),o[i]=a,i==="hidden"&&a)return o.display="none",o;if(i==="innerHTML"&&(o.innerHTML=z(a)?`${a}`:""),i==="innerText"&&(o.innerText=z(a)?`${a}`:""),i==="children"&&(o.children=typeof a=="string"?z(a)?`${a}`:"":a),i.includes("borderWidth")&&(o.borderStyle="solid"),i==="corner"&&(o.borderRadius=et(a,"px")),i==="backgroundFit"&&(Po("Property 'backgroundFit' is deprecated. Use 'objectFit' instead."),o.backgroundSize=a,o.objectFit=a),i==="backgroundImage"&&z(a)&&(o.backgroundImage=`url(${a})`,o.backgroundRepeat="no-repeat",o.imageSource=a,Po("Property 'backgroundImage' is deprecated. Use 'imageSource' instead.")),i==="backgroundColorOpacity"&&z(o.backgroundColorOpacity)&&z(o.backgroundColor)){const l=Nd(o.backgroundColor);l&&(o.backgroundColor=Cd(`rgb(${l.r}, ${l.g}, ${l.b})`,+o.backgroundColorOpacity/100))}return i==="fontFamily"&&/auto/i.test(a)&&(o.fontFamily=Hd),i==="isBold"&&(o.fontWeight=a?"bold":"initial"),i==="isItalic"&&(o.fontStyle=a?"italic":"initial"),i==="isThrough"&&(o.textDecoration=a?"line-through":"initial"),o},e)},Md=e=>typeof e=="object"&&!Array.isArray(e)&&"parent"in e,V=e=>z(e)?Object.entries(e).reduce((t,[o,n])=>(t[o]=Md(n)?Bo(v({},e[o])):n,t),{}):e,Vd=e=>e in document.createElement("div").style||e.startsWith("--"),ae=r=>{var i=r,{children:e,typography:t,accentTypography:o}=i,n=wt(i,["children","typography","accentTypography"]);var c;const a=Re(()=>{if(!o)return{};let d="";return Object.entries(o).forEach(([u,f])=>{Vd(u)&&(d+=`${Od(u)}: ${f}; `)}),d},[o]),l=(c=e==null?void 0:e.replace(/script|\n/g,""))==null?void 0:c.replace(/{{(.*?)}}/g,`<span style="${a}">$1</span>`);return s("div",k(v({},n),{style:t,dangerouslySetInnerHTML:{__html:l}}))},Ho=()=>{const[e,t]=ne(!1);return[e,()=>t(o=>!o)]},Ce=()=>s("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",children:s("path",{d:"M17.659 4.929a1 1 0 1 1 1.414 1.414L13.416 12l5.657 5.657a1 1 0 0 1-1.415 1.414l-5.656-5.657-5.657 5.657a1 1 0 0 1-1.414-1.414L10.587 12 4.931 6.343A1 1 0 1 1 6.345 4.93l5.657 5.657 5.656-5.657Z",fill:"currentColor"})}),gt=()=>s("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M5.95312 2.15L7.04063 4H7H4.75C4.05937 4 3.5 3.44062 3.5 2.75C3.5 2.05938 4.05937 1.5 4.75 1.5H4.81875C5.28437 1.5 5.71875 1.74688 5.95312 2.15ZM2 2.75C2 3.2 2.10938 3.625 2.3 4H1C0.446875 4 0 4.44688 0 5V7C0 7.55312 0.446875 8 1 8H15C15.5531 8 16 7.55312 16 7V5C16 4.44688 15.5531 4 15 4H13.7C13.8906 3.625 14 3.2 14 2.75C14 1.23125 12.7688 0 11.25 0H11.1812C10.1844 0 9.25938 0.528125 8.75313 1.3875L8 2.67188L7.24687 1.39062C6.74062 0.528125 5.81562 0 4.81875 0H4.75C3.23125 0 2 1.23125 2 2.75ZM12.5 2.75C12.5 3.44062 11.9406 4 11.25 4H9H8.95938L10.0469 2.15C10.2844 1.74688 10.7156 1.5 11.1812 1.5H11.25C11.9406 1.5 12.5 2.05938 12.5 2.75ZM1 9V14.5C1 15.3281 1.67188 16 2.5 16H7V9H1ZM9 16H13.5C14.3281 16 15 15.3281 15 14.5V9H9V16Z",fill:"currentColor"})}),Dd=e=>({fade:`${e.fade} 2s linear infinite`,pulse:`${e.pulse} .3s linear 0s infinite alternate forwards`,wiggle:`${e.wiggle} 2s linear infinite`,gradient:`${e.gradient} 3s ease infinite`}),zo=(e,t)=>{var u,f,p,h,$,m,T,L,E,C,P,B,G;const o=Dd(t),n=V(e),r=(u=n==null?void 0:n.icon)==null?void 0:u.hasIcon,i={left:`${+(((f=e==null?void 0:e.container)==null?void 0:f.left)||0)*-1+8}px`,backgroundColor:(p=n==null?void 0:n.container)==null?void 0:p.backgroundColor,borderTopWidth:(h=n==null?void 0:n.container)==null?void 0:h.borderWidth,borderTopColor:($=n==null?void 0:n.container)==null?void 0:$.borderColor,borderTopStyle:"solid",borderLeftWidth:(m=n==null?void 0:n.container)==null?void 0:m.borderWidth,borderLeftColor:(T=n==null?void 0:n.container)==null?void 0:T.borderColor,borderLeftStyle:"solid"},a={left:(L=n==null?void 0:n.container)==null?void 0:L.left},l=(((E=n==null?void 0:n.icon)==null?void 0:E.animations)||[]).map(w=>o[w]).join(", "),c=z((C=n==null?void 0:n.icon)==null?void 0:C.gradientColor)&&((P=n==null?void 0:n.icon)!=null&&P.animations.includes("gradient"))?{background:`linear-gradient(-90deg, ${(B=n.icon)==null?void 0:B.backgroundColor} 0%, ${(G=n==null?void 0:n.icon)==null?void 0:G.gradientColor} 100%) 0% 0% / 400% 400%`,backgroundSize:"400% 400%"}:n==null?void 0:n.icon,d=v(k(v({},(n==null?void 0:n.icon)||{}),{animation:l}),c);return{hasIcon:r,arrowRules:i,bodyRules:a,iconRules:d}},ve=e=>{const t=new Set([]);ue(e,(n,r)=>(n==="fontFamily"&&t.add(r),r));const o=Re(()=>Array.from(t.values()).filter(n=>!/auto/i.test(n)).map(n=>({rel:"stylesheet",href:`https://fonts.googleapis.com/css?family=${n}:300,400,500,700&display=swap`})),[t]);U(()=>{o.forEach(gd)},[o])},Q=["backgroundColor","backgroundColorOpacity","backgroundImage","backgroundSize","backgroundRepeat"],Fd=["borderWidth","borderColor","borderStyle"],Mo=["imageSource","objectFit"],tt=["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"],Gd=({delay:e,onOpen:t,onAutoOpen:o})=>{const[n,r]=ne(!1),i=X(null),a=c=>{clearTimeout(i.current),i.current=null},l=()=>{a(i.current),r(c=>!c)};return U(()=>(i.current=setTimeout(()=>{r(!0),o&&o()},e||1e3),()=>a(i.current)),[e]),U(()=>{n&&!i.current&&t&&t()},[n]),{isOpen:n,toggle:l}},Vo=({ref:e,openDelay:t})=>{const o=X(Qe()),n=c=>o.current.on("open",c),r=c=>o.current.on("click",c),i=c=>o.current.on("autoOpen",c),{isOpen:a,toggle:l}=Gd({delay:t,onOpen:()=>o.current.emit("open"),onAutoOpen:()=>o.current.emit("autoOpen")});return De(e,()=>({onOpen:n,onClick:r,onAutoOpen:i,resetListeners:o.current.reset})),U(()=>o.current.reset,[]),{isOpen:a,toggle:l,click:(...c)=>o.current.emit("click",...c)}},Wd=le(({id:e},t)=>{var L,E,C,P,B,G,w,M,H;const o=X(null),[n,r]=Ho(),i=q(),a=Te({targetRef:o,id:e}),l=fe(i,a),c=V(l),{hasIcon:d,iconRules:u,bodyRules:f,arrowRules:p}=zo(l,{fade:N.fadein,pulse:N.pulse,wiggle:N.wiggle,gradient:N.gradient}),{isOpen:h,toggle:$,click:m}=Vo({ref:t,openDelay:(L=l==null?void 0:l.container)==null?void 0:L.delay});ve(l);const T=n?re(c.container,...Fd):{};return s("div",{className:S(N.root,{[N.legalOpen]:n}),ref:o,children:[s("div",{className:N.icon,style:u,onClick:$,children:d&&s("div",{className:N.iconTarget,children:s(gt,{})})}),s("div",{className:S(N.body,{[N.bodyOpen]:h}),style:f,children:[s("div",{className:N.arrow,style:p}),s("div",{className:N.close,style:c==null?void 0:c.close,onClick:$,children:s(Ce,{})}),s("div",{className:N.container,style:c==null?void 0:c.container,children:[s("a",{href:(E=c==null?void 0:c.root)==null?void 0:E.offer,target:"_blank",rel:"nofollow noopener noreferrer",onClick:()=>m(c.id),children:[s("div",{className:N.inner,children:[s("div",{className:N.logo,style:c==null?void 0:c.logo}),s(ae,{className:N.text,style:c==null?void 0:c.text,typography:(C=c.text)==null?void 0:C.typography,accentTypography:(P=c.text)==null?void 0:P.accentTypography,children:(B=c==null?void 0:c.text)==null?void 0:B.children})]}),s("div",{className:S(N.button,{[N.buttonAnimated]:c==null?void 0:c.button.isAnimated}),style:c==null?void 0:c.button,children:(G=c==null?void 0:c.button)==null?void 0:G.children})]}),s("div",{className:N.legalGap}),s("div",{className:N.legal,style:v(v({},c==null?void 0:c.legal),T),children:s("span",{className:N.legalText,children:s("span",{children:[s("span",{children:(w=c==null?void 0:c.legal)==null?void 0:w.children}),s("span",{className:N.legalButton,onClick:r,children:n?(M=c==null?void 0:c.legal)==null?void 0:M.buttonOpenText:(H=c==null?void 0:c.legal)==null?void 0:H.buttonHideText})]})})})]})]})]})}),Ud=pe(s(Wd,{})),A={root:"_root_g8256_1",icon:"_icon_g8256_5",iconTarget:"_iconTarget_g8256_17",body:"_body_g8256_23",desktop:"_desktop_g8256_30",tablet:"_tablet_g8256_30",laptop:"_laptop_g8256_30",bodyOpen:"_bodyOpen_g8256_34",complexGift_in:"_complexGift_in_g8256_1",arrow:"_arrow_g8256_47",container:"_container_g8256_57",promotion:"_promotion_g8256_62",close:"_close_g8256_68",head:"_head_g8256_82",headIcon:"_headIcon_g8256_88",headTitle:"_headTitle_g8256_94",inner:"_inner_g8256_101",fadein:"_fadein_g8256_1",pulse:"_pulse_g8256_1",gradient:"_gradient_g8256_1",wiggle:"_wiggle_g8256_1"},ee={root:"_root_1y96a_1",body:"_body_1y96a_30",bodyInner:"_bodyInner_1y96a_38",line:"_line_1y96a_43",text:"_text_1y96a_53",button:"_button_1y96a_61",logo:"_logo_1y96a_73",variant2:"_variant2_1y96a_79",buttonText:"_buttonText_1y96a_83",legal:"_legal_1y96a_100"},qd=({onClick:e})=>{var n,r,i,a,l,c,d;const t=q(),o=V(t);return s("a",{href:(n=o.root)==null?void 0:n.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:S(ee.root,{[ee.variant2]:((r=o.root)==null?void 0:r.variant)==="variant2"}),style:o.root,onClick:()=>e(o.id),children:[s("div",{className:ee.body,children:[s("div",{className:ee.line,style:o.line}),s("div",{className:ee.bodyInner,children:[s("div",{className:ee.logo,style:o.logo}),s("div",{className:ee.text,style:o.text,children:s(ae,{typography:(i=o.text)==null?void 0:i.typography,accentTypography:(a=o.text)==null?void 0:a.accentTypography,children:(l=o.text)==null?void 0:l.children})})]}),s("div",{className:ee.button,style:o.button,children:[s("div",{className:ee.logo,style:o.logo}),s("div",{className:ee.buttonText,children:(c=o.button)==null?void 0:c.children})]})]}),s("div",{className:ee.legal,style:o.legal,children:(d=o.legal)==null?void 0:d.children})]})},Xd=le(({id:e},t)=>{var L,E,C,P;const o=X(null),n=q(),r=Te({targetRef:o,id:e}),i=fe(n,r),a=V(i),{isOpen:l,click:c,toggle:d}=Vo({ref:t,openDelay:(L=i==null?void 0:i.container)==null?void 0:L.delay});ve(i);const{hasIcon:u,iconRules:f,bodyRules:p,arrowRules:h}=zo(i,{fade:A.fadein,pulse:A.pulse,wiggle:A.wiggle,gradient:A.gradient}),$=(E=a==null?void 0:a.title)==null?void 0:E.hasIcon,m=re(a==null?void 0:a.title,...tt),T=J(a==null?void 0:a.title,...tt);return s("div",{ref:o,className:S(A.root,{[A.desktop]:r==="desktop",[A.laptop]:r==="laptop",[A.tablet]:r==="tablet"}),children:[s("div",{className:A.icon,style:f,onClick:d,children:u&&s("div",{className:A.iconTarget,children:s(gt,{})})}),s("div",{className:S(A.body,{[A.bodyOpen]:l}),style:p,children:[s("div",{className:A.arrow,style:h}),s("div",{className:A.container,style:a.container,children:[s("div",{className:A.close,style:a.close,onClick:d,children:s(Ce,{})}),s("div",{className:A.head,style:m,children:[$&&s("div",{className:A.headIcon,style:re(a.title,"color"),children:s(gt,{})}),s("div",{className:A.headTitle,style:T,children:(C=a.title)==null?void 0:C.children})]}),s("div",{className:A.inner,children:(a.children||[]).map(B=>s(_e,{value:B,children:s(qd,{onClick:c})}))}),s("div",{className:A.promotion,style:a.promotion,children:(P=a.promotion)==null?void 0:P.children})]})]})]})}),Kd=pe(s(Xd,{})),K={root:"_root_18vic_1",background:"_background_18vic_11",content:"_content_18vic_19",laptop:"_laptop_18vic_29",desktop:"_desktop_18vic_33",wrapper:"_wrapper_18vic_37",overlay:"_overlay_18vic_41",close:"_close_18vic_47",body:"_body_18vic_56",logo:"_logo_18vic_65",text:"_text_18vic_71",button:"_button_18vic_75",legal:"_legal_18vic_90"},ge=e=>e&&{left:"flex-start",center:"center",right:"flex-end"}[e],Zd={root:"_root_mj8hr_1"},Jd=()=>{var o,n,r;const e=q(),t=V(e);return s("div",{className:Zd.root,style:t.root,children:s(ae,{typography:(o=t.root)==null?void 0:o.typography,accentTypography:(n=t.root)==null?void 0:n.accentTypography,children:(r=t==null?void 0:t.root)==null?void 0:r.children})})},ht=(e,t=0)=>{const o=X(Qe()),[n,r]=ne(!1),[i,a]=ne(),[l,c]=ne(!1),d=m=>o.current.on("visible",m),u=m=>o.current.on("click",m),f=m=>o.current.on("clickHide",m),p=()=>ze(this,null,function*(){yield wd(+t),r(!0)}),h=()=>r(!1),$=()=>{o.current.emit("clickHide"),h()};return U(()=>{l&&o.current.emit("visible",n)},[n,l]),De(e,()=>({onVisible:d,onClick:u,onClickHide:f,show:p,hide:h,setApiHost:a,resetListeners:o.current.reset})),U(()=>o.current.reset,[]),{isReady:l,isOpen:n,apiHost:i,show:p,hide:h,clickHide:$,setIsReady:c,click:(...m)=>{h(),o.current.emit("click",...m)}}};function Yd(e){return!(!e.complete||typeof e.naturalWidth!="undefined"&&e.naturalWidth===0)}const Qd=le(({id:e,className:t},o)=>{var P,B,G,w,M,H;const n=X(null),r=X(null),i=Te({targetRef:n,id:e}),a=q(),l=fe(a,i);ve(l),Ee(l,"button.percent_width",(P=l==null?void 0:l.button)==null?void 0:P.width),Ee(l,"legal.percent_width",(B=l==null?void 0:l.legal)==null?void 0:B.width);const c=V(l),d=b(c,"root.delay",0),{isOpen:u,isReady:f,setIsReady:p,clickHide:h,click:$}=ht(o,d);U(()=>{const Z=r.current;if(!Z)return;if(Yd(Z)){p(!0);return}const be=()=>p(!0);return Z.addEventListener("load",be),()=>{Z.removeEventListener("load",be)}},[c]);const m={alignItems:ge((G=c.root)==null?void 0:G.align)},T=k(v({},c==null?void 0:c.button),{justifyContent:ge((w=c.root)==null?void 0:w.textAlign)}),L=k(v({},c==null?void 0:c.legal),{justifyContent:ge((M=c.root)==null?void 0:M.textAlign)}),E=J(c.root,...Mo,...Q),C=re(c.root,...Mo);return s("div",{className:S(K.root,t),ref:n,style:{display:u&&f?"flex":"none"},children:[s("div",{className:K.overlay,style:c.overlay,onClick:h}),s("div",{className:K.wrapper,children:[s("div",{className:K.close,style:J(c.close,"backgroundColor"),onClick:h,children:s(Ce,{})}),s("a",{href:(H=c.root)==null?void 0:H.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:S(K.content,{[K.desktop]:i==="desktop",[K.tablet]:i==="tablet",[K.laptop]:i==="laptop"}),style:E,onClick:()=>$(c.id),children:[s("img",{ref:r,className:K.background,src:C.imageSource,alt:"",style:C}),s("div",{className:K.body,style:m,children:[s("div",{className:K.logo,style:c.logo}),s("div",{className:K.text,children:((c==null?void 0:c.children)||[]).map(Z=>s(_e,{value:Z,children:s(Jd,{})}))}),s("div",{className:K.button,style:T,children:T==null?void 0:T.children}),s("div",{className:K.legal,style:L,children:L==null?void 0:L.children})]})]})]})]})}),eu=pe(s(Qd,{})),ce={root:"_root_krw01_1",content:"_content_krw01_11",desktop:"_desktop_krw01_23",laptop:"_laptop_krw01_23",overlay:"_overlay_krw01_28",close:"_close_krw01_34",title:"_title_krw01_43",wrapper:"_wrapper_krw01_58"},te={root:"_root_1gwqg_1",desktop:"_desktop_1gwqg_9",laptop:"_laptop_1gwqg_9",header:"_header_1gwqg_14",logo:"_logo_1gwqg_25",container:"_container_1gwqg_32",body:"_body_1gwqg_43",text:"_text_1gwqg_60",button:"_button_1gwqg_75",legal:"_legal_1gwqg_93"},tu=({onClick:e})=>{var r,i,a,l,c,d;const t=q(),o=V(t),n=(t==null?void 0:t.device)||"desktop";return s("a",{href:(r=o.root)==null?void 0:r.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:S(te.root,{[te.desktop]:n==="desktop",[te.laptop]:n==="laptop"}),style:J(o.root,...tt),onClick:()=>e(o.id),children:[s("div",{className:te.header,style:o.header,children:s("div",{className:te.logo,style:o.logo})}),s("div",{className:te.container,style:re(o.root,...tt),children:[s("div",{className:te.body,children:[s("div",{className:te.logo,style:o.logo}),s(ae,{className:te.text,style:o.text,typography:(i=o.text)==null?void 0:i.typography,accentTypography:(a=o.text)==null?void 0:a.accentTypography,children:(l=o.text)==null?void 0:l.children})]}),s("div",{children:[s(ae,{className:te.button,style:o.button,children:(c=o.button)==null?void 0:c.children}),s(ae,{className:te.legal,style:o.legal,children:(d=o.legal)==null?void 0:d.children})]})]})]})},ou=le(({id:e},t)=>{var f;const o=X(null),n=Te({targetRef:o,id:e}),r=q(),i=fe(r,n),a=V(i);ve(i);const l=b(a,"root.delay",0),{isOpen:c,clickHide:d,click:u}=ht(t,l);return s("div",{className:ce.root,style:{display:c?"flex":"none"},children:[s("div",{className:ce.overlay,style:a.overlay,onClick:d}),s("div",{ref:o,className:S(ce.content,{[ce.desktop]:n==="desktop",[ce.laptop]:n==="laptop"}),style:a.root,children:[s("div",{className:ce.close,style:J(a.close,"backgroundColor"),onClick:d,children:s(Ce,{})}),s(ae,{className:ce.title,style:a.title,children:(f=a.title)==null?void 0:f.children}),s("div",{className:ce.wrapper,children:(a.children||[]).map(p=>s(_e,{value:k(v({},p),{device:n}),children:s(tu,{onClick:u})}))})]})]})}),nu=pe(s(ou,{})),D={root:"_root_v3g4u_1",content:"_content_v3g4u_11",close:"_close_v3g4u_19",overlay:"_overlay_v3g4u_28",body:"_body_v3g4u_34",desktop:"_desktop_v3g4u_42",laptop:"_laptop_v3g4u_42",tablet:"_tablet_v3g4u_46",head:"_head_v3g4u_51",title:"_title_v3g4u_61",logo:"_logo_v3g4u_74",wrapper:"_wrapper_v3g4u_81",text:"_text_v3g4u_88",button:"_button_v3g4u_96",buttonHead:"_buttonHead_v3g4u_111",buttonTarget:"_buttonTarget_v3g4u_128",legal:"_legal_v3g4u_142"},R={root:"_root_16jvv_1",left:"_left_16jvv_8",desktop:"_desktop_16jvv_15",laptop:"_laptop_16jvv_15",teams:"_teams_16jvv_19",logo:"_logo_16jvv_25",league:"_league_16jvv_32",name:"_name_16jvv_37",right:"_right_16jvv_43",odd:"_odd_16jvv_54",oddLabel:"_oddLabel_16jvv_67",oddValue:"_oddValue_16jvv_76",team:"_team_16jvv_19",teamLogo:"_teamLogo_16jvv_100",teamName:"_teamName_16jvv_107"},ru=()=>{const e=q(),t=V(e),o=(e==null?void 0:e.device)||"desktop",n=k(v({},t==null?void 0:t.teamALogo),{backgroundImage:b(t,"match.teams[0].logo")}),r=k(v({},t==null?void 0:t.teamBLogo),{backgroundImage:b(t,"match.teams[1].logo")});return s("div",{className:S(R.root,{[R.desktop]:o==="desktop",[R.laptop]:o==="laptop"}),children:[s("div",{className:R.left,children:[s("div",{className:R.teams,children:[s("img",{className:R.logo,src:n.backgroundImage,style:n,alt:""}),s("img",{className:R.logo,src:r.backgroundImage,style:r})]}),s("div",{className:R.body,children:[s("div",{className:R.league,style:t.league,children:b(t,"match.league.name")}),s("div",{className:R.name,style:t.teams,children:[b(t,"match.teams[0].name")," — ",b(t,"match.teams[1].name")]})]})]}),s("div",{className:R.right,children:[s("div",{className:R.team,children:[s("img",{className:R.teamLogo,style:n,src:n.backgroundImage}),s("div",{className:R.teamName,style:t.teams,children:b(t,"match.teams[0].name")})]}),s("div",{className:R.odd,children:[s("div",{className:R.oddLabel,style:t.oddLabel,children:b(t,"match.prediction.value")}),s("div",{className:R.oddValue,style:t.oddValue,children:b(t,"match.prediction.factor")})]}),s("div",{className:R.team,children:[s("img",{className:R.teamLogo,style:r,src:r.backgroundImage}),s("div",{className:R.teamName,style:t.teams,children:b(t,"match.teams[1].name")})]})]})]})},Do=(e,{pause:t,params:o,method:n,body:r})=>{const[i,a]=ne(),l=Re(()=>{let d=e;if(o){const u=new URLSearchParams(d);Object.entries(o).forEach(([f,p])=>{u.append(f,p)}),d+=u}return d},[e,o]),c=gn(()=>ze(this,null,function*(){if(t)return;const d=yield fetch(l,{method:n||"GET",body:r?JSON.stringify(r):void 0,headers:{"Content-Type":"application/json"}}).then(u=>u.json());a(d.data)}),[l,t,n,r]);return U(()=>{t||c()},[l,t]),{data:i,execute:c}};function Fo(e){const t=X();return U(()=>{t.current=e},[e]),t.current}const au=(e,t)=>{const o=d=>{var u;return z(d==null?void 0:d.matchSlug)&&((u=d==null?void 0:d.matchSlug)==null?void 0:u.length)>0},n=e.children||[],r=n.filter(d=>o(d.root.targetMatch)).map(d=>d.root.targetMatch),i=Fo(r),{data:a,execute:l}=Do(`${t}/match-list`,{method:"POST",body:{matches:r.map(d=>({slug:d.matchSlug,sport_slug:d.sportSlug,lang:d.langSlug,bookmaker_slug:d.bookmaker,offset:d.offset,markets:d.markets}))},pause:!t||r.length===0});return U(()=>{jo(i,r)||l()},[r]),n.map(d=>{const u=(a||[]).find(h=>h.slug===d.root.targetMatch.matchSlug);if(!u)return;const f=Ao(u),p=Io(f,d.root.customMatch,(h,[$,m])=>z(m));return k(v({},d),{match:p})}).filter(Boolean)},iu=le(({id:e},t)=>{var E,C,P,B,G,w,M,H,Z,be,He,dn,un;const o=X(null),n=Te({targetRef:o,id:e}),r=q(),i=fe(r,n);Ee(i,"buttonWrapper.percent_width",(E=i==null?void 0:i.buttonWrapper)==null?void 0:E.width),Ee(i,"legal.percent_width",(C=i==null?void 0:i.legal)==null?void 0:C.width);const a=V(i);ve(i);const l=b(a,"root.delay",0),{isOpen:c,apiHost:d,clickHide:u,click:f}=ht(t,l),p=au(i,d),h=k(v({},a.root),{alignItems:ge((P=a.root)==null?void 0:P.align)}),$=k(v({},a.content),{alignItems:ge((B=a.root)==null?void 0:B.align)}),m=k(v({},a.text),{textAlign:(G=a.root)==null?void 0:G.align}),T=k(v({},a==null?void 0:a.button),{justifyContent:ge((w=a.root)==null?void 0:w.textAlign)}),L=k(v({},a==null?void 0:a.legal),{justifyContent:ge((M=a.root)==null?void 0:M.textAlign)});return s("div",{className:S(D.root,{[D.desktop]:n==="desktop",[D.laptop]:n==="laptop",[D.tablet]:n==="tablet"}),ref:o,style:{display:c?"flex":"none"},children:[s("div",{className:D.overlay,style:a.overlay,onClick:u}),s("div",{className:D.content,children:[s("div",{className:D.close,style:J(a.close,"backgroundColor"),onClick:u,children:s(Ce,{})}),s("a",{ref:o,href:(H=a.root)==null?void 0:H.offer,target:"_blank",rel:"nofollow noopener noreferrer",onClick:()=>f(a.id),children:s("div",{className:D.body,style:h,children:[s("div",{className:D.head,children:[s("div",{className:D.title,style:a.title,children:(Z=a.title)==null?void 0:Z.children}),s("div",{className:D.logo,style:a.logo})]}),s("div",{className:D.wrapper,style:$,children:(p||[]).map(Fu=>s(_e,{value:k(v({},Fu),{device:n}),children:s(ru,{})}))}),s(ae,{className:D.text,style:m,typography:m.typography,accentTypography:m.accentTypography,children:(be=a.text)==null?void 0:be.children}),s("div",{className:D.button,style:a.buttonWrapper,children:[s("div",{className:D.buttonHead,style:a.buttonHead,children:(He=a.buttonHead)==null?void 0:He.children}),s("div",{className:D.buttonTarget,style:T,children:(dn=a.button)==null?void 0:dn.children})]}),s(ae,{className:D.legal,style:L,children:(un=a.legal)==null?void 0:un.children})]})})]})]})}),su=pe(s(iu,{})),oe={root:"_root_x31x3_1",background:"_background_x31x3_18",body:"_body_x31x3_27",bookmaker:"_bookmaker_x31x3_36",button:"_button_x31x3_43",rowFirst:"_rowFirst_x31x3_57",rowSecond:"_rowSecond_x31x3_63",legal:"_legal_x31x3_69",legalText:"_legalText_x31x3_86",legalOpen:"_legalOpen_x31x3_96",legalButton:"_legalButton_x31x3_101"},cu=({onClick:e})=>{var i,a,l,c,d,u,f,p;const t=q(),o=V(t),[n,r]=Ho();return s("div",{className:oe.root,style:J(o.root,...Q),children:[s("div",{className:oe.background,style:re(o.root,...Q)}),s("a",{href:(i=o.root)==null?void 0:i.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:oe.body,onClick:()=>e(o.id),children:[s("div",{children:[s("div",{className:oe.rowFirst,style:o.rowFirst,children:(a=o.rowFirst)==null?void 0:a.children}),s("div",{className:oe.rowSecond,style:o.rowSecond,children:(l=o.rowSecond)==null?void 0:l.children}),s("div",{className:oe.bookmaker,style:o.bookmaker,children:(c=o.bookmaker)==null?void 0:c.children})]}),s("div",{className:oe.button,style:o.button,children:(d=o.button)==null?void 0:d.children})]}),s("div",{className:S(oe.legal,{[oe.legalOpen]:n}),style:o.legalInfo,children:s("span",{className:oe.legalText,children:[s("span",{children:(u=o.legalInfo)==null?void 0:u.children}),s("span",{className:oe.legalButton,style:o.legalInfoButton,onClick:r,children:n?(f=o.legalInfoButton)==null?void 0:f.openText:(p=o.legalInfoButton)==null?void 0:p.closeText})]})})]})},lu=e=>{const t=X(Qe()),o=n=>t.current.on("click",n);return De(e,()=>({promoId:"BonusCard",onClick:o,resetListeners:t.current.reset})),U(()=>t.current.reset,[]),{click:(...n)=>t.current.emit("click",...n),onClick:o}},du=le((e,t)=>{const o=X(null),n=q(),i=fe(n,"mobile"),a=V(i);ve(i);const{click:l}=lu(t);return s("div",{ref:o,children:((a==null?void 0:a.children)||[]).map(c=>s(_e,{value:c,children:s(cu,{onClick:l})}))})}),uu=pe(s(du,{})),j={root:"_root_woisr_1",desktop:"_desktop_woisr_13",laptop:"_laptop_woisr_14",promotion:"_promotion_woisr_18",background:"_background_woisr_34",close:"_close_woisr_43",content:"_content_woisr_52",variant2:"_variant2_woisr_65",logo:"_logo_woisr_69",left:"_left_woisr_81",center:"_center_woisr_94",slide:"_slide_woisr_100",slide_animated_default:"_slide_animated_default_woisr_114","fade-in-out":"_fade-in-out_woisr_1","slide_animated_bottom-top":"_slide_animated_bottom-top_woisr_117","fade-in-bottom-out-top":"_fade-in-bottom-out-top_woisr_1","slide_animated_top-bottom":"_slide_animated_top-bottom_woisr_120",right:"_right_woisr_124",buttonWrapper:"_buttonWrapper_woisr_139",button:"_button_woisr_139",button_animated:"_button_animated_woisr_173",increase:"_increase_woisr_1","fade-in-top-out-bottom":"_fade-in-top-out-bottom_woisr_1"},Go={root:"_root_1c4sr_1",desktop:"_desktop_1c4sr_11"},_u=()=>{var o,n,r;const e=q(),t=V(e);return s("div",{className:S(Go.root,{[Go.desktop]:(e==null?void 0:e.device)==="desktop"}),style:J(t.root,...Q),children:s(ae,{accentTypography:(o=t.root)==null?void 0:o.accentTypography,typography:(n=t.root)==null?void 0:n.typography,children:(r=t.root)==null?void 0:r.children})})},I={root:"_root_gohhp_1",title:"_title_gohhp_8",desktop:"_desktop_gohhp_13",laptop:"_laptop_gohhp_13",titleLabel:"_titleLabel_gohhp_17",tablet:"_tablet_gohhp_20",titleValue:"_titleValue_gohhp_27",teamLogo:"_teamLogo_gohhp_38",teams:"_teams_gohhp_49",teamName:"_teamName_gohhp_57",odds:"_odds_gohhp_64",odd:"_odd_gohhp_64",oddX:"_oddX_gohhp_76",oddValue:"_oddValue_gohhp_84"},ot=(e,t,o=1,n=!1)=>{const[r,i]=[t[0],t[1]||t[0]].map(l=>l*o),a=`w${r}-h${i}${n?"-c":""}`;return e.replace(/(\/(?:upload|user-avatars)\/[\w\d]+\/)origin(\/)/,`$1${a}$2`)},pu=()=>{var i,a;const e=q(),t=V(e),o=J(t.root,...Q),n=k(v({},t.teamLogo),{backgroundImage:ot(b(t,"match.teams[0].logo"),[120,120]),backgroundColor:"transparent"}),r=k(v({},t.teamLogo),{backgroundImage:ot(b(t,"match.teams[1].logo"),[120,120]),backgroundColor:"transparent"});return s("div",{className:S(I.root,{[I.desktop]:e.device==="desktop",[I.laptop]:e.device==="laptop",[I.tablet]:e.device==="tablet"}),style:o,children:[s("div",{className:I.title,children:[s("div",{className:I.titleLabel,style:t.titleLabel,children:(i=t.titleLabel)==null?void 0:i.children}),s("div",{className:I.titleValue,style:t.titleValue,children:(a=t.titleValue)==null?void 0:a.children})]}),s("div",{className:I.odds,children:[s("div",{className:I.odd,children:[s("img",{className:I.teamLogo,src:n.backgroundImage,style:n}),s("div",{className:I.oddValue,style:t.value,children:b(t,"match.markets.one_x_two.w1")})]}),s("div",{className:I.odd,children:[s("div",{className:I.oddX,style:t.coef,children:"X"}),s("div",{className:I.oddValue,style:t.value,children:b(t,"match.markets.one_x_two.x")})]}),s("div",{className:I.odd,children:[s("img",{className:I.teamLogo,src:r.backgroundImage,style:r}),s("div",{className:I.oddValue,style:t.value,children:b(t,"match.markets.one_x_two.w2")})]})]}),s("div",{className:I.teams,children:[s("div",{className:I.teamName,style:t.teamName,children:b(t,"match.teams[0].name")}),s("div",{className:I.teamName,style:t.teamName,children:b(t,"match.teams[1].name")})]})]})},F={root:"_root_1bycs_1",title:"_title_1bycs_8",titleLabel:"_titleLabel_1bycs_13",tablet:"_tablet_1bycs_16",desktop:"_desktop_1bycs_19",laptop:"_laptop_1bycs_19",titleValue:"_titleValue_1bycs_23",team:"_team_1bycs_34",teamLogo:"_teamLogo_1bycs_45",national:"_national_1bycs_56",teamName:"_teamName_1bycs_77",teamValue:"_teamValue_1bycs_89"},fu=()=>{var r,i;const e=q(),t=V(e),o=k(v(v({},re(t.root,...Q)),t.teamLogo),{backgroundColor:"transparent",backgroundImage:ot(b(t,"match.teams[0].logo"),[120,120])}),n=k(v(v({},re(t.root,...Q)),t.teamLogo),{backgroundColor:"transparent",backgroundImage:ot(b(t,"match.teams[1].logo"),[120,120])});return s("div",{className:S(F.root,{[F.desktop]:(e==null?void 0:e.device)==="desktop",[F.laptop]:(e==null?void 0:e.device)==="laptop",[F.tablet]:(e==null?void 0:e.device)==="tablet",[F.national]:b(t,"match.isNational")}),style:J(t.root,...Q),children:[s("div",{className:F.title,children:[s("div",{className:F.titleLabel,style:t.titleLabel,children:(r=t.titleLabel)==null?void 0:r.children}),s("div",{className:F.titleValue,style:t.titleValue,children:(i=t.titleValue)==null?void 0:i.children})]}),s("div",{children:[s("div",{className:F.team,children:[s("img",{className:F.teamLogo,src:o.backgroundImage,style:o}),s("div",{className:F.teamName,style:t.teamName,children:b(t,"match.teams[0].name")}),s("div",{className:F.teamValue,style:t.value,children:b(t,"match.markets.one_two.w1")})]}),s("div",{className:F.team,children:[s("img",{className:F.teamLogo,src:n.backgroundImage,style:n}),s("div",{className:F.teamName,style:t.teamName,children:b(t,"match.teams[1].name")}),s("div",{className:F.teamValue,style:t.value,children:b(t,"match.markets.one_two.w2")})]})]})]})},vu=(e=[])=>{var i;const t=e.length,[o,n]=ne(0),r=(i=e[o||0])==null?void 0:i.animationDuration;return U(()=>{const l=setTimeout(()=>{n(c=>c+1<t?c+1:0)},r);return()=>clearTimeout(l)},[n,t,r,o]),o},gu={matches:"one_x_two",matchesOneTwo:"one_two"},Wo=e=>[gu[e]],hu=(e,t)=>{const o=d=>{var u;return z(d==null?void 0:d.matchSlug)&&((u=d==null?void 0:d.matchSlug)==null?void 0:u.length)>0},n=e.children||[],r=n.filter(d=>o(d.root.targetMatch)).map(d=>k(v({},d.root.targetMatch),{markets:Wo(d.name)})),i=Fo(r),{data:a,execute:l}=Do(`${t}/match-list`,{method:"POST",body:{matches:r.map(d=>({slug:d.matchSlug,sport_slug:d.sportSlug,lang:d.langSlug,bookmaker_slug:d.bookmaker,offset:d.offset,markets:d.markets}))},pause:!t||r.length===0});return U(()=>{jo(i,r)||l()},[r]),n.map(d=>{if("targetMatch"in d.root){const u=(a||[]).find($=>$.slug===d.root.targetMatch.matchSlug);if(!u)return;const f=Wo(d.name),p=Ao(u,{markets:f}),h=Io(p,d.root.customMatch,($,[m,T])=>z(T));return k(v({},d),{match:h})}return d}).filter(Boolean)},mu=e=>{const t=X(Qe()),[o,n]=ne(!1),[r,i]=ne(),a=p=>t.current.on("visible",p),l=p=>t.current.on("click",p),c=p=>t.current.on("clickHide",p),d=()=>ze(this,null,function*(){n(!0)}),u=()=>n(!1),f=()=>{t.current.emit("clickHide"),u()};return U(()=>{t.current.emit("visible",o)},[o]),De(e,()=>({onVisible:a,onClick:l,onClickHide:c,show:d,hide:u,setApiHost:i,resetListeners:t.current.reset})),U(()=>t.current.reset,[]),{isOpen:o,apiHost:r,show:d,hide:u,clickHide:f,click:(...p)=>{u(),t.current.emit("click",...p)}}},bu=3700,yu=le(({id:e},t)=>{var E,C,P,B,G;const o=X(null),n=q(),r=Te({id:e,targetRef:o}),i=fe(n,r),a=V(i);ve(i);const{apiHost:l,isOpen:c,click:d,clickHide:u}=mu(t),f=hu(a,l),p=w=>({text:s(_u,{}),matches:s(pu,{}),matchesOneTwo:s(fu,{})})[w],h=f.filter(Boolean).map(w=>{var M,H;return k(v({},w),{animationName:(M=w==null?void 0:w.root)==null?void 0:M.animationName,animationDuration:((H=w==null?void 0:w.root)==null?void 0:H.animationDuration)||bu})}),$=vu(h),m=V(h[$]||{}),T=J(a.root,...Q),L=(E=m==null?void 0:m.root)!=null&&E.hasCustomBackground?re((m==null?void 0:m.root)||{},...Q):re(a.root,...Q);return s("div",{ref:o,className:S(j.root,{[j.desktop]:r==="desktop",[j.laptop]:r==="laptop",[j.tablet]:r==="tablet",[j.variant2]:((C=a.root)==null?void 0:C.variant)==="variant2"}),style:k(v({},T),{display:c?"block":"none"}),children:[s("div",{className:j.close,style:a.close,onClick:u,children:s(Ce,{})}),s("a",{href:(P=a.root)==null?void 0:P.offer,target:"_blank",rel:"nofollow noopener noreferrer",onClick:d,children:[s("div",{className:j.background,style:L}),s("div",{className:j.promotion,style:a.promotion,children:(B=a.promotion)==null?void 0:B.children}),s("div",{className:j.content,children:[s("div",{className:j.left,children:s("div",{className:j.logo,style:a.logo})}),s("div",{className:j.center,children:(h||[]).map((w,M)=>{var H,Z;return s("div",{className:j.slide,style:{animationName:$===M?j[((H=w.root)==null?void 0:H.animationName)||"fade-in-out"]:"none",animationDuration:`${(Z=w.root)==null?void 0:Z.animationDuration}ms`},children:s(_e,{value:k(v({},w),{device:r}),children:p(w.name)})})})}),s("div",{className:j.right,children:[s("div",{className:j.logo,style:a.logo}),s("div",{className:j.buttonWrapper,children:s("div",{className:S(j.button,{[j.button_animated]:a.button.$animated}),style:a.button,children:[s("div",{className:j.logo,style:a.logo}),(G=a.button)==null?void 0:G.children]})})]})]})]})]})}),$u=pe(s(yu,{})),wu=(e,t,o,n,r=Lo)=>{const i=v({},e);return r.forEach(a=>{i[t]=k(v({},i[t]),{[a]:k(v({},i[t][a]),{[o]:typeof n=="function"?n(b(i,`${t}.${a}.${o}`)):n})})}),i};var he=[],ku=function(){return he.some(function(e){return e.activeTargets.length>0})},xu=function(){return he.some(function(e){return e.skippedTargets.length>0})},Uo="ResizeObserver loop completed with undelivered notifications.",Ou=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Uo}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Uo),window.dispatchEvent(e)},Pe;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Pe||(Pe={}));var me=function(e){return Object.freeze(e)},qo=function(){function e(t,o){this.inlineSize=t,this.blockSize=o,me(this)}return e}(),Xo=function(){function e(t,o,n,r){return this.x=t,this.y=o,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,me(this)}return e.prototype.toJSON=function(){var t=this,o=t.x,n=t.y,r=t.top,i=t.right,a=t.bottom,l=t.left,c=t.width,d=t.height;return{x:o,y:n,top:r,right:i,bottom:a,left:l,width:c,height:d}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),mt=function(e){return e instanceof SVGElement&&"getBBox"in e},Ko=function(e){if(mt(e)){var t=e.getBBox(),o=t.width,n=t.height;return!o&&!n}var r=e,i=r.offsetWidth,a=r.offsetHeight;return!(i||a||e.getClientRects().length)},Zo=function(e){var t;if(e instanceof Element)return!0;var o=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(o&&e instanceof o.Element)},Nu=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Be=typeof window!="undefined"?window:{},nt=new WeakMap,Jo=/auto|scroll/,Tu=/^tb|vertical/,Cu=/msie|trident/i.test(Be.navigator&&Be.navigator.userAgent),ie=function(e){return parseFloat(e||"0")},Se=function(e,t,o){return e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=!1),new qo((o?t:e)||0,(o?e:t)||0)},Yo=me({devicePixelContentBoxSize:Se(),borderBoxSize:Se(),contentBoxSize:Se(),contentRect:new Xo(0,0,0,0)}),Qo=function(e,t){if(t===void 0&&(t=!1),nt.has(e)&&!t)return nt.get(e);if(Ko(e))return nt.set(e,Yo),Yo;var o=getComputedStyle(e),n=mt(e)&&e.ownerSVGElement&&e.getBBox(),r=!Cu&&o.boxSizing==="border-box",i=Tu.test(o.writingMode||""),a=!n&&Jo.test(o.overflowY||""),l=!n&&Jo.test(o.overflowX||""),c=n?0:ie(o.paddingTop),d=n?0:ie(o.paddingRight),u=n?0:ie(o.paddingBottom),f=n?0:ie(o.paddingLeft),p=n?0:ie(o.borderTopWidth),h=n?0:ie(o.borderRightWidth),$=n?0:ie(o.borderBottomWidth),m=n?0:ie(o.borderLeftWidth),T=f+d,L=c+u,E=m+h,C=p+$,P=l?e.offsetHeight-C-e.clientHeight:0,B=a?e.offsetWidth-E-e.clientWidth:0,G=r?T+E:0,w=r?L+C:0,M=n?n.width:ie(o.width)-G-B,H=n?n.height:ie(o.height)-w-P,Z=M+T+B+E,be=H+L+P+C,He=me({devicePixelContentBoxSize:Se(Math.round(M*devicePixelRatio),Math.round(H*devicePixelRatio),i),borderBoxSize:Se(Z,be,i),contentBoxSize:Se(M,H,i),contentRect:new Xo(f,c,M,H)});return nt.set(e,He),He},en=function(e,t,o){var n=Qo(e,o),r=n.borderBoxSize,i=n.contentBoxSize,a=n.devicePixelContentBoxSize;switch(t){case Pe.DEVICE_PIXEL_CONTENT_BOX:return a;case Pe.BORDER_BOX:return r;default:return i}},tn=function(){function e(t){var o=Qo(t);this.target=t,this.contentRect=o.contentRect,this.borderBoxSize=me([o.borderBoxSize]),this.contentBoxSize=me([o.contentBoxSize]),this.devicePixelContentBoxSize=me([o.devicePixelContentBoxSize])}return e}(),on=function(e){if(Ko(e))return 1/0;for(var t=0,o=e.parentNode;o;)t+=1,o=o.parentNode;return t},Su=function(){var e=1/0,t=[];he.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(d){var u=new tn(d.target),f=on(d.target);l.push(u),d.lastReportedSize=en(d.target,d.observedBox),f<e&&(e=f)}),t.push(function(){a.callback.call(a.observer,l,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var o=0,n=t;o<n.length;o++){var r=n[o];r()}return e},nn=function(e){he.forEach(function(o){o.activeTargets.splice(0,o.activeTargets.length),o.skippedTargets.splice(0,o.skippedTargets.length),o.observationTargets.forEach(function(r){r.isActive()&&(on(r.target)>e?o.activeTargets.push(r):o.skippedTargets.push(r))})})},Au=function(){var e=0;for(nn(e);ku();)e=Su(),nn(e);return xu()&&Ou(),e>0},bt,rn=[],Ru=function(){return rn.splice(0).forEach(function(e){return e()})},ju=function(e){if(!bt){var t=0,o=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return Ru()}).observe(o,n),bt=function(){o.textContent="".concat(t?t--:t++)}}rn.push(e),bt()},Iu=function(e){ju(function(){requestAnimationFrame(e)})},rt=0,Lu=function(){return!!rt},Eu=250,Pu={attributes:!0,characterData:!0,childList:!0,subtree:!0},an=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],sn=function(e){return e===void 0&&(e=0),Date.now()+e},yt=!1,Bu=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var o=this;if(t===void 0&&(t=Eu),!yt){yt=!0;var n=sn(t);Iu(function(){var r=!1;try{r=Au()}finally{if(yt=!1,t=n-sn(),!Lu())return;r?o.run(1e3):t>0?o.run(t):o.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,o=function(){return t.observer&&t.observer.observe(document.body,Pu)};document.body?o():Be.addEventListener("DOMContentLoaded",o)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),an.forEach(function(o){return Be.addEventListener(o,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),an.forEach(function(o){return Be.removeEventListener(o,t.listener,!0)}),this.stopped=!0)},e}(),$t=new Bu,cn=function(e){!rt&&e>0&&$t.start(),rt+=e,!rt&&$t.stop()},Hu=function(e){return!mt(e)&&!Nu(e)&&getComputedStyle(e).display==="inline"},zu=function(){function e(t,o){this.target=t,this.observedBox=o||Pe.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=en(this.target,this.observedBox,!0);return Hu(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Mu=function(){function e(t,o){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=o}return e}(),at=new WeakMap,ln=function(e,t){for(var o=0;o<e.length;o+=1)if(e[o].target===t)return o;return-1},it=function(){function e(){}return e.connect=function(t,o){var n=new Mu(t,o);at.set(t,n)},e.observe=function(t,o,n){var r=at.get(t),i=r.observationTargets.length===0;ln(r.observationTargets,o)<0&&(i&&he.push(r),r.observationTargets.push(new zu(o,n&&n.box)),cn(1),$t.schedule())},e.unobserve=function(t,o){var n=at.get(t),r=ln(n.observationTargets,o),i=n.observationTargets.length===1;r>=0&&(i&&he.splice(he.indexOf(n),1),n.observationTargets.splice(r,1),cn(-1))},e.disconnect=function(t){var o=this,n=at.get(t);n.observationTargets.slice().forEach(function(r){return o.unobserve(t,r.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Vu=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");it.connect(this,t)}return e.prototype.observe=function(t,o){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Zo(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");it.observe(this,t,o)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Zo(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");it.unobserve(this,t)},e.prototype.disconnect=function(){it.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const Du=Object.freeze(Object.defineProperty({__proto__:null,ResizeObserver:Vu,ResizeObserverEntry:tn,ResizeObserverSize:qo},Symbol.toStringTag,{value:"Module"}));g.BonusCard=uu,g.ComplexGift=Kd,g.ComplexPopup=nu,g.ExpressPopup=su,g.SimpleGift=Ud,g.SimplePopup=eu,g.WideCard=$u,g.filterDeep=Ad,g.findDeep=Sd,g.isValidTemplate=Td,g.modifyState=wu,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
5
+ */(function(e){(function(){var t={}.hasOwnProperty;function o(){for(var n=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var a=typeof i;if(a==="string"||a==="number")n.push(i);else if(Array.isArray(i)){if(i.length){var l=o.apply(null,i);l&&n.push(l)}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){n.push(i.toString());continue}for(var c in i)t.call(i,c)&&i[c]&&n.push(c)}}}return n.join(" ")}e.exports?(o.default=o,e.exports=o):window.classNames=o})()})(Me);const S=W;var se,y,Y,ye,$e=0,kt=[],Ve=[],xt=_.options.__b,Ot=_.options.__r,Nt=_.options.diffed,Tt=_.options.__c,Ct=_.options.unmount;function Ae(e,t){_.options.__h&&_.options.__h(y,e,$e||t),$e=0;var o=y.__H||(y.__H={__:[],__h:[]});return e>=o.__.length&&o.__.push({__V:Ve}),o.__[e]}function ne(e){return $e=1,vn(Rt,e)}function vn(e,t,o){var n=Ae(se++,2);if(n.t=e,!n.__c&&(n.__=[o?o(t):Rt(void 0,t),function(l){var c=n.__N?n.__N[0]:n.__[0],d=n.t(c,l);c!==d&&(n.__N=[d,n.__[1]],n.__c.setState({}))}],n.__c=y,!y.u)){var r=function(l,c,d){if(!n.__c.__H)return!0;var u=n.__c.__H.__.filter(function(p){return p.__c});if(u.every(function(p){return!p.__N}))return!i||i.call(this,l,c,d);var f=!1;return u.forEach(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(f=!0)}}),!(!f&&n.__c.props===l)&&(!i||i.call(this,l,c,d))};y.u=!0;var i=y.shouldComponentUpdate,a=y.componentWillUpdate;y.componentWillUpdate=function(l,c,d){if(this.__e){var u=i;i=void 0,r(l,c,d),i=u}a&&a.call(this,l,c,d)},y.shouldComponentUpdate=r}return n.__N||n.__}function U(e,t){var o=Ae(se++,3);!_.options.__s&&lt(o.__H,t)&&(o.__=e,o.i=t,y.__H.__h.push(o))}function St(e,t){var o=Ae(se++,4);!_.options.__s&&lt(o.__H,t)&&(o.__=e,o.i=t,y.__h.push(o))}function X(e){return $e=5,Re(function(){return{current:e}},[])}function De(e,t,o){$e=6,St(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},o==null?o:o.concat(e))}function Re(e,t){var o=Ae(se++,7);return lt(o.__H,t)?(o.__V=e(),o.i=t,o.__h=e,o.__V):o.__}function gn(e,t){return $e=8,Re(function(){return e},t)}function hn(e){var t=y.context[e.__c],o=Ae(se++,9);return o.c=e,t?(o.__==null&&(o.__=!0,t.sub(y)),t.props.value):e.__}function mn(){for(var e;e=kt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Fe),e.__H.__h.forEach(ct),e.__H.__h=[]}catch(t){e.__H.__h=[],_.options.__e(t,e.__v)}}_.options.__b=function(e){y=null,xt&&xt(e)},_.options.__r=function(e){Ot&&Ot(e),se=0;var t=(y=e.__c).__H;t&&(Y===y?(t.__h=[],y.__h=[],t.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=Ve,o.__N=o.i=void 0})):(t.__h.forEach(Fe),t.__h.forEach(ct),t.__h=[])),Y=y},_.options.diffed=function(e){Nt&&Nt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(kt.push(t)!==1&&ye===_.options.requestAnimationFrame||((ye=_.options.requestAnimationFrame)||bn)(mn)),t.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==Ve&&(o.__=o.__V),o.i=void 0,o.__V=Ve})),Y=y=null},_.options.__c=function(e,t){t.some(function(o){try{o.__h.forEach(Fe),o.__h=o.__h.filter(function(n){return!n.__||ct(n)})}catch(n){t.some(function(r){r.__h&&(r.__h=[])}),t=[],_.options.__e(n,o.__v)}}),Tt&&Tt(e,t)},_.options.unmount=function(e){Ct&&Ct(e);var t,o=e.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{Fe(n)}catch(r){t=r}}),o.__H=void 0,t&&_.options.__e(t,o.__v))};var At=typeof requestAnimationFrame=="function";function bn(e){var t,o=function(){clearTimeout(n),At&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(o,100);At&&(t=requestAnimationFrame(o))}function Fe(e){var t=y,o=e.__c;typeof o=="function"&&(e.__c=void 0,o()),y=t}function ct(e){var t=y;e.__c=e.__(),y=t}function lt(e,t){return!e||e.length!==t.length||t.some(function(o,n){return o!==e[n]})}function Rt(e,t){return typeof t=="function"?t(e):t}function jt(e,t){for(var o in t)e[o]=t[o];return e}function It(e,t){for(var o in e)if(o!=="__source"&&!(o in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Lt(e){this.props=e}(Lt.prototype=new _.Component).isPureReactComponent=!0,Lt.prototype.shouldComponentUpdate=function(e,t){return It(this.props,e)||It(this.state,t)};var Et=_.options.__b;_.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Et&&Et(e)};var yn=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function le(e){function t(o){var n=jt({},o);return delete n.ref,e(n,o.ref||null)}return t.$$typeof=yn,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var $n=_.options.__e;_.options.__e=function(e,t,o,n){if(e.then){for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return t.__e==null&&(t.__e=o.__e,t.__k=o.__k),r.__c(e,t)}$n(e,t,o,n)};var Pt=_.options.unmount;function Bt(e,t,o){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=jt({},e)).__c!=null&&(e.__c.__P===o&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Bt(n,t,o)})),e}function Ht(e,t,o){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Ht(n,t,o)}),e.__c&&e.__c.__P===t&&(e.__e&&o.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=o)),e}function dt(){this.__u=0,this.t=null,this.__b=null}function zt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ge(){this.u=null,this.o=null}_.options.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Pt&&Pt(e)},(dt.prototype=new _.Component).__c=function(e,t){var o=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var r=zt(n.__v),i=!1,a=function(){i||(i=!0,o.__R=null,r?r(l):l())};o.__R=a;var l=function(){if(!--n.__u){if(n.state.__a){var d=n.state.__a;n.__v.__k[0]=Ht(d,d.__c.__P,d.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.t.pop();)u.forceUpdate()}},c=t.__h===!0;n.__u++||c||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},dt.prototype.componentWillUnmount=function(){this.t=[]},dt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Bt(this.__b,o,n.__O=n.__P)}this.__b=null}var r=t.__a&&_.createElement(_.Fragment,null,e.fallback);return r&&(r.__h=null),[_.createElement(_.Fragment,null,t.__a?null:e.children),r]};var Mt=function(e,t,o){if(++o[1]===o[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(o=e.u;o;){for(;o.length>3;)o.pop()();if(o[1]<o[0])break;e.u=o=o[2]}};(Ge.prototype=new _.Component).__a=function(e){var t=this,o=zt(t.__v),n=t.o.get(e);return n[0]++,function(r){var i=function(){t.props.revealOrder?(n.push(r),Mt(t,e,n)):r()};o?o(i):i()}},Ge.prototype.render=function(e){this.u=null,this.o=new Map;var t=_.toChildArray(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var o=t.length;o--;)this.o.set(t[o],this.u=[1,0,this.u]);return e.children},Ge.prototype.componentDidUpdate=Ge.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,o){Mt(e,o,t)})};var wn=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,kn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,xn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,On=/[A-Z0-9]/g,Nn=typeof document!="undefined",Tn=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};_.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(_.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Vt=_.options.event;function Cn(){}function Sn(){return this.cancelBubble}function An(){return this.defaultPrevented}_.options.event=function(e){return Vt&&(e=Vt(e)),e.persist=Cn,e.isPropagationStopped=Sn,e.isDefaultPrevented=An,e.nativeEvent=e};var Rn={enumerable:!1,configurable:!0,get:function(){return this.class}},Dt=_.options.vnode;_.options.vnode=function(e){typeof e.type=="string"&&function(t){var o=t.props,n=t.type,r={};for(var i in o){var a=o[i];if(!(i==="value"&&"defaultValue"in o&&a==null||Nn&&i==="children"&&n==="noscript"||i==="class"||i==="className")){var l=i.toLowerCase();i==="defaultValue"&&"value"in o&&o.value==null?i="value":i==="download"&&a===!0?a="":l==="ondoubleclick"?i="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||Tn(o.type)?l==="onfocus"?i="onfocusin":l==="onblur"?i="onfocusout":xn.test(i)?i=l:n.indexOf("-")===-1&&kn.test(i)?i=i.replace(On,"-$&").toLowerCase():a===null&&(a=void 0):l=i="oninput",l==="oninput"&&r[i=l]&&(i="oninputCapture"),r[i]=a}}n=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=_.toChildArray(o.children).forEach(function(c){c.props.selected=r.value.indexOf(c.props.value)!=-1})),n=="select"&&r.defaultValue!=null&&(r.value=_.toChildArray(o.children).forEach(function(c){c.props.selected=r.multiple?r.defaultValue.indexOf(c.props.value)!=-1:r.defaultValue==c.props.value})),o.class&&!o.className?(r.class=o.class,Object.defineProperty(r,"className",Rn)):(o.className&&!o.class||o.class&&o.className)&&(r.class=r.className=o.className),t.props=r}(e),e.$$typeof=wn,Dt&&Dt(e)};var Ft=_.options.__r;_.options.__r=function(e){Ft&&Ft(e),e.__c};var Gt=_.options.diffed;_.options.diffed=function(e){Gt&&Gt(e);var t=e.props,o=e.__e;o!=null&&e.type==="textarea"&&"value"in t&&t.value!==o.value&&(o.value=t.value==null?"":t.value)};function jn(){this.__data__=[],this.size=0}var In=jn;function Ln(e,t){return e===t||e!==e&&t!==t}var We=Ln,En=We;function Pn(e,t){for(var o=e.length;o--;)if(En(e[o][0],t))return o;return-1}var Ue=Pn,Bn=Ue,Hn=Array.prototype,zn=Hn.splice;function Mn(e){var t=this.__data__,o=Bn(t,e);if(o<0)return!1;var n=t.length-1;return o==n?t.pop():zn.call(t,o,1),--this.size,!0}var Vn=Mn,Dn=Ue;function Fn(e){var t=this.__data__,o=Dn(t,e);return o<0?void 0:t[o][1]}var Gn=Fn,Wn=Ue;function Un(e){return Wn(this.__data__,e)>-1}var qn=Un,Xn=Ue;function Kn(e,t){var o=this.__data__,n=Xn(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this}var Zn=Kn,Jn=In,Yn=Vn,Qn=Gn,er=qn,tr=Zn;function we(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}we.prototype.clear=Jn,we.prototype.delete=Yn,we.prototype.get=Qn,we.prototype.has=er,we.prototype.set=tr;var qe=we,or=qe;function nr(){this.__data__=new or,this.size=0}var rr=nr;function ar(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}var ir=ar;function sr(e){return this.__data__.get(e)}var cr=sr;function lr(e){return this.__data__.has(e)}var dr=lr,ur=typeof O=="object"&&O&&O.Object===Object&&O,Wt=ur,_r=Wt,pr=typeof self=="object"&&self&&self.Object===Object&&self,fr=_r||pr||Function("return this")(),ke=fr,vr=ke,gr=vr.Symbol,Ut=gr,qt=Ut,Xt=Object.prototype,hr=Xt.hasOwnProperty,mr=Xt.toString,je=qt?qt.toStringTag:void 0;function br(e){var t=hr.call(e,je),o=e[je];try{e[je]=void 0;var n=!0}catch(i){}var r=mr.call(e);return n&&(t?e[je]=o:delete e[je]),r}var yr=br,$r=Object.prototype,wr=$r.toString;function kr(e){return wr.call(e)}var xr=kr,Kt=Ut,Or=yr,Nr=xr,Tr="[object Null]",Cr="[object Undefined]",Zt=Kt?Kt.toStringTag:void 0;function Sr(e){return e==null?e===void 0?Cr:Tr:Zt&&Zt in Object(e)?Or(e):Nr(e)}var Xe=Sr;function Ar(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var de=Ar,Rr=Xe,jr=de,Ir="[object AsyncFunction]",Lr="[object Function]",Er="[object GeneratorFunction]",Pr="[object Proxy]";function Br(e){if(!jr(e))return!1;var t=Rr(e);return t==Lr||t==Er||t==Ir||t==Pr}var ut=Br,Hr=ke,zr=Hr["__core-js_shared__"],Mr=zr,_t=Mr,Jt=function(){var e=/[^.]+$/.exec(_t&&_t.keys&&_t.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Vr(e){return!!Jt&&Jt in e}var Dr=Vr,Fr=Function.prototype,Gr=Fr.toString;function Wr(e){if(e!=null){try{return Gr.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Ur=Wr,qr=ut,Xr=Dr,Kr=de,Zr=Ur,Jr=/[\\^$.*+?()[\]{}|]/g,Yr=/^\[object .+?Constructor\]$/,Qr=Function.prototype,ea=Object.prototype,ta=Qr.toString,oa=ea.hasOwnProperty,na=RegExp("^"+ta.call(oa).replace(Jr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ra(e){if(!Kr(e)||Xr(e))return!1;var t=qr(e)?na:Yr;return t.test(Zr(e))}var aa=ra;function ia(e,t){return e==null?void 0:e[t]}var sa=ia,ca=aa,la=sa;function da(e,t){var o=la(e,t);return ca(o)?o:void 0}var pt=da,ua=pt,_a=ke,pa=ua(_a,"Map"),Yt=pa,fa=pt,va=fa(Object,"create"),Ke=va,Qt=Ke;function ga(){this.__data__=Qt?Qt(null):{},this.size=0}var ha=ga;function ma(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ba=ma,ya=Ke,$a="__lodash_hash_undefined__",wa=Object.prototype,ka=wa.hasOwnProperty;function xa(e){var t=this.__data__;if(ya){var o=t[e];return o===$a?void 0:o}return ka.call(t,e)?t[e]:void 0}var Oa=xa,Na=Ke,Ta=Object.prototype,Ca=Ta.hasOwnProperty;function Sa(e){var t=this.__data__;return Na?t[e]!==void 0:Ca.call(t,e)}var Aa=Sa,Ra=Ke,ja="__lodash_hash_undefined__";function Ia(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Ra&&t===void 0?ja:t,this}var La=Ia,Ea=ha,Pa=ba,Ba=Oa,Ha=Aa,za=La;function xe(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}xe.prototype.clear=Ea,xe.prototype.delete=Pa,xe.prototype.get=Ba,xe.prototype.has=Ha,xe.prototype.set=za;var Ma=xe,eo=Ma,Va=qe,Da=Yt;function Fa(){this.size=0,this.__data__={hash:new eo,map:new(Da||Va),string:new eo}}var Ga=Fa;function Wa(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ua=Wa,qa=Ua;function Xa(e,t){var o=e.__data__;return qa(t)?o[typeof t=="string"?"string":"hash"]:o.map}var Ze=Xa,Ka=Ze;function Za(e){var t=Ka(this,e).delete(e);return this.size-=t?1:0,t}var Ja=Za,Ya=Ze;function Qa(e){return Ya(this,e).get(e)}var ei=Qa,ti=Ze;function oi(e){return ti(this,e).has(e)}var ni=oi,ri=Ze;function ai(e,t){var o=ri(this,e),n=o.size;return o.set(e,t),this.size+=o.size==n?0:1,this}var ii=ai,si=Ga,ci=Ja,li=ei,di=ni,ui=ii;function Oe(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}Oe.prototype.clear=si,Oe.prototype.delete=ci,Oe.prototype.get=li,Oe.prototype.has=di,Oe.prototype.set=ui;var _i=Oe,pi=qe,fi=Yt,vi=_i,gi=200;function hi(e,t){var o=this.__data__;if(o instanceof pi){var n=o.__data__;if(!fi||n.length<gi-1)return n.push([e,t]),this.size=++o.size,this;o=this.__data__=new vi(n)}return o.set(e,t),this.size=o.size,this}var mi=hi,bi=qe,yi=rr,$i=ir,wi=cr,ki=dr,xi=mi;function Ne(e){var t=this.__data__=new bi(e);this.size=t.size}Ne.prototype.clear=yi,Ne.prototype.delete=$i,Ne.prototype.get=wi,Ne.prototype.has=ki,Ne.prototype.set=xi;var Oi=Ne,Ni=pt,Ti=function(){try{var e=Ni(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),to=Ti,oo=to;function Ci(e,t,o){t=="__proto__"&&oo?oo(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}var ft=Ci,Si=ft,Ai=We;function Ri(e,t,o){(o!==void 0&&!Ai(e[t],o)||o===void 0&&!(t in e))&&Si(e,t,o)}var no=Ri;function ji(e){return function(t,o,n){for(var r=-1,i=Object(t),a=n(t),l=a.length;l--;){var c=a[e?l:++r];if(o(i[c],c,i)===!1)break}return t}}var Ii=ji,Li=Ii,Ei=Li(),Pi=Ei,Je={},Bi={get exports(){return Je},set exports(e){Je=e}};(function(e,t){var o=ke,n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,i=r&&r.exports===n,a=i?o.Buffer:void 0,l=a?a.allocUnsafe:void 0;function c(d,u){if(u)return d.slice();var f=d.length,p=l?l(f):new d.constructor(f);return d.copy(p),p}e.exports=c})(Bi,Je);var Hi=ke,zi=Hi.Uint8Array,Mi=zi,ro=Mi;function Vi(e){var t=new e.constructor(e.byteLength);return new ro(t).set(new ro(e)),t}var Di=Vi,Fi=Di;function Gi(e,t){var o=t?Fi(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}var Wi=Gi;function Ui(e,t){var o=-1,n=e.length;for(t||(t=Array(n));++o<n;)t[o]=e[o];return t}var qi=Ui,Xi=de,ao=Object.create,Ki=function(){function e(){}return function(t){if(!Xi(t))return{};if(ao)return ao(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}(),Zi=Ki;function Ji(e,t){return function(o){return e(t(o))}}var Yi=Ji,Qi=Yi,es=Qi(Object.getPrototypeOf,Object),io=es,ts=Object.prototype;function os(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||ts;return e===o}var so=os,ns=Zi,rs=io,as=so;function is(e){return typeof e.constructor=="function"&&!as(e)?ns(rs(e)):{}}var ss=is;function cs(e){return e!=null&&typeof e=="object"}var Ie=cs,ls=Xe,ds=Ie,us="[object Arguments]";function _s(e){return ds(e)&&ls(e)==us}var ps=_s,co=ps,fs=Ie,lo=Object.prototype,vs=lo.hasOwnProperty,gs=lo.propertyIsEnumerable,hs=co(function(){return arguments}())?co:function(e){return fs(e)&&vs.call(e,"callee")&&!gs.call(e,"callee")},uo=hs,ms=Array.isArray,_o=ms,bs=9007199254740991;function ys(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=bs}var po=ys,$s=ut,ws=po;function ks(e){return e!=null&&ws(e.length)&&!$s(e)}var vt=ks,xs=vt,Os=Ie;function Ns(e){return Os(e)&&xs(e)}var Ts=Ns,Le={},Cs={get exports(){return Le},set exports(e){Le=e}};function Ss(){return!1}var As=Ss;(function(e,t){var o=ke,n=As,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,l=a?o.Buffer:void 0,c=l?l.isBuffer:void 0,d=c||n;e.exports=d})(Cs,Le);var Rs=Xe,js=io,Is=Ie,Ls="[object Object]",Es=Function.prototype,Ps=Object.prototype,fo=Es.toString,Bs=Ps.hasOwnProperty,Hs=fo.call(Object);function zs(e){if(!Is(e)||Rs(e)!=Ls)return!1;var t=js(e);if(t===null)return!0;var o=Bs.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&fo.call(o)==Hs}var Ms=zs,Vs=Xe,Ds=po,Fs=Ie,Gs="[object Arguments]",Ws="[object Array]",Us="[object Boolean]",qs="[object Date]",Xs="[object Error]",Ks="[object Function]",Zs="[object Map]",Js="[object Number]",Ys="[object Object]",Qs="[object RegExp]",ec="[object Set]",tc="[object String]",oc="[object WeakMap]",nc="[object ArrayBuffer]",rc="[object DataView]",ac="[object Float32Array]",ic="[object Float64Array]",sc="[object Int8Array]",cc="[object Int16Array]",lc="[object Int32Array]",dc="[object Uint8Array]",uc="[object Uint8ClampedArray]",_c="[object Uint16Array]",pc="[object Uint32Array]",x={};x[ac]=x[ic]=x[sc]=x[cc]=x[lc]=x[dc]=x[uc]=x[_c]=x[pc]=!0,x[Gs]=x[Ws]=x[nc]=x[Us]=x[rc]=x[qs]=x[Xs]=x[Ks]=x[Zs]=x[Js]=x[Ys]=x[Qs]=x[ec]=x[tc]=x[oc]=!1;function fc(e){return Fs(e)&&Ds(e.length)&&!!x[Vs(e)]}var vc=fc;function gc(e){return function(t){return e(t)}}var hc=gc,Ye={},mc={get exports(){return Ye},set exports(e){Ye=e}};(function(e,t){var o=Wt,n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,i=r&&r.exports===n,a=i&&o.process,l=function(){try{var c=r&&r.require&&r.require("util").types;return c||a&&a.binding&&a.binding("util")}catch(d){}}();e.exports=l})(mc,Ye);var bc=vc,yc=hc,vo=Ye,go=vo&&vo.isTypedArray,$c=go?yc(go):bc,ho=$c;function wc(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var mo=wc,kc=ft,xc=We,Oc=Object.prototype,Nc=Oc.hasOwnProperty;function Tc(e,t,o){var n=e[t];(!(Nc.call(e,t)&&xc(n,o))||o===void 0&&!(t in e))&&kc(e,t,o)}var Cc=Tc,Sc=Cc,Ac=ft;function Rc(e,t,o,n){var r=!o;o||(o={});for(var i=-1,a=t.length;++i<a;){var l=t[i],c=n?n(o[l],e[l],l,o,e):void 0;c===void 0&&(c=e[l]),r?Ac(o,l,c):Sc(o,l,c)}return o}var jc=Rc;function Ic(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}var Lc=Ic,Ec=9007199254740991,Pc=/^(?:0|[1-9]\d*)$/;function Bc(e,t){var o=typeof e;return t=t==null?Ec:t,!!t&&(o=="number"||o!="symbol"&&Pc.test(e))&&e>-1&&e%1==0&&e<t}var bo=Bc,Hc=Lc,zc=uo,Mc=_o,Vc=Le,Dc=bo,Fc=ho,Gc=Object.prototype,Wc=Gc.hasOwnProperty;function Uc(e,t){var o=Mc(e),n=!o&&zc(e),r=!o&&!n&&Vc(e),i=!o&&!n&&!r&&Fc(e),a=o||n||r||i,l=a?Hc(e.length,String):[],c=l.length;for(var d in e)(t||Wc.call(e,d))&&!(a&&(d=="length"||r&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Dc(d,c)))&&l.push(d);return l}var qc=Uc;function Xc(e){var t=[];if(e!=null)for(var o in Object(e))t.push(o);return t}var Kc=Xc,Zc=de,Jc=so,Yc=Kc,Qc=Object.prototype,el=Qc.hasOwnProperty;function tl(e){if(!Zc(e))return Yc(e);var t=Jc(e),o=[];for(var n in e)n=="constructor"&&(t||!el.call(e,n))||o.push(n);return o}var ol=tl,nl=qc,rl=ol,al=vt;function il(e){return al(e)?nl(e,!0):rl(e)}var yo=il,sl=jc,cl=yo;function ll(e){return sl(e,cl(e))}var dl=ll,$o=no,ul=Je,_l=Wi,pl=qi,fl=ss,wo=uo,ko=_o,vl=Ts,gl=Le,hl=ut,ml=de,bl=Ms,yl=ho,xo=mo,$l=dl;function wl(e,t,o,n,r,i,a){var l=xo(e,o),c=xo(t,o),d=a.get(c);if(d){$o(e,o,d);return}var u=i?i(l,c,o+"",e,t,a):void 0,f=u===void 0;if(f){var p=ko(c),h=!p&&gl(c),$=!p&&!h&&yl(c);u=c,p||h||$?ko(l)?u=l:vl(l)?u=pl(l):h?(f=!1,u=ul(c,!0)):$?(f=!1,u=_l(c,!0)):u=[]:bl(c)||wo(c)?(u=l,wo(l)?u=$l(l):(!ml(l)||hl(l))&&(u=fl(c))):f=!1}f&&(a.set(c,u),r(u,c,n,i,a),a.delete(c)),$o(e,o,u)}var kl=wl,xl=Oi,Ol=no,Nl=Pi,Tl=kl,Cl=de,Sl=yo,Al=mo;function Oo(e,t,o,n,r){e!==t&&Nl(t,function(i,a){if(r||(r=new xl),Cl(i))Tl(e,t,a,o,Oo,n,r);else{var l=n?n(Al(e,a),i,a+"",e,t,r):void 0;l===void 0&&(l=i),Ol(e,a,l)}},Sl)}var Rl=Oo;function jl(e){return e}var No=jl;function Il(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}var Ll=Il,El=Ll,To=Math.max;function Pl(e,t,o){return t=To(t===void 0?e.length-1:t,0),function(){for(var n=arguments,r=-1,i=To(n.length-t,0),a=Array(i);++r<i;)a[r]=n[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=n[r];return l[t]=o(a),El(e,this,l)}}var Bl=Pl;function Hl(e){return function(){return e}}var zl=Hl,Ml=zl,Co=to,Vl=No,Dl=Co?function(e,t){return Co(e,"toString",{configurable:!0,enumerable:!1,value:Ml(t),writable:!0})}:Vl,Fl=Dl,Gl=800,Wl=16,Ul=Date.now;function ql(e){var t=0,o=0;return function(){var n=Ul(),r=Wl-(n-o);if(o=n,r>0){if(++t>=Gl)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Xl=ql,Kl=Fl,Zl=Xl,Jl=Zl(Kl),Yl=Jl,Ql=No,ed=Bl,td=Yl;function od(e,t){return td(ed(e,t,Ql),e+"")}var nd=od,rd=We,ad=vt,id=bo,sd=de;function cd(e,t,o){if(!sd(o))return!1;var n=typeof t;return(n=="number"?ad(o)&&id(t,o.length):n=="string"&&t in o)?rd(o[t],e):!1}var ld=cd,dd=nd,ud=ld;function _d(e){return dd(function(t,o){var n=-1,r=o.length,i=r>1?o[r-1]:void 0,a=r>2?o[2]:void 0;for(i=e.length>3&&typeof i=="function"?(r--,i):void 0,a&&ud(o[0],o[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++n<r;){var l=o[n];l&&e(t,l,n,i)}return t})}var pd=_d,fd=Rl,vd=pd;vd(function(e,t,o){fd(e,t,o)});const ue=(e,t,o)=>Array.isArray(e)?e.map((n,r)=>{const i=[o,r].filter(z).join(".");return ue(t(r,n,i),t,i)}):typeof e=="object"&&e?Object.entries(e).reduce((n,[r,i])=>{const a=[o,r].filter(z).join(".");return n[r]=ue(t(r,i,a),t,a),n},{}):e,gd=e=>{const t=document.getElementsByTagName("head")[0],o=document.createElement("link");Object.entries(e).forEach(([n,r])=>o.setAttribute(n,r)),t.appendChild(o)},Qe=()=>{let e={};return{on:(a,l)=>{a in e?e[a].push(l):e[a]=[l]},has:a=>a in e,get:a=>e[a],emit:(a,...l)=>a in e?e[a].map(c=>c(...l)).filter(Boolean):[],reset:()=>e={}}},hd=()=>({name:null,logo:null}),So=()=>({name:null,logo:null}),md=()=>({factor:null,type:null,outcome:null,value:null}),bd=()=>({w1:null,x:null,w2:null}),yd=()=>({w1:null,w2:null}),$d=()=>({one_x_two:bd(),one_two:yd()}),Ao=(e,t)=>{var n;const o={slug:(e==null?void 0:e.slug)||null,sportSlug:(e==null?void 0:e.sport_slug)||null,matchDate:(e==null?void 0:e.match_date)||null,teams:v({},(e==null?void 0:e.teams)||{0:So(),1:So()}),league:(e==null?void 0:e.unique_tournament)||hd(),prediction:(e==null?void 0:e.prediction)||md(),isNational:(n=e==null?void 0:e.is_national)!=null?n:null};if(t!=null&&t.markets){const r=t.markets.reduce((i,a)=>(i[a]=b(e||{},`markets.${a}`,$d()[a||"one_two"]),i),{});Ee(o,"markets",r)}return o},wd=(e=300,t)=>new Promise(o=>setTimeout(()=>o(t),e)),kd=e=>!e&&e==null,z=e=>!kd(e),Ro=e=>typeof e!="object"&&typeof e!="function"||e===null,xd=e=>typeof e=="object"&&!Array.isArray(e)&&z(e),Od=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,o)=>(o?"-":"")+t.toLowerCase()),re=(e,...t)=>t.reduce((o,n)=>(o[n]=e[n],o),{});function J(e,...t){const o=v({},e);return t.forEach(n=>{delete o[n]}),o}const b=(e,t,o)=>{if(!t)return;const r=(Array.isArray(t)?t:t.match(/([^[.\]])+/g)).reduce((i,a)=>i&&i[a],e);return r===void 0?o:r},Ee=(e,t,o)=>{const n=Array.isArray(t)?t:t.match(/([^[.\]])+/g);return n.reduce((r,i,a)=>(r[i]===void 0&&(r[i]={}),a===n.length-1&&(r[i]=o),r[i]),e)},Nd=e=>{const t=e.slice(1);t.length===3&&(e=t.split("").map(n=>`${n}${n}`).join(""));const o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return o?{r:parseInt(o[1],16),g:parseInt(o[2],16),b:parseInt(o[3],16)}:void 0},jo=(...e)=>e.map(t=>JSON.stringify(t)).every((t,o,n)=>t===n[0]),Td=e=>"id"in e&&"root"in e,Cd=(e,t=1)=>e.replace(")",`, ${t})`).replace("rgb","rgba"),Io=(e,t,o)=>ue(e,(n,r,i)=>Ro(r)||Array.isArray(r)&&r.every(Ro)?o?o(n,[r,b(t,i)],i)?b(t,i,r):r:b(t,i,r):r),Sd=(e,t)=>{try{ue(e,(o,n,r)=>{if(t(o,n,r))throw{key:o,value:n,path:r};return n})}catch(o){return o}},Ad=(e,t)=>{const o=[];return ue(e,(n,r,i)=>(t(n,r,i,o)&&o.push({key:n,value:r,path:i}),r)),o},Lo=["desktop","laptop","tablet","mobile"],Rd={mobile:320,tablet:768,laptop:1024,desktop:1920},N={root:"_root_1i41t_1",icon:"_icon_1i41t_5",iconTarget:"_iconTarget_1i41t_17",body:"_body_1i41t_23",bodyOpen:"_bodyOpen_1i41t_31",simpleGift_in:"_simpleGift_in_1i41t_1",close:"_close_1i41t_44",arrow:"_arrow_1i41t_58",container:"_container_1i41t_69",inner:"_inner_1i41t_75",logo:"_logo_1i41t_82",text:"_text_1i41t_89",button:"_button_1i41t_96",buttonAnimated:"_buttonAnimated_1i41t_105",increase:"_increase_1i41t_1",legalGap:"_legalGap_1i41t_109",legalOpen:"_legalOpen_1i41t_113",legal:"_legal_1i41t_109",legalText:"_legalText_1i41t_141",legalButton:"_legalButton_1i41t_159",fadein:"_fadein_1i41t_1",pulse:"_pulse_1i41t_1",gradient:"_gradient_1i41t_1",wiggle:"_wiggle_1i41t_1"};var jd=0;function s(e,t,o,n,r,i){var a,l,c={};for(l in t)l=="ref"?a=t[l]:c[l]=t[l];var d={type:e,props:c,key:o,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--jd,__source:r,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(l in a)c[l]===void 0&&(c[l]=a[l]);return _.options.vnode&&_.options.vnode(d),d}const Eo=_.createContext(),_e=({children:e,value:t})=>s(Eo.Provider,{value:t,children:e}),pe=e=>a=>ze(this,null,function*(){var l=a,{target:t,id:o,ref:n,state:r}=l,i=wt(l,["target","id","ref","state"]);if(!("ResizeObserver"in window)){const c=yield Promise.resolve().then(()=>Du);window.ResizeObserver=c.ResizeObserver}return _.render(s(_e,{value:r,children:_.cloneElement(e,v({ref:n,id:o},i))}),t)}),q=()=>hn(Eo),Id=(e={})=>typeof e=="object"&&z(e)&&Lo.every(t=>t in e),Ld=(e,t)=>e&&ue(e,(o,n)=>{if(Id(n)){const r=n[t];return r&&"parent"in r&&z(r.parent)?v(v({},n[r.parent]),J(r,"parent")):r}return n}),fe=(e,t)=>Ld(e,t),Te=({id:e,targetRef:t,parentKey:o="device-container",breakpoints:n=Rd})=>{const[r,i]=ne("desktop"),a=l=>{var f;const c=l.getBoundingClientRect().width||0,d=Object.entries(v({},n)).sort(([p,h],[$,m])=>h-m),u=((f=d.find(([p,h],$)=>{const[m,T]=d[$+1]||[];return c>=h&&c<T}))==null?void 0:f[0])||"desktop";i(u)};return St(()=>{const l=t.current.closest(`[data-${o}='${e}']`)||document.body;l&&(new ResizeObserver(()=>a(l)).observe(l),a(l))},[]),r},Po=e=>console.warn(`[Adstore-templates Deprecated]: ${e}`),et=(e,t)=>z(e)&&!(typeof e=="number"?e.toString():e).includes(t)?`${e}${t}`:e,Ed=e=>e.startsWith("px_"),Pd=e=>e.startsWith("percent_"),Bd=(e,t)=>{let o=e,n=t;return Ed(o)&&(o=o.replace("px_",""),n=et(t,"px")),Pd(o)&&(o=o.replace("percent_",""),n=et(t,"%")),{key:o,value:n}},Hd="-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji'",zd=["borderWidth","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","minHeight","minWidth","maxWidth","maxHeight","fontSize","height","width","letterSpacing","fontSize","left","right","top","bottom","marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"],Bo=e=>{const t=Object.keys(e);return(t.includes("innerHTML")||t.includes("innerText"))&&console.warn('Warning! InnerHTML and innerText is deprecated. Use "children" property.'),typeof e!="object"?e:Object.entries(e).reduce((o,[n,r])=>{zd.includes(n)&&(r=et(r,"px"));const{key:i,value:a}=Bd(n,r);if(xd(a)&&(o[i]=Bo(a)),o[i]=a,i==="hidden"&&a)return o.display="none",o;if(i==="innerHTML"&&(o.innerHTML=z(a)?`${a}`:""),i==="innerText"&&(o.innerText=z(a)?`${a}`:""),i==="children"&&(o.children=typeof a=="string"?z(a)?`${a}`:"":a),i.includes("borderWidth")&&(o.borderStyle="solid"),i==="corner"&&(o.borderRadius=et(a,"px")),i==="backgroundFit"&&(Po("Property 'backgroundFit' is deprecated. Use 'objectFit' instead."),o.backgroundSize=a,o.objectFit=a),i==="backgroundImage"&&z(a)&&(o.backgroundImage=`url(${a})`,o.backgroundRepeat="no-repeat",o.imageSource=a,Po("Property 'backgroundImage' is deprecated. Use 'imageSource' instead.")),i==="backgroundColorOpacity"&&z(o.backgroundColorOpacity)&&z(o.backgroundColor)){const l=Nd(o.backgroundColor);l&&(o.backgroundColor=Cd(`rgb(${l.r}, ${l.g}, ${l.b})`,+o.backgroundColorOpacity/100))}return i==="fontFamily"&&/auto/i.test(a)&&(o.fontFamily=Hd),i==="isBold"&&(o.fontWeight=a?"bold":"initial"),i==="isItalic"&&(o.fontStyle=a?"italic":"initial"),i==="isThrough"&&(o.textDecoration=a?"line-through":"initial"),o},e)},Md=e=>typeof e=="object"&&!Array.isArray(e)&&"parent"in e,V=e=>z(e)?Object.entries(e).reduce((t,[o,n])=>(t[o]=Md(n)?Bo(v({},e[o])):n,t),{}):e,Vd=e=>e in document.createElement("div").style||e.startsWith("--"),ae=r=>{var i=r,{children:e,typography:t,accentTypography:o}=i,n=wt(i,["children","typography","accentTypography"]);var c;const a=Re(()=>{if(!o)return{};let d="";return Object.entries(o).forEach(([u,f])=>{Vd(u)&&(d+=`${Od(u)}: ${f}; `)}),d},[o]),l=(c=e==null?void 0:e.replace(/script|\n/g,""))==null?void 0:c.replace(/{{(.*?)}}/g,`<span style="${a}">$1</span>`);return s("div",k(v({},n),{style:v(v({},t),n.style||{}),dangerouslySetInnerHTML:{__html:l}}))},Ho=()=>{const[e,t]=ne(!1);return[e,()=>t(o=>!o)]},Ce=()=>s("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",children:s("path",{d:"M17.659 4.929a1 1 0 1 1 1.414 1.414L13.416 12l5.657 5.657a1 1 0 0 1-1.415 1.414l-5.656-5.657-5.657 5.657a1 1 0 0 1-1.414-1.414L10.587 12 4.931 6.343A1 1 0 1 1 6.345 4.93l5.657 5.657 5.656-5.657Z",fill:"currentColor"})}),gt=()=>s("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M5.95312 2.15L7.04063 4H7H4.75C4.05937 4 3.5 3.44062 3.5 2.75C3.5 2.05938 4.05937 1.5 4.75 1.5H4.81875C5.28437 1.5 5.71875 1.74688 5.95312 2.15ZM2 2.75C2 3.2 2.10938 3.625 2.3 4H1C0.446875 4 0 4.44688 0 5V7C0 7.55312 0.446875 8 1 8H15C15.5531 8 16 7.55312 16 7V5C16 4.44688 15.5531 4 15 4H13.7C13.8906 3.625 14 3.2 14 2.75C14 1.23125 12.7688 0 11.25 0H11.1812C10.1844 0 9.25938 0.528125 8.75313 1.3875L8 2.67188L7.24687 1.39062C6.74062 0.528125 5.81562 0 4.81875 0H4.75C3.23125 0 2 1.23125 2 2.75ZM12.5 2.75C12.5 3.44062 11.9406 4 11.25 4H9H8.95938L10.0469 2.15C10.2844 1.74688 10.7156 1.5 11.1812 1.5H11.25C11.9406 1.5 12.5 2.05938 12.5 2.75ZM1 9V14.5C1 15.3281 1.67188 16 2.5 16H7V9H1ZM9 16H13.5C14.3281 16 15 15.3281 15 14.5V9H9V16Z",fill:"currentColor"})}),Dd=e=>({fade:`${e.fade} 2s linear infinite`,pulse:`${e.pulse} .3s linear 0s infinite alternate forwards`,wiggle:`${e.wiggle} 2s linear infinite`,gradient:`${e.gradient} 3s ease infinite`}),zo=(e,t)=>{var u,f,p,h,$,m,T,L,E,C,P,B,G;const o=Dd(t),n=V(e),r=(u=n==null?void 0:n.icon)==null?void 0:u.hasIcon,i={left:`${+(((f=e==null?void 0:e.container)==null?void 0:f.left)||0)*-1+8}px`,backgroundColor:(p=n==null?void 0:n.container)==null?void 0:p.backgroundColor,borderTopWidth:(h=n==null?void 0:n.container)==null?void 0:h.borderWidth,borderTopColor:($=n==null?void 0:n.container)==null?void 0:$.borderColor,borderTopStyle:"solid",borderLeftWidth:(m=n==null?void 0:n.container)==null?void 0:m.borderWidth,borderLeftColor:(T=n==null?void 0:n.container)==null?void 0:T.borderColor,borderLeftStyle:"solid"},a={left:(L=n==null?void 0:n.container)==null?void 0:L.left},l=(((E=n==null?void 0:n.icon)==null?void 0:E.animations)||[]).map(w=>o[w]).join(", "),c=z((C=n==null?void 0:n.icon)==null?void 0:C.gradientColor)&&((P=n==null?void 0:n.icon)!=null&&P.animations.includes("gradient"))?{background:`linear-gradient(-90deg, ${(B=n.icon)==null?void 0:B.backgroundColor} 0%, ${(G=n==null?void 0:n.icon)==null?void 0:G.gradientColor} 100%) 0% 0% / 400% 400%`,backgroundSize:"400% 400%"}:n==null?void 0:n.icon,d=v(k(v({},(n==null?void 0:n.icon)||{}),{animation:l}),c);return{hasIcon:r,arrowRules:i,bodyRules:a,iconRules:d}},ve=e=>{const t=new Set([]);ue(e,(n,r)=>(n==="fontFamily"&&t.add(r),r));const o=Re(()=>Array.from(t.values()).filter(n=>!/auto/i.test(n)).map(n=>({rel:"stylesheet",href:`https://fonts.googleapis.com/css?family=${n}:300,400,500,700&display=swap`})),[t]);U(()=>{o.forEach(gd)},[o])},Q=["backgroundColor","backgroundColorOpacity","backgroundImage","backgroundSize","backgroundRepeat"],Fd=["borderWidth","borderColor","borderStyle"],Mo=["imageSource","objectFit"],tt=["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"],Gd=({delay:e,onOpen:t,onAutoOpen:o})=>{const[n,r]=ne(!1),i=X(null),a=c=>{clearTimeout(i.current),i.current=null},l=()=>{a(i.current),r(c=>!c)};return U(()=>(i.current=setTimeout(()=>{r(!0),o&&o()},e||1e3),()=>a(i.current)),[e]),U(()=>{n&&!i.current&&t&&t()},[n]),{isOpen:n,toggle:l}},Vo=({ref:e,openDelay:t})=>{const o=X(Qe()),n=c=>o.current.on("open",c),r=c=>o.current.on("click",c),i=c=>o.current.on("autoOpen",c),{isOpen:a,toggle:l}=Gd({delay:t,onOpen:()=>o.current.emit("open"),onAutoOpen:()=>o.current.emit("autoOpen")});return De(e,()=>({onOpen:n,onClick:r,onAutoOpen:i,resetListeners:o.current.reset})),U(()=>o.current.reset,[]),{isOpen:a,toggle:l,click:(...c)=>o.current.emit("click",...c)}},Wd=le(({id:e},t)=>{var L,E,C,P,B,G,w,M,H;const o=X(null),[n,r]=Ho(),i=q(),a=Te({targetRef:o,id:e}),l=fe(i,a),c=V(l),{hasIcon:d,iconRules:u,bodyRules:f,arrowRules:p}=zo(l,{fade:N.fadein,pulse:N.pulse,wiggle:N.wiggle,gradient:N.gradient}),{isOpen:h,toggle:$,click:m}=Vo({ref:t,openDelay:(L=l==null?void 0:l.container)==null?void 0:L.delay});ve(l);const T=n?re(c.container,...Fd):{};return s("div",{className:S(N.root,{[N.legalOpen]:n}),ref:o,children:[s("div",{className:N.icon,style:u,onClick:$,children:d&&s("div",{className:N.iconTarget,children:s(gt,{})})}),s("div",{className:S(N.body,{[N.bodyOpen]:h}),style:f,children:[s("div",{className:N.arrow,style:p}),s("div",{className:N.close,style:c==null?void 0:c.close,onClick:$,children:s(Ce,{})}),s("div",{className:N.container,style:c==null?void 0:c.container,children:[s("a",{href:(E=c==null?void 0:c.root)==null?void 0:E.offer,target:"_blank",rel:"nofollow noopener noreferrer",onClick:()=>m(c.id),children:[s("div",{className:N.inner,children:[s("div",{className:N.logo,style:c==null?void 0:c.logo}),s(ae,{className:N.text,style:c==null?void 0:c.text,typography:(C=c.text)==null?void 0:C.typography,accentTypography:(P=c.text)==null?void 0:P.accentTypography,children:(B=c==null?void 0:c.text)==null?void 0:B.children})]}),s("div",{className:S(N.button,{[N.buttonAnimated]:c==null?void 0:c.button.isAnimated}),style:c==null?void 0:c.button,children:(G=c==null?void 0:c.button)==null?void 0:G.children})]}),s("div",{className:N.legalGap}),s("div",{className:N.legal,style:v(v({},c==null?void 0:c.legal),T),children:s("span",{className:N.legalText,children:s("span",{children:[s("span",{children:(w=c==null?void 0:c.legal)==null?void 0:w.children}),s("span",{className:N.legalButton,onClick:r,children:n?(M=c==null?void 0:c.legal)==null?void 0:M.buttonOpenText:(H=c==null?void 0:c.legal)==null?void 0:H.buttonHideText})]})})})]})]})]})}),Ud=pe(s(Wd,{})),A={root:"_root_g8256_1",icon:"_icon_g8256_5",iconTarget:"_iconTarget_g8256_17",body:"_body_g8256_23",desktop:"_desktop_g8256_30",tablet:"_tablet_g8256_30",laptop:"_laptop_g8256_30",bodyOpen:"_bodyOpen_g8256_34",complexGift_in:"_complexGift_in_g8256_1",arrow:"_arrow_g8256_47",container:"_container_g8256_57",promotion:"_promotion_g8256_62",close:"_close_g8256_68",head:"_head_g8256_82",headIcon:"_headIcon_g8256_88",headTitle:"_headTitle_g8256_94",inner:"_inner_g8256_101",fadein:"_fadein_g8256_1",pulse:"_pulse_g8256_1",gradient:"_gradient_g8256_1",wiggle:"_wiggle_g8256_1"},ee={root:"_root_1y96a_1",body:"_body_1y96a_30",bodyInner:"_bodyInner_1y96a_38",line:"_line_1y96a_43",text:"_text_1y96a_53",button:"_button_1y96a_61",logo:"_logo_1y96a_73",variant2:"_variant2_1y96a_79",buttonText:"_buttonText_1y96a_83",legal:"_legal_1y96a_100"},qd=({onClick:e})=>{var n,r,i,a,l,c,d;const t=q(),o=V(t);return s("a",{href:(n=o.root)==null?void 0:n.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:S(ee.root,{[ee.variant2]:((r=o.root)==null?void 0:r.variant)==="variant2"}),style:o.root,onClick:()=>e(o.id),children:[s("div",{className:ee.body,children:[s("div",{className:ee.line,style:o.line}),s("div",{className:ee.bodyInner,children:[s("div",{className:ee.logo,style:o.logo}),s("div",{className:ee.text,style:o.text,children:s(ae,{typography:(i=o.text)==null?void 0:i.typography,accentTypography:(a=o.text)==null?void 0:a.accentTypography,children:(l=o.text)==null?void 0:l.children})})]}),s("div",{className:ee.button,style:o.button,children:[s("div",{className:ee.logo,style:o.logo}),s("div",{className:ee.buttonText,children:(c=o.button)==null?void 0:c.children})]})]}),s("div",{className:ee.legal,style:o.legal,children:(d=o.legal)==null?void 0:d.children})]})},Xd=le(({id:e},t)=>{var L,E,C,P;const o=X(null),n=q(),r=Te({targetRef:o,id:e}),i=fe(n,r),a=V(i),{isOpen:l,click:c,toggle:d}=Vo({ref:t,openDelay:(L=i==null?void 0:i.container)==null?void 0:L.delay});ve(i);const{hasIcon:u,iconRules:f,bodyRules:p,arrowRules:h}=zo(i,{fade:A.fadein,pulse:A.pulse,wiggle:A.wiggle,gradient:A.gradient}),$=(E=a==null?void 0:a.title)==null?void 0:E.hasIcon,m=re(a==null?void 0:a.title,...tt),T=J(a==null?void 0:a.title,...tt);return s("div",{ref:o,className:S(A.root,{[A.desktop]:r==="desktop",[A.laptop]:r==="laptop",[A.tablet]:r==="tablet"}),children:[s("div",{className:A.icon,style:f,onClick:d,children:u&&s("div",{className:A.iconTarget,children:s(gt,{})})}),s("div",{className:S(A.body,{[A.bodyOpen]:l}),style:p,children:[s("div",{className:A.arrow,style:h}),s("div",{className:A.container,style:a.container,children:[s("div",{className:A.close,style:a.close,onClick:d,children:s(Ce,{})}),s("div",{className:A.head,style:m,children:[$&&s("div",{className:A.headIcon,style:re(a.title,"color"),children:s(gt,{})}),s("div",{className:A.headTitle,style:T,children:(C=a.title)==null?void 0:C.children})]}),s("div",{className:A.inner,children:(a.children||[]).map(B=>s(_e,{value:B,children:s(qd,{onClick:c})}))}),s("div",{className:A.promotion,style:a.promotion,children:(P=a.promotion)==null?void 0:P.children})]})]})]})}),Kd=pe(s(Xd,{})),K={root:"_root_18vic_1",background:"_background_18vic_11",content:"_content_18vic_19",laptop:"_laptop_18vic_29",desktop:"_desktop_18vic_33",wrapper:"_wrapper_18vic_37",overlay:"_overlay_18vic_41",close:"_close_18vic_47",body:"_body_18vic_56",logo:"_logo_18vic_65",text:"_text_18vic_71",button:"_button_18vic_75",legal:"_legal_18vic_90"},ge=e=>e&&{left:"flex-start",center:"center",right:"flex-end"}[e],Zd={root:"_root_mj8hr_1"},Jd=()=>{var o,n,r;const e=q(),t=V(e);return s("div",{className:Zd.root,style:t.root,children:s(ae,{typography:(o=t.root)==null?void 0:o.typography,accentTypography:(n=t.root)==null?void 0:n.accentTypography,children:(r=t==null?void 0:t.root)==null?void 0:r.children})})},ht=(e,t=0)=>{const o=X(Qe()),[n,r]=ne(!1),[i,a]=ne(),[l,c]=ne(!1),d=m=>o.current.on("visible",m),u=m=>o.current.on("click",m),f=m=>o.current.on("clickHide",m),p=()=>ze(this,null,function*(){yield wd(+t),r(!0)}),h=()=>r(!1),$=()=>{o.current.emit("clickHide"),h()};return U(()=>{l&&o.current.emit("visible",n)},[n,l]),De(e,()=>({onVisible:d,onClick:u,onClickHide:f,show:p,hide:h,setApiHost:a,resetListeners:o.current.reset})),U(()=>o.current.reset,[]),{isReady:l,isOpen:n,apiHost:i,show:p,hide:h,clickHide:$,setIsReady:c,click:(...m)=>{h(),o.current.emit("click",...m)}}};function Yd(e){return!(!e.complete||typeof e.naturalWidth!="undefined"&&e.naturalWidth===0)}const Qd=le(({id:e,className:t},o)=>{var P,B,G,w,M,H;const n=X(null),r=X(null),i=Te({targetRef:n,id:e}),a=q(),l=fe(a,i);ve(l),Ee(l,"button.percent_width",(P=l==null?void 0:l.button)==null?void 0:P.width),Ee(l,"legal.percent_width",(B=l==null?void 0:l.legal)==null?void 0:B.width);const c=V(l),d=b(c,"root.delay",0),{isOpen:u,isReady:f,setIsReady:p,clickHide:h,click:$}=ht(o,d);U(()=>{const Z=r.current;if(!Z)return;if(Yd(Z)){p(!0);return}const be=()=>p(!0);return Z.addEventListener("load",be),()=>{Z.removeEventListener("load",be)}},[c]);const m={alignItems:ge((G=c.root)==null?void 0:G.align)},T=k(v({},c==null?void 0:c.button),{justifyContent:ge((w=c.root)==null?void 0:w.textAlign)}),L=k(v({},c==null?void 0:c.legal),{justifyContent:ge((M=c.root)==null?void 0:M.textAlign)}),E=J(c.root,...Mo,...Q),C=re(c.root,...Mo);return s("div",{className:S(K.root,t),ref:n,style:{display:u&&f?"flex":"none"},children:[s("div",{className:K.overlay,style:c.overlay,onClick:h}),s("div",{className:K.wrapper,children:[s("div",{className:K.close,style:J(c.close,"backgroundColor"),onClick:h,children:s(Ce,{})}),s("a",{href:(H=c.root)==null?void 0:H.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:S(K.content,{[K.desktop]:i==="desktop",[K.tablet]:i==="tablet",[K.laptop]:i==="laptop"}),style:E,onClick:()=>$(c.id),children:[s("img",{ref:r,className:K.background,src:C.imageSource,alt:"",style:C}),s("div",{className:K.body,style:m,children:[s("div",{className:K.logo,style:c.logo}),s("div",{className:K.text,children:((c==null?void 0:c.children)||[]).map(Z=>s(_e,{value:Z,children:s(Jd,{})}))}),s("div",{className:K.button,style:T,children:T==null?void 0:T.children}),s("div",{className:K.legal,style:L,children:L==null?void 0:L.children})]})]})]})]})}),eu=pe(s(Qd,{})),ce={root:"_root_krw01_1",content:"_content_krw01_11",desktop:"_desktop_krw01_23",laptop:"_laptop_krw01_23",overlay:"_overlay_krw01_28",close:"_close_krw01_34",title:"_title_krw01_43",wrapper:"_wrapper_krw01_58"},te={root:"_root_1gwqg_1",desktop:"_desktop_1gwqg_9",laptop:"_laptop_1gwqg_9",header:"_header_1gwqg_14",logo:"_logo_1gwqg_25",container:"_container_1gwqg_32",body:"_body_1gwqg_43",text:"_text_1gwqg_60",button:"_button_1gwqg_75",legal:"_legal_1gwqg_93"},tu=({onClick:e})=>{var r,i,a,l,c,d;const t=q(),o=V(t),n=(t==null?void 0:t.device)||"desktop";return s("a",{href:(r=o.root)==null?void 0:r.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:S(te.root,{[te.desktop]:n==="desktop",[te.laptop]:n==="laptop"}),style:J(o.root,...tt),onClick:()=>e(o.id),children:[s("div",{className:te.header,style:o.header,children:s("div",{className:te.logo,style:o.logo})}),s("div",{className:te.container,style:re(o.root,...tt),children:[s("div",{className:te.body,children:[s("div",{className:te.logo,style:o.logo}),s(ae,{className:te.text,style:o.text,typography:(i=o.text)==null?void 0:i.typography,accentTypography:(a=o.text)==null?void 0:a.accentTypography,children:(l=o.text)==null?void 0:l.children})]}),s("div",{children:[s(ae,{className:te.button,style:o.button,children:(c=o.button)==null?void 0:c.children}),s(ae,{className:te.legal,style:o.legal,children:(d=o.legal)==null?void 0:d.children})]})]})]})},ou=le(({id:e},t)=>{var f;const o=X(null),n=Te({targetRef:o,id:e}),r=q(),i=fe(r,n),a=V(i);ve(i);const l=b(a,"root.delay",0),{isOpen:c,clickHide:d,click:u}=ht(t,l);return s("div",{className:ce.root,style:{display:c?"flex":"none"},children:[s("div",{className:ce.overlay,style:a.overlay,onClick:d}),s("div",{ref:o,className:S(ce.content,{[ce.desktop]:n==="desktop",[ce.laptop]:n==="laptop"}),style:a.root,children:[s("div",{className:ce.close,style:J(a.close,"backgroundColor"),onClick:d,children:s(Ce,{})}),s(ae,{className:ce.title,style:a.title,children:(f=a.title)==null?void 0:f.children}),s("div",{className:ce.wrapper,children:(a.children||[]).map(p=>s(_e,{value:k(v({},p),{device:n}),children:s(tu,{onClick:u})}))})]})]})}),nu=pe(s(ou,{})),D={root:"_root_v3g4u_1",content:"_content_v3g4u_11",close:"_close_v3g4u_19",overlay:"_overlay_v3g4u_28",body:"_body_v3g4u_34",desktop:"_desktop_v3g4u_42",laptop:"_laptop_v3g4u_42",tablet:"_tablet_v3g4u_46",head:"_head_v3g4u_51",title:"_title_v3g4u_61",logo:"_logo_v3g4u_74",wrapper:"_wrapper_v3g4u_81",text:"_text_v3g4u_88",button:"_button_v3g4u_96",buttonHead:"_buttonHead_v3g4u_111",buttonTarget:"_buttonTarget_v3g4u_128",legal:"_legal_v3g4u_142"},R={root:"_root_16jvv_1",left:"_left_16jvv_8",desktop:"_desktop_16jvv_15",laptop:"_laptop_16jvv_15",teams:"_teams_16jvv_19",logo:"_logo_16jvv_25",league:"_league_16jvv_32",name:"_name_16jvv_37",right:"_right_16jvv_43",odd:"_odd_16jvv_54",oddLabel:"_oddLabel_16jvv_67",oddValue:"_oddValue_16jvv_76",team:"_team_16jvv_19",teamLogo:"_teamLogo_16jvv_100",teamName:"_teamName_16jvv_107"},ru=()=>{const e=q(),t=V(e),o=(e==null?void 0:e.device)||"desktop",n=k(v({},t==null?void 0:t.teamALogo),{backgroundImage:b(t,"match.teams[0].logo")}),r=k(v({},t==null?void 0:t.teamBLogo),{backgroundImage:b(t,"match.teams[1].logo")});return s("div",{className:S(R.root,{[R.desktop]:o==="desktop",[R.laptop]:o==="laptop"}),children:[s("div",{className:R.left,children:[s("div",{className:R.teams,children:[s("img",{className:R.logo,src:n.backgroundImage,style:n,alt:""}),s("img",{className:R.logo,src:r.backgroundImage,style:r})]}),s("div",{className:R.body,children:[s("div",{className:R.league,style:t.league,children:b(t,"match.league.name")}),s("div",{className:R.name,style:t.teams,children:[b(t,"match.teams[0].name")," — ",b(t,"match.teams[1].name")]})]})]}),s("div",{className:R.right,children:[s("div",{className:R.team,children:[s("img",{className:R.teamLogo,style:n,src:n.backgroundImage}),s("div",{className:R.teamName,style:t.teams,children:b(t,"match.teams[0].name")})]}),s("div",{className:R.odd,children:[s("div",{className:R.oddLabel,style:t.oddLabel,children:b(t,"match.prediction.value")}),s("div",{className:R.oddValue,style:t.oddValue,children:b(t,"match.prediction.factor")})]}),s("div",{className:R.team,children:[s("img",{className:R.teamLogo,style:r,src:r.backgroundImage}),s("div",{className:R.teamName,style:t.teams,children:b(t,"match.teams[1].name")})]})]})]})},Do=(e,{pause:t,params:o,method:n,body:r})=>{const[i,a]=ne(),l=Re(()=>{let d=e;if(o){const u=new URLSearchParams(d);Object.entries(o).forEach(([f,p])=>{u.append(f,p)}),d+=u}return d},[e,o]),c=gn(()=>ze(this,null,function*(){if(t)return;const d=yield fetch(l,{method:n||"GET",body:r?JSON.stringify(r):void 0,headers:{"Content-Type":"application/json"}}).then(u=>u.json());a(d.data)}),[l,t,n,r]);return U(()=>{t||c()},[l,t]),{data:i,execute:c}};function Fo(e){const t=X();return U(()=>{t.current=e},[e]),t.current}const au=(e,t)=>{const o=d=>{var u;return z(d==null?void 0:d.matchSlug)&&((u=d==null?void 0:d.matchSlug)==null?void 0:u.length)>0},n=e.children||[],r=n.filter(d=>o(d.root.targetMatch)).map(d=>d.root.targetMatch),i=Fo(r),{data:a,execute:l}=Do(`${t}/match-list`,{method:"POST",body:{matches:r.map(d=>({slug:d.matchSlug,sport_slug:d.sportSlug,lang:d.langSlug,bookmaker_slug:d.bookmaker,offset:d.offset,markets:d.markets}))},pause:!t||r.length===0});return U(()=>{jo(i,r)||l()},[r]),n.map(d=>{const u=(a||[]).find(h=>h.slug===d.root.targetMatch.matchSlug);if(!u)return;const f=Ao(u),p=Io(f,d.root.customMatch,(h,[$,m])=>z(m));return k(v({},d),{match:p})}).filter(Boolean)},iu=le(({id:e},t)=>{var E,C,P,B,G,w,M,H,Z,be,He,dn,un;const o=X(null),n=Te({targetRef:o,id:e}),r=q(),i=fe(r,n);Ee(i,"buttonWrapper.percent_width",(E=i==null?void 0:i.buttonWrapper)==null?void 0:E.width),Ee(i,"legal.percent_width",(C=i==null?void 0:i.legal)==null?void 0:C.width);const a=V(i);ve(i);const l=b(a,"root.delay",0),{isOpen:c,apiHost:d,clickHide:u,click:f}=ht(t,l),p=au(i,d),h=k(v({},a.root),{alignItems:ge((P=a.root)==null?void 0:P.align)}),$=k(v({},a.content),{alignItems:ge((B=a.root)==null?void 0:B.align)}),m=k(v({},a.text),{textAlign:(G=a.root)==null?void 0:G.align}),T=k(v({},a==null?void 0:a.button),{justifyContent:ge((w=a.root)==null?void 0:w.textAlign)}),L=k(v({},a==null?void 0:a.legal),{justifyContent:ge((M=a.root)==null?void 0:M.textAlign)});return s("div",{className:S(D.root,{[D.desktop]:n==="desktop",[D.laptop]:n==="laptop",[D.tablet]:n==="tablet"}),ref:o,style:{display:c?"flex":"none"},children:[s("div",{className:D.overlay,style:a.overlay,onClick:u}),s("div",{className:D.content,children:[s("div",{className:D.close,style:J(a.close,"backgroundColor"),onClick:u,children:s(Ce,{})}),s("a",{ref:o,href:(H=a.root)==null?void 0:H.offer,target:"_blank",rel:"nofollow noopener noreferrer",onClick:()=>f(a.id),children:s("div",{className:D.body,style:h,children:[s("div",{className:D.head,children:[s("div",{className:D.title,style:a.title,children:(Z=a.title)==null?void 0:Z.children}),s("div",{className:D.logo,style:a.logo})]}),s("div",{className:D.wrapper,style:$,children:(p||[]).map(Fu=>s(_e,{value:k(v({},Fu),{device:n}),children:s(ru,{})}))}),s(ae,{className:D.text,style:m,typography:m.typography,accentTypography:m.accentTypography,children:(be=a.text)==null?void 0:be.children}),s("div",{className:D.button,style:a.buttonWrapper,children:[s("div",{className:D.buttonHead,style:a.buttonHead,children:(He=a.buttonHead)==null?void 0:He.children}),s("div",{className:D.buttonTarget,style:T,children:(dn=a.button)==null?void 0:dn.children})]}),s(ae,{className:D.legal,style:L,children:(un=a.legal)==null?void 0:un.children})]})})]})]})}),su=pe(s(iu,{})),oe={root:"_root_x31x3_1",background:"_background_x31x3_18",body:"_body_x31x3_27",bookmaker:"_bookmaker_x31x3_36",button:"_button_x31x3_43",rowFirst:"_rowFirst_x31x3_57",rowSecond:"_rowSecond_x31x3_63",legal:"_legal_x31x3_69",legalText:"_legalText_x31x3_86",legalOpen:"_legalOpen_x31x3_96",legalButton:"_legalButton_x31x3_101"},cu=({onClick:e})=>{var i,a,l,c,d,u,f,p;const t=q(),o=V(t),[n,r]=Ho();return s("div",{className:oe.root,style:J(o.root,...Q),children:[s("div",{className:oe.background,style:re(o.root,...Q)}),s("a",{href:(i=o.root)==null?void 0:i.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:oe.body,onClick:()=>e(o.id),children:[s("div",{children:[s("div",{className:oe.rowFirst,style:o.rowFirst,children:(a=o.rowFirst)==null?void 0:a.children}),s("div",{className:oe.rowSecond,style:o.rowSecond,children:(l=o.rowSecond)==null?void 0:l.children}),s("div",{className:oe.bookmaker,style:o.bookmaker,children:(c=o.bookmaker)==null?void 0:c.children})]}),s("div",{className:oe.button,style:o.button,children:(d=o.button)==null?void 0:d.children})]}),s("div",{className:S(oe.legal,{[oe.legalOpen]:n}),style:o.legalInfo,children:s("span",{className:oe.legalText,children:[s("span",{children:(u=o.legalInfo)==null?void 0:u.children}),s("span",{className:oe.legalButton,style:o.legalInfoButton,onClick:r,children:n?(f=o.legalInfoButton)==null?void 0:f.openText:(p=o.legalInfoButton)==null?void 0:p.closeText})]})})]})},lu=e=>{const t=X(Qe()),o=n=>t.current.on("click",n);return De(e,()=>({promoId:"BonusCard",onClick:o,resetListeners:t.current.reset})),U(()=>t.current.reset,[]),{click:(...n)=>t.current.emit("click",...n),onClick:o}},du=le((e,t)=>{const o=X(null),n=q(),i=fe(n,"mobile"),a=V(i);ve(i);const{click:l}=lu(t);return s("div",{ref:o,children:((a==null?void 0:a.children)||[]).map(c=>s(_e,{value:c,children:s(cu,{onClick:l})}))})}),uu=pe(s(du,{})),j={root:"_root_woisr_1",desktop:"_desktop_woisr_13",laptop:"_laptop_woisr_14",promotion:"_promotion_woisr_18",background:"_background_woisr_34",close:"_close_woisr_43",content:"_content_woisr_52",variant2:"_variant2_woisr_65",logo:"_logo_woisr_69",left:"_left_woisr_81",center:"_center_woisr_94",slide:"_slide_woisr_100",slide_animated_default:"_slide_animated_default_woisr_114","fade-in-out":"_fade-in-out_woisr_1","slide_animated_bottom-top":"_slide_animated_bottom-top_woisr_117","fade-in-bottom-out-top":"_fade-in-bottom-out-top_woisr_1","slide_animated_top-bottom":"_slide_animated_top-bottom_woisr_120",right:"_right_woisr_124",buttonWrapper:"_buttonWrapper_woisr_139",button:"_button_woisr_139",button_animated:"_button_animated_woisr_173",increase:"_increase_woisr_1","fade-in-top-out-bottom":"_fade-in-top-out-bottom_woisr_1"},Go={root:"_root_1c4sr_1",desktop:"_desktop_1c4sr_11"},_u=()=>{var o,n,r;const e=q(),t=V(e);return s("div",{className:S(Go.root,{[Go.desktop]:(e==null?void 0:e.device)==="desktop"}),style:J(t.root,...Q),children:s(ae,{accentTypography:(o=t.root)==null?void 0:o.accentTypography,typography:(n=t.root)==null?void 0:n.typography,children:(r=t.root)==null?void 0:r.children})})},I={root:"_root_gohhp_1",title:"_title_gohhp_8",desktop:"_desktop_gohhp_13",laptop:"_laptop_gohhp_13",titleLabel:"_titleLabel_gohhp_17",tablet:"_tablet_gohhp_20",titleValue:"_titleValue_gohhp_27",teamLogo:"_teamLogo_gohhp_38",teams:"_teams_gohhp_49",teamName:"_teamName_gohhp_57",odds:"_odds_gohhp_64",odd:"_odd_gohhp_64",oddX:"_oddX_gohhp_76",oddValue:"_oddValue_gohhp_84"},ot=(e,t,o=1,n=!1)=>{const[r,i]=[t[0],t[1]||t[0]].map(l=>l*o),a=`w${r}-h${i}${n?"-c":""}`;return e.replace(/(\/(?:upload|user-avatars)\/[\w\d]+\/)origin(\/)/,`$1${a}$2`)},pu=()=>{var i,a;const e=q(),t=V(e),o=J(t.root,...Q),n=k(v({},t.teamLogo),{backgroundImage:ot(b(t,"match.teams[0].logo"),[120,120]),backgroundColor:"transparent"}),r=k(v({},t.teamLogo),{backgroundImage:ot(b(t,"match.teams[1].logo"),[120,120]),backgroundColor:"transparent"});return s("div",{className:S(I.root,{[I.desktop]:e.device==="desktop",[I.laptop]:e.device==="laptop",[I.tablet]:e.device==="tablet"}),style:o,children:[s("div",{className:I.title,children:[s("div",{className:I.titleLabel,style:t.titleLabel,children:(i=t.titleLabel)==null?void 0:i.children}),s("div",{className:I.titleValue,style:t.titleValue,children:(a=t.titleValue)==null?void 0:a.children})]}),s("div",{className:I.odds,children:[s("div",{className:I.odd,children:[s("img",{className:I.teamLogo,src:n.backgroundImage,style:n}),s("div",{className:I.oddValue,style:t.value,children:b(t,"match.markets.one_x_two.w1")})]}),s("div",{className:I.odd,children:[s("div",{className:I.oddX,style:t.coef,children:"X"}),s("div",{className:I.oddValue,style:t.value,children:b(t,"match.markets.one_x_two.x")})]}),s("div",{className:I.odd,children:[s("img",{className:I.teamLogo,src:r.backgroundImage,style:r}),s("div",{className:I.oddValue,style:t.value,children:b(t,"match.markets.one_x_two.w2")})]})]}),s("div",{className:I.teams,children:[s("div",{className:I.teamName,style:t.teamName,children:b(t,"match.teams[0].name")}),s("div",{className:I.teamName,style:t.teamName,children:b(t,"match.teams[1].name")})]})]})},F={root:"_root_1bycs_1",title:"_title_1bycs_8",titleLabel:"_titleLabel_1bycs_13",tablet:"_tablet_1bycs_16",desktop:"_desktop_1bycs_19",laptop:"_laptop_1bycs_19",titleValue:"_titleValue_1bycs_23",team:"_team_1bycs_34",teamLogo:"_teamLogo_1bycs_45",national:"_national_1bycs_56",teamName:"_teamName_1bycs_77",teamValue:"_teamValue_1bycs_89"},fu=()=>{var r,i;const e=q(),t=V(e),o=k(v(v({},re(t.root,...Q)),t.teamLogo),{backgroundColor:"transparent",backgroundImage:ot(b(t,"match.teams[0].logo"),[120,120])}),n=k(v(v({},re(t.root,...Q)),t.teamLogo),{backgroundColor:"transparent",backgroundImage:ot(b(t,"match.teams[1].logo"),[120,120])});return s("div",{className:S(F.root,{[F.desktop]:(e==null?void 0:e.device)==="desktop",[F.laptop]:(e==null?void 0:e.device)==="laptop",[F.tablet]:(e==null?void 0:e.device)==="tablet",[F.national]:b(t,"match.isNational")}),style:J(t.root,...Q),children:[s("div",{className:F.title,children:[s("div",{className:F.titleLabel,style:t.titleLabel,children:(r=t.titleLabel)==null?void 0:r.children}),s("div",{className:F.titleValue,style:t.titleValue,children:(i=t.titleValue)==null?void 0:i.children})]}),s("div",{children:[s("div",{className:F.team,children:[s("img",{className:F.teamLogo,src:o.backgroundImage,style:o}),s("div",{className:F.teamName,style:t.teamName,children:b(t,"match.teams[0].name")}),s("div",{className:F.teamValue,style:t.value,children:b(t,"match.markets.one_two.w1")})]}),s("div",{className:F.team,children:[s("img",{className:F.teamLogo,src:n.backgroundImage,style:n}),s("div",{className:F.teamName,style:t.teamName,children:b(t,"match.teams[1].name")}),s("div",{className:F.teamValue,style:t.value,children:b(t,"match.markets.one_two.w2")})]})]})]})},vu=(e=[])=>{var i;const t=e.length,[o,n]=ne(0),r=(i=e[o||0])==null?void 0:i.animationDuration;return U(()=>{const l=setTimeout(()=>{n(c=>c+1<t?c+1:0)},r);return()=>clearTimeout(l)},[n,t,r,o]),o},gu={matches:"one_x_two",matchesOneTwo:"one_two"},Wo=e=>[gu[e]],hu=(e,t)=>{const o=d=>{var u;return z(d==null?void 0:d.matchSlug)&&((u=d==null?void 0:d.matchSlug)==null?void 0:u.length)>0},n=e.children||[],r=n.filter(d=>o(d.root.targetMatch)).map(d=>k(v({},d.root.targetMatch),{markets:Wo(d.name)})),i=Fo(r),{data:a,execute:l}=Do(`${t}/match-list`,{method:"POST",body:{matches:r.map(d=>({slug:d.matchSlug,sport_slug:d.sportSlug,lang:d.langSlug,bookmaker_slug:d.bookmaker,offset:d.offset,markets:d.markets}))},pause:!t||r.length===0});return U(()=>{jo(i,r)||l()},[r]),n.map(d=>{if("targetMatch"in d.root){const u=(a||[]).find($=>$.slug===d.root.targetMatch.matchSlug);if(!u)return;const f=Wo(d.name),p=Ao(u,{markets:f}),h=Io(p,d.root.customMatch,($,[m,T])=>z(T));return k(v({},d),{match:h})}return d}).filter(Boolean)},mu=e=>{const t=X(Qe()),[o,n]=ne(!1),[r,i]=ne(),a=p=>t.current.on("visible",p),l=p=>t.current.on("click",p),c=p=>t.current.on("clickHide",p),d=()=>ze(this,null,function*(){n(!0)}),u=()=>n(!1),f=()=>{t.current.emit("clickHide"),u()};return U(()=>{t.current.emit("visible",o)},[o]),De(e,()=>({onVisible:a,onClick:l,onClickHide:c,show:d,hide:u,setApiHost:i,resetListeners:t.current.reset})),U(()=>t.current.reset,[]),{isOpen:o,apiHost:r,show:d,hide:u,clickHide:f,click:(...p)=>{t.current.emit("click",...p)}}},bu=3700,yu=le(({id:e},t)=>{var E,C,P,B,G;const o=X(null),n=q(),r=Te({id:e,targetRef:o}),i=fe(n,r),a=V(i);ve(i);const{apiHost:l,isOpen:c,click:d,clickHide:u}=mu(t),f=hu(a,l),p=w=>({text:s(_u,{}),matches:s(pu,{}),matchesOneTwo:s(fu,{})})[w],h=f.filter(Boolean).map(w=>{var M,H;return k(v({},w),{animationName:(M=w==null?void 0:w.root)==null?void 0:M.animationName,animationDuration:((H=w==null?void 0:w.root)==null?void 0:H.animationDuration)||bu})}),$=vu(h),m=V(h[$]||{}),T=J(a.root,...Q),L=(E=m==null?void 0:m.root)!=null&&E.hasCustomBackground?re((m==null?void 0:m.root)||{},...Q):re(a.root,...Q);return s("div",{ref:o,className:S(j.root,{[j.desktop]:r==="desktop",[j.laptop]:r==="laptop",[j.tablet]:r==="tablet",[j.variant2]:((C=a.root)==null?void 0:C.variant)==="variant2"}),style:k(v({},T),{display:c?"block":"none"}),children:[s("div",{className:j.close,style:a.close,onClick:u,children:s(Ce,{})}),s("a",{href:(P=a.root)==null?void 0:P.offer,target:"_blank",rel:"nofollow noopener noreferrer",onClick:d,children:[s("div",{className:j.background,style:L}),s("div",{className:j.promotion,style:a.promotion,children:(B=a.promotion)==null?void 0:B.children}),s("div",{className:j.content,children:[s("div",{className:j.left,children:s("div",{className:j.logo,style:a.logo})}),s("div",{className:j.center,children:(h||[]).map((w,M)=>{var H,Z;return s("div",{className:j.slide,style:{animationName:$===M?j[((H=w.root)==null?void 0:H.animationName)||"fade-in-out"]:"none",animationDuration:`${(Z=w.root)==null?void 0:Z.animationDuration}ms`},children:s(_e,{value:k(v({},w),{device:r}),children:p(w.name)})})})}),s("div",{className:j.right,children:[s("div",{className:j.logo,style:a.logo}),s("div",{className:j.buttonWrapper,children:s("div",{className:S(j.button,{[j.button_animated]:a.button.$animated}),style:a.button,children:[s("div",{className:j.logo,style:a.logo}),(G=a.button)==null?void 0:G.children]})})]})]})]})]})}),$u=pe(s(yu,{})),wu=(e,t,o,n,r=Lo)=>{const i=v({},e);return r.forEach(a=>{i[t]=k(v({},i[t]),{[a]:k(v({},i[t][a]),{[o]:typeof n=="function"?n(b(i,`${t}.${a}.${o}`)):n})})}),i};var he=[],ku=function(){return he.some(function(e){return e.activeTargets.length>0})},xu=function(){return he.some(function(e){return e.skippedTargets.length>0})},Uo="ResizeObserver loop completed with undelivered notifications.",Ou=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Uo}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Uo),window.dispatchEvent(e)},Pe;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Pe||(Pe={}));var me=function(e){return Object.freeze(e)},qo=function(){function e(t,o){this.inlineSize=t,this.blockSize=o,me(this)}return e}(),Xo=function(){function e(t,o,n,r){return this.x=t,this.y=o,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,me(this)}return e.prototype.toJSON=function(){var t=this,o=t.x,n=t.y,r=t.top,i=t.right,a=t.bottom,l=t.left,c=t.width,d=t.height;return{x:o,y:n,top:r,right:i,bottom:a,left:l,width:c,height:d}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),mt=function(e){return e instanceof SVGElement&&"getBBox"in e},Ko=function(e){if(mt(e)){var t=e.getBBox(),o=t.width,n=t.height;return!o&&!n}var r=e,i=r.offsetWidth,a=r.offsetHeight;return!(i||a||e.getClientRects().length)},Zo=function(e){var t;if(e instanceof Element)return!0;var o=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(o&&e instanceof o.Element)},Nu=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Be=typeof window!="undefined"?window:{},nt=new WeakMap,Jo=/auto|scroll/,Tu=/^tb|vertical/,Cu=/msie|trident/i.test(Be.navigator&&Be.navigator.userAgent),ie=function(e){return parseFloat(e||"0")},Se=function(e,t,o){return e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=!1),new qo((o?t:e)||0,(o?e:t)||0)},Yo=me({devicePixelContentBoxSize:Se(),borderBoxSize:Se(),contentBoxSize:Se(),contentRect:new Xo(0,0,0,0)}),Qo=function(e,t){if(t===void 0&&(t=!1),nt.has(e)&&!t)return nt.get(e);if(Ko(e))return nt.set(e,Yo),Yo;var o=getComputedStyle(e),n=mt(e)&&e.ownerSVGElement&&e.getBBox(),r=!Cu&&o.boxSizing==="border-box",i=Tu.test(o.writingMode||""),a=!n&&Jo.test(o.overflowY||""),l=!n&&Jo.test(o.overflowX||""),c=n?0:ie(o.paddingTop),d=n?0:ie(o.paddingRight),u=n?0:ie(o.paddingBottom),f=n?0:ie(o.paddingLeft),p=n?0:ie(o.borderTopWidth),h=n?0:ie(o.borderRightWidth),$=n?0:ie(o.borderBottomWidth),m=n?0:ie(o.borderLeftWidth),T=f+d,L=c+u,E=m+h,C=p+$,P=l?e.offsetHeight-C-e.clientHeight:0,B=a?e.offsetWidth-E-e.clientWidth:0,G=r?T+E:0,w=r?L+C:0,M=n?n.width:ie(o.width)-G-B,H=n?n.height:ie(o.height)-w-P,Z=M+T+B+E,be=H+L+P+C,He=me({devicePixelContentBoxSize:Se(Math.round(M*devicePixelRatio),Math.round(H*devicePixelRatio),i),borderBoxSize:Se(Z,be,i),contentBoxSize:Se(M,H,i),contentRect:new Xo(f,c,M,H)});return nt.set(e,He),He},en=function(e,t,o){var n=Qo(e,o),r=n.borderBoxSize,i=n.contentBoxSize,a=n.devicePixelContentBoxSize;switch(t){case Pe.DEVICE_PIXEL_CONTENT_BOX:return a;case Pe.BORDER_BOX:return r;default:return i}},tn=function(){function e(t){var o=Qo(t);this.target=t,this.contentRect=o.contentRect,this.borderBoxSize=me([o.borderBoxSize]),this.contentBoxSize=me([o.contentBoxSize]),this.devicePixelContentBoxSize=me([o.devicePixelContentBoxSize])}return e}(),on=function(e){if(Ko(e))return 1/0;for(var t=0,o=e.parentNode;o;)t+=1,o=o.parentNode;return t},Su=function(){var e=1/0,t=[];he.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(d){var u=new tn(d.target),f=on(d.target);l.push(u),d.lastReportedSize=en(d.target,d.observedBox),f<e&&(e=f)}),t.push(function(){a.callback.call(a.observer,l,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var o=0,n=t;o<n.length;o++){var r=n[o];r()}return e},nn=function(e){he.forEach(function(o){o.activeTargets.splice(0,o.activeTargets.length),o.skippedTargets.splice(0,o.skippedTargets.length),o.observationTargets.forEach(function(r){r.isActive()&&(on(r.target)>e?o.activeTargets.push(r):o.skippedTargets.push(r))})})},Au=function(){var e=0;for(nn(e);ku();)e=Su(),nn(e);return xu()&&Ou(),e>0},bt,rn=[],Ru=function(){return rn.splice(0).forEach(function(e){return e()})},ju=function(e){if(!bt){var t=0,o=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return Ru()}).observe(o,n),bt=function(){o.textContent="".concat(t?t--:t++)}}rn.push(e),bt()},Iu=function(e){ju(function(){requestAnimationFrame(e)})},rt=0,Lu=function(){return!!rt},Eu=250,Pu={attributes:!0,characterData:!0,childList:!0,subtree:!0},an=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],sn=function(e){return e===void 0&&(e=0),Date.now()+e},yt=!1,Bu=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var o=this;if(t===void 0&&(t=Eu),!yt){yt=!0;var n=sn(t);Iu(function(){var r=!1;try{r=Au()}finally{if(yt=!1,t=n-sn(),!Lu())return;r?o.run(1e3):t>0?o.run(t):o.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,o=function(){return t.observer&&t.observer.observe(document.body,Pu)};document.body?o():Be.addEventListener("DOMContentLoaded",o)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),an.forEach(function(o){return Be.addEventListener(o,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),an.forEach(function(o){return Be.removeEventListener(o,t.listener,!0)}),this.stopped=!0)},e}(),$t=new Bu,cn=function(e){!rt&&e>0&&$t.start(),rt+=e,!rt&&$t.stop()},Hu=function(e){return!mt(e)&&!Nu(e)&&getComputedStyle(e).display==="inline"},zu=function(){function e(t,o){this.target=t,this.observedBox=o||Pe.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=en(this.target,this.observedBox,!0);return Hu(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Mu=function(){function e(t,o){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=o}return e}(),at=new WeakMap,ln=function(e,t){for(var o=0;o<e.length;o+=1)if(e[o].target===t)return o;return-1},it=function(){function e(){}return e.connect=function(t,o){var n=new Mu(t,o);at.set(t,n)},e.observe=function(t,o,n){var r=at.get(t),i=r.observationTargets.length===0;ln(r.observationTargets,o)<0&&(i&&he.push(r),r.observationTargets.push(new zu(o,n&&n.box)),cn(1),$t.schedule())},e.unobserve=function(t,o){var n=at.get(t),r=ln(n.observationTargets,o),i=n.observationTargets.length===1;r>=0&&(i&&he.splice(he.indexOf(n),1),n.observationTargets.splice(r,1),cn(-1))},e.disconnect=function(t){var o=this,n=at.get(t);n.observationTargets.slice().forEach(function(r){return o.unobserve(t,r.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Vu=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");it.connect(this,t)}return e.prototype.observe=function(t,o){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Zo(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");it.observe(this,t,o)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Zo(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");it.unobserve(this,t)},e.prototype.disconnect=function(){it.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const Du=Object.freeze(Object.defineProperty({__proto__:null,ResizeObserver:Vu,ResizeObserverEntry:tn,ResizeObserverSize:qo},Symbol.toStringTag,{value:"Module"}));g.BonusCard=uu,g.ComplexGift=Kd,g.ComplexPopup=nu,g.ExpressPopup=su,g.SimpleGift=Ud,g.SimplePopup=eu,g.WideCard=$u,g.filterDeep=Ad,g.findDeep=Sd,g.isValidTemplate=Td,g.modifyState=wu,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adstore/templates",
3
3
  "private": false,
4
- "version": "2.5.7",
4
+ "version": "2.5.9",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"