1"use strict";var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},youtubeRegExp=/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,vimeoRegExp=/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/,defaultSetting={iframeId:"loadVideo__iframe",class:["loadvideo__iframe"],youtubeSettings:"mute=1&enablejsapi=1&autoplay=1&rel=0&loop=1&playsinline=1",vimeoSettings:"muted=1&autoplay=1&loop=1&autopause=0",aspectRatio:16/9,cover:!1,coverMultiplier:1,mute:1,heroVideo:!1},ytScript=!1,vimScript=!1,loadVideo=function(e){function i(e){e.data==YT.PlayerState.ENDED&&e.player.playVideo()}var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=void 0,o=void 0,a=void 0,r=void 0,s=!1,u=function(e){for(var t=document.createElement("iframe"),i=0;i<n.class.length;i++)t.classList.add(n.class[i]);return t.setAttribute("id",n.iframeId),t.setAttribute("src",e),s?t.setAttribute("allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"):t.setAttribute("allow","autoplay; fullscreen; picture-in-picture'"),t.setAttribute("allowfullscreen",""),t},l=function(e){var t=e.offsetHeight,i=e.offsetWidth,o=void 0;o=n.cover?t+t/100*n.coverMultiplier:t;var a=e.querySelectorAll("iframe")[0],r=o*n.aspectRatio;a.style.width=r+"px",a.style.height=o+"px",r<i&&(a.style.width=i+"px",a.style.height=i*(1/n.aspectRatio)+"px")},c=function(e){r.playVideo(),n.mute||(r.unMute(),r.setVolume(100)),o.classList.add("active")},d=function(e,t){r=new YT.Player(e,{videoId:t,events:{onReady:c,onStateChange:i}})};n=_extends({},defaultSetting,t);var m=(o="string"==typeof e?document.querySelector(e):e).getAttribute("data-video"),p=document.querySelector(".hero__mute");if(""!=m){var v=m.match(youtubeRegExp),y=m.match(vimeoRegExp);if(v&&11==v[2].length){s=!0;var f="https://www.youtube.com/embed/"+v[2]+"?"+n.youtubeSettings+"&playlist="+v[2];if(o.appendChild(u(f)),0==ytScript){(a=document.createElement("script")).addEventListener("load",function(){window.YT.ready(function(){d(n.iframeId)})}),a.src="https://www.youtube.com/player_api";var g=document.getElementsByTagName("script")[0];g.parentNode.insertBefore(a,g),ytScript=!0}else window.YT.ready(function(){d(n.iframeId,v[2])});n.heroVideo&&p&&p.addEventListener("click",function(){p.classList.contains("unmute")?(r.unMute(),r.setVolume(100),p.classList.remove("unmute")):(r.mute(),r.setVolume(0),p.classList.add("unmute"))})}else if(y&&y[5]){!0;var h="https://player.vimeo.com/video/"+y[5]+"?"+n.vimeoSettings;o.appendChild(u(h));var w={autoplay:!0,byline:!1,loop:!0,id:y[5],muted:!0,title:!1,controls:!1,background:!0};if(vimScript)r=new Vimeo.Player(n.iframeId),n.mute||(r.setMuted(!1),r.setVolume(1));else{(a=document.createElement("script")).addEventListener("load",function(){r=new Vimeo.Player(n.iframeId,w),n.mute||(r.setMuted(!1),r.setVolume(1))}),a.src="https://player.vimeo.com/api/player.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b),vimScript=!0}n.heroVideo&&p&&p.addEventListener("click",function(){p.classList.contains("unmute")?(r.setMuted(!1),r.setVolume(1),p.classList.remove("unmute")):(r.setMuted(!0),r.setVolume(0),p.classList.add("unmute"))}),o.classList.add("active")}else console.log("Url not supported or not found");n.cover&&(l(o),window.addEventListener("resize",function(){l(o)}))}};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.