=0)return!0;return!1}}),ea.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){ea.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),ea.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var Eb=ea.now(),Fb=/\?/,Gb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;ea.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=ea.trim(b+"");return e&&!ea.trim(e.replace(Gb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():ea.error("Invalid JSON: "+b)},ea.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||ea.error("Invalid XML: "+b),c};var Hb,Ib,Jb=/#.*$/,Kb=/([?&])_=[^&]*/,Lb=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Mb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Nb=/^(?:GET|HEAD)$/,Ob=/^\/\//,Pb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Qb={},Rb={},Sb="*/".concat("*");try{Ib=location.href}catch(Tb){Ib=oa.createElement("a"),Ib.href="",Ib=Ib.href}Hb=Pb.exec(Ib.toLowerCase())||[],ea.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ib,type:"GET",isLocal:Mb.test(Hb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Sb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ea.parseJSON,"text xml":ea.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?P(P(a,ea.ajaxSettings),b):P(ea.ajaxSettings,a)},ajaxPrefilter:N(Qb),ajaxTransport:N(Rb),ajax:function(a,b){function c(a,b,c,d){var e,k,r,s,u,w=b;2!==t&&(t=2,h&&clearTimeout(h),j=void 0,g=d||"",v.readyState=a>0?4:0,e=a>=200&&a<300||304===a,c&&(s=Q(l,v,c)),s=R(l,s,v,e),e?(l.ifModified&&(u=v.getResponseHeader("Last-Modified"),u&&(ea.lastModified[f]=u),u=v.getResponseHeader("etag"),u&&(ea.etag[f]=u)),204===a||"HEAD"===l.type?w="nocontent":304===a?w="notmodified":(w=s.state,k=s.data,r=s.error,e=!r)):(r=w,!a&&w||(w="error",a<0&&(a=0))),v.status=a,v.statusText=(b||w)+"",e?o.resolveWith(m,[k,w,v]):o.rejectWith(m,[v,w,r]),v.statusCode(q),q=void 0,i&&n.trigger(e?"ajaxSuccess":"ajaxError",[v,l,e?k:r]),p.fireWith(m,[v,w]),i&&(n.trigger("ajaxComplete",[v,l]),--ea.active||ea.event.trigger("ajaxStop")))}"object"==typeof a&&(b=a,a=void 0),b=b||{};var d,e,f,g,h,i,j,k,l=ea.ajaxSetup({},b),m=l.context||l,n=l.context&&(m.nodeType||m.jquery)?ea(m):ea.event,o=ea.Deferred(),p=ea.Callbacks("once memory"),q=l.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!k)for(k={};b=Lb.exec(g);)k[b[1].toLowerCase()]=b[2];b=k[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?g:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(l.mimeType=a),this},statusCode:function(a){var b;if(a)if(t<2)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return j&&j.abort(b),c(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,l.url=((a||l.url||Ib)+"").replace(Jb,"").replace(Ob,Hb[1]+"//"),l.type=b.method||b.type||l.method||l.type,l.dataTypes=ea.trim(l.dataType||"*").toLowerCase().match(ta)||[""],null==l.crossDomain&&(d=Pb.exec(l.url.toLowerCase()),l.crossDomain=!(!d||d[1]===Hb[1]&&d[2]===Hb[2]&&(d[3]||("http:"===d[1]?"80":"443"))===(Hb[3]||("http:"===Hb[1]?"80":"443")))),l.data&&l.processData&&"string"!=typeof l.data&&(l.data=ea.param(l.data,l.traditional)),O(Qb,l,b,v),2===t)return v;i=ea.event&&l.global,i&&0===ea.active++&&ea.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!Nb.test(l.type),f=l.url,l.hasContent||(l.data&&(f=l.url+=(Fb.test(f)?"&":"?")+l.data,delete l.data),l.cache===!1&&(l.url=Kb.test(f)?f.replace(Kb,"$1_="+Eb++):f+(Fb.test(f)?"&":"?")+"_="+Eb++)),l.ifModified&&(ea.lastModified[f]&&v.setRequestHeader("If-Modified-Since",ea.lastModified[f]),ea.etag[f]&&v.setRequestHeader("If-None-Match",ea.etag[f])),(l.data&&l.hasContent&&l.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",l.contentType),v.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+Sb+"; q=0.01":""):l.accepts["*"]);for(e in l.headers)v.setRequestHeader(e,l.headers[e]);if(l.beforeSend&&(l.beforeSend.call(m,v,l)===!1||2===t))return v.abort();u="abort";for(e in{success:1,error:1,complete:1})v[e](l[e]);if(j=O(Rb,l,b,v)){v.readyState=1,i&&n.trigger("ajaxSend",[v,l]),l.async&&l.timeout>0&&(h=setTimeout(function(){v.abort("timeout")},l.timeout));try{t=1,j.send(r,c)}catch(w){if(!(t<2))throw w;c(-1,w)}}else c(-1,"No Transport");return v},getJSON:function(a,b,c){return ea.get(a,b,c,"json")},getScript:function(a,b){return ea.get(a,void 0,b,"script")}}),ea.each(["get","post"],function(a,b){ea[b]=function(a,c,d,e){return ea.isFunction(c)&&(e=e||d,d=c,c=void 0),ea.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),ea._evalUrl=function(a){return ea.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},ea.fn.extend({wrapAll:function(a){if(ea.isFunction(a))return this.each(function(b){ea(this).wrapAll(a.call(this,b))});if(this[0]){var b=ea(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){for(var a=this;a.firstChild&&1===a.firstChild.nodeType;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return ea.isFunction(a)?this.each(function(b){ea(this).wrapInner(a.call(this,b))}):this.each(function(){var b=ea(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=ea.isFunction(a);return this.each(function(c){ea(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){ea.nodeName(this,"body")||ea(this).replaceWith(this.childNodes)}).end()}}),ea.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0||!ca.reliableHiddenOffsets()&&"none"===(a.style&&a.style.display||ea.css(a,"display"))},ea.expr.filters.visible=function(a){return!ea.expr.filters.hidden(a)};var Ub=/%20/g,Vb=/\[\]$/,Wb=/\r?\n/g,Xb=/^(?:submit|button|image|reset|file)$/i,Yb=/^(?:input|select|textarea|keygen)/i;ea.param=function(a,b){var c,d=[],e=function(a,b){b=ea.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=ea.ajaxSettings&&ea.ajaxSettings.traditional),ea.isArray(a)||a.jquery&&!ea.isPlainObject(a))ea.each(a,function(){e(this.name,this.value)});else for(c in a)S(c,a[c],b,e);return d.join("&").replace(Ub,"+")},ea.fn.extend({serialize:function(){return ea.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=ea.prop(this,"elements");return a?ea.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!ea(this).is(":disabled")&&Yb.test(this.nodeName)&&!Xb.test(a)&&(this.checked||!Ea.test(a))}).map(function(a,b){var c=ea(this).val();return null==c?null:ea.isArray(c)?ea.map(c,function(a){return{name:b.name,value:a.replace(Wb,"\r\n")}}):{name:b.name,value:c.replace(Wb,"\r\n")}}).get()}}),ea.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&T()||U()}:T;var Zb=0,$b={},_b=ea.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in $b)$b[a](void 0,!0)}),ca.cors=!!_b&&"withCredentials"in _b,_b=ca.ajax=!!_b,_b&&ea.ajaxTransport(function(a){if(!a.crossDomain||ca.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Zb;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)void 0!==c[e]&&f.setRequestHeader(e,c[e]+"");f.send(a.hasContent&&a.data||null),b=function(c,e){var h,i,j;if(b&&(e||4===f.readyState))if(delete $b[g],b=void 0,f.onreadystatechange=ea.noop,e)4!==f.readyState&&f.abort();else{j={},h=f.status,"string"==typeof f.responseText&&(j.text=f.responseText);try{i=f.statusText}catch(k){i=""}h||!a.isLocal||a.crossDomain?1223===h&&(h=204):h=j.text?200:404}j&&d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=$b[g]=b:b()},abort:function(){b&&b(void 0,!0)}}}}),ea.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return ea.globalEval(a),a}}}),ea.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),ea.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=oa.head||ea("head")[0]||oa.documentElement;return{send:function(d,e){b=oa.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||e(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var ac=[],bc=/(=)\?(?=&|$)|\?\?/;ea.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=ac.pop()||ea.expando+"_"+Eb++;return this[a]=!0,a}}),ea.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(bc.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&bc.test(b.data)&&"data");if(h||"jsonp"===b.dataTypes[0])return e=b.jsonpCallback=ea.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(bc,"$1"+e):b.jsonp!==!1&&(b.url+=(Fb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||ea.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,ac.push(e)),g&&ea.isFunction(f)&&f(g[0]),g=f=void 0}),"script"}),ea.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||oa;var d=la.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=ea.buildFragment([a],b,e),e&&e.length&&ea(e).remove(),ea.merge([],d.childNodes))};var cc=ea.fn.load;ea.fn.load=function(a,b,c){if("string"!=typeof a&&cc)return cc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=ea.trim(a.slice(h,a.length)),a=a.slice(0,h)),ea.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(f="POST"),g.length>0&&ea.ajax({url:a,type:f,dataType:"html",data:b}).done(function(a){e=arguments,g.html(d?ea("").append(ea.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},ea.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){ea.fn[b]=function(a){return this.on(b,a)}}),ea.expr.filters.animated=function(a){return ea.grep(ea.timers,function(b){return a===b.elem}).length};var dc=a.document.documentElement;ea.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=ea.css(a,"position"),l=ea(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=ea.css(a,"top"),i=ea.css(a,"left"),j=("absolute"===k||"fixed"===k)&&ea.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),ea.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},ea.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){ea.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,ea.contains(b,e)?(typeof e.getBoundingClientRect!==xa&&(d=e.getBoundingClientRect()),c=V(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===ea.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),ea.nodeName(a[0],"html")||(c=a.offset()),c.top+=ea.css(a[0],"borderTopWidth",!0),c.left+=ea.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-ea.css(d,"marginTop",!0),left:b.left-c.left-ea.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||dc;a&&!ea.nodeName(a,"html")&&"static"===ea.css(a,"position");)a=a.offsetParent;return a||dc})}}),ea.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);ea.fn[a]=function(d){return Da(this,function(a,d,e){var f=V(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?ea(f).scrollLeft():e,c?e:ea(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),ea.each(["top","left"],function(a,b){ea.cssHooks[b]=A(ca.pixelPosition,function(a,c){if(c)return c=bb(a,b),db.test(c)?ea(a).position()[b]+"px":c})}),ea.each({Height:"height",Width:"width"},function(a,b){ea.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){ea.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return Da(this,function(b,c,d){var e;return ea.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,
Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?ea.css(b,c,g):ea.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),ea.fn.size=function(){return this.length},ea.fn.andSelf=ea.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ea});var ec=a.jQuery,fc=a.$;return ea.noConflict=function(b){return a.$===ea&&(a.$=fc),b&&a.jQuery===ea&&(a.jQuery=ec),ea},typeof b===xa&&(a.jQuery=a.$=ea),ea}),function(){function a(a,b,c){for(var d=(c||0)-1,e=a?a.length:0;++d
h||"undefined"==typeof g)return 1;if(g-1)&&gb});return c.pop(),d.pop(),q}function n(a,b){return a+Hb(Sb()*(b-a+1))}function o(a,b,c){for(var d=-1,e=s(),f=a?a.length:0,g=[],h=c?[]:g;++d-1:ac(a,function(a){return(e=a===b)&&gb}),e}function V(a,b,c){var d=!0;b=Qa(b,c,3);var e=-1,f=a?a.length:0;if("number"==typeof f)for(;++ee&&(e=h)}else b=Qa(b,c,3),Z(a,function(a,c,f){var g=b(a,c,f);g>d&&(d=g,e=a)});return e}function ca(a,b,c){var d=1/0,e=d;"function"!=typeof b&&c&&c[b]===a&&(b=null);var f=-1,g=a?a.length:0;if(null==b&&"number"==typeof g)for(;++f>>1;c(a[g])2?q(a,17,d(arguments,2),null,b):q(a,1,null,null,b)}function Ga(a){for(var b=arguments.length>1?l(arguments,!0,!1,1):z(a),c=-1,d=b.length;++c-1?a:0;var d=-1,e=Array(a);for(b=i(b,c,1);++d/g,jb=/($^)/,kb=/['\n\r\t\u2028\u2029\\]/g,lb="[object Arguments]",mb="[object Array]",nb="[object Boolean]",ob="[object Date]",pb="[object Function]",qb="[object Number]",rb="[object Object]",sb="[object RegExp]",tb="[object String]",ub={boolean:!1,function:!0,object:!0,number:!1,string:!1,undefined:!1},vb={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},wb=ub[typeof window]&&window||this,xb=ub[typeof exports]&&exports&&!exports.nodeType&&exports,yb=ub[typeof module]&&module&&!module.nodeType&&module,zb=yb&&yb.exports===xb&&xb,Ab=ub[typeof global]&&global;!Ab||Ab.global!==Ab&&Ab.window!==Ab||(wb=Ab);var Bb=[],Cb=Object.prototype,Db=wb._,Eb=Cb.toString,Fb=RegExp("^"+String(Eb).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),Gb=Math.ceil,Hb=Math.floor,Ib=Cb.hasOwnProperty,Jb=Bb.push,Kb=Cb.propertyIsEnumerable,Lb=t(Lb=Object.create)&&Lb,Mb=t(Mb=Array.isArray)&&Mb,Nb=wb.isFinite,Ob=wb.isNaN,Pb=t(Pb=Object.keys)&&Pb,Qb=Math.max,Rb=Math.min,Sb=Math.random;f.prototype=e.prototype;var Tb={};!function(){var a={0:1,length:1};Tb.spliceObjects=(Bb.splice.call(a,0,1),!a[0])}(1),e.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:ib,variable:""},Lb||(h=function(){function a(){}return function(b){if(J(b)){a.prototype=b;var c=new a;a.prototype=null}return c||wb.Object()}}()),v(arguments)||(v=function(a){return a&&"object"==typeof a&&"number"==typeof a.length&&Ib.call(a,"callee")&&!Kb.call(a,"callee")||!1});var Ub=Mb||function(a){return a&&"object"==typeof a&&"number"==typeof a.length&&Eb.call(a)==mb||!1},Vb=function(a){var b,c=a,d=[];if(!c)return d;if(!ub[typeof a])return d;for(b in c)Ib.call(c,b)&&d.push(b);return d},Wb=Pb?function(a){return J(a)?Pb(a):[]}:Vb,Xb={"&":"&","<":"<",">":">",'"':""","'":"'"},Yb=B(Xb),Zb=RegExp("("+Wb(Yb).join("|")+")","g"),$b=RegExp("["+Wb(Xb).join("")+"]","g"),_b=function(a,b){var c,d=a,e=d;if(!d)return e;if(!ub[typeof d])return e;for(c in d)if(b(d[c],c,a)===gb)return e;return e},ac=function(a,b){var c,d=a,e=d;if(!d)return e;if(!ub[typeof d])return e;for(c in d)if(Ib.call(d,c)&&b(d[c],c,a)===gb)return e;return e};I(/x/)&&(I=function(a){return"function"==typeof a&&Eb.call(a)==pb});var bc=p(function(a,b,c){Ib.call(a,c)?a[c]++:a[c]=1}),cc=p(function(a,b,c){(Ib.call(a,c)?a[c]:a[c]=[]).push(b)}),dc=p(function(a,b,c){a[c]=b}),ec=aa,fc=t(fc=Date.now)&&fc||function(){return(new Date).getTime()};e.after=Ea,e.bind=Fa,e.bindAll=Ga,e.chain=ab,e.compact=na,e.compose=Ha,e.countBy=bc,e.debounce=Ia,e.defaults=y,e.defer=Ja,e.delay=Ka,e.difference=oa,e.filter=W,e.flatten=qa,e.forEach=Z,e.functions=z,e.groupBy=cc,e.indexBy=dc,e.initial=sa,e.intersection=ta,e.invert=B,e.invoke=_,e.keys=Wb,e.map=aa,e.max=ba,e.memoize=La,e.min=ca,e.omit=Q,e.once=Ma,e.pairs=R,e.partial=Na,e.pick=S,e.pluck=ec,e.range=wa,e.reject=fa,e.rest=xa,e.shuffle=ha,e.sortBy=ka,e.tap=bb,e.throttle=Oa,e.times=Za,e.toArray=la,e.union=za,e.uniq=Aa,e.values=T,e.where=ma,e.without=Ba,e.wrap=Pa,e.zip=Ca,e.collect=aa,e.drop=xa,e.each=Z,e.extend=w,e.methods=z,e.object=Da,e.select=W,e.tail=xa,e.unique=Aa,e.clone=x,e.contains=U,e.escape=Ra,e.every=V,e.find=X,e.has=A,e.identity=Sa,e.indexOf=ra,e.isArguments=v,e.isArray=Ub,e.isBoolean=C,e.isDate=D,e.isElement=E,e.isEmpty=F,e.isEqual=G,e.isFinite=H,e.isFunction=I,e.isNaN=K,e.isNull=L,e.isNumber=M,e.isObject=J,e.isRegExp=N,e.isString=O,e.isUndefined=P,e.lastIndexOf=va,e.mixin=Ta,e.noConflict=Ua,e.random=Wa,e.reduce=da,e.reduceRight=ea,e.result=Xa,e.size=ia,e.some=ja,e.sortedIndex=ya,e.template=Ya,e.unescape=$a,e.uniqueId=_a,e.all=V,e.any=ja,e.detect=X,e.findWhere=Y,e.foldl=da,e.foldr=ea,e.include=U,e.inject=da,e.first=pa,e.last=ua,e.sample=ga,e.take=pa,e.head=pa,Ta(e),e.VERSION="2.4.2",e.prototype.chain=cb,e.prototype.value=db,Z(["pop","push","reverse","shift","sort","splice","unshift"],function(a){var b=Bb[a];e.prototype[a]=function(){var a=this.__wrapped__;return b.apply(a,arguments),Tb.spliceObjects||0!==a.length||delete a[0],this}}),Z(["concat","join","slice"],function(a){var b=Bb[a];e.prototype[a]=function(){var a=this.__wrapped__,c=b.apply(a,arguments);return this.__chain__&&(c=new f(c),c.__chain__=!0),c}}),"function"==typeof define&&"object"==typeof define.amd&&define.amd?(wb._=e,define(function(){return e})):xb&&yb?zb?(yb.exports=e)._=e:xb._=e:wb._=e}.call(this),function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=g.detail*-1),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=g.wheelDeltaX*-1),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=m*-1,m=0),j=0===m?l:m,"deltaY"in g&&(m=g.deltaY*-1,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=l*-1)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||n=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})}),function(a,b){"use strict";var c=["fixed","relative","absolute"],d="mousewheel resize",e=a(b),f=function(c,d){_.bindAll(this,"handleScroll","onScroll"),this.$el=a(c),this.el=this.$el[0],this.options=_.defaults(d||{},{watchOn:b}),this.$watchOn=a(this.options.watchOn),this._prepareContainer(),this.inViewport=!1,this.callbacks={scrollin:a.Callbacks(),scrollout:a.Callbacks(),scroll:a.Callbacks()},this.listen()};f.prototype={_prepareContainer:function(){if(this.$watchOn[0]!==b){var a=this.$watchOn.css("position"),d=_.contains(c,a);d||this.$watchOn.css("position","relative")}},listen:function(){this.$watchOn.on("scroll",this.onScroll),e.on(d,this.onScroll)},destroy:function(){this.$watchOn.off("scroll",this.onScroll),e.off(d,this.onScroll),this.$el.data("scrollWatch",null)},on:function(a,b,c,d){return _.isFunction(b)&&(d=c,c=b,b={}),b=_.extend({},this.options,b),c=_.bind(c,d||this.$el),b.delay&&(c=this._createDelayedCallback(a,c,b)),this.callbacks[a].add(c),this.$watchOn.scroll(),this},_createDelayedCallback:function(a,b,c){return function(){var a=arguments;_.delay(function(){b.apply(this,a)},c.delay)}},handleScroll:function(a){var b=this.visibility,c=this.surroundVisibility,d=this.isInViewport(!1),e=this.isInViewport(!0),f=this.$watchOn.scrollTop();return this.lastOffset===!1?this.direction=!1:this.direction=f>this.lastOffset?"down":"up",this.lastOffset=f,this.visibility=d,this.surroundVisibility=e,this.inViewport||1!==d?this.inViewport&&0===d&&(this.inViewport=!1,this.dfd?this.dfd.done(_.bind(this.trigger,this,"scrollout")):this.trigger("scrollout")):(this.inViewport=!0,this.trigger("scrollin")),(d!==b||e!==c||a)&&this.trigger("scroll"),this},onScroll:function(a){this.running||(this.running=!0,this.originalEvent=a,this.handleScroll(),this.running=!1)},trigger:function(a){return("scroll"===a||a!==this.lastTriggered)&&(this.lastTriggered=a,void this.callbacks[a].fire({direction:this.direction,visibility:this.visibility,surroundVisibility:this.surroundVisibility,originalEvent:this.originalEvent}))},_getOffsetTop:function(){if(this.$watchOn[0]===b)return this.$el.offset().top;var a=this.el,c=0;do c+=a.offsetTop,a=a.offsetParent;while(a&&a!==this.$watchOn[0]);return c},isInViewport:function(a){var b=this.$watchOn.scrollTop(),c=this.$watchOn.height(),d=b+c,e=this._getOffsetTop(),f=this.el.offsetHeight,g=e+f;a&&(b-=c,d+=c);var h=f>=c;return h&&b>=e&&d<=g?1:!h&&e>=b&&g<=d?1:e>b&&ed?(d-e)/f:g>b&&g=d?(f=a,e=f/c):(e=b,f=e*c),{width:f,height:e}},refresh:function(){fastdom.read(function(){if(this.$el.is(":visible")){var a=this.$parent.width(),b=this.$parent.height(),c={width:0,height:0};"cover"===this.options.mode?c=this._calculateCoverSize(a,b,this._getContentRatio()):"fit"===this.options.mode&&(c=this._calculateFitSize(a,b,this._getContentRatio()));var d={top:"50%",left:"50%",width:c.width+"px",height:c.height+"px",marginLeft:-c.width/2+"px",marginTop:-c.height/2+"px"};"right"===this.options.anchor&&(d.marginLeft="0",d.right="0",d.left="auto"),"left"===this.options.anchor&&(d.marginLeft="0",d.right="auto",d.left="0"),this.state.css=d}},this),fastdom.write(function(){return this.state.css?(this.$el.css(this.state.css),this.$el.addClass("autoscale autoscale-background-cover"),this.$parent.addClass("autoscale-parent"),void(this.raf=!1)):void(this.raf=!1)},this)},onResize:function(){this.raf||b.requestAnimationFrame(this.refresh),this.raf=!0}},a.fn[d]=function(b){return this.each(function(){if(a.data(this,"plugin_"+d)){var e=a.data(this,"plugin_"+d);e.setOptions(b),e.refresh()}else a.data(this,"plugin_"+d,new c(this,b))})};var g=function(){a("[data-autoscale]").autoscale()};a(g),f.on("load",function(){g(),fastdom.defer(g)})}(jQuery,window),function(a){"use strict";$.fn.viewportHeight=function(b){return this.each(function(){a.attachTo(this,b)})},a.refreshAll()}(window.ViewportHeight),function(a,b,c,d){"use strict";function e(b,c){this.el=b,this.$el=a(b),c=c||{};var d=c.container||this.$el.data("sticky-element-container");this.$container=d?this.$el.closest(d):this.$el.parent(),this.$stateElement=c.stateElement,this.options=a.extend({},c),this._name=f,this.initialize()}var f="sticky",g=a(b),h=b.requestAnimationFrame||b.mozRequestAnimationFrame||b.webkitRequestAnimationFrame||b.msRequestAnimationFrame;b.requestAnimationFrame=h,e.prototype={initialize:function(){this.$stateElement&&this.$stateElement.data("sticky-enabled",!0),this.$el.addClass("sticky-element sticky-top"),this.onResize=a.proxy(this.onResize,this),this.listen()},listen:function(){g.on("resize",this.onResize),this.$container.scrollWatch({watchOn:this.options.watchOn}).on("scroll",this.onScroll,this)},destroy:function(){g.off("resize",this.onResize),this.$container.scrollWatch().destroy(),this.$el.removeClass("sticky-element sticky-top sticky-centered sticky-bottom")},refresh:function(){this.$container.scrollWatch().handleScroll(!0),this.raf=!1},onScroll:function(a){if(this.$stateElement&&this.$stateElement.data("sticky-enabled")===!1)return void this.unstick();a=a||{};var b=Math.abs(a.visibility),c=a.visibility>0,d=!c;if(1===b)this.stick();else if(0===b){var e="up"===a.direction?"top":"bottom";this.unstick(e)}else if(c)this.unstick("top");else if(d){var f=this.$el.outerHeight()/this.$container.height();"up"===a.direction&&b>=f?this.stick():this.unstick("bottom")}},unstick:function(a){this.$el.removeClass("sticky-bottom sticky-centered sticky-top"),a&&this.$el.addClass("sticky-"+a)},stick:function(){this.$el.removeClass("sticky-top sticky-bottom").addClass("sticky-centered")},onResize:function(){this.raf||b.requestAnimationFrame(a.proxy(this.refresh,this)),this.raf=!0}},a.fn[f]=function(b){return this.each(function(){a.data(this,"plugin_"+f)||a.data(this,"plugin_"+f,new e(this,b)),a.data(this,"plugin_"+f).onResize()})},g.on("load",function(){a("[data-sticky-element]").sticky()})}(jQuery,window,document),function(){function m(){return function(){}}function p(a){return function(){return this[a]}}function s(a){return function(){return a}}function u(a,b,c){if("string"==typeof a){if(0===a.indexOf("#")&&(a=a.slice(1)),u.xa[a])return u.xa[a];a=u.w(a)}if(!a||!a.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return a.player||new u.s(a,b,c)}function D(a){a.u("vjs-lock-showing")}function E(a,c,d,e){return d!==b?(a.a.style[c]=-1!==(""+d).indexOf("%")||-1!==(""+d).indexOf("px")?d:"auto"===d?"":d+"px",e||a.j("resize"),a):a.a?(d=a.a.style[c],e=d.indexOf("px"),-1!==e?parseInt(d.slice(0,e),10):parseInt(a.a["offset"+u.$(c)],10)):0}function F(a,b){var c,d,e,f;return c=a.a,d=u.ad(c),f=e=c.offsetWidth,c=a.handle,a.g.Cd?(f=d.top,d=b.changedTouches?b.changedTouches[0].pageY:b.pageY,c&&(c=c.w().offsetHeight,f+=c/2,e-=c),Math.max(0,Math.min(1,(f-d+e)/e))):(e=d.left,d=b.changedTouches?b.changedTouches[0].pageX:b.pageX,c&&(c=c.w().offsetWidth,e+=c/2,f-=c),Math.max(0,Math.min(1,(d-e)/f)))}function ca(a,b){a.Z(b),b.d("click",u.bind(a,function(){D(this)}))}function H(a){a.pa=f,a.wa.n("vjs-lock-showing"),a.a.setAttribute("aria-pressed",f),a.I&&0Chrome or download the latest Adobe Flash Player.'},"GENERATED_CDN_VSN"!==u.Tb&&(v.options.flash.swf=u.Fc+"vjs.zencdn.net/"+u.Tb+"/video-js.swf"),u.xa={},u.la=u.CoreObject=m(),u.la.extend=function(a){var b,c;a=a||{},b=a.init||a.i||this.prototype.init||this.prototype.i||m(),c=function(){b.apply(this,arguments)},c.prototype=u.k.create(this.prototype),c.prototype.constructor=c,c.extend=u.la.extend,c.create=u.la.create;for(var d in a)a.hasOwnProperty(d)&&(c.prototype[d]=a[d]);return c},u.la.create=function(){var a=u.k.create(this.prototype);return this.apply(a,arguments),a},u.d=function(a,b,c){var d=u.getData(a);d.z||(d.z={}),d.z[b]||(d.z[b]=[]),c.t||(c.t=u.t++),d.z[b].push(c),d.W||(d.disabled=l,d.W=function(b){if(!d.disabled){b=u.kc(b);var c=d.z[b.type];if(c)for(var c=c.slice(0),e=0,f=c.length;eu.Gc,u.Jc=/Firefox/i.test(u.F),u.Gd=/Chrome/i.test(u.F),u.ac=!!("ontouchstart"in window||window.Hc&&document instanceof window.Hc),u.xb=function(a){var b,c,d,e;if(b={},a&&a.attributes&&0d?"0"+d:d)+":")+(10>c?"0"+c:c)},u.Tc=function(){document.body.focus(),document.onselectstart=s(l)},u.Bd=function(){document.onselectstart=s(f)},u.trim=function(a){return(a+"").replace(/^\s+|\s+$/g,"")},u.round=function(a,b){return b||(b=0),Math.round(a*Math.pow(10,b))/Math.pow(10,b)},u.tb=function(a,b){return{length:1,start:function(){return a},end:function(){return b}}},u.get=function(a,b,c){var d,e;"undefined"==typeof XMLHttpRequest&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(a){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(b){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(c){}throw Error("This browser does not support XMLHttpRequest.")}),e=new XMLHttpRequest;try{e.open("GET",a)}catch(f){c(f)}d=0===a.indexOf("file:")||0===window.location.href.indexOf("file:")&&-1===a.indexOf("http"),e.onreadystatechange=function(){4===e.readyState&&(200===e.status||d&&0===e.status?b(e.responseText):c&&c())};try{e.send()}catch(g){c&&c(g)}},u.td=function(a){try{var b=window.localStorage||l;b&&(b.volume=a)}catch(c){22==c.code||1014==c.code?u.log("LocalStorage Full (VideoJS)",c):18==c.code?u.log("LocalStorage not allowed (VideoJS)",c):u.log("LocalStorage Error (VideoJS)",c)}},u.mc=function(a){return a.match(/^https?:\/\//)||(a=u.e("div",{innerHTML:'x'}).firstChild.href),a},u.log=function(){u.log.history=u.log.history||[],u.log.history.push(arguments),window.console&&window.console.log(Array.prototype.slice.call(arguments))},u.ad=function(a){var b,c;return a.getBoundingClientRect&&a.parentNode&&(b=a.getBoundingClientRect()),b?(a=document.documentElement,c=document.body,{left:b.left+(window.pageXOffset||c.scrollLeft)-(a.clientLeft||c.clientLeft||0),top:b.top+(window.pageYOffset||c.scrollTop)-(a.clientTop||c.clientTop||0)}):{left:0,top:0}},u.c=u.la.extend({i:function(a,b,c){if(this.b=a,this.g=u.k.copy(this.g),b=this.options(b),this.Q=b.id||(b.el&&b.el.id?b.el.id:a.id()+"_component_"+u.t++),this.gd=b.name||h,this.a=b.el||this.e(),this.G=[],this.qb={},this.V={},(a=this.g)&&a.children){var d=this;u.k.ua(a.children,function(a,b){b!==l&&!b.loadEvent&&(d[a]=d.Z(a,b))})}this.L(c)}}),t=u.c.prototype,t.D=function(){if(this.j("dispose"),this.G)for(var a=this.G.length-1;0<=a;a--)this.G[a].D&&this.G[a].D();this.V=this.qb=this.G=h,this.o(),this.a.parentNode&&this.a.parentNode.removeChild(this.a),u.vc(this.a),this.a=h},t.b=f,t.K=p("b"),t.options=function(a){return a===b?this.g:this.g=u.k.ic(this.g,a)},t.e=function(a,b){return u.e(a,b)},t.w=p("a"),t.id=p("Q"),t.name=p("gd"),t.children=p("G"),t.Z=function(a,b){var c,d;return"string"==typeof a?(d=a,b=b||{},c=b.componentClass||u.$(d),b.name=d,c=new window.videojs[c](this.b||this,b)):c=a,this.G.push(c),"function"==typeof c.id&&(this.qb[c.id()]=c),(d=d||c.name&&c.name())&&(this.V[d]=c),"function"==typeof c.el&&c.el()&&(this.sa||this.a).appendChild(c.el()),c},t.removeChild=function(a){if("string"==typeof a&&(a=this.V[a]),a&&this.G){for(var b=l,c=this.G.length-1;0<=c;c--)if(this.G[c]===a){b=f,this.G.splice(c,1);break}b&&(this.qb[a.id]=h,this.V[a.name]=h,(b=a.w())&&b.parentNode===(this.sa||this.a)&&(this.sa||this.a).removeChild(a.w()))}},t.T=s(""),t.d=function(a,b){return u.d(this.a,a,u.bind(this,b)),this},t.o=function(a,b){return u.o(this.a,a,b),this},t.U=function(a,b){return u.U(this.a,a,u.bind(this,b)),this},t.j=function(a,b){return u.j(this.a,a,b),this},t.L=function(a){return a&&(this.aa?a.call(this):(this.Sa===b&&(this.Sa=[]),this.Sa.push(a))),this},t.Ua=function(){this.aa=f;var a=this.Sa;if(a&&0'+(this.qa||"Need Text")+" ",qd:"button","aria-live":"polite",tabIndex:0},b),u.c.prototype.e.call(this,a,b)},t.T=function(){return"vjs-control "+u.c.prototype.T.call(this)},t.p=m(),t.Oa=function(){u.d(document,"keyup",u.bind(this,this.ba))},t.ba=function(a){32!=a.which&&13!=a.which||(a.preventDefault(),this.p())},t.Na=function(){u.o(document,"keyup",u.bind(this,this.ba))},u.O=u.c.extend({i:function(a,b){u.c.call(this,a,b),this.Sc=this.V[this.g.barName],this.handle=this.V[this.g.handleName],a.d(this.tc,u.bind(this,this.update)),this.d("mousedown",this.Pa),this.d("touchstart",this.Pa),this.d("focus",this.Oa),this.d("blur",this.Na),this.d("click",this.p),this.b.d("controlsvisible",u.bind(this,this.update)),a.L(u.bind(this,this.update)),this.P={}}}),t=u.O.prototype,t.e=function(a,b){return b=b||{},b.className+=" vjs-slider",b=u.k.B({qd:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},b),u.c.prototype.e.call(this,a,b)},t.Pa=function(a){a.preventDefault(),u.Tc(),this.P.move=u.bind(this,this.Hb),this.P.end=u.bind(this,this.Ib),u.d(document,"mousemove",this.P.move),u.d(document,"mouseup",this.P.end),u.d(document,"touchmove",this.P.move),u.d(document,"touchend",this.P.end),this.Hb(a)},t.Ib=function(){u.Bd(),u.o(document,"mousemove",this.P.move,l),u.o(document,"mouseup",this.P.end,l),u.o(document,"touchmove",this.P.move,l),u.o(document,"touchend",this.P.end,l),this.update()},t.update=function(){if(this.a){var a,b=this.yb(),c=this.handle,d=this.Sc;if(isNaN(b)&&(b=0),a=b,c){a=this.a.offsetWidth;var e=c.w().offsetWidth;a=e?e/a:0,b*=1-a,a=b+a/2,c.w().style.left=u.round(100*b,2)+"%"}d.w().style.width=u.round(100*a,2)+"%"}},t.Oa=function(){u.d(document,"keyup",u.bind(this,this.ba))},t.ba=function(a){37==a.which?(a.preventDefault(),this.yc()):39==a.which&&(a.preventDefault(),this.zc())},t.Na=function(){u.o(document,"keyup",u.bind(this,this.ba))},t.p=function(a){a.stopImmediatePropagation(),a.preventDefault()},u.ea=u.c.extend(),u.ea.prototype.defaultValue=0,u.ea.prototype.e=function(a,b){return b=b||{},b.className+=" vjs-slider-handle",b=u.k.B({innerHTML:''+this.defaultValue+""},b),u.c.prototype.e.call(this,"div",b)},u.ma=u.c.extend(),u.ma.prototype.e=function(){var a=this.options().Vc||"ul";return this.sa=u.e(a,{className:"vjs-menu-content"}),a=u.c.prototype.e.call(this,"div",{append:this.sa,className:"vjs-menu"}),a.appendChild(this.sa),u.d(a,"click",function(a){a.preventDefault(),a.stopImmediatePropagation()}),a},u.N=u.q.extend({i:function(a,b){u.q.call(this,a,b),this.selected(b.selected)}}),u.N.prototype.e=function(a,b){return u.q.prototype.e.call(this,"li",u.k.B({className:"vjs-menu-item",innerHTML:this.g.label},b))},u.N.prototype.p=function(){this.selected(f)},u.N.prototype.selected=function(a){a?(this.n("vjs-selected"),this.a.setAttribute("aria-selected",f)):(this.u("vjs-selected"),this.a.setAttribute("aria-selected",l))},u.R=u.q.extend({i:function(a,b){u.q.call(this,a,b),this.wa=this.Ka(),this.Z(this.wa),this.I&&0===this.I.length&&this.C(),this.d("keyup",this.ba),this.a.setAttribute("aria-haspopup",f),this.a.setAttribute("role","button")}}),t=u.R.prototype,t.pa=l,t.Ka=function(){var a=new u.ma(this.b);if(this.options().title&&a.w().appendChild(u.e("li",{className:"vjs-menu-title",innerHTML:u.$(this.A),zd:-1})),this.I=this.createItems())for(var b=0;bCurrent Time 0:00',"aria-live":"off"}),a.appendChild(u.e("div").appendChild(this.content)),a},u.Ya.prototype.Ca=function(){var a=this.b.Nb?this.b.v.currentTime:this.b.currentTime();this.content.innerHTML='Current Time '+u.La(a,this.b.duration())},u.Za=u.c.extend({i:function(a,b){u.c.call(this,a,b),a.d("timeupdate",u.bind(this,this.Ca))}}),u.Za.prototype.e=function(){var a=u.c.prototype.e.call(this,"div",{className:"vjs-duration vjs-time-controls vjs-control"});return this.content=u.e("div",{className:"vjs-duration-display",innerHTML:'Duration Time 0:00',"aria-live":"off"}),a.appendChild(u.e("div").appendChild(this.content)),a},u.Za.prototype.Ca=function(){var a=this.b.duration();a&&(this.content.innerHTML='Duration Time '+u.La(a))},u.cc=u.c.extend({i:function(a,b){u.c.call(this,a,b)}}),u.cc.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-time-divider",innerHTML:"/
"})},u.fb=u.c.extend({i:function(a,b){u.c.call(this,a,b),a.d("timeupdate",u.bind(this,this.Ca))}}),u.fb.prototype.e=function(){var a=u.c.prototype.e.call(this,"div",{className:"vjs-remaining-time vjs-time-controls vjs-control"});return this.content=u.e("div",{className:"vjs-remaining-time-display",innerHTML:'Remaining Time -0:00',"aria-live":"off"}),a.appendChild(u.e("div").appendChild(this.content)),a},u.fb.prototype.Ca=function(){this.b.duration()&&(this.content.innerHTML='Remaining Time -'+u.La(this.b.duration()-this.b.currentTime()))},u.Ga=u.q.extend({i:function(a,b){u.q.call(this,a,b)}}),u.Ga.prototype.qa="Fullscreen",u.Ga.prototype.T=function(){return"vjs-fullscreen-control "+u.q.prototype.T.call(this)},u.Ga.prototype.p=function(){this.b.H?(this.b.ob(),this.a.children[0].children[0].innerHTML="Fullscreen"):(this.b.ya(),this.a.children[0].children[0].innerHTML="Non-Fullscreen")},u.eb=u.c.extend({i:function(a,b){u.c.call(this,a,b)}}),u.eb.prototype.g={children:{seekBar:{}}},u.eb.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-progress-control vjs-control"})},u.Zb=u.O.extend({i:function(a,b){u.O.call(this,a,b),a.d("timeupdate",u.bind(this,this.Ba)),a.L(u.bind(this,this.Ba))}}),t=u.Zb.prototype,t.g={children:{loadProgressBar:{},playProgressBar:{},seekHandle:{}},barName:"playProgressBar",handleName:"seekHandle"},t.tc="timeupdate",t.e=function(){return u.O.prototype.e.call(this,"div",{className:"vjs-progress-holder","aria-label":"video progress bar"})},t.Ba=function(){var a=this.b.Nb?this.b.v.currentTime:this.b.currentTime();this.a.setAttribute("aria-valuenow",u.round(100*this.yb(),2)),this.a.setAttribute("aria-valuetext",u.La(a,this.b.duration()))},t.yb=function(){var a;return"Flash"===this.b.ia&&this.b.seeking()?(a=this.b.v,a=a.rc?a.rc:this.b.currentTime()):a=this.b.currentTime(),a/this.b.duration()},t.Pa=function(a){u.O.prototype.Pa.call(this,a),this.b.Nb=f,this.Dd=!this.b.paused(),this.b.pause()},t.Hb=function(a){a=F(this,a)*this.b.duration(),a==this.b.duration()&&(a-=.1),this.b.currentTime(a)},t.Ib=function(a){u.O.prototype.Ib.call(this,a),this.b.Nb=l,this.Dd&&this.b.play()},t.zc=function(){this.b.currentTime(this.b.currentTime()+5)},t.yc=function(){this.b.currentTime(this.b.currentTime()-5)},u.ab=u.c.extend({i:function(a,b){u.c.call(this,a,b),a.d("progress",u.bind(this,this.update))}}),u.ab.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-load-progress",innerHTML:'Loaded: 0%'})},u.ab.prototype.update=function(){this.a.style&&(this.a.style.width=u.round(100*this.b.Ja(),2)+"%")},u.Xb=u.c.extend({i:function(a,b){u.c.call(this,a,b)}}),u.Xb.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-play-progress",innerHTML:'Progress: 0%'})},u.gb=u.ea.extend(),u.gb.prototype.defaultValue="00:00",u.gb.prototype.e=function(){return u.ea.prototype.e.call(this,"div",{className:"vjs-seek-handle"})},u.ib=u.c.extend({i:function(a,b){u.c.call(this,a,b),a.h&&a.h.m&&a.h.m.volumeControl===l&&this.n("vjs-hidden"),a.d("loadstart",u.bind(this,function(){a.h.m&&a.h.m.volumeControl===l?this.n("vjs-hidden"):this.u("vjs-hidden")}))}}),u.ib.prototype.g={children:{volumeBar:{}}},u.ib.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-volume-control vjs-control"})},u.hb=u.O.extend({i:function(a,b){u.O.call(this,a,b),a.d("volumechange",u.bind(this,this.Ba)),a.L(u.bind(this,this.Ba)),setTimeout(u.bind(this,this.update),0)}}),t=u.hb.prototype,t.Ba=function(){this.a.setAttribute("aria-valuenow",u.round(100*this.b.volume(),2)),this.a.setAttribute("aria-valuetext",u.round(100*this.b.volume(),2)+"%")},t.g={children:{volumeLevel:{},volumeHandle:{}},barName:"volumeLevel",handleName:"volumeHandle"},t.tc="volumechange",t.e=function(){return u.O.prototype.e.call(this,"div",{className:"vjs-volume-bar","aria-label":"volume level"})},t.Hb=function(a){this.b.muted()&&this.b.muted(l),this.b.volume(F(this,a))},t.yb=function(){return this.b.muted()?0:this.b.volume()},t.zc=function(){this.b.volume(this.b.volume()+.1)},t.yc=function(){this.b.volume(this.b.volume()-.1)},u.dc=u.c.extend({i:function(a,b){u.c.call(this,a,b)}}),u.dc.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-volume-level",innerHTML:''})},u.jb=u.ea.extend(),u.jb.prototype.defaultValue="00:00",u.jb.prototype.e=function(){return u.ea.prototype.e.call(this,"div",{className:"vjs-volume-handle"})},u.da=u.q.extend({i:function(a,b){u.q.call(this,a,b),a.d("volumechange",u.bind(this,this.update)),a.h&&a.h.m&&a.h.m.volumeControl===l&&this.n("vjs-hidden"),a.d("loadstart",u.bind(this,function(){a.h.m&&a.h.m.volumeControl===l?this.n("vjs-hidden"):this.u("vjs-hidden")}))}}),u.da.prototype.e=function(){return u.q.prototype.e.call(this,"div",{className:"vjs-mute-control vjs-control",innerHTML:'Mute
'})},u.da.prototype.p=function(){this.b.muted(this.b.muted()?l:f)},u.da.prototype.update=function(){var a=this.b.volume(),b=3;for(0===a||this.b.muted()?b=0:.33>a?b=1:.67>a&&(b=2),this.b.muted()?"Unmute"!=this.a.children[0].children[0].innerHTML&&(this.a.children[0].children[0].innerHTML="Unmute"):"Mute"!=this.a.children[0].children[0].innerHTML&&(this.a.children[0].children[0].innerHTML="Mute"),a=0;4>a;a++)u.u(this.a,"vjs-vol-"+a);u.n(this.a,"vjs-vol-"+b)},u.oa=u.R.extend({i:function(a,b){u.R.call(this,a,b),a.d("volumechange",u.bind(this,this.update)),a.h&&a.h.m&&a.h.m.Dc===l&&this.n("vjs-hidden"),a.d("loadstart",u.bind(this,function(){a.h.m&&a.h.m.Dc===l?this.n("vjs-hidden"):this.u("vjs-hidden")})),this.n("vjs-menu-button")}}),u.oa.prototype.Ka=function(){var a=new u.ma(this.b,{Vc:"div"}),b=new u.hb(this.b,u.k.B({Cd:f},this.g.Vd));return a.Z(b),a},u.oa.prototype.p=function(){u.da.prototype.p.call(this),u.R.prototype.p.call(this)},u.oa.prototype.e=function(){return u.q.prototype.e.call(this,"div",{className:"vjs-volume-menu-button vjs-menu-button vjs-control",innerHTML:'Mute
'})},u.oa.prototype.update=u.da.prototype.update,u.cb=u.q.extend({i:function(a,b){u.q.call(this,a,b),(!a.poster()||!a.controls())&&this.C(),a.d("play",u.bind(this,this.C))}}),u.cb.prototype.e=function(){var a=u.e("div",{className:"vjs-poster",tabIndex:-1}),b=this.b.poster();return b&&("backgroundSize"in a.style?a.style.backgroundImage='url("'+b+'")':a.appendChild(u.e("img",{src:b}))),a},u.cb.prototype.p=function(){this.K().controls()&&this.b.play()},u.Wb=u.c.extend({i:function(a,b){u.c.call(this,a,b),a.d("canplay",u.bind(this,this.C)),a.d("canplaythrough",u.bind(this,this.C)),a.d("playing",u.bind(this,this.C)),a.d("seeked",u.bind(this,this.C)),
a.d("seeking",u.bind(this,this.show)),a.d("seeked",u.bind(this,this.C)),a.d("error",u.bind(this,this.show)),a.d("waiting",u.bind(this,this.show))}}),u.Wb.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-loading-spinner"})},u.Wa=u.q.extend(),u.Wa.prototype.e=function(){return u.q.prototype.e.call(this,"div",{className:"vjs-big-play-button",innerHTML:'',"aria-label":"play video"})},u.Wa.prototype.p=function(){this.b.play()},u.r=u.c.extend({i:function(a,b,c){u.c.call(this,a,b,c);var d,e;e=this,d=this.K(),a=function(){if(d.controls()&&!d.Rb()){var a,b;e.d("mousedown",e.p),e.d("touchstart",function(a){a.preventDefault(),a.stopPropagation(),b=this.b.ja()}),a=function(a){a.stopPropagation(),b&&this.b.Mb()},e.d("touchmove",a),e.d("touchleave",a),e.d("touchcancel",a),e.d("touchend",a);var c,g,h;c=0,e.d("touchstart",function(){c=(new Date).getTime(),h=f}),a=function(){h=l},e.d("touchmove",a),e.d("touchleave",a),e.d("touchcancel",a),e.d("touchend",function(){h===f&&(g=(new Date).getTime()-c,250>g&&this.j("tap"))}),e.d("tap",e.md)}},b=u.bind(e,e.pd),this.L(a),d.d("controlsenabled",a),d.d("controlsdisabled",b)}}),u.r.prototype.pd=function(){this.o("tap"),this.o("touchstart"),this.o("touchmove"),this.o("touchleave"),this.o("touchcancel"),this.o("touchend"),this.o("click"),this.o("mousedown")},u.r.prototype.p=function(a){0===a.button&&this.K().controls()&&(this.K().paused()?this.K().play():this.K().pause())},u.r.prototype.md=function(){this.K().ja(!this.K().ja())},u.r.prototype.m={volumeControl:f,fullscreenResize:l,progressEvents:l,timeupdateEvents:l},u.media={},u.media.Va="play pause paused currentTime setCurrentTime duration buffered volume setVolume muted setMuted width height supportsFullScreen enterFullScreen src load currentSrc preload setPreload autoplay setAutoplay loop setLoop error networkState readyState seeking initialTime startOffsetTime played seekable ended videoTracks audioTracks videoWidth videoHeight textTracks defaultPlaybackRate playbackRate mediaGroup controller controls defaultMuted".split(" ");for(var i=u.media.Va.length-1;0<=i;i--)u.r.prototype[u.media.Va[i]]=ea();u.l=u.r.extend({i:function(a,b,c){if(this.m.volumeControl=u.l.Uc(),this.m.movingMediaElementInDOM=!u.Kc,this.m.fullscreenResize=f,u.r.call(this,a,b,c),(b=b.source)&&this.a.currentSrc===b.src&&0'}),d=u.k.B({data:a,width:"100%",height:"100%"},d),u.k.ua(d,function(a,b){g+=a+'="'+b+'" '}),'"},u.f.yd=function(a,b){return a+"&"+b},u.f.Ac=function(a){var b={rb:"",Ob:""};if(!a)return b;var c,d=a.indexOf("&");return-1!==d?c=d+1:(d=c=a.lastIndexOf("/")+1,0===d&&(d=c=a.length)),b.rb=a.substring(0,d),b.Ob=a.substring(c,a.length),b},u.f.ed=function(a){return a in u.f.Bc},u.f.Qc=/^rtmp[set]?:\/\//i,u.f.dd=function(a){return u.f.Qc.test(a)},u.Pc=u.c.extend({i:function(a,b,c){if(u.c.call(this,a,b,c),a.g.sources&&0!==a.g.sources.length)a.src(a.g.sources);else for(b=0,c=a.g.techOrder;b")?(b=d,d=u.trim(a[++e])):b=this.fa.length,b={id:b,index:this.fa.length},c=d.split(" --> "),b.startTime=Y(c[0]),b.va=Y(c[1]),c=[];a[++e]&&(d=u.trim(a[e]));)c.push(d);b.text=c.join("
"),this.fa.push(b)}this.ha=2,this.j("loaded")},t.update=function(){if(0=this.Ma||this.Ma===b?g=this.wb!==b?this.wb:0:(k=f,g=this.Db!==b?this.Db:h.length-1);;){if(e=h[g],e.va<=a)j=Math.max(j,e.va),e.Ia&&(e.Ia=l);else if(a'+a[i].text+"";this.a.innerHTML=h,this.j("cuechange")}}},t.reset=function(){this.Ma=0,this.Lb=this.b.duration(),this.Db=this.wb=0},u.Ub=u.X.extend(),u.Ub.prototype.A="captions",u.$b=u.X.extend(),u.$b.prototype.A="subtitles",u.Vb=u.X.extend(),u.Vb.prototype.A="chapters",u.bc=u.c.extend({i:function(a,b,c){if(u.c.call(this,a,b,c),a.g.tracks&&0=this.I.length&&this.C()}}),u.S.prototype.ta=function(){var a,b=[];b.push(new u.bb(this.b,{kind:this.A}));for(var c=0;ca.readyState())return this.Id=a,void a.d("loaded",u.bind(this,this.Ka));b=a;break}if(c=this.wa=new u.ma(this.b),c.a.appendChild(u.e("li",{className:"vjs-menu-title",innerHTML:u.$(this.A),zd:-1})),b){a=b.fa;for(var g,d=0,e=a.length;dd||(a.length=d)}else for(d in b)aa.call(b,d)&&void 0!==b[d]&&(a[d]=b[d]);return a}function i(a,b,d){return null==a?a:("object"==typeof a&&!a.nodeType&&c(a.length)?e(a,b,d):b.call(d||a,a),a)}function j(a){return function(b,c){var d=a();return b=d>=(b||0),c?b&&d<=c:b}}function k(a){var b=W.devicePixelRatio;return null==a?b||(k(2)?2:k(1.5)?1.5:k(1)?1:0):!!isFinite(a)&&(b&&b>0?b>=a:(a="only all and (min--moz-device-pixel-ratio:"+a+")",!!Ba(a).matches||!!Ba(a.replace("-moz-","")).matches))}function l(a){return a.replace(wa,"$1").replace(va,function(a,b){return b.toUpperCase()})}function m(a){return"data-"+(a?a.replace(wa,"$1").replace(ua,"$1-$2").toLowerCase():a)}function n(a){var b;return a&&"string"==typeof a?"true"===a||"false"!==a&&("undefined"===a?b:"null"===a?null:(b=parseFloat(a))===+b?b:a):a}function o(a){return!!a&&(1===a.nodeType?a:!(!a[0]||1!==a[0].nodeType)&&a[0])}function p(a,b){var c,d=arguments.length,f=o(this),g={},h=!1;if(d){if(ea(a)&&(h=!0,a=a[0]),"string"==typeof a){if(a=m(a),1===d)return g=f.getAttribute(a),h?n(g):g;if(this===f||2>(c=this.length||1))f.setAttribute(a,b);else for(;c--;)c in this&&p.apply(this[c],arguments)}else if(a instanceof Object)for(c in a)a.hasOwnProperty(c)&&p.call(this,c,a[c]);return this}return f.dataset&&DOMStringMap?f.dataset:(e(f.attributes,function(a){a&&(c=String(a.name).match(wa))&&(g[l(c[1])]=a.value)}),g)}function q(a){return this&&"string"==typeof a&&(a=d(a),i(this,function(b){e(a,function(a){a&&b.removeAttribute(m(a))})})),this}function r(a,b,c){return p.apply(a,ba.call(arguments,1))}function s(a,b){return q.call(a,b)}function t(a){for(var b,c=[],d=0,e=a.length;d=0&&c.left<=Ca()}function z(a,b){var c=x(o(a),b);return!!c&&c.bottom>=0&&c.top<=Da()}function A(a,b){var c=x(o(a),b);return!!c&&c.bottom>=0&&c.top<=Da()&&c.right>=0&&c.left<=Ca()}function B(a){var b={img:1,input:1,source:3,embed:3,track:3,iframe:5,audio:5,video:5,script:5},c=b[a.nodeName.toLowerCase()]||-1;return 4>c?c:null!=a.getAttribute("src")?5:-5}function C(a,c,d){var e;return a&&null!=c||b("store"),d="string"==typeof d&&d,i(a,function(a){e=d?a.getAttribute(d):0na?ma:na,pa=ma+na-oa,qa=function(){return ma},ra=function(){return na},sa=/[^a-z0-9_\-\.]/gi,ta=/^[\W\s]+|[\W\s]+$|/g,ua=/([a-z])([A-Z])/g,va=/-(.)/g,wa=/^data-(.+)$/,xa=Object.create||function(a){function b(){}return b.prototype=a,new b},ya=function(a,b){return b=b||T,a.replace(ta,"")+"."+b.replace(ta,"")},za={allLoaded:ya("allLoaded"),crossover:ya("crossover")},Aa=W.matchMedia||W.msMatchMedia,Ba=Aa||function(){return{}},Ca=function(a,b,c){var d=b.clientWidth,e=a.innerWidth;return c&&dparseInt(c.width,10);)a[d]=a[d-1],--d;a[d]=c}return a},d=function(a,c){for(var d,e,f=b.devicePixelRatio||1,g=0,h=0;h=d)));h++);return c[Math.min(h,g)]};return function(b,e){for(var f=b.width(),g=b.height(),h=[],i=function(a,b){return"width"===b?f:"height"===b?g:a},j=0;j=c.length&&(d=0,e=0),f<0&&(f=e),f=Math.min(f,e);var j=c.slice(d+f,e-f);if(c=c.slice(d,f),e=c.length,!e)return void i(c,g,!0);for(var k,l=0,m=function(){
l++,l===e&&(i(c,g,!j),b(j,0,0,f,g))},n=0;n=this.images.length&&(this.options.start=this.images.length-1),this.options.start<0&&(this.options.start=0),this.isBody=c===document.body;var l=a(b);this.$container=a(c),this.$root=this.isBody?j?l:a(document):this.$container,this.originalImages=this.images,this.images=e(this.options.alwaysTestWindowResolution?l:this.$root,this.originalImages),f(this.images,this.options.start||0,this.options.preload||1);var m=this.$container.children(".backstretch").first();if(this.$wrap=m.length?m:a('').css(this.options.bypassCss?{}:d.wrap).appendTo(this.$container),!this.options.bypassCss){if(!this.isBody){var n=this.$container.css("position"),o=this.$container.css("zIndex");this.$container.css({position:"static"===n?"relative":n,zIndex:"auto"===o?0:o,background:"none"}),this.$wrap.css({zIndex:-999998})}this.$wrap.css({position:this.isBody&&j?"fixed":"absolute"})}this.index=this.options.start,this.show(this.index),l.on("resize.backstretch",a.proxy(this.resize,this)).on("orientationchange.backstretch",a.proxy(function(){this.isBody&&0===b.pageYOffset&&(b.scrollTo(0,1),this.resize())},this))};i.prototype={resize:function(){try{var d=this.options.alwaysTestWindowResolution?a(b):this.$root,g=d.width(),h=d.height(),i=g/(this._lastResizeContainerWidth||0),j=h/(this._lastResizeContainerHeight||0),k=this.options.resolutionChangeRatioTreshold||0;if((g!==this._lastResizeContainerWidth||h!==this._lastResizeContainerHeight)&&(Math.abs(i-1)>=k||isNaN(i)||Math.abs(j-1)>=k||isNaN(j))&&(this._lastResizeContainerWidth=g,this._lastResizeContainerHeight=h,this.images=e(d,this.originalImages),this.options.preload&&f(this.images,(this.index+1)%this.images.length,this.options.preload),1===this.images.length&&this._currentImage!==this.images[0])){var l=this;clearTimeout(l._selectAnotherResolutionTimeout),l._selectAnotherResolutionTimeout=setTimeout(function(){l.show(0)},this.options.resolutionRefreshRate)}var m,n={left:0,top:0,right:"auto",bottom:"auto"},o=this.isBody?this.$root.width():this.$root.innerWidth(),p=o,q=this.isBody?b.innerHeight?b.innerHeight:this.$root.height():this.$root.innerHeight(),r=p/this.$img.data("ratio"),s=a.Event("backstretch.resize",{relatedTarget:this.$container[0]}),t=this._currentImage.alignX===c?this.options.alignX:this._currentImage.alignX,u=this._currentImage.alignY===c?this.options.alignY:this._currentImage.alignY;r>=q?n.top=-(r-q)*u:(r=q,p=r*this.$img.data("ratio"),m=(p-o)/2,n.left=-(p-o)*t),this.options.bypassCss||this.$wrap.css({width:o,height:q}).find("img:not(.deleteable)").css({width:p,height:r}).css(n),this.$container.trigger(s,this)}catch(v){}return this},show:function(b){if(!(Math.abs(b)>this.images.length-1)){var e=this,f=e.$wrap.find("img").addClass("deleteable"),g={relatedTarget:e.$container[0]};e.$container.trigger(a.Event("backstretch.before",g),[e,b]),this.index=b,clearTimeout(e._cycleTimeout),e.$img=a(""),this.options.bypassCss?e.$img.css({display:"none"}):e.$img.css(d.img),e.$img.bind("load",function(d){var h=a(this),i=this.width||a(d.target).width(),j=this.height||a(d.target).height();h.data("ratio",i/j);var k=h.data("options").fade!==c?h.data("options").fade:e.options.speed||e.options.fade,l=function(){f.remove(),!e.paused&&e.images.length>1&&e.cycle(),a(["after","show"]).each(function(){e.$container.trigger(a.Event("backstretch."+this,g),[e,b])})};e.firstShow&&!e.options.fadeFirst||!k?(a(this).show(),l()):a(this).fadeIn(k,l),e.firstShow=!1,e.resize()}).appendTo(e.$wrap);var h=e.images[b];return e.$img.attr("src",h.url),e.$img.attr("alt",h.alt||""),e.$img.data("options",h),e._currentImage=h,e}},next:function(){return this.show(this.index1){clearTimeout(this._cycleTimeout);var b=this._currentImage&&this._currentImage.duration||this.options.duration;this._cycleTimeout=setTimeout(a.proxy(function(){this.paused||this.next()},this),b)}return this},destroy:function(c){a(b).off("resize.backstretch orientationchange.backstretch"),clearTimeout(this._cycleTimeout),c||this.$wrap.remove(),this.$container.removeData("backstretch")}};var j=function(){var a=navigator.userAgent,c=navigator.platform,d=a.match(/AppleWebKit\/([0-9]+)/),e=!!d&&d[1],f=a.match(/Fennec\/([0-9]+)/),g=!!f&&f[1],h=a.match(/Opera Mobi\/([0-9]+)/),i=!!h&&h[1],j=a.match(/MSIE ([0-9]+)/),k=!!j&&j[1];return!((c.indexOf("iPhone")>-1||c.indexOf("iPad")>-1||c.indexOf("iPod")>-1)&&e&&e<534||b.operamini&&"[object OperaMini]"==={}.toString.call(b.operamini)||h&&i<7458||a.indexOf("Android")>-1&&e&&e<533||g&&g<6||"palmGetResource"in b&&e&&e<534||a.indexOf("MeeGo")>-1&&a.indexOf("NokiaBrowser/8.5.0")>-1||k&&k<=6)}()}(jQuery,window),function(){var a=Shorthand.MediaRenderer={},b=(document.documentElement,"loading"),c="loaded",d="already_loaded",e=1e3;a.OFFSET_TOP=0,a.buildInitialState=function(){return{sections:[],lastRenderedCaption:!1}},a.attachSection=function(b){var c=b.querySelector("[data-foreground-canvas]"),d={canvas:c,scrollContainer:c.parentNode.parentNode};a.state.sections.push(d)},a.tick=function(){requestAnimationFrame(a.tick),a.getVisibleCanvases(function(b){b.forEach(function(b){var c=b.canvas,d=b.normalizedY;a.getCanvasImages(c,function(e,f){var g=c.clientHeight,h=b.scrollContainer.clientHeight,i={renderWidth:c.clientWidth,renderHeight:g,scrollHeight:h,imageHeight:h/e.length},j=a.buildRenderStack(e,d,i),k=null;if(a.shouldShowCaption(i,d)&&(k=a.getCaptionToRender(j)),a.renderCaption(k,c.parentNode),!(0===j.length||c.lastRenderStack&&_.isEqual(c.lastRenderStack,j))){c.lastRenderStack=j;var l=c.getContext("2d");j.forEach(function(b){a.drawImage(l,b.img,b.boxing)})}})})})},a.buildRenderStack=function(b,e,f){var g=(a.state,[]);return b.forEach(function(h,i){var j=a.getImageSrcState(h),k=b.length-1===i;if(a.doShowImage(f,h,i,k,e)){if(j.state===c||j.state===d){var l=a.getScaledImage(f,h),m=a.calculateImageBoxing(f,e,i,l,h.transition);g.push({id:h.id,img:l,boxing:m,caption:h.caption,transition:h.transition,index:i})}var n=Date.now();if(a.doShowInstantImage(j,n)){var o=a.getInstantImageTransitionOpacity(j,n),m=a.calculateImageBoxing(f,e,i,h.instantImg,h.transition);m.opacity=m.opacity*o,g.push({id:h.id,img:h.instantImg,boxing:m,caption:h.caption,transition:h.transition})}}}),g},a.getInstantImageTransitionOpacity=function(a,c){if(a.state===b)return 1;var d=c-a.loadedAt,f=d/e;return 1-f},a.doShowInstantImage=function(a,c){return a.state===b||a.state!==d&&!!(a.loadedAt&&c-a.loadedAt<=e)},a.getImageSrcState=function(e){var f=e.img.src;if(f in e.srcStates)return e.srcStates[f];var g=e.srcStates[f]={state:b,loadedAt:!1,whenLoaded:a.loadSource(f),src:f};return g.whenLoaded.then(function(a){g.state=a.wasAlreadyLoaded?d:c,g.loadedAt=Date.now(),g.img=a.img}),g},a.doShowImage=function(a,b,c,d,e){var f=c*a.imageHeight,g=(c+1)*a.imageHeight,h=e+a.renderHeight;return(b.transition||0===c)&&(f-=a.renderHeight),d&&(g+=a.renderHeight),e>=f&&h<=g||e<=g&&h>=g},a.getCanvasImages=function(a,b){if(a.revealImages){var c=a.revealImages;return c.forEach(function(a){a.img.src!==a.currentSrc&&(a.currentSrc=a.img.src)}),b(c)}var d=a.getElementsByClassName("reveal-media-item"),c=Array.prototype.map.call(d,function(a){var b=a.querySelector("[data-reveal-caption]"),c=a.getElementsByClassName("reveal-media-image")[0],d=new Image;d.src=c.getAttribute("data-instant-image");var e={id:a.getAttribute("data-id"),img:c,srcStates:{},transition:a.getAttribute("data-transition"),instantImg:d,caption:b};return e});a.revealImages=c,b(c)},a.loadSource=function(a){var b=$.Deferred(),c=new Image;c.src=a;var d=Date.now();return c.addEventListener("load",function(a){var e=Date.now(),f={wasAlreadyLoaded:!1};e-d<15&&(f.wasAlreadyLoaded=!0),f.img=c,b.resolve(f)}),b},a.drawImage=function(a,b,c){a.globalAlpha=c.opacity,a.drawImage(b,c.sx,c.sy,c.sWidth,c.sHeight,c.dx,c.dy,c.dWidth,c.dHeight)},a.getScaledImage=function(b,c){var d=a.getImageSrcState(c);d.scaledCache||(d.scaledCache={img:void 0,width:void 0,height:void 0});var e=d.scaledCache;if(e.width===b.renderWidth&&e.height===b.renderHeight)return e.img;var f=document.createElement("canvas"),g=f.getContext("2d");f.width=f.naturalWidth=b.renderWidth,f.height=f.naturalHeight=b.renderHeight;var h=d.img,i=0,j=0,k=!1,l=a.calculateImageBoxing(b,i,j,h,k);return a.drawImage(g,h,l),e.img=f,e.width=b.renderWidth,e.height=b.renderHeight,e.img},a.calculateTransitionPercentage=function(a,b,c,d){var e=b*c.imageHeight,f=d?e-c.renderHeight:e,g=e-f,h=a-f,i=h/g;return i=Math.max(i,0),i=Math.min(i,1)},a.calculateImageBoxing=function(b,c,d,e,f){var g=e.naturalWidth/b.renderWidth,h=e.naturalHeight/b.renderHeight,i=Math.min(g,h),j=e.naturalWidth/i,k=e.naturalHeight/i,l=j-b.renderWidth,m=k-b.renderHeight,n={};return n.sx=l*i/2,n.sy=m*i/2,n.sWidth=e.naturalWidth-l*i,n.sHeight=e.naturalHeight-m*i,n.dWidth=b.renderWidth,n.dHeight=b.renderHeight,n.dx=0,n.dy=0,n.opacity=1,n.transitionPercentage=a.calculateTransitionPercentage(c,d,b,f),f in a.Transitions?a.Transitions[f](n):n},a.Transitions={up:function(a){var b=1-a.transitionPercentage;return a.sy=a.sy+a.sHeight*b,a.sHeight=a.sHeight*a.transitionPercentage,a.dy=a.dy+a.dHeight*b,a.dHeight=a.dHeight*a.transitionPercentage,a},down:function(a){return a.sHeight=a.sHeight*a.transitionPercentage,a.dHeight=a.dHeight*a.transitionPercentage,a},right:function(a){return a.sWidth=a.sWidth*a.transitionPercentage,a.dWidth=a.dWidth*a.transitionPercentage,a},left:function(a){var b=1-a.transitionPercentage;return a.sx=a.sx+a.sWidth*b,a.sWidth=a.sWidth*a.transitionPercentage,a.dx=a.dx+a.dWidth*b,a.dWidth=a.dWidth*a.transitionPercentage,a},fade:function(a){return a.opacity=a.transitionPercentage,a}},a.getVisibleCanvases=function(b){var c=a.state.sections.map(function(b){return{canvas:b.canvas,normalizedY:a.getNormalizedY(b.scrollContainer),scrollContainer:b.scrollContainer}}).filter(function(a){return a.normalizedY!==!1});b(c)},a.getNormalizedY=function(b){var c=Shorthand.Viewport.getHeight(),d=b.getBoundingClientRect(),e=d.top-a.OFFSET_TOP,f=d.bottom-a.OFFSET_TOP,g=e>=0&&e<=c,h=f>=0&&f<=c,i=e<0&&f>0;return!!(g||h||i)&&-e}}(),function(){"use strict";var a=Shorthand.MediaRenderer,b=.6,c=.25,d="state-hide-caption",e="state-no-caption";a.getMostVisibleItem=function(a){if(0===a.length)return null;var b=a.reduce(function(a,b){return b.boxing.transitionPercentage>=a.boxing.transitionPercentage?b:a},{boxing:{transitionPercentage:0},caption:null});return b},a.getCaptionToRender=function(d){if(0===d.length)return null;var e=a.getMostVisibleItem(d),f=d.reduce(function(a,b){var c=b.boxing.transitionPercentage,d=a.boxing.transitionPercentage;return c>0&&c<=d?b:a});if(e.boxing.transitionPercentage<=b)return null;var g=e.caption;if(f)if(f.boxing.transitionPercentage>b)g=f.caption;else if(f.boxing.transitionPercentage>c)return e.caption&&f.caption?"":null;return g?g.outerHTML:null},a.renderCaption=function(b,c){var d=c.captionDisplay;d||(d=document.createElement("div"),d.setAttribute("data-caption-display",!0),d.setAttribute("class","reveal-caption-display"),c.parentNode.appendChild(d),c.captionDisplay=d),b!==a.state.lastRenderedCaption&&(b?a.showCaption(b,d):""===b?a.hideCaption(d):a.hideCaptionDisplay(d),a.state.lastRenderedCaption=b)},a.shouldShowCaption=function(a,c){var d=(a.renderHeight*b-a.renderHeight,a.scrollHeight-a.renderHeight),e=c>d;return!e&&!e},a.showCaption=function(a,b){b.className=b.className.replace(d,""),b.className=b.className.replace(e,""),b.innerHTML=a},a.hideCaption=function(a){a.className.indexOf(d)===-1&&(a.className+=" "+d)},a.hideCaptionDisplay=function(a){a.className.indexOf(e)===-1&&(a.className+=" "+e)}}(),function(){"use strict";function a(a){return Array.prototype.slice.call(a)}var b=Shorthand.MediaRenderer;b.state=b.buildInitialState();var c=a(document.querySelectorAll("[data-reveal-media]"));c.forEach(b.attachSection),b.tick()}(),function(a){"use strict";var b=a.SectionScrollmation={};fastdom.onError=function(a){console.log(a)},b.ImageScrollmation=function(a){this.initialize.apply(this,[a])},_.extend(b.ImageScrollmation.prototype,{initialize:function(b){_.bindAll(this),this.options=b,this.$el=$(b.el),this.el=this.$el[0],this.ui={container:b.container||$(this.$el.data("scrollmation-container")),window:$(a),text:this.$el.find(".scrollmation-text")},this.isBackground=b.isBackground,this.ui.slidesContainer=this.$el.find("[data-scrollmation-slides]"),this.$el.addClass("scrollmation"),this._prepareSlides(),this.slides&&(this.listen(),this.running=!1)},listen:function(){this.$el.on("scrollmation:slide:activate",this._toggleActivation.bind(this)),this.ui.window.on("resize scroll mousewheel",this.tick)},destroy:function(){this.ui.window.off("resize scroll mousewheel",this.tick),this.$el.off()},_toggleActivation:function(a,b){$.inArray(b,this.slides)!==-1&&$.each(this.slides,function(a,c){c&&(b===c?c.activate():c.deactivate())})},tick:function(){this.running||a.requestAnimationFrame(this._refresh),this.running=!0},_refresh:function(){this.stickyCheck(),fastdom.read(function(){var a=this.scrollPercentage=this.getScrollPercentage(),b=this.getSlideAtPercentage(a);b&&b!==this.activeSlide&&(this.activeSlide&&"image"!==this.activeSlide.mediaType&&this.activeSlide.isFullScreen||fastdom.write(function(){this.$el.trigger("scrollmation:slide:activate",b),this.activeSlide=b},this))},this),this.running=!1},stickyCheck:function(){fastdom.read(function(){var a=Math.floor(this.ui.text[0].getBoundingClientRect().height),b=Math.floor(this.el.getBoundingClientRect().height),c=this.ui.slidesContainer.data("plugin_sticky"),d=a=a},this)},getImageAtPercentage:function(a){var b=1/this.images.length;return _.find(this.images,function(c,d){var e=(d+1)*b;return e>=a},this)},_prepareSlides:function(){this.prepareSlides(),this.ui.window.resize()},prepareSlides:function(){this.slides=this.ui.slidesContainer.find("[data-scrollmation-slide]").map(this._makeSlide).get()},render:function(){this._refresh()},getContentRatio:function(){return this.$el.data("scrollmation-content-ratio")},_makeSlide:function(a,c){var d=c.tagName.toLowerCase();return"div"===d||"img"===d||0!==$(c).find("img").length?new b.ImageSlide({el:c,isBackground:this.isBackground}):new b.TwoColumnVideoSlide({el:c})}}),b.ImageSlide=function(a){this.initialize.apply(this,[a])},_.extend(b.ImageSlide.prototype,{className:"scrollmation-slide",activeClass:"active",mediaType:"image",initialize:function(a){this.options=a,this.$el=$(a.el),this.el=this.$el[0],this.$el.addClass(this.className),_.bindAll(this),this._autoscale()},activate:function(){this._autoscale(),this.$el.addClass(this.activeClass)},deactivate:function(){this.$el.removeClass(this.activeClass)},_autoscale:function(){this.options.isBackground&&this.$el.autoscale({mode:"cover"})}}),b.TwoColumnVideoSlide=function(a){this.initialize.apply(this,[a])},_.extend(b.TwoColumnVideoSlide.prototype,b.ImageSlide.prototype,{mediaType:"video",isFullScreen:!1,initialize:function(){b.ImageSlide.prototype.initialize.apply(this,arguments),this.videoJsElement=videojs(this.$el.find(".video-js").get(0)),this.videoJsElement.on("fullscreenchange",this.onFullScreenChange)},onFullScreenChange:function(){this.isFullScreen=this.videoJsElement.isFullScreen}}),$("[data-scrollmation]").each(function(){var a=$(this);new b.ImageScrollmation({el:a[0],isBackground:"background"===a.data("scrollmation")})})}(window),function(){"use strict";var a=Shorthand.RevealSection={},b=Shorthand.MediaRenderer,c=300;a.resizeCanvases=function(a){a.each(function(a,d){b.getCanvasImages(d,function(a){var b=d.parentNode.parentNode,e=d.clientHeight,f=e+c;d.width=b.clientWidth,d.height=e,d.parentNode.parentNode.style.height=a.length*f+"px",d.lastRenderStack=!1})})},a.handleResize=function(){if(0!==b.state.sections.length){var c=$(".section-reveal canvas");a.resizeCanvases(c)}},$(window).on("resize orientationchange load",a.handleResize),a.handleResize(),$(".section-reveal [data-reveal-media]").sticky()}(),function(a,b){"use strict";b.helpers.transitionEnd=function(){var a,b=document.createElement("bootstrap"),c={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(a in c)if(void 0!==b.style[a])return c[a]}()}($,Shorthand),function(){"use strict";$(function(){var a=!1,b=$(window),c=0,d=function(){fastdom.read(function(){Modernizr.mq("only all")&&b.width()>1e3&&(c=$(".scrollmation-two-column:not(.hide) .secondary-column").width(),fastdom.write(function(){$(".scrollmation-two-column .scrollmation-slides").each(function(){$(this).css("width",0!==c?c:"")})}))}),a=!1},e=function(){a||window.requestAnimationFrame(d),a=!0};b.on("load",e),b.on("resize",e)})}(),function(a,b,c){"use strict";b.isMobile()&&a("#story-body .section-text-over-image").css("background-attachment","scroll")}($,window.Device)}(!1);
//# sourceMappingURL=common.3146.min.js.map