*JavaScriptisalllike"You images are done yet or what?"
*MITLicense
*/
/*!
*imagesLoadedv4.1.4
*JavaScriptisalllike"You images are done yet or what?"
*MITLicense
*/
!function(o,s){"use strict";r=[n(2)],void0===(i=function(t){returnfunction(t,e){varn=t.jQuery,r=t.console;functioni(t,e){for(varnine)t[n]=e[n];returnt}varo=Array.prototype.slice;functions(t,e,a){if(!(thisinstanceofs))returnnews(t,e,a);varu=t;"string"==typeoft&&(u=document.querySelectorAll(t)),u?(this.elements=function(t){if(Array.isArray(t))returnt;if("object"==typeoft&&"number"==typeoft.length)returno.call(t);return[t]}(u),this.options=i({},this.options),"function"==typeofe?a=e:i(this.options,e),a&&this.on("always",a),this.getImages(),n&&(this.jqDeferred=newn.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(u||t))}s.prototype=Object.create(e.prototype),s.prototype.options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);vare=t.nodeType;if(e&&a[e]){for(varn=t.querySelectorAll("img"),r=0;r<n.length;r++){vari=n[r];this.addImage(i)}if("string"==typeofthis.options.background){varo=t.querySelectorAll(this.options.background);for(r=0;r<o.length;r++){vars=o[r];this.addElementBackgroundImages(s)}}}};vara={1:!0,9:!0,11:!0};functionu(t){this.img=t}functionc(t,e){this.url=t,this.element=e,this.img=newImage}returns.prototype.addElementBackgroundImages=function(t){vare=getComputedStyle(t);if(e)for(varn=/url\((['"])?(.*?)\1\)/gi,r=n.exec(e.backgroundImage);null!==r;){vari=r&&r[2];i&&this.addBackground(i,t),r=n.exec(e.backgroundImage)}},s.prototype.addImage=function(t){vare=newu(t);this.images.push(e)},s.prototype.addBackground=function(t,e){varn=newc(t,e);this.images.push(n)},s.prototype.check=function(){vart=this;functione(e,n,r){setTimeout(function(){t.progress(e,n,r)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(t){t.once("progress",e),t.check()}):this.complete()},s.prototype.progress=function(t,e,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+n,t,e)},s.prototype.complete=function(){vart=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){vare=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},u.prototype=Object.create(e.prototype),u.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=newImage,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},u.prototype.getIsImageComplete=function(){returnthis.img.complete&&this.img.naturalWidth},u.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},u.prototype.handleEvent=function(t){vare="on"+t.type;this[e]&&this[e](t)},u.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},u.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},u.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype=Object.create(u.prototype),c.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},c.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},s.makeJQue