PageSourceSearch

https://cdn.thefa.com/thefawebsite/dist/engmen.js

js thefa.com collected 2026-09-24 08:24:32 UTC 133,759 bytes, 2 lines download raw bytes

1webpackJsonp([2],{100:function(e,t,n){(function(i){function r(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var i="color: "+this.color;e.splice(1,0,i,"color: inherit");var r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))}),e.splice(o,0,i)}}function a(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function u(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==i&&"env"in i&&(e=n.i({NODE_ENV:"production"}).DEBUG),e}t=e.exports=n(101),t.log=a,t.formatArgs=o,t.save=s,t.load=u,t.useColors=r,t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(u())}).call(t,n(47))},101:function(e,t,n){function i(e){var n,i=0;for(n in e)i=(i<<5)-i+e.charCodeAt(n),i|=0;return t.colors[Math.abs(i)%t.colors.length]}function r(e){function n(){if(n.enabled){var e=n,i=+new Date,r=i-(l||i);e.diff=r,e.prev=l,e.curr=i,l=i;for(var o=Array(arguments.length),a=0;a<o.length;a++)o[a]=arguments[a];o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var s=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(n,i){if("%%"===n)return n;s++;var r=t.formatters[i];if("function"==typeof r){var a=o[s];n=r.call(e,a),o.splice(s,1),s--}return n}),t.formatArgs.call(e,o);(n.log||t.log||void 0).apply(e,o)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=i(e),"function"==typeof t.init&&t.init(n),n}function o(e){t.save(e),t.names=[],t.skips=[];for(var n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length,r=0;r<i;r++)n[r]&&(e=n[r].replace(/\*/g,".*?"),"-"===e[0]?t.skips.push(RegExp("^"+e.substr(1)+"$")):t.names.push(RegExp("^"+e+"$")))}function a(){t.enable("")}function s(e){var n,i;for(n=0,i=t.skips.length;n<i;n++)if(t.skips[n].test(e))return!1;for(n=0,i=t.names.length;n<i;n++)if(t.names[n].test(e))return!0;return!1}function u(e){return e instanceof Error?e.stack||e.message:e}t=e.exports=r.debug=r.default=r,t.coerce=u,t.disable=a,t.enable=o,t.enabled=s,t.humanize=n(103),t.names=[],t.skips=[],t.formatters={};var l},102:function(e,t){function n(e,t){for(var n in t)e.setAttribute(n,t[n])}function i(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(Error("Failed to load "+this.src),e)}}function r(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}e.exports=function(e,t,o){var a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("script");"function"==typeof t&&(o=t,t={}),t=t||{},o=o||function(){},s.type=t.type||"text/javascript",s.charset=t.charset||"utf8",s.async=!("async"in t)||!!t.async,s.src=e,t.attrs&&n(s,t.attrs),t.text&&(s.text=""+t.text),("onload"in s?i:r)(s,o),s.onload||i(s,o),a.appendChild(s)}},103:function(e,t){function n(e){if(e+="",!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*c;case"days":case"day":case"d":return n*l;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function i(e){return e>=l?Math.round(e/l)+"d":e>=u?Math.round(e/u)+"h":e>=s?Math.round(e/s)+"m":e>=a?Math.round(e/a)+"s":e+"ms"}function r(e){return o(e,l,"day")||o(e,u,"hour")||o(e,s,"minute")||o(e,a,"second")||e+" ms"}function o(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var a=1e3,s=60*a,u=60*s,l=24*u,c=365.25*l;e.exports=function(e,t){t=t||{};var o=typeof e;if("string"===o&&e.length>0)return n(e);if("number"===o&&!1===isNaN(e))return t.long?r(e):i(e);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},106:function(e,t,n){"use strict";var i;i=function(){var e={},t={};return e.on=function(e,n){var i={name:e,handler:n};return t[e]=t[e]||[],t[e].unshift(i),i},e.off=function(e){var n=t[e.name].indexOf(e);-1!==n&&t[e.name].splice(n,1)},e.trigger=function(e,n){var i,r=t[e];if(r)for(i=r.length;i--;)r[i].handler(n)},e},e.exports=i},109:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var i=n(111),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default={pauseVideo:{acceptableStates:[r.default.ENDED,r.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[r.default.ENDED,r.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[r.default.ENDED,r.default.PLAYING,r.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},e.exports=t.default},110:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(100),o=i(r),a=n(113),s=i(a),u=n(112),l=i(u),c=n(109),f=i(c),d=(0,o.default)("youtube-player"),h={};h.proxyEvents=function(e){var t={},n=!0,i=!1,r=void 0;try{for(var o,a=l.default[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;!function(n){var i="on"+n.slice(0,1).toUpperCase()+n.slice(1);t[i]=function(t){d('event "%s"',i,t),e.trigger(n,t)}}(s)}}catch(e){i=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(i)throw r}}return t},h.promisifyPlayer=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={},i=!0,r=!1,o=void 0;try{for(var a,u=s.default[Symbol.iterator]();!(i=(a=u.next()).done);i=!0){var l=a.value;!function(i){t&&f.default[i]?n[i]=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.then(function(e){var t=f.default[i],r=e.getPlayerState(),o=e[i].apply(e,n);return t.stateChangeRequired||Array.isArray(t.acceptableStates)&&-1===t.acceptableStates.indexOf(r)?new Promise(function(n){var i=function i(){var r=e.getPlayerState(),o=void 0;"number"==typeof t.timeout&&(o=setTimeout(function(){e.removeEventListener("onStateChange",i),n()},t.timeout)),Array.isArray(t.acceptableStates)&&-1!==t.acceptableStates.indexOf(r)&&(e.removeEventListener("onStateChange",i),clearTimeout(o),n())};e.addEventListener("onStateChange",i)}).then(function(){return o}):o})}:n[i]=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.then(function(e){return e[i].apply(e,n)})}}(l)}}catch(e){r=!0,o=e}finally{try{!i&&u.return&&u.return()}finally{if(r)throw o}}return n},t.default=h,e.exports=t.default},111:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},e.exports=t.default},112:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange"],e.exports=t.default},113:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","
1setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe"],e.exports=t.default},114:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(102),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=function(){var e=new Promise(function(e){if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function)return void e(window.YT);var t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){t&&t(),e(window.YT)}}),t="http:"===window.location.protocol?"http:":"https:";return(0,r.default)(t+"//www.youtube.com/iframe_api"),e},e.exports=t.default},145:function(e,t){},162:function(e,t,n){"use strict";function i(){var e=document,t=e.body;return t||(t=e.createElement("body"),t.fake=!0),t}t.a=i},163:function(e,t,n){"use strict";function i(e,t){e.fake&&(e.remove(),r.a.style.overflow=t,r.a.offsetHeight)}var r=n(485);t.a=i},164:function(e,t,n){"use strict";function i(e){var t="";return e.fake&&(t=r.a.style.overflow,e.style.background="",e.style.overflow=r.a.style.overflow="hidden",r.a.appendChild(e)),t}var r=n(485);t.a=i},18:function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=function(){function e(t){o(this,e),this.mount=t.mount,this.root=t.root,this.getProps(),this.getRefs()}return s(e,[{key:"componentDidMount",value:function(){}},{key:"getProps",value:function(){var e=this;this.props=Object.keys(this.root.dataset).reduce(function(t,n){return"component"!==n&&"ref"!==n?a({},t,r({},n,e.root.dataset[n])):t},{})}},{key:"getRefs",value:function(){this.refs=[].concat(i(this.root.children)).reduce(function(e,t){return t.dataset&&t.dataset.ref?a({},e,r({},t.dataset.ref,t)):e},{}),this.componentDidMount()}}]),e}();t.default=u},255:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t,n,i){return(e/=i/2)<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)},r="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},o=function(){function e(){return window.scrollY||window.pageYOffset}function t(e){return e.getBoundingClientRect().top+u}function n(e){y||(y=e),m=e-y,v=f(m,u,h,p),window.scrollTo(0,v),m<p?window.requestAnimationFrame(n):o()}function o(){window.scrollTo(0,u+h),s&&d&&(s.setAttribute("tabindex","-1"),s.focus()),"function"==typeof g&&g(),y=!1}function a(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(p=a.duration||1e3,c=a.offset||0,g=a.callback,f=a.easing||i,d=a.a11y||!1,u=e(),void 0===o?"undefined":r(o)){case"number":s=void 0,d=!1,l=u+o;break;case"object":s=o,l=t(s);break;case"string":s=document.querySelector(o),l=t(s)}switch(h=l-u+c,r(a.duration)){case"number":p=a.duration;break;case"function":p=a.duration(h)}window.requestAnimationFrame(n)}var s=void 0,u=void 0,l=void 0,c=void 0,f=void 0,d=void 0,h=void 0,p=void 0,y=void 0,m=void 0,v=void 0,g=void 0;return a}();t.default=o},318:function(e,t,n){"use strict";var i=n(844);n.d(t,"b",function(){return i.a}),n.d(t,"a",function(){return r});var r=i.a?function(e,t){return e.classList.contains(t)}:function(e,t){return e.className.indexOf(t)>=0}},319:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=window,r=i.requestAnimationFrame||i.webkitRequestAnimationFrame||i.mozRequestAnimationFrame||i.msRequestAnimationFrame||function(e){return setTimeout(e,16)}},47:function(e,t){function n(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(e){if(f===clearTimeout)return clearTimeout(e);if((f===i||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){y&&h&&(y=!1,h.length?p=h.concat(p):m=-1,p.length&&s())}function s(){if(!y){var e=r(a);y=!0;for(var t=p.length;t;){for(h=p,p=[];++m<t;)h&&h[m].run();m=-1,t=p.length}h=null,y=!1,o(e)}}function u(e,t){this.fun=e,this.array=t}function l(){}var c,f,d=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{f="function"==typeof clearTimeout?clearTimeout:i}catch(e){f=i}}();var h,p=[],y=!1,m=-1;d.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];p.push(new u(e,t)),1!==p.length||y||r(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.prependListener=l,d.prependOnceListener=l,d.listeners=function(e){return[]},d.binding=function(e){throw Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw Error("process.chdir is not supported")},d.umask=function(){return 0}},485:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=document.documentElement},486:function(e,t,n){"use strict";function i(e){return void 0!==e.item}t.a=i},487:function(e,t,n){"use strict";n.d(t,"a",function(){return o}
1);var i=!1;try{var r=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("test",null,r)}catch(e){}var o=!!i&&{passive:!0}},488:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(835),r=(n.n(i),n(843)),o=(n.n(r),n(319)),a=n(840),s=n(847),u=n(842),l=n(866),c=n(852),f=n(841),d=n(860),h=n(859),p=n(845),y=n(836),m=n(862),v=n(850),g=n(868),b=n(853),w=n(848),E=n(318),_=n(837),O=n(863),k=n(855),A=n(849),x=n(865),C=n(861),S=n(839),T=n(856),L=n(867),M=n(857),P=n(869),j=n(854),N=n(851),R=n(838),D=n(864),q=n(846),V=n(858);n.d(t,"tns",function(){return B});var B=function(e){function t(e){for(var n in e)tn||("slideBy"===n&&(e[n]="page"),"edgePadding"===n&&(e[n]=!1),"autoHeight"===n&&(e[n]=!1)),"responsive"===n&&t(e[n])}function i(e){e&&(In=Hn=zn=Wn=Rn=Un=Xn=Jn=!1)}function r(){for(var e=tn?ui-Zn:ui;e<0;)e+=bn;return e%bn+1}function I(e){return e=e?Math.max(0,Math.min(Vn?bn-1:bn-Pn,e)):0,tn?e+Zn:e}function F(e){for(null==e&&(e=ui),tn&&(e-=Zn);e<0;)e+=bn;return Math.floor(e%bn)}function H(){var e,t=F();return e=Ni?t:Cn||xn?Math.ceil((t+1)*Zi/bn-1):Math.floor(t/Pn),!Vn&&tn&&ui===fi&&(e=Zi-1),e}function z(){if(xn||Cn&&!Nn)return bn-1;var t=Cn?"fixedWidth":"items",n=[];if((Cn||e[t]<bn)&&n.push(e[t]),Zt)for(var i in Zt){var r=Zt[i][t];r&&(Cn||r<bn)&&n.push(r)}return n.length||n.push(0),Math.ceil(Cn?Nn/Math.min.apply(null,n):Math.max.apply(null,n))}function W(){return Nt.innerWidth||jt.documentElement.clientWidth||jt.body.clientWidth}function U(e){return"top"===e?"afterbegin":"beforeend"}function Y(e){var t,n,i=jt.createElement("div");return e.appendChild(i),t=i.getBoundingClientRect(),n=t.right-t.left,i.remove(),n||Y(e.parentNode)}function G(){var e=Sn?2*Sn-Tn:0;return Y(mn)-e}function X(t){if(e[t])return!0;if(Zt)for(var n in Zt)if(Zt[n][t])return!0;return!1}function J(t,n){if(null==n&&(n=wn),"items"===t&&Cn)return Math.floor((Ln+Tn)/(Cn+Tn))||1;var i=e[t];if(Zt)for(var r in Zt)n>=parseInt(r)&&t in Zt[r]&&(i=Zt[r][t]);return"slideBy"===t&&"page"===i&&(i=J("items")),tn||"slideBy"!==t&&"items"!==t||(i=Math.floor(i)),i}function Q(e){return It?It+"("+100*e+"% / "+ei+")":100*e/ei+"%"}function $(e,t,n,i,r){var o="";if(void 0!==e){var a=e;t&&(a-=t),o=dn?"margin: 0 "+a+"px 0 "+e+"px;":"margin: "+e+"px 0 "+a+"px 0;"}else if(t&&!n){var s="-"+t+"px",u=dn?s+" 0 0":"0 "+s+" 0";o="margin: 0 "+u+";"}return!tn&&r&&Ut&&i&&(o+=ne(i)),o}function K(e,t,n){return e?(e+t)*ei+"px":It?It+"("+100*ei+"% / "+n+")":100*ei/n+"%"}function Z(e,t,n){var i;if(e)i=e+t+"px";else{tn||(n=Math.floor(n));var r=tn?ei:n;i=It?It+"(100% / "+r+")":100/r+"%"}return i="width:"+i,"inner"!==en?i+";":i+" !important;"}function ee(e){var t="";if(!1!==e){t=(dn?"padding-":"margin-")+(dn?"right":"bottom")+": "+e+"px;"}return t}function te(e,t){var n=e.substring(0,e.length-t).toLowerCase();return n&&(n="-"+n+"-"),n}function ne(e){return te(Ut,18)+"transition-duration:"+e/1e3+"s;"}function ie(e){return te(Gt,17)+"animation-duration:"+e/1e3+"s;"}function re(){if(X("autoHeight")||xn||!dn){var e=yn.querySelectorAll("img");n.i(w.a)(e,function(e){var t=e.src;t&&t.indexOf("data:image")<0?(n.i(R.a)(e,Ii),e.src="",e.src=t,n.i(_.a)(e,"loading")):$n||xe(e)}),n.i(o.a)(function(){Me(n.i(S.a)(e),function(){kn=!0})}),!xn&&dn&&(e=Te(ui,Math.min(ui+Pn-1,ei-1))),$n?oe():n.i(o.a)(function(){Me(n.i(S.a)(e),oe)})}else tn&&Qe(),se(),ue()}function oe(){if(xn){var e=Vn?ui:bn-1;!function t(){gn[e-1].getBoundingClientRect().right.toFixed(2)===gn[e].getBoundingClientRect().left.toFixed(2)?ae():setTimeout(function(){t()},16)}()}else ae()}function ae(){dn&&!xn||(De(),xn?(ni=Xe(),_i&&(Oi=de()),fi=si(),i(wi||Oi)):Tt()),tn&&Qe(),se(),ue()}function se(){if(qe(),hn.insertAdjacentHTML("afterbegin",'<div class="tns-liveregion tns-visually-hidden" aria-live="polite" aria-atomic="true">slide <span class="current">'+Ee()+"</span>  of "+bn+"</div>"),An=hn.querySelector(".tns-liveregion .current"),Ri){var t=Un?"stop":"start";hr?n.i(x.a)(hr,{"data-action":t}):e.autoplayButtonOutput&&(hn.insertAdjacentHTML(U(e.autoplayPosition),'<button data-action="'+t+'">'+yr[0]+t+yr[1]+Gn[0]+"</button>"),hr=hn.querySelector("[data-action]")),hr&&n.i(R.a)(hr,{click:dt}),Un&&(ut(),Xn&&n.i(R.a)(yn,Ci),Jn&&n.i(R.a)(yn,Si))}if(ji){if($i)n.i(x.a)($i,{"aria-label":"Carousel Pagination"}),Qi=$i.children,n.i(w.a)(Qi,function(e,t){n.i(x.a)(e,{"data-nav":t,tabindex:"-1","aria-label":or+(t+1),"aria-controls":bi})});
1else{for(var i="",r=Ni?"":'style="display:none"',o=0;o<bn;o++)i+='<button data-nav="'+o+'" tabindex="-1" aria-controls="'+bi+'" '+r+' aria-label="'+or+(o+1)+'"></button>';i='<div class="tns-nav" aria-label="Carousel Pagination">'+i+"</div>",hn.insertAdjacentHTML(U(e.navPosition),i),$i=hn.querySelector(".tns-nav"),Qi=$i.children}if(Mt(),Ut){var a=Ut.substring(0,Ut.length-18).toLowerCase(),s="transition: all "+Dn/1e3+"s";a&&(s="-"+a+"-"+s),n.i(y.a)(Qn,"[aria-controls^="+bi+"-item]",s,n.i(v.a)(Qn))}n.i(x.a)(Qi[nr],{"aria-label":or+(nr+1)+ar}),n.i(C.a)(Qi[nr],"tabindex"),n.i(_.a)(Qi[nr],rr),n.i(R.a)($i,xi)}Pi&&(Wi||Yi&&Gi||(hn.insertAdjacentHTML(U(e.controlsPosition),'<div class="tns-controls" aria-label="Carousel Navigation" tabindex="0"><button data-controls="prev" tabindex="-1" aria-controls="'+bi+'">'+Fn[0]+'</button><button data-controls="next" tabindex="-1" aria-controls="'+bi+'">'+Fn[1]+"</button></div>"),Wi=hn.querySelector(".tns-controls")),Yi&&Gi||(Yi=Wi.children[0],Gi=Wi.children[1]),e.controlsContainer&&n.i(x.a)(Wi,{"aria-label":"Carousel Navigation",tabindex:"0"}),(e.controlsContainer||e.prevButton&&e.nextButton)&&n.i(x.a)([Yi,Gi],{"aria-controls":bi,tabindex:"-1"}),(e.controlsContainer||e.prevButton&&e.nextButton)&&(n.i(x.a)(Yi,{"data-controls":"prev"}),n.i(x.a)(Gi,{"data-controls":"next"})),Hi=Fe(Yi),zi=Fe(Gi),We(),Wi?n.i(R.a)(Wi,Ai):(n.i(R.a)(Yi,Ai),n.i(R.a)(Gi,Ai))),pe()}function ue(){if(tn&&Jt){var t={};t[Jt]=tt,n.i(R.a)(yn,t)}zn&&n.i(R.a)(yn,Li,e.preventScrollOnTouch),Wn&&n.i(R.a)(yn,Mi),Rn&&n.i(R.a)(jt,Ti),"inner"===en?vi.on("outerResized",function(){fe(),vi.emit("innerLoaded",Pt())}):(Zt||Cn||xn||Bn||!dn)&&n.i(R.a)(Nt,{resize:ce}),Bn&&("outer"===en?vi.on("innerLoaded",Le):wi||Le()),Oe(),wi?ge():Oi&&me(),vi.on("indexChanged",Pe),"inner"===en&&vi.emit("innerLoaded",Pt()),"function"==typeof mi&&mi(Pt()),En=!0}function le(){if(Qn.disabled=!0,Qn.ownerNode&&Qn.ownerNode.remove(),n.i(D.a)(Nt,{resize:ce}),Rn&&n.i(D.a)(jt,Ti),Wi&&n.i(D.a)(Wi,Ai),$i&&n.i(D.a)($i,xi),n.i(D.a)(yn,Ci),n.i(D.a)(yn,Si),hr&&n.i(D.a)(hr,{click:dt}),Un&&clearInterval(sr),tn&&Jt){var t={};t[Jt]=tt,n.i(D.a)(yn,t)}zn&&n.i(D.a)(yn,Li),Wn&&n.i(D.a)(yn,Mi);var i=[vn,Ui,Xi,Ji,Ki,pr];$t.forEach(function(t,n){var r="container"===t?hn:e[t];if("object"==typeof r){var o=!!r.previousElementSibling&&r.previousElementSibling,a=r.parentNode;r.outerHTML=i[n],e[t]=o?o.nextElementSibling:a.firstElementChild}}),$t=an=sn=un=ln=dn=hn=pn=yn=mn=vn=gn=bn=fn=wn=xn=Cn=Sn=Tn=Ln=Pn=jn=Nn=Rn=Dn=qn=Vn=Bn=Qn=$n=_n=Kn=Zn=ei=ti=ni=ii=ri=oi=ai=si=ui=li=ci=fi=On=hi=pi=yi=mi=vi=gi=bi=wi=Ei=_i=Oi=ki=Ai=xi=Ci=Si=Ti=Li=Mi=Pi=ji=Ni=Ri=Di=qi=Vi=Bi=Ii=kn=In=Fn=Wi=Ui=Yi=Gi=Hi=zi=Hn=$i=Ki=Qi=Zi=er=tr=nr=ir=rr=or=ar=Un=Yn=dr=Gn=Xn=hr=pr=Jn=yr=sr=ur=lr=cr=fr=wr=Er=mr=vr=gr=_r=br=Or=zn=Wn=null;for(var r in this)"rebuild"!==r&&(this[r]=null);En=!1}function ce(e){n.i(o.a)(function(){fe(wt(e))})}function fe(t){if(En){"outer"===en&&vi.emit("outerResized",Pt(t)),wn=W();var r,o=fn,a=!1;Zt&&(he(),(r=o!==fn)&&vi.emit("newBreakpointStart",Pt(t)));var s,u,l=Pn,c=wi,f=Oi,d=Rn,h=In,p=Hn,g=zn,b=Wn,w=Un,E=Xn,_=Jn,O=ui;if(r){var k=Cn,A=Bn,x=Fn,C=Mn,S=Gn;if(!Ht)var M=Tn,P=Sn}if(Rn=J("arrowKeys"),In=J("controls"),Hn=J("nav"),zn=J("touch"),Mn=J("center"),Wn=J("mouseDrag"),Un=J("autoplay"),Xn=J("autoplayHoverPause"),Jn=J("autoplayResetOnVisibility"),r&&(wi=J("disable"),Cn=J("fixedWidth"),Dn=J("speed"),Bn=J("autoHeight"),Fn=J("controlsText"),Gn=J("autoplayText"),Yn=J("autoplayTimeout"),Ht||(Sn=J("edgePadding"),Tn=J("gutter"))),i(wi),Ln=G(),dn&&!xn||wi||(De(),dn||(Tt(),a=!0)),(Cn||xn)&&(ni=Xe(),fi=si()),(r||Cn)&&(Pn=J("items"),jn=J("slideBy"),(u=Pn!==l)&&(Cn||xn||(fi=si()),kr())),r&&wi!==c&&(wi?ge():be()),_i&&(r||Cn||xn)&&(Oi=de())!==f&&(Oi?($e(Je(I(0))),me()):(ve(),a=!0)),i(wi||Oi),Un||(Xn=Jn=!1),Rn!==d&&(Rn?n.i(R.a)(jt,Ti):n.i(D.a)(jt,Ti)),In!==h&&(In?Wi?n.i(L.a)(Wi):(Yi&&n.i(L.a)(Yi),Gi&&n.i(L.a)(Gi)):Wi?n.i(T.a)(Wi):(Yi&&n.i(T.a)(Yi),Gi&&n.i(T.a)(Gi))),Hn!==p&&(Hn?n.i(L.a)($i):n.i(T.a)($i)),zn!==g&&(zn?n.i(R.a)(yn,Li,e.preventScrollOnTouch):n.i(D.a)(yn,Li)),Wn!==b&&(Wn?n.i(R.a)(yn,Mi):n.i(D.a)(yn,Mi)),Un!==w&&(Un?(hr&&n.i(L.a)(hr),ur||cr||ut()):(hr&&n.i(T.a)(hr),ur&&lt())),Xn!==E&&(Xn?n.i(R.a)(yn,Ci):n.i(D.a)(yn,Ci)),Jn!==_&&(Jn?n.i(R.a)(jt,Si):n.i(D.a)(jt,Si)),r){if(Cn===k&&Mn===C||(a=!0),Bn!==A&&(Bn||(pn.style.height="")),In&&Fn!==x&&(Yi.innerHTML=Fn[0],Gi.innerHTML=Fn[1]),hr&&Gn!==S){var j=Un?1:0,N=hr.innerHTML,q=N.length-S[j].length;N.substring(q)===S[j]&&(hr.innerHTML=N.substring(0,q)+Gn[j])}}else Mn&&(Cn||xn)&&(a=!0);if((u||Cn&&!xn)&&(Zi=Lt(),Mt()),s=ui!==O,s?(vi.emit("indexChanged",Pt()),a=!0):u?s||Pe():(Cn||xn)&&(Oe(),qe(),we()),u&&!tn&&Ve(),!wi&&!Oi){if(r&&!Ht&&(Bn===autoheightTem&&Dn===speedTem||je(),Sn===P&&Tn===M||(pn.style.cssText=$(Sn,Tn,Cn,Dn,Bn)),dn)){tn&&(yn.style.width=K(Cn,Tn,Pn));var V=Z(Cn,Tn,Pn)+ee(Tn);n.i(m.a)(Qn,n.i(v.a)(Qn)-1),n.i(y.a)(Qn,"#"+bi+" > .tns-item",V,n.i(v.a)(Qn))}
1Bn&&Le(),a&&(Qe(),li=ui)}r&&vi.emit("newBreakpointEnd",Pt(t))}}function de(){if(!Cn&&!xn){return bn<=(Mn?Pn-(Pn-1)/2:Pn)}var e=Cn?(Cn+Tn)*bn:_n[bn],t=Sn?Ln+2*Sn:Ln+Tn;return Mn&&(t-=Cn?(Ln-Cn)/2:(Ln-(_n[ui+1]-_n[ui]-Tn))/2),e<=t}function he(){fn=0;for(var e in Zt)e=parseInt(e),wn>=e&&(fn=e)}function pe(){!Un&&hr&&n.i(T.a)(hr),!Hn&&$i&&n.i(T.a)($i),In||(Wi?n.i(T.a)(Wi):(Yi&&n.i(T.a)(Yi),Gi&&n.i(T.a)(Gi)))}function ye(){Un&&hr&&n.i(L.a)(hr),Hn&&$i&&n.i(L.a)($i),In&&(Wi?n.i(L.a)(Wi):(Yi&&n.i(L.a)(Yi),Gi&&n.i(L.a)(Gi)))}function me(){if(!ki){if(Sn&&(pn.style.margin="0px"),Zn)for(var e="tns-transparent",t=Zn;t--;)tn&&n.i(_.a)(gn[t],e),n.i(_.a)(gn[ei-t-1],e);pe(),ki=!0}}function ve(){if(ki){if(Sn&&Ht&&(pn.style.margin=""),Zn)for(var e="tns-transparent",t=Zn;t--;)tn&&n.i(O.a)(gn[t],e),n.i(O.a)(gn[ei-t-1],e);ye(),ki=!1}}function ge(){if(!Ei){if(Qn.disabled=!0,yn.className=yn.className.replace(gi.substring(1),""),n.i(C.a)(yn,["style"]),Vn)for(var e=Zn;e--;)tn&&n.i(T.a)(gn[e]),n.i(T.a)(gn[ei-e-1]);if(dn&&tn||n.i(C.a)(pn,["style"]),!tn)for(var t=ui,i=ui+bn;t<i;t++){var r=gn[t];n.i(C.a)(r,["style"]),n.i(O.a)(r,an),n.i(O.a)(r,ln)}pe(),Ei=!0}}function be(){if(Ei){if(Qn.disabled=!1,yn.className+=gi,Qe(),Vn)for(var e=Zn;e--;)tn&&n.i(L.a)(gn[e]),n.i(L.a)(gn[ei-e-1]);if(!tn)for(var t=ui,i=ui+bn;t<i;t++){var r=gn[t],o=t<ui+Pn?an:ln;r.style.left=100*(t-ui)/Pn+"%",n.i(_.a)(r,o)}ye(),Ei=!1}}function we(){var e=Ee();An.innerHTML!==e&&(An.innerHTML=e)}function Ee(){var e=_e(),t=e[0]+1,n=e[1]+1;return t===n?t+"":t+" to "+n}function _e(e){null==e&&(e=Je());var t,n,i,r=ui;if(Mn||Sn?(xn||Cn)&&(n=-(parseFloat(e)+Sn),i=n+Ln+2*Sn):xn&&(n=_n[ui],i=n+Ln),xn)_n.forEach(function(e,o){o<ei&&((Mn||Sn)&&e<=n+.5&&(r=o),i-e>=.5&&(t=o))});else{if(Cn){var o=Cn+Tn;Mn||Sn?(r=Math.floor(n/o),t=Math.ceil(i/o-1)):t=r+Math.ceil(Ln/o)-1}else if(Mn||Sn){var a=Pn-1;if(Mn?(r-=a/2,t=ui+a/2):t=ui+a,Sn){var s=Sn*Pn/Ln;r-=s,t+=s}r=Math.floor(r),t=Math.ceil(t)}else t=r+Pn-1;r=Math.max(r,0),t=Math.min(t,ei-1)}return[r,t]}function Oe(){$n&&!wi&&Te.apply(null,_e()).forEach(function(e){if(!n.i(E.a)(e,Bi)){var t={};t[Jt]=function(e){e.stopPropagation()},n.i(R.a)(e,t),n.i(R.a)(e,Ii),e.src=n.i(A.a)(e,"data-src");var i=n.i(A.a)(e,"data-srcset");i&&(e.srcset=i),n.i(_.a)(e,"loading")}})}function ke(e){xe(Et(e))}function Ae(e){Ce(Et(e))}function xe(e){n.i(_.a)(e,"loaded"),Se(e)}function Ce(e){n.i(_.a)(e,"failed"),Se(e)}function Se(e){n.i(_.a)(e,"tns-complete"),n.i(O.a)(e,"loading"),n.i(D.a)(e,Ii)}function Te(e,t){for(var i=[];e<=t;)n.i(w.a)(gn[e].querySelectorAll("img"),function(e){i.push(e)}),e++;return i}function Le(){var e=Te.apply(null,_e());n.i(o.a)(function(){Me(e,Re)})}function Me(e,t){return kn?t():(e.forEach(function(t,i){n.i(E.a)(t,Bi)&&e.splice(i,1)}),e.length?void n.i(o.a)(function(){Me(e,t)}):t())}function Pe(){Oe(),qe(),we(),We(),Be()}function je(){tn&&Bn&&(cn.style[Ut]=Dn/1e3+"s")}function Ne(e,t){for(var n=[],i=e,r=Math.min(e+t,ei);i<r;i++)n.push(gn[i].offsetHeight);return Math.max.apply(null,n)}function Re(){var e=Bn?Ne(ui,Pn):Ne(Zn,bn),t=cn||pn;t.style.height!==e&&(t.style.height=e+"px")}function De(){_n=[0];var e=dn?"left":"top",t=dn?"right":"bottom",i=gn[0].getBoundingClientRect()[e];n.i(w.a)(gn,function(n,r){r&&_n.push(n.getBoundingClientRect()[e]-i),r===ei-1&&_n.push(n.getBoundingClientRect()[t]-i)})}function qe(){var e=_e(),t=e[0],i=e[1];n.i(w.a)(gn,function(e,r){r>=t&&r<=i?n.i(k.a)(e,"aria-hidden")&&(n.i(C.a)(e,["aria-hidden","tabindex"]),n.i(_.a)(e,Vi)):n.i(k.a)(e,"aria-hidden")||(n.i(x.a)(e,{"aria-hidden":"true",tabindex:"-1"}),n.i(O.a)(e,Vi))})}function Ve(){for(var e=ui+Math.min(bn,Pn),t=ei;t--;){var i=gn[t];t>=ui&&t<e?(n.i(_.a)(i,"tns-moving"),i.style.left=100*(t-ui)/Pn+"%",n.i(_.a)(i,an),n.i(O.a)(i,ln)):i.style.left&&(i.style.left="",n.i(_.a)(i,ln),n.i(O.a)(i,an)),n.i(O.a)(i,sn)}setTimeout(function(){n.i(w.a)(gn,function(e){n.i(O.a)(e,"tns-moving")})},300)}function Be(){if(Hn&&(nr=tr>=0?tr:H(),tr=-1,nr!==ir)){var e=Qi[ir],t=Qi[nr];n.i(x.a)(e,{tabindex:"-1","aria-label":or+(ir+1)}),n.i(O.a)(e,rr),n.i(x.a)(t,{"aria-label":or+(nr+1)+ar}),n.i(C.a)(t,"tabindex"),n.i(_.a)(t,rr),ir=nr}}
1function Ie(e){return e.nodeName.toLowerCase()}function Fe(e){return"button"===Ie(e)}function He(e){return"true"===e.getAttribute("aria-disabled")}function ze(e,t,n){e?t.disabled=n:t.setAttribute("aria-disabled",""+n)}function We(){if(In&&!qn&&!Vn){var e=Hi?Yi.disabled:He(Yi),t=zi?Gi.disabled:He(Gi),n=ui<=ci,i=!qn&&ui>=fi;n&&!e&&ze(Hi,Yi,!0),!n&&e&&ze(Hi,Yi,!1),i&&!t&&ze(zi,Gi,!0),!i&&t&&ze(zi,Gi,!1)}}function Ue(e,t){Ut&&(e.style[Ut]=t)}function Ye(){return Cn?(Cn+Tn)*ei:_n[ei]}function Ge(e){null==e&&(e=ui);var t=Sn?Tn:0;return xn?(Ln-t-(_n[e+1]-_n[e]-Tn))/2:Cn?(Ln-Cn)/2:(Pn-1)/2}function Xe(){var e=Sn?Tn:0,t=Ln+e-Ye();return Mn&&!Vn&&(t=Cn?-(Cn+Tn)*(ei-1)-Ge():Ge(ei-1)-_n[ei-1]),t>0&&(t=0),t}function Je(e){null==e&&(e=ui);var t;if(dn&&!xn)if(Cn)t=-(Cn+Tn)*e,Mn&&(t+=Ge());else{var n=zt?ei:Pn;Mn&&(e-=Ge()),t=100*-e/n}else t=-_n[e],Mn&&xn&&(t+=Ge());return ti&&(t=Math.max(t,ni)),t+=!dn||xn||Cn?"px":"%"}function Qe(e){Ue(yn,"0s"),$e(e)}function $e(e){null==e&&(e=Je()),yn.style[ri]=oi+e+ai}function Ke(e,t,i,r){var o=e+Pn;Vn||(o=Math.min(o,ei));for(var a=e;a<o;a++){var s=gn[a];r||(s.style.left=100*(a-ui)/Pn+"%"),un&&Yt&&(s.style[Yt]=s.style[Xt]=un*(a-e)/1e3+"s"),n.i(O.a)(s,t),n.i(_.a)(s,i),r&&Kn.push(s)}}function Ze(e,t){ii&&kr(),(ui!==li||t)&&(vi.emit("indexChanged",Pt()),vi.emit("transitionStart",Pt()),Bn&&Le(),ur&&e&&["click","keydown"].indexOf(e.type)>=0&&lt(),yi=!0,Ar())}function et(e){return e.toLowerCase().replace(/-/g,"")}function tt(e){if(tn||yi){if(vi.emit("transitionEnd",Pt(e)),!tn&&Kn.length>0)for(var t=0;t<Kn.length;t++){var i=Kn[t];i.style.left="",Xt&&Yt&&(i.style[Xt]="",i.style[Yt]=""),n.i(O.a)(i,sn),n.i(_.a)(i,ln)}if(!e||!tn&&e.target.parentNode===yn||e.target===yn&&et(e.propertyName)===et(ri)){if(!ii){var r=ui;kr(),ui!==r&&(vi.emit("indexChanged",Pt()),Qe())}"inner"===en&&vi.emit("innerLoaded",Pt()),yi=!1,li=ui}}}function nt(e,t){if(!Oi)if("prev"===e)it(t,-1);else if("next"===e)it(t,1);else{if(yi){if(di)return;tt()}var n=F(),i=0;if("first"===e?i=-n:"last"===e?i=tn?bn-Pn-n:bn-1-n:("number"!=typeof e&&(e=parseInt(e)),isNaN(e)||(t||(e=Math.max(0,Math.min(bn-1,e))),i=e-n)),!tn&&i&&Math.abs(i)<Pn){var r=i>0?1:-1;i+=ui+i-bn>=ci?bn*r:2*bn*r*-1}ui+=i,tn&&Vn&&(ui<ci&&(ui+=bn),ui>fi&&(ui-=bn)),F(ui)!==F(li)&&Ze(t)}}function it(e,t){if(yi){if(di)return;tt()}var n;if(!t){e=wt(e);for(var i=Et(e);i!==Wi&&[Yi,Gi].indexOf(i)<0;)i=i.parentNode;var r=[Yi,Gi].indexOf(i);r>=0&&(n=!0,t=0===r?-1:1)}if(qn){if(ui===ci&&-1===t)return void nt("last",e);if(ui===fi&&1===t)return void nt("first",e)}t&&(ui+=jn*t,xn&&(ui=Math.floor(ui)),Ze(n||e&&"keydown"===e.type?e:null))}function rt(e){if(yi){if(di)return;tt()}e=wt(e);for(var t,i=Et(e);i!==$i&&!n.i(k.a)(i,"data-nav");)i=i.parentNode;if(n.i(k.a)(i,"data-nav")){var t=tr=+n.i(A.a)(i,"data-nav"),r=Cn||xn?t*bn/Zi:t*Pn;nt(Ni?t:Math.min(Math.ceil(r),bn-1),e),nr===t&&(ur&&lt(),tr=-1)}}function ot(){sr=setInterval(function(){it(null,dr)},Yn),ur=!0}function at(){clearInterval(sr),ur=!1}function st(e,t){n.i(x.a)(hr,{"data-action":e}),hr.innerHTML=yr[0]+e+yr[1]+t}function ut(){ot(),hr&&st("stop",Gn[1])}function lt(){at(),hr&&st("start",Gn[0])}function ct(){Un&&!ur&&(ut(),cr=!1)}function ft(){ur&&(lt(),cr=!0)}function dt(){ur?(lt(),cr=!0):(ut(),cr=!1)}function ht(){jt.hidden?ur&&(at(),fr=!0):fr&&(ot(),fr=!1)}function pt(){ur&&(at(),lr=!0)}function yt(){lr&&(ot(),lr=!1)}function mt(e){e=wt(e);var t=[Rt.LEFT,Rt.RIGHT].indexOf(e.keyCode);t>=0&&it(e,0===t?-1:1)}function vt(e){e=wt(e);var t=[Rt.LEFT,Rt.RIGHT].indexOf(e.keyCode);t>=0&&(0===t?Yi.disabled||it(e,-1):Gi.disabled||it(e,1))}function gt(e){e.focus()}function bt(e){e=wt(e);var t=jt.activeElement;if(n.i(k.a)(t,"data-nav")){var i=[Rt.LEFT,Rt.RIGHT,Rt.ENTER,Rt.SPACE].indexOf(e.keyCode),r=+n.i(A.a)(t,"data-nav");i>=0&&(0===i?r>0&&gt(Qi[r-1]):1===i?r<Zi-1&&gt(Qi[r+1]):(tr=r,nt(r,e)))}}function wt(e){return e=e||Nt.event,_t(e)?e.changedTouches[0]:e}function Et(e){return e.target||Nt.event.srcElement}function _t(e){return e.type.indexOf("touch")>=0}function Ot(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function kt(){return n.i(b.a)(n.i(g.a)(Er.y-wr.y,Er.x-wr.x),hi)===e.axis}function At(e){if(yi){if(di)return;tt()}Un&&ur&&at(),_r=!0,br&&(n.i(a.a)(br),br=null);var t=wt(e);vi.emit(_t(e)?"touchStart":"dragStart",Pt(e)),!_t(e)&&["img","a"].indexOf(Ie(Et(e)))>=0&&Ot(e),Er.x=wr.x=t.clientX,Er.y=wr.y=t.clientY,tn&&(mr=parseFloat(yn.style[ri].replace(oi,"")),Ue(yn,"0s"))}function xt(e){if(_r){var t=wt(e);Er.x=t.clientX,Er.y=t.clientY,tn?br||(br=n.i(o.a)(function(){Ct(e)})):("?"===pi&&(pi=kt()),pi&&(Fi=!0)),Fi&&e.preventDefault()}}function Ct(e){if(!pi)return void(_r=!1);if(n.i(a.a)(br),_r&&(br=n.i(o.a)(function(){Ct(e)})),"?"===pi&&(pi=kt()),pi){!Fi&&_t(e)&&(Fi=!0);try{e.type&&vi.emit(_t(e)?"touchMove":"dragMove",Pt(e))}catch(e){}var t=mr,i=Or(Er,wr);if(!dn||Cn||xn)t+=i,t+="px";
1else{t+=zt?i*Pn*100/((Ln+Tn)*ei):100*i/(Ln+Tn),t+="%"}yn.style[ri]=oi+t+ai}}function St(t){if(_r){br&&(n.i(a.a)(br),br=null),tn&&Ue(yn,""),_r=!1;var i=wt(t);Er.x=i.clientX,Er.y=i.clientY;var r=Or(Er,wr);if(Math.abs(r)){if(!_t(t)){var s=Et(t);n.i(R.a)(s,{click:function e(t){Ot(t),n.i(D.a)(s,{click:e})}})}tn?br=n.i(o.a)(function(){if(dn&&!xn){var e=-r*Pn/(Ln+Tn);e=r>0?Math.floor(e):Math.ceil(e),ui+=e}else{var n=-(mr+r);if(n<=0)ui=ci;else if(n>=_n[ei-1])ui=fi;else for(var i=0;i<ei&&n>=_n[i];)ui=i,n>_n[i]&&r<0&&(ui+=1),i++}Ze(t,r),vi.emit(_t(t)?"touchEnd":"dragEnd",Pt(t))}):pi&&it(t,r>0?-1:1)}}"auto"===e.preventScrollOnTouch&&(Fi=!1),hi&&(pi="?"),Un&&!ur&&ot()}function Tt(){(cn||pn).style.height=_n[ui+Pn]-_n[ui]+"px"}function Lt(){var e=Cn?(Cn+Tn)*bn/Ln:bn/Pn;return Math.min(Math.ceil(e),bn)}function Mt(){if(Hn&&!Ni&&Zi!==er){var e=er,t=Zi,n=L.a;for(er>Zi&&(e=Zi,t=er,n=T.a);e<t;)n(Qi[e]),e++;er=Zi}}function Pt(e){return{container:yn,slideItems:gn,navContainer:$i,navItems:Qi,controlsContainer:Wi,hasControls:Pi,prevButton:Yi,nextButton:Gi,items:Pn,slideBy:jn,cloneCount:Zn,slideCount:bn,slideCountNew:ei,index:ui,indexCached:li,displayIndex:r(),navCurrentIndex:nr,navCurrentIndexCached:ir,pages:Zi,pagesCached:er,sheet:Qn,isOn:En,event:e||{}}}e=n.i(s.a)({container:".slider",mode:"carousel",axis:"horizontal",items:1,gutter:0,edgePadding:0,fixedWidth:!1,autoWidth:!1,viewportMax:!1,slideBy:1,center:!1,controls:!0,controlsPosition:"top",controlsText:["prev","next"],controlsContainer:!1,prevButton:!1,nextButton:!1,nav:!0,navPosition:"top",navContainer:!1,navAsThumbnails:!1,arrowKeys:!1,speed:300,autoplay:!1,autoplayPosition:"top",autoplayTimeout:5e3,autoplayDirection:"forward",autoplayText:["start","stop"],autoplayHoverPause:!1,autoplayButton:!1,autoplayButtonOutput:!0,autoplayResetOnVisibility:!0,animateIn:"tns-fadeIn",animateOut:"tns-fadeOut",animateNormal:"tns-normal",animateDelay:!1,loop:!0,rewind:!1,autoHeight:!1,responsive:!1,lazyload:!1,lazyloadSelector:".tns-lazy-img",touch:!0,mouseDrag:!1,swipeAngle:15,nested:!1,preventActionWhenRunning:!1,preventScrollOnTouch:!1,freezable:!0,onInit:!1,useLocalStorage:!0},e||{});var jt=document,Nt=window,Rt={ENTER:13,SPACE:32,LEFT:37,RIGHT:39},Dt={},qt=e.useLocalStorage;if(qt){var Vt=navigator.userAgent,Bt=new Date;try{Dt=Nt.localStorage,Dt?(Dt.setItem(Bt,Bt),qt=Dt.getItem(Bt)==Bt,Dt.removeItem(Bt)):qt=!1,qt||(Dt={})}catch(e){qt=!1}qt&&(Dt.tnsApp&&Dt.tnsApp!==Vt&&["tC","tPL","tMQ","tTf","t3D","tTDu","tTDe","tADu","tADe","tTE","tAE"].forEach(function(e){Dt.removeItem(e)}),localStorage.tnsApp=Vt)}var It=Dt.tC?n.i(u.a)(Dt.tC):n.i(l.a)(Dt,"tC",n.i(f.a)(),qt),Ft=Dt.tPL?n.i(u.a)(Dt.tPL):n.i(l.a)(Dt,"tPL",n.i(d.a)(),qt),Ht=Dt.tMQ?n.i(u.a)(Dt.tMQ):n.i(l.a)(Dt,"tMQ",n.i(h.a)(),qt),zt=Dt.tTf?n.i(u.a)(Dt.tTf):n.i(l.a)(Dt,"tTf",n.i(P.a)("transform"),qt),Wt=Dt.t3D?n.i(u.a)(Dt.t3D):n.i(l.a)(Dt,"t3D",n.i(j.a)(zt),qt),Ut=Dt.tTDu?n.i(u.a)(Dt.tTDu):n.i(l.a)(Dt,"tTDu",n.i(P.a)("transitionDuration"),qt),Yt=Dt.tTDe?n.i(u.a)(Dt.tTDe):n.i(l.a)(Dt,"tTDe",n.i(P.a)("transitionDelay"),qt),Gt=Dt.tADu?n.i(u.a)(Dt.tADu):n.i(l.a)(Dt,"tADu",n.i(P.a)("animationDuration"),qt),Xt=Dt.tADe?n.i(u.a)(Dt.tADe):n.i(l.a)(Dt,"tADe",n.i(P.a)("animationDelay"),qt),Jt=Dt.tTE?n.i(u.a)(Dt.tTE):n.i(l.a)(Dt,"tTE",n.i(N.a)(Ut,"Transition"),qt),Qt=Dt.tAE?n.i(u.a)(Dt.tAE):n.i(l.a)(Dt,"tAE",n.i(N.a)(Gt,"Animation"),qt),$t=(Nt.console&&Nt.console.warn,["container","controlsContainer","prevButton","nextButton","navContainer","autoplayButton"]),Kt={};if($t.forEach(function(t){if("string"==typeof e[t]){var n=e[t],i=jt.querySelector(n);if(Kt[t]=n,!i||!i.nodeName)return;e[t]=i}}),!(e.container.children.length<1)){var Zt=e.responsive,en=e.nested,tn="carousel"===e.mode;if(Zt){0 in Zt&&(e=n.i(s.a)(e,Zt[0]),delete Zt[0]);var nn={};for(var rn in Zt){var on=Zt[rn];on="number"==typeof on?{items:on}:on,nn[rn]=on}Zt=nn,nn=null}if(tn||t(e),!tn){e.axis="horizontal",e.slideBy="page",e.edgePadding=!1;var an=e.animateIn,sn=e.animateOut,un=e.animateDelay,ln=e.animateNormal}var cn,fn,dn="horizontal"===e.axis,hn=jt.createElement("div"),pn=jt.createElement("div"),yn=e.container,mn=yn.parentNode,vn=yn.outerHTML,gn=yn.children,bn=gn.length,wn=W(),En=!1;Zt&&he(),tn&&(yn.className+=" tns-vpfix");var _n,On,kn,An,xn=e.autoWidth,Cn=J("fixedWidth"),Sn=J("edgePadding"),Tn=J("gutter"),Ln=G(),Mn=J("center"),Pn=xn?1:Math.floor(J("items")),jn=J("slideBy"),Nn=e.viewportMax||e.fixedWidthViewportWidth,Rn=J("arrowKeys"),Dn=J("speed"),qn=e.rewind,Vn=!qn&&e.loop,Bn=J("autoHeight"),In=J("controls"),Fn=J("controlsText"),Hn=J("nav"),zn=J("touch"),Wn=J("mouseDrag"),Un=J("autoplay"),Yn=J("autoplayTimeout"),Gn=J("autoplayText"),Xn=J("autoplayHoverPause"),Jn=J("autoplayResetOnVisibility"),Qn=n.i(p.a)(),$n=e.lazyload,Kn=(e.lazyloadSelector,[]),Zn=Vn?function(){var e=z(),t=tn?Math.
1ceil((5*e-bn)/2):4*e-bn;return t=Math.max(e,t),X("edgePadding")?t+1:t}():0,ei=tn?bn+2*Zn:bn+Zn,ti=!(!Cn&&!xn||Vn),ni=Cn?Xe():null,ii=!tn||!Vn,ri=dn?"left":"top",oi="",ai="",si=function(){return Cn?function(){return Mn&&!Vn?bn-1:Math.ceil(-ni/(Cn+Tn))}:xn?function(){for(var e=ei;e--;)if(_n[e]>=-ni)return e}:function(){return Mn&&tn&&!Vn?bn-1:Vn||tn?Math.max(0,ei-Math.ceil(Pn)):ei-1}}(),ui=I(J("startIndex")),li=ui,ci=(r(),0),fi=xn?null:si(),di=e.preventActionWhenRunning,hi=e.swipeAngle,pi=!hi||"?",yi=!1,mi=e.onInit,vi=new q.a,gi=" tns-slider tns-"+e.mode,bi=yn.id||n.i(c.a)(),wi=J("disable"),Ei=!1,_i=e.freezable,Oi=!(!_i||xn)&&de(),ki=!1,Ai={click:it,keydown:vt},xi={click:rt,keydown:bt},Ci={mouseover:pt,mouseout:yt},Si={visibilitychange:ht},Ti={keydown:mt},Li={touchstart:At,touchmove:xt,touchend:St,touchcancel:St},Mi={mousedown:At,mousemove:xt,mouseup:St,mouseleave:St},Pi=X("controls"),ji=X("nav"),Ni=!!xn||e.navAsThumbnails,Ri=X("autoplay"),Di=X("touch"),qi=X("mouseDrag"),Vi="tns-slide-active",Bi="tns-complete",Ii={load:ke,error:Ae},Fi="force"===e.preventScrollOnTouch;if(Pi)var Hi,zi,Wi=e.controlsContainer,Ui=e.controlsContainer?e.controlsContainer.outerHTML:"",Yi=e.prevButton,Gi=e.nextButton,Xi=e.prevButton?e.prevButton.outerHTML:"",Ji=e.nextButton?e.nextButton.outerHTML:"";if(ji)var Qi,$i=e.navContainer,Ki=e.navContainer?e.navContainer.outerHTML:"",Zi=xn?bn:Lt(),er=0,tr=-1,nr=H(),ir=nr,rr="tns-nav-active",or="Carousel Page ",ar=" (Current Slide)";if(Ri)var sr,ur,lr,cr,fr,dr="forward"===e.autoplayDirection?1:-1,hr=e.autoplayButton,pr=e.autoplayButton?e.autoplayButton.outerHTML:"",yr=["<span class='tns-visually-hidden'>"," animation</span>"];if(Di||qi)var mr,vr,gr,br,wr={},Er={},_r=!1,Or=dn?function(e,t){return e.x-t.x}:function(e,t){return e.y-t.y};xn||i(wi||Oi),zt&&(ri=zt,oi="translate",Wt?(oi+=dn?"3d(":"3d(0px, ",ai=dn?", 0px, 0px)":", 0px)"):(oi+=dn?"X(":"Y(",ai=")")),tn&&(yn.className=yn.className.replace("tns-vpfix","")),function(){if(X("gutter"),hn.className="tns-outer",pn.className="tns-inner",hn.id=bi+"-ow",pn.id=bi+"-iw",""===yn.id&&(yn.id=bi),gi+=Ft||xn?" tns-subpixel":" tns-no-subpixel",gi+=It?" tns-calc":" tns-no-calc",xn&&(gi+=" tns-autowidth"),gi+=" tns-"+e.axis,yn.className+=gi,tn?(cn=jt.createElement("div"),cn.id=bi+"-mw",cn.className="tns-ovh",hn.appendChild(cn),cn.appendChild(pn)):hn.appendChild(pn),Bn&&((cn||pn).className+=" tns-ah"),mn.insertBefore(hn,yn),pn.appendChild(yn),n.i(w.a)(gn,function(e,t){n.i(_.a)(e,"tns-item"),e.id||(e.id=bi+"-item"+t),!tn&&ln&&n.i(_.a)(e,ln),n.i(x.a)(e,{"aria-hidden":"true",tabindex:"-1"})}),Zn){for(var t=jt.createDocumentFragment(),i=jt.createDocumentFragment(),r=Zn;r--;){var o=r%bn,a=gn[o].cloneNode(!0);if(n.i(C.a)(a,"id"),i.insertBefore(a,i.firstChild),tn){var s=gn[bn-1-o].cloneNode(!0);n.i(C.a)(s,"id"),t.appendChild(s)}}yn.insertBefore(t,yn.firstChild),yn.appendChild(i),gn=yn.children}}(),function(){if(!tn)for(var t=ui,i=ui+Math.min(bn,Pn);t<i;t++){var r=gn[t];r.style.left=100*(t-ui)/Pn+"%",n.i(_.a)(r,an),n.i(O.a)(r,ln)}if(dn&&(Ft||xn?(n.i(y.a)(Qn,"#"+bi+" > .tns-item","font-size:"+Nt.getComputedStyle(gn[0]).fontSize+";",n.i(v.a)(Qn)),n.i(y.a)(Qn,"#"+bi,"font-size:0;",n.i(v.a)(Qn))):tn&&n.i(w.a)(gn,function(e,t){e.style.marginLeft=Q(t)})),Ht){if(Ut){var o=cn&&e.autoHeight?ne(e.speed):"";n.i(y.a)(Qn,"#"+bi+"-mw",o,n.i(v.a)(Qn))}o=$(e.edgePadding,e.gutter,e.fixedWidth,e.speed,e.autoHeight),n.i(y.a)(Qn,"#"+bi+"-iw",o,n.i(v.a)(Qn)),tn&&(o=dn&&!xn?"width:"+K(e.fixedWidth,e.gutter,e.items)+";":"",Ut&&(o+=ne(Dn)),n.i(y.a)(Qn,"#"+bi,o,n.i(v.a)(Qn))),o=dn&&!xn?Z(e.fixedWidth,e.gutter,e.items):"",e.gutter&&(o+=ee(e.gutter)),tn||(Ut&&(o+=ne(Dn)),Gt&&(o+=ie(Dn))),o&&n.i(y.a)(Qn,"#"+bi+" > .tns-item",o,n.i(v.a)(Qn))}else{je(),pn.style.cssText=$(Sn,Tn,Cn,Bn),tn&&dn&&!xn&&(yn.style.width=K(Cn,Tn,Pn));var o=dn&&!xn?Z(Cn,Tn,Pn):"";Tn&&(o+=ee(Tn)),o&&n.i(y.a)(Qn,"#"+bi+" > .tns-item",o,n.i(v.a)(Qn))}if(Zt&&Ht)for(var a in Zt){a=parseInt(a);var s=Zt[a],o="",u="",l="",c="",f="",d=xn?null:J("items",a),h=J("fixedWidth",a),p=J("speed",a),m=J("edgePadding",a),g=J("autoHeight",a),b=J("gutter",a);
1Ut&&cn&&J("autoHeight",a)&&"speed"in s&&(u="#"+bi+"-mw{"+ne(p)+"}"),("edgePadding"in s||"gutter"in s)&&(l="#"+bi+"-iw{"+$(m,b,h,p,g)+"}"),tn&&dn&&!xn&&("fixedWidth"in s||"items"in s||Cn&&"gutter"in s)&&(c="width:"+K(h,b,d)+";"),Ut&&"speed"in s&&(c+=ne(p)),c&&(c="#"+bi+"{"+c+"}"),("fixedWidth"in s||Cn&&"gutter"in s||!tn&&"items"in s)&&(f+=Z(h,b,d)),"gutter"in s&&(f+=ee(b)),!tn&&"speed"in s&&(Ut&&(f+=ne(p)),Gt&&(f+=ie(p))),f&&(f="#"+bi+" > .tns-item{"+f+"}"),(o=u+l+c+f)&&Qn.insertRule("@media (min-width: "+a/16+"em) {"+o+"}",Qn.cssRules.length)}}(),re();var kr=function(){return Vn?tn?function(){var e=ci,t=fi;e+=jn,t-=jn,Sn?(e+=1,t-=1):Cn&&(Ln+Tn)%(Cn+Tn)&&(t-=1),Zn&&(ui>t?ui-=bn:ui<e&&(ui+=bn))}:function(){if(ui>fi)for(;ui>=ci+bn;)ui-=bn;else if(ui<ci)for(;ui<=fi-bn;)ui+=bn}:function(){ui=Math.max(ci,Math.min(fi,ui))}}(),Ar=function(){return tn?function(){Ue(yn,""),Ut||!Dn?($e(),Dn&&n.i(M.a)(yn)||tt()):n.i(V.a)(yn,ri,oi,ai,Je(),Dn,tt),dn||Tt()}:function(){Kn=[];var e={};e[Jt]=e[Qt]=tt,n.i(D.a)(gn[li],e),n.i(R.a)(gn[ui],e),Ke(li,an,sn,!0),Ke(ui,ln,an),Jt&&Qt&&Dn&&n.i(M.a)(yn)||tt()}}();return{version:"2.9.2",getInfo:Pt,events:vi,goTo:nt,play:ct,pause:ft,isOn:En,updateSliderHeight:Re,refresh:re,destroy:le,rebuild:function(){return B(n.i(s.a)(e,Kt))}}}}},532:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),c=n(255),f=i(c),d=n(871),h=i(d),p=n(18),y=i(p),m=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this;this.smallValue=90,this.largeValue=-100,this.mq=window.matchMedia("(max-width: 1023px)"),this.scrollOffset=window.innerWidth<1023?this.smallValue:this.largeValue,this.answerOption=[].concat(r(this.root.querySelectorAll('[data-ref="comp-option"]'))),this.filteranswer=this.root.querySelector('[data-ref="drp-option"]'),this.dropdownanswerOption=[].concat(r(this.root.querySelectorAll(".competition-form__answers-list > li"))),this.dropdownanswerList=this.root.querySelector(".competition-form__answers-list"),this.anchoranswer=this.root.querySelector(".competition-form__anchor-image"),this.termsOption=this.root.querySelector('[data-ref="terms-checkbox"]'),this.ctaButton=this.root.querySelector('[data-ref="cta-button"]'),this.successContainter=this.root.querySelector('[data-ref="entry-success"]'),this.errorContainter=this.root.querySelector('[data-ref="entry-error"]'),this.APIURL=this.props.url,this.scConfig=window.engms.compMessage,window.onload=function(){e.checkHash(),null!=e.dropdownanswerList&&(e.dropdownanswerList.style.display="none")},this.bindEventListeners(),this.getLocalStorage(),this.handleValidation()}},{key:"bindEventListeners",value:function(){var e=this;this.answerOption.forEach(function(t){t.addEventListener("click",e.handleValidation.bind(e))}),null!=this.anchoranswer&&this.anchoranswer.addEventListener("click",this.dropdowntoogle.bind(this)),null!=this.filteranswer&&(this.filteranswer.addEventListener("keyup",this.filter.bind(this)),this.filteranswer.addEventListener("keyup",this.handleValidation.bind(this)),this.filteranswer.addEventListener("focusout",this.handleValidation.bind(this)));var t,n,i,r=localStorage.getItem("fa-comp-answer");for(t=0;t<this.dropdownanswerOption.length;t++)n=this.dropdownanswerOption[t],n.addEventListener("click",this.dropdownanswervalue.bind(n)),n.addEventListener("click",this.handleValidation.bind(this)),r&&r==this.dropdownanswerOption[t].getAttribute("data-value")&&(i=this.dropdownanswerOption[t].innerText,document.getElementById("competition-form__search-input").value=i);this.termsOption.addEventListener("click",this.handleValidation.bind(this)),this.ctaButton.addEventListener("click",this.handleAjaxCall.bind(this)),document.addEventListener("modelClosed",this.resetForm.bind(this)),this.mq.addListener(function(t){t.matches?e.scrollOffset=e.smallValue:e.scrollOffset=e.largeValue})}},{key:"checkTextWithDropDownValue",value:function(e){var t,n=!1;for(t=0;t<this.dropdownanswerOption.length;t++){var i=this.dropdownanswerOption[t].innerText;
1if(e.toUpperCase()==i.toUpperCase()){n=!0;var r=this.dropdownanswerOption[t].getAttribute("data-value");document.getElementById("competition-form__search-input").setAttribute("data-value",r);break}}return n}},{key:"resetForm",value:function(){this.root.classList.remove("is--success"),this.root.classList.remove("is--error"),this.answerOption.forEach(function(e){e.checked=!1}),this.termsOption.checked=!1,this.ctaButton.disabled=!0,null!=this.filteranswer&&(this.filteranswer.setAttribute("data-value",""),this.filteranswer.value="")}},{key:"checkHash",value:function(){if(window.location.hash==="#"+this.root.parentNode.parentNode.getAttribute("data-section-ref")){var e=this.root.parentNode;"scrollRestoration"in history&&(history.scrollRestoration="manual"),"modal"===e.getAttribute("data-component")&&e.classList.add("is--open"),(0,f.default)(this.root,{offset:this.scrollOffset})}}},{key:"handleValidation",value:function(){var e=this.root.querySelector('input[data-ref="comp-option"]:checked'),t=this.root.querySelector('[data-ref="terms-checkbox"]:checked'),n=null;if(null!=this.filteranswer){var i=this.checkTextWithDropDownValue(this.filteranswer.value);n=this.filteranswer.getAttribute("data-value")}e&&t?(this.selectAnswer=e,this.termsCheck=t,this.ctaButton.disabled=!1):n&&t&&""!=this.filteranswer.value&&1==i?(this.selectAnswer=n,this.termsCheck=t,this.ctaButton.disabled=!1):this.ctaButton.disabled=!0}},{key:"handleAjaxCall",value:function(e){var t=this;e.preventDefault(),this.ctaButton.classList.add("is--submitting"),this.ctaButton.disabled=!0;var n=new XMLHttpRequest;void 0==this.selectAnswer.id?this.setLocalStorage(this.selectAnswer):this.setLocalStorage(this.selectAnswer.id),n.onreadystatechange=function(){4===n.readyState&&t.handleResponse(n)},void 0==this.selectAnswer.value?n.open("POST",this.APIURL+"?param="+this.selectAnswer,!0):n.open("POST",this.APIURL+"?param="+this.selectAnswer.value,!0),n.send()}},{key:"handleResponse",value:function(e){if(0===e.status&&0===e.responseText.length){var t=this.errorContainter.getElementsByTagName("p")[0],n={message:this.scConfig.cannotComplete,targetDiv:t};this.renderResult(n)}else{var i=e.status,r=e.responseText,o={code:i,message:JSON.parse(r),targetDiv:""};if(200===i){var a=this.successContainter.getElementsByTagName("p")[0];o.targetDiv=a,this.renderResult(o,!0)}else if(418===i)this.handleRedirect(o);else if(409===i){var s=this.errorContainter.getElementsByTagName("p")[0];o.targetDiv=s,this.renderResult(o)}else{var u=this.errorContainter.getElementsByTagName("p")[0];o.targetDiv=u,this.renderResult(o)}}}},{key:"renderResult",value:function(e,t){var n="";t?(n="is--success",this.removeLocalStorage()):n="is--error";var i=e.message;e.targetDiv.innerHTML=""+i,this.root.classList.add(n),this.ctaButton.classList.remove("is--submitting"),this.ctaButton.disabled=!1,(0,f.default)(".competition-form",{offset:-100})}},{key:"handleRedirect",value:function(e){var t=e.message.replace("www.",""),n=window.location.host.replace("www.",""),i=new h.default("(http(s)\\://)(:subdomain.):domain.:tld(/*)"),r=i.match(t),o=i.match(n),a="",s="";if(o){s=o.domain+"."+o.tld}if(r){a=r.domain+"."+r.tld}if(s===a)window.location=e.message;else{var l=this.errorContainter.getElementsByTagName("p")[0],c={message:this.scConfig.cannotComplete,targetDiv:l},f=u(e,c);this.renderResult(f)}}},{key:"getLocalStorage",value:function(){var e=localStorage.getItem("fa-comp-answer");if(e){var t=document.getElementById("competition-form__search-input");if(t)t.setAttribute("data-value",e);else{var n=this.root.querySelector("#"+e);n&&(n.checked=!0)}}}},{key:"setLocalStorage",value:function(e){localStorage.setItem("fa-comp-answer",e)}},{key:"removeLocalStorage",value:function(){localStorage.removeItem("fa-comp-answer")}},{key:"filter",value:function(){var e,t,n,i,r,o;for(e=this.root.querySelector('[data-ref="drp-option"]'),n=e.value.toUpperCase(),t=this.root.querySelector(".competition-form__dropdown-row"),r=t.getElementsByTagName("li"),o=0;o<r.length;o++)i=r[o].textContent||r[o].innerText,i.toUpperCase().indexOf(n)>-1?r[o].style.display="":r[o].style.display="none"}},{key:"dropdownanswervalue",value:function(){var e=this.innerText,t=this.getAttribute("data-value"),n=document.getElementById("competition-form__search-input");n.value=e,n.setAttribute("data-value",t);var i=document.getElementById("competition-form__answers-dropdown");"none"===i.style.display?i.style.display="table":i.style.display="none"}},{key:"dropdowntoogle",value:function(){var e=document.getElementById("competition-form__answers-dropdown");"none"===e.style.display?e.style.display="block":e.style.display="none"}}]),t}(y.default);t.default=m},533:function(e,t,n){"use strict";
1function i(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(16),c=n(255),f=i(c),d=n(18),h=i(d),p=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),u(t,[{key:"componentDidMount",value:function(){this.mobNavOffset=0,this.dtNavOffset=50,this.mobScrollOffset=-50,this.dtScrollOffset=-80,this.winInner=window.innerWidth,this.mq=window.matchMedia("(max-width: 1023px)"),this.navScrollOffset=this.winInner<1023?this.mobNavOffset:this.dtNavOffset,this.scrollOffset=this.winInner<1023?this.mobScrollOffset:this.dtScrollOffset,this.isSticky=!1,this.tabPanels=[].concat(r(this.root.querySelectorAll('[data-ref="panel"]'))),this.tabLinks=[].concat(r(this.root.querySelectorAll('[data-ref="link"]'))),this.tabsLength=this.tabLinks.length,this.currentTab=1,this.bindEventListeners(),this.setAccessibilityControls(),this.checkHash()}},{key:"bindEventListeners",value:function(){var e=this;if(this.tabLinks.forEach(function(t){t.addEventListener("keydown",e.handleKeyboardControls.bind(e)),t.addEventListener("click",e.handleClick.bind(e))}),this.root.classList.contains("enable-sticky")){this.isSticky=!0;var t=(0,l.throttle)(this.onDocumentScroll.bind(this),50);window.addEventListener("scroll",t),this.mq.addListener(function(t){t.matches?(e.navScrollOffset=e.mobNavOffset,e.scrollOffset=e.mobScrollOffset):(e.navScrollOffset=e.dtNavOffset,e.scrollOffset=e.dtScrollOffset)})}}},{key:"setAccessibilityControls",value:function(){this.tabLinks.forEach(function(e,t){e.setAttribute("data-tab-number",t+1),e.classList.contains("is--active")?e.setAttribute("aria-selected",!0):e.setAttribute("tabindex","-1")})}},{key:"handleKeyboardControls",value:function(e){var t=e.target;if(37===e.keyCode)if(1===this.currentTab)this.tabLinks[this.tabsLength-1].click();else{var n=t.previousElementSibling;n.click()}if(39===e.keyCode)if(this.currentTab===this.tabsLength)this.tabLinks[0].click();else{var i=t.nextElementSibling;i.click()}}},{key:"handleClick",value:function(e){e.preventDefault();var t=e.currentTarget,n=t.href.split("#")[1],i=void 0;this.tabLinks.forEach(function(e){e.classList.remove("is--active"),e.removeAttribute("aria-selected"),e.setAttribute("tabindex","-1")}),this.tabPanels.forEach(function(e){var t=e.getAttribute("data-panel-id");n===t&&(i=t),e.classList.remove("is--active")});var r=this.root.querySelector('[data-panel-id="'+i+'"]');t.classList.add("is--active"),t.setAttribute("aria-selected","true"),t.removeAttribute("tabindex"),t.focus(),this.currentTab=parseInt(t.getAttribute("data-tab-number"),10),r.classList.add("is--active"),window.location.hash="#"+n,this.isSticky&&this.root.classList.contains("is--sticky")&&(0,f.default)(".content-tabs__panel",{offset:this.scrollOffset})}},{key:"checkHash",value:function(){var e=this,t=window.location.hash;t&&this.tabLinks.forEach(function(n){var i=n.getAttribute("href");t===i?(n.removeAttribute("tabindex"),n.click(),e.currentTab=parseInt(n.getAttribute("data-tab-number"),10),(0,f.default)(".content-tabs__panel",{offset:e.scrollOffset})):n.setAttribute("tabindex","-1")})}},{key:"onDocumentScroll",value:function(){var e=this.root.offsetTop+this.navScrollOffset;this.stickyTabsActive=window.pageYOffset>e,this.toggleStickyNav()}},{key:"toggleStickyNav",value:function(){this.stickyTabsActive?this.root.classList.add("is--sticky"):this.root.classList.remove("is--sticky")}}]),t}(h.default);t.default=p},534:function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
1Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=n(18),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"componentDidMount",value:function(){this.toggleLink=[].concat(i(this.root.querySelectorAll('[data-ref="toggler"]'))),this.togglePanel=[].concat(i(this.root.querySelectorAll('[data-ref="panel"]'))),this.togglePanel.forEach(function(e){[].concat(i(e.getElementsByTagName("a"))).forEach(function(e){e.setAttribute("tabindex","-1")})}),this.bindEventListeners()}},{key:"bindEventListeners",value:function(){var e=this;this.toggleLink.forEach(function(t){t.addEventListener("click",e.toggleContent.bind(e))})}},{key:"toggleContent",value:function(e){e.preventDefault();var t=e.currentTarget,n=t.getAttribute("data-target-panel"),r=this.root.querySelector('[data-panel="'+n+'"]'),o=[].concat(i(r.getElementsByTagName("a")));t.classList.toggle("is--open"),r.classList.toggle("is--open"),r.classList.contains("is--open")?o.forEach(function(e){e.setAttribute("tabindex","0")}):o.forEach(function(e){e.setAttribute("tabindex","-1")})}}]),t}(l.default);t.default=c},535:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=n(816),l=i(u),c=n(2),f=i(c),d=n(18),h=i(d),p=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"componentDidMount",value:function(){this.cpuDate=f.default.utc(this.root.getAttribute("datetime")),this.setDisplayTime()}},{key:"setDisplayTime",value:function(){var e=this;this.timer=(0,l.default)(this.cpuDate.toDate(),function(t){var n="00",i="00",r="00",o="00";t.value<0&&(n=(""+t.days).length<=1?"0"+t.days:t.days,i=(""+t.hours).length<=1?"0"+t.hours:t.hours,r=(""+t.minutes).length<=1?"0"+t.minutes:t.minutes,o=(""+t.seconds).length<=1?"0"+t.seconds:t.seconds),e.markup='\n                    <div class="countdown__inner">\n                        <div class="countdown__time-unit">\n                            <span class="countdown__time-unit-number">'+n+'</span>\n                            <span class="countdown__time-unit-text">days</span>\n                        </div>\n                        <div class="countdown__time-unit">\n                            <span class="countdown__time-unit-number">'+i+'</span>\n                            <span class="countdown__time-unit-text">hours</span>\n                        </div>\n                        <div class="countdown__time-unit">\n                            <span class="countdown__time-unit-number">'+r+'</span>\n                            <span class="countdown__time-unit-text">mins</span>\n                        </div>\n                        <div class="countdown__time-unit">\n                            <span class="countdown__time-unit-number">'+o+'</span>\n                            <span class="countdown__time-unit-text">secs</span>\n                        </div>\n                    </div>\n                ',e.root.innerHTML=e.markup},l.default.DAYS|l.default.HOURS|l.default.MINUTES|l.default.SECONDS)}}]),t}(h.default);t.default=p},536:function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
1Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=n(18),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"componentDidMount",value:function(){var e=this;[].concat(i(this.mount.querySelectorAll("[data-duplicate]"))).forEach(function(t){var n=t.dataset.duplicateTarget;e.duplicate(t,n)})}},{key:"duplicate",value:function(e,t){if(t){var n=this.mount.querySelector(t);if(n){var i=e.cloneNode(!0);if(".content-tabs--lions-den"!==t)n.appendChild(i);else{i.classList.add("hide-on-desktop");var r=n.querySelector(".content-tabs__panel");r.children.length<3?r.appendChild(i):r.insertBefore(i,r.children[2])}}}}}]),t}(l.default);t.default=c},539:function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=n(18),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"componentDidMount",value:function(){var e=this;this.images=[].concat(i(this.root.querySelectorAll("img"))),this.images.forEach(function(t){e.addCaption(t)})}},{key:"addCaption",value:function(e){var t=void 0,n=e.parentNode,i=e.getAttribute("longdesc");t="p"===n.tagName.toLowerCase()?n:e,i&&i.length>0&&t.insertAdjacentHTML("afterend",'<div class="image-caption"><span>'+i+"</span></div>")}}]),t}(l.default);t.default=c},540:function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=n(18),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"componentDidMount",value:function(){var e=this;this.win=window,this.widgets=[].concat(i(this.mount.querySelectorAll(".eng-ms-opta-widget"))),this.root.addEventListener("click",function(){e.loadWidget()}),(this.win.location.hash===this.root.hash||this.root.classList.contains("is--active"))&&this.loadWidget()}},{key:"loadWidget",value:function(){this.widgets.length&&this.win.opta_settings&&this.win.Opta&&(this.widgets.map(function(e){var t=e.querySelector("opta-widget");return t&&e.offsetWidth>0&&t.removeAttribute("load"),e}),this.win.Opta.start())}}]),t}(l.default);t.default=c},541:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
1Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(18),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=function(e){function t(){return i(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this;["A","BUTTON"].indexOf(this.root.nodeName)>-1?this.root.addEventListener("click",function(){e.loadWidget(document,"stackla-widget-js")}):this.loadWidget(document,"stackla-widget-js")}},{key:"loadWidget",value:function(e,t){if(!window.Stackla){var n,i=e.scripts[e.scripts.length-1].previousElementSibling;i&&(i.dataset.initTimestamp=(new Date).getTime()),e.getElementById(t)||(n=e.createElement("script"),n.src="https://assetscdn.stackla.com/media/js/widget/fluid-embed.js",n.id=t,(e.getElementsByTagName("head")[0]||e.getElementsByTagName("body")[0]).appendChild(n))}}}]),t}(u.default);t.default=l},542:function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=n(18),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"componentDidMount",value:function(){"function"==typeof Event?this.event=new Event("modelClosed"):(this.event=document.createEvent("Event"),this.event.initEvent("modelClosed",!0,!0)),this.modalRef=this.props.modalRef,this.showModalBtn=this.mount.querySelector('[data-target-modal="'+this.modalRef+'"]'),this.hideModalBtn=[].concat(i(this.root.querySelectorAll('[data-ref="hide-modal"]'))),this.showModalBtn&&this.hideModalBtn&&this.bindEventListeners()}},{key:"bindEventListeners",value:function(){var e=this;this.root.addEventListener("click",function(t){t.target.classList.contains("is--open")&&e.root.classList.remove("is--open")}),this.showModalBtn.addEventListener("click",this.toggleModal.bind(this),!0),this.hideModalBtn.forEach(function(t){t.addEventListener("click",e.toggleModal.bind(e),!0)}),document.addEventListener("keyup",function(t){27===t.keyCode&&e.root.classList.remove("is--open")})}},{key:"toggleModal",value:function(e){e.preventDefault(),"hide-modal"===e.currentTarget.getAttribute("data-ref")?this.root.classList.remove("is--open"):this.root.classList.add("is--open"),this.root.classList.contains("is--open")||document.dispatchEvent(this.event)}}]),t}(l.default);t.default=c},543:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
1Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(488),c=n(2),f=i(c),d=n(18),h=i(d),p=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),u(t,[{key:"componentDidMount",value:function(){this.prevButton=this.mount.querySelector(".news-feature__carousel-button--prev"),this.nextButton=this.mount.querySelector(".news-feature__carousel-button--next"),this.navButtons=[].concat(r(this.mount.querySelectorAll(".news-feature__carousel-button"))),this.buttonsWrapper=this.mount.querySelector(".news-feature__carousel-nav"),this.slideItems=[].concat(r(this.mount.querySelectorAll(".news-feature__item"))),this.parentWrapper=this.root.parentElement,this.tagElm=this.mount.querySelector(".news-feature__item-tag span"),this.headlineElm=this.mount.querySelector(".news-feature__item-title"),this.snippetElm=this.mount.querySelector(".news-feature__item-intro"),this.timeElm=this.mount.querySelector(".news-feature__item-time"),this.urlLink=this.mount.querySelector(".news-feature__item-detail-link"),this.initCarousel(),this.bindEventListeners(),this.displayNewsContent(1)}},{key:"bindEventListeners",value:function(){var e=this;this.navButtons.forEach(function(t){t.addEventListener("click",e.handleCarouselIndexing.bind(e),!0)}),this.carousel&&this.carousel.events.on("transitionStart",this.handleCarouselIndexing.bind(this),!0)}},{key:"handleCarouselIndexing",value:function(e){var t=e.currentTarget;t&&(t.classList.contains("news-feature__carousel-button--prev")&&this.carousel.goTo("prev"),t.classList.contains("news-feature__carousel-button--next")&&this.carousel.goTo("next"));var n=this.carousel.getInfo(),i=n.slideCount,r=n.index+1;this.prevButton.disabled=1===r,this.nextButton.disabled=r===i,this.parentWrapper.classList.add("is--animating"),this.displayNewsContent(r)}},{key:"initCarousel",value:function(){this.carousel=(0,l.tns)({autoHeight:!0,container:this.root,controls:!1,items:1,loop:!1,nav:!1,slideBy:"page"}),this.prevButton.disabled=!0}},{key:"displayNewsContent",value:function(e){var t=this,n=e-1;1===this.slideItems.length&&(this.buttonsWrapper.hidden=!0);var i=this.slideItems[n].getAttribute("data-tag"),r=this.slideItems[n].getAttribute("data-headline"),o=this.slideItems[n].getAttribute("data-snippet"),a=this.slideItems[n].getAttribute("data-published"),s=this.slideItems[n].getAttribute("data-url");setTimeout(function(){t.tagElm.innerText=i,t.headlineElm.innerText=r,t.snippetElm.innerText=o,t.timeElm.innerText=f.default.utc(a).fromNow(),t.urlLink.setAttribute("href",s),t.parentWrapper.classList.remove("is--animating")},500)}}]),t}(h.default);t.default=p},544:function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=n(18),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}
1return a(t,e),s(t,[{key:"componentDidMount",value:function(){this.socialShare=this.root.querySelector('[data-ref="share-toggle"]'),this.bindEventListeners()}},{key:"bindEventListeners",value:function(){this.socialShare.addEventListener("click",this.handleShareClick.bind(this),!0)}},{key:"handleShareClick",value:function(e){e.preventDefault();var t=[].concat(i(this.root.querySelectorAll(".at-share-btn")));this.root.classList.toggle("is--visible"),t.forEach(function(e){e.setAttribute("tabindex","0")})}}]),t}(l.default);t.default=c},545:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=n(84),l=i(u),c=n(18),f=i(c),d=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"componentDidMount",value:function(){var e=document.getElementsByTagName("html")[0];this.htmlTag=e,this.videoPoster=this.root.querySelector('[data-ref="video-poster"]'),this.playButton=this.root.querySelector('[data-ref="play-button"]'),this.closeButton=this.root.querySelector('[data-ref="close-button"]'),this.ytVideo=this.root.querySelector('[data-ref="yt-video"]'),this.ytVideoID=this.ytVideo.getAttribute("data-video-id"),this.params={},this.bindEventListeners()}},{key:"bindEventListeners",value:function(){var e=this;this.playButton.addEventListener("click",this.handleVideoClick.bind(this),!0),this.closeButton.addEventListener("click",function(t){t.preventDefault(),e.player&&e.player.pauseVideo()},!0),document.addEventListener("keyup",function(t){var n=t.key,i=t.keyCode;"escape"!==n.toLowerCase()&&27!==i||e.player&&e.player.pauseVideo()},!0)}},{key:"handleVideoClick",value:function(e){e.preventDefault(),this.root.classList.contains("is--loaded")?this.player.playVideo():this.setUpPlayer()}},{key:"setUpPlayer",value:function(){var e=this;this.videoPoster.remove(),this.player=new l.default(this.ytVideo,{videoId:""+this.ytVideoID,playerVars:{autoplay:1,controls:0,disablekb:0,enablejsapi:1,loop:0,modestbranding:1,playsinline:0,rel:0,showinfo:0,color:"white",iv_load_policy:3}}),this.root.classList.add("is--full-screen","is--loaded"),this.player.on("stateChange",function(t){0===t.data&&(e.root.classList.remove("is--full-screen"),e.htmlTag.classList.remove("no-scroll"),e.root.classList.add("is--complete")),2===t.data&&(e.root.classList.remove("is--full-screen"),e.htmlTag.classList.remove("no-scroll"),e.root.classList.add("is--paused")),1===t.data&&(e.root.classList.remove("is--complete","is--paused"),e.root.classList.add("is--full-screen"),e.htmlTag.classList.add("no-scroll"))})}}]),t}(f.default);t.default=d},546:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
1Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(255),c=i(l),f=n(18),d=i(f),h=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),u(t,[{key:"componentDidMount",value:function(){this.smallValue=-70,this.largeValue=-140,this.mq=window.matchMedia("(max-width: 1023px)"),this.scrollOffset=window.innerWidth<1023?this.smallValue:this.largeValue,this.links=[].concat(r(this.root.querySelectorAll('[data-ref="scroll-link"]'))),this.bindEventListeners()}},{key:"bindEventListeners",value:function(){var e=this;this.links.forEach(function(t){t.addEventListener("click",e.handleClick.bind(e),!0)}),this.mq.addListener(function(t){t.matches?e.scrollOffset=e.smallValue:e.scrollOffset=e.largeValue})}},{key:"handleClick",value:function(e){e.preventDefault();var t="#"+e.target.getAttribute("data-target");(0,c.default)(t,{offset:this.scrollOffset})}}]),t}(d.default);t.default=h},547:function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=n(18),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"componentDidMount",value:function(){this.links=[].concat(i(this.root.querySelectorAll('[data-ref="link"]'))),this.playersWrapper=this.mount.querySelector('[data-ref="squad-list"]'),this.bindEventListeners()}},{key:"bindEventListeners",value:function(){var e=this;this.links.forEach(function(t){t.addEventListener("click",e.handleClick.bind(e),!0)})}},{key:"handleClick",value:function(e){if(e.preventDefault(),!e.currentTarget.classList.contains("is--active")){var t=e.target.href.split("#")[1],n=[].concat(i(this.playersWrapper.querySelectorAll('[data-ref="player"]'))),r=[].concat(i(this.playersWrapper.querySelectorAll('[data-group="'+t+'"]')));this.links.forEach(function(e){e.classList.remove("is--active"),e.removeAttribute("aria-disabled"),e.removeAttribute("tabindex")}),e.target.classList.add("is--active"),e.target.setAttribute("aria-disabled","true"),e.target.setAttribute("tabindex","-1"),n.forEach(function(e){e.classList.add("is--hidden")}),setTimeout(function(){("all"===t?n:r).forEach(function(e){e.classList.remove("is--hidden")})},150)}}}]),t}(l.default);t.default=c},548:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
1Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(488),u=n(18),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=function(e){function t(){return i(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),a(t,[{key:"componentDidMount",value:function(){this.mq=window.matchMedia("screen and (min-width: 992px)"),this.nav=this.mount.querySelector(".squad-stats__players-nav"),this.mq.matches&&this.initCarousel(),this.attachListeners()}},{key:"attachListeners",value:function(){this.mq.addListener(this.handleMq.bind(this))}},{key:"handleMq",value:function(e){e.matches?this.initCarousel():this.destroyCarousel()}},{key:"initCarousel",value:function(){var e=6,t=this.root.children.length;t<e&&(e=t),this.carousel=(0,s.tns)({container:this.root,controlsContainer:this.nav,items:e,loop:!1,nav:!1,slideBy:"page"})}},{key:"destroyCarousel",value:function(){this.carousel.destroy()}}]),t}(l.default);t.default=c},549:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(817),c=i(l),f=n(826),d=i(f),h=n(18),p=i(h),y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),u(t,[{key:"componentDidMount",value:function(){var e=this;if(window.sr||(window.sr=new d.default),this.countItems=[].concat(r(this.root.querySelectorAll('[data-ref="item-stat-value"]'))),this.countDuration=2.5,this.options={useEasing:!1,useGrouping:!1,separator:","},this.isMobile=window.matchMedia("screen and (max-width: 992px)").matches,this.isMobile)return void this.countItems.forEach(function(t){e.startCountAnim(t)});window.sr.reveal(this.countItems,{viewFactor:1,mobile:!1,afterReveal:function(t){e.startCountAnim(t)}})}},{key:"startCountAnim",value:function(e){var t=e.getAttribute("count-value"),n=new c.default(e,0,t,0,this.countDuration,this.options);n.error||n.start()}}]),t}(p.default);t.default=y},550:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}
1(),s=n(18),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=function(e){function t(){return i(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),a(t,[{key:"componentDidMount",value:function(){this.panel=this.root.nextElementSibling,!this.panel.dataset.ref||this.panel.dataset.ref&&this.panel.dataset.ref,this.close=this.panel.querySelector('[data-ref="ticketInfoClose"]'),this.attachListeners()}},{key:"attachListeners",value:function(){this.root.addEventListener("click",this.toggleHiddenClass.bind(this),!0),this.close.addEventListener("click",this.toggleHiddenClass.bind(this),!0)}},{key:"toggleHiddenClass",value:function(e){e.preventDefault(),this.panel.classList.toggle("tickets__info--hidden")}}]),t}(u.default);t.default=l},551:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(84),c=i(l),f=n(18),d=i(f),h=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),u(t,[{key:"componentDidMount",value:function(){this.playButton=[].concat(r(this.root.querySelectorAll('[data-ref="play-button"]'))),this.bindEventListeners()}},{key:"bindEventListeners",value:function(){var e=this;this.playButton.forEach(function(t){t.addEventListener("click",e.handleClick.bind(e),!0)})}},{key:"handleClick",value:function(e){var t=this;e.preventDefault();var n=this.root.getAttribute("data-video-id"),i=this.root.classList.contains("is--loaded"),r=this.root.classList.contains("is--playing");i&&!r?this.player.playVideo():i&&r&&this.player.pauseVideo(),this.player||(this.player=new c.default(""+n,{videoId:""+n,playerVars:{autoplay:1,disablekb:0,enablejsapi:1,loop:0,modestbranding:1,playsinline:0,rel:0,showinfo:0,color:"white",iv_load_policy:3}}),this.player.playVideo(),this.root.classList.add("is--loading"),this.root.classList.add("is--loaded")),this.player.on("stateChange",function(e){0!==e.data&&2!==e.data||t.root.classList.remove("is--playing"),1===e.data&&(t.root.classList.remove("is--loading"),t.root.classList.add("is--playing"))})}}]),t}(d.default);t.default=h},554:function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}
1(),u=n(18),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"componentDidMount",value:function(){var e=this;this.answerOption=[].concat(i(this.root.querySelectorAll('[data-ref="comp-option"]'))),this.ctaButton=this.root.querySelector('[data-ref="cta-button"]'),this.successContainter=this.root.querySelector('[data-ref="entry-success"]'),this.errorContainter=this.root.querySelector('[data-ref="entry-error"]'),this.APIURL=this.props.url,this.APIANSWERURL=this.props.answerurl,this.scConfig=window.engms.compMessage,this.signUpRedirect=this.root.querySelector('[data-ref="account-signup-redirect"]'),this.competitionId=this.root.querySelector('[data-ref="competition-id"]').value,this.pollResultContainer=this.root.querySelector('[data-ref="poll-result-block"]'),this.pollResultAnswers=this.root.querySelector('[data-ref="poll-result-block-answers"]'),this.pollResultErrorContainter=this.root.querySelector('[data-ref="poll-result-error"]'),window.onload=function(){e.getPollsResult()},this.bindEventListeners(),this.getLocalStorage(),this.handleValidation()}},{key:"bindEventListeners",value:function(){var e=this;this.answerOption.forEach(function(t){t.addEventListener("click",e.handleValidation.bind(e))}),this.ctaButton.addEventListener("click",this.handleAjaxCall.bind(this))}},{key:"resetForm",value:function(){this.root.classList.remove("is--success"),this.root.classList.remove("is--error"),this.answerOption.forEach(function(e){e.checked=!1}),this.ctaButton.disabled=!0}},{key:"handleValidation",value:function(){var e=this.root.querySelector('input[data-ref="comp-option"]:checked');e?(this.selectAnswer=e,this.ctaButton.disabled=!1):this.ctaButton.disabled=!0}},{key:"getPollsResult",value:function(){var e=this,t=new XMLHttpRequest;t.onreadystatechange=function(){4===t.readyState&&e.handleGetResponse(t)},t.open("GET",this.APIANSWERURL+"?param="+this.competitionId,!0),t.send()}},{key:"handleAjaxCall",value:function(e){var t=this;e.preventDefault(),this.ctaButton.classList.add("is--submitting"),this.ctaButton.disabled=!0;var n=new XMLHttpRequest;void 0==this.selectAnswer.id?this.setLocalStorage(this.selectAnswer):this.setLocalStorage(this.selectAnswer.id),n.onreadystatechange=function(){4===n.readyState&&t.handleResponse(n)},void 0==this.selectAnswer.value?n.open("POST",this.APIURL+"?param="+this.selectAnswer,!0):n.open("POST",this.APIURL+"?param="+this.selectAnswer.value,!0),n.send()}},{key:"handleResponse",value:function(e){if(0===e.status&&0===e.responseText.length){var t=this.errorContainter.getElementsByTagName("p")[0],n={message:this.scConfig.cannotComplete,targetDiv:t};this.renderResult(n)}else{var i=e.status,r=e.responseText,o={code:i,message:JSON.parse(r),targetDiv:""};if(418===i)window.location.href=this.signUpRedirect.value+"?returnUrl="+location.href;else if(200===i)this.getPollsResult();else if(409===i){var a=this.errorContainter.getElementsByTagName("p")[0];o.targetDiv=a,this.renderResult(o)}else{var s=this.errorContainter.getElementsByTagName("p")[0];o.targetDiv=s,this.renderResult(o)}}}},{key:"handleGetResponse",value:function(e){var t=e.status,n=e.responseText,i={code:t,message:JSON.parse(n),targetDiv:""};if(200===t){var r=this.pollResultAnswers;i.targetDiv=r,i.message.AlreadyAnswered||(i.message=""),this.renderResult(i,!0)}else{var o=this.pollResultErrorContainter.getElementsByTagName("p")[0];i.targetDiv=o,this.renderResult(i)}}},{key:"renderResult",value:function(e,t){var n="";t?(n="is--success",this.removeLocalStorage()):n="is--error";var i=e.message,r=e.targetDiv;if(i.AlreadyAnswered){this.root.querySelector("form").style.display="none",this.pollResultContainer.style.display="block";for(var o="",a=0;a<i.Answers.length;a++)o=o+"<div class='competition-form__question-row polling-btn'><p class='venu-details'>"+i.Answers[a].Answer+" - "+i.Answers[a].AnswerPercent+"%</p></div>";r.innerHTML=o}else this.pollResultContainer.style.display="none",this.root.querySelector("form").style.display="block",r.innerHTML=""+i;this.root.classList.add(n),this.ctaButton.classList.remove("is--submitting"),""==i?this.resetForm():this.ctaButton.disabled=!1}},{key:"getLocalStorage",value:function(){var e=localStorage.getItem("fa-comp-answer");if(e){var t=document.getElementById("competition-form__search-input");if(t)t.setAttribute("data-value",e);else{var n=this.root.querySelector("#"+e);n&&(n.checked=!0)}}}},{key:"setLocalStorage",value:function(e){localStorage.setItem("fa-comp-answer",e)}},{key:"removeLocalStorage",value:function(){localStorage.removeItem("fa-comp-answer")}}]),t}(l.default);t.default=c},593:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()})}},609:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(593),u=i(s),l=n(535),c=i(l),f=n(549),d=i(f),h=n(547),p=i(h),y=n(546),m=i(y),v=n(548),g=i(v),b=n(545),w=i(b),E=n(543),_=i(E),O=n(533),k=i(O),A=n(550),x=i(A),C=n(532),S=i(C),T=n(541),L=i(T),M=n(542),P=i(M),j=n(534),N=i(j),R=n(551),D=i(R),q=n(544),V=i(q),B=n(536),I=i(B),F=n(540),H=i(F),z=n(539),W=i(z),U=n(554),Y=i(U);n(145);var G=function(){function e(t){o(this,e),this.mount=document.querySelector(t.mount)||"",this.components=t.components||{},this.initComponents()}return a(e,[{key:"initComponents",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.mount;t&&[].concat(r(t.querySelectorAll("[data-component]"))).forEach(function(t){var n=t,i=n.dataset.component.split(" ");n.initalisedComponents||(n.initalisedComponents={}),i.forEach(function(t){if(!n.initalisedComponents[t]){var i=e.components[(0,u.default)(t)];if(i){var r=new i({mount:e.mount,root:n});n.initalisedComponents[t]=r}}})})}}]),e}(),X=new G({components:{numberRoll:d.default,countdown:c.default,playerCarousel:g.default,scrollToSection:m.default,squadNav:p.default,heroVideoPlayer:w.default,newsCarousel:_.default,contentTabs:k.default,ticketsInfo:x.default,competitionForm:S.default,loadStacklaWidget:L.default,modal:P.default,contentToggle:N.default,videoItem:D.default,socialShare:V.default,duplicate:I.default,loadOptaWidget:H.default,imageCaptions:W.default,englandSupportersPolls:Y.default},mount:"#mount"});t.default=X},816:function(e,t){var e;!function(e){"use strict";function t(e,t){var n=e.getTime();return e.setMonth(e.getMonth()+t),Math.round((e.getTime()-n)/B)}function n(e){var t=e.getTime(),n=new Date(t);return n.setMonth(e.getMonth()+1),Math.round((n.getTime()-t)/B)}function i(e){var t=e.getTime(),n=new Date(t);return n.setFullYear(e.getFullYear()+1),Math.round((n.getTime()-t)/B)}function r(e,t){if(t=t instanceof Date||null!==t&&isFinite(t)?new Date(+t):new Date,!e)return t;var n=+e.value||0;return n?(t.setTime(t.getTime()+n),t):(n=+e.milliseconds||0,n&&t.setMilliseconds(t.getMilliseconds()+n),n=+e.seconds||0,n&&t.setSeconds(t.getSeconds()+n),n=+e.minutes||0,n&&t.setMinutes(t.getMinutes()+n),n=+e.hours||0,n&&t.setHours(t.getHours()+n),n=+e.weeks||0,n&&(n*=I),n+=+e.days||0,n&&t.setDate(t.getDate()+n),n=+e.months||0,n&&t.setMonth(t.getMonth()+n),n=+e.millennia||0,n&&(n*=W),n+=+e.centuries||0,n&&(n*=z),n+=+e.decades||0,n&&(n*=H),n+=+e.years||0,n&&t.setFullYear(t.getFullYear()+n),t)}function o(e,t){return E(e)+(1===e?y[t]:m[t])}function a(){}function s(e,t){switch(t){case"seconds":if(e.seconds!==D||isNaN(e.minutes))return;e.minutes++,e.seconds=0;case"minutes":if(e.minutes!==q||isNaN(e.hours))return;e.hours++,e.minutes=0;case"hours":if(e.hours!==V||isNaN(e.days))return;e.days++,e.hours=0;case"days":if(e.days!==I||isNaN(e.weeks))return;e.weeks++,e.days=0;case"weeks":if(e.weeks!==n(e.refMonth)/I||isNaN(e.months))return;e.months++,e.weeks=0;case"months":if(e.months!==F||isNaN(e.years))return;e.years++,e.months=0;case"years":if(e.years!==H||isNaN(e.decades))return;e.decades++,e.years=0;case"decades":if(e.decades!==z||isNaN(e.centuries))return;e.centuries++,e.decades=0;case"centuries":if(e.centuries!==W||isNaN(e.millennia))return;e.millennia++,e.centuries=0}}function u(e,t,n,i,r,o){return e[n]>=0&&(t+=e[n],delete e[n]),t/=r,t+1<=1?0:e[i]>=0?(e[i]=+(e[i]+t).toFixed(o),s(e,i),0):t}function l(e,t){var r=u(e,0,"milliseconds","seconds",R,t);if(r&&(r=u(e,r,"seconds","minutes",D,t))&&(r=u(e,r,"minutes","hours",q,t))&&(r=u(e,r,"hours","days",V,t))&&(r=u(e,r,"days","weeks",I,t))&&(r=u(e,r,"
1weeks","months",n(e.refMonth)/I,t))&&(r=u(e,r,"months","years",i(e.refMonth)/n(e.refMonth),t))&&(r=u(e,r,"years","decades",H,t))&&(r=u(e,r,"decades","centuries",z,t))&&(r=u(e,r,"centuries","millennia",W,t)))throw Error("Fractional unit overflow")}function c(e){var n;for(e.milliseconds<0?(n=U(-e.milliseconds/R),e.seconds-=n,e.milliseconds+=n*R):e.milliseconds>=R&&(e.seconds+=Y(e.milliseconds/R),e.milliseconds%=R),e.seconds<0?(n=U(-e.seconds/D),e.minutes-=n,e.seconds+=n*D):e.seconds>=D&&(e.minutes+=Y(e.seconds/D),e.seconds%=D),e.minutes<0?(n=U(-e.minutes/q),e.hours-=n,e.minutes+=n*q):e.minutes>=q&&(e.hours+=Y(e.minutes/q),e.minutes%=q),e.hours<0?(n=U(-e.hours/V),e.days-=n,e.hours+=n*V):e.hours>=V&&(e.days+=Y(e.hours/V),e.hours%=V);e.days<0;)e.months--,e.days+=t(e.refMonth,1);e.days>=I&&(e.weeks+=Y(e.days/I),e.days%=I),e.months<0?(n=U(-e.months/F),e.years-=n,e.months+=n*F):e.months>=F&&(e.years+=Y(e.months/F),e.months%=F),e.years>=H&&(e.decades+=Y(e.years/H),e.years%=H,e.decades>=z&&(e.centuries+=Y(e.decades/z),e.decades%=z,e.centuries>=W&&(e.millennia+=Y(e.centuries/W),e.centuries%=W)))}function f(e,n,i,r){var o=0;!(n&j)||o>=i?(e.centuries+=e.millennia*W,delete e.millennia):e.millennia&&o++,!(n&P)||o>=i?(e.decades+=e.centuries*z,delete e.centuries):e.centuries&&o++,!(n&M)||o>=i?(e.years+=e.decades*H,delete e.decades):e.decades&&o++,!(n&L)||o>=i?(e.months+=e.years*F,delete e.years):e.years&&o++,!(n&T)||o>=i?(e.months&&(e.days+=t(e.refMonth,e.months)),delete e.months,e.days>=I&&(e.weeks+=Y(e.days/I),e.days%=I)):e.months&&o++,!(n&S)||o>=i?(e.days+=e.weeks*I,delete e.weeks):e.weeks&&o++,!(n&C)||o>=i?(e.hours+=e.days*V,delete e.days):e.days&&o++,!(n&x)||o>=i?(e.minutes+=e.hours*q,delete e.hours):e.hours&&o++,!(n&A)||o>=i?(e.seconds+=e.minutes*D,delete e.minutes):e.minutes&&o++,!(n&k)||o>=i?(e.milliseconds+=e.seconds*R,delete e.seconds):e.seconds&&o++,n&O&&!(o>=i)||l(e,r)}function d(e,t,n,i,r,o){var a=new Date;if(e.start=t=t||a,e.end=n=n||a,e.units=i,e.value=n.getTime()-t.getTime(),e.value<0){var s=n;n=t,t=s}e.refMonth=new Date(t.getFullYear(),t.getMonth(),15,12,0,0);try{e.millennia=0,e.centuries=0,e.decades=0,e.years=n.getFullYear()-t.getFullYear(),e.months=n.getMonth()-t.getMonth(),e.weeks=0,e.days=n.getDate()-t.getDate(),e.hours=n.getHours()-t.getHours(),e.minutes=n.getMinutes()-t.getMinutes(),e.seconds=n.getSeconds()-t.getSeconds(),e.milliseconds=n.getMilliseconds()-t.getMilliseconds(),c(e),f(e,i,r,o)}finally{delete e.refMonth}return e}function h(e){return e&O?R/30:e&k?R:e&A?R*D:e&x?R*D*q:e&C?R*D*q*V:R*D*q*V*I}function p(e,t,n,i,o){var s;n=+n||N,i=i>0?i:NaN,o=o>0?o<20?Math.round(o):20:0;var u=null;"function"==typeof e?(s=e,e=null):e instanceof Date||(null!==e&&isFinite(e)?e=new Date(+e):("object"==typeof u&&(u=e),e=null));var l=null;if("function"==typeof t?(s=t,t=null):t instanceof Date||(null!==t&&isFinite(t)?t=new Date(+t):("object"==typeof t&&(l=t),t=null)),u&&(e=r(u,t)),l&&(t=r(l,e)),!e&&!t)return new a;if(!s)return d(new a,e,t,n,i,o);var c,f=h(n),p=function(){s(d(new a,e,t,n,i,o),c)};return p(),c=setInterval(p,f)}var y,m,v,g,b,w,E,_,O=1,k=2,A=4,x=8,C=16,S=32,T=64,L=128,M=256,P=512,j=1024,N=L|T|C|x|A|k,R=1e3,D=60,q=60,V=24,B=V*q*D*R,I=7,F=12,H=10,z=10,W=10,U=Math.ceil,Y=Math.floor;a.prototype.toString=function(e){var t=_(this),n=t.length;if(!n)return e?""+e:b;if(1===n)return t[0];var i=v+t.pop();return t.join(g)+i},a.prototype.toHTML=function(e,t){e=e||"span";var n=_(this),i=n.length;if(!i)return t=t||b,t?"<"+e+">"+t+"</"+e+">":t;for(var r=0;r<i;r++)n[r]="<"+e+">"+n[r]+"</"+e+">";if(1===i)return n[0];var o=v+n.pop();return n.join(g)+o},a.prototype.addTo=function(e){return r(this,e)},_=function(e){var t=[],n=e.millennia;return n&&t.push(w(n,10)),n=e.centuries,n&&t.push(w(n,9)),n=e.decades,n&&t.push(w(n,8)),n=e.years,n&&t.push(w(n,7)),n=e.months,n&&t.push(w(n,6)),n=e.weeks,n&&t.push(w(n,5)),n=e.days,n&&t.push(w(n,4)),n=e.hours,n&&t.push(w(n,3)),n=e.minutes,n&&t.push(w(n,2)),n=e.seconds,n&&t.push(w(n,1)),n=e.milliseconds,n&&t.push(w(n,0)),t},p.MILLISECONDS=O,p.SECONDS=k,p.MINUTES=A,p.HOURS=x,p.DAYS=C,p.WEEKS=S,p.MONTHS=T,p.YEARS=L,p.DECADES=M,p.CENTURIES=P,p.MILLENNIA=j,p.DEFAULTS=N,p.ALL=j|P|M|L|T|S|C|x|A|k|O;var G=p.setFormat=function(e){if(e){if("singular"in e||"plural"in e){var t=e.singular||[];t.split&&(t=t.split("|"));var n=e.plural||[];n.split&&(n=n.split("|"));for(var i=0;i<=10;i++)y[i]=t[i]||y[i],m[i]=n[i]||m[i]}"string"==typeof e.last&&(v=e.last),"string"==typeof e.delim&&(g=e.delim),"string"==typeof e.empty&&(b=e.empty),"function"==typeof e.formatNumber&&(E=e.formatNumber),"function"==typeof e.formatter&&(w=e.formatter)}},X=p.resetFormat=function(){y=" millisecond| second| minute| hour| day| week| month| year| decade| century| millennium".split("|"),m=" milliseconds| seconds| minutes| hours| days| weeks| months| years| decades| centuries| millennia".split("|"),v=" and ",g=", ",b="",E=function(e){return e},w=o};p.setLabels=function(e,t,n,i,r,o,a){G({singular:e,plural:t,last:n,delim:i,empty:r,formatNumber:o,formatter:a})},p.resetLabels=X,X(),e&&e.exports?e.exports=p:"function"==typeof window.define&&void 0!==window.define.amd&&window.define("countdown",[],function(){return p})}(e)},817:function(e,t,n){var i,r;!function(o,a){i=a,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(0,function(e,t,n){return function(e,t,n,i,r,o){function a(e){var t,n,i,r,o,a,s=e<0;if(e=Math.abs(e).toFixed(l.decimals),e+="",t=e.split("."),n=t[0],i=t.length>1?l.options.decimal+t[1]:"",l.options.useGrouping){for(r="",o=0,a=n.length;o<a;++o)0!==o&&o%3==0&&(r=l.options.separator+r),r=n[a-o-1]+r;n=r}return l.options.numerals.length&&(n=n.replace(/[0-9]/g,function(e){return l.options.numerals[+e]}),i=i.replace(/[0-9]/g,function(e){return l.options.numerals[+e]})),(s?"-":"")+l.options.prefix+n+i+l.options.suffix}function s(e,t,n,i){return n*(1-Math.pow(2,-10*e/i))*1024/1023+t}function u(e){return"number"==typeof e&&!isNaN(e)}var l=this;if(l.version=function(){return"1.9.3"},l.options={useEasing:!0,useGrouping:!0,separator:",",decimal:".",easingFn:s,formattingFn:a,prefix:"",suffix:"",numerals:[]},o&&"object"==typeof o)for(var c in l.options)o.hasOwnProperty(c)&&null!==o[c]&&(l.options[c]=o[c]);""===l.options.separator?l.options.useGrouping=!1:l.options.separator=""+l.options.separator;for(var f=0,d=["webkit","moz","ms","o"],h=0;h<4&&!window.requestAnimationFrame;++h)window.requestAnimationFrame=window[d[h]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[d[h]+"CancelAnimationFrame"]||window[d[h]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,t){var n=(new Date).getTime(),i=Math.max(0,16-(n-f)),r=window.setTimeout(function(){e(n+i)},i);return f=n+i,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)}),l.initialize=function(){return!(!l.initialized&&(l.error="",l.d="string"==typeof e?document.getElementById(e):e,l.d?(l.startVal=+t,l.endVal=+n,u(l.startVal)&&u(l.endVal)?(l.decimals=Math.max(0,i||0),l.dec=Math.pow(10,l.decimals),l.duration=1e3*+r||2e3,l.countDown=l.startVal>l.endVal,l.frameVal=l.startVal,l.initialized=!0,0):(l.error="[CountUp] startVal ("+t+") or endVal ("+n+") is not a number",1)):(l.error="[CountUp] target is null or undefined",1)))},l.printValue=function(e){var t=l.options.formattingFn(e);"INPUT"===l.d.tagName?this.d.value=t:"text"===l.d.tagName||"tspan"===l.d.tagName?this.d.textContent=t:this.d.innerHTML=t},l.count=function(e){l.startTime||(l.startTime=e),l.timestamp=e;var t=e-l.startTime;l.remaining=l.duration-t,l.options.useEasing?l.countDown?l.frameVal=l.startVal-l.options.easingFn(t,0,l.startVal-l.endVal,l.duration):l.frameVal=l.options.easingFn(t,l.startVal,l.endVal-l.startVal,l.duration):l.countDown?l.frameVal=l.startVal-(l.startVal-l.endVal)*(t/l.duration):l.frameVal=l.startVal+(l.endVal-l.startVal)*(t/l.duration),l.countDown?l.frameVal=l.frameVal<l.endVal?l.endVal:l.frameVal:l.frameVal=l.frameVal>l.endVal?l.endVal:l.frameVal,l.frameVal=Math.round(l.frameVal*l.dec)/l.dec,l.printValue(l.frameVal),t<l.duration?l.rAF=requestAnimationFrame(l.count):l.callback&&l.callback()},l.start=function(e){l.initialize()&&(l.callback=e,l.rAF=requestAnimationFrame(l.count))},l.pauseResume=function(){l.paused?(l.paused=!1,delete l.startTime,l.duration=l.remaining,l.startVal=l.frameVal,requestAnimationFrame(l.count)):(l.paused=!0,cancelAnimationFrame(l.rAF))},l.reset=function(){l.paused=!1,delete l.startTime,l.initialized=!1,l.initialize()&&(cancelAnimationFrame(l.rAF),l.printValue(l.startVal))},l.update=function(e){if(l.initialize()){if(e=+e,!u(e))return void(l.error="[CountUp] update(
1) - new endVal is not a number: "+e);l.error="",e!==l.frameVal&&(cancelAnimationFrame(l.rAF),l.paused=!1,delete l.startTime,l.startVal=l.frameVal,l.endVal=e,l.countDown=l.startVal>l.endVal,l.rAF=requestAnimationFrame(l.count))}},l.initialize()&&l.printValue(l.startVal)}})},826:function(e,t,n){var i;!function(){"use strict";function r(e){return void 0===this||Object.getPrototypeOf(this)!==r.prototype?new r(e):(S=this,S.version="3.4.0",S.tools=new C,S.isSupported()?(S.tools.extend(S.defaults,e||{}),S.defaults.container=o(S.defaults),S.store={elements:{},containers:[]},S.sequences={},S.history=[],S.uid=0,S.initialized=!1):"undefined"!=typeof console&&console,S)}function o(e){if(e&&e.container){if("string"==typeof e.container)return window.document.documentElement.querySelector(e.container);if(S.tools.isNode(e.container))return e.container}return S.defaults.container}function a(e,t){return"string"==typeof e?Array.prototype.slice.call(t.querySelectorAll(e)):S.tools.isNode(e)?[e]:S.tools.isNodeList(e)?Array.prototype.slice.call(e):Array.isArray(e)?e.filter(S.tools.isNode):[]}function s(){return++S.uid}function u(e,t,n){t.container&&(t.container=n),e.config?e.config=S.tools.extendClone(e.config,t):e.config=S.tools.extendClone(S.defaults,t),"top"===e.config.origin||"bottom"===e.config.origin?e.config.axis="Y":e.config.axis="X"}function l(e){var t=window.getComputedStyle(e.domEl);e.styles||(e.styles={transition:{},transform:{},computed:{}},e.styles.inline=e.domEl.getAttribute("style")||"",e.styles.inline+="; visibility: visible; ",e.styles.computed.opacity=t.opacity,t.transition&&"all 0s ease 0s"!==t.transition?e.styles.computed.transition=t.transition+", ":e.styles.computed.transition=""),e.styles.transition.instant=c(e,0),e.styles.transition.delayed=c(e,e.config.delay),e.styles.transform.initial=" -webkit-transform:",e.styles.transform.target=" -webkit-transform:",f(e),e.styles.transform.initial+="transform:",e.styles.transform.target+="transform:",f(e)}function c(e,t){var n=e.config;return"-webkit-transition: "+e.styles.computed.transition+"-webkit-transform "+n.duration/1e3+"s "+n.easing+" "+t/1e3+"s, opacity "+n.duration/1e3+"s "+n.easing+" "+t/1e3+"s; transition: "+e.styles.computed.transition+"transform "+n.duration/1e3+"s "+n.easing+" "+t/1e3+"s, opacity "+n.duration/1e3+"s "+n.easing+" "+t/1e3+"s; "}function f(e){var t,n=e.config,i=e.styles.transform;t="top"===n.origin||"left"===n.origin?/^-/.test(n.distance)?n.distance.substr(1):"-"+n.distance:n.distance,parseInt(n.distance)&&(i.initial+=" translate"+n.axis+"("+t+")",i.target+=" translate"+n.axis+"(0)"),n.scale&&(i.initial+=" scale("+n.scale+")",i.target+=" scale(1)"),n.rotate.x&&(i.initial+=" rotateX("+n.rotate.x+"deg)",i.target+=" rotateX(0)"),n.rotate.y&&(i.initial+=" rotateY("+n.rotate.y+"deg)",i.target+=" rotateY(0)"),n.rotate.z&&(i.initial+=" rotateZ("+n.rotate.z+"deg)",i.target+=" rotateZ(0)"),i.initial+="; opacity: "+n.opacity+";",i.target+="; opacity: "+e.styles.computed.opacity+";"}function d(e){var t=e.config.container;t&&-1===S.store.containers.indexOf(t)&&S.store.containers.push(e.config.container),S.store.elements[e.id]=e}function h(e,t,n){var i={target:e,config:t,interval:n};S.history.push(i)}function p(){if(S.isSupported()){v();for(var e=0;e<S.store.containers.length;e++)S.store.containers[e].addEventListener("scroll",y),S.store.containers[e].addEventListener("resize",y);S.initialized||(window.addEventListener("scroll",y),window.addEventListener("resize",y),S.initialized=!0)}return S}function y(){T(v)}function m(){var e,t,n,i;S.tools.forOwn(S.sequences,function(r){i=S.sequences[r],e=!1;for(var o=0;o<i.elemIds.length;o++)n=i.elemIds[o],t=S.store.elements[n],x(t)&&!e&&(e=!0);i.active=e})}function v(){var e,t;m(),S.tools.forOwn(S.store.elements,function(n){t=S.store.elements[n],e=E(t),w(t)?(t.config.beforeReveal(t.domEl),e?t.domEl.setAttribute("style",t.styles.inline+t.
1styles.transform.target+t.styles.transition.delayed):t.domEl.setAttribute("style",t.styles.inline+t.styles.transform.target+t.styles.transition.instant),b("reveal",t,e),t.revealing=!0,t.seen=!0,t.sequence&&g(t,e)):_(t)&&(t.config.beforeReset(t.domEl),t.domEl.setAttribute("style",t.styles.inline+t.styles.transform.initial+t.styles.transition.instant),b("reset",t),t.revealing=!1)})}function g(e,t){var n=0,i=0,r=S.sequences[e.sequence.id];r.blocked=!0,t&&"onload"===e.config.useDelay&&(i=e.config.delay),e.sequence.timer&&(n=Math.abs(e.sequence.timer.started-new Date),window.clearTimeout(e.sequence.timer)),e.sequence.timer={started:new Date},e.sequence.timer.clock=window.setTimeout(function(){r.blocked=!1,e.sequence.timer=null,y()},Math.abs(r.interval)+i-n)}function b(e,t,n){var i=0,r=0,o="after";switch(e){case"reveal":r=t.config.duration,n&&(r+=t.config.delay),o+="Reveal";break;case"reset":r=t.config.duration,o+="Reset"}t.timer&&(i=Math.abs(t.timer.started-new Date),window.clearTimeout(t.timer.clock)),t.timer={started:new Date},t.timer.clock=window.setTimeout(function(){t.config[o](t.domEl),t.timer=null},r-i)}function w(e){if(e.sequence){var t=S.sequences[e.sequence.id];return t.active&&!t.blocked&&!e.revealing&&!e.disabled}return x(e)&&!e.revealing&&!e.disabled}function E(e){var t=e.config.useDelay;return"always"===t||"onload"===t&&!S.initialized||"once"===t&&!e.seen}function _(e){if(e.sequence){return!S.sequences[e.sequence.id].active&&e.config.reset&&e.revealing&&!e.disabled}return!x(e)&&e.config.reset&&e.revealing&&!e.disabled}function O(e){return{width:e.clientWidth,height:e.clientHeight}}function k(e){if(e&&e!==window.document.documentElement){var t=A(e);return{x:e.scrollLeft+t.left,y:e.scrollTop+t.top}}return{x:window.pageXOffset,y:window.pageYOffset}}function A(e){var t=0,n=0,i=e.offsetHeight,r=e.offsetWidth;do{isNaN(e.offsetTop)||(t+=e.offsetTop),isNaN(e.offsetLeft)||(n+=e.offsetLeft),e=e.offsetParent}while(e);return{top:t,left:n,height:i,width:r}}function x(e){var t=A(e.domEl),n=O(e.config.container),i=k(e.config.container),r=e.config.viewFactor,o=t.height,a=t.width,s=t.top,u=t.left,l=s+o,c=u+a;return function(){var t=s+o*r,f=u+a*r,d=l-o*r,h=c-a*r,p=i.y+e.config.viewOffset.top,y=i.x+e.config.viewOffset.left,m=i.y-e.config.viewOffset.bottom+n.height,v=i.x-e.config.viewOffset.right+n.width;return t<m&&d>p&&f<v&&h>y}()||function(){return"fixed"===window.getComputedStyle(e.domEl).position}()}function C(){}var S,T;r.prototype.defaults={origin:"bottom",distance:"20px",duration:500,delay:0,rotate:{x:0,y:0,z:0},opacity:0,scale:.9,easing:"cubic-bezier(0.6, 0.2, 0.1, 1)",container:window.document.documentElement,mobile:!0,reset:!1,useDelay:"always",viewFactor:.2,viewOffset:{top:0,right:0,bottom:0,left:0},beforeReveal:function(e){},beforeReset:function(e){},afterReveal:function(e){},afterReset:function(e){}},r.prototype.isSupported=function(){var e=document.documentElement.style;return"WebkitTransition"in e&&"WebkitTransform"in e||"transition"in e&&"transform"in e},r.prototype.reveal=function(e,t,n,i){var r,c,f,y,m,v;if(void 0!==t&&"number"==typeof t?(n=t,t={}):void 0!==t&&null!==t||(t={}),r=o(t),c=a(e,r),!c.length)return S;n&&"number"==typeof n&&(v=s(),m=S.sequences[v]={id:v,interval:n,elemIds:[],active:!1});for(var g=0;g<c.length;g++)y=c[g].getAttribute("data-sr-id"),y?f=S.store.elements[y]:(f={id:s(),domEl:c[g],seen:!1,revealing:!1},f.domEl.setAttribute("data-sr-id",f.id)),m&&(f.sequence={id:m.id,index:m.elemIds.length},m.elemIds.push(f.id)),u(f,t,r),l(f),d(f),S.tools.isMobile()&&!f.config.mobile||!S.isSupported()?(f.domEl.setAttribute("style",f.styles.inline),f.disabled=!0):f.revealing||f.domEl.setAttribute("style",f.styles.inline+f.styles.transform.initial);return!i&&S.isSupported()&&(h(e,t,n),S.initTimeout&&window.clearTimeout(S.initTimeout),S.initTimeout=window.setTimeout(p,0)),S},r.prototype.sync=function(){if(S.history.length&&S.isSupported()){for(var e=0;e<S.history.length;e++){var t=S.history[e];S.reveal(t.target,t.config,t.interval,!0)}p()}return S},C.prototype.isObject=function(e){return null!==e&&"object"==typeof e&&e.constructor===Object},C.prototype.isNode=function(e){return"object"==typeof window.Node?e instanceof window.Node:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},C.prototype.isNodeList=function(e){var t=Object.prototype.toString.call(e),n=/^\[object (HTMLCollection|NodeList|Object)\]$/;return"object"==typeof window.NodeList?e instanceof window.NodeList:e&&"object"==typeof e&&n.test(t)&&"number"==typeof e.length&&(0===e.length||this.isNode(e[0]))},C.prototype.forOwn=function(e,t){if(!this.isObject(e))throw new TypeError('Expected "object", but received "'+typeof e+'".');for(var n in e)e.hasOwnProperty(n)&&t(n)},C.prototype.extend=function(e,t){return this.forOwn(t,function(n){this.isObject(t[n])?(e[n]&&this.isObject(e[n])||(e[n]={}),this.extend(e[n],t[n])):e[n]=t[n]}.bind(this)),e},C.prototype.extendClone=function(e,t){return this.extend(this.extend({},e),t)},C.prototype.isMobile=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},T=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},void 0!==(i=function(){return r}.call(t,n,t,e))&&(e.exports=i)}()},835:function(e,t){Object.keys||(Object.keys=function(e){var t=[];
1for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t})},836:function(e,t,n){"use strict";function i(e,t,n,i){"insertRule"in e?e.insertRule(t+"{"+n+"}",i):e.addRule(t,n,i)}n(319);t.a=i},837:function(e,t,n){"use strict";var i=n(318);n.d(t,"a",function(){return r});var r=i.b?function(e,t){n.i(i.a)(e,t)||e.classList.add(t)}:function(e,t){n.i(i.a)(e,t)||(e.className+=" "+t)}},838:function(e,t,n){"use strict";function i(e,t,n){for(var i in t){var o=["touchstart","touchmove"].indexOf(i)>=0&&!n&&r.a;e.addEventListener(i,t[i],o)}}var r=n(487);t.a=i},839:function(e,t,n){"use strict";function i(e){for(var t=[],n=0,i=e.length;n<i;n++)t.push(e[n]);return t}t.a=i},84:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r="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},o=n(106),a=i(o),s=n(114),u=i(s),l=n(110),c=i(l),f=void 0;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=(0,a.default)();if(f||(f=(0,u.default)()),t.events)throw Error("Event handlers cannot be overwritten.");if("string"==typeof e&&!document.getElementById(e))throw Error('Element "'+e+'" does not exist.');t.events=c.default.proxyEvents(i);var o=new Promise(function(n){if("string"==typeof e||e instanceof HTMLElement)f.then(function(r){var o=new r.Player(e,t);return i.on("ready",function(){n(o)}),null});else{if(!("object"===(void 0===e?"undefined":r(e))&&e.playVideo instanceof Function))throw new TypeError("Unexpected state.");n(e)}}),s=c.default.promisifyPlayer(o,n);return s.on=i.on,s.off=i.off,s},e.exports=t.default},840:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=window,r=i.cancelAnimationFrame||i.mozCancelAnimationFrame||function(e){clearTimeout(e)}},841:function(e,t,n){"use strict";function i(){var e=document,t=n.i(r.a)(),i=n.i(o.a)(t),s=e.createElement("div"),u=!1;t.appendChild(s);try{for(var l,c="(10px * 10)",f=["calc"+c,"-moz-calc"+c,"-webkit-calc"+c],d=0;d<3;d++)if(l=f[d],s.style.width=l,100===s.offsetWidth){u=l.replace(c,"");break}}catch(e){}return t.fake?n.i(a.a)(t,i):s.remove(),u}var r=n(162),o=n(164),a=n(163);t.a=i},842:function(e,t,n){"use strict";function i(e){return["true","false"].indexOf(e)>=0?JSON.parse(e):e}t.a=i},843:function(e,t){"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)})},844:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i="classList"in document.createElement("_")},845:function(e,t,n){"use strict";function i(e){var t=document.createElement("style");return e&&t.setAttribute("media",e),document.querySelector("head").appendChild(t),t.sheet?t.sheet:t.styleSheet}t.a=i},846:function(e,t,n){"use strict";function i(){return{topics:{},on:function(e,t){this.topics[e]=this.topics[e]||[],this.topics[e].push(t)},off:function(e,t){if(this.topics[e])for(var n=0;n<this.topics[e].length;n++)if(this.topics[e][n]===t){this.topics[e].splice(n,1);break}},emit:function(e,t){t.type=e,this.topics[e]&&this.topics[e].forEach(function(n){n(t,e)})}}}t.a=i},847:function(e,t,n){"use strict";function i(){for(var e,t,n,i=arguments[0]||{},r=1,o=arguments.length;r<o;r++)if(null!==(e=arguments[r]))for(t in e)n=e[t],i!==n&&void 0!==n&&(i[t]=n);return i}t.a=i},848:function(e,t,n){"use strict";function i(e,t,n){for(var i=0,r=e.length;i<r;i++)t.call(n,e[i],i)}t.a=i},849:function(e,t,n){"use strict";function i(e,t){return e.getAttribute(t)}t.a=i},850:function(e,t,n){"use strict";function i(e){return("insertRule"in e?e.cssRules:e.rules).length}t.a=i},851:function(e,t,n){"use strict";function i(e,t){var n=!1;return/^Webkit/.test(e)?n="webkit"+t+"End":/^O/.test(e)?n="o"+t+"End":e&&(n=t.toLowerCase()+"end"),n}t.a=i},852:function(e,t,n){"use strict";function i(){var e=window.tnsId;return window.tnsId=e?e+1:1,"tns"+window.tnsId}t.a=i},853:function(e,t,n){"use strict";function i(e,t){var n=!1,i=Math.abs(90-Math.abs(e));return i>=90-t?n="horizontal":i<=t&&(n="vertical"),n}t.a=i},854:function(e,t,n){"use strict";function i(e){if(!e)return!1;if(!window.getComputedStyle)return!1;var t,i=document,s=n.i(r.a)(),u=n.i(o.a)(s),l=i.createElement("p"),c=e.length>9?"-"+e.slice(0,-9).toLowerCase()+"-":"";return c+="transform",s.insertBefore(l,null),l.style[e]="translate3d(1px,1px,1px)",t=window.getComputedStyle(l).getPropertyValue(c),s.fake?n.i(a.a)(s,u):l.remove(),void 0!==t&&t.length>0&&"none"!==t}var r=n(162),o=n(164),a=n(163);t.a=i},855:function(e,t,n){"use strict";function i(e,t){return e.hasAttribute(t)}t.a=i},856:function(e,t,n){"use strict";function i(e,t){"none"!==e.style.display&&(e.style.display="none")}t.a=i},857:function(e,t,n){"use strict";function i(e){return"none"!==window.getComputedStyle(e).display}t.a=i},858:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a){function s(){o-=u,c+=f,e.style[t]=n+c+l+i,o>0?setTimeout(s,u):a()}var u=Math.min(o,10),l=r.indexOf("%")>=0?"%":"px",r=r.replace(l,""),c=+e.style[t].replace(n,"").replace(i,"").replace(l,""),f=(r-c)/o*u;setTimeout(s,u)}t.a=i},859:function(e,t,n){"use strict";function i(){var e,t=document,i=n.i(r.a)(),s=n.i(o.a)(i),u=t.createElement("div"),l=t.createElement("style"),c="@media all and (min-width:1px){.tns-mq-test{position:absolute}}";return l.type="text/css",u.className="tns-mq-test",i.appendChild(l),i.appendChild(u),l.styleSheet?l.styleSheet.cssText=c:l.appendChild(t.createTextNode(c)),e=window.getComputedStyle?window.getComputedStyle(u).position:u.currentStyle.position,i.fake?n.i(a.a)(i,s):u.remove(),"absolute"===e}var r=n(162),o=n(164),a=n(163);t.a=i},860:function(e,t,n){"use strict";function i(){var e=document,t=n.i(r.a)(),i=n.i(o.a)(t),s=e.createElement("div"),u=e.createElement("div"),l="",c=!1;s.className="tns-t-subp2",u.className="tns-t-ct";for(var f=0;f<70;f++)l+="<div></div>";return u.innerHTML=l,s.appendChild(u),t.appendChild(s),c=Math.abs(s.getBoundingClientRect().left-u.children[
167].getBoundingClientRect().left)<2,t.fake?n.i(a.a)(t,i):s.remove(),c}var r=n(162),o=n(164),a=n(163);t.a=i},861:function(e,t,n){"use strict";function i(e,t){e=n.i(r.a)(e)||e instanceof Array?e:[e],t=t instanceof Array?t:[t];for(var i=t.length,o=e.length;o--;)for(var a=i;a--;)e[o].removeAttribute(t[a])}var r=n(486);t.a=i},862:function(e,t,n){"use strict";function i(e,t){"deleteRule"in e?e.deleteRule(t):e.removeRule(t)}n(319);t.a=i},863:function(e,t,n){"use strict";var i=n(318);n.d(t,"a",function(){return r});var r=i.b?function(e,t){n.i(i.a)(e,t)&&e.classList.remove(t)}:function(e,t){n.i(i.a)(e,t)&&(e.className=e.className.replace(t,""))}},864:function(e,t,n){"use strict";function i(e,t){for(var n in t){var i=["touchstart","touchmove"].indexOf(n)>=0&&r.a;e.removeEventListener(n,t[n],i)}}var r=n(487);t.a=i},865:function(e,t,n){"use strict";function i(e,t){if(e=n.i(r.a)(e)||e instanceof Array?e:[e],"[object Object]"===Object.prototype.toString.call(t))for(var i=e.length;i--;)for(var o in t)e[i].setAttribute(o,t[o])}var r=n(486);t.a=i},866:function(e,t,n){"use strict";function i(e,t,n,i){if(i)try{e.setItem(t,n)}catch(e){}return n}t.a=i},867:function(e,t,n){"use strict";function i(e,t){"none"===e.style.display&&(e.style.display="")}t.a=i},868:function(e,t,n){"use strict";function i(e,t){return Math.atan2(e,t)*(180/Math.PI)}t.a=i},869:function(e,t,n){"use strict";function i(e){if("string"==typeof e){var t=[e],n=e.charAt(0).toUpperCase()+e.substr(1);["Webkit","Moz","ms","O"].forEach(function(i){"ms"===i&&"transform"!==e||t.push(i+n)}),e=t}for(var i=document.createElement("fakeelement"),r=(e.length,0);r<e.length;r++){var o=e[r];if(void 0!==i.style[o])return o}return!1}t.a=i},871:function(e,t,n){var i,r,o,a=[].slice;!function(a,s){null!=n(489)?(r=[],i=s,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)):void 0!==t&&null!==t?e.exports=s():a.UrlPattern=s()}(this,function(){var e,t,n,i,r,o,s,u,l,c,f,d,h,p,y;return l=function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},s=function(e,t){var n,i,r;for(r=[],n=-1,i=e.length;++n<i;)r=r.concat(t(e[n]));return r},p=function(e,t){var n,i,r;for(r="",n=-1,i=e.length;++n<i;)r+=t(e[n]);return r},h=function(e){return RegExp(e+"|").exec("").length-1},f=function(e,t){var n,i,r,o,a;for(o={},n=-1,r=e.length;++n<r;)i=e[n],null!=(a=t[n])&&(null!=o[i]?(Array.isArray(o[i])||(o[i]=[o[i]]),o[i].push(a)):o[i]=a);return o},e={},e.Result=function(e,t){this.value=e,this.rest=t},e.Tagged=function(e,t){this.tag=e,this.value=t},e.tag=function(t,n){return function(i){var r,o;if(null!=(r=n(i)))return o=new e.Tagged(t,r.value),new e.Result(o,r.rest)}},e.regex=function(t){return function(n){var i,r;if(null!=(i=t.exec(n)))return r=i[0],new e.Result(r,n.slice(r.length))}},e.sequence=function(){var t;return t=1<=arguments.length?a.call(arguments,0):[],function(n){var i,r,o,a,s,u;for(i=-1,r=t.length,u=[],a=n;++i<r;){if(o=t[i],null==(s=o(a)))return;u.push(s.value),a=s.rest}return new e.Result(u,a)}},e.pick=function(){var t,n;return t=arguments[0],n=2<=arguments.length?a.call(arguments,1):[],function(i){var r,o;if(null!=(o=e.sequence.apply(e,n)(i)))return r=o.value,o.value=r[t],o}},e.string=function(t){var n;return n=t.length,function(i){if(i.slice(0,n)===t)return new e.Result(t,i.slice(n))}},e.lazy=function(e){var t;return t=null,function(n){return null==t&&(t=e()),t(n)}},e.baseMany=function(t,n,i,r,o){var a,s,u;for(s=o,u=i?"":[];;){if(null!=n&&null!=n(s))break;if(null==(a=t(s)))break;i?u+=a.value:u.push(a.value),s=a.rest}if(!r||0!==u.length)return new e.Result(u,s)},e.many1=function(t){return function(n){return e.baseMany(t,null,!1,!0,n)}},e.concatMany1Till=function(t,n){return function(i){return e.baseMany(t,n,!0,!0,i)}},e.firstChoice=function(){var e;return e=1<=arguments.length?a.call(arguments,0):[],function(t){var n,i,r,o;for(n=-1,i=e.length;++n<i;)if(r=e[n],null!=(o=r(t)))return o}},d=function(t){var n;return n={},n.wildcard=e.tag("wildcard",e.string(t.wildcardChar)),n.optional=e.tag("optional",e.pick(1,e.string(t.optionalSegmentStartChar),e.lazy(function(){return n.pattern}),e.string(t.optionalSegmentEndChar))),n.name=e.regex(RegExp("^["+t.segmentNameCharset+"]+")),n.named=e.tag("named",e.pick(1,e.string(t.segmentNameStartChar),e.lazy(function(){return n.name}))),n.escapedChar=e.pick(1,e.string(t.escapeChar),e.regex(/^./)),n.static=e.tag("static",e.concatMany1Till(e.firstChoice(e.lazy(function(){return n.escapedChar}),e.regex(/^./)),e.firstChoice(e.string(t.segmentNameStartChar),e.string(t.optionalSegmentStartChar),e.string(t.optionalSegmentEndChar),n.wildcard))),n.token=e.lazy(function(){return e.firstChoice(n.wildcard,n.optional,n.named,n.static)}),n.pattern=e.many1(e.lazy(function(){return n.token}
1)),n},u={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},o=function(e,t){if(Array.isArray(e))return p(e,function(e){return o(e,t)});switch(e.tag){case"wildcard":return"(.*?)";case"named":return"(["+t+"]+)";case"static":return l(e.value);case"optional":return"(?:"+o(e.value,t)+")?"}},r=function(e,t){return null==t&&(t=u.segmentValueCharset),"^"+o(e,t)+"$"},i=function(e){if(Array.isArray(e))return s(e,i);switch(e.tag){case"wildcard":return["_"];case"named":return[e.value];case"static":return[];case"optional":return i(e.value)}},c=function(e,t,n,i){var r,o,a,s;if(null==i&&(i=!1),null!=(s=e[t])){if(r=n[t]||0,o=Array.isArray(s)?s.length-1:0,!(r>o))return a=Array.isArray(s)?s[r]:s,i&&(n[t]=r+1),a;if(i)throw Error("too few values provided for key `"+t+"`")}else if(i)throw Error("no values provided for key `"+t+"`")},n=function(e,t,i){var r,o;if(Array.isArray(e)){for(r=-1,o=e.length;++r<o;)if(n(e[r],t,i))return!0;return!1}switch(e.tag){case"wildcard":return null!=c(t,"_",i,!1);case"named":return null!=c(t,e.value,i,!1);case"static":return!1;case"optional":return n(e.value,t,i)}},y=function(e,t,i){if(Array.isArray(e))return p(e,function(e){return y(e,t,i)});switch(e.tag){case"wildcard":return c(t,"_",i,!0);case"named":return c(t,e.value,i,!0);case"static":return e.value;case"optional":return n(e.value,t,i)?y(e.value,t,i):""}},t=function(e,n){var o,a,s,l;if(e instanceof t)return this.isRegex=e.isRegex,this.regex=e.regex,this.ast=e.ast,void(this.names=e.names);if(this.isRegex=e instanceof RegExp,"string"!=typeof e&&!this.isRegex)throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=e,null!=n){if(!Array.isArray(n))throw Error("if first argument is a regex the second argument may be an array of group names but you provided something else");if(o=h(this.regex),n.length!==o)throw Error("regex contains "+o+" groups but array of group names contains "+n.length);this.names=n}}else{if(""===e)throw Error("argument must not be the empty string");if(e.replace(/\s+/g,"")!==e)throw Error("argument must not contain whitespace");if(a={escapeChar:(null!=n?n.escapeChar:void 0)||u.escapeChar,segmentNameStartChar:(null!=n?n.segmentNameStartChar:void 0)||u.segmentNameStartChar,segmentNameCharset:(null!=n?n.segmentNameCharset:void 0)||u.segmentNameCharset,segmentValueCharset:(null!=n?n.segmentValueCharset:void 0)||u.segmentValueCharset,optionalSegmentStartChar:(null!=n?n.optionalSegmentStartChar:void 0)||u.optionalSegmentStartChar,optionalSegmentEndChar:(null!=n?n.optionalSegmentEndChar:void 0)||u.optionalSegmentEndChar,wildcardChar:(null!=n?n.wildcardChar:void 0)||u.wildcardChar},l=d(a),null==(s=l.pattern(e)))throw Error("couldn't parse pattern");if(""!==s.rest)throw Error("could only partially parse pattern");this.ast=s.value,this.regex=RegExp(r(this.ast,a.segmentValueCharset)),this.names=i(this.ast)}},t.prototype.match=function(e){var t,n;return null==(n=this.regex.exec(e))?null:(t=n.slice(1),this.names?f(this.names,t):t)},t.prototype.stringify=function(e){if(null==e&&(e={}),this.isRegex)throw Error("can't stringify patterns generated from a regex");if(e!==Object(e))throw Error("argument must be an object or undefined");return y(this.ast,e,{})},t.escapeForRegex=l,t.concatMap=s,t.stringConcatMap=p,t.regexGroupCount=h,t.keysAndValuesToObject=f,t.P=e,t.newParser=d,t.defaultOptions=u,t.astNodeToRegexString=r,t.astNodeToNames=i,t.getParam=c,t.astNodeContainsSegmentsForProvidedParams=n,t.stringify=y,t})}},[609]);
2//# sourceMappingURL=engmen.js.map

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.