/*
=======================================================================
 * Item Name    : GDPR Cookie Law
 * Item URL     : https://codecanyon.net/item/gdpr-cookie-law/22061612
 * Item Version : 1.0.7
 * Author by    : jablonczay
=======================================================================
 */
!function(t,o){var n,i,e,a,c,r;function d(o,i){this.element=o,this.options=t.extend({},r,i),this._defaults=r,this._name=n,this.init()}a="",a+="We use cookies to personalize content and ads, to provide social media features and to analyze our traffic. We also share information about your use of our site with our social media, advertising and analytics partners. ",n="gdprCookieLaw",i="gdpr-cookie-law",c=["fade","slide","fade-slide"],r={expire:365,breakpoint:"768px",zIndex:1e9,delay:null,theme:null,animationStatus:!0,animationDuration:500,animationName:"fade",position:"bottom",margin:null,padding:"20px",width:"auto",bgColor:"#000000",bgColorOpacity:1,boxShadowStatus:!0,boxShadowHorizonalOffset:"0px",boxShadowVerticalOffset:"0px",boxShadowBlur:"30px",boxShadowSpread:"0px",boxShadowColor:"#000",boxShadowOpacity:.05,fontFamily:null,fontSize:"14px",fontWeight:"normal",color:"#fff",contentWidth:"auto",desc:a+="By continuing to use our site you agree to our Privacy Policy and use of cookies.",contentAndBtnHorizontalSpace:"3em",contentAndBtnVerticalSpace:"2em",customAnchors:null,moreLinkStatus:!0,moreLinkDecorationStatus:!0,moreLinkDecorationType:"dotted",moreLinkText:"Privacy Policy",moreLinkColor:"#fff",moreLinkFontFamily:null,moreLinkFontSize:"14px",moreLinkFontWeight:"bold",moreLinkHref:null,btnAcceptText:"OK",btnAcceptPaddingTop:"15px",btnAcceptPaddingRight:"56px",btnAcceptPaddingBottom:"13px",btnAcceptPaddingLeft:"56px",btnAcceptBgColor:"#f3f3f3",btnAcceptBgColorHover:"#eeeeee",btnAcceptBgColorFocus:"#eeeeee",btnAcceptBgColorActive:"#eeeeee",btnAcceptColor:"#000000",btnAcceptColorHover:"#000000",btnAcceptColorFocus:"#000000",btnAcceptColorActive:"#000000",btnAcceptBorderRadius:"3px",btnAcceptFontFamily:null,btnAcceptFontSize:"14px",btnAcceptFontWeight:"bold"},d.prototype.init=function(){var t,o,n;function i(){t.setStyle(o),t.setTpl(o),t.setAnimationName(e,o,"in"),t.accept(e,o),t.forceSmByWidth(e,o),t.resize(e,o)}o=(t=this).options,(n=parseInt(o.delay,10))?n>0&&setTimeout(i,n):i()},d.prototype.hexToRgba=function(t,o){var n;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(t))return 3===(n=t.substring(1).split("")).length&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]),"rgba("+[(n="0x"+n.join(""))>>16&255,n>>8&255,255&n].join(",")+","+o+")";throw new Error("Bad hex value!")},d.prototype.setAnimationName=function(o,n,e,a){var r,d,p,l,m;n.animationStatus&&(-1!==c.indexOf(n.animationName)&&("fade"===n.animationName?(d="fade-in",p="fade-out"):"slide"===n.animationName?/^top/.test(n.position)?(d="slide-in-down",p="slide-out-up"):/^bottom/.test(n.position)&&(d="slide-in-up",p="slide-out-down"):"fade-slide"===n.animationName&&(/^top/.test(n.position)?(d="fade-in-down",p="fade-out-up"):/^bottom/.test(n.position)&&(d="fade-in-up",p="fade-out-down")),"in"===e?r=d:"out"===e&&(r=p),l=i+"--animation-"+r,m=i+"--animated",[i+"--animation-fade-in",i+"--animation-fade-out",i+"--animation-slide-in-up",i+"--animation-slide-in-down",i+"--animation-slide-out-up",i+"--animation-slide-out-down"].forEach(function(t){o.classList.remove(t)}),o.classList.add(l),o.classList.add(m),t(o).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){this.classList.remove(l),this.classList.remove(m),a&&"function"==typeof a&&a()})))},d.prototype.setStyle=function(t){var o,n={animation:""};n.animation+=t.animationStatus?" -webkit-animation-duration: "+t.animationDuration+"ms; animation-duration: "+t.animationDuration+"ms;":"",n.zIndex="",n.zIndex+=" z-index: "+t.zIndex+";",n.top="",n.top+="top"===t.position?" top: 0; bottom: initial;":"",n.bottom="",n.bottom+="bottom"===t.position?" bottom: 0; top: initial;":"",n.bottomLeft="",n.bottomLeft+="bottom-left"===t.position?" bottom: "+(t.margin?t.margin+";":"0;")+" top: initial; left: "+(t.margin?t.margin+";":"0;")+" right: initial;":"",n.bottomCenter="",n.bottomCenter+="bottom-center"===t.position?" bottom: "+(t.margin?t.margin+";":"0;")+" top: initial; right: 0; left: 0; margin-left: auto; margin-right: auto;":"",n.bottomRight="",n.bottomRight+="bottom-right"===t.position?" bottom: "+(t.margin?t.margin+";":"0;")+" top: initial; right: "+(t.margin?t.margin+";":"0;")+" left: initial;":"",n.topLeft="",n.topLeft+="top-left"===t.position?" top: "+(t.margin?t.margin+";":"0;")+" bottom: initial; left: "+(t.margin?t.margin+";":"0;")+" right: initial; margin-left: auto; margin-right: auto;":"",n.topCenter="",n.topCenter+="top-center"===t.position?" top: "+(t.margin?t.margin+";":"0;")+" bottom: initial; right: 0; left: 0; margin-left: auto; margin-right: auto;":"",n.topRight="",n.topRight+="top-right"===t.position?" top: "+(t.margin?t.margin+";":"0;")+" bottom: initial; right: "+(t.margin?t.margin+";":"0;")+" left: initial;":"",n.padding="",n.padding+=t.padding?" padding: "+t.padding+";":"",n.width="",n.width+=t.width?" width: "+t.width+";":"",n.width+=t.margin?" max-width: -webkit-calc(100% - "+2*window.parseInt(t.margin,10)+"px); max-width: calc(100% - "+2*window.parseInt(t.margin,10)+"px);":"",n.bgColor="",n.bgColor+=t.bgColor?" background-color: "+this.hexToRgba(t.bgColor,t.bgColorOpacity)+";":"",n.boxShadow="",n.boxShadow+=t.boxShadowStatus?" -webkit-box-shadow: "+t.boxShadowHorizonalOffset+" "+t.boxShadowVerticalOffset+" "+t.boxShadowBlur+" "+t.boxShadowSpread+" "+this.hexToRgba(t.boxShadowColor,t.boxShadowOpacity)+";":"",n.boxShadow+=t.boxShadowStatus?" -moz-box-shadow: "+t.boxShadowHorizonalOffset+" "+t.boxShadowVerticalOffset+" "+t.boxShadowBlur+" "+t.boxShadowSpread+" "+this.hexToRgba(t.boxShadowColor,t.boxShadowOpacity)+";":"",n.boxShadow+=t.boxShadowStatus?" box-shadow: "+t.boxShadowHorizonalOffset+" "+t.boxShadowVerticalOffset+" "+t.boxShadowBlur+" "+t.boxShadowSpread+" "+this.hexToRgba(t.boxShadowColor,t.boxShadowOpacity)+";":"",n.fontFamily=t.fontFamily?" font-family: "+t.fontFamily+";":"",n.fontSize="",n.fontSize+=t.fontSize?" font-size: "+t.fontSize+";":"",n.fontWeight="",n.fontWeight+=t.fontWeight?" font-weight: "+t.fontWeight+";":"",n.color="",n.color+=t.color?" color: "+t.color+";":"",n.contentAndBtnHorizontalSpace="",n.contentAndBtnHorizontalSpace+=t.contentAndBtnHorizontalSpace?" padding-bottom: 0; padding-right: "+t.contentAndBtnHorizontalSpace+";":"",n.contentAndBtnVerticalSpace="",n.contentAndBtnVerticalSpace+=t.contentAndBtnVerticalSpace?" padding-right: 0; padding-bottom: "+t.contentAndBtnVerticalSpace+";":"",n.contentWidth="",n.contentWidth+=t.contentWidth?" width: "+t.contentWidth+";":"",n.moreLinkDecoration="",n.moreLinkDecoration+="none"!==t.moreLinkDecorationType?" border-bottom: 1px "+t.moreLinkDecorationType+" currentColor;":"",n.moreLinkColor="",n.moreLinkColor+=t.moreLinkColor?" color: "+t.moreLinkColor+";":"",n.moreLinkFontFamily="",n.moreLinkFontFamily+=t.moreLinkFontFamily?" font-family: "+t.moreLinkFontFamily+";":"",n.moreLinkFontSize="",n.moreLinkFontSize+=t.moreLinkFontSize?" font-size: "+t.moreLinkFontSize+";":"",n.moreLinkFontWeight="",n.moreLinkFontWeight+=t.moreLinkFontWeight?" font-weight: "+t.moreLinkFontWeight+";":"",n.btnAcceptPaddingTop="",n.btnAcceptPaddingTop+=t.btnAcceptPaddingTop?" padding-top: "+t.btnAcceptPaddingTop+";":"",n.btnAcceptPaddingRight="",n.btnAcceptPaddingRight+=t.btnAcceptPaddingRight?" padding-right: "+t.btnAcceptPaddingRight+";":"",n.btnAcceptPaddingBottom="",n.btnAcceptPaddingBottom+=t.btnAcceptPaddingBottom?" padding-bottom: "+t.btnAcceptPaddingBottom+";":"",n.btnAcceptPaddingLeft="",n.btnAcceptPaddingLeft+=t.btnAcceptPaddingLeft?" padding-left: "+t.btnAcceptPaddingLeft+";":"",n.btnAcceptBgColor="",n.btnAcceptBgColor+=t.btnAcceptBgColor?" background-color: "+t.btnAcceptBgColor+";":"",n.btnAcceptBgColorHover="",n.btnAcceptBgColorHover+=t.btnAcceptBgColorHover?" background-color: "+t.btnAcceptBgColorHover+";":"",n.btnAcceptBgColorFocus="",n.btnAcceptBgColorFocus+=t.btnAcceptBgColorFocus?" background-color: "+t.btnAcceptBgColorFocus+";":"",n.btnAcceptBgColorActive="",n.btnAcceptBgColorActive+=t.btnAcceptBgColorActive?" background-color: "+t.btnAcceptBgColorActive+";":"",n.btnAcceptColor="",n.btnAcceptColor+=t.btnAcceptColor?" color: "+t.btnAcceptColor+";":"",n.btnAcceptColorHover="",n.btnAcceptColorHover+=t.btnAcceptColorHover?" color: "+t.btnAcceptColorHover+";":"",n.btnAcceptColorFocus="",n.btnAcceptColorFocus+=t.btnAcceptColorFocus?" color: "+t.btnAcceptColorFocus+";":"",n.btnAcceptColorActive="",n.btnAcceptColorActive+=t.btnAcceptColorActive?" color: "+t.btnAcceptColorActive+";":"",n.btnAcceptBorderRadius="",n.btnAcceptBorderRadius+=t.btnAcceptBorderRadius?" border-radius: "+t.btnAcceptBorderRadius+";":"",n.btnAcceptFontFamily="",n.btnAcceptFontFamily+=t.btnAcceptFontFamily?" font-family: "+t.btnAcceptFontFamily+";":"",n.btnAcceptFontSize="",n.btnAcceptFontSize+=t.btnAcceptFontSize?" font-size: "+t.btnAcceptFontSize+";":"",n.btnAcceptFontWeight="",n.btnAcceptFontWeight+=t.btnAcceptFontWeight?" font-weight: "+t.btnAcceptFontWeight+";":"",o="",o+="."+i+" {"+n.animation+n.zIndex+n.top+n.bottom+n.bottomLeft+n.bottomCenter+n.bottomRight+n.topLeft+n.topCenter+n.topRight+n.padding+n.width+n.bgColor+n.boxShadow+n.fontFamily+n.fontSize+n.fontWeight+n.color+"}\r\n",t.animationStatus&&"fade"===t.animationName&&(o+="."+i+"--animation-fade-in { -webkit-animation-name: "+i+"-fade-in; animation-name: "+i+"-fade-in; }\r\n",o+="."+i+"--animation-fade-out { -webkit-animation-name: "+i+"-fade-out; animation-name: "+i+"-fade-out; }\r\n"),t.animationStatus&&"slide"===t.animationName&&(o+="."+i+"--animation-fade-slide-in-up { -webkit-animation-name: "+i+"-slide-in-up; animation-name: "+i+"-slide-in-up; }\r\n",o+="."+i+"--animation-fade-slide-in-down { -webkit-animation-name: "+i+"-slide-in-down; animation-name: "+i+"-slide-in-down; }\r\n",o+="."+i+"--animation-fade-slide-out-up { -webkit-animation-name: "+i+"-slide-out-up; animation-name: "+i+"-slide-out-up; }\r\n",o+="."+i+"--animation-fade-slide-out-down { -webkit-animation-name: "+i+"-slide-out-down; animation-name: "+i+"-slide-out-down; }\r\n"),o+="."+i+"__body {"+n.contentWidth+"}\r\n",o+="."+i+"__btn--accept {"+n.btnAcceptPaddingTop+n.btnAcceptPaddingRight+n.btnAcceptPaddingBottom+n.btnAcceptPaddingLeft+n.btnAcceptBgColor+n.btnAcceptColor+n.btnAcceptBorderRadius+n.btnAcceptFontFamily+n.btnAcceptFontSize+n.btnAcceptFontWeight+"}\r\n",o+="."+i+"__btn--accept:hover {"+n.btnAcceptBgColorHover+n.btnAcceptColorHover+"}\r\n",o+="."+i+"__btn--accept:focus {"+n.btnAcceptBgColorFocus+n.btnAcceptColorFocus+"}\r\n",o+="."+i+"__btn--accept:active {"+n.btnAcceptBgColorActive+n.btnAcceptColorActive+"}\r\n",o+="."+i+"__link {"+n.moreLinkDecoration+n.moreLinkColor+n.moreLinkFontFamily+n.moreLinkFontSize+n.moreLinkFontWeight+"}\r\n",o+="."+i+"__desc {"+n.contentAndBtnHorizontalSpace+"}\r\n",o+="."+i+"--sm ."+i+"__desc,\r\n."+i+"--sm-fix ."+i+"__desc {"+n.contentAndBtnVerticalSpace+"}\r\n",document.querySelector("head").insertAdjacentHTML("beforeend",'<style id="'+i+'-style">'+o+"</style>")},d.prototype.getTpl=function(t){var o="";return o+='<div class="'+i+(null!==this.getCookie(i)?" "+i+"--is-hidden":"")+(null!==t.theme?" "+i+"--"+t.theme:"")+'" id="'+i+'">',o+='<div class="'+i+'__body">',o+='<div class="'+i+'__desc">',o+=t.desc,t.moreLinkStatus&&(o+=' <a class="'+i+'__link" href="'+(t.moreLinkHref?t.moreLinkHref:"#")+'" target="_blank">'+t.moreLinkText+"</a>"),o+="</div>",o+='<div class="'+i+'__btn-bar">',o+='<button class="'+i+"__btn "+i+'__btn--accept" id="'+i+'-accept-btn" type="button">'+t.btnAcceptText+"</button>",o+="</div>",o+="</div>",o+="</div>"},d.prototype.setCustomAnchors=function(t,o){var n;return o.forEach(function(o){n="<a ",n+='class="'+i+'__link " ',n+='href="'+(o.href?o.href:"#")+'" ',n+='target="'+(o.target?o.target:"_blank")+'" ',n+=o.title?'title="'+o.title+'"':"",n+=">",n+=o.text?o.text:"",n+="</a>",t=t.replace(new RegExp("{{"+o.id+"}}","mg"),n)}),t},d.prototype.setTpl=function(t){var o=this.getTpl(t);/\{\{|\}\}/gm.test(o)&&(o=this.setCustomAnchors(o,t.customAnchors)),document.querySelector("body").insertAdjacentHTML("beforeend",o),e=document.getElementById(i)},d.prototype.getCookie=function(t){var o=document.cookie.match("(^|;) ?"+t+"=([^;]*)(;|$)");return o?o[2]:null},d.prototype.setCookie=function(t,o,n){var i=new Date;i.setTime(i.getTime()+864e5*n),document.cookie=t+"="+o+";path=/;expires="+i.toGMTString()},d.prototype.accept=function(t,o){var n=this;t.querySelector("."+i+"__btn--accept").addEventListener("click",function(){if(this.blur(),o.animationStatus&&-1!==c.indexOf(o.animationName))o.animationStatus&&n.setAnimationName(t,o,"out",function(){t.classList.add(i+"--is-hidden"),null===n.getCookie(i)&&n.setCookie(i,"1",o.expire)});else{if(t.classList.add(i+"--is-hidden"),null!==n.getCookie(i))return;n.setCookie(i,"1",o.expire)}})},d.prototype.forceSmByWidth=function(t,o){var n,e;o.width&&"auto"!==o.width&&(n=window.parseInt(o.width,10),e=window.parseInt(o.breakpoint,10),t.classList.remove(i+"--sm-fix"),n>=e||t.classList.add(i+"--sm-fix"))},d.prototype.resize=function(t,o){var n;function e(){n=window.matchMedia("(min-width: "+o.breakpoint+")"),t.classList.remove(i+"--sm"),n.matches||t.classList.add(i+"--sm")}window.addEventListener("resize",e),e()},t.fn[n]=function(o){return this.each(function(){t.data(this,"plugin_"+n)||t.data(this,"plugin_"+n,new d(this,o))})}}(jQuery);