var objectFitImages=function(){"use strict";function u(n){for(var t,r=getComputedStyle(n).fontFamily,i={};null!==(t=l.exec(r));)i[t[1]]=t[2];return i}function f(t,i){var f,r,s;if(!t[n].parsingSrcset){if(f=u(t),f["object-fit"]=f["object-fit"]||"fill",!t[n].s){if("fill"===f["object-fit"])return;if(!t[n].skipTest&&e&&!f["object-position"])return}if(r=t[n].ios7src||t.currentSrc||t.src,i?r=i:t.srcset&&!a&&window.picturefill&&(s=window.picturefill._,t[n].parsingSrcset=!0,t[s.ns]&&t[s.ns].evaled||s.fillImg(t,{reselect:!0}),t[s.ns].curSrc||(t[s.ns].supported=!1,s.fillImg(t,{reselect:!0})),delete t[n].parsingSrcset,r=t[s.ns].curSrc||r),t[n].s)t[n].s=r,i&&(t[n].srcAttr=i);else{t[n]={s:r,srcAttr:i||o.call(t,"src"),srcsetAttr:t.srcset};t.src=n;try{t.srcset&&(t.srcset="",Object.defineProperty(t,"srcset",{value:t[n].srcsetAttr}));h(t)}catch(u){t[n].ios7src=r}}t.style.backgroundImage='url("'+r+'")';t.style.backgroundPosition=f["object-position"]||"center";t.style.backgroundRepeat="no-repeat";/scale-down/.test(f["object-fit"])?(t[n].i||(t[n].i=new Image,t[n].i.src=r),function u(){return t[n].i.naturalWidth?void(t.style.backgroundSize=t[n].i.naturalWidth>t.width||t[n].i.naturalHeight>t.height?"contain":"auto"):void setTimeout(u,100)}()):t.style.backgroundSize=f["object-fit"].replace("none","auto").replace("fill","100% 100%")}}function h(t){var i={get:function(){return t[n].s},set:function(i){return delete t[n].i,f(t,i),i}};Object.defineProperty(t,"src",i);Object.defineProperty(t,"currentSrc",{get:i.get})}function c(){r||(HTMLImageElement.prototype.getAttribute=function(t){return!this[n]||"src"!==t&&"srcset"!==t?o.call(this,t):this[n][t+"Attr"]},HTMLImageElement.prototype.setAttribute=function(t,i){!this[n]||"src"!==t&&"srcset"!==t?v.call(this,t,i):this["src"===t?"src":t+"Attr"]=String(i)})}function t(i,u){var o=!s&&!i,e;if(u=u||{},i=i||"img",r&&!u.skipTest)return!1;for("string"==typeof i?i=document.querySelectorAll("img"):("length"in i)||(i=[i]),e=0;e<i.length;e++)i[e][n]=i[e][n]||u,f(i[e]);o&&(document.body.addEventListener("load",function(n){"IMG"===n.target.tagName&&t(n.target,{skipTest:u.skipTest})},!0),s=!0,i="img");u.watchMQ&&window.addEventListener("resize",t.bind(null,i,{skipTest:u.skipTest}))}var n="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",l=/(object-fit|object-position)\s*:\s*([-\w\s%]+)/g,i=new Image,e="object-fit"in i.style,r="object-position"in i.style,a="string"==typeof i.currentSrc,o=i.getAttribute,v=i.setAttribute,s=!1;return t.supportsObjectFit=e,t.supportsObjectPosition=r,c(),t}();!function(n,t,i){function o(n,t){return typeof n===t}function it(){var i,n,u,f,e,c,t,s;for(s in h)if(h.hasOwnProperty(s)){if(i=[],n=h[s],n.name&&(i.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(u=0;u<n.options.aliases.length;u++)i.push(n.options.aliases[u].toLowerCase());for(f=o(n.fn,"function")?n.fn():n.fn,e=0;e<i.length;e++)c=i[e],t=c.split("."),1===t.length?r[t[0]]=f:(!r[t[0]]||r[t[0]]instanceof Boolean||(r[t[0]]=new Boolean(r[t[0]])),r[t[0]][t[1]]=f),g.push((f?"":"no-")+t.join("-"))}}function rt(n){var t=e.className,i=r._config.classPrefix||"",u;(c&&(t=t.baseVal),r._config.enableJSClass)&&(u=new RegExp("(^|\\s)"+i+"no-js(\\s|$)"),t=t.replace(u,"$1"+i+"js$2"));r._config.enableClasses&&(t+=" "+i+n.join(" "+i),c?e.className.baseVal=t:e.className=t)}function s(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):c?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function ut(){var n=t.body;return n||(n=s(c?"svg":"body"),n.fake=!0),n}function w(n,i,r,u){var o,a,c,v,l="modernizr",h=s("div"),f=ut();if(parseInt(r,10))for(;r--;)c=s("div"),c.id=u?u[r]:l+(r+1),h.appendChild(c);return o=s("style"),o.type="text/css",o.id="s"+l,(f.fake?f:h).appendChild(o),f.appendChild(h),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(t.createTextNode(n)),h.id=l,f.fake&&(f.style.background="",f.style.overflow="hidden",v=e.style.overflow,e.style.overflow="hidden",e.appendChild(f)),a=i(h,n),f.fake?(f.parentNode.removeChild(f),e.style.overflow=v,e.offsetHeight):h.parentNode.removeChild(h),!!a}function ft(n,t){return!!~(""+n).indexOf(t)}function et(n){return n.replace(/([a-z])-([a-z])/g,function(n,t,i){return t+i.toUpperCase()}).replace(/^-/,"")}function ot(n,t){return function(){return n.apply(t,arguments)}}function st(n,t,i){var r,u;for(u in n)if(n[u]in t)return i===!1?n[u]:(r=t[n[u]],o(r,"function")?ot(r,i||t):r);return!1}function b(n){return n.replace(/([A-Z])/g,function(n,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function ht(t,r){var f=t.length,u;if("CSS"in n&&"supports"in n.CSS){for(;f--;)if(n.CSS.supports(b(t[f]),r))return!0;return!1}if("CSSSupportsRule"in n){for(u=[];f--;)u.push("("+b(t[f])+":"+r+")");return u=u.join(" or "),w("@supports ("+u+") { #modernizr { position: absolute; } }",function(n){return"absolute"==getComputedStyle(n,null).position})}return i}function ct(n,t,r,u){function c(){v&&(delete f.style,delete f.modElem)}var l,v,h,y,e,p,a;if((u=o(u,"undefined")?!1:u,!o(r,"undefined"))&&(l=ht(n,r),!o(l,"undefined")))return l;for(a=["modernizr","tspan","samp"];!f.style&&a.length;)v=!0,f.modElem=s(a.shift()),f.style=f.modElem.style;for(y=n.length,h=0;y>h;h++)if(e=n[h],p=f.style[e],ft(e,"-")&&(e=et(e)),f.style[e]!==i){if(u||o(r,"undefined"))return c(),"pfx"==t?e:!0;try{f.style[e]=r}catch(w){}if(f.style[e]!=p)return c(),"pfx"==t?e:!0}return c(),!1}function k(n,t,i,r,u){var f=n.charAt(0).toUpperCase()+n.slice(1),e=(n+" "+v.join(f+" ")+f).split(" ");return o(t,"string")||o(t,"undefined")?ct(e,t,r,u):(e=(n+" "+y.join(f+" ")+f).split(" "),st(e,t,i))}function d(n,t,r){return k(n,i,i,t,r)}var g=[],h=[],u={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(n,t){var i=this;setTimeout(function(){t(i[n])},0)},addTest:function(n,t,i){h.push({name:n,fn:t,options:i})},addAsyncTest:function(n){h.push({name:null,fn:n})}},r=function(){},tt,a,v,y,p,f,l;r.prototype=u;r=new r;var e=t.documentElement,c="svg"===e.nodeName.toLowerCase(),nt=u._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];for(u._prefixes=nt,tt=u.testStyles=w,r.addTest("touchevents",function(){var i,r;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:(r=["@media (",nt.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join(""),tt(r,function(n){i=9===n.offsetTop})),i}),a="Moz O ms Webkit",v=u._config.usePrefixes?a.split(" "):[],u._cssomPrefixes=v,y=u._config.usePrefixes?a.toLowerCase().split(" "):[],u._domPrefixes=y,p={elem:s("modernizr")},r._q.push(function(){delete p.elem}),f={style:p.elem.style},r._q.unshift(function(){delete f.style}),u.testAllProps=k,u.testAllProps=d,r.addTest("csstransitions",d("transition","all",!0)),it(),rt(g),delete u.addTest,delete u.addAsyncTest,l=0;l<r._q.length;l++)r._q[l]();n.Modernizr=r}(window,document)