",{class:s.videoWrapper}),i=e.children("."+s.playButton);let l,r;o.append(n),e.append(o),-1!==t.indexOf("vimeo.com")?(l="vimeo",r=elementorFrontend.utils.vimeo):t.match(/^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com)/)&&(l="youtube",r=elementorFrontend.utils.youtube);const a=r.getVideoIDFromURL(t);r.onApiReady((e=>{"youtube"===l?this.prepareYTVideo(e,a,o,n,i):"vimeo"===l&&this.prepareVimeoVideo(e,t,o,n,i)})),i.addClass(s.playing).removeClass(s.hidden)},prepareYTVideo(e,t,s,o,n){const i=this.getSettings("classes"),l=jQuery("
");let r=e.PlayerState.PLAYING;o.append(l),window.chrome&&(r=e.PlayerState.UNSTARTED),s.addClass("elementor-loading "+i.invisible),this.player=new e.Player(l[0],{videoId:t,events:{onReady:()=>{n.addClass(i.hidden),s.removeClass(i.invisible),this.player.playVideo()},onStateChange:e=>{e.data===r&&s.removeClass("elementor-loading "+i.invisible)}},playerVars:{controls:0,rel:0}})},prepareVimeoVideo(e,t,s,o,n){const i=this.getSettings("classes"),l={url:t,autoplay:!0,transparent:!1,playsinline:!1};this.player=new e.Player(o,l),this.player.ready().then((()=>{n.addClass(i.hidden),s.removeClass(i.invisible)}))},setEntranceAnimation(e){e=e||elementorFrontend.getCurrentDeviceSetting(this.getSettings("modalOptions"),"entranceAnimation");const t=this.getModal().getElements("message");this.oldAnimation&&t.removeClass(this.oldAnimation),this.oldAnimation=e,e&&t.addClass("animated "+e)},openSlideshow(e,t){const s=jQuery(this.getSettings("selectors.links")).filter(((t,s)=>{const o=jQuery(s);return e===s.dataset.elementorLightboxSlideshow&&!o.parent(".swiper-slide-duplicate").length&&!o.parents(".slick-cloned").length})),o=[];let n=0;s.each((function(){const e=this.dataset.elementorLightboxVideo;let i=this.dataset.elementorLightboxIndex;void 0===i&&(i=s.index(this)),(t===this.href||e&&t===e)&&(n=i);const l={image:this.href,index:i,title:this.dataset.elementorLightboxTitle,description:this.dataset.elementorLightboxDescription,hash:this.getAttribute("data-e-action-hash")};e&&(l.video=e),o.push(l)})),o.sort(((e,t)=>e.index-t.index)),this.showModal({type:"slideshow",id:e,modalOptions:{id:"elementor-lightbox-slideshow-"+e},slideshow:{slides:o,swiper:{initialSlide:+n}}})},onSlideChange(){this.getSlide("prev").add(this.getSlide("next")).add(this.getSlide("active")).find("."+this.getSettings("classes.videoWrapper")).remove(),this.playSlideVideo(),this.updateFooterText()}})},3251:e=>{"use strict";!function(){var t="undefined"!=typeof window&&void 0!==window.document?window.document:{},s=e.exports,o=function(){for(var e,s=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],o=0,n=s.length,i={};oBoolean(t[o.fullscreenElement])},element:{enumerable:!0,get:()=>t[o.fullscreenElement]},isEnabled:{enumerable:!0,get:()=>Boolean(t[o.fullscreenEnabled])}}),s?e.exports=i:window.screenfull=i):s?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}}()},3231:(e,t,s)=>{var o=s(4040);e.exports=function _defineProperty(e,t,s){return(t=o(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e},e.exports.__esModule=!0,e.exports.default=e.exports},6027:(e,t,s)=>{var o=s(7501).default;e.exports=function _toPrimitive(e,t){if("object"!==o(e)||null===e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var n=s.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4040:(e,t,s)=>{var o=s(7501).default,n=s(6027);e.exports=function _toPropertyKey(e){var t=n(e,"string");return"symbol"===o(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},7501:e=>{function _typeof(t){return e.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,_typeof(t)}e.exports=_typeof,e.exports.__esModule=!0,e.exports.default=e.exports}}]);