!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";function i(t,e){for(var n=0;n>>0;if(0===n)return-1;var i=0;if(arguments.length>0&&((i=Number(arguments[1]))!=i?i=0:0!==i&&i!==1/0&&i!==-1/0&&(i=(i>0||-1)*Math.floor(Math.abs(i)))),i>=n)return-1;for(var r=i>=0?i:Math.max(n-Math.abs(i),0);r0&&(r=t.gradColors[0].c,i="solid"):(i="solid",r="#fff")),"true"===String(t.useBorder)&&(e.border="1px solid ".concat(t.borderColor)),e["background-image"]="",i){case"none":break;case"image":e=function(t,e){var n,i,r=b(e);for(var o in t["background-image"]="url(".concat(r,")"),t["--retina-src"]=r,e)switch(o){case"scaleMode":case"verticalAlign":case"horizontalAlign":switch(e.verticalAlign){case"top":n="0";break;case"middle":n="50%";break;case"bottom":n="100%"}switch(e.horizontalAlign){case"left":i="0";break;case"center":i="50%";break;case"right":i="100%"}t["background-position"]="".concat(i," ").concat(n);break;case"contentOffsetX":"tile"===e.scaleMode&&(t["background-position-x"]="".concat(e[o],"%"));break;case"contentOffsetY":"tile"===e.scaleMode&&(t["background-position-y"]="".concat(e[o],"%"))}return t}(e,t=function(t){return t&&t.type&&"image"===t.type&&t.tile&&(t.scaleMode="tile",t.contentScale=100,t.contentOffsetX=50,t.contentOffsetY=50,delete t.tile),t}(t));break;case"solid":if(r&&r.includes("rgba")){var l=s();l>-1&&l<9&&(r=a(o(r),!1))}e["background-color"]=r;break;case"rgrad":case"lgrad":for(var c=t.gradColors,u=[],d=0;d0)(t=e["background-image"]=[]).push("-webkit-".concat(h,"-gradient(").concat(f,", ").concat(p,")")),t.push("-moz-".concat(h,"-gradient(").concat(f,", ").concat(p,")")),t.push("-o-".concat(h,"-gradient(").concat(f,", ").concat(p,")")),t.push("-ms-".concat(h,"-gradient(").concat(f,", ").concat(p,")"));e.filter="progid:DXImageTransform.Microsoft.gradient( startColorstr='".concat(c[0].c,"', endColorstr='").concat(c[c.length-1].c,"',GradientType=0 )")}return e}function b(t){if(window.bannerConfig.hqImages&&t.hqUrl)return t.hqUrl;if(t.localUrl){var e=void 0!==window.bannerConfig.imgLocalPath?window.bannerConfig.imgLocalPath:"media/";return"".concat(e).concat(t.localUrl)}return t.url&&t.url.includes("//")?t.url:t.url?window.bannerConfig.photosUrl+t.url:null}function g(t,e){for(var n in e)t.style[n]=e[n]}function m(t){return JSON.parse(JSON.stringify(t))}function v(t){return t&&0!==String(t).length?t.includes("://")?t:"http://".concat(t):""}function w(t,e){var n=window.innerWidth/t,i=window.innerHeight/e;return{proportion:Math.min(n,i)}}function S(t,e,n){return t.substring(e,e+n)}function C(t){return t.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())}))}var k=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),window.assetsCache={},this.fontTypes={CUSTOM:"custom",BANNERSNACK:"bannersnack",GOOGLE:"google"},this.loadedSlides={},this.imagesToLoad=[],this.fontsToLoad=[],this.gFontsToLoad=[],this.videosToLoad=[],this.audiosToLoad=[],this.getFontUrl=function(t){if(t.localUrl){var e=void 0!==window.bannerConfig.fontLocalPath?window.bannerConfig.fontLocalPath:"fonts/";return window.bannerConfig.embedUrl&&(e=window.bannerConfig.embedUrl+e),"".concat(e).concat(t.localUrl)}switch(t.fontFamily=this.unquoted(t.fontFamily),t.fontType){case this.fontTypes.BANNERSNACK:return"//".concat(t.fontUrl);case this.fontTypes.CUSTOM:return t.fontUrl?"//".concat(t.fontFaceUrl?t.fontUrl:"".concat(t.fontUrl,".ttf")):"";case this.fontTypes.GOOGLE:var n="".concat(t.fontFamily.split(" ").join("+"),":").concat(parseInt(t.fontWeight));return"italic"===t.fontStyle&&(n+="i"),n;default:return""}},this.loadGFonts=function(){var t=this,e=this,n=this.gFontsToLoad.concat();if(n.length){var i=function(){for(var i=0;i-1&&t.gFontsToLoad.splice(r,1)}e.resolveIfAssetsLoaded()},r="https://fonts.googleapis.com/css?family=".concat(n.join("|"));this.bannerConfig.preview&&(r+="&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin,latin-ext,vietnamese");var o=window.document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("type","text/css"),o.setAttribute("href",r),o.addEventListener("load",i),o.addEventListener("error",i),window.document.head.appendChild(o)}},this.addFontToDOM=function(t){var e,n,i,r=this,o="ttf";t.fontType||(t.fontType=this.fontTypes.GOOGLE);var a=this.getFontUrl(t);if(a&&!window.assetsCache[a]){switch(t.fontType!==this.fontTypes.GOOGLE&&this.fontsToLoad.push(a),e=function(){r.fontsToLoad.pop(),r.resolveIfAssetsLoaded()},t.fontType){case this.fontTypes.GOOGLE:this.gFontsToLoad.push(a);break;case this.fontTypes.BANNERSNACK:case this.fontTypes.CUSTOM:if(this.relPreloadSupported()&&(o=a.substr(a.lastIndexOf(".")+1),(i=window.document.createElement("link")).setAttribute("rel","preload"),i.setAttribute("type","font/".concat(o)),i.setAttribute("as","font"),i.setAttribute("href",a),"file:"!==window.location.protocol&&i.setAttribute("crossorigin","anonymous"),i.addEventListener("load",e),i.addEventListener("error",e),window.document.head.appendChild(i)),t.fontFamily){var s="".concat("@font-face {\nfont-family: '").concat(t.fontPrefix||"").concat(t.fontFamily.replace(/'/g,"\\'"),"';\n")+"font-style: ".concat(t.fontStyle,";\n")+"font-weight: ".concat(t.fontWeight,";\n")+"src: url(".concat(a,");\n")+"}\n";(n=window.document.createElement("style")).appendChild(window.document.createTextNode(s)),this.relPreloadSupported()||(n.addEventListener("load",e),n.addEventListener("error",e)),window.document.head.appendChild(n)}}window.assetsCache[a]=!0}},this.unquoted=function(t){return"string"==typeof t?t.replace(/(^")|("$)/g,""):t},this.relPreloadSupported=function(){return function(t,e){if(!t||!t.supports)return!1;try{return t.supports(e)}catch(t){return!1}}(window.document.createElement("link").relList,"preload")},this.getSlideId=function(t){return t.displayData?t.displayData.properties.id:t.properties.id},this.getSlideLoaded=function(t){var e=this.getSlideId(t);return!!this.loadedSlides[e]&&this.loadedSlides[e]},this.setSlideLoaded=function(t){var e=this.getSlideId(t);this.loadedSlides[e]=!0},this.resolveIfAssetsLoaded=function(t){var e=0===this.imagesToLoad.length&&0===this.videosToLoad.length&&0===this.audiosToLoad.length;(e&&0===this.fontsToLoad.length&&0===this.gFontsToLoad.length||e&&!0===t)&&(window.loadAssetsTimer&&clearTimeout(window.loadAssetsTimer),this.currentSlide?this.setSlideLoaded(this.currentSlide):this.setAllSlidesLoaded(),"function"==typeof this.callback&&this.callback())},this.preloadMedia=function(t,e,n,i){var r=this,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"image";if(!t)throw new Error("No media url");var a=this,s=t;n&&(s+=n);var l=window.bannerConfig.pdf;if(!window.assetsCache[s]||l){var c=new Image;"video"===o?(c=window.document.createElement("video"),this.videosToLoad.push(c)):"audio"===o?(c=new Audio,this.audiosToLoad.push(c)):this.imagesToLoad.push(c);var u=function(){"video"===o?a.videosToLoad.pop():"audio"===o?a.audiosToLoad.pop():a.imagesToLoad.pop(),a.resolveIfAssetsLoaded()},d=function(){l&&!["audio","video"].includes(o)?a.preloadResizedImageForPdf(t,c,e,window.bannerConfig.hqImages,u):u()},p=["audio","video"].includes(o)?"loadedmetadata":"load";c.addEventListener(p,d),c.addEventListener("error",(function(){u(),c.removeEventListener(p,d),r.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="})),this.bannerConfig.preview&&i&&!e.resourceKey?this.setColorGroups(t,c,i):c.src=t,window.assetsCache[s]=c}},this.preloadElementAssets=function(t){var e;if("layer"===t.type)switch(t.layerType){case"shape":t.properties.backgroundColor&&"image"===t.properties.backgroundColor.type&&(e=b(t.properties.backgroundColor))&&this.preloadMedia(e,t.properties);break;case"image":if(this.bannerConfig.hqImages&&t.properties.hqUrl)e=t.properties.hqUrl;else if(t.properties.localUrl){var n=void 0!==window.bannerConfig.imgLocalPath?window.bannerConfig.imgLocalPath:"media/";e="".concat(n).concat(t.properties.localUrl),window.bannerConfig.embedUrl&&(e=this.bannerConfig.embedUrl+e)}else e=t.properties.url&&t.properties.url.includes("//")?t.properties.url:this.bannerConfig.photosUrl+t.properties.url;e&&this.preloadMedia(e,t.properties);break;case"svg":if(t.properties.localUrl){var i=void 0!==window.bannerConfig.imgLocalPath?window.bannerConfig.imgLocalPath:"media/";e="".concat(i).concat(t.properties.localUrl)}else e=t.properties.url?"".concat(window.bannerConfig.photosUrl).concat(t.properties.url):null;e&&this.preloadMedia(e,t.properties,t.properties.id,t.properties.colorGroups);break;case"text":var r=t.properties.config;if(r){var o=this;r.forEach((function(t){var e=t.children,n=t.style;n&&n.fontFamily&&(n.fontFamily||(n.fontFamily="Open Sans"),o.addFontToDOM(n)),e&&e.forEach((function(t){var e=t.style;e&&(e.fontFamily?(!e.fontType||e.fontType===o.fontTypes.GOOGLE||e.fontUrl||e.localUrl)&&o.addFontToDOM(e):e.fontWeight&&(e.fontFamily=n.fontFamily,e.fontType=n.fontType,e.fontPrefix=n.fontPrefix||null,o.addFontToDOM(e)))}))}))}else this.addFontToDOM(t.properties);break;case"button":t.properties.localUrl||this.addFontToDOM(t.properties.labelStyle);break;case"video":case"audio":if(t.properties.localUrl){var a=void 0!==window.bannerConfig.imgLocalPath?window.bannerConfig.imgLocalPath:"media/";e="".concat(a).concat(t.properties.localUrl),window.bannerConfig.embedUrl&&(e=window.bannerConfig.embedUrl+e)}else e=t.properties.url&&t.properties.url.includes("//")?t.properties.url:this.bannerConfig.photosUrl+t.properties.url;e&&this.preloadMedia(e,t.properties,t.properties.id,null,t.layerType)}else if("slide"===t.type)for(var s=0;s0&&c=0&&l>0&&c0&&void 0!==arguments[0]?arguments[0]:"clickTag",e=window.location.search.substring(1),n=e.split("".concat(t,"="));if(!n[1])return"";var i=n[1].replace(/&.+$/,"");try{i=decodeURIComponent(i)}catch(t){return""}var r=i.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,8}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g);return null==r?"":i},it=function(t){var e="2x",n=t.lastIndexOf(".");return t.lastIndexOf("/")>n?t+e:(-1===n&&(n=t.length),[t.slice(0,n),e,t.slice(n)].join(""))};function rt(t){return(rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ot(t,e){for(var n=0;n=0&&(s=null),window.bsClickFunc(s,t.target,o),!1}var l=-1!==a?o.substr(a):o;(o="function"==typeof window[l]?window[l]():window[l])||-1===a||(o=nt())}else if(n.hash||!window.bannerConfig.pdf){if(!o&&!1===window.goToURLWithoutBSURL)return!1;var c=nt()||window.clickTag;c&&(o=void 0===window.clickTag&&c!==o&&-1===c.indexOf(o)&&c.indexOf(-1===encodeURIComponent(o)&&o&&-1===o.indexOf(c))?c+encodeURIComponent(o):c)}o=v(o),window.bsOpenURL(o,t.target)}}))}},{key:"createElement",value:function(t,e,n,i,r){var o=r||window.document.createElement(t);return o.setAttribute("class",e),!1!==n&&(i||this.container)&&(i||this.container).appendChild(o),x(o),o}},{key:"setStyle",value:function(t,e,n){n||(n="");var i={x:"left",y:"top",labelOffsetX:"margin-left",labelOffsetY:"margin-top",lineHeight:"line-height"};for(var r in e=e.split(","))if(e.hasOwnProperty(r)){var o=i[e[r]]||e[r],a=this.properties[e[r]];if("width"===o||"height"===o){var s=this.properties.scale||1;t.style[o]=a*s+n}else t.style[o]="left"===o||"right"===o?Math.round(a)+n:a+n}return this}},{key:"getContainer",value:function(){return this.container}},{key:"show",value:function(){return this.container.style.display="",this}},{key:"hide",value:function(){return this.container.style.display="none",this}},{key:"hasClass",value:function(t,e){return!!t&&new RegExp("(\\s|^)".concat(e,"(\\s|$)")).test(t.className)}},{key:"removeClass",value:function(t,e){return this.hasClass(t,e)&&(t.className=t.className.replace(new RegExp("(\\s|^)".concat(e,"(\\s|$)"))," ").replace(/^\s+|\s+$/g,"")),this}},{key:"addClass",value:function(t,e){return t?(this.hasClass(t,e)||(t.className+=(t.className?" ":"")+e),this):this}},{key:"toggleClass",value:function(t,e){return t?(this.hasClass(t,e)?this.removeClass(t,e):this.addClass(t,e),this):this}},{key:"applyBackground",value:function(t,e,n){var i=y(e);for(var r in i)switch(r){default:t.style[r]=i[r];break;case"background-image":if("lgrad"===e.type||"rgrad"===e.type)for(var o=0;of||c&&!y&&b>f)&&(c=null),r&&l&&"none"!==l.type&&b+g>f&&(l.duration=parseFloat((f-b-l.delay).toFixed(1)))}"hover"!==l.startEnd?(Z.animate(a,l,"buildMid"),t.buildTimeouts.push(U((function(){(r&&p===l.duration||!r)&&(l.delay=0,l.duration=0,h(),Z.animate(a,l,"buildMid")),l.delay=d,l.duration=p}),1e3*(l.delay+l.duration)))):(t.isHover=!1,c&&!u&&(l.onAnimationEnd=null),U((function(){l.delay=0,a.addEventListener("mouseenter",e),a.addEventListener("animationiteration",i),a.addEventListener("mouseleave",n),U((function(){a.removeEventListener("mouseenter",e),a.removeEventListener("animationiteration",i),a.removeEventListener("mouseleave",n),(r&&p===l.duration||!r&&c&&!u)&&(l.delay=0,l.duration=0,h(),Z.animate(a,l,"buildMid")),l.delay=d,l.duration=p}),1e3*l.duration)}),1e3*l.delay))}},{key:"setBuildOutAnimation",value:function(){var t=this.getAnimationEl(),e=this.displayData.properties.buildOut,n=this;n.buildTimeouts.push(U((function(){n.trigger("buildOutStart")}),1e3*e.delay)),Z.animate(t,e,"buildOut"),n.buildTimeouts.push(U((function(){n.trigger("buildOutEnd"),t.style.display="none"}),1e3*(e.duration+e.delay)))}},{key:"playAnimation",value:function(t){var e=this,n=this.getAnimationEl(),i=this.displayData.properties,r=i.buildIn,o=i.buildMid,a=i.buildOut;if(t=t||0,!this.properties.showOnAllSlides){var s=this.slide.displayData.properties.duration,l=this.slide.displayData.properties.stopSlide,c="none"!==r.type?r.delay+r.duration:0,u=c+(o&&"none"!==o.type?o.delay+o.duration:0)+a.delay+a.duration;("instant"===a.type&&u>s||a&&!l&&c>s)&&(a=null)}r&&"none"!==r.type?(this.buildTimeouts.push(U((function(){e.trigger("buildInStart")}),1e3*r.delay)),"instant"===r.type&&r.delay>0&&(n.style.display="none",this.buildTimeouts.push(U((function(){n.style.display=""}),1e3*(r.delay+t)))),r.onAnimationEnd=function(){o&&"none"!==o.type?e.setBuildMidAnimation():a&&"none"!==a.type&&e.setBuildOutAnimation()},Z.animate(n,r,"buildIn",t),this.buildTimeouts.push(U((function(){e.trigger("buildInEnd")}),1e3*(r.duration+r.delay+t)))):o&&"none"!==o.type?e.setBuildMidAnimation():a&&"none"!==a.type&&e.setBuildOutAnimation()}},{key:"transform",value:function(t,e){e||(e=this.container),e.style["-webkit-transform"]=t,e.style["-o-transform"]=t,e.style["-ms-transform"]=t,e.style["-moz-transform"]=t,e.style.transform=t}},{key:"webkitTransform",value:function(t,e){e||(e=this.container),e.style["-webkit-transform"]=t}},{key:"createActionProperties",value:function(t){var e=t||this.properties&&this.properties.actions&&this.properties.actions[0];if(!e)return!1;var n="";return"gotoURL"===e.type&&(n=e.url),{event:e.event,slideOrUrl:"gotoSlide"===e.type?e.slide:n,type:e.type,target:e.target,useHandCursor:e.useHandCursor}}},{key:"applyExtraPropertiesForGradients",value:function(t){if(this.properties.backgroundColor&&"string"!=typeof this.properties.backgroundColor){var e=this.properties.backgroundColor.type,n=this.properties.border?this.properties.border.weight:0;if("lgrad"===e||"rgrad"===e){var i="-".concat(n,"px"),r="calc(100% + ".concat(2*n,"px)");g(t,{backgroundPosition:"".concat(i," ").concat(i),backgroundSize:"".concat(r," ").concat(r)})}}}},{key:"getCropBackgroundPosition",value:function(t){var e=t.cropData.x,n=t.cropData.y,i=t.width,r=t.height,o=t.border?t.border.weight:0,a=e-o,s=n-o;return"horizontal"!==t.flip&&"both"!==t.flip||(a=i-(e+t.cropData.width)-o),"vertical"!==t.flip&&"both"!==t.flip||(s=r-(n+t.cropData.height)-o),{x:a,y:s}}}])&&ot(n.prototype,i),r&&ot(n,r),e}(et);function ut(t){return(ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function dt(t,e){for(var n=0;n=e.length?this.banner.slides[0]:this.banner.slides[n+1]}},{key:"getPrevSlide",value:function(t){t||(t=this.banner.currentSlide);var e=this.banner.slides.indexOf(t);return e-1<0?this.banner.slides[this.banner.slides.length-1]:this.banner.slides[e-1]}},{key:"getFirstSlide",value:function(){return this.banner.slides[0]}},{key:"getLastSlide",value:function(){return this.banner.slides[this.banner.slides.length-1]}},{key:"playSlideAnimation",value:function(t){M(this._buildOutTimeout);var e,n,i=this.getAnimationEl(),r=this,o=this.displayData.properties,a=this.banner.lastSlide?this.banner.lastSlide.container:null,s=this.banner.slides.length,l=0;for(e=0;e1?(this.addClass(this.container,"buildin"),l=parseFloat(t.duration)||0,a&&(a.style.display=""),"hide"!==t.crosstype?Z.animate(i,t,"buildIn"):a&&(a.style.zIndex="2"),U((function(){r.removeClass(r.container,"buildin"),r.trigger("buildInEnd")}),1e3*t.duration)):this.trigger("buildInEnd");var c=!this.banner.properties.loopCount||this.banner.properties.loopCount===this.LOOP_COUNT_FOREVER,u=this.banner.loopsPlayed>=this.banner.properties.loopCount;if(!this.isLastSlide()||u||c||this.banner.loopsPlayed++,o.stopSlide||this.banner.showOnlyOneSlide||!c&&u&&this.isLastSlide()||(this._buildOutTimeout=U((function(){r.buildOut()}),1e3*(l+o.duration))),!this.banner.noAnimation)for(e=0;e1){if(i.addClass(i.container,"buildout"),"show"!==n.crosstype){var o=m(n);Z.animate(this.getAnimationEl(),o,"buildOut")}r=U((function(){i.banner.currentSlide!==i&&(i.container.style.display="none"),i.removeClass(i.container,"buildout"),i.trigger("buildOutEnd")}),1e3*n.duration)}else i.trigger("buildOutEnd");t||(t=this.getNextSlide()),t===this&&r&&(M(r),i.removeClass(i.container,"buildout"),i.trigger("buildOutEnd")),t.play(m(n))}},{key:"getBuildOutTime",value:function(){var t=this.displayData.properties.transition;return t&&"none"!==t.type?1e3*t.duration:0}},{key:"getSlideByHashOrId",value:function(t){if(!t)return!1;for(var e=this.banner.slides,n=0;n>16,t>>8&255,255&t]}(parseInt(i,16)),"rgba(".concat(r[0],", ").concat(r[1],", ").concat(r[2],", ").concat(n,")"));return"border-color: ".concat(u," !important;")}},{key:"init",value:function(t){var e=t.properties;"string"==typeof e.backgroundColor&&(e.backgroundColor={type:"solid",scolor:e.backgroundColor});var n=e.border||{};if(e["border-radius"]=e.border&&e.border.radius?e.border.radius:e.borderRadius,this.properties=e,this.createMainContainers("element","bs-btn btn".concat(e.id)),e.localUrl&&e.localUrl.includes(".svg")){this.textContainer=this.createElement("div","bs-btn-label image-crop",!0,this.displayContainer);var i=void 0!==bannerConfig.imgLocalPath?bannerConfig.imgLocalPath:"media/";this.textContainer.style.backgroundImage="url(".concat(i).concat(e.localUrl,")"),this.textContainer.style.height="100%",this.applyFilters(this.textContainer,null,null,e.labelShadow),n.weight&&this.applyExtraPropertiesForGradients(this.displayContainer)}else{if(this.textContainer=this.createElement("label","bs-btn-label",!0,this.displayContainer),e.html?this.textContainer.innerHTML=e.html:this.textContainer.textContent=e.buttonLabel,this.textContainer.dir=e.labelStyle.textDirection||"ltr",e.buttonLabel.split("\n").length>1&&(e.labelStyle["white-space"]="pre-wrap",e.labelStyle["overflow-wrap"]="break-word"),this.setStyle(this.textContainer,"line-height,labelOffsetX,labelOffsetY","px"),("string"!=typeof e.labelStyle.fontSize||"string"==typeof e.labelStyle.fontSize&&!e.labelStyle.fontSize.includes("px"))&&(e.labelStyle.fontSize="".concat(e.labelStyle.fontSize,"px")),("string"!=typeof e.labelStyle.letterSpacing||"string"==typeof e.labelStyle.letterSpacing&&!e.labelStyle.letterSpacing.includes("px"))&&(e.labelStyle.letterSpacing="".concat(e.labelStyle.letterSpacing,"px")),"string"==typeof e.labelStyle.fontFamily&&!e.labelStyle.fontFamily.includes('"')){var o='"'.concat(e.labelStyle.fontPrefix||"").concat(e.labelStyle.fontFamily,'"');e.labelStyle.fontFamily=o}g(this.textContainer,e.labelStyle),g(this.textContainer,h(e.labelShadow)),n.weight&&this.applyExtraPropertiesForGradients(this.displayContainer)}g(this.displayContainer,f(e.dropShadow)),this.displayContainer.style.border=this.getBorderString(),this.applyBackground(this.displayContainer,e.backgroundColor);var a=".bs-btn.btn".concat(e.id),s="bs-btn".concat(e.id),l=this.getBackgroundHoverCss(this.getHoverBackgroundColor()),c=this.getBorderColorHoverCss(n.color);!function(t,e){var n,i=window.document.getElementsByTagName("head")[0],o=window.document.getElementById("eautils-css");if(null==o&&((o=window.document.createElement("style")).type="text/css",o.id="eautils-css",i.appendChild(o)),void 0!==r.cssStyle[e]){r.rawCssStyle="",r.cssStyle[e].css=t;for(var a=0;athis.length)&&-1!==this.indexOf(t,e)}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),i=n.length>>>0;if(0===i)return!1;for(var r,o,a=0|e,s=Math.max(a>=0?a:i-Math.abs(a),0);s