Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 

10 рядки
40 KiB

  1. var P=(a,l)=>()=>(l||a((l={exports:{}}).exports,l),l.exports);var D=P((T,x)=>{/*!
  2. * Isotope PACKAGED v2.2.0
  3. *
  4. * Licensed GPLv3 for open source use
  5. * or Isotope Commercial License for commercial use
  6. *
  7. * http://isotope.metafizzy.co
  8. * Copyright 2015 Metafizzy
  9. */(function(a){function l(){}function _(h){function m(r){r.prototype.option||(r.prototype.option=function(f){h.isPlainObject(f)&&(this.options=h.extend(!0,this.options,f))})}function t(r,f){h.fn[r]=function(v){if(typeof v=="string"){for(var z=s.call(arguments,1),e=0,o=this.length;o>e;e++){var p=this[e],n=h.data(p,r);if(n)if(h.isFunction(n[v])&&v.charAt(0)!=="_"){var u=n[v].apply(n,z);if(u!==void 0)return u}else i("no such method '"+v+"' for "+r+" instance");else i("cannot call methods on "+r+" prior to initialization; attempted to call '"+v+"'")}return this}return this.each(function(){var c=h.data(this,r);c?(c.option(v),c._init()):(c=new f(this,v),h.data(this,r,c))})}}if(h){var i=typeof console>"u"?l:function(r){console.error(r)};return h.bridget=function(r,f){m(f),t(r,f)},h.bridget}}var s=Array.prototype.slice;typeof define=="function"&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],_):_(typeof T=="object"?require("jquery"):a.jQuery)})(window),function(a){function l(t){var i=a.event;return i.target=i.target||i.srcElement||t,i}var _=document.documentElement,s=function(){};_.addEventListener?s=function(t,i,r){t.addEventListener(i,r,!1)}:_.attachEvent&&(s=function(t,i,r){t[i+r]=r.handleEvent?function(){var f=l(t);r.handleEvent.call(r,f)}:function(){var f=l(t);r.call(t,f)},t.attachEvent("on"+i,t[i+r])});var h=function(){};_.removeEventListener?h=function(t,i,r){t.removeEventListener(i,r,!1)}:_.detachEvent&&(h=function(t,i,r){t.detachEvent("on"+i,t[i+r]);try{delete t[i+r]}catch{t[i+r]=void 0}});var m={bind:s,unbind:h};typeof define=="function"&&define.amd?define("eventie/eventie",m):typeof T=="object"?x.exports=m:a.eventie=m}(window),(function(){function a(){}function l(t,i){for(var r=t.length;r--;)if(t[r].listener===i)return r;return-1}function _(t){return function(){return this[t].apply(this,arguments)}}var s=a.prototype,h=this,m=h.EventEmitter;s.getListeners=function(t){var i,r,f=this._getEvents();if(t instanceof RegExp){i={};for(r in f)f.hasOwnProperty(r)&&t.test(r)&&(i[r]=f[r])}else i=f[t]||(f[t]=[]);return i},s.flattenListeners=function(t){var i,r=[];for(i=0;i<t.length;i+=1)r.push(t[i].listener);return r},s.getListenersAsObject=function(t){var i,r=this.getListeners(t);return r instanceof Array&&(i={},i[t]=r),i||r},s.addListener=function(t,i){var r,f=this.getListenersAsObject(t),v=typeof i=="object";for(r in f)f.hasOwnProperty(r)&&l(f[r],i)===-1&&f[r].push(v?i:{listener:i,once:!1});return this},s.on=_("addListener"),s.addOnceListener=function(t,i){return this.addListener(t,{listener:i,once:!0})},s.once=_("addOnceListener"),s.defineEvent=function(t){return this.getListeners(t),this},s.defineEvents=function(t){for(var i=0;i<t.length;i+=1)this.defineEvent(t[i]);return this},s.removeListener=function(t,i){var r,f,v=this.getListenersAsObject(t);for(f in v)v.hasOwnProperty(f)&&(r=l(v[f],i),r!==-1&&v[f].splice(r,1));return this},s.off=_("removeListener"),s.addListeners=function(t,i){return this.manipulateListeners(!1,t,i)},s.removeListeners=function(t,i){return this.manipulateListeners(!0,t,i)},s.manipulateListeners=function(t,i,r){var f,v,z=t?this.removeListener:this.addListener,e=t?this.removeListeners:this.addListeners;if(typeof i!="object"||i instanceof RegExp)for(f=r.length;f--;)z.call(this,i,r[f]);else for(f in i)i.hasOwnProperty(f)&&(v=i[f])&&(typeof v=="function"?z.call(this,f,v):e.call(this,f,v));return this},s.removeEvent=function(t){var i,r=typeof t,f=this._getEvents();if(r==="string")delete f[t];else if(t instanceof RegExp)for(i in f)f.hasOwnProperty(i)&&t.test(i)&&delete f[i];else delete this._events;return this},s.removeAllListeners=_("removeEvent"),s.emitEvent=function(t,i){var r,f,v,z,e=this.getListenersAsObject(t);for(v in e)if(e.hasOwnProperty(v))for(f=e[v].length;f--;)r=e[v][f],r.once===!0&&this.removeListener(t,r.listener),z=r.listener.apply(this,i||[]),z===this._getOnceReturnValue()&&this.removeListener(t,r.listener);return this},s.trigger=_("emitEvent"),s.emit=function(t){var i=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,i)},s.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},s._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},s._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return h.EventEmitter=m,a},typeof define=="function"&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):typeof x=="object"&&x.exports?x.exports=a:h.EventEmitter=a}).call(globalThis),function(a){function l(h){if(h){if(typeof s[h]=="string")return h;h=h.charAt(0).toUpperCase()+h.slice(1);for(var m,t=0,i=_.length;i>t;t++)if(m=_[t]+h,typeof s[m]=="string")return m}}var _="Webkit Moz ms Ms O".split(" "),s=document.documentElement.style;typeof define=="function"&&define.amd?define("get-style-property/get-style-property",[],function(){return l}):typeof T=="object"?x.exports=l:a.getStyleProperty=l}(window),function(a,l){function _(r){var f=parseFloat(r),v=r.indexOf("%")===-1&&!isNaN(f);return v&&f}function s(){}function h(){for(var r={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},f=0,v=i.length;v>f;f++){var z=i[f];r[z]=0}return r}function m(r){function f(){if(!n){n=!0;var u=a.getComputedStyle;if(e=function(){var d=u?function(y){return u(y,null)}:function(y){return y.currentStyle};return function(y){var I=d(y);return I||t("Style returned "+I+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),I}}(),o=r("boxSizing")){var c=document.createElement("div");c.style.width="200px",c.style.padding="1px 2px 3px 4px",c.style.borderStyle="solid",c.style.borderWidth="1px 2px 3px 4px",c.style[o]="border-box";var g=document.body||document.documentElement;g.appendChild(c);var L=e(c);p=_(L.width)===200,g.removeChild(c)}}}function v(u){if(f(),typeof u=="string"&&(u=document.querySelector(u)),u&&typeof u=="object"&&u.nodeType){var c=e(u);if(c.display==="none")return h();var g={};g.width=u.offsetWidth,g.height=u.offsetHeight;for(var L=g.isBorderBox=!(!o||!c[o]||c[o]!=="border-box"),d=0,y=i.length;y>d;d++){var I=i[d],E=c[I];E=z(u,E);var S=parseFloat(E);g[I]=isNaN(S)?0:S}var C=g.paddingLeft+g.paddingRight,w=g.paddingTop+g.paddingBottom,O=g.marginLeft+g.marginRight,R=g.marginTop+g.marginBottom,W=g.borderLeftWidth+g.borderRightWidth,b=g.borderTopWidth+g.borderBottomWidth,M=L&&p,j=_(c.width);j!==!1&&(g.width=j+(M?0:C+W));var q=_(c.height);return q!==!1&&(g.height=q+(M?0:w+b)),g.innerWidth=g.width-(C+W),g.innerHeight=g.height-(w+b),g.outerWidth=g.width+O,g.outerHeight=g.height+R,g}}function z(u,c){if(a.getComputedStyle||c.indexOf("%")===-1)return c;var g=u.style,L=g.left,d=u.runtimeStyle,y=d&&d.left;return y&&(d.left=u.currentStyle.left),g.left=c,c=g.pixelLeft,g.left=L,y&&(d.left=y),c}var e,o,p,n=!1;return v}var t=typeof console>"u"?s:function(r){console.error(r)},i=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];typeof define=="function"&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],m):typeof T=="object"?x.exports=m(require("desandro-get-style-property")):a.getSize=m(a.getStyleProperty)}(window),function(a){function l(i){typeof i=="function"&&(l.isReady?i():t.push(i))}function _(i){var r=i.type==="readystatechange"&&m.readyState!=="complete";l.isReady||r||s()}function s(){l.isReady=!0;for(var i=0,r=t.length;r>i;i++){var f=t[i];f()}}function h(i){return m.readyState==="complete"?s():(i.bind(m,"DOMContentLoaded",_),i.bind(m,"readystatechange",_),i.bind(a,"load",_)),l}var m=a.document,t=[];l.isReady=!1,typeof define=="function"&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],h):typeof T=="object"?x.exports=h(require("eventie")):a.docReady=h(a.eventie)}(window),function(a){function l(f,v){return f[t](v)}function _(f){if(!f.parentNode){var v=document.createDocumentFragment();v.appendChild(f)}}function s(f,v){_(f);for(var z=f.parentNode.querySelectorAll(v),e=0,o=z.length;o>e;e++)if(z[e]===f)return!0;return!1}function h(f,v){return _(f),l(f,v)}var m,t=function(){if(a.matches)return"matches";if(a.matchesSelector)return"matchesSelector";for(var f=["webkit","moz","ms","o"],v=0,z=f.length;z>v;v++){var e=f[v],o=e+"MatchesSelector";if(a[o])return o}}();if(t){var i=document.createElement("div"),r=l(i,"div");m=r?l:h}else m=s;typeof define=="function"&&define.amd?define("matches-selector/matches-selector",[],function(){return m}):typeof T=="object"?x.exports=m:window.matchesSelector=m}(Element.prototype),function(a,l){typeof define=="function"&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(_,s){return l(a,_,s)}):typeof T=="object"?x.exports=l(a,require("doc-ready"),require("desandro-matches-selector")):a.fizzyUIUtils=l(a,a.docReady,a.matchesSelector)}(window,function(a,l,_){var s={};s.extend=function(t,i){for(var r in i)t[r]=i[r];return t},s.modulo=function(t,i){return(t%i+i)%i};var h=Object.prototype.toString;s.isArray=function(t){return h.call(t)=="[object Array]"},s.makeArray=function(t){var i=[];if(s.isArray(t))i=t;else if(t&&typeof t.length=="number")for(var r=0,f=t.length;f>r;r++)i.push(t[r]);else i.push(t);return i},s.indexOf=Array.prototype.indexOf?function(t,i){return t.indexOf(i)}:function(t,i){for(var r=0,f=t.length;f>r;r++)if(t[r]===i)return r;return-1},s.removeFrom=function(t,i){var r=s.indexOf(t,i);r!=-1&&t.splice(r,1)},s.isElement=typeof HTMLElement=="function"||typeof HTMLElement=="object"?function(t){return t instanceof HTMLElement}:function(t){return t&&typeof t=="object"&&t.nodeType==1&&typeof t.nodeName=="string"},s.setText=function(){function t(r,f){i=i||(document.documentElement.textContent!==void 0?"textContent":"innerText"),r[i]=f}var i;return t}(),s.getParent=function(t,i){for(;t!=document.body;)if(t=t.parentNode,_(t,i))return t},s.getQueryElement=function(t){return typeof t=="string"?document.querySelector(t):t},s.handleEvent=function(t){var i="on"+t.type;this[i]&&this[i](t)},s.filterFindElements=function(t,i){t=s.makeArray(t);for(var r=[],f=0,v=t.length;v>f;f++){var z=t[f];if(s.isElement(z))if(i){_(z,i)&&r.push(z);for(var e=z.querySelectorAll(i),o=0,p=e.length;p>o;o++)r.push(e[o])}else r.push(z)}return r},s.debounceMethod=function(t,i,r){var f=t.prototype[i],v=i+"Timeout";t.prototype[i]=function(){var z=this[v];z&&clearTimeout(z);var e=arguments,o=this;this[v]=setTimeout(function(){f.apply(o,e),delete o[v]},r||100)}},s.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(i,r,f){return r+"-"+f}).toLowerCase()};var m=a.console;return s.htmlInit=function(t,i){l(function(){for(var r=s.toDashed(i),f=document.querySelectorAll(".js-"+r),v="data-"+r+"-options",z=0,e=f.length;e>z;z++){var o,p=f[z],n=p.getAttribute(v);try{o=n&&JSON.parse(n)}catch(g){m&&m.error("Error parsing "+v+" on "+p.nodeName.toLowerCase()+(p.id?"#"+p.id:"")+": "+g);continue}var u=new t(p,o),c=a.jQuery;c&&c.data(p,i,u)}})},s}),function(a,l){typeof define=="function"&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(_,s,h,m){return l(a,_,s,h,m)}):typeof T=="object"?x.exports=l(a,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(a.Outlayer={},a.Outlayer.Item=l(a,a.EventEmitter,a.getSize,a.getStyleProperty,a.fizzyUIUtils))}(window,function(a,l,_,s,h){function m(d){for(var y in d)return!1;return y=null,!0}function t(d,y){d&&(this.element=d,this.layout=y,this.position={x:0,y:0},this._create())}function i(d){return d.replace(/([A-Z])/g,function(y){return"-"+y.toLowerCase()})}var r=a.getComputedStyle,f=r?function(d){return r(d,null)}:function(d){return d.currentStyle},v=s("transition"),z=s("transform"),e=v&&z,o=!!s("perspective"),p={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[v],n=["transform","transition","transitionDuration","transitionProperty"],u=function(){for(var d={},y=0,I=n.length;I>y;y++){var E=n[y],S=s(E);S&&S!==E&&(d[E]=S)}return d}();h.extend(t.prototype,l.prototype),t.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},t.prototype.handleEvent=function(d){var y="on"+d.type;this[y]&&this[y](d)},t.prototype.getSize=function(){this.size=_(this.element)},t.prototype.css=function(d){var y=this.element.style;for(var I in d){var E=u[I]||I;y[E]=d[I]}},t.prototype.getPosition=function(){var d=f(this.element),y=this.layout.options,I=y.isOriginLeft,E=y.isOriginTop,S=d[I?"left":"right"],C=d[E?"top":"bottom"],w=parseInt(S,10),O=parseInt(C,10),R=this.layout.size;w=S.indexOf("%")!=-1?w/100*R.width:w,O=C.indexOf("%")!=-1?O/100*R.height:O,w=isNaN(w)?0:w,O=isNaN(O)?0:O,w-=I?R.paddingLeft:R.paddingRight,O-=E?R.paddingTop:R.paddingBottom,this.position.x=w,this.position.y=O},t.prototype.layoutPosition=function(){var d=this.layout.size,y=this.layout.options,I={},E=y.isOriginLeft?"paddingLeft":"paddingRight",S=y.isOriginLeft?"left":"right",C=y.isOriginLeft?"right":"left",w=this.position.x+d[E];I[S]=this.getXValue(w),I[C]="";var O=y.isOriginTop?"paddingTop":"paddingBottom",R=y.isOriginTop?"top":"bottom",W=y.isOriginTop?"bottom":"top",b=this.position.y+d[O];I[R]=this.getYValue(b),I[W]="",this.css(I),this.emitEvent("layout",[this])},t.prototype.getXValue=function(d){var y=this.layout.options;return y.percentPosition&&!y.isHorizontal?d/this.layout.size.width*100+"%":d+"px"},t.prototype.getYValue=function(d){var y=this.layout.options;return y.percentPosition&&y.isHorizontal?d/this.layout.size.height*100+"%":d+"px"},t.prototype._transitionTo=function(d,y){this.getPosition();var I=this.position.x,E=this.position.y,S=parseInt(d,10),C=parseInt(y,10),w=S===this.position.x&&C===this.position.y;if(this.setPosition(d,y),w&&!this.isTransitioning)return void this.layoutPosition();var O=d-I,R=y-E,W={};W.transform=this.getTranslate(O,R),this.transition({to:W,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},t.prototype.getTranslate=function(d,y){var I=this.layout.options;return d=I.isOriginLeft?d:-d,y=I.isOriginTop?y:-y,d=this.getXValue(d),y=this.getYValue(y),o?"translate3d("+d+", "+y+", 0)":"translate("+d+", "+y+")"},t.prototype.goTo=function(d,y){this.setPosition(d,y),this.layoutPosition()},t.prototype.moveTo=e?t.prototype._transitionTo:t.prototype.goTo,t.prototype.setPosition=function(d,y){this.position.x=parseInt(d,10),this.position.y=parseInt(y,10)},t.prototype._nonTransition=function(d){this.css(d.to),d.isCleaning&&this._removeStyles(d.to);for(var y in d.onTransitionEnd)d.onTransitionEnd[y].call(this)},t.prototype._transition=function(d){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(d);var y=this._transn;for(var I in d.onTransitionEnd)y.onEnd[I]=d.onTransitionEnd[I];for(I in d.to)y.ingProperties[I]=!0,d.isCleaning&&(y.clean[I]=!0);d.from&&(this.css(d.from),this.element.offsetHeight),this.enableTransition(d.to),this.css(d.to),this.isTransitioning=!0};var c="opacity,"+i(u.transform||"transform");t.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:c,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(p,this,!1))},t.prototype.transition=t.prototype[v?"_transition":"_nonTransition"],t.prototype.onwebkitTransitionEnd=function(d){this.ontransitionend(d)},t.prototype.onotransitionend=function(d){this.ontransitionend(d)};var g={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};t.prototype.ontransitionend=function(d){if(d.target===this.element){var y=this._transn,I=g[d.propertyName]||d.propertyName;if(delete y.ingProperties[I],m(y.ingProperties)&&this.disableTransition(),I in y.clean&&(this.element.style[d.propertyName]="",delete y.clean[I]),I in y.onEnd){var E=y.onEnd[I];E.call(this),delete y.onEnd[I]}this.emitEvent("transitionEnd",[this])}},t.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(p,this,!1),this.isTransitioning=!1},t.prototype._removeStyles=function(d){var y={};for(var I in d)y[I]="";this.css(y)};var L={transitionProperty:"",transitionDuration:""};return t.prototype.removeTransitionStyles=function(){this.css(L)},t.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},t.prototype.remove=function(){if(!v||!parseFloat(this.layout.options.transitionDuration))return void this.removeElem();var d=this;this.once("transitionEnd",function(){d.removeElem()}),this.hide()},t.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var d=this.layout.options,y={},I=this.getHideRevealTransitionEndProperty("visibleStyle");y[I]=this.onRevealTransitionEnd,this.transition({from:d.hiddenStyle,to:d.visibleStyle,isCleaning:!0,onTransitionEnd:y})},t.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},t.prototype.getHideRevealTransitionEndProperty=function(d){var y=this.layout.options[d];if(y.opacity)return"opacity";for(var I in y)return I},t.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var d=this.layout.options,y={},I=this.getHideRevealTransitionEndProperty("hiddenStyle");y[I]=this.onHideTransitionEnd,this.transition({from:d.visibleStyle,to:d.hiddenStyle,isCleaning:!0,onTransitionEnd:y})},t.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},t.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},t}),function(a,l){typeof define=="function"&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(_,s,h,m,t){return l(a,_,s,h,m,t)}):typeof T=="object"?x.exports=l(a,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):a.Outlayer=l(a,a.eventie,a.EventEmitter,a.getSize,a.fizzyUIUtils,a.Outlayer.Item)}(window,function(a,l,_,s,h,m){function t(e,o){var p=h.getQueryElement(e);if(!p)return void(i&&i.error("Bad element for "+this.constructor.namespace+": "+(p||e)));this.element=p,r&&(this.$element=r(this.element)),this.options=h.extend({},this.constructor.defaults),this.option(o);var n=++v;this.element.outlayerGUID=n,z[n]=this,this._create(),this.options.isInitLayout&&this.layout()}var i=a.console,r=a.jQuery,f=function(){},v=0,z={};return t.namespace="outlayer",t.Item=m,t.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)"}},h.extend(t.prototype,_.prototype),t.prototype.option=function(e){h.extend(this.options,e)},t.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),h.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},t.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},t.prototype._itemize=function(e){for(var o=this._filterFindItemElements(e),p=this.constructor.Item,n=[],u=0,c=o.length;c>u;u++){var g=o[u],L=new p(g,this);n.push(L)}return n},t.prototype._filterFindItemElements=function(e){return h.filterFindElements(e,this.options.itemSelector)},t.prototype.getItemElements=function(){for(var e=[],o=0,p=this.items.length;p>o;o++)e.push(this.items[o].element);return e},t.prototype.layout=function(){this._resetLayout(),this._manageStamps();var e=this.options.isLayoutInstant!==void 0?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},t.prototype._init=t.prototype.layout,t.prototype._resetLayout=function(){this.getSize()},t.prototype.getSize=function(){this.size=s(this.element)},t.prototype._getMeasurement=function(e,o){var p,n=this.options[e];n?(typeof n=="string"?p=this.element.querySelector(n):h.isElement(n)&&(p=n),this[e]=p?s(p)[o]:n):this[e]=0},t.prototype.layoutItems=function(e,o){e=this._getItemsForLayout(e),this._layoutItems(e,o),this._postLayout()},t.prototype._getItemsForLayout=function(e){for(var o=[],p=0,n=e.length;n>p;p++){var u=e[p];u.isIgnored||o.push(u)}return o},t.prototype._layoutItems=function(e,o){if(this._emitCompleteOnItems("layout",e),e&&e.length){for(var p=[],n=0,u=e.length;u>n;n++){var c=e[n],g=this._getItemLayoutPosition(c);g.item=c,g.isInstant=o||c.isLayoutInstant,p.push(g)}this._processLayoutQueue(p)}},t.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},t.prototype._processLayoutQueue=function(e){for(var o=0,p=e.length;p>o;o++){var n=e[o];this._positionItem(n.item,n.x,n.y,n.isInstant)}},t.prototype._positionItem=function(e,o,p,n){n?e.goTo(o,p):e.moveTo(o,p)},t.prototype._postLayout=function(){this.resizeContainer()},t.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},t.prototype._getContainerSize=f,t.prototype._setContainerMeasure=function(e,o){if(e!==void 0){var p=this.size;p.isBorderBox&&(e+=o?p.paddingLeft+p.paddingRight+p.borderLeftWidth+p.borderRightWidth:p.paddingBottom+p.paddingTop+p.borderTopWidth+p.borderBottomWidth),e=Math.max(e,0),this.element.style[o?"width":"height"]=e+"px"}},t.prototype._emitCompleteOnItems=function(e,o){function p(){u.dispatchEvent(e+"Complete",null,[o])}function n(){g++,g===c&&p()}var u=this,c=o.length;if(!o||!c)return void p();for(var g=0,L=0,d=o.length;d>L;L++){var y=o[L];y.once(e,n)}},t.prototype.dispatchEvent=function(e,o,p){var n=o?[o].concat(p):p;if(this.emitEvent(e,n),r)if(this.$element=this.$element||r(this.element),o){var u=r.Event(o);u.type=e,this.$element.trigger(u,p)}else this.$element.trigger(e,p)},t.prototype.ignore=function(e){var o=this.getItem(e);o&&(o.isIgnored=!0)},t.prototype.unignore=function(e){var o=this.getItem(e);o&&delete o.isIgnored},t.prototype.stamp=function(e){if(e=this._find(e)){this.stamps=this.stamps.concat(e);for(var o=0,p=e.length;p>o;o++){var n=e[o];this.ignore(n)}}},t.prototype.unstamp=function(e){if(e=this._find(e))for(var o=0,p=e.length;p>o;o++){var n=e[o];h.removeFrom(this.stamps,n),this.unignore(n)}},t.prototype._find=function(e){return e?(typeof e=="string"&&(e=this.element.querySelectorAll(e)),e=h.makeArray(e)):void 0},t.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var e=0,o=this.stamps.length;o>e;e++){var p=this.stamps[e];this._manageStamp(p)}}},t.prototype._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),o=this.size;this._boundingRect={left:e.left+o.paddingLeft+o.borderLeftWidth,top:e.top+o.paddingTop+o.borderTopWidth,right:e.right-(o.paddingRight+o.borderRightWidth),bottom:e.bottom-(o.paddingBottom+o.borderBottomWidth)}},t.prototype._manageStamp=f,t.prototype._getElementOffset=function(e){var o=e.getBoundingClientRect(),p=this._boundingRect,n=s(e),u={left:o.left-p.left-n.marginLeft,top:o.top-p.top-n.marginTop,right:p.right-o.right-n.marginRight,bottom:p.bottom-o.bottom-n.marginBottom};return u},t.prototype.handleEvent=function(e){var o="on"+e.type;this[o]&&this[o](e)},t.prototype.bindResize=function(){this.isResizeBound||(l.bind(a,"resize",this),this.isResizeBound=!0)},t.prototype.unbindResize=function(){this.isResizeBound&&l.unbind(a,"resize",this),this.isResizeBound=!1},t.prototype.onresize=function(){function e(){o.resize(),delete o.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var o=this;this.resizeTimeout=setTimeout(e,100)},t.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},t.prototype.needsResizeLayout=function(){var e=s(this.element),o=this.size&&e;return o&&e.innerWidth!==this.size.innerWidth},t.prototype.addItems=function(e){var o=this._itemize(e);return o.length&&(this.items=this.items.concat(o)),o},t.prototype.appended=function(e){var o=this.addItems(e);o.length&&(this.layoutItems(o,!0),this.reveal(o))},t.prototype.prepended=function(e){var o=this._itemize(e);if(o.length){var p=this.items.slice(0);this.items=o.concat(p),this._resetLayout(),this._manageStamps(),this.layoutItems(o,!0),this.reveal(o),this.layoutItems(p)}},t.prototype.reveal=function(e){this._emitCompleteOnItems("reveal",e);for(var o=e&&e.length,p=0;o&&o>p;p++){var n=e[p];n.reveal()}},t.prototype.hide=function(e){this._emitCompleteOnItems("hide",e);for(var o=e&&e.length,p=0;o&&o>p;p++){var n=e[p];n.hide()}},t.prototype.revealItemElements=function(e){var o=this.getItems(e);this.reveal(o)},t.prototype.hideItemElements=function(e){var o=this.getItems(e);this.hide(o)},t.prototype.getItem=function(e){for(var o=0,p=this.items.length;p>o;o++){var n=this.items[o];if(n.element===e)return n}},t.prototype.getItems=function(e){e=h.makeArray(e);for(var o=[],p=0,n=e.length;n>p;p++){var u=e[p],c=this.getItem(u);c&&o.push(c)}return o},t.prototype.remove=function(e){var o=this.getItems(e);if(this._emitCompleteOnItems("remove",o),o&&o.length)for(var p=0,n=o.length;n>p;p++){var u=o[p];u.remove(),h.removeFrom(this.items,u)}},t.prototype.destroy=function(){var e=this.element.style;e.height="",e.position="",e.width="";for(var o=0,p=this.items.length;p>o;o++){var n=this.items[o];n.destroy()}this.unbindResize();var u=this.element.outlayerGUID;delete z[u],delete this.element.outlayerGUID,r&&r.removeData(this.element,this.constructor.namespace)},t.data=function(e){e=h.getQueryElement(e);var o=e&&e.outlayerGUID;return o&&z[o]},t.create=function(e,o){function p(){t.apply(this,arguments)}return Object.create?p.prototype=Object.create(t.prototype):h.extend(p.prototype,t.prototype),p.prototype.constructor=p,p.defaults=h.extend({},t.defaults),h.extend(p.defaults,o),p.prototype.settings={},p.namespace=e,p.data=t.data,p.Item=function(){m.apply(this,arguments)},p.Item.prototype=new m,h.htmlInit(p,e),r&&r.bridget&&r.bridget(e,p),p},t.Item=m,t}),function(a,l){typeof define=="function"&&define.amd?define("isotope/js/item",["outlayer/outlayer"],l):typeof T=="object"?x.exports=l(require("outlayer")):(a.Isotope=a.Isotope||{},a.Isotope.Item=l(a.Outlayer))}(window,function(a){function l(){a.Item.apply(this,arguments)}l.prototype=new a.Item,l.prototype._create=function(){this.id=this.layout.itemGUID++,a.Item.prototype._create.call(this),this.sortData={}},l.prototype.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var s=this.layout.options.getSortData,h=this.layout._sorters;for(var m in s){var t=h[m];this.sortData[m]=t(this.element,this)}}};var _=l.prototype.destroy;return l.prototype.destroy=function(){_.apply(this,arguments),this.css({display:""})},l}),function(a,l){typeof define=="function"&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],l):typeof T=="object"?x.exports=l(require("get-size"),require("outlayer")):(a.Isotope=a.Isotope||{},a.Isotope.LayoutMode=l(a.getSize,a.Outlayer))}(window,function(a,l){function _(s){this.isotope=s,s&&(this.options=s.options[this.namespace],this.element=s.element,this.items=s.filteredItems,this.size=s.size)}return function(){function s(r){return function(){return l.prototype[r].apply(this.isotope,arguments)}}for(var h=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout"],m=0,t=h.length;t>m;m++){var i=h[m];_.prototype[i]=s(i)}}(),_.prototype.needsVerticalResizeLayout=function(){var s=a(this.isotope.element),h=this.isotope.size&&s;return h&&s.innerHeight!=this.isotope.size.innerHeight},_.prototype._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},_.prototype.getColumnWidth=function(){this.getSegmentSize("column","Width")},_.prototype.getRowHeight=function(){this.getSegmentSize("row","Height")},_.prototype.getSegmentSize=function(s,h){var m=s+h,t="outer"+h;if(this._getMeasurement(m,t),!this[m]){var i=this.getFirstItemSize();this[m]=i&&i[t]||this.isotope.size["inner"+h]}},_.prototype.getFirstItemSize=function(){var s=this.isotope.filteredItems[0];return s&&s.element&&a(s.element)},_.prototype.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},_.prototype.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},_.modes={},_.create=function(s,h){function m(){_.apply(this,arguments)}return m.prototype=new _,h&&(m.options=h),m.prototype.namespace=s,_.modes[s]=m,m},_}),function(a,l){typeof define=="function"&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],l):typeof T=="object"?x.exports=l(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):a.Masonry=l(a.Outlayer,a.getSize,a.fizzyUIUtils)}(window,function(a,l,_){var s=a.create("masonry");return s.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var h=this.cols;for(this.colYs=[];h--;)this.colYs.push(0);this.maxY=0},s.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var h=this.items[0],m=h&&h.element;this.columnWidth=m&&l(m).outerWidth||this.containerWidth}var t=this.columnWidth+=this.gutter,i=this.containerWidth+this.gutter,r=i/t,f=t-i%t,v=f&&1>f?"round":"floor";r=Math[v](r),this.cols=Math.max(r,1)},s.prototype.getContainerWidth=function(){var h=this.options.isFitWidth?this.element.parentNode:this.element,m=l(h);this.containerWidth=m&&m.innerWidth},s.prototype._getItemLayoutPosition=function(h){h.getSize();var m=h.size.outerWidth%this.columnWidth,t=m&&1>m?"round":"ceil",i=Math[t](h.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);for(var r=this._getColGroup(i),f=Math.min.apply(Math,r),v=_.indexOf(r,f),z={x:this.columnWidth*v,y:f},e=f+h.size.outerHeight,o=this.cols+1-r.length,p=0;o>p;p++)this.colYs[v+p]=e;return z},s.prototype._getColGroup=function(h){if(2>h)return this.colYs;for(var m=[],t=this.cols+1-h,i=0;t>i;i++){var r=this.colYs.slice(i,i+h);m[i]=Math.max.apply(Math,r)}return m},s.prototype._manageStamp=function(h){var m=l(h),t=this._getElementOffset(h),i=this.options.isOriginLeft?t.left:t.right,r=i+m.outerWidth,f=Math.floor(i/this.columnWidth);f=Math.max(0,f);var v=Math.floor(r/this.columnWidth);v-=r%this.columnWidth?0:1,v=Math.min(this.cols-1,v);for(var z=(this.options.isOriginTop?t.top:t.bottom)+m.outerHeight,e=f;v>=e;e++)this.colYs[e]=Math.max(z,this.colYs[e])},s.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var h={height:this.maxY};return this.options.isFitWidth&&(h.width=this._getContainerFitWidth()),h},s.prototype._getContainerFitWidth=function(){for(var h=0,m=this.cols;--m&&this.colYs[m]===0;)h++;return(this.cols-h)*this.columnWidth-this.gutter},s.prototype.needsResizeLayout=function(){var h=this.containerWidth;return this.getContainerWidth(),h!==this.containerWidth},s}),function(a,l){typeof define=="function"&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],l):typeof T=="object"?x.exports=l(require("../layout-mode"),require("masonry-layout")):l(a.Isotope.LayoutMode,a.Masonry)}(window,function(a,l){function _(f,v){for(var z in v)f[z]=v[z];return f}var s=a.create("masonry"),h=s.prototype._getElementOffset,m=s.prototype.layout,t=s.prototype._getMeasurement;_(s.prototype,l.prototype),s.prototype._getElementOffset=h,s.prototype.layout=m,s.prototype._getMeasurement=t;var i=s.prototype.measureColumns;s.prototype.measureColumns=function(){this.items=this.isotope.filteredItems,i.call(this)};var r=s.prototype._manageStamp;return s.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft,this.options.isOriginTop=this.isotope.options.isOriginTop,r.apply(this,arguments)},s}),function(a,l){typeof define=="function"&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],l):typeof T=="object"?x.exports=l(require("../layout-mode")):l(a.Isotope.LayoutMode)}(window,function(a){var l=a.create("fitRows");return l.prototype._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},l.prototype._getItemLayoutPosition=function(_){_.getSize();var s=_.size.outerWidth+this.gutter,h=this.isotope.size.innerWidth+this.gutter;this.x!==0&&s+this.x>h&&(this.x=0,this.y=this.maxY);var m={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+_.size.outerHeight),this.x+=s,m},l.prototype._getContainerSize=function(){return{height:this.maxY}},l}),function(a,l){typeof define=="function"&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],l):typeof T=="object"?x.exports=l(require("../layout-mode")):l(a.Isotope.LayoutMode)}(window,function(a){var l=a.create("vertical",{horizontalAlignment:0});return l.prototype._resetLayout=function(){this.y=0},l.prototype._getItemLayoutPosition=function(_){_.getSize();var s=(this.isotope.size.innerWidth-_.size.outerWidth)*this.options.horizontalAlignment,h=this.y;return this.y+=_.size.outerHeight,{x:s,y:h}},l.prototype._getContainerSize=function(){return{height:this.y}},l}),function(a,l){typeof define=="function"&&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(_,s,h,m,t,i){return l(a,_,s,h,m,t,i)}):typeof T=="object"?x.exports=l(a,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")):a.Isotope=l(a,a.Outlayer,a.getSize,a.matchesSelector,a.fizzyUIUtils,a.Isotope.Item,a.Isotope.LayoutMode)}(window,function(a,l,_,s,h,m,t){function i(n,u){return function(c,g){for(var L=0,d=n.length;d>L;L++){var y=n[L],I=c.sortData[y],E=g.sortData[y];if(I>E||E>I){var S=u[y]!==void 0?u[y]:u,C=S?1:-1;return(I>E?1:-1)*C}}return 0}}var r=a.jQuery,f=String.prototype.trim?function(n){return n.trim()}:function(n){return n.replace(/^\s+|\s+$/g,"")},v=document.documentElement,z=v.textContent?function(n){return n.textContent}:function(n){return n.innerText},e=l.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});e.Item=m,e.LayoutMode=t,e.prototype._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),l.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var n in t.modes)this._initLayoutMode(n)},e.prototype.reloadItems=function(){this.itemGUID=0,l.prototype.reloadItems.call(this)},e.prototype._itemize=function(){for(var n=l.prototype._itemize.apply(this,arguments),u=0,c=n.length;c>u;u++){var g=n[u];g.id=this.itemGUID++}return this._updateItemsSortData(n),n},e.prototype._initLayoutMode=function(n){var u=t.modes[n],c=this.options[n]||{};this.options[n]=u.options?h.extend(u.options,c):c,this.modes[n]=new u(this)},e.prototype.layout=function(){return!this._isLayoutInited&&this.options.isInitLayout?void this.arrange():void this._layout()},e.prototype._layout=function(){var n=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,n),this._isLayoutInited=!0},e.prototype.arrange=function(n){function u(){g.reveal(c.needReveal),g.hide(c.needHide)}this.option(n),this._getIsInstant();var c=this._filter(this.items);this.filteredItems=c.matches;var g=this;this._bindArrangeComplete(),this._isInstant?this._noTransition(u):u(),this._sort(),this._layout()},e.prototype._init=e.prototype.arrange,e.prototype._getIsInstant=function(){var n=this.options.isLayoutInstant!==void 0?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=n,n},e.prototype._bindArrangeComplete=function(){function n(){u&&c&&g&&L.dispatchEvent("arrangeComplete",null,[L.filteredItems])}var u,c,g,L=this;this.once("layoutComplete",function(){u=!0,n()}),this.once("hideComplete",function(){c=!0,n()}),this.once("revealComplete",function(){g=!0,n()})},e.prototype._filter=function(n){var u=this.options.filter;u=u||"*";for(var c=[],g=[],L=[],d=this._getFilterTest(u),y=0,I=n.length;I>y;y++){var E=n[y];if(!E.isIgnored){var S=d(E);S&&c.push(E),S&&E.isHidden?g.push(E):S||E.isHidden||L.push(E)}}return{matches:c,needReveal:g,needHide:L}},e.prototype._getFilterTest=function(n){return r&&this.options.isJQueryFiltering?function(u){return r(u.element).is(n)}:typeof n=="function"?function(u){return n(u.element)}:function(u){return s(u.element,n)}},e.prototype.updateSortData=function(n){var u;n?(n=h.makeArray(n),u=this.getItems(n)):u=this.items,this._getSorters(),this._updateItemsSortData(u)},e.prototype._getSorters=function(){var n=this.options.getSortData;for(var u in n){var c=n[u];this._sorters[u]=o(c)}},e.prototype._updateItemsSortData=function(n){for(var u=n&&n.length,c=0;u&&u>c;c++){var g=n[c];g.updateSortData()}};var o=function(){function n(c){if(typeof c!="string")return c;var g=f(c).split(" "),L=g[0],d=L.match(/^\[(.+)\]$/),y=d&&d[1],I=u(y,L),E=e.sortDataParsers[g[1]];return c=E?function(S){return S&&E(I(S))}:function(S){return S&&I(S)}}function u(c,g){return c?function(L){return L.getAttribute(c)}:function(L){var d=L.querySelector(g);return d&&z(d)}}return n}();e.sortDataParsers={parseInt:function(n){return parseInt(n,10)},parseFloat:function(n){return parseFloat(n)}},e.prototype._sort=function(){var n=this.options.sortBy;if(n){var u=[].concat.apply(n,this.sortHistory),c=i(u,this.options.sortAscending);this.filteredItems.sort(c),n!=this.sortHistory[0]&&this.sortHistory.unshift(n)}},e.prototype._mode=function(){var n=this.options.layoutMode,u=this.modes[n];if(!u)throw new Error("No layout mode: "+n);return u.options=this.options[n],u},e.prototype._resetLayout=function(){l.prototype._resetLayout.call(this),this._mode()._resetLayout()},e.prototype._getItemLayoutPosition=function(n){return this._mode()._getItemLayoutPosition(n)},e.prototype._manageStamp=function(n){this._mode()._manageStamp(n)},e.prototype._getContainerSize=function(){return this._mode()._getContainerSize()},e.prototype.needsResizeLayout=function(){return this._mode().needsResizeLayout()},e.prototype.appended=function(n){var u=this.addItems(n);if(u.length){var c=this._filterRevealAdded(u);this.filteredItems=this.filteredItems.concat(c)}},e.prototype.prepended=function(n){var u=this._itemize(n);if(u.length){this._resetLayout(),this._manageStamps();var c=this._filterRevealAdded(u);this.layoutItems(this.filteredItems),this.filteredItems=c.concat(this.filteredItems),this.items=u.concat(this.items)}},e.prototype._filterRevealAdded=function(n){var u=this._filter(n);return this.hide(u.needHide),this.reveal(u.matches),this.layoutItems(u.matches,!0),u.matches},e.prototype.insert=function(n){var u=this.addItems(n);if(u.length){var c,g,L=u.length;for(c=0;L>c;c++)g=u[c],this.element.appendChild(g.element);var d=this._filter(u).matches;for(c=0;L>c;c++)u[c].isLayoutInstant=!0;for(this.arrange(),c=0;L>c;c++)delete u[c].isLayoutInstant;this.reveal(d)}};var p=e.prototype.remove;return e.prototype.remove=function(n){n=h.makeArray(n);var u=this.getItems(n);p.call(this,n);var c=u&&u.length;if(c)for(var g=0;c>g;g++){var L=u[g];h.removeFrom(this.filteredItems,L)}},e.prototype.shuffle=function(){for(var n=0,u=this.items.length;u>n;n++){var c=this.items[n];c.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},e.prototype._noTransition=function(n){var u=this.options.transitionDuration;this.options.transitionDuration=0;var c=n.call(this);return this.options.transitionDuration=u,c},e.prototype.getFilteredItemElements=function(){for(var n=[],u=0,c=this.filteredItems.length;c>u;u++)n.push(this.filteredItems[u].element);return n},e})});export default D();