@adstore/templates 2.7.0 → 2.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ (function(v,p){typeof exports=="object"&&typeof module!="undefined"?p(exports,require("preact")):typeof define=="function"&&define.amd?define(["exports","preact"],p):(v=typeof globalThis!="undefined"?globalThis:v||self,p(v["@adstore/templates"]={},v.preact))})(this,function(v,p){"use strict";var ou=Object.defineProperty,nu=Object.defineProperties;var ru=Object.getOwnPropertyDescriptors;var ut=Object.getOwnPropertySymbols;var mn=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable;var vn=(v,p,C)=>p in v?ou(v,p,{enumerable:!0,configurable:!0,writable:!0,value:C}):v[p]=C,h=(v,p)=>{for(var C in p||(p={}))mn.call(p,C)&&vn(v,C,p[C]);if(ut)for(var C of ut(p))bn.call(p,C)&&vn(v,C,p[C]);return v},w=(v,p)=>nu(v,ru(p));var Tt=(v,p)=>{var C={};for(var X in v)mn.call(v,X)&&p.indexOf(X)<0&&(C[X]=v[X]);if(v!=null&&ut)for(var X of ut(v))p.indexOf(X)<0&&bn.call(v,X)&&(C[X]=v[X]);return C};var We=(v,p,C)=>new Promise((X,Ge)=>{var T=te=>{try{x(C.next(te))}catch(Ne){Ge(Ne)}},_e=te=>{try{x(C.throw(te))}catch(Ne){Ge(Ne)}},x=te=>te.done?X(te.value):Promise.resolve(te.value).then(T,_e);x((C=C.apply(v,p)).next())});var C=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},X={},Ge={get exports(){return X},set exports(e){X=e}};/*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
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 s=arguments[r];if(s){var a=typeof s;if(a==="string"||a==="number")n.push(s);else if(Array.isArray(s)){if(s.length){var l=o.apply(null,s);l&&n.push(l)}}else if(a==="object"){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){n.push(s.toString());continue}for(var d in s)t.call(s,d)&&s[d]&&n.push(d)}}}return n.join(" ")}e.exports?(o.default=o,e.exports=o):window.classNames=o})()})(Ge);const T=X;var _e,x,te,Ne,Ce=0,Ot=[],Ue=[],St=p.options.__b,Lt=p.options.__r,At=p.options.diffed,jt=p.options.__c,It=p.options.unmount;function Re(e,t){p.options.__h&&p.options.__h(x,e,Ce||t),Ce=0;var o=x.__H||(x.__H={__:[],__h:[]});return e>=o.__.length&&o.__.push({__V:Ue}),o.__[e]}function se(e){return Ce=1,yn(Bt,e)}function yn(e,t,o){var n=Re(_e++,2);if(n.t=e,!n.__c&&(n.__=[o?o(t):Bt(void 0,t),function(l){var d=n.__N?n.__N[0]:n.__[0],c=n.t(d,l);d!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=x,!x.u)){var r=function(l,d,c){if(!n.__c.__H)return!0;var _=n.__c.__H.__.filter(function(u){return u.__c});if(_.every(function(u){return!u.__N}))return!s||s.call(this,l,d,c);var f=!1;return _.forEach(function(u){if(u.__N){var g=u.__[0];u.__=u.__N,u.__N=void 0,g!==u.__[0]&&(f=!0)}}),!(!f&&n.__c.props===l)&&(!s||s.call(this,l,d,c))};x.u=!0;var s=x.shouldComponentUpdate,a=x.componentWillUpdate;x.componentWillUpdate=function(l,d,c){if(this.__e){var _=s;s=void 0,r(l,d,c),s=_}a&&a.call(this,l,d,c)},x.shouldComponentUpdate=r}return n.__N||n.__}function W(e,t){var o=Re(_e++,3);!p.options.__s&&ft(o.__H,t)&&(o.__=e,o.i=t,x.__H.__h.push(o))}function Rt(e,t){var o=Re(_e++,4);!p.options.__s&&ft(o.__H,t)&&(o.__=e,o.i=t,x.__h.push(o))}function G(e){return Ce=5,Be(function(){return{current:e}},[])}function Ee(e,t,o){Ce=6,Rt(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 Be(e,t){var o=Re(_e++,7);return ft(o.__H,t)?(o.__V=e(),o.i=t,o.__h=e,o.__V):o.__}function $n(e,t){return Ce=8,Be(function(){return e},t)}function kn(e){var t=x.context[e.__c],o=Re(_e++,9);return o.c=e,t?(o.__==null&&(o.__=!0,t.sub(x)),t.props.value):e.__}function xn(){for(var e;e=Ot.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Xe),e.__H.__h.forEach(pt),e.__H.__h=[]}catch(t){e.__H.__h=[],p.options.__e(t,e.__v)}}p.options.__b=function(e){x=null,St&&St(e)},p.options.__r=function(e){Lt&&Lt(e),_e=0;var t=(x=e.__c).__H;t&&(te===x?(t.__h=[],x.__h=[],t.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=Ue,o.__N=o.i=void 0})):(t.__h.forEach(Xe),t.__h.forEach(pt),t.__h=[])),te=x},p.options.diffed=function(e){At&&At(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ot.push(t)!==1&&Ne===p.options.requestAnimationFrame||((Ne=p.options.requestAnimationFrame)||wn)(xn)),t.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==Ue&&(o.__=o.__V),o.i=void 0,o.__V=Ue})),te=x=null},p.options.__c=function(e,t){t.some(function(o){try{o.__h.forEach(Xe),o.__h=o.__h.filter(function(n){return!n.__||pt(n)})}catch(n){t.some(function(r){r.__h&&(r.__h=[])}),t=[],p.options.__e(n,o.__v)}}),jt&&jt(e,t)},p.options.unmount=function(e){It&&It(e);var t,o=e.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{Xe(n)}catch(r){t=r}}),o.__H=void 0,t&&p.options.__e(t,o.__v))};var Et=typeof requestAnimationFrame=="function";function wn(e){var t,o=function(){clearTimeout(n),Et&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(o,100);Et&&(t=requestAnimationFrame(o))}function Xe(e){var t=x,o=e.__c;typeof o=="function"&&(e.__c=void 0,o()),x=t}function pt(e){var t=x;e.__c=e.__(),x=t}function ft(e,t){return!e||e.length!==t.length||t.some(function(o,n){return o!==e[n]})}function Bt(e,t){return typeof t=="function"?t(e):t}function zt(e,t){for(var o in t)e[o]=t[o];return e}function Pt(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 Mt(e){this.props=e}(Mt.prototype=new p.Component).isPureReactComponent=!0,Mt.prototype.shouldComponentUpdate=function(e,t){return Pt(this.props,e)||Pt(this.state,t)};var Ht=p.options.__b;p.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ht&&Ht(e)};var Nn=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ue(e){function t(o){var n=zt({},o);return delete n.ref,e(n,o.ref||null)}return t.$$typeof=Nn,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Cn=p.options.__e;p.options.__e=function(e,t,o,n){if(e.then){for(var r,s=t;s=s.__;)if((r=s.__c)&&r.__c)return t.__e==null&&(t.__e=o.__e,t.__k=o.__k),r.__c(e,t)}Cn(e,t,o,n)};var Vt=p.options.unmount;function Dt(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=zt({},e)).__c!=null&&(e.__c.__P===o&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Dt(n,t,o)})),e}function qt(e,t,o){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return qt(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 ht(){this.__u=0,this.t=null,this.__b=null}function Ft(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ze(){this.u=null,this.o=null}p.options.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Vt&&Vt(e)},(ht.prototype=new p.Component).__c=function(e,t){var o=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var r=Ft(n.__v),s=!1,a=function(){s||(s=!0,o.__R=null,r?r(l):l())};o.__R=a;var l=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=qt(c,c.__c.__P,c.__c.__O)}var _;for(n.setState({__a:n.__b=null});_=n.t.pop();)_.forceUpdate()}},d=t.__h===!0;n.__u++||d||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},ht.prototype.componentWillUnmount=function(){this.t=[]},ht.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]=Dt(this.__b,o,n.__O=n.__P)}this.__b=null}var r=t.__a&&p.createElement(p.Fragment,null,e.fallback);return r&&(r.__h=null),[p.createElement(p.Fragment,null,t.__a?null:e.children),r]};var Wt=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]}};(Ze.prototype=new p.Component).__a=function(e){var t=this,o=Ft(t.__v),n=t.o.get(e);return n[0]++,function(r){var s=function(){t.props.revealOrder?(n.push(r),Wt(t,e,n)):r()};o?o(s):s()}},Ze.prototype.render=function(e){this.u=null,this.o=new Map;var t=p.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},Ze.prototype.componentDidUpdate=Ze.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,o){Wt(e,o,t)})};var Tn=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,On=/^(?: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]/,Sn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ln=/[A-Z0-9]/g,An=typeof document!="undefined",jn=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};p.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(p.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 Gt=p.options.event;function In(){}function Rn(){return this.cancelBubble}function En(){return this.defaultPrevented}p.options.event=function(e){return Gt&&(e=Gt(e)),e.persist=In,e.isPropagationStopped=Rn,e.isDefaultPrevented=En,e.nativeEvent=e};var Bn={enumerable:!1,configurable:!0,get:function(){return this.class}},Ut=p.options.vnode;p.options.vnode=function(e){typeof e.type=="string"&&function(t){var o=t.props,n=t.type,r={};for(var s in o){var a=o[s];if(!(s==="value"&&"defaultValue"in o&&a==null||An&&s==="children"&&n==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in o&&o.value==null?s="value":s==="download"&&a===!0?a="":l==="ondoubleclick"?s="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||jn(o.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Sn.test(s)?s=l:n.indexOf("-")===-1&&On.test(s)?s=s.replace(Ln,"-$&").toLowerCase():a===null&&(a=void 0):l=s="oninput",l==="oninput"&&r[s=l]&&(s="oninputCapture"),r[s]=a}}n=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=p.toChildArray(o.children).forEach(function(d){d.props.selected=r.value.indexOf(d.props.value)!=-1})),n=="select"&&r.defaultValue!=null&&(r.value=p.toChildArray(o.children).forEach(function(d){d.props.selected=r.multiple?r.defaultValue.indexOf(d.props.value)!=-1:r.defaultValue==d.props.value})),o.class&&!o.className?(r.class=o.class,Object.defineProperty(r,"className",Bn)):(o.className&&!o.class||o.class&&o.className)&&(r.class=r.className=o.className),t.props=r}(e),e.$$typeof=Tn,Ut&&Ut(e)};var Xt=p.options.__r;p.options.__r=function(e){Xt&&Xt(e),e.__c};var Zt=p.options.diffed;p.options.diffed=function(e){Zt&&Zt(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 zn(){this.__data__=[],this.size=0}var Pn=zn;function Mn(e,t){return e===t||e!==e&&t!==t}var Ke=Mn,Hn=Ke;function Vn(e,t){for(var o=e.length;o--;)if(Hn(e[o][0],t))return o;return-1}var Je=Vn,Dn=Je,qn=Array.prototype,Fn=qn.splice;function Wn(e){var t=this.__data__,o=Dn(t,e);if(o<0)return!1;var n=t.length-1;return o==n?t.pop():Fn.call(t,o,1),--this.size,!0}var Gn=Wn,Un=Je;function Xn(e){var t=this.__data__,o=Un(t,e);return o<0?void 0:t[o][1]}var Zn=Xn,Kn=Je;function Jn(e){return Kn(this.__data__,e)>-1}var Yn=Jn,Qn=Je;function er(e,t){var o=this.__data__,n=Qn(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this}var tr=er,or=Pn,nr=Gn,rr=Zn,ar=Yn,ir=tr;function Te(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])}}Te.prototype.clear=or,Te.prototype.delete=nr,Te.prototype.get=rr,Te.prototype.has=ar,Te.prototype.set=ir;var Ye=Te,sr=Ye;function cr(){this.__data__=new sr,this.size=0}var lr=cr;function dr(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}var _r=dr;function ur(e){return this.__data__.get(e)}var pr=ur;function fr(e){return this.__data__.has(e)}var hr=fr,gr=typeof C=="object"&&C&&C.Object===Object&&C,Kt=gr,vr=Kt,mr=typeof self=="object"&&self&&self.Object===Object&&self,br=vr||mr||Function("return this")(),Oe=br,yr=Oe,$r=yr.Symbol,Jt=$r,Yt=Jt,Qt=Object.prototype,kr=Qt.hasOwnProperty,xr=Qt.toString,ze=Yt?Yt.toStringTag:void 0;function wr(e){var t=kr.call(e,ze),o=e[ze];try{e[ze]=void 0;var n=!0}catch(s){}var r=xr.call(e);return n&&(t?e[ze]=o:delete e[ze]),r}var Nr=wr,Cr=Object.prototype,Tr=Cr.toString;function Or(e){return Tr.call(e)}var Sr=Or,eo=Jt,Lr=Nr,Ar=Sr,jr="[object Null]",Ir="[object Undefined]",to=eo?eo.toStringTag:void 0;function Rr(e){return e==null?e===void 0?Ir:jr:to&&to in Object(e)?Lr(e):Ar(e)}var Qe=Rr;function Er(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var be=Er,Br=Qe,zr=be,Pr="[object AsyncFunction]",Mr="[object Function]",Hr="[object GeneratorFunction]",Vr="[object Proxy]";function Dr(e){if(!zr(e))return!1;var t=Br(e);return t==Mr||t==Hr||t==Pr||t==Vr}var gt=Dr,qr=Oe,Fr=qr["__core-js_shared__"],Wr=Fr,vt=Wr,oo=function(){var e=/[^.]+$/.exec(vt&&vt.keys&&vt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Gr(e){return!!oo&&oo in e}var Ur=Gr,Xr=Function.prototype,Zr=Xr.toString;function Kr(e){if(e!=null){try{return Zr.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Jr=Kr,Yr=gt,Qr=Ur,ea=be,ta=Jr,oa=/[\\^$.*+?()[\]{}|]/g,na=/^\[object .+?Constructor\]$/,ra=Function.prototype,aa=Object.prototype,ia=ra.toString,sa=aa.hasOwnProperty,ca=RegExp("^"+ia.call(sa).replace(oa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function la(e){if(!ea(e)||Qr(e))return!1;var t=Yr(e)?ca:na;return t.test(ta(e))}var da=la;function _a(e,t){return e==null?void 0:e[t]}var ua=_a,pa=da,fa=ua;function ha(e,t){var o=fa(e,t);return pa(o)?o:void 0}var mt=ha,ga=mt,va=Oe,ma=ga(va,"Map"),no=ma,ba=mt,ya=ba(Object,"create"),et=ya,ro=et;function $a(){this.__data__=ro?ro(null):{},this.size=0}var ka=$a;function xa(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var wa=xa,Na=et,Ca="__lodash_hash_undefined__",Ta=Object.prototype,Oa=Ta.hasOwnProperty;function Sa(e){var t=this.__data__;if(Na){var o=t[e];return o===Ca?void 0:o}return Oa.call(t,e)?t[e]:void 0}var La=Sa,Aa=et,ja=Object.prototype,Ia=ja.hasOwnProperty;function Ra(e){var t=this.__data__;return Aa?t[e]!==void 0:Ia.call(t,e)}var Ea=Ra,Ba=et,za="__lodash_hash_undefined__";function Pa(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Ba&&t===void 0?za:t,this}var Ma=Pa,Ha=ka,Va=wa,Da=La,qa=Ea,Fa=Ma;function Se(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])}}Se.prototype.clear=Ha,Se.prototype.delete=Va,Se.prototype.get=Da,Se.prototype.has=qa,Se.prototype.set=Fa;var Wa=Se,ao=Wa,Ga=Ye,Ua=no;function Xa(){this.size=0,this.__data__={hash:new ao,map:new(Ua||Ga),string:new ao}}var Za=Xa;function Ka(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ja=Ka,Ya=Ja;function Qa(e,t){var o=e.__data__;return Ya(t)?o[typeof t=="string"?"string":"hash"]:o.map}var tt=Qa,ei=tt;function ti(e){var t=ei(this,e).delete(e);return this.size-=t?1:0,t}var oi=ti,ni=tt;function ri(e){return ni(this,e).get(e)}var ai=ri,ii=tt;function si(e){return ii(this,e).has(e)}var ci=si,li=tt;function di(e,t){var o=li(this,e),n=o.size;return o.set(e,t),this.size+=o.size==n?0:1,this}var _i=di,ui=Za,pi=oi,fi=ai,hi=ci,gi=_i;function Le(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])}}Le.prototype.clear=ui,Le.prototype.delete=pi,Le.prototype.get=fi,Le.prototype.has=hi,Le.prototype.set=gi;var vi=Le,mi=Ye,bi=no,yi=vi,$i=200;function ki(e,t){var o=this.__data__;if(o instanceof mi){var n=o.__data__;if(!bi||n.length<$i-1)return n.push([e,t]),this.size=++o.size,this;o=this.__data__=new yi(n)}return o.set(e,t),this.size=o.size,this}var xi=ki,wi=Ye,Ni=lr,Ci=_r,Ti=pr,Oi=hr,Si=xi;function Ae(e){var t=this.__data__=new wi(e);this.size=t.size}Ae.prototype.clear=Ni,Ae.prototype.delete=Ci,Ae.prototype.get=Ti,Ae.prototype.has=Oi,Ae.prototype.set=Si;var Li=Ae,Ai=mt,ji=function(){try{var e=Ai(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),io=ji,so=io;function Ii(e,t,o){t=="__proto__"&&so?so(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}var bt=Ii,Ri=bt,Ei=Ke;function Bi(e,t,o){(o!==void 0&&!Ei(e[t],o)||o===void 0&&!(t in e))&&Ri(e,t,o)}var co=Bi;function zi(e){return function(t,o,n){for(var r=-1,s=Object(t),a=n(t),l=a.length;l--;){var d=a[e?l:++r];if(o(s[d],d,s)===!1)break}return t}}var Pi=zi,Mi=Pi,Hi=Mi(),Vi=Hi,ot={},Di={get exports(){return ot},set exports(e){ot=e}};(function(e,t){var o=Oe,n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,s=r&&r.exports===n,a=s?o.Buffer:void 0,l=a?a.allocUnsafe:void 0;function d(c,_){if(_)return c.slice();var f=c.length,u=l?l(f):new c.constructor(f);return c.copy(u),u}e.exports=d})(Di,ot);var qi=Oe,Fi=qi.Uint8Array,Wi=Fi,lo=Wi;function Gi(e){var t=new e.constructor(e.byteLength);return new lo(t).set(new lo(e)),t}var Ui=Gi,Xi=Ui;function Zi(e,t){var o=t?Xi(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}var Ki=Zi;function Ji(e,t){var o=-1,n=e.length;for(t||(t=Array(n));++o<n;)t[o]=e[o];return t}var Yi=Ji,Qi=be,_o=Object.create,es=function(){function e(){}return function(t){if(!Qi(t))return{};if(_o)return _o(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}(),ts=es;function os(e,t){return function(o){return e(t(o))}}var ns=os,rs=ns,as=rs(Object.getPrototypeOf,Object),uo=as,is=Object.prototype;function ss(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||is;return e===o}var po=ss,cs=ts,ls=uo,ds=po;function _s(e){return typeof e.constructor=="function"&&!ds(e)?cs(ls(e)):{}}var us=_s;function ps(e){return e!=null&&typeof e=="object"}var Pe=ps,fs=Qe,hs=Pe,gs="[object Arguments]";function vs(e){return hs(e)&&fs(e)==gs}var ms=vs,fo=ms,bs=Pe,ho=Object.prototype,ys=ho.hasOwnProperty,$s=ho.propertyIsEnumerable,ks=fo(function(){return arguments}())?fo:function(e){return bs(e)&&ys.call(e,"callee")&&!$s.call(e,"callee")},go=ks,xs=Array.isArray,vo=xs,ws=9007199254740991;function Ns(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ws}var mo=Ns,Cs=gt,Ts=mo;function Os(e){return e!=null&&Ts(e.length)&&!Cs(e)}var yt=Os,Ss=yt,Ls=Pe;function As(e){return Ls(e)&&Ss(e)}var js=As,Me={},Is={get exports(){return Me},set exports(e){Me=e}};function Rs(){return!1}var Es=Rs;(function(e,t){var o=Oe,n=Es,r=t&&!t.nodeType&&t,s=r&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===r,l=a?o.Buffer:void 0,d=l?l.isBuffer:void 0,c=d||n;e.exports=c})(Is,Me);var Bs=Qe,zs=uo,Ps=Pe,Ms="[object Object]",Hs=Function.prototype,Vs=Object.prototype,bo=Hs.toString,Ds=Vs.hasOwnProperty,qs=bo.call(Object);function Fs(e){if(!Ps(e)||Bs(e)!=Ms)return!1;var t=zs(e);if(t===null)return!0;var o=Ds.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&bo.call(o)==qs}var Ws=Fs,Gs=Qe,Us=mo,Xs=Pe,Zs="[object Arguments]",Ks="[object Array]",Js="[object Boolean]",Ys="[object Date]",Qs="[object Error]",ec="[object Function]",tc="[object Map]",oc="[object Number]",nc="[object Object]",rc="[object RegExp]",ac="[object Set]",ic="[object String]",sc="[object WeakMap]",cc="[object ArrayBuffer]",lc="[object DataView]",dc="[object Float32Array]",_c="[object Float64Array]",uc="[object Int8Array]",pc="[object Int16Array]",fc="[object Int32Array]",hc="[object Uint8Array]",gc="[object Uint8ClampedArray]",vc="[object Uint16Array]",mc="[object Uint32Array]",N={};N[dc]=N[_c]=N[uc]=N[pc]=N[fc]=N[hc]=N[gc]=N[vc]=N[mc]=!0,N[Zs]=N[Ks]=N[cc]=N[Js]=N[lc]=N[Ys]=N[Qs]=N[ec]=N[tc]=N[oc]=N[nc]=N[rc]=N[ac]=N[ic]=N[sc]=!1;function bc(e){return Xs(e)&&Us(e.length)&&!!N[Gs(e)]}var yc=bc;function $c(e){return function(t){return e(t)}}var kc=$c,nt={},xc={get exports(){return nt},set exports(e){nt=e}};(function(e,t){var o=Kt,n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,s=r&&r.exports===n,a=s&&o.process,l=function(){try{var d=r&&r.require&&r.require("util").types;return d||a&&a.binding&&a.binding("util")}catch(c){}}();e.exports=l})(xc,nt);var wc=yc,Nc=kc,yo=nt,$o=yo&&yo.isTypedArray,Cc=$o?Nc($o):wc,ko=Cc;function Tc(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var xo=Tc,Oc=bt,Sc=Ke,Lc=Object.prototype,Ac=Lc.hasOwnProperty;function jc(e,t,o){var n=e[t];(!(Ac.call(e,t)&&Sc(n,o))||o===void 0&&!(t in e))&&Oc(e,t,o)}var Ic=jc,Rc=Ic,Ec=bt;function Bc(e,t,o,n){var r=!o;o||(o={});for(var s=-1,a=t.length;++s<a;){var l=t[s],d=n?n(o[l],e[l],l,o,e):void 0;d===void 0&&(d=e[l]),r?Ec(o,l,d):Rc(o,l,d)}return o}var zc=Bc;function Pc(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}var Mc=Pc,Hc=9007199254740991,Vc=/^(?:0|[1-9]\d*)$/;function Dc(e,t){var o=typeof e;return t=t==null?Hc:t,!!t&&(o=="number"||o!="symbol"&&Vc.test(e))&&e>-1&&e%1==0&&e<t}var wo=Dc,qc=Mc,Fc=go,Wc=vo,Gc=Me,Uc=wo,Xc=ko,Zc=Object.prototype,Kc=Zc.hasOwnProperty;function Jc(e,t){var o=Wc(e),n=!o&&Fc(e),r=!o&&!n&&Gc(e),s=!o&&!n&&!r&&Xc(e),a=o||n||r||s,l=a?qc(e.length,String):[],d=l.length;for(var c in e)(t||Kc.call(e,c))&&!(a&&(c=="length"||r&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Uc(c,d)))&&l.push(c);return l}var Yc=Jc;function Qc(e){var t=[];if(e!=null)for(var o in Object(e))t.push(o);return t}var el=Qc,tl=be,ol=po,nl=el,rl=Object.prototype,al=rl.hasOwnProperty;function il(e){if(!tl(e))return nl(e);var t=ol(e),o=[];for(var n in e)n=="constructor"&&(t||!al.call(e,n))||o.push(n);return o}var sl=il,cl=Yc,ll=sl,dl=yt;function _l(e){return dl(e)?cl(e,!0):ll(e)}var No=_l,ul=zc,pl=No;function fl(e){return ul(e,pl(e))}var hl=fl,Co=co,gl=ot,vl=Ki,ml=Yi,bl=us,To=go,Oo=vo,yl=js,$l=Me,kl=gt,xl=be,wl=Ws,Nl=ko,So=xo,Cl=hl;function Tl(e,t,o,n,r,s,a){var l=So(e,o),d=So(t,o),c=a.get(d);if(c){Co(e,o,c);return}var _=s?s(l,d,o+"",e,t,a):void 0,f=_===void 0;if(f){var u=Oo(d),g=!u&&$l(d),b=!u&&!g&&Nl(d);_=d,u||g||b?Oo(l)?_=l:yl(l)?_=ml(l):g?(f=!1,_=gl(d,!0)):b?(f=!1,_=vl(d,!0)):_=[]:wl(d)||To(d)?(_=l,To(l)?_=Cl(l):(!xl(l)||kl(l))&&(_=bl(d))):f=!1}f&&(a.set(d,_),r(_,d,n,s,a),a.delete(d)),Co(e,o,_)}var Ol=Tl,Sl=Li,Ll=co,Al=Vi,jl=Ol,Il=be,Rl=No,El=xo;function Lo(e,t,o,n,r){e!==t&&Al(t,function(s,a){if(r||(r=new Sl),Il(s))jl(e,t,a,o,Lo,n,r);else{var l=n?n(El(e,a),s,a+"",e,t,r):void 0;l===void 0&&(l=s),Ll(e,a,l)}},Rl)}var Bl=Lo;function zl(e){return e}var Ao=zl;function Pl(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 Ml=Pl,Hl=Ml,jo=Math.max;function Vl(e,t,o){return t=jo(t===void 0?e.length-1:t,0),function(){for(var n=arguments,r=-1,s=jo(n.length-t,0),a=Array(s);++r<s;)a[r]=n[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=n[r];return l[t]=o(a),Hl(e,this,l)}}var Dl=Vl;function ql(e){return function(){return e}}var Fl=ql,Wl=Fl,Io=io,Gl=Ao,Ul=Io?function(e,t){return Io(e,"toString",{configurable:!0,enumerable:!1,value:Wl(t),writable:!0})}:Gl,Xl=Ul,Zl=800,Kl=16,Jl=Date.now;function Yl(e){var t=0,o=0;return function(){var n=Jl(),r=Kl-(n-o);if(o=n,r>0){if(++t>=Zl)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Ql=Yl,ed=Xl,td=Ql,od=td(ed),nd=od,rd=Ao,ad=Dl,id=nd;function sd(e,t){return id(ad(e,t,rd),e+"")}var cd=sd,ld=Ke,dd=yt,_d=wo,ud=be;function pd(e,t,o){if(!ud(o))return!1;var n=typeof t;return(n=="number"?dd(o)&&_d(t,o.length):n=="string"&&t in o)?ld(o[t],e):!1}var fd=pd,hd=cd,gd=fd;function vd(e){return hd(function(t,o){var n=-1,r=o.length,s=r>1?o[r-1]:void 0,a=r>2?o[2]:void 0;for(s=e.length>3&&typeof s=="function"?(r--,s):void 0,a&&gd(o[0],o[1],a)&&(s=r<3?void 0:s,r=1),t=Object(t);++n<r;){var l=o[n];l&&e(t,l,n,s)}return t})}var md=vd,bd=Bl,yd=md;yd(function(e,t,o){bd(e,t,o)});const ye=(e,t,o)=>Array.isArray(e)?e.map((n,r)=>{const s=[o,r].filter(M).join(".");return ye(t(r,n,s),t,s)}):typeof e=="object"&&e?Object.entries(e).reduce((n,[r,s])=>{const a=[o,r].filter(M).join(".");return n[r]=ye(t(r,s,a),t,a),n},{}):e,$d=e=>{const t=document.getElementsByTagName("head")[0],o=document.createElement("link");Object.entries(e).forEach(([n,r])=>o.setAttribute(n,r)),t.appendChild(o)},He=()=>{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(d=>d(...l)).filter(Boolean):[],reset:()=>e={}}},kd=()=>({name:null,logo:null}),Ro=()=>({name:null,logo:null}),xd=()=>({factor:null,type:null,outcome:null,value:null}),wd=()=>({w1:null,x:null,w2:null}),Nd=()=>({w1:null,w2:null}),Cd=()=>({one_x_two:wd(),one_two:Nd()}),Eo=(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:h({},(e==null?void 0:e.teams)||{0:Ro(),1:Ro()}),league:(e==null?void 0:e.unique_tournament)||kd(),prediction:(e==null?void 0:e.prediction)||xd(),isNational:(n=e==null?void 0:e.is_national)!=null?n:null};if(t!=null&&t.markets){const r=t.markets.reduce((s,a)=>(s[a]=m(e||{},`markets.${a}`,Cd()[a||"one_two"]),s),{});Ve(o,"markets",r)}return o},Td=(e=300,t)=>new Promise(o=>setTimeout(()=>o(t),e)),Od=e=>!e&&e==null,M=e=>!Od(e),Bo=e=>typeof e!="object"&&typeof e!="function"||e===null,Sd=e=>typeof e=="object"&&!Array.isArray(e)&&M(e),Ld=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,o)=>(o?"-":"")+t.toLowerCase()),oe=(e,...t)=>t.reduce((o,n)=>(o[n]=e[n],o),{});function ce(e,...t){const o=h({},e);return t.forEach(n=>{delete o[n]}),o}const m=(e,t,o)=>{if(!t)return;const r=(Array.isArray(t)?t:t.match(/([^[.\]])+/g)).reduce((s,a)=>s&&s[a],e);return r===void 0?o:r},Ve=(e,t,o)=>{const n=Array.isArray(t)?t:t.match(/([^[.\]])+/g);return n.reduce((r,s,a)=>(r[s]===void 0&&(r[s]={}),a===n.length-1&&(r[s]=o),r[s]),e)},Ad=e=>{const t=e.slice(1);return t.length===3&&(e="#"+t.split("").map(o=>`${o}${o}`).join("")),e},jd=e=>{const t=Ad(e),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return o?{r:parseInt(o[1],16),g:parseInt(o[2],16),b:parseInt(o[3],16)}:void 0},zo=(...e)=>e.map(t=>JSON.stringify(t)).every((t,o,n)=>t===n[0]),Id=e=>"id"in e&&"root"in e,Rd=(e,t=1)=>e.replace(")",`, ${t})`).replace("rgb","rgba"),Po=(e,t,o)=>ye(e,(n,r,s)=>Bo(r)||Array.isArray(r)&&r.every(Bo)?o?o(n,[r,m(t,s)],s)?m(t,s,r):r:m(t,s,r):r),Ed=(e,t)=>{try{ye(e,(o,n,r)=>{if(t(o,n,r))throw{key:o,value:n,path:r};return n})}catch(o){return o}},Bd=(e,t)=>{const o=[];return ye(e,(n,r,s)=>(t(n,r,s,o)&&o.push({key:n,value:r,path:s}),r)),o},Mo=["desktop","laptop","tablet","mobile"],zd={mobile:320,tablet:768,laptop:1024,desktop:1920},O={root:"_root_90dqc_1",icon:"_icon_90dqc_5",iconTarget:"_iconTarget_90dqc_17",body:"_body_90dqc_23",bodyOpen:"_bodyOpen_90dqc_31",simpleGift_in:"_simpleGift_in_90dqc_1",close:"_close_90dqc_44",arrow:"_arrow_90dqc_56",container:"_container_90dqc_67",inner:"_inner_90dqc_73",logo:"_logo_90dqc_80",text:"_text_90dqc_87",button:"_button_90dqc_94",buttonAnimated:"_buttonAnimated_90dqc_103",increase:"_increase_90dqc_1",legalGap:"_legalGap_90dqc_107",legalOpen:"_legalOpen_90dqc_111",legal:"_legal_90dqc_107",legalText:"_legalText_90dqc_139",legalButton:"_legalButton_90dqc_157",fadein:"_fadein_90dqc_1",pulse:"_pulse_90dqc_1",gradient:"_gradient_90dqc_1",wiggle:"_wiggle_90dqc_1"};var Pd=0;function i(e,t,o,n,r,s){var a,l,d={};for(l in t)l=="ref"?a=t[l]:d[l]=t[l];var c={type:e,props:d,key:o,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Pd,__source:r,__self:s};if(typeof e=="function"&&(a=e.defaultProps))for(l in a)d[l]===void 0&&(d[l]=a[l]);return p.options.vnode&&p.options.vnode(c),c}const Ho=p.createContext(),pe=({children:e,value:t})=>i(Ho.Provider,{value:t,children:e}),fe=e=>a=>We(this,null,function*(){var l=a,{target:t,id:o,ref:n,state:r}=l,s=Tt(l,["target","id","ref","state"]);if(!("ResizeObserver"in window)){const d=yield Promise.resolve().then(()=>eu);window.ResizeObserver=d.ResizeObserver}return p.render(i(pe,{value:r,children:p.cloneElement(e,h({ref:n,id:o},s))}),t)}),H=()=>kn(Ho),Md=(e={})=>typeof e=="object"&&M(e)&&Mo.every(t=>t in e),Hd=(e,t)=>e&&ye(e,(o,n)=>{if(Md(n)){const r=n[t];return r&&"parent"in r&&M(r.parent)?h(h({},n[r.parent]),ce(r,"parent")):r}return n}),he=(e,t)=>Hd(e,t),$e=({id:e,targetRef:t,parentKey:o="device-container",breakpoints:n=zd})=>{const[r,s]=se("desktop"),a=l=>{var f;const d=l.getBoundingClientRect().width||0,c=Object.entries(h({},n)).sort(([u,g],[b,$])=>g-$),_=((f=c.find(([u,g],b)=>{const[$,y]=c[b+1]||[];return d>=g&&d<y}))==null?void 0:f[0])||"desktop";s(_)};return Rt(()=>{const l=t.current.closest(`[data-${o}='${e}']`)||document.body;l&&(new ResizeObserver(()=>a(l)).observe(l),console.log(l,o),a(l))},[]),r},Vo=e=>console.warn(`[Adstore-templates Deprecated]: ${e}`),rt=(e,t)=>M(e)&&!(typeof e=="number"?e.toString():e).includes(t)?`${e}${t}`:e,Vd=e=>e.startsWith("px_"),Dd=e=>e.startsWith("percent_"),qd=(e,t)=>{let o=e,n=t;return Vd(o)&&(o=o.replace("px_",""),n=rt(t,"px")),Dd(o)&&(o=o.replace("percent_",""),n=rt(t,"%")),{key:o,value:n}},Fd="-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'",Wd=["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"],Do=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])=>{Wd.includes(n)&&(r=rt(r,"px"));const{key:s,value:a}=qd(n,r);if(Sd(a)&&(o[s]=Do(a)),o[s]=a,s==="hidden"&&a)return o.display="none",o;if(s==="innerHTML"&&(o.innerHTML=M(a)?`${a}`:""),s==="innerText"&&(o.innerText=M(a)?`${a}`:""),s==="children"&&(o.children=typeof a=="string"?M(a)?`${a}`:"":a),s.includes("borderWidth")&&(o.borderStyle="solid"),s==="corner"&&(o.borderRadius=rt(a,"px")),s==="backgroundFit"&&(Vo("Property 'backgroundFit' is deprecated. Use 'objectFit' instead."),o.backgroundSize=a,o.objectFit=a),s==="backgroundImage"&&M(a)&&(o.backgroundImage=`url(${a})`,o.backgroundRepeat="no-repeat",o.imageSource=a,Vo("Property 'backgroundImage' is deprecated. Use 'imageSource' instead.")),s==="backgroundColorOpacity"&&M(o.backgroundColorOpacity)&&M(o.backgroundColor)){const l=jd(o.backgroundColor);l&&(o.backgroundColor=Rd(`rgb(${l.r}, ${l.g}, ${l.b})`,+o.backgroundColorOpacity/100))}return s==="fontFamily"&&/auto/i.test(a)&&(o.fontFamily=Fd),s==="isBold"&&(o.fontWeight=a?"bold":"initial"),s==="isItalic"&&(o.fontStyle=a?"italic":"initial"),s==="isThrough"&&(o.textDecoration=a?"line-through":"initial"),o},e)},Gd=e=>typeof e=="object"&&!Array.isArray(e)&&"parent"in e,L=e=>M(e)?Object.entries(e).reduce((t,[o,n])=>(t[o]=Gd(n)?Do(h({},e[o])):n,t),{}):e,Ud=e=>e in document.createElement("div").style||e.startsWith("--"),Z=r=>{var s=r,{children:e,typography:t,accentTypography:o}=s,n=Tt(s,["children","typography","accentTypography"]);var d;const a=Be(()=>{if(!o)return{};let c="";return Object.entries(o).forEach(([_,f])=>{Ud(_)&&(c+=`${Ld(_)}: ${f}; `)}),c},[o]),l=(d=e==null?void 0:e.replace(/script|\n/g,""))==null?void 0:d.replace(/{{(.*?)}}/g,`<span style="${a}">$1</span>`);return i("div",w(h({},n),{style:h(h({},t),n.style||{}),dangerouslySetInnerHTML:{__html:l}}))},at=()=>{const[e,t]=se(!1);return[e,()=>t(o=>!o)]},je=()=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 24 24",children:i("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"})}),$t=()=>i("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i("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"})}),Xd=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`}),qo=(e,t)=>{var _,f,u,g,b,$,y,D,q,S,E,B,z;const o=Xd(t),n=L(e),r=(_=n==null?void 0:n.icon)==null?void 0:_.hasIcon,s={left:`${+(((f=e==null?void 0:e.container)==null?void 0:f.left)||0)*-1+8}px`,backgroundColor:(u=n==null?void 0:n.container)==null?void 0:u.backgroundColor,borderTopWidth:(g=n==null?void 0:n.container)==null?void 0:g.borderWidth,borderTopColor:(b=n==null?void 0:n.container)==null?void 0:b.borderColor,borderTopStyle:"solid",borderLeftWidth:($=n==null?void 0:n.container)==null?void 0:$.borderWidth,borderLeftColor:(y=n==null?void 0:n.container)==null?void 0:y.borderColor,borderLeftStyle:"solid"},a={left:(D=n==null?void 0:n.container)==null?void 0:D.left},l=(((q=n==null?void 0:n.icon)==null?void 0:q.animations)||[]).map(k=>o[k]).join(", "),d=M((S=n==null?void 0:n.icon)==null?void 0:S.gradientColor)&&((E=n==null?void 0:n.icon)!=null&&E.animations.includes("gradient"))?{background:`linear-gradient(-90deg, ${(B=n.icon)==null?void 0:B.backgroundColor} 0%, ${(z=n==null?void 0:n.icon)==null?void 0:z.gradientColor} 100%) 0% 0% / 400% 400%`,backgroundSize:"400% 400%"}:n==null?void 0:n.icon,c=h(w(h({},(n==null?void 0:n.icon)||{}),{animation:l}),d);return{hasIcon:r,arrowRules:s,bodyRules:a,iconRules:c}},ge=e=>{const t=new Set([]);ye(e,(n,r)=>(n==="fontFamily"&&t.add(r),r));const o=Be(()=>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]);W(()=>{o.forEach($d)},[o])},Q=["backgroundColor","backgroundColorOpacity","backgroundImage","backgroundSize","backgroundRepeat"],Zd=["borderWidth","borderColor","borderStyle"],Fo=["imageSource","objectFit"],it=["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"],Kd=({delay:e,openEmitter:t,autoOpenEmitter:o,closeEmitter:n,crossCloseEmitter:r,disableAutoOpen:s})=>{const[a,l]=se(!1),d=G(null),c=u=>{clearTimeout(d.current),d.current=null},_=()=>{c(d.current),l(u=>(u&&n&&n(),!u))},f=()=>{_(),r&&r()};return W(()=>{if(!s)return d.current=setTimeout(()=>{l(!0),o&&o()},e||1e3),()=>c(d.current)},[e,s]),W(()=>{a&&!d.current&&t&&t()},[a]),{isOpen:a,toggle:_,onCrossClick:f}},Wo=({ref:e,openDelay:t,disableAutoOpen:o})=>{const n=G(He()),r=u=>n.current.on("open",u),s=u=>n.current.on("click",u),a=u=>n.current.on("autoOpen",u),l=u=>n.current.on("close",u),d=u=>n.current.on("crossClose",u),{isOpen:c,toggle:_,onCrossClick:f}=Kd({delay:t,disableAutoOpen:o,openEmitter:()=>n.current.emit("open"),autoOpenEmitter:()=>n.current.emit("autoOpen"),closeEmitter:()=>n.current.emit("close"),crossCloseEmitter:()=>n.current.emit("crossClose")});return Ee(e,()=>({toggle:_,onCrossClose:d,onOpen:r,onClick:s,onClose:l,onAutoOpen:a,resetListeners:n.current.reset})),W(()=>n.current.reset,[]),{isOpen:c,toggle:_,onCrossClick:f,click:(...u)=>n.current.emit("click",...u)}},Jd=ue(({id:e,disableAutoOpen:t},o)=>{var S,E,B,z,k,F,P,Y,J;const n=G(null),[r,s]=at(),a=H(),l=$e({targetRef:n,id:e}),d=he(a,l),c=L(d),{hasIcon:_,iconRules:f,bodyRules:u,arrowRules:g}=qo(d,{fade:O.fadein,pulse:O.pulse,wiggle:O.wiggle,gradient:O.gradient}),{isOpen:b,toggle:$,click:y,onCrossClick:D}=Wo({ref:o,openDelay:(S=d==null?void 0:d.container)==null?void 0:S.delay,disableAutoOpen:t});ge(d);const q=r?oe(c.container,...Zd):{};return i("div",{className:T(O.root,{[O.legalOpen]:r}),ref:n,children:[i("div",{className:O.icon,style:f,onClick:$,children:_&&i("div",{className:O.iconTarget,children:i($t,{})})}),i("div",{className:T(O.body,{[O.bodyOpen]:b}),style:u,children:[i("div",{className:O.arrow,style:g}),i("div",{className:O.close,style:ve(c==null?void 0:c.close),onClick:D,children:i(je,{})}),i("div",{className:O.container,style:c==null?void 0:c.container,children:[i("a",{href:(E=c==null?void 0:c.root)==null?void 0:E.offer,target:"_blank",rel:"nofollow noopener noreferrer",onClick:()=>y(c.id),children:[i("div",{className:O.inner,children:[i("div",{className:O.logo,style:c==null?void 0:c.logo}),i(Z,{className:O.text,style:c==null?void 0:c.text,typography:(B=c.text)==null?void 0:B.typography,accentTypography:(z=c.text)==null?void 0:z.accentTypography,children:(k=c==null?void 0:c.text)==null?void 0:k.children})]}),i("div",{className:T(O.button,{[O.buttonAnimated]:c==null?void 0:c.button.isAnimated}),style:c==null?void 0:c.button,children:(F=c==null?void 0:c.button)==null?void 0:F.children})]}),i("div",{className:O.legalGap}),i("div",{className:O.legal,style:h(h({},c==null?void 0:c.legal),q),children:i("span",{className:O.legalText,children:i("span",{children:[i("span",{children:(P=c==null?void 0:c.legal)==null?void 0:P.children}),i("span",{className:O.legalButton,onClick:s,children:r?(Y=c==null?void 0:c.legal)==null?void 0:Y.buttonOpenText:(J=c==null?void 0:c.legal)==null?void 0:J.buttonHideText})]})})})]})]})]})}),Yd=fe(i(Jd,{})),A={root:"_root_9zg53_1",icon:"_icon_9zg53_5",iconTarget:"_iconTarget_9zg53_17",body:"_body_9zg53_23",desktop:"_desktop_9zg53_30",tablet:"_tablet_9zg53_30",laptop:"_laptop_9zg53_30",bodyOpen:"_bodyOpen_9zg53_34",complexGift_in:"_complexGift_in_9zg53_1",arrow:"_arrow_9zg53_47",container:"_container_9zg53_57",promotion:"_promotion_9zg53_62",close:"_close_9zg53_68",head:"_head_9zg53_80",headIcon:"_headIcon_9zg53_86",headTitle:"_headTitle_9zg53_92",inner:"_inner_9zg53_99",fadein:"_fadein_9zg53_1",pulse:"_pulse_9zg53_1",gradient:"_gradient_9zg53_1",wiggle:"_wiggle_9zg53_1"},ne={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,s,a,l,d,c;const t=H(),o=L(t);return i("a",{href:(n=o.root)==null?void 0:n.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:T(ne.root,{[ne.variant2]:((r=o.root)==null?void 0:r.variant)==="variant2"}),style:o.root,onClick:()=>e(o.id),children:[i("div",{className:ne.body,children:[i("div",{className:ne.line,style:o.line}),i("div",{className:ne.bodyInner,children:[i("div",{className:ne.logo,style:o.logo}),i("div",{className:ne.text,style:o.text,children:i(Z,{typography:(s=o.text)==null?void 0:s.typography,accentTypography:(a=o.text)==null?void 0:a.accentTypography,children:(l=o.text)==null?void 0:l.children})})]}),i("div",{className:ne.button,style:o.button,children:[i("div",{className:ne.logo,style:o.logo}),i("div",{className:ne.buttonText,children:(d=o.button)==null?void 0:d.children})]})]}),i("div",{className:ne.legal,style:o.legal,children:(c=o.legal)==null?void 0:c.children})]})},e_=ue(({id:e,disableAutoOpen:t},o)=>{var S,E,B,z;const n=G(null),r=H(),s=$e({targetRef:n,id:e}),a=he(r,s),l=L(a),{isOpen:d,click:c,toggle:_,onCrossClick:f}=Wo({ref:o,openDelay:(S=a==null?void 0:a.container)==null?void 0:S.delay,disableAutoOpen:t});ge(a);const{hasIcon:u,iconRules:g,bodyRules:b,arrowRules:$}=qo(a,{fade:A.fadein,pulse:A.pulse,wiggle:A.wiggle,gradient:A.gradient}),y=(E=l==null?void 0:l.title)==null?void 0:E.hasIcon,D=oe(l==null?void 0:l.title,...it),q=ce(l==null?void 0:l.title,...it);return i("div",{ref:n,className:T(A.root,{[A.desktop]:s==="desktop",[A.laptop]:s==="laptop",[A.tablet]:s==="tablet"}),children:[i("div",{className:A.icon,style:g,onClick:_,children:u&&i("div",{className:A.iconTarget,children:i($t,{})})}),i("div",{className:T(A.body,{[A.bodyOpen]:d}),style:b,children:[i("div",{className:A.arrow,style:$}),i("div",{className:A.container,style:l.container,children:[i("div",{className:A.close,style:ve(l==null?void 0:l.close),onClick:f,children:i(je,{})}),i("div",{className:A.head,style:D,children:[y&&i("div",{className:A.headIcon,style:oe(l.title,"color"),children:i($t,{})}),i("div",{className:A.headTitle,style:q,children:(B=l.title)==null?void 0:B.children})]}),i("div",{className:A.inner,children:(l.children||[]).map(k=>i(pe,{value:k,children:i(Qd,{onClick:c})}))}),i("div",{className:A.promotion,style:l.promotion,children:(z=l.promotion)==null?void 0:z.children})]})]})]})}),t_=fe(i(e_,{})),K={root:"_root_1csot_1",background:"_background_1csot_11",content:"_content_1csot_19",desktop:"_desktop_1csot_28",laptop:"_laptop_1csot_28",wrapper:"_wrapper_1csot_33",overlay:"_overlay_1csot_37",close:"_close_1csot_43",promotion:"_promotion_1csot_54",body:"_body_1csot_62",logo:"_logo_1csot_71",text:"_text_1csot_77",button:"_button_1csot_81",legal:"_legal_1csot_96"},ke=e=>e&&{left:"flex-start",center:"center",right:"flex-end"}[e],o_={root:"_root_mj8hr_1"},n_=()=>{var o,n,r;const e=H(),t=L(e);return i("div",{className:o_.root,style:t.root,children:i(Z,{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})})},kt=(e,t=0,o=!1)=>{const n=G(He()),[r,s]=se(!1),[a,l]=se(),[d,c]=se(o),_=y=>n.current.on("visible",y),f=y=>n.current.on("click",y),u=y=>n.current.on("clickHide",y),g=()=>We(this,null,function*(){yield Td(+t),s(!0)}),b=()=>s(!1),$=()=>{n.current.emit("clickHide"),b()};return W(()=>{d&&n.current.emit("visible",r)},[r,d]),Ee(e,()=>({onVisible:_,onClick:f,onClickHide:u,show:g,hide:b,setApiHost:l,resetListeners:n.current.reset})),W(()=>n.current.reset,[]),{isReady:d,isOpen:r,apiHost:a,show:g,hide:b,clickHide:$,setIsReady:c,click:(...y)=>{b(),n.current.emit("click",...y)}}};function r_(e){return!(!e.complete||typeof e.naturalWidth!="undefined"&&e.naturalWidth===0)}const a_=ue(({id:e,className:t},o)=>{var E,B,z,k,F,P,Y;const n=G(null),r=G(null),s=$e({targetRef:n,id:e}),a=H(),l=he(a,s);ge(l),Ve(l,"button.percent_width",(E=l==null?void 0:l.button)==null?void 0:E.width),Ve(l,"legal.percent_width",(B=l==null?void 0:l.legal)==null?void 0:B.width);const d=L(l),c=m(d,"root.delay",0),{isOpen:_,isReady:f,setIsReady:u,clickHide:g,click:b}=kt(o,c);W(()=>{const J=r.current;if(!J)return;if(r_(J)){u(!0);return}const me=()=>u(!0);return J.addEventListener("load",me),()=>{J.removeEventListener("load",me)}},[d]);const $={alignItems:ke((z=d.root)==null?void 0:z.align)},y=w(h({},d==null?void 0:d.button),{justifyContent:ke((k=d.root)==null?void 0:k.textAlign)}),D=w(h({},d==null?void 0:d.legal),{justifyContent:ke((F=d.root)==null?void 0:F.textAlign)}),q=ce(d.root,...Fo,...Q),S=oe(d.root,...Fo);return i("div",{className:T(K.root,t,{[K.desktop]:s==="desktop",[K.tablet]:s==="tablet",[K.laptop]:s==="laptop"}),ref:n,style:{display:_&&f?"flex":"none"},children:[i("div",{className:K.overlay,style:d.overlay,onClick:g}),i("div",{className:K.wrapper,children:[i("div",{className:K.close,style:ve(d.close),onClick:g,children:i(je,{})}),i(Z,{className:K.promotion,style:d.promotion,children:(P=d.promotion)==null?void 0:P.children}),i("a",{href:(Y=d.root)==null?void 0:Y.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:K.content,style:q,onClick:()=>b(d.id),children:[i("img",{ref:r,className:K.background,src:S.imageSource,alt:"",style:S}),i("div",{className:K.body,style:$,children:[i("div",{className:K.logo,style:d.logo}),i("div",{className:K.text,children:((d==null?void 0:d.children)||[]).map(J=>i(pe,{value:J,children:i(n_,{})}))}),i("div",{className:K.button,style:y,children:y==null?void 0:y.children}),i("div",{className:K.legal,style:D,children:D==null?void 0:D.children})]})]})]})]})}),i_=fe(i(a_,{})),de={root:"_root_yxyl1_1",content:"_content_yxyl1_11",desktop:"_desktop_yxyl1_22",laptop:"_laptop_yxyl1_22",overlay:"_overlay_yxyl1_27",close:"_close_yxyl1_33",promotion:"_promotion_yxyl1_44",title:"_title_yxyl1_52",wrapper:"_wrapper_yxyl1_67"},ee={root:"_root_1q0qc_1",desktop:"_desktop_1q0qc_9",laptop:"_laptop_1q0qc_9",header:"_header_1q0qc_14",logo:"_logo_1q0qc_25",container:"_container_1q0qc_32",body:"_body_1q0qc_43",logoWrapper:"_logoWrapper_1q0qc_51",text:"_text_1q0qc_64",button:"_button_1q0qc_79",legal:"_legal_1q0qc_97"},s_=({onClick:e})=>{var s,a,l,d,c,_;const t=H(),o=L(t),n=(t==null?void 0:t.device)||"desktop",r=oe(o.header,...Q);return i("a",{href:(s=o.root)==null?void 0:s.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:T(ee.root,{[ee.desktop]:n==="desktop",[ee.laptop]:n==="laptop"}),style:ce(o.root,...it),onClick:()=>e(o.id),children:[i("div",{className:ee.header,style:o.header,children:i("div",{className:ee.logo,style:o.logo})}),i("div",{className:ee.container,style:oe(o.root,...it),children:[i("div",{className:ee.body,children:[i("div",{className:ee.logoWrapper,style:r,children:i("div",{className:ee.logo,style:o.logo})}),i(Z,{className:ee.text,style:o.text,typography:(a=o.text)==null?void 0:a.typography,accentTypography:(l=o.text)==null?void 0:l.accentTypography,children:(d=o.text)==null?void 0:d.children})]}),i("div",{children:[i(Z,{className:ee.button,style:o.button,children:(c=o.button)==null?void 0:c.children}),i(Z,{className:ee.legal,style:o.legal,children:(_=o.legal)==null?void 0:_.children})]})]})]})},c_=ue(({id:e},t)=>{var f,u;const o=G(null),n=$e({targetRef:o,id:e}),r=H(),s=he(r,n),a=L(s);ge(s);const l=m(a,"root.delay",0),{isOpen:d,clickHide:c,click:_}=kt(t,l,!0);return i("div",{className:de.root,style:{display:d?"flex":"none"},children:[i("div",{className:de.overlay,style:a.overlay,onClick:c}),i("div",{ref:o,className:T(de.content,{[de.desktop]:n==="desktop",[de.laptop]:n==="laptop"}),style:a.root,children:[i("div",{className:de.close,style:ve(a.close),onClick:c,children:i(je,{})}),i(Z,{className:de.promotion,style:a.promotion,children:(f=a.promotion)==null?void 0:f.children}),i(Z,{className:de.title,style:a.title,children:(u=a.title)==null?void 0:u.children}),i("div",{className:de.wrapper,children:(a.children||[]).map(g=>i(pe,{value:w(h({},g),{device:n}),children:i(s_,{onClick:_})}))})]})]})}),l_=fe(i(c_,{})),V={root:"_root_1i7wv_1",content:"_content_1i7wv_11",close:"_close_1i7wv_18",promotion:"_promotion_1i7wv_31",overlay:"_overlay_1i7wv_39",body:"_body_1i7wv_45",desktop:"_desktop_1i7wv_53",laptop:"_laptop_1i7wv_53",tablet:"_tablet_1i7wv_57",head:"_head_1i7wv_62",title:"_title_1i7wv_72",logo:"_logo_1i7wv_85",wrapper:"_wrapper_1i7wv_92",text:"_text_1i7wv_99",button:"_button_1i7wv_107",buttonHead:"_buttonHead_1i7wv_122",buttonTarget:"_buttonTarget_1i7wv_139",legal:"_legal_1i7wv_153"},j={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"},d_=()=>{const e=H(),t=L(e),o=(e==null?void 0:e.device)||"desktop",n=w(h({},t==null?void 0:t.teamALogo),{backgroundImage:m(t,"match.teams[0].logo")}),r=w(h({},t==null?void 0:t.teamBLogo),{backgroundImage:m(t,"match.teams[1].logo")});return i("div",{className:T(j.root,{[j.desktop]:o==="desktop",[j.laptop]:o==="laptop"}),children:[i("div",{className:j.left,children:[i("div",{className:j.teams,children:[i("img",{className:j.logo,src:n.backgroundImage,style:n,alt:""}),i("img",{className:j.logo,src:r.backgroundImage,style:r})]}),i("div",{className:j.body,children:[i("div",{className:j.league,style:t.league,children:m(t,"match.league.name")}),i("div",{className:j.name,style:t.teams,children:[m(t,"match.teams[0].name")," — ",m(t,"match.teams[1].name")]})]})]}),i("div",{className:j.right,children:[i("div",{className:j.team,children:[i("img",{className:j.teamLogo,style:n,src:n.backgroundImage}),i("div",{className:j.teamName,style:t.teams,children:m(t,"match.teams[0].name")})]}),i("div",{className:j.odd,children:[i("div",{className:j.oddLabel,style:t.oddLabel,children:m(t,"match.prediction.value")}),i("div",{className:j.oddValue,style:t.oddValue,children:m(t,"match.prediction.factor")})]}),i("div",{className:j.team,children:[i("img",{className:j.teamLogo,style:r,src:r.backgroundImage}),i("div",{className:j.teamName,style:t.teams,children:m(t,"match.teams[1].name")})]})]})]})},Go=(e,{pause:t,params:o,method:n,body:r})=>{const[s,a]=se(),l=Be(()=>{let c=e;if(o){const _=new URLSearchParams(c);Object.entries(o).forEach(([f,u])=>{_.append(f,u)}),c+=_}return c},[e,o]),d=$n(()=>We(this,null,function*(){if(t)return;const c=yield fetch(l,{method:n||"GET",body:r?JSON.stringify(r):void 0,headers:{"Content-Type":"application/json"}}).then(_=>_.json());a(c.data)}),[l,t,n,r]);return W(()=>{t||d()},[l,t]),{data:s,execute:d}};function Uo(e){const t=G();return W(()=>{t.current=e},[e]),t.current}const __=(e,t)=>{const o=c=>{var _;return M(c==null?void 0:c.matchSlug)&&((_=c==null?void 0:c.matchSlug)==null?void 0:_.length)>0},n=e.children||[],r=n.filter(c=>o(c.root.targetMatch)).map(c=>c.root.targetMatch),s=Uo(r),{data:a,execute:l}=Go(`${t}/match-list`,{method:"POST",body:{matches:r.map(c=>({slug:c.matchSlug,sport_slug:c.sportSlug,lang:c.langSlug,bookmaker_slug:c.bookmaker,offset:c.offset,markets:c.markets}))},pause:!t||r.length===0});return W(()=>{zo(s,r)||l()},[r]),n.map(c=>{const _=(a||[]).find(g=>g.slug===c.root.targetMatch.matchSlug);if(!_)return;const f=Eo(_),u=Po(f,c.root.customMatch,(g,[b,$])=>M($));return w(h({},c),{match:u})}).filter(Boolean)},u_=ue(({id:e},t)=>{var q,S,E,B,z,k,F,P,Y,J,me,fn,hn,gn;const o=G(null),n=$e({targetRef:o,id:e}),r=H(),s=he(r,n);Ve(s,"buttonWrapper.percent_width",(q=s==null?void 0:s.buttonWrapper)==null?void 0:q.width),Ve(s,"legal.percent_width",(S=s==null?void 0:s.legal)==null?void 0:S.width);const a=L(s);ge(s);const l=m(a,"root.delay",0),{isOpen:d,apiHost:c,clickHide:_,click:f}=kt(t,l,!0),u=__(s,c),g=w(h({},a.root),{alignItems:ke((E=a.root)==null?void 0:E.align)}),b=w(h({},a.content),{alignItems:ke((B=a.root)==null?void 0:B.align)}),$=w(h({},a.text),{textAlign:(z=a.root)==null?void 0:z.align}),y=w(h({},a==null?void 0:a.button),{justifyContent:ke((k=a.root)==null?void 0:k.textAlign)}),D=w(h({},a==null?void 0:a.legal),{justifyContent:ke((F=a.root)==null?void 0:F.textAlign)});return i("div",{className:T(V.root,{[V.desktop]:n==="desktop",[V.laptop]:n==="laptop",[V.tablet]:n==="tablet"}),ref:o,style:{display:d?"flex":"none"},children:[i("div",{className:V.overlay,style:a.overlay,onClick:_}),i("div",{className:V.content,children:[i("div",{className:V.close,style:ve(a.close),onClick:_,children:i(je,{})}),i(Z,{className:V.promotion,style:a.promotion,children:(P=a.promotion)==null?void 0:P.children}),i("a",{ref:o,href:(Y=a.root)==null?void 0:Y.offer,target:"_blank",rel:"nofollow noopener noreferrer",onClick:()=>f(a.id),children:i("div",{className:V.body,style:g,children:[i("div",{className:V.head,children:[i("div",{className:V.title,style:a.title,children:(J=a.title)==null?void 0:J.children}),i("div",{className:V.logo,style:a.logo})]}),i("div",{className:V.wrapper,style:b,children:(u||[]).map(tu=>i(pe,{value:w(h({},tu),{device:n}),children:i(d_,{})}))}),i(Z,{className:V.text,style:$,typography:$.typography,accentTypography:$.accentTypography,children:(me=a.text)==null?void 0:me.children}),i("div",{className:V.button,style:a.buttonWrapper,children:[i("div",{className:V.buttonHead,style:a.buttonHead,children:(fn=a.buttonHead)==null?void 0:fn.children}),i("div",{className:V.buttonTarget,style:y,children:(hn=a.button)==null?void 0:hn.children})]}),i(Z,{className:V.legal,style:D,children:(gn=a.legal)==null?void 0:gn.children})]})})]})]})}),p_=fe(i(u_,{})),re={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"},f_=({onClick:e})=>{var s,a,l,d,c,_,f,u;const t=H(),o=L(t),[n,r]=at();return i("div",{className:re.root,style:ce(o.root,...Q),children:[i("div",{className:re.background,style:oe(o.root,...Q)}),i("a",{href:(s=o.root)==null?void 0:s.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:re.body,onClick:()=>e(o.id),children:[i("div",{children:[i("div",{className:re.rowFirst,style:o.rowFirst,children:(a=o.rowFirst)==null?void 0:a.children}),i("div",{className:re.rowSecond,style:o.rowSecond,children:(l=o.rowSecond)==null?void 0:l.children}),i("div",{className:re.bookmaker,style:o.bookmaker,children:(d=o.bookmaker)==null?void 0:d.children})]}),i("div",{className:re.button,style:o.button,children:(c=o.button)==null?void 0:c.children})]}),i("div",{className:T(re.legal,{[re.legalOpen]:n}),style:o.legalInfo,children:i("span",{className:re.legalText,children:[i("span",{children:(_=o.legalInfo)==null?void 0:_.children}),i("span",{className:re.legalButton,style:o.legalInfoButton,onClick:r,children:n?(f=o.legalInfoButton)==null?void 0:f.openText:(u=o.legalInfoButton)==null?void 0:u.closeText})]})})]})},h_=e=>{const t=G(He()),o=n=>t.current.on("click",n);return Ee(e,()=>({promoId:"ContentCards",onClick:o,resetListeners:t.current.reset})),W(()=>t.current.reset,[]),{click:(...n)=>t.current.emit("click",...n),onClick:o}},g_=ue((e,t)=>{const o=G(null),n=H(),s=he(n,"mobile"),a=L(s);ge(s);const{click:l}=h_(t);return i("div",{ref:o,children:((a==null?void 0:a.children)||[]).map(d=>i(pe,{value:d,children:i(f_,{onClick:l})}))})}),v_=fe(i(g_,{})),I={root:"_root_1jxp8_1",desktop:"_desktop_1jxp8_13",laptop:"_laptop_1jxp8_14",promotion:"_promotion_1jxp8_18",background:"_background_1jxp8_35",close:"_close_1jxp8_44",content:"_content_1jxp8_53",variant2:"_variant2_1jxp8_66",logo:"_logo_1jxp8_70",left:"_left_1jxp8_82",center:"_center_1jxp8_95",slide:"_slide_1jxp8_101",slide_animated_default:"_slide_animated_default_1jxp8_115","fade-in-out":"_fade-in-out_1jxp8_1","slide_animated_bottom-top":"_slide_animated_bottom-top_1jxp8_118","fade-in-bottom-out-top":"_fade-in-bottom-out-top_1jxp8_1","slide_animated_top-bottom":"_slide_animated_top-bottom_1jxp8_121",right:"_right_1jxp8_125",buttonWrapper:"_buttonWrapper_1jxp8_140",button:"_button_1jxp8_140",button_animated:"_button_animated_1jxp8_174",increase:"_increase_1jxp8_1","fade-in-top-out-bottom":"_fade-in-top-out-bottom_1jxp8_1"},Xo={root:"_root_1c4sr_1",desktop:"_desktop_1c4sr_11"},m_=()=>{var o,n,r;const e=H(),t=L(e);return i("div",{className:T(Xo.root,{[Xo.desktop]:(e==null?void 0:e.device)==="desktop"}),style:ce(t.root,...Q),children:i(Z,{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})})},R={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"},st=(e,t,o=1,n=!1)=>{var l;const[r,s]=[t[0],t[1]||t[0]].map(d=>d*o),a=`w${r}-h${s}${n?"-c":""}`;return(l=e==null?void 0:e.replace(/(\/(?:upload|user-avatars)\/[\w\d]+\/)origin(\/)/,`$1${a}$2`))!=null?l:e},b_=()=>{var s,a;const e=H(),t=L(e),o=ce(t.root,...Q),n=w(h({},t.teamLogo),{backgroundImage:st(m(t,"match.teams[0].logo"),[120,120]),backgroundColor:"transparent"}),r=w(h({},t.teamLogo),{backgroundImage:st(m(t,"match.teams[1].logo"),[120,120]),backgroundColor:"transparent"});return i("div",{className:T(R.root,{[R.desktop]:e.device==="desktop",[R.laptop]:e.device==="laptop",[R.tablet]:e.device==="tablet"}),style:o,children:[i("div",{className:R.title,children:[i("div",{className:R.titleLabel,style:t.titleLabel,children:(s=t.titleLabel)==null?void 0:s.children}),i("div",{className:R.titleValue,style:t.titleValue,children:(a=t.titleValue)==null?void 0:a.children})]}),i("div",{className:R.odds,children:[i("div",{className:R.odd,children:[i("img",{className:R.teamLogo,src:n.backgroundImage,style:n}),i("div",{className:R.oddValue,style:t.value,children:m(t,"match.markets.one_x_two.w1")})]}),i("div",{className:R.odd,children:[i("div",{className:R.oddX,style:t.coef,children:"X"}),i("div",{className:R.oddValue,style:t.value,children:m(t,"match.markets.one_x_two.x")})]}),i("div",{className:R.odd,children:[i("img",{className:R.teamLogo,src:r.backgroundImage,style:r}),i("div",{className:R.oddValue,style:t.value,children:m(t,"match.markets.one_x_two.w2")})]})]}),i("div",{className:R.teams,children:[i("div",{className:R.teamName,style:t.teamName,children:m(t,"match.teams[0].name")}),i("div",{className:R.teamName,style:t.teamName,children:m(t,"match.teams[1].name")})]})]})},U={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"},y_=()=>{var r,s;const e=H(),t=L(e),o=w(h(h({},oe(t.root,...Q)),t.teamLogo),{backgroundColor:"transparent",backgroundImage:st(m(t,"match.teams[0].logo"),[120,120])}),n=w(h(h({},oe(t.root,...Q)),t.teamLogo),{backgroundColor:"transparent",backgroundImage:st(m(t,"match.teams[1].logo"),[120,120])});return i("div",{className:T(U.root,{[U.desktop]:(e==null?void 0:e.device)==="desktop",[U.laptop]:(e==null?void 0:e.device)==="laptop",[U.tablet]:(e==null?void 0:e.device)==="tablet",[U.national]:m(t,"match.isNational")}),style:ce(t.root,...Q),children:[i("div",{className:U.title,children:[i("div",{className:U.titleLabel,style:t.titleLabel,children:(r=t.titleLabel)==null?void 0:r.children}),i("div",{className:U.titleValue,style:t.titleValue,children:(s=t.titleValue)==null?void 0:s.children})]}),i("div",{children:[i("div",{className:U.team,children:[i("img",{className:U.teamLogo,src:o.backgroundImage,style:o}),i("div",{className:U.teamName,style:t.teamName,children:m(t,"match.teams[0].name")}),i("div",{className:U.teamValue,style:t.value,children:m(t,"match.markets.one_two.w1")})]}),i("div",{className:U.team,children:[i("img",{className:U.teamLogo,src:n.backgroundImage,style:n}),i("div",{className:U.teamName,style:t.teamName,children:m(t,"match.teams[1].name")}),i("div",{className:U.teamValue,style:t.value,children:m(t,"match.markets.one_two.w2")})]})]})]})},$_=(e=[])=>{var s;const t=e.length,[o,n]=se(0),r=(s=e[o||0])==null?void 0:s.animationDuration;return W(()=>{const l=setTimeout(()=>{n(d=>d+1<t?d+1:0)},r);return()=>clearTimeout(l)},[n,t,r,o]),o},k_={matches:"one_x_two",matchesOneTwo:"one_two"},Zo=e=>[k_[e]],x_=(e,t)=>{const o=c=>{var _;return M(c==null?void 0:c.matchSlug)&&((_=c==null?void 0:c.matchSlug)==null?void 0:_.length)>0},n=(e==null?void 0:e.children)||[],r=n.filter(c=>o(c.root.targetMatch)).map(c=>w(h({},c.root.targetMatch),{markets:Zo(c.name)})),s=Uo(r),{data:a,execute:l}=Go(`${t}/match-list`,{method:"POST",body:{matches:r.map(c=>({slug:c.matchSlug,sport_slug:c.sportSlug,lang:c.langSlug,bookmaker_slug:c.bookmaker,offset:c.offset,markets:c.markets}))},pause:!t||r.length===0});return W(()=>{zo(s,r)||l()},[r]),n.map(c=>{if("targetMatch"in c.root){const _=(a||[]).find(b=>b.slug===c.root.targetMatch.matchSlug);if(!_)return;const f=Zo(c.name),u=Eo(_,{markets:f}),g=Po(u,c.root.customMatch,(b,[$,y])=>M(y));return w(h({},c),{match:g})}return c}).filter(Boolean)},w_=e=>{const t=G(He()),[o,n]=se(!1),[r,s]=se(),a=u=>t.current.on("visible",u),l=u=>t.current.on("click",u),d=u=>t.current.on("clickHide",u),c=()=>We(this,null,function*(){n(!0)}),_=()=>n(!1),f=()=>{t.current.emit("clickHide"),_()};return W(()=>{t.current.emit("visible",o)},[o]),Ee(e,()=>({onVisible:a,onClick:l,onClickHide:d,show:c,hide:_,setApiHost:s,resetListeners:t.current.reset})),W(()=>t.current.reset,[]),{isOpen:o,apiHost:r,show:c,hide:_,clickHide:f,click:(...u)=>{t.current.emit("click",...u)}}},N_=3700,C_=ue(({id:e},t)=>{var q,S,E,B,z;const o=G(null),n=H(),r=$e({id:e,targetRef:o}),s=he(n,r),a=L(s);ge(s);const{apiHost:l,isOpen:d,click:c,clickHide:_}=w_(t),f=x_(a,l),u=k=>({text:i(m_,{}),matches:i(b_,{}),matchesOneTwo:i(y_,{})})[k],g=f.filter(Boolean).map(k=>{var F,P;return w(h({},k),{animationName:(F=k==null?void 0:k.root)==null?void 0:F.animationName,animationDuration:((P=k==null?void 0:k.root)==null?void 0:P.animationDuration)||N_})}),b=$_(g),$=L(g[b]||{}),y=ce(a.root,...Q),D=(q=$==null?void 0:$.root)!=null&&q.hasCustomBackground?oe(($==null?void 0:$.root)||{},...Q):oe(a.root,...Q);return i("div",{ref:o,className:T(I.root,{[I.desktop]:r==="desktop",[I.laptop]:r==="laptop",[I.tablet]:r==="tablet",[I.variant2]:((S=a.root)==null?void 0:S.variant)==="variant2"}),style:w(h({},y),{display:d?"block":"none"}),children:[i("div",{className:I.close,style:ve(a.close),onClick:_,children:i(je,{})}),i("div",{className:I.promotion,style:a.promotion,children:(E=a.promotion)==null?void 0:E.children}),i("a",{href:(B=a.root)==null?void 0:B.offer,target:"_blank",rel:"nofollow noopener noreferrer",onClick:c,children:[i("div",{className:I.background,style:D}),i("div",{className:I.content,children:[i("div",{className:I.left,children:i("div",{className:I.logo,style:a.logo})}),i("div",{className:I.center,children:(g||[]).map((k,F)=>{var P,Y;return i("div",{className:I.slide,style:{animationName:b===F?I[((P=k.root)==null?void 0:P.animationName)||"fade-in-out"]:"none",animationDuration:`${(Y=k.root)==null?void 0:Y.animationDuration}ms`},children:i(pe,{value:w(h({},k),{device:r}),children:u(k.name)})})})}),i("div",{className:I.right,children:[i("div",{className:I.logo,style:a.logo}),i("div",{className:I.buttonWrapper,children:i("div",{className:T(I.button,{[I.button_animated]:a.button.$animated}),style:a.button,children:[i("div",{className:I.logo,style:a.logo}),(z=a.button)==null?void 0:z.children]})})]})]})]})]})}),T_=fe(i(C_,{})),De={content:"_content_c8kee_1",desktop:"_desktop_c8kee_6",laptop:"_laptop_c8kee_6",tablet:"_tablet_c8kee_6"},ae={root:"_root_t1sch_1",content:"_content_t1sch_8",textContent:"_textContent_t1sch_15",backgroundLine:"_backgroundLine_t1sch_20",button:"_button_t1sch_26",link:"_link_t1sch_32",legal:"_legal_t1sch_38",legalText:"_legalText_t1sch_47",open:"_open_t1sch_56",legalMore:"_legalMore_t1sch_61"},O_=(e,t,o,n,r=Mo)=>{const s=h({},e);return r.forEach(a=>{s[t]=w(h({},s[t]),{[a]:w(h({},s[t][a]),{[o]:typeof n=="function"?n(m(s,`${t}.${a}.${o}`)):n})})}),s},ve=e=>{const t=e==null?void 0:e.backgroundColor;if(!t)return e;const o=w(h({},e),{color:t});return ce(o,"backgroundColor")},S_=()=>i("svg",{width:"81",height:"100%",viewBox:"0 0 81 76",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i("path",{d:"M63.0344 7.99989L7.38354 67.5171L9.86897 69.8401L65.5198 10.3229L63.0344 7.99989Z",fill:"currentColor"}),i("path",{d:"M77.8771 -23.0001L22.2263 36.5171L24.7117 38.8401L80.3626 -20.6771L77.8771 -23.0001Z",fill:"#E3E3E3"}),i("path",{d:"M66.7199 20.9999L11.0691 80.5171L13.5545 82.8401L69.2053 23.3229L66.7199 20.9999Z",fill:"#E3E3E3"}),i("path",{d:"M55.808 20.5258L0.157227 80.043L2.64266 82.366L58.2935 22.8487L55.808 20.5258Z",fill:"currentColor"}),i("path",{d:"M70.6508 -10.4742L15 49.043L17.4854 51.366L73.1362 -8.15125L70.6508 -10.4742Z",fill:"#E3E3E3"}),i("path",{d:"M72.426 8.99995L61 21.2163L62.5379 22.6541L73.9638 10.4377L72.426 8.99995Z",fill:"#E3E3E3"})]}),L_=({onClick:e})=>{var s,a,l,d,c,_,f,u,g;const t=H(),o=L(t),[n,r]=at();return i("div",{className:ae.root,style:o.root,children:[i("div",{className:ae.content,children:[i("div",{className:ae.textContent,children:[i(Z,{className:ae.text,style:o.text,typography:(s=o.text)==null?void 0:s.typography,accentTypography:(a=o.text)==null?void 0:a.accentTypography,children:(l=o.text)==null?void 0:l.children}),i("div",{style:o.bookmaker,children:(d=o.bookmaker)==null?void 0:d.children})]}),i("div",{className:ae.button,style:o.button,children:o.button.children}),i("div",{className:ae.backgroundLine,style:w(h({},ve(o.line)),{left:`calc(50% - ${(c=o.line)==null?void 0:c.left})`}),children:i(S_,{})}),i("a",{className:ae.link,target:"_blank",href:(_=o.root)==null?void 0:_.offer,onClick:()=>e(o.id),rel:"noreferrer"})]}),i("div",{className:T(ae.legal,{[ae.open]:n}),style:o.legalInfo,children:i("div",{className:ae.legalText,children:[(f=o.legalInfo)==null?void 0:f.children,i("span",{className:ae.legalMore,style:o.legalInfoButton,onClick:r,children:n?(u=o.legalInfoButton)==null?void 0:u.openText:(g=o.legalInfoButton)==null?void 0:g.closeText})]})})]})},ie={root:"_root_ka6mq_1",content:"_content_ka6mq_8",backgroundLine:"_backgroundLine_ka6mq_14",link:"_link_ka6mq_20",button:"_button_ka6mq_26",logo:"_logo_ka6mq_31",legal:"_legal_ka6mq_37",open:"_open_ka6mq_49",legalText:"_legalText_ka6mq_53",legalMore:"_legalMore_ka6mq_66"},A_=({onClick:e})=>{var s,a,l,d,c,_,f,u;const t=H(),o=L(t),[n,r]=at();return i("div",{className:ie.root,style:o.root,children:[i("div",{className:ie.content,children:[i(Z,{className:ie.text,style:o.text,typography:(s=o.text)==null?void 0:s.typography,accentTypography:(a=o.text)==null?void 0:a.accentTypography,children:(l=o.text)==null?void 0:l.children}),i("div",{className:ie.button,style:o.button,children:[i("div",{className:ie.logo,style:o.logo}),o.button.children]}),i("a",{className:ie.link,href:(d=o.root)==null?void 0:d.offer})]}),i("a",{className:ie.link,href:(c=o.root)==null?void 0:c.offer,target:"_blank",onClick:()=>e(o.id),rel:"noreferrer"}),i("div",{className:T(ie.legal,{[ie.open]:n}),style:o.legalInfo,children:[i("div",{className:ie.legalText,children:(_=o.legalInfo)==null?void 0:_.children}),i("div",{className:ie.legalMore,style:o.legalInfoButton,onClick:r,children:n?(f=o.legalInfoButton)==null?void 0:f.openText:(u=o.legalInfoButton)==null?void 0:u.closeText})]})]})},j_=e=>{const t=G(He()),o=r=>t.current.on("click",r),n=r=>t.current.on("visible",r);return Ee(e,()=>({promoId:"ContentCards",onClick:o,onVisible:n,resetListeners:t.current.reset})),W(()=>{t.current.emit("visible")},[]),W(()=>t.current.reset,[]),{click:(...r)=>t.current.emit("click",...r),onClick:o}},I_=ue(({id:e},t)=>{const o=G(null),n=H(),r=$e({targetRef:o,id:e}),s=he(n,r),a=L(s);ge(s);const{click:l}=j_(t),d=c=>({cardVariant1:i(L_,{onClick:l}),cardVariant2:i(A_,{onClick:l})})[c];return i("div",{ref:o,className:T(De.root,{[De.desktop]:r==="desktop",[De.laptop]:r==="laptop",[De.tablet]:r==="tablet"}),children:i("div",{className:De.content,children:((a==null?void 0:a.children)||[]).map(c=>i(pe,{value:c,children:d(c.name)}))})})}),R_=fe(i(I_,{}));var xe=[],E_=function(){return xe.some(function(e){return e.activeTargets.length>0})},B_=function(){return xe.some(function(e){return e.skippedTargets.length>0})},Ko="ResizeObserver loop completed with undelivered notifications.",z_=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Ko}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Ko),window.dispatchEvent(e)},qe;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(qe||(qe={}));var we=function(e){return Object.freeze(e)},Jo=function(){function e(t,o){this.inlineSize=t,this.blockSize=o,we(this)}return e}(),Yo=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,we(this)}return e.prototype.toJSON=function(){var t=this,o=t.x,n=t.y,r=t.top,s=t.right,a=t.bottom,l=t.left,d=t.width,c=t.height;return{x:o,y:n,top:r,right:s,bottom:a,left:l,width:d,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),xt=function(e){return e instanceof SVGElement&&"getBBox"in e},Qo=function(e){if(xt(e)){var t=e.getBBox(),o=t.width,n=t.height;return!o&&!n}var r=e,s=r.offsetWidth,a=r.offsetHeight;return!(s||a||e.getClientRects().length)},en=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)},P_=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},Fe=typeof window!="undefined"?window:{},ct=new WeakMap,tn=/auto|scroll/,M_=/^tb|vertical/,H_=/msie|trident/i.test(Fe.navigator&&Fe.navigator.userAgent),le=function(e){return parseFloat(e||"0")},Ie=function(e,t,o){return e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=!1),new Jo((o?t:e)||0,(o?e:t)||0)},on=we({devicePixelContentBoxSize:Ie(),borderBoxSize:Ie(),contentBoxSize:Ie(),contentRect:new Yo(0,0,0,0)}),nn=function(e,t){if(t===void 0&&(t=!1),ct.has(e)&&!t)return ct.get(e);if(Qo(e))return ct.set(e,on),on;var o=getComputedStyle(e),n=xt(e)&&e.ownerSVGElement&&e.getBBox(),r=!H_&&o.boxSizing==="border-box",s=M_.test(o.writingMode||""),a=!n&&tn.test(o.overflowY||""),l=!n&&tn.test(o.overflowX||""),d=n?0:le(o.paddingTop),c=n?0:le(o.paddingRight),_=n?0:le(o.paddingBottom),f=n?0:le(o.paddingLeft),u=n?0:le(o.borderTopWidth),g=n?0:le(o.borderRightWidth),b=n?0:le(o.borderBottomWidth),$=n?0:le(o.borderLeftWidth),y=f+c,D=d+_,q=$+g,S=u+b,E=l?e.offsetHeight-S-e.clientHeight:0,B=a?e.offsetWidth-q-e.clientWidth:0,z=r?y+q:0,k=r?D+S:0,F=n?n.width:le(o.width)-z-B,P=n?n.height:le(o.height)-k-E,Y=F+y+B+q,J=P+D+E+S,me=we({devicePixelContentBoxSize:Ie(Math.round(F*devicePixelRatio),Math.round(P*devicePixelRatio),s),borderBoxSize:Ie(Y,J,s),contentBoxSize:Ie(F,P,s),contentRect:new Yo(f,d,F,P)});return ct.set(e,me),me},rn=function(e,t,o){var n=nn(e,o),r=n.borderBoxSize,s=n.contentBoxSize,a=n.devicePixelContentBoxSize;switch(t){case qe.DEVICE_PIXEL_CONTENT_BOX:return a;case qe.BORDER_BOX:return r;default:return s}},an=function(){function e(t){var o=nn(t);this.target=t,this.contentRect=o.contentRect,this.borderBoxSize=we([o.borderBoxSize]),this.contentBoxSize=we([o.contentBoxSize]),this.devicePixelContentBoxSize=we([o.devicePixelContentBoxSize])}return e}(),sn=function(e){if(Qo(e))return 1/0;for(var t=0,o=e.parentNode;o;)t+=1,o=o.parentNode;return t},V_=function(){var e=1/0,t=[];xe.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(c){var _=new an(c.target),f=sn(c.target);l.push(_),c.lastReportedSize=rn(c.target,c.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},cn=function(e){xe.forEach(function(o){o.activeTargets.splice(0,o.activeTargets.length),o.skippedTargets.splice(0,o.skippedTargets.length),o.observationTargets.forEach(function(r){r.isActive()&&(sn(r.target)>e?o.activeTargets.push(r):o.skippedTargets.push(r))})})},D_=function(){var e=0;for(cn(e);E_();)e=V_(),cn(e);return B_()&&z_(),e>0},wt,ln=[],q_=function(){return ln.splice(0).forEach(function(e){return e()})},F_=function(e){if(!wt){var t=0,o=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return q_()}).observe(o,n),wt=function(){o.textContent="".concat(t?t--:t++)}}ln.push(e),wt()},W_=function(e){F_(function(){requestAnimationFrame(e)})},lt=0,G_=function(){return!!lt},U_=250,X_={attributes:!0,characterData:!0,childList:!0,subtree:!0},dn=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],_n=function(e){return e===void 0&&(e=0),Date.now()+e},Nt=!1,Z_=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=U_),!Nt){Nt=!0;var n=_n(t);W_(function(){var r=!1;try{r=D_()}finally{if(Nt=!1,t=n-_n(),!G_())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,X_)};document.body?o():Fe.addEventListener("DOMContentLoaded",o)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),dn.forEach(function(o){return Fe.addEventListener(o,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),dn.forEach(function(o){return Fe.removeEventListener(o,t.listener,!0)}),this.stopped=!0)},e}(),Ct=new Z_,un=function(e){!lt&&e>0&&Ct.start(),lt+=e,!lt&&Ct.stop()},K_=function(e){return!xt(e)&&!P_(e)&&getComputedStyle(e).display==="inline"},J_=function(){function e(t,o){this.target=t,this.observedBox=o||qe.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=rn(this.target,this.observedBox,!0);return K_(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Y_=function(){function e(t,o){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=o}return e}(),dt=new WeakMap,pn=function(e,t){for(var o=0;o<e.length;o+=1)if(e[o].target===t)return o;return-1},_t=function(){function e(){}return e.connect=function(t,o){var n=new Y_(t,o);dt.set(t,n)},e.observe=function(t,o,n){var r=dt.get(t),s=r.observationTargets.length===0;pn(r.observationTargets,o)<0&&(s&&xe.push(r),r.observationTargets.push(new J_(o,n&&n.box)),un(1),Ct.schedule())},e.unobserve=function(t,o){var n=dt.get(t),r=pn(n.observationTargets,o),s=n.observationTargets.length===1;r>=0&&(s&&xe.splice(xe.indexOf(n),1),n.observationTargets.splice(r,1),un(-1))},e.disconnect=function(t){var o=this,n=dt.get(t);n.observationTargets.slice().forEach(function(r){return o.unobserve(t,r.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Q_=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.");_t.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(!en(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");_t.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(!en(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");_t.unobserve(this,t)},e.prototype.disconnect=function(){_t.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const eu=Object.freeze(Object.defineProperty({__proto__:null,ResizeObserver:Q_,ResizeObserverEntry:an,ResizeObserverSize:Jo},Symbol.toStringTag,{value:"Module"}));v.BonusCard=v_,v.ComplexGift=t_,v.ComplexPopup=l_,v.ContentCards=R_,v.ExpressPopup=p_,v.SimpleGift=Yd,v.SimplePopup=i_,v.WideCard=T_,v.backgroundToColor=ve,v.filterDeep=Bd,v.findDeep=Ed,v.isValidTemplate=Id,v.modifyState=O_,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,17 +1,14 @@
1
1
  {
2
2
  "name": "@adstore/templates",
3
3
  "private": false,
4
- "version": "2.7.0",
4
+ "version": "2.7.1",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
8
8
  ],
9
9
  "types": "./dist/templates.es.d.ts",
10
- "exports": {
11
- ".": "./dist/templates.js",
12
- "./style.css": "./dist/style.css",
13
- "./package.json": "./package.json"
14
- },
10
+ "main": "./dist/templates.umd.js",
11
+ "module": "./dist/templates.es.js",
15
12
  "scripts": {
16
13
  "dev": "vite build --watch",
17
14
  "build": "vite build",