File "isotope-bundle.min.js"
Full Path: /home/ycoalition/public_html/blog/wp-content/themes/woodmart/js/libs/isotope-bundle.min.js
File size: 50.35 KB
MIME-type: text/plain
Charset: utf-8
!function(t){var p=Array.prototype.slice;function e(){}function i(a){var h;if(a)return h="undefined"==typeof console?e:function(t){console.error(t)},a.bridget=function(t,e){var i,r,s;(i=e).prototype.option||(i.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),r=t,s=e,a.fn[r]=function(e){if("string"!=typeof e)return this.each(function(){var t=a.data(this,r);t?(t.option(e),t._init()):(t=new s(this,e),a.data(this,r,t))});for(var t=p.call(arguments,1),i=0,o=this.length;i<o;i++){var n=this[i],n=a.data(n,r);if(n)if("function"!=typeof n[e]||"_"===e.charAt(0))h("no such method '"+e+"' for "+r+" instance");else{n=n[e].apply(n,t);if(void 0!==n)return n}else h("cannot call methods on "+r+" prior to initialization; attempted to call '"+e+"'")}return this}},a.bridget}"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],i):"object"==typeof exports?i(require("jquery")):i(t.jQuery)}(window),function(i){var t=document.documentElement,e=function(){};function o(t){var e=i.event;return e.target=e.target||e.srcElement||t,e}t.addEventListener?e=function(t,e,i){t.addEventListener(e,i,!1)}:t.attachEvent&&(e=function(e,t,i){e[t+i]=i.handleEvent?function(){var t=o(e);i.handleEvent.call(i,t)}:function(){var t=o(e);i.call(e,t)},e.attachEvent("on"+t,e[t+i])});var n=function(){},t=(t.removeEventListener?n=function(t,e,i){t.removeEventListener(e,i,!1)}:t.detachEvent&&(n=function(e,i,o){e.detachEvent("on"+i,e[i+o]);try{delete e[i+o]}catch(t){e[i+o]=void 0}}),{bind:e,unbind:n});"function"==typeof define&&define.amd?define("eventie/eventie",t):"object"==typeof exports?module.exports=t:i.eventie=t}(window),function(){"use strict";function t(){}var e=t.prototype,i=this,o=i.EventEmitter;function r(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}function n(t){return function(){return this[t].apply(this,arguments)}}e.getListeners=function(t){var e,i,o=this._getEvents();if(t instanceof RegExp)for(i in e={},o)o.hasOwnProperty(i)&&t.test(i)&&(e[i]=o[i]);else e=o[t]||(o[t]=[]);return e},e.flattenListeners=function(t){for(var e=[],i=0;i<t.length;i+=1)e.push(t[i].listener);return e},e.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&((e={})[t]=i),e||i},e.addListener=function(t,e){var i,o=this.getListenersAsObject(t),n="object"==typeof e;for(i in o)o.hasOwnProperty(i)&&-1===r(o[i],e)&&o[i].push(n?e:{listener:e,once:!1});return this},e.on=n("addListener"),e.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},e.once=n("addOnceListener"),e.defineEvent=function(t){return this.getListeners(t),this},e.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},e.removeListener=function(t,e){var i,o,n=this.getListenersAsObject(t);for(o in n)n.hasOwnProperty(o)&&-1!==(i=r(n[o],e))&&n[o].splice(i,1);return this},e.off=n("removeListener"),e.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},e.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},e.manipulateListeners=function(t,e,i){var o,n,r=t?this.removeListener:this.addListener,s=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(o=i.length;o--;)r.call(this,e,i[o]);else for(o in e)e.hasOwnProperty(o)&&(n=e[o])&&("function"==typeof n?r:s).call(this,o,n);return this},e.removeEvent=function(t){var e,i=typeof t,o=this._getEvents();if("string"==i)delete o[t];else if(t instanceof RegExp)for(e in o)o.hasOwnProperty(e)&&t.test(e)&&delete o[e];else delete this._events;return this},e.removeAllListeners=n("removeEvent"),e.emitEvent=function(t,e){var i,o,n,r=this.getListenersAsObject(t);for(n in r)if(r.hasOwnProperty(n))for(o=r[n].length;o--;)!0===(i=r[n][o]).once&&this.removeListener(t,i.listener),i.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},e.trigger=n("emitEvent"),e.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},e.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},e._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},e._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return i.EventEmitter=o,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:i.EventEmitter=t}.call(this),function(t){var n="Webkit Moz ms Ms O".split(" "),r=document.documentElement.style;function e(t){if(t){if("string"==typeof r[t])return t;var e;t=t.charAt(0).toUpperCase()+t.slice(1);for(var i=0,o=n.length;i<o;i++)if(e=n[i]+t,"string"==typeof r[e])return e}}"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return e}):"object"==typeof exports?module.exports=e:t.getStyleProperty=e}(window),function(E){function b(t){var e=parseFloat(t);return-1===t.indexOf("%")&&!isNaN(e)&&e}var T="undefined"==typeof console?function(){}:function(t){console.error(t)},R=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];function t(I){var z,w,L,S=!1;return function(t){var e,i;if(S||(S=!0,e=E.getComputedStyle,i=e?function(t){return e(t,null)}:function(t){return t.currentStyle},z=function(t){t=i(t);return t||T("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),t},(w=I("boxSizing"))&&((f=document.createElement("div")).style.width="200px",f.style.padding="1px 2px 3px 4px",f.style.borderStyle="solid",f.style.borderWidth="1px 2px 3px 4px",f.style[w]="border-box",(d=document.body||document.documentElement).appendChild(f),h=z(f),L=200===b(h.width),d.removeChild(f))),(t="string"==typeof t?document.querySelector(t):t)&&"object"==typeof t&&t.nodeType){var o=z(t);if("none"===o.display){for(var n={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},r=0,s=R.length;r<s;r++)n[R[r]]=0;return n}for(var a={},h=(a.width=t.offsetWidth,a.height=t.offsetHeight,a.isBorderBox=!(!w||!o[w]||"border-box"!==o[w])),p=0,u=R.length;p<u;p++){var c=R[p],l=function(t,e){if(E.getComputedStyle||-1===e.indexOf("%"))return e;var i=t.style,o=i.left,n=t.runtimeStyle,r=n&&n.left;r&&(n.left=t.currentStyle.left);i.left=e,e=i.pixelLeft,i.left=o,r&&(n.left=r);return e}(t,o[c]),l=parseFloat(l);a[c]=isNaN(l)?0:l}var d=a.paddingLeft+a.paddingRight,f=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,m=a.marginTop+a.marginBottom,g=a.borderLeftWidth+a.borderRightWidth,v=a.borderTopWidth+a.borderBottomWidth,_=h&&L,x=b(o.width),x=(!1!==x&&(a.width=x+(_?0:d+g)),b(o.height));return!1!==x&&(a.height=x+(_?0:f+v)),a.innerWidth=a.width-(d+g),a.innerHeight=a.height-(f+v),a.outerWidth=a.width+y,a.outerHeight=a.height+m,a}}}"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],t):"object"==typeof exports?module.exports=t(require("desandro-get-style-property")):E.getSize=t(E.getStyleProperty)}(window),function(e){var i=e.document,o=[];function n(t){"function"==typeof t&&(n.isReady?t():o.push(t))}function r(t){t="readystatechange"===t.type&&"complete"!==i.readyState;n.isReady||t||s()}function s(){n.isReady=!0;for(var t=0,e=o.length;t<e;t++)(0,o[t])()}function t(t){return"complete"===i.readyState?s():(t.bind(i,"DOMContentLoaded",r),t.bind(i,"readystatechange",r),t.bind(e,"load",r)),n}n.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],t):"object"==typeof exports?module.exports=t(require("eventie")):e.docReady=t(e.eventie)}(window),function(n){"use strict";var t,i=function(){if(n.matches)return"matches";if(n.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],e=0,i=t.length;e<i;e++){var o=t[e]+"MatchesSelector";if(n[o])return o}}();function o(t,e){return t[i](e)}function r(t){t.parentNode||document.createDocumentFragment().appendChild(t)}t=i?o(document.createElement("div"),"div")?o:function(t,e){return r(t),o(t,e)}:function(t,e){r(t);for(var i=t.parentNode.querySelectorAll(e),o=0,n=i.length;o<n;o++)if(i[o]===t)return!0;return!1},"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return t}):"object"==typeof exports?module.exports=t:window.matchesSelector=t}(Element.prototype),function(i,o){"use strict";"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(t,e){return o(i,t,e)}):"object"==typeof exports?module.exports=o(i,require("doc-ready"),require("desandro-matches-selector")):i.fizzyUIUtils=o(i,i.docReady,i.matchesSelector)}(window,function(c,t,p){var i,l={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Object.prototype.toString,d=(l.isArray=function(t){return"[object Array]"==e.call(t)},l.makeArray=function(t){var e=[];if(l.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0,o=t.length;i<o;i++)e.push(t[i]);else e.push(t);return e},l.indexOf=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,o=t.length;i<o;i++)if(t[i]===e)return i;return-1},l.removeFrom=function(t,e){e=l.indexOf(t,e);-1!=e&&t.splice(e,1)},l.isElement="object"==typeof HTMLElement?function(t){return t instanceof HTMLElement}:function(t){return t&&"object"==typeof t&&null!==t&&1==t.nodeType&&"string"==typeof t.nodeName},l.setText=function(t,e){t[i=i||(void 0!==document.documentElement.textContent?"textContent":"innerText")]=e},l.getParent=function(t,e){for(;t!=document.body;)if(t=t.parentNode,p(t,e))return t},l.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},l.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.filterFindElements=function(t,e){for(var i=[],o=0,n=(t=l.makeArray(t)).length;o<n;o++){var r=t[o];if(l.isElement(r))if(e){p(r,e)&&i.push(r);for(var s=r.querySelectorAll(e),a=0,h=s.length;a<h;a++)i.push(s[a])}else i.push(r)}return i},l.debounceMethod=function(t,e,o){var n=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r],e=(t&&clearTimeout(t),arguments),i=this;this[r]=setTimeout(function(){n.apply(i,e),delete i[r]},o||100)}},l.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()},c.console);return l.htmlInit=function(p,u){t(function(){for(var t=l.toDashed(u),e=document.querySelectorAll(".js-"+t),i="data-"+t+"-options",o=0,n=e.length;o<n;o++){var r,s=e[o],a=s.getAttribute(i);try{r=a&&JSON.parse(a)}catch(t){d&&d.error("Error parsing "+i+" on "+s.nodeName.toLowerCase()+(s.id?"#"+s.id:"")+": "+t);continue}var a=new p(s,r),h=c.jQuery;h&&h.data(s,u,a)}})},l}),function(n,r){"use strict";"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(t,e,i,o){return r(n,t,e,i,o)}):"object"==typeof exports?module.exports=r(n,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(n.Outlayer={},n.Outlayer.Item=r(n,n.EventEmitter,n.getSize,n.getStyleProperty,n.fizzyUIUtils))}(window,function(t,e,i,r,o){"use strict";var n=t.getComputedStyle,s=n?function(t){return n(t,null)}:function(t){return t.currentStyle};var a=r("transition"),t=r("transform"),t=a&&t,h=!!r("perspective"),p={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[a],u=["transform","transition","transitionDuration","transitionProperty"],c=function(){for(var t={},e=0,i=u.length;e<i;e++){var o=u[e],n=r(o);n&&n!==o&&(t[o]=n)}return t}();function l(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}o.extend(l.prototype,e.prototype),l.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},l.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.prototype.getSize=function(){this.size=i(this.element)},l.prototype.css=function(t){var e,i=this.element.style;for(e in t)i[c[e]||e]=t[e]},l.prototype.getPosition=function(){var t=s(this.element),e=this.layout.options,i=e.isOriginLeft,e=e.isOriginTop,o=t[i?"left":"right"],t=t[e?"top":"bottom"],n=this.layout.size,o=-1!=o.indexOf("%")?parseFloat(o)/100*n.width:parseInt(o,10),t=-1!=t.indexOf("%")?parseFloat(t)/100*n.height:parseInt(t,10),o=isNaN(o)?0:o,t=isNaN(t)?0:t;o-=i?n.paddingLeft:n.paddingRight,t-=e?n.paddingTop:n.paddingBottom,this.position.x=o,this.position.y=t},l.prototype.layoutPosition=function(){var t=this.layout.size,e=this.layout.options,i={},o=e.isOriginLeft?"paddingLeft":"paddingRight",n=e.isOriginLeft?"left":"right",r=e.isOriginLeft?"right":"left",o=this.position.x+t[o],n=(i[n]=this.getXValue(o),i[r]="",e.isOriginTop?"paddingTop":"paddingBottom"),o=e.isOriginTop?"top":"bottom",r=e.isOriginTop?"bottom":"top",e=this.position.y+t[n];i[o]=this.getYValue(e),i[r]="",this.css(i),this.emitEvent("layout",[this])},l.prototype.getXValue=function(t){var e=this.layout.options;return e.percentPosition&&!e.isHorizontal?t/this.layout.size.width*100+"%":t+"px"},l.prototype.getYValue=function(t){var e=this.layout.options;return e.percentPosition&&e.isHorizontal?t/this.layout.size.height*100+"%":t+"px"},l.prototype._transitionTo=function(t,e){this.getPosition();var i=this.position.x,o=this.position.y,n=parseInt(t,10),r=parseInt(e,10),n=n===this.position.x&&r===this.position.y;this.setPosition(t,e),n&&!this.isTransitioning?this.layoutPosition():((r={}).transform=this.getTranslate(t-i,e-o),this.transition({to:r,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0}))},l.prototype.getTranslate=function(t,e){var i=this.layout.options;return t=i.isOriginLeft?t:-t,e=i.isOriginTop?e:-e,h?"translate3d("+t+"px, "+e+"px, 0)":"translate("+t+"px, "+e+"px)"},l.prototype.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},l.prototype.moveTo=t?l.prototype._transitionTo:l.prototype.goTo,l.prototype.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},l.prototype._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},l.prototype._transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e,i=this._transn;for(e in t.onTransitionEnd)i.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)i.ingProperties[e]=!0,t.isCleaning&&(i.clean[e]=!0);t.from&&(this.css(t.from),this.element.offsetHeight,0),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var d="opacity,"+(c.transform||"transform").replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()}),f=(l.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:d,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(p,this,!1))},l.prototype.transition=l.prototype[a?"_transition":"_nonTransition"],l.prototype.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},l.prototype.onotransitionend=function(t){this.ontransitionend(t)},{"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"}),y=(l.prototype.ontransitionend=function(t){var e,i;t.target===this.element&&(e=this._transn,i=f[t.propertyName]||t.propertyName,delete e.ingProperties[i],function(t){for(var e in t)return;return 1}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd&&(e.onEnd[i].call(this),delete e.onEnd[i]),this.emitEvent("transitionEnd",[this]))},l.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(p,this,!1),this.isTransitioning=!1},l.prototype._removeStyles=function(t){var e,i={};for(e in t)i[e]="";this.css(i)},{transitionProperty:"",transitionDuration:""});return l.prototype.removeTransitionStyles=function(){this.css(y)},l.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},l.prototype.remove=function(){var t;a&&parseFloat(this.layout.options.transitionDuration)?((t=this).once("transitionEnd",function(){t.removeElem()}),this.hide()):this.removeElem()},l.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},l.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},l.prototype.getHideRevealTransitionEndProperty=function(t){var e,t=this.layout.options[t];if(t.opacity)return"opacity";for(e in t)return e},l.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},l.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},l.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},l}),function(r,s){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(t,e,i,o,n){return s(r,t,e,i,o,n)}):"object"==typeof exports?module.exports=s(r,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):r.Outlayer=s(r,r.eventie,r.EventEmitter,r.getSize,r.fizzyUIUtils,r.Outlayer.Item)}(window,function(t,e,i,n,r,o){"use strict";function s(){}var a=t.console,h=t.jQuery,p=0,u={};function c(t,e){var i=r.getQueryElement(t);i?(this.element=i,h&&(this.$element=h(this.element)),this.options=r.extend({},this.constructor.defaults),this.option(e),e=++p,this.element.outlayerGUID=e,(u[e]=this)._create(),this.options.isInitLayout&&this.layout()):a&&a.error("Bad element for "+this.constructor.namespace+": "+(i||t))}return c.namespace="outlayer",c.Item=o,c.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},r.extend(c.prototype,i.prototype),c.prototype.option=function(t){r.extend(this.options,t)},c.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),r.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},c.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},c.prototype._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,o=[],n=0,r=e.length;n<r;n++){var s=new i(e[n],this);o.push(s)}return o},c.prototype._filterFindItemElements=function(t){return r.filterFindElements(t,this.options.itemSelector)},c.prototype.getItemElements=function(){for(var t=[],e=0,i=this.items.length;e<i;e++)t.push(this.items[e].element);return t},c.prototype._init=c.prototype.layout=function(){this._resetLayout(),this._manageStamps();var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},c.prototype._resetLayout=function(){this.getSize()},c.prototype.getSize=function(){this.size=n(this.element)},c.prototype._getMeasurement=function(t,e){var i,o=this.options[t];o?("string"==typeof o?i=this.element.querySelector(o):r.isElement(o)&&(i=o),this[t]=i?n(i)[e]:o):this[t]=0},c.prototype.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},c.prototype._getItemsForLayout=function(t){for(var e=[],i=0,o=t.length;i<o;i++){var n=t[i];n.isIgnored||e.push(n)}return e},c.prototype._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){for(var i=[],o=0,n=t.length;o<n;o++){var r=t[o],s=this._getItemLayoutPosition(r);s.item=r,s.isInstant=e||r.isLayoutInstant,i.push(s)}this._processLayoutQueue(i)}},c.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},c.prototype._processLayoutQueue=function(t){for(var e=0,i=t.length;e<i;e++){var o=t[e];this._positionItem(o.item,o.x,o.y,o.isInstant)}},c.prototype._positionItem=function(t,e,i,o){o?t.goTo(e,i):t.moveTo(e,i)},c.prototype._postLayout=function(){this.resizeContainer()},c.prototype.resizeContainer=function(){var t;!this.options.isResizingContainer||(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},c.prototype._getContainerSize=s,c.prototype._setContainerMeasure=function(t,e){var i;void 0!==t&&((i=this.size).isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},c.prototype._emitCompleteOnItems=function(t,e){var i=this;function o(){i.dispatchEvent(t+"Complete",null,[e])}var n=e.length;if(e&&n)for(var r=0,s=0,a=e.length;s<a;s++)e[s].once(t,h);else o();function h(){++r===n&&o()}},c.prototype.dispatchEvent=function(t,e,i){var o=e?[e].concat(i):i;this.emitEvent(t,o),h&&(this.$element=this.$element||h(this.element),e?((o=h.Event(e)).type=t,this.$element.trigger(o,i)):this.$element.trigger(t,i))},c.prototype.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},c.prototype.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},c.prototype.stamp=function(t){if(t=this._find(t)){this.stamps=this.stamps.concat(t);for(var e=0,i=t.length;e<i;e++){var o=t[e];this.ignore(o)}}},c.prototype.unstamp=function(t){if(t=this._find(t))for(var e=0,i=t.length;e<i;e++){var o=t[e];r.removeFrom(this.stamps,o),this.unignore(o)}},c.prototype._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=r.makeArray(t)},c.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var t=0,e=this.stamps.length;t<e;t++){var i=this.stamps[t];this._manageStamp(i)}}},c.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},c.prototype._manageStamp=s,c.prototype._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,t=n(t);return{left:e.left-i.left-t.marginLeft,top:e.top-i.top-t.marginTop,right:i.right-e.right-t.marginRight,bottom:i.bottom-e.bottom-t.marginBottom}},c.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},c.prototype.bindResize=function(){this.isResizeBound||(e.bind(t,"resize",this),this.isResizeBound=!0)},c.prototype.unbindResize=function(){this.isResizeBound&&e.unbind(t,"resize",this),this.isResizeBound=!1},c.prototype.onresize=function(){this.resizeTimeout&&clearTimeout(this.resizeTimeout);var t=this;this.resizeTimeout=setTimeout(function(){t.resize(),delete t.resizeTimeout},100)},c.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},c.prototype.needsResizeLayout=function(){var t=n(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},c.prototype.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},c.prototype.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},c.prototype.prepended=function(t){var e,t=this._itemize(t);t.length&&(e=this.items.slice(0),this.items=t.concat(e),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(e))},c.prototype.reveal=function(t){this._emitCompleteOnItems("reveal",t);for(var e=t&&t.length,i=0;e&&i<e;i++)t[i].reveal()},c.prototype.hide=function(t){this._emitCompleteOnItems("hide",t);for(var e=t&&t.length,i=0;e&&i<e;i++)t[i].hide()},c.prototype.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},c.prototype.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},c.prototype.getItem=function(t){for(var e=0,i=this.items.length;e<i;e++){var o=this.items[e];if(o.element===t)return o}},c.prototype.getItems=function(t){for(var e=[],i=0,o=(t=r.makeArray(t)).length;i<o;i++){var n=t[i],n=this.getItem(n);n&&e.push(n)}return e},c.prototype.remove=function(t){var e=this.getItems(t);if(this._emitCompleteOnItems("remove",e),e&&e.length)for(var i=0,o=e.length;i<o;i++){var n=e[i];n.remove(),r.removeFrom(this.items,n)}},c.prototype.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="";for(var e=0,i=this.items.length;e<i;e++)this.items[e].destroy();this.unbindResize();t=this.element.outlayerGUID;delete u[t],delete this.element.outlayerGUID,h&&h.removeData(this.element,this.constructor.namespace)},c.data=function(t){t=(t=r.getQueryElement(t))&&t.outlayerGUID;return t&&u[t]},c.create=function(t,e){function i(){c.apply(this,arguments)}return Object.create?i.prototype=Object.create(c.prototype):r.extend(i.prototype,c.prototype),(i.prototype.constructor=i).defaults=r.extend({},c.defaults),r.extend(i.defaults,e),i.prototype.settings={},i.namespace=t,i.data=c.data,(i.Item=function(){o.apply(this,arguments)}).prototype=new o,r.htmlInit(i,t),h&&h.bridget&&h.bridget(t,i),i},c.Item=o,c}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],e):"object"==typeof exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}(e.prototype=new t.Item)._create=function(){this.id=this.layout.itemGUID++,t.Item.prototype._create.call(this),this.sortData={}},e.prototype.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t,e=this.layout.options.getSortData,i=this.layout._sorters;for(t in e){var o=i[t];this.sortData[t]=o(this.element,this)}}};var i=e.prototype.destroy;return e.prototype.destroy=function(){i.apply(this,arguments),this.css({display:""})},e}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(e,i){"use strict";function o(t){(this.isotope=t)&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}for(var t=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout"],n=0,r=t.length;n<r;n++){var s=t[n];o.prototype[s]=function(t){return function(){return i.prototype[t].apply(this.isotope,arguments)}}(s)}return o.prototype.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},o.prototype._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.prototype.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.prototype.getRowHeight=function(){this.getSegmentSize("row","Height")},o.prototype.getSegmentSize=function(t,e){var i,t=t+e,o="outer"+e;this._getMeasurement(t,o),this[t]||(i=this.getFirstItemSize(),this[t]=i&&i[o]||this.isotope.size["inner"+e])},o.prototype.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},o.prototype.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.prototype.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},o.modes={},o.create=function(t,e){function i(){o.apply(this,arguments)}return i.prototype=new o,e&&(i.options=e),o.modes[i.prototype.namespace=t]=i},o}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],e):"object"==typeof exports?module.exports=e(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):t.Masonry=e(t.Outlayer,t.getSize,t.fizzyUIUtils)}(window,function(t,a,h){t=t.create("masonry");return t.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var t=this.cols;for(this.colYs=[];t--;)this.colYs.push(0);this.maxY=0},t.prototype.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(t=(t=this.items[0])&&t.element,this.columnWidth=t&&a(t).outerWidth||this.containerWidth);var t=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,i=e/t,e=t-e%t,i=Math[e&&e<1?"round":"floor"](i);this.cols=Math.max(i,1)},t.prototype.getContainerWidth=function(){var t=this.options.isFitWidth?this.element.parentNode:this.element,t=a(t);this.containerWidth=t&&t.innerWidth},t.prototype._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,e=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),e=Math.min(e,this.cols),e=this._getColGroup(e),i=Math.min.apply(Math,e),o=h.indexOf(e,i),n={x:this.columnWidth*o,y:i},r=i+t.size.outerHeight,s=this.cols+1-e.length,a=0;a<s;a++)this.colYs[o+a]=r;return n},t.prototype._getColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,o=0;o<i;o++){var n=this.colYs.slice(o,o+t);e[o]=Math.max.apply(Math,n)}return e},t.prototype._manageStamp=function(t){for(var e=a(t),t=this._getElementOffset(t),i=this.options.isOriginLeft?t.left:t.right,o=i+e.outerWidth,i=Math.floor(i/this.columnWidth),i=Math.max(0,i),n=Math.floor(o/this.columnWidth),r=(n-=o%this.columnWidth?0:1,n=Math.min(this.cols-1,n),(this.options.isOriginTop?t.top:t.bottom)+e.outerHeight),s=i;s<=n;s++)this.colYs[s]=Math.max(r,this.colYs[s])},t.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this.options.isFitWidth&&(t.width=this._getContainerFitWidth()),t},t.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},t.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!==this.containerWidth},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],e):"object"==typeof exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i,t=t.create("masonry"),o=t.prototype._getElementOffset,n=t.prototype.layout,r=t.prototype._getMeasurement,s=t.prototype,a=e.prototype;for(i in a)s[i]=a[i];t.prototype._getElementOffset=o,t.prototype.layout=n,t.prototype._getMeasurement=r;var h=t.prototype.measureColumns,p=(t.prototype.measureColumns=function(){this.items=this.isotope.filteredItems,h.call(this)},t.prototype._manageStamp);return t.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft,this.options.isOriginTop=this.isotope.options.isOriginTop,p.apply(this,arguments)},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";t=t.create("fitRows");return t.prototype._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},t.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter,i=(0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY),{x:this.x,y:this.y});return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,i},t.prototype._getContainerSize=function(){return{height:this.maxY}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";t=t.create("vertical",{horizontalAlignment:0});return t.prototype._resetLayout=function(){this.y=0},t.prototype._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},t.prototype._getContainerSize=function(){return{height:this.y}},t}),function(s,a){"use strict";"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(t,e,i,o,n,r){return a(s,t,0,i,o,n,r)}):"object"==typeof exports?module.exports=a(s,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry"),require("./layout-modes/fit-rows"),require("./layout-modes/vertical")):s.Isotope=a(s,s.Outlayer,s.getSize,s.matchesSelector,s.fizzyUIUtils,s.Isotope.Item,s.Isotope.LayoutMode)}(window,function(t,o,e,i,r,n,s){var a=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},p=document.documentElement.textContent?function(t){return t.textContent}:function(t){return t.innerText},u=o.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0}),c=(u.Item=n,u.LayoutMode=s,u.prototype._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),o.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],s.modes)this._initLayoutMode(t)},u.prototype.reloadItems=function(){this.itemGUID=0,o.prototype.reloadItems.call(this)},u.prototype._itemize=function(){for(var t=o.prototype._itemize.apply(this,arguments),e=0,i=t.length;e<i;e++)t[e].id=this.itemGUID++;return this._updateItemsSortData(t),t},u.prototype._initLayoutMode=function(t){var e=s.modes[t],i=this.options[t]||{};this.options[t]=e.options?r.extend(e.options,i):i,this.modes[t]=new e(this)},u.prototype.layout=function(){!this._isLayoutInited&&this.options.isInitLayout?this.arrange():this._layout()},u.prototype._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},u.prototype.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items),i=(this.filteredItems=e.matches,this);function o(){i.reveal(e.needReveal),i.hide(e.needHide)}this._bindArrangeComplete(),this._isInstant?this._noTransition(o):o(),this._sort(),this._layout()},u.prototype._init=u.prototype.arrange,u.prototype._getIsInstant=function(){var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=t},u.prototype._bindArrangeComplete=function(){var t,e,i,o=this;function n(){t&&e&&i&&o.dispatchEvent("arrangeComplete",null,[o.filteredItems])}this.once("layoutComplete",function(){t=!0,n()}),this.once("hideComplete",function(){e=!0,n()}),this.once("revealComplete",function(){i=!0,n()})},u.prototype._filter=function(t){for(var e=this.options.filter,i=[],o=[],n=[],r=this._getFilterTest(e||"*"),s=0,a=t.length;s<a;s++){var h,p=t[s];p.isIgnored||((h=r(p))&&i.push(p),h&&p.isHidden?o.push(p):h||p.isHidden||n.push(p))}return{matches:i,needReveal:o,needHide:n}},u.prototype._getFilterTest=function(e){return a&&this.options.isJQueryFiltering?function(t){return a(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return i(t.element,e)}},u.prototype.updateSortData=function(t){t=t?(t=r.makeArray(t),this.getItems(t)):this.items;this._getSorters(),this._updateItemsSortData(t)},u.prototype._getSorters=function(){var t,e=this.options.getSortData;for(t in e){var i=e[t];this._sorters[t]=c(i)}},u.prototype._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++)t[i].updateSortData()},function(t){if("string"!=typeof t)return t;var e=h(t).split(" "),i=e[0],o=i.match(/^\[(.+)\]$/),n=function(e,i){var t;t=e?function(t){return t.getAttribute(e)}:function(t){t=t.querySelector(i);return t&&p(t)};return t}(o&&o[1],i),r=u.sortDataParsers[e[1]];return t=r?function(t){return t&&r(n(t))}:function(t){return t&&n(t)}});u.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},u.prototype._sort=function(){var t,a,h,e=this.options.sortBy;e&&(t=[].concat.apply(e,this.sortHistory),a=t,h=this.options.sortAscending,this.filteredItems.sort(function(t,e){for(var i=0,o=a.length;i<o;i++){var n=a[i],r=t.sortData[n],s=e.sortData[n];if(s<r||r<s)return(s<r?1:-1)*((void 0!==h[n]?h[n]:h)?1:-1)}return 0}),e!=this.sortHistory[0]&&this.sortHistory.unshift(e))},u.prototype._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(e)return e.options=this.options[t],e;throw new Error("No layout mode: "+t)},u.prototype._resetLayout=function(){o.prototype._resetLayout.call(this),this._mode()._resetLayout()},u.prototype._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},u.prototype._manageStamp=function(t){this._mode()._manageStamp(t)},u.prototype._getContainerSize=function(){return this._mode()._getContainerSize()},u.prototype.needsResizeLayout=function(){return this._mode().needsResizeLayout()},u.prototype.appended=function(t){var t=this.addItems(t);t.length&&(t=this._filterRevealAdded(t),this.filteredItems=this.filteredItems.concat(t))},u.prototype.prepended=function(t){var e,t=this._itemize(t);t.length&&(this._resetLayout(),this._manageStamps(),e=this._filterRevealAdded(t),this.layoutItems(this.filteredItems),this.filteredItems=e.concat(this.filteredItems),this.items=t.concat(this.items))},u.prototype._filterRevealAdded=function(t){t=this._filter(t);return this.hide(t.needHide),this.reveal(t.matches),this.layoutItems(t.matches,!0),t.matches},u.prototype.insert=function(t){var e=this.addItems(t);if(e.length){for(var i,o=e.length,n=0;n<o;n++)i=e[n],this.element.appendChild(i.element);t=this._filter(e).matches;for(n=0;n<o;n++)e[n].isLayoutInstant=!0;for(this.arrange(),n=0;n<o;n++)delete e[n].isLayoutInstant;this.reveal(t)}};var l=u.prototype.remove;return u.prototype.remove=function(t){t=r.makeArray(t);var e=this.getItems(t),i=(l.call(this,t),e&&e.length);if(i)for(var o=0;o<i;o++){var n=e[o];r.removeFrom(this.filteredItems,n)}},u.prototype.shuffle=function(){for(var t=0,e=this.items.length;t<e;t++)this.items[t].sortData.random=Math.random();this.options.sortBy="random",this._sort(),this._layout()},u.prototype._noTransition=function(t){var e=this.options.transitionDuration,t=(this.options.transitionDuration=0,t.call(this));return this.options.transitionDuration=e,t},u.prototype.getFilteredItemElements=function(){for(var t=[],e=0,i=this.filteredItems.length;e<i;e++)t.push(this.filteredItems[e].element);return t},u}),function(t){function i(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}function e(t,e){(o(t,e)?r:n)(t,e)}var o,n,r="classList"in document.documentElement?(o=function(t,e){return t.classList.contains(e)},n=function(t,e){t.classList.add(e)},function(t,e){t.classList.remove(e)}):(o=function(t,e){return i(e).test(t.className)},n=function(t,e){o(t,e)||(t.className=t.className+" "+e)},function(t,e){t.className=t.className.replace(i(e)," ")}),s={hasClass:o,addClass:n,removeClass:r,toggleClass:e,has:o,add:n,remove:r,toggle:e};"function"==typeof define&&define.amd?define("classie/classie",s):"object"==typeof exports?module.exports=s:t.classie=s}(window),function(t){function e(){function a(t){for(var e in a.defaults)this[e]=a.defaults[e];for(e in t)this[e]=t[e]}return(i.Rect=a).defaults={x:0,y:0,width:0,height:0},a.prototype.contains=function(t){var e=t.width||0,i=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+e&&this.y+this.height>=t.y+i},a.prototype.overlaps=function(t){var e=this.x+this.width,i=this.y+this.height,o=t.x+t.width,n=t.y+t.height;return this.x<o&&e>t.x&&this.y<n&&i>t.y},a.prototype.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var e,i=[],o=this.x+this.width,n=this.y+this.height,r=t.x+t.width,s=t.y+t.height;return this.y<t.y&&(e=new a({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),i.push(e)),r<o&&(e=new a({x:r,y:this.y,width:o-r,height:this.height}),i.push(e)),s<n&&(e=new a({x:this.x,y:s,width:this.width,height:n-s}),i.push(e)),this.x<t.x&&(e=new a({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),i.push(e)),i},a.prototype.canFit=function(t){return this.width>=t.width&&this.height>=t.height},a}var i=t.Packery=function(){};"function"==typeof define&&define.amd?define("packery/js/rect",e):"object"==typeof exports?module.exports=e():(t.Packery=t.Packery||{},t.Packery.Rect=e())}(window),function(t){function e(e){function t(t,e,i){this.width=t||0,this.height=e||0,this.sortDirection=i||"downwardLeftToRight",this.reset()}t.prototype.reset=function(){this.spaces=[],this.newSpaces=[];var t=new e({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t),this.sorter=i[this.sortDirection]||i.downwardLeftToRight},t.prototype.pack=function(t){for(var e=0,i=this.spaces.length;e<i;e++){var o=this.spaces[e];if(o.canFit(t)){this.placeInSpace(t,o);break}}},t.prototype.placeInSpace=function(t,e){t.x=e.x,t.y=e.y,this.placed(t)},t.prototype.placed=function(t){for(var e=[],i=0,o=this.spaces.length;i<o;i++){var n=this.spaces[i],r=n.getMaximalFreeRects(t);r?e.push.apply(e,r):e.push(n)}this.spaces=e,this.mergeSortSpaces()},t.prototype.mergeSortSpaces=function(){t.mergeRects(this.spaces),this.spaces.sort(this.sorter)},t.prototype.addSpace=function(t){this.spaces.push(t),this.mergeSortSpaces()},t.mergeRects=function(t){for(var e=0,i=t.length;e<i;e++){var o=t[e];if(o){var n=t.slice(0);n.splice(e,1);for(var r=0,s=0,a=n.length;s<a;s++){var h=n[s],p=s<e?0:1;o.contains(h)&&(t.splice(s+p-r,1),r++)}}}return t};var i={downwardLeftToRight:function(t,e){return t.y-e.y||t.x-e.x},rightwardTopToBottom:function(t,e){return t.x-e.x||t.y-e.y}};return t}"function"==typeof define&&define.amd?define("packery/js/packer",["./rect"],e):"object"==typeof exports?module.exports=e(require("./rect")):(t=t.Packery=t.Packery||{}).Packer=e(t.Rect)}(window),function(t){function e(t,e,i){function o(){e.Item.apply(this,arguments)}var n=t("transform"),r=(o.prototype=new e.Item)._create;return o.prototype._create=function(){r.call(this),this.rect=new i,this.placeRect=new i},o.prototype.dragStart=function(){this.getPosition(),this.removeTransitionStyles(),this.isTransitioning&&n&&(this.element.style[n]="none"),this.getSize(),this.isPlacing=!0,this.needsPositioning=!1,this.positionPlaceRect(this.position.x,this.position.y),this.isTransitioning=!1,this.didDrag=!1},o.prototype.dragMove=function(t,e){this.didDrag=!0;var i=this.layout.size;t-=i.paddingLeft,e-=i.paddingTop,this.positionPlaceRect(t,e)},o.prototype.dragStop=function(){this.getPosition();var t=this.position.x!==this.placeRect.x,e=this.position.y!==this.placeRect.y;this.needsPositioning=t||e,this.didDrag=!1},o.prototype.positionPlaceRect=function(t,e,i){this.placeRect.x=this.getPlaceRectCoord(t,!0),this.placeRect.y=this.getPlaceRectCoord(e,!1,i)},o.prototype.getPlaceRectCoord=function(t,e,i){var o=e?"Width":"Height",n=this.size["outer"+o],r=this.layout[e?"columnWidth":"rowHeight"],o=this.layout.size["inner"+o];return e||(o=Math.max(o,this.layout.maxY),this.layout.rowHeight||(o-=this.layout.gutter)),e=r?(r+=this.layout.gutter,o+=e?this.layout.gutter:0,t=Math.round(t/r),e=this.layout.options.isHorizontal?e?"ceil":"floor":e?"floor":"ceil",e=Math[e](o/r),e-=Math.ceil(n/r)):o-n,t=i?t:Math.min(t,e),t*=r||1,Math.max(0,t)},o.prototype.copyPlaceRectPosition=function(){this.rect.x=this.placeRect.x,this.rect.y=this.placeRect.y},o.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},o}"function"==typeof define&&define.amd?define("packery/js/item",["get-style-property/get-style-property","outlayer/outlayer","./rect"],e):"object"==typeof exports?module.exports=e(require("desandro-get-style-property"),require("outlayer"),require("./rect")):t.Packery.Item=e(t.getStyleProperty,t.Outlayer,t.Packery.Rect)}(window),function(t){function e(s,o,t,i,e,n){function r(t,e){return t.position.y-e.position.y||t.position.x-e.position.x}function a(t,e){return t.position.x-e.position.x||t.position.y-e.position.y}i.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var h=t.create("packery");return h.Item=n,h.prototype._create=function(){t.prototype._create.call(this),this.packer=new e,this.stamp(this.options.stamped);var i=this;this.handleDraggabilly={dragStart:function(t){i.itemDragStart(t.element)},dragMove:function(t){i.itemDragMove(t.element,t.position.x,t.position.y)},dragEnd:function(t){i.itemDragEnd(t.element)}},this.handleUIDraggable={start:function(t){i.itemDragStart(t.currentTarget)},drag:function(t,e){i.itemDragMove(t.currentTarget,e.position.left,e.position.top)},stop:function(t){i.itemDragEnd(t.currentTarget)}}},h.prototype._resetLayout=function(){this.getSize(),this._getMeasurements();var t=this.packer;this.options.isHorizontal?(t.width=Number.POSITIVE_INFINITY,t.height=this.size.innerHeight+this.gutter,t.sortDirection="rightwardTopToBottom"):(t.width=this.size.innerWidth+this.gutter,t.height=Number.POSITIVE_INFINITY,t.sortDirection="downwardLeftToRight"),t.reset(),this.maxY=0,this.maxX=0},h.prototype._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},h.prototype._getItemLayoutPosition=function(t){return this._packItem(t),t.rect},h.prototype._packItem=function(t){this._setRectSize(t.element,t.rect),this.packer.pack(t.rect),this._setMaxXY(t.rect)},h.prototype._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX),this.maxY=Math.max(t.y+t.height,this.maxY)},h.prototype._setRectSize=function(t,e){var t=o(t),i=t.outerWidth,t=t.outerHeight;(i||t)&&(i=this._applyGridGutter(i,this.columnWidth),t=this._applyGridGutter(t,this.rowHeight)),e.width=Math.min(i,this.packer.width),e.height=Math.min(t,this.packer.height)},h.prototype._applyGridGutter=function(t,e){if(!e)return t+this.gutter;var i=t%(e+=this.gutter);return Math[i&&i<1?"round":"ceil"](t/e)*e},h.prototype._getContainerSize=function(){return this.options.isHorizontal?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},h.prototype._manageStamp=function(t){var e=this.getItem(t);e=e&&e.isPlacing?e.placeRect:(e=this._getElementOffset(t),new i({x:this.options.isOriginLeft?e.left:e.right,y:this.options.isOriginTop?e.top:e.bottom})),this._setRectSize(t,e),this.packer.placed(e),this._setMaxXY(e)},h.prototype.sortItemsByPosition=function(){var t=this.options.isHorizontal?a:r;this.items.sort(t)},h.prototype.fit=function(t,e,i){t=this.getItem(t);t&&(this._getMeasurements(),this.stamp(t.element),t.getSize(),t.isPlacing=!0,e=void 0===e?t.rect.x:e,i=void 0===i?t.rect.y:i,t.positionPlaceRect(e,i,!0),this._bindFitEvents(t),t.moveTo(t.placeRect.x,t.placeRect.y),this.layout(),this.unstamp(t.element),this.sortItemsByPosition(),t.isPlacing=!1,t.copyPlaceRectPosition())},h.prototype._bindFitEvents=function(t){function e(){2===++o&&i.emitEvent("fitComplete",[i,t])}var i=this,o=0;t.on("layout",function(){return e(),!0}),this.on("layoutComplete",function(){return e(),!0})},h.prototype.resize=function(){var t=o(this.element),e=this.size&&t,i=this.options.isHorizontal?"innerHeight":"innerWidth";e&&t[i]===this.size[i]||this.layout()},h.prototype.itemDragStart=function(t){this.stamp(t);t=this.getItem(t);t&&t.dragStart()},h.prototype.itemDragMove=function(t,e,i){var t=this.getItem(t),o=(t&&t.dragMove(e,i),this);this.clearDragTimeout(),this.dragTimeout=setTimeout(function(){o.layout(),delete o.dragTimeout},40)},h.prototype.clearDragTimeout=function(){this.dragTimeout&&clearTimeout(this.dragTimeout)},h.prototype.itemDragEnd=function(t){var e,i=this.getItem(t);i&&(e=i.didDrag,i.dragStop()),i&&(e||i.needsPositioning)?(s.add(i.element,"is-positioning-post-drag"),e=this._getDragEndLayoutComplete(t,i),i.needsPositioning?(i.on("layout",e),i.moveTo(i.placeRect.x,i.placeRect.y)):i&&i.copyPlaceRectPosition(),this.clearDragTimeout(),this.on("layoutComplete",e),this.layout()):this.unstamp(t)},h.prototype._getDragEndLayoutComplete=function(t,e){var i=e&&e.needsPositioning,o=0,n=i?2:1,r=this;return function(){return++o!==n||(e&&(s.remove(e.element,"is-positioning-post-drag"),e.isPlacing=!1,e.copyPlaceRectPosition()),r.unstamp(t),r.sortItemsByPosition(),i&&r.emitEvent("dragItemPositioned",[r,e])),!0}},h.prototype.bindDraggabillyEvents=function(t){t.on("dragStart",this.handleDraggabilly.dragStart),t.on("dragMove",this.handleDraggabilly.dragMove),t.on("dragEnd",this.handleDraggabilly.dragEnd)},h.prototype.bindUIDraggableEvents=function(t){t.on("dragstart",this.handleUIDraggable.start).on("drag",this.handleUIDraggable.drag).on("dragstop",this.handleUIDraggable.stop)},h.Rect=i,h.Packer=e,h}"function"==typeof define&&define.amd?define("packery/js/packery",["classie/classie","get-size/get-size","outlayer/outlayer","./rect","./packer","./item"],e):"object"==typeof exports?module.exports=e(require("desandro-classie"),require("get-size"),require("outlayer"),require("./rect"),require("./packer"),require("./item")):t.Packery=e(t.classie,t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window),function(t){function e(t,e,o){var i,t=t.create("packery"),n=t.prototype._getElementOffset,r=t.prototype._getMeasurement,s=t.prototype,a=e.prototype;for(i in a)s[i]=a[i];t.prototype._getElementOffset=n,t.prototype._getMeasurement=r;var h=t.prototype._resetLayout,p=(t.prototype._resetLayout=function(){this.packer=this.packer||new e.Packer,h.apply(this,arguments)},t.prototype._getItemLayoutPosition),u=(t.prototype._getItemLayoutPosition=function(t){return t.rect=t.rect||new e.Rect,p.call(this,t)},t.prototype._manageStamp);return t.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft,this.options.isOriginTop=this.isotope.options.isOriginTop,u.apply(this,arguments)},t.prototype.needsResizeLayout=function(){var t=o(this.element),e=this.size&&t,i=this.options.isHorizontal?"innerHeight":"innerWidth";return e&&t[i]!==this.size[i]},t}"function"==typeof define&&define.amd?define(["isotope/js/layout-mode","packery/js/packery","get-size/get-size"],e):"object"==typeof exports?module.exports=e(require("isotope-layout/js/layout-mode"),require("packery"),require("get-size")):e(t.Isotope.LayoutMode,t.Packery,t.getSize)}(window);