/*! jQuery Migrate v3.3.2 | (c) OpenJS Foundation and other contributors | jquery.org/license */ "undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],i=1;i<=3;i++){if(+o[i]<+n[i])return 1;if(+n[i]<+o[i])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.3.2",n.console&&n.console.log&&(s&&e("3.0.0")||n.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var r={};function u(e){var t=n.console;s.migrateDeduplicateWarnings&&r[e]||(r[e]=!0,s.migrateWarnings.push(e),t&&t.warn&&!s.migrateMute&&(t.warn("JQMIGRATE: "+e),s.migrateTrace&&t.trace&&t.trace()))}function t(e,t,r,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n),r},set:function(e){u(n),r=e}})}function o(e,t,r,n){e[t]=function(){return u(n),r.apply(this,arguments)}}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){r={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("jQuery is not compatible with Quirks Mode");var i,a,c,d={},l=s.fn.init,p=s.find,f=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,y=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,m=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;for(i in s.fn.init=function(e){var t=Array.prototype.slice.call(arguments);return"string"==typeof e&&"#"===e&&(u("jQuery( '#' ) is not a valid selector"),t[0]=[]),l.apply(this,t)},s.fn.init.prototype=s.fn,s.find=function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&f.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(y,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("Attribute selector with '#' was not fixed: "+r[0])}}return p.apply(this,r)},p)Object.prototype.hasOwnProperty.call(p,i)&&(s.find[i]=p[i]);o(s.fn,"size",function(){return this.length},"jQuery.fn.size() is deprecated and removed; use the .length property"),o(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"jQuery.parseJSON is deprecated; use JSON.parse"),o(s,"holdReady",s.holdReady,"jQuery.holdReady is deprecated"),o(s,"unique",s.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort"),t(s.expr,"filters",s.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),t(s.expr,":",s.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&o(s,"trim",function(e){return null==e?"":(e+"").replace(m,"")},"jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(o(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"jQuery.nodeName is deprecated"),o(s,"isArray",Array.isArray,"jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(o(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){d["[object "+t+"]"]=t.toLowerCase()}),o(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[Object.prototype.toString.call(e)]||"object":typeof e},"jQuery.type is deprecated"),o(s,"isFunction",function(e){return"function"==typeof e},"jQuery.isFunction() is deprecated"),o(s,"isWindow",function(e){return null!=e&&e===e.window},"jQuery.isWindow() is deprecated")),s.ajax&&(a=s.ajax,c=/(=)\?(?=&|$)|\?\?/,s.ajax=function(){var e=a.apply(this,arguments);return e.promise&&(o(e,"success",e.done,"jQXHR.success is deprecated and removed"),o(e,"error",e.fail,"jQXHR.error is deprecated and removed"),o(e,"complete",e.always,"jQXHR.complete is deprecated and removed")),e},e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(c.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&c.test(e.data))&&u("JSON-to-JSONP auto-promotion is deprecated")}));var g=s.fn.removeAttr,h=s.fn.toggleClass,v=/\S+/g;function j(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}s.fn.removeAttr=function(e){var r=this;return s.each(e.match(v),function(e,t){s.expr.match.bool.test(t)&&(u("jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),g.apply(this,arguments)};var Q,b=!(s.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?h.apply(this,arguments):(u("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))}),w=/^[a-z]/,x=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return b=!0,e=r.apply(this,arguments),b=!1,e})}),s.swap=function(e,t,r,n){var o,i,a={};for(i in b||u("jQuery.swap() is undocumented and deprecated"),t)a[i]=e.style[i],e.style[i]=t[i];for(i in o=r.apply(e,n||[]),t)e.style[i]=a[i];return o},e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("JQMIGRATE: jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),s.cssNumber||(s.cssNumber={}),Q=s.fn.css,s.fn.css=function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=j(e),n=r,w.test(n)&&x.test(n[0].toUpperCase()+n.slice(1))||s.cssNumber[r]||u('Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))};var A,k,S,M,N=s.data;s.data=function(e,t,r){var n,o,i;if(t&&"object"==typeof t&&2===arguments.length){for(i in n=s.hasData(e)&&N.call(this,e),o={},t)i!==j(i)?(u("jQuery.data() always sets/gets camelCased names: "+i),n[i]=t[i]):o[i]=t[i];return N.call(this,e,o),t}return t&&"string"==typeof t&&t!==j(t)&&(n=s.hasData(e)&&N.call(this,e))&&t in n?(u("jQuery.data() always sets/gets camelCased names: "+t),2");t!==e&&T(e)!==T(t)&&u("HTML tags must be properly nested and closed: "+e)}var O=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,q=s.htmlPrefilter;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.htmlPrefilter=function(e){return P(e),e.replace(O,"<$1>")}},s.htmlPrefilter=function(e){return P(e),q(e)};var D,_=s.fn.offset;s.fn.offset=function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?_.apply(this,arguments):(u("jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},s.ajax&&(D=s.param,s.param=function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)});var E,F,J=s.fn.andSelf||s.fn.addBack;return s.fn.andSelf=function(){return u("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),J.apply(this,arguments)},s.Deferred&&(E=s.Deferred,F=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],s.Deferred=function(e){var i=E(),a=i.promise();return i.pipe=a.pipe=function(){var o=arguments;return u("deferred.pipe() is deprecated"),s.Deferred(function(n){s.each(F,function(e,t){var r="function"==typeof o[e]&&o[e];i[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===a?n.promise():this,r?[e]:arguments)})}),o=null}).promise()},e&&e.call(i,i),i},s.Deferred.exceptionHook=E.exceptionHook),s}); !function($){window.wp&&window.wp.customize||(window.initHoverFX=function(t,e,i){var k,A,C,I,z,S,P;function V(t){return{width:"100%",height:Math.abs(parseFloat($(t).outerHeight(!1)))}}A=$(".contentswap-effect"),P=!0,(C=t).resizeEvent=!!i,function(t){$();A.each(function(){var e,h,i,n,r,o,a,s,t,c,u,l,p,d,f,m,g;if((e=$(this)).unbind(".hoverfx"),e.css({width:"",height:""}),h=function(t){z=$(t).attr("class"),S=z.split(" ");for(var e=0;e<=A.length;e++)for(var i in C)S[e]===i&&(I=i);return C?C[I]:k[I]}(e),i=function(t,e){var i;switch(e){case"overlay":i=$(t).find(".swap-inner");break;case"imageSwap":i=$(t).find(".second-image");break;case"caption":i=$(t).find(".swap-inner")}return i}(e,h.contentType),r=e.find(".initial-image"),n=e.find(".overlay"),h.overlayColor=i.css("background-color"),h.innerColor=i.css("background-color"),i.removeAttr("style"),n.removeAttr("style"),r.removeAttr("style"),u=e,l=(c=r).css("margin-left"),p=c.css("margin-right"),d=c.css("margin-top"),f=c.css("margin-bottom"),m=c.css("float"),c.css({float:"none","margin-left":"0px","margin-right":"0px","margin-top":"0px","margin-bottom":"0px"}),u.css({float:m,"margin-left":l,"margin-right":p,"margin-top":d,"margin-bottom":f}),V(e),s=function(t){var e,i="",n=!1;switch(t.toLowerCase()){case"easeinoutback":e="cubic-bezier(0.680, -0.550, 0.265, 1.550)",n="cubic-bezier(0.680, 0, 0.265, 1)";break;case"quick-in":e="cubic-bezier(0.315, -0.185, 0.000, 1.270)",n="cubic-bezier(0.315, 0, 0.000, 1)";break;case"accelerate":e="cubic-bezier(0.885, 0.420, 0.000, 1.270)",n="cubic-bezier(0.885, 0.420, 0.000, 1)";break;case"super-fast":e="cubic-bezier(0.000, 0.870, 0.000, 0.890)";break;case"ease-in-out-back":e="cubic-bezier(0.680, -0.550, 0.265, 1.550)",n="cubic-bezier(0.680, 0, 0.265, 1)";break;case"ease-in-out-expo":e="cubic-bezier(1.000, 0.000, 0.000, 1.000)";break;case"ease-out-back":e="cubic-bezier(0.175, 0.885, 0.320, 1.275)",n="cubic-bezier(0.175, 0.885, 0.320, 1)";break;case"ease-out-circ":e="cubic-bezier(0.075, 0.820, 0.165, 1.000)";break;case"ease-in-back":e="cubic-bezier(0.600, -0.280, 0.735, 0.045)",n="cubic-bezier(0.600, 0, 0.735, 0.045)";break;case"ease-in-circ":n=e="cubic-bezier(0.600, 0.040, 0.980, 0.335)";break;case"ease":e="ease";break;case"ease-in":e="ease-in";break;case"ease-in-out":e="ease-in-out";break;case"ease-out":e="ease-out"}n&&(e=n);for(var r=["-webkit-","-moz-","-o-",""],o=0;o").addClass("caption-wrap overlay");i.wrap(v)}n=e.find(".caption-wrap")}else n=e.find(".overlay");function y(t,e,i,n,r){var o,a,s=e||"all",c=h.effectDelay+"ms",u=s+" "+c;t.css({"-webkit-transition":u,"-moz-transition":u,"-o-transition":u,transition:u}),r&&(a=i,(o=t).attr("style",o.attr("style")+a))}n.add(i).css("display","block"),e.addClass(h.effectType);var b=!1;if(0a.endVal,a.frameVal=a.startVal,a.initialized=!0):(a.error="[CountUp] startVal ("+e+") or endVal ("+i+") is not a number",!1)):!(a.error="[CountUp] target is null or undefined"))},a.printValue=function(t){var e=a.options.formattingFn(t);"INPUT"===a.d.tagName?this.d.value=e:"text"===a.d.tagName||"tspan"===a.d.tagName?this.d.textContent=e:this.d.innerHTML=e},a.count=function(t){a.startTime||(a.startTime=t);var e=(a.timestamp=t)-a.startTime;a.remaining=a.duration-e,a.options.useEasing?a.countDown?a.frameVal=a.startVal-a.options.easingFn(e,0,a.startVal-a.endVal,a.duration):a.frameVal=a.options.easingFn(e,a.startVal,a.endVal-a.startVal,a.duration):a.countDown?a.frameVal=a.startVal-(a.startVal-a.endVal)*(e/a.duration):a.frameVal=a.startVal+(a.endVal-a.startVal)*(e/a.duration),a.countDown?a.frameVal=a.frameVala.endVal?a.endVal:a.frameVal,a.frameVal=Math.round(a.frameVal*a.dec)/a.dec,a.printValue(a.frameVal),a.options.onUpdate&&a.options.onUpdate(a.frameVal),ea.endVal,a.rAF=requestAnimationFrame(a.count))):a.error="[CountUp] update() - new endVal is not a number: "+t)},a.initialize()&&a.printValue(a.startVal)}}),function(t){function i(t,e){var i=jQuery(t),n=jQuery(".header-homepage.cp-video-bg"),r=n.width(),o=n.height();(r=Math.max(r,o))<16*o/9?r=16/9*o:o=9*r/16;var a=-.5*(r-n.width());i.css({width:r,height:o,opacity:1,left:a})}window.addEventListener("resize",function(){var t=document.querySelector("video#wp-custom-header-video")||document.querySelector("iframe#wp-custom-header-video");t&&i(t)}),jQuery(function(){var t=document.querySelector("video#wp-custom-header-video")||document.querySelector("iframe#wp-custom-header-video");t&&i(t)}),__cpVideoElementFirstPlayed=!1,document.addEventListener("wp-custom-header-video-loaded",function(){var t=document.querySelector("video#wp-custom-header-video");t?i(t):document.querySelector("#wp-custom-header").addEventListener("play",function(){var t=document.querySelector("iframe#wp-custom-header-video"),e=document.querySelector("video#wp-custom-header-video")||t;e&&!__cpVideoElementFirstPlayed&&(__cpVideoElementFirstPlayed=!0,i(e))})})}(jQuery),function(o,s,t,T){"use strict";function c(t,e,i){return setTimeout(r(t,i),e)}function n(t,e,i){return!!Array.isArray(t)&&(a(t,i[e],i),!0)}function a(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==T)for(n=0;n\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=o.console&&(o.console.warn||o.console.log);return i&&i.call(o.console,r,e),n.apply(this,arguments)}}function i(t,e,i){var n,r=e.prototype;(n=t.prototype=Object.create(r)).constructor=t,n._super=r,i&&Z(n,i)}function r(t,e){return function(){return t.apply(e,arguments)}}function u(t,e){return typeof t==tt?t.apply(e&&e[0]||T,e):t}function h(t,e){return t===T?e:t}function l(e,t,i){a(f(t),function(t){e.addEventListener(t,i,!1)})}function p(e,t,i){a(f(t),function(t){e.removeEventListener(t,i,!1)})}function _(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function d(t,e){return-1e[i]}):n.sort()),n}function y(t,e){for(var i,n,r=e[0].toUpperCase()+e.slice(1),o=0;oit(m.y)?m.x:m.y,e.scale=a?(y=a.pointers,b=n,I(b[0],b[1],kt)/I(y[0],y[1],kt)):1,e.rotation=a?(g=a.pointers,v=n,z(v[1],v[0],kt)+z(g[1],g[0],kt)):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,r,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(e.eventType!=mt&&(ptit(h.y)?h.x:h.y,o=C(c,u),t.lastInterval=e}else i=a.velocity,n=a.velocityX,r=a.velocityY,o=a.direction;e.velocity=i,e.velocityX=n,e.velocityY=r,e.direction=o}(i,e);var g,v;var y,b;var w=t.element;_(e.srcEvent.target,w)&&(w=e.srcEvent.target),e.target=w}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function E(t){for(var e=[],i=0;i=it(e)?t<0?vt:yt:e<0?bt:wt}function I(t,e,i){i||(i=Et);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function z(t,e,i){i||(i=Et);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}function S(){this.evEl=Ct,this.evWin=It,this.pressed=!1,w.apply(this,arguments)}function P(){this.evEl=Pt,this.evWin=Vt,w.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function V(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,w.apply(this,arguments)}function $(){this.evTarget=Rt,this.targetIds={},w.apply(this,arguments)}function F(){w.apply(this,arguments);var t=r(this.handler,this);this.touch=new $(this.manager,t),this.mouse=new S(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function R(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY};this.lastTouches.push(i);var n=this.lastTouches;setTimeout(function(){var t=n.indexOf(i);-1e.threshold&&r&e.direction},attrTest:function(t){return N.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Y(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),i(H,N,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Nt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),i(q,M,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distancee.time;if(this._input=t,!n||!i||t.eventType&(ft|mt)&&!r)this.reset();else if(t.eventType&dt)this.reset(),this._timer=c(function(){this.state=8,this.tryEmit()},e.time,this);else if(t.eventType&ft)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&t.eventType&ft?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=nt(),this.manager.emit(this.options.event,this._input)))}}),i(j,N,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Nt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),i(U,N,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Tt|_t,pointers:1},getTouchAction:function(){return X.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(Tt|_t)?e=t.overallVelocity:i&Tt?e=t.overallVelocityX:i&_t&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&it(e)>this.options.velocity&&t.eventType&ft},emit:function(t){var e=Y(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),i(L,M,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ot]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distanceparseInt(i.width,10);)t[n]=t[n-1],--n;t[n]=i}return t},l=function(t,e,i){for(var n,r,o=m.devicePixelRatio||1,a=z(),s=(S(),t=n)));u++);return i[Math.min(u,c)]},p=function(t,e){if("string"==typeof t)t=t.replace(/{{(width|height)}}/g,e);else if(t instanceof Array)for(var i=0;i=e.length&&(n=i=0),r<0&&(r=n),r=Math.min(r,n);var a=e.slice(i+r,n-r);if(e=e.slice(i,r),n=e.length)for(var s,c=0,u=function(){++c===n&&(f(e,o,!a),t(a,0,0,r,o))},h=0;h=this.images.length&&(this.options.start=this.images.length-1),this.options.start<0&&(this.options.start=0),this.isBody=t===document.body;var n=v(m);this.$container=v(t),this.$root=this.isBody?P?n:v(document):this.$container,this.originalImages=this.images,this.images=g(this.options.alwaysTestWindowResolution?n:this.$root,this.originalImages),w(this.images,this.options.start||0,this.options.preload||1);var r=this.$container.children(".backstretch").first();if(this.$wrap=r.length?r:v('
').css(this.options.bypassCss?{}:s.wrap).appendTo(this.$container),!this.options.bypassCss){if(!this.isBody){var o=this.$container.css("position"),a=this.$container.css("zIndex");this.$container.css({position:"static"===o?"relative":o,zIndex:"auto"===a?0:a}),this.$wrap.css({zIndex:-999998})}this.$wrap.css({position:this.isBody&&P?"fixed":"absolute"})}this.index=this.options.start,this.show(this.index),n.on("resize.backstretch",v.proxy(this.resize,this)).on("orientationchange.backstretch",v.proxy(function(){this.isBody&&0===m.pageYOffset&&(m.scrollTo(0,1),this.resize())},this))};_.prototype={resize:function(){try{var t=this.options.alwaysTestWindowResolution?v(m):this.$root,e=t.width(),i=t.height(),n=e/(this._lastResizeContainerWidth||0),r=i/(this._lastResizeContainerHeight||0),o=this.options.resolutionChangeRatioThreshold||0;if((e!==this._lastResizeContainerWidth||i!==this._lastResizeContainerHeight)&&(Math.abs(n-1)>=o||isNaN(n)||Math.abs(r-1)>=o||isNaN(r))&&(this._lastResizeContainerWidth=e,this._lastResizeContainerHeight=i,this.images=g(t,this.originalImages),this.options.preload&&w(this.images,(this.index+1)%this.images.length,this.options.preload),1===this.images.length&&this._currentImage.url!==this.images[0].url)){var a=this;clearTimeout(a._selectAnotherResolutionTimeout),a._selectAnotherResolutionTimeout=setTimeout(function(){a.show(0)},this.options.resolutionRefreshRate)}var s={left:0,top:0,right:"auto",bottom:"auto"},c=this.isBody?this.$root.width():this.$root.innerWidth(),u=this.isBody?m.innerHeight?m.innerHeight:this.$root.height():this.$root.innerHeight(),h=c,l=h/this.$itemWrapper.data("ratio"),p=v.Event("backstretch.resize",{relatedTarget:this.$container[0]}),d=this._currentImage.alignX===y?this.options.alignX:this._currentImage.alignX,f=this._currentImage.alignY===y?this.options.alignY:this._currentImage.alignY;u<=l?s.top=-(l-u)*f:(((h=(l=u)*this.$itemWrapper.data("ratio"))-c)/2,s.left=-(h-c)*d),this.options.bypassCss||this.$wrap.css({width:c,height:u}).find(">.backstretch-item").not(".deleteable").each(function(){v(this).find("img,video,iframe").css({width:h,height:l}).css(s)}),this.$container.trigger(p,this)}catch(t){}return this},show:function(h,l){if(!(Math.abs(h)>this.images.length-1)){var p=this,d=p.$wrap.find(">.backstretch-item").addClass("deleteable"),f=p.videoWrapper,m={relatedTarget:p.$container[0]};p.$container.trigger(v.Event("backstretch.before",m),[p,h]),this.index=h;var t=p.images[h];clearTimeout(p._cycleTimeout),delete p.videoWrapper;var g=b(t);return g?(p.videoWrapper=new x(t),p.$item=p.videoWrapper.$video.css("pointer-events","none")):p.$item=v(""),p.$itemWrapper=v('
').append(p.$item),this.options.bypassCss?p.$itemWrapper.css({display:"none"}):(p.$itemWrapper.css(s.itemWrapper),p.$item.css(s.item)),p.$item.bind(g?"canplay":"load",function(t){var e=v(this).parent(),i=e.data("options");l&&(i=v.extend({},i,l));var n=this.naturalWidth||this.videoWidth||this.width,r=this.naturalHeight||this.videoHeight||this.height;e.data("ratio",n/r);var o=function(t){return i[t]!==y?i[t]:p.options[t]},a=o("transition"),s=o("transitionEasing"),c=o("transitionDuration"),u=function(){f&&(f.stop(),f.destroy()),d.remove(),!p.paused&&1").attr({src_to_load:o}).css({border:0,margin:0,padding:0}).data("player",i),t.loop&&e.on("ended.loop",function(){i.__manuallyStopped||i.play()}),i.ytReady=!1,n(),m.YT?(i._initYoutube(),e.trigger("initsuccess")):v(m).one("youtube_api_load",function(){i._initYoutube(),e.trigger("initsuccess")})}else{e=v("