1/*! 2 * Masonry PACKAGED v4.0.0 3 * Cascading grid layout library 4 * http://masonry.desandro.com 5 * MIT License 6 * by David DeSandro 7 */ 8;!function(a,b){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(c){b(a,c);}):"object"==typeof module&&module.exports?module.exports=b(a,require("jquery")):a.jQueryBridget=b(a,a.jQuery);}(window,function(b,f){function a(k,m,e){function l(i,q,u){var s,p="$()."+k+'("'+q+'")';return i.each(function(o,r){var n=e.data(r,k);if(!n){return void c(k+" not initialized. Cannot call methods, i.e. "+p);}var v=n[q];if(!v||"_"==q.charAt(0)){return void c(p+" is not a valid method");}var w=v.apply(n,u);s=void 0===s?w:s;}),void 0!==s?s:i;}function j(i,n){i.each(function(p,r){var q=e.data(r,k);q?(q.option(n),q._init()):(q=new m(r,n),e.data(r,k,q));});}e=e||f||b.jQuery,e&&(m.prototype.option||(m.prototype.option=function(i){e.isPlainObject(i)&&(this.options=e.extend(!0,this.options,i));}),e.fn[k]=function(i){if("string"==typeof i){var n=g.call(arguments,1);return l(this,i,n);}return j(this,i),this;},h(e));}function h(e){!e||e&&e.bridget||(e.bridget=a);}var g=Array.prototype.slice,d=b.console,c="undefined"==typeof d?function(){}:function(e){d.error(e);};return h(f||b.jQuery),a;}),function(a,b){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",b):"object"==typeof module&&module.exports?module.exports=b():a.EvEmitter=b();}(this,function(){function a(){}var b=a.prototype;return b.on=function(d,f){if(d&&f){var c=this._events=this._events||{},g=c[d]=c[d]||[];return -1==g.indexOf(f)&&g.push(f),this;}},b.once=function(d,f){if(d&&f){this.on(d,f);var c=this._onceEvents=this._onceEvents||{},g=c[d]=c[d]||[];return g[f]=!0,this;}},b.off=function(d,f){var c=this._events&&this._events[d];if(c&&c.length){var g=c.indexOf(f);return -1!=g&&c.splice(g,1),this;}},b.emitEvent=function(d,h){var c=this._events&&this._events[d];if(c&&c.length){var k=0,j=c[k];h=h||[];for(var g=this._onceEvents&&this._onceEvents[d]; 9j;){var f=g&&g[j];f&&(this.off(d,j),delete g[j]),j.apply(this,h),k+=f?0:1,j=c[k];}return this;}},a;}),function(a,b){"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return b();}):"object"==typeof module&&module.exports?module.exports=b():a.getSize=b();}(window,function(){function q(d){var h=parseFloat(d),a=-1==d.indexOf("%")&&!isNaN(h);return a&&h;}function k(){}function g(){for(var d={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},h=0;p>h;h++){var a=j[h];d[a]=0;}return d;}function f(a){var d=getComputedStyle(a);return d||m("Style returned "+d+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),d;}function c(){if(!l){l=!0;var d=document.createElement("div");d.style.width="200px",d.style.padding="1px 2px 3px 4px",d.style.borderStyle="solid",d.style.borderWidth="1px 2px 3px 4px",d.style.boxSizing="border-box";var a=document.body||document.documentElement;a.appendChild(d);var h=f(d);b.isBoxSizeOuter=v=200==q(h.width),a.removeChild(d);}}function b(u){if(c(),"string"==typeof u&&(u=document.querySelector(u)),u&&"object"==typeof u&&u.nodeType){var h=f(u);if("none"==h.display){return g();}var G={};G.width=u.offsetWidth,G.height=u.offsetHeight;for(var w=G.isBorderBox="border-box"==h.boxSizing,B=0;p>B;B++){var o=j[B],t=h[o],n=parseFloat(t);G[o]=isNaN(n)?0:n;}var i=G.paddingLeft+G.paddingRight,s=G.paddingTop+G.paddingBottom,D=G.marginLeft+G.marginRight,I=G.marginTop+G.marginBottom,H=G.borderLeftWidth+G.borderRightWidth,J=G.borderTopWidth+G.borderBottomWidth,A=w&&v,C=q(h.width);C!==!1&&(G.width=C+(A?0:i+H));var F=q(h.height);return F!==!1&&(G.height=F+(A?0:s+J)),G.innerWidth=G.width-(i+H),G.innerHeight=G.height-(s+J),G.outerWidth=G.width+D,G.outerHeight=G.height+I,G;}}var v,m="undefined"==typeof console?k:function(a){console.error(a);},j=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],p=j.length,l=!1; 10return b;}),function(a,b){"function"==typeof define&&define.amd?define("matches-selector/matches-selector",b):"object"==typeof module&&module.exports?module.exports=b():a.matchesSelector=b();}(window,function(){var a=function(){var c=Element.prototype;if(c.matches){return"matches";}if(c.matchesSelector){return"matchesSelector";}for(var d=["webkit","moz","ms","o"],b=0;b<d.length;b++){var g=d[b],f=g+"MatchesSelector";if(c[f]){return f;}}}();return function(c,b){return c[a](b);};}),function(a,b){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["matches-selector/matches-selector"],function(c){return b(a,c);}):"object"==typeof module&&module.exports?module.exports=b(a,require("desandro-matches-selector")):a.fizzyUIUtils=b(a,a.matchesSelector);}(window,function(b,c){var a={};a.extend=function(g,h){for(var f in h){g[f]=h[f];}return g;},a.modulo=function(f,g){return(f%g+g)%g;},a.makeArray=function(g){var h=[];if(Array.isArray(g)){h=g;}else{if(g&&"number"==typeof g.length){for(var f=0;f<g.length;f++){h.push(g[f]);}}else{h.push(g);}}return h;},a.removeFrom=function(g,h){var f=g.indexOf(h);-1!=f&&g.splice(f,1);},a.getParent=function(f,e){for(;f!=document.body;){if(f=f.parentNode,c(f,e)){return f;}}},a.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e;},a.handleEvent=function(f){var g="on"+f.type;this[g]&&this[g](f);},a.filterFindElements=function(e,g){e=a.makeArray(e);var f=[];return e.forEach(function(j){if(j instanceof HTMLElement){if(!g){return void f.push(j);}c(j,g)&&f.push(j);for(var h=j.querySelectorAll(g),k=0;k<h.length;k++){f.push(h[k]);}}}),f;},a.debounceMethod=function(g,h,f){var k=g.prototype[h],j=h+"Timeout";g.prototype[h]=function(){var i=this[j];i&&clearTimeout(i);var m=arguments,l=this;this[j]=setTimeout(function(){k.apply(l,m),delete l[j];},f||100);};},a.docReady=function(e){"complete"==document.readyState?e():document.addEventListener("DOMContentLoaded",e);},a.toDashed=function(e){return e.replace(/(.)([A-Z])/g,function(g,h,f){return h+"-"+f; 11}).toLowerCase();};var d=b.console;return a.htmlInit=function(f,g){a.docReady(function(){var l=a.toDashed(g),k="data-"+l,e=document.querySelectorAll("["+k+"]"),j=document.querySelectorAll(".js-"+l),i=a.makeArray(e).concat(a.makeArray(j)),m=k+"-options",n=b.jQuery;
11i.forEach(function(q){var p,u=q.getAttribute(k)||q.getAttribute(m);try{p=u&&JSON.parse(u);}catch(o){return void (d&&d.error("Error parsing "+k+" on "+q.className+": "+o));}var s=new f(q,p);n&&n.data(q,g,s);});});},a;}),function(a,b){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],function(c,d){return b(a,c,d);}):"object"==typeof module&&module.exports?module.exports=b(a,require("ev-emitter"),require("get-size")):(a.Outlayer={},a.Outlayer.Item=b(a,a.EvEmitter,a.getSize));}(window,function(C,x,q){function j(a){for(var c in a){return !1;}return c=null,!0;}function g(a,c){a&&(this.element=a,this.layout=c,this.position={x:0,y:0},this._create());}function b(a){return a.replace(/([A-Z])/g,function(c){return"-"+c.toLowerCase();});}var D=document.documentElement.style,A="string"==typeof D.transition?"transition":"WebkitTransition",v="string"==typeof D.transform?"transform":"WebkitTransform",B={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[A],y=[v,A,A+"Duration",A+"Property"],z=g.prototype=Object.create(x.prototype);z.constructor=g,z._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"});},z.handleEvent=function(a){var c="on"+a.type;this[c]&&this[c](a);},z.getSize=function(){this.size=q(this.element);},z.css=function(c){var d=this.element.style;for(var a in c){var f=y[a]||a;d[f]=c[a];}},z.getPosition=function(){var f=getComputedStyle(this.element),m=this.layout._getOption("originLeft"),d=this.layout._getOption("originTop"),E=f[m?"left":"right"],u=f[d?"top":"bottom"],l=this.layout.size,h=-1!=E.indexOf("%")?parseFloat(E)/100*l.width:parseInt(E,10),c=-1!=u.indexOf("%")?parseFloat(u)/100*l.height:parseInt(u,10); 12h=isNaN(h)?0:h,c=isNaN(c)?0:c,h-=m?l.paddingLeft:l.paddingRight,c-=d?l.paddingTop:l.paddingBottom,this.position.x=h,this.position.y=c;},z.layoutPosition=function(){var L=this.layout.size,G={},E=this.layout._getOption("originLeft"),m=this.layout._getOption("originTop"),l=E?"paddingLeft":"paddingRight",f=E?"left":"right",M=E?"right":"left",J=this.position.x+L[l];G[f]=this.getXValue(J),G[M]="";var F=m?"paddingTop":"paddingBottom",K=m?"top":"bottom",H=m?"bottom":"top",I=this.position.y+L[F];G[K]=this.getYValue(I),G[H]="",this.css(G),this.emitEvent("layout",[this]);},z.getXValue=function(a){var c=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!c?a/this.layout.size.width*100+"%":a+"px";},z.getYValue=function(a){var c=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&c?a/this.layout.size.height*100+"%":a+"px";},z._transitionTo=function(H,E){this.getPosition();var l=this.position.x,f=this.position.y,d=parseInt(H,10),c=parseInt(E,10),I=d===this.position.x&&c===this.position.y;if(this.setPosition(H,E),I&&!this.isTransitioning){return void this.layoutPosition();}var F=H-l,m=E-f,G={};G.transform=this.getTranslate(F,m),this.transition({to:G,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0});},z.getTranslate=function(c,d){var a=this.layout._getOption("originLeft"),f=this.layout._getOption("originTop");return c=a?c:-c,d=f?d:-d,"translate3d("+c+"px, "+d+"px, 0)";},z.goTo=function(a,c){this.setPosition(a,c),this.layoutPosition();},z.moveTo=z._transitionTo,z.setPosition=function(a,c){this.position.x=parseInt(a,10),this.position.y=parseInt(c,10);},z._nonTransition=function(a){this.css(a.to),a.isCleaning&&this._removeStyles(a.to);for(var c in a.onTransitionEnd){a.onTransitionEnd[c].call(this);}},z._transition=function(c){if(!parseFloat(this.layout.options.transitionDuration)){return void this._nonTransition(c);}var d=this._transn;for(var a in c.onTransitionEnd){d.onEnd[a]=c.onTransitionEnd[a];}for(a in c.to){d.ingProperties[a]=!0,c.isCleaning&&(d.clean[a]=!0); 13}if(c.from){this.css(c.from);var f=this.element.offsetHeight;f=null;}this.enableTransition(c.to),this.css(c.to),this.isTransitioning=!0;};var p="opacity,"+b(y.transform||"transform");z.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:p,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(B,this,!1));},z.transition=g.prototype[A?"_transition":"_nonTransition"],z.onwebkitTransitionEnd=function(a){this.ontransitionend(a);},z.onotransitionend=function(a){this.ontransitionend(a);};var w={"-webkit-transform":"transform"};z.ontransitionend=function(c){if(c.target===this.element){var d=this._transn,a=w[c.propertyName]||c.propertyName;if(delete d.ingProperties[a],j(d.ingProperties)&&this.disableTransition(),a in d.clean&&(this.element.style[c.propertyName]="",delete d.clean[a]),a in d.onEnd){var f=d.onEnd[a];f.call(this),delete d.onEnd[a];}this.emitEvent("transitionEnd",[this]);}},z.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(B,this,!1),this.isTransitioning=!1;},z._removeStyles=function(c){var d={};for(var a in c){d[a]="";}this.css(d);};var k={transitionProperty:"",transitionDuration:""};return z.removeTransitionStyles=function(){this.css(k);},z.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this]);},z.remove=function(){return A&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem();}),void this.hide()):void this.removeElem();},z.reveal=function(){delete this.isHidden,this.css({display:""});var c=this.layout.options,d={},a=this.getHideRevealTransitionEndProperty("visibleStyle");d[a]=this.onRevealTransitionEnd,this.transition({from:c.hiddenStyle,to:c.visibleStyle,isCleaning:!0,onTransitionEnd:d});},z.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal");},z.getHideRevealTransitionEndProperty=function(c){var d=this.layout.options[c]; 14if(d.opacity){return"opacity";}for(var a in d){return a;}},z.hide=function(){this.isHidden=!0,this.css({display:""});var c=this.layout.options,d={},a=this.getHideRevealTransitionEndProperty("hiddenStyle");d[a]=this.onHideTransitionEnd,this.transition({from:c.visibleStyle,to:c.hiddenStyle,isCleaning:!0,onTransitionEnd:d});},z.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"));},z.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""});},g;}),function(a,b){"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(c,f,e,d){return b(a,c,f,e,d);}):"object"==typeof module&&module.exports?module.exports=b(a,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):a.Outlayer=b(a,a.EvEmitter,a.getSize,a.fizzyUIUtils,a.Outlayer.Item);}(window,function(y,p,k,g,f){function b(c,h){var a=g.getQueryElement(c);if(!a){return void (w&&w.error("Bad element for "+this.constructor.namespace+": "+(a||c)));}this.element=a,m&&(this.$element=m(this.element)),this.options=g.extend({},this.constructor.defaults),this.option(h);var l=++q;this.element.outlayerGUID=l,v[l]=this,this._create();var d=this._getOption("initLayout");d&&this.layout();}function z(a){function c(){a.apply(this,arguments);}return c.prototype=Object.create(a.prototype),c.prototype.constructor=c,c;}var w=y.console,m=y.jQuery,x=function(){},q=0,v={};b.namespace="outlayer",b.Item=f,b.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var j=b.prototype;return g.extend(j,p.prototype),j.option=function(a){g.extend(this.options,a);},j._getOption=function(a){var c=this.constructor.compatOptions[a];return c&&void 0!==this.options[c]?this.options[c]:this.options[a]; 15},b.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},j._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),g.extend(this.element.style,this.options.containerStyle);var a=this._getOption("resize");a&&this.bindResize();},j.reloadItems=function(){this.items=this._itemize(this.element.children);},j._itemize=function(c){for(var l=this._filterFindItemElements(c),a=this.constructor.Item,A=[],u=0;u<l.length;u++){var h=l[u],d=new a(h,this);A.push(d);}return A;},j._filterFindItemElements=function(a){return g.filterFindElements(a,this.options.itemSelector);},j.getItemElements=function(){return this.items.map(function(a){return a.element;});},j.layout=function(){this._resetLayout(),this._manageStamps();var a=this._getOption("layoutInstant"),c=void 0!==a?a:!this._isLayoutInited;this.layoutItems(this.items,c),this._isLayoutInited=!0;}
15,j._init=j.layout,j._resetLayout=function(){this.getSize();},j.getSize=function(){this.size=k(this.element);},j._getMeasurement=function(a,c){var h,d=this.options[a];d?("string"==typeof d?h=this.element.querySelector(d):d instanceof HTMLElement&&(h=d),this[a]=h?k(h)[c]:d):this[a]=0;},j.layoutItems=function(a,c){a=this._getItemsForLayout(a),this._layoutItems(a,c),this._postLayout();},j._getItemsForLayout=function(a){return a.filter(function(c){return !c.isIgnored;});},j._layoutItems=function(c,d){if(this._emitCompleteOnItems("layout",c),c&&c.length){var a=[];c.forEach(function(e){var h=this._getItemLayoutPosition(e);h.item=e,h.isInstant=d||e.isLayoutInstant,a.push(h);},this),this._processLayoutQueue(a);}},j._getItemLayoutPosition=function(){return{x:0,y:0};},j._processLayoutQueue=function(a){a.forEach(function(c){this._positionItem(c.item,c.x,c.y,c.isInstant);},this);},j._positionItem=function(c,d,a,h){h?c.goTo(d,a):c.moveTo(d,a);},j._postLayout=function(){this.resizeContainer(); 16},j.resizeContainer=function(){var a=this._getOption("resizeContainer");if(a){var c=this._getContainerSize();c&&(this._setContainerMeasure(c.width,!0),this._setContainerMeasure(c.height,!1));}},j._getContainerSize=x,j._setContainerMeasure=function(c,d){if(void 0!==c){var a=this.size;a.isBorderBox&&(c+=d?a.paddingLeft+a.paddingRight+a.borderLeftWidth+a.borderRightWidth:a.paddingBottom+a.paddingTop+a.borderTopWidth+a.borderBottomWidth),c=Math.max(c,0),this.element.style[d?"width":"height"]=c+"px";}},j._emitCompleteOnItems=function(c,l){function a(){u.dispatchEvent(c+"Complete",null,[l]);}function A(){d++,d==h&&a();}var u=this,h=l.length;if(!l||!h){return void a();}var d=0;l.forEach(function(i){i.once(c,A);});},j.dispatchEvent=function(c,d,a){var l=d?[d].concat(a):a;if(this.emitEvent(c,l),m){if(this.$element=this.$element||m(this.element),d){var h=m.Event(d);h.type=c,this.$element.trigger(h,a);}else{this.$element.trigger(c,a);}}},j.ignore=function(a){var c=this.getItem(a);c&&(c.isIgnored=!0);},j.unignore=function(a){var c=this.getItem(a);c&&delete c.isIgnored;},j.stamp=function(a){a=this._find(a),a&&(this.stamps=this.stamps.concat(a),a.forEach(this.ignore,this));},j.unstamp=function(a){a=this._find(a),a&&a.forEach(function(c){g.removeFrom(this.stamps,c),this.unignore(c);},this);},j._find=function(a){return a?("string"==typeof a&&(a=this.element.querySelectorAll(a)),a=g.makeArray(a)):void 0;},j._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this));},j._getBoundingRect=function(){var a=this.element.getBoundingClientRect(),c=this.size;this._boundingRect={left:a.left+c.paddingLeft+c.borderLeftWidth,top:a.top+c.paddingTop+c.borderTopWidth,right:a.right-(c.paddingRight+c.borderRightWidth),bottom:a.bottom-(c.paddingBottom+c.borderBottomWidth)};},j._manageStamp=x,j._getElementOffset=function(a){var d=a.getBoundingClientRect(),i=this._boundingRect,h=k(a),c={left:d.left-i.left-h.marginLeft,top:d.top-i.top-h.marginTop,right:i.right-d.right-h.marginRight,bottom:i.bottom-d.bottom-h.marginBottom}; 17return c;},j.handleEvent=g.handleEvent,j.bindResize=function(){y.addEventListener("resize",this),this.isResizeBound=!0;},j.unbindResize=function(){y.removeEventListener("resize",this),this.isResizeBound=!1;},j.onresize=function(){this.resize();},g.debounceMethod(b,"onresize",100),j.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout();},j.needsResizeLayout=function(){var a=k(this.element),c=this.size&&a;return c&&a.innerWidth!==this.size.innerWidth;},j.addItems=function(a){var c=this._itemize(a);return c.length&&(this.items=this.items.concat(c)),c;},j.appended=function(a){var c=this.addItems(a);c.length&&(this.layoutItems(c,!0),this.reveal(c));},j.prepended=function(c){var d=this._itemize(c);if(d.length){var a=this.items.slice(0);this.items=d.concat(a),this._resetLayout(),this._manageStamps(),this.layoutItems(d,!0),this.reveal(d),this.layoutItems(a);}},j.reveal=function(a){this._emitCompleteOnItems("reveal",a),a&&a.length&&a.forEach(function(c){c.reveal();});},j.hide=function(a){this._emitCompleteOnItems("hide",a),a&&a.length&&a.forEach(function(c){c.hide();});},j.revealItemElements=function(a){var c=this.getItems(a);this.reveal(c);},j.hideItemElements=function(a){var c=this.getItems(a);this.hide(c);},j.getItem=function(c){for(var d=0;d<this.items.length;d++){var a=this.items[d];if(a.element==c){return a;}}},j.getItems=function(a){a=g.makeArray(a);var c=[];return a.forEach(function(e){var d=this.getItem(e);d&&c.push(d);},this),c;},j.remove=function(a){var c=this.getItems(a);
17this._emitCompleteOnItems("remove",c),c&&c.length&&c.forEach(function(d){d.remove(),g.removeFrom(this.items,d);},this);},j.destroy=function(){var a=this.element.style;a.height="",a.position="",a.width="",this.items.forEach(function(d){d.destroy();}),this.unbindResize();var c=this.element.outlayerGUID;delete v[c],delete this.element.outlayerGUID,m&&m.removeData(this.element,this.constructor.namespace);},b.data=function(a){a=g.getQueryElement(a);var c=a&&a.outlayerGUID;return c&&v[c]; 18},b.create=function(c,d){var a=z(b);return a.defaults=g.extend({},b.defaults),g.extend(a.defaults,d),a.compatOptions=g.extend({},b.compatOptions),a.namespace=c,a.data=b.data,a.Item=z(f),g.htmlInit(a,c),m&&m.bridget&&m.bridget(c,a),a;},b.Item=f,b;}),function(a,b){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],b):"object"==typeof module&&module.exports?module.exports=b(require("outlayer"),require("get-size")):a.Masonry=b(a.Outlayer,a.getSize);}(window,function(b,c){var a=b.create("masonry");return a.compatOptions.fitWidth="isFitWidth",a.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var d=0;d<this.cols;d++){this.colYs.push(0);}this.maxY=0;},a.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var f=this.items[0],e=f&&f.element;this.columnWidth=e&&c(e).outerWidth||this.containerWidth;}var k=this.columnWidth+=this.gutter,j=this.containerWidth+this.gutter,h=j/k,g=k-j%k,d=g&&1>g?"round":"floor";h=Math[d](h),this.cols=Math.max(h,1);},a.prototype.getContainerWidth=function(){var e=this._getOption("fitWidth"),d=e?this.element.parentNode:this.element,f=c(d);this.containerWidth=f&&f.innerWidth;},a.prototype._getItemLayoutPosition=function(w){w.getSize();var m=w.size.outerWidth%this.columnWidth,k=m&&1>m?"round":"ceil",j=Math[k](w.size.outerWidth/this.columnWidth);j=Math.min(j,this.cols);for(var g=this._getColGroup(j),f=Math.min.apply(Math,g),x=g.indexOf(f),q={x:this.columnWidth*x,y:f},l=f+w.size.outerHeight,v=this.cols+1-g.length,p=0;v>p;p++){this.colYs[x+p]=l;}return q;},a.prototype._getColGroup=function(f){if(2>f){return this.colYs;}for(var g=[],d=this.cols+1-f,j=0;d>j;j++){var h=this.colYs.slice(j,j+f);g[j]=Math.max.apply(Math,h);}return g;},a.prototype._manageStamp=function(v){var j=c(v),g=this._getElementOffset(v),f=this._getOption("originLeft"),e=f?g.left:g.right,w=e+j.outerWidth,p=Math.floor(e/this.columnWidth); 19p=Math.max(0,p);var k=Math.floor(w/this.columnWidth);k-=w%this.columnWidth?0:1,k=Math.min(this.cols-1,k);for(var q=this._getOption("originTop"),l=(q?g.top:g.bottom)+j.outerHeight,m=p;k>=m;m++){this.colYs[m]=Math.max(l,this.colYs[m]);}},a.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var d={height:this.maxY};return this._getOption("fitWidth")&&(d.width=this._getContainerFitWidth()),d;},a.prototype._getContainerFitWidth=function(){for(var d=0,f=this.cols;--f&&0===this.colYs[f];){d++;}return(this.cols-d)*this.columnWidth-this.gutter;},a.prototype.needsResizeLayout=function(){var d=this.containerWidth;return this.getContainerWidth(),d!=this.containerWidth;},a;});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.