!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Popper=e()}(this,function(){"use strict";function t(t){return t&&"[object Function]"===({}).toString.call(t)}function e(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function n(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function o(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var s=e(t),r=s.overflow,a=s.overflowX,l=s.overflowY;return/(auto|scroll|overlay)/.test(r+l+a)?t:o(n(t))}function s(t){return t&&t.referenceNode?t.referenceNode:t}function r(t){return 11===t?F:10===t?j:F||j}function a(t){if(!t)return document.documentElement;for(var n=r(10)?document.body:null,o=t.offsetParent||null;o===n&&t.nextElementSibling;)o=(t=t.nextElementSibling).offsetParent;var s=o&&o.nodeName;return s&&"BODY"!==s&&"HTML"!==s?-1!==["TH","TD","TABLE"].indexOf(o.nodeName)&&"static"===e(o,"position")?a(o):o:t?t.ownerDocument.documentElement:document.documentElement}function l(t){return null===t.parentNode?t:l(t.parentNode)}function f(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var n,o,s=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=s?t:e,h=s?e:t,c=document.createRange();c.setStart(r,0),c.setEnd(h,0);var d=c.commonAncestorContainer;if(t!==d&&e!==d||r.contains(h))return"BODY"!==(o=(n=d).nodeName)&&("HTML"===o||a(n.firstElementChild)===n)?d:a(d);var p=l(t);return p.host?f(p.host,e):f(t,l(e).host)}function h(t){var e=1=n.clientWidth&&o>=n.clientHeight}),c=0h[t]&&!e.escapeWithReference&&(o=R(d[n],h[t]-("right"===t?d.width:d.height))),q({},n,o)}};return c.forEach(function(t){d=X({},d,p[-1===["left","top"].indexOf(t)?"secondary":"primary"](t))}),t.offsets.popper=d,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,o=e.reference,s=t.placement.split("-")[0],r=W,a=-1!==["top","bottom"].indexOf(s),l=a?"right":"bottom",f=a?"left":"top";return n[l]r(o[l])&&(t.offsets.popper[f]=r(o[l])),t}},arrow:{order:500,enabled:!0,fn:function(t,n){if(!I(t.instance.modifiers,"arrow","keepTogether"))return t;var o,s=n.element;if("string"==typeof s){if(!(s=t.instance.popper.querySelector(s)))return t}else if(!t.instance.popper.contains(s))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var r=t.placement.split("-")[0],a=t.offsets,l=a.popper,f=a.reference,h=-1!==["left","right"].indexOf(r),c=h?"height":"width",d=h?"Top":"Left",p=d.toLowerCase(),m=h?"bottom":"right",g=_(s)[c];f[m]-gl[m]&&(t.offsets.popper[p]+=f[p]+g-l[m]),t.offsets.popper=u(t.offsets.popper);var v=f[p]+f[c]/2-g/2,b=e(t.instance.popper),y=parseFloat(b["margin"+d]),w=parseFloat(b["border"+d+"Width"]),x=v-t.offsets.popper[p]-y-w;return x=M(R(l[c]-g,x),0),t.arrowElement=s,t.offsets.arrow=(q(o={},p,N(x)),q(o,h?"left":"top",""),o),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(E(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var n=b(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),o=t.placement.split("-")[0],s=x(o),r=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case tt.FLIP:a=[o,s];break;case tt.CLOCKWISE:a=P(o);break;case tt.COUNTERCLOCKWISE:a=P(o,!0);break;default:a=e.behavior}return a.forEach(function(l,f){if(o!==l||a.length===f+1)return t;s=x(o=t.placement.split("-")[0]);var h,c=t.offsets.popper,d=t.offsets.reference,p=W,u="left"===o&&p(c.right)>p(d.left)||"right"===o&&p(c.left)p(d.top)||"bottom"===o&&p(c.top)p(n.right),v=p(c.top)p(n.bottom),y="left"===o&&m||"right"===o&&g||"top"===o&&v||"bottom"===o&&b,w=-1!==["top","bottom"].indexOf(o),_=!!e.flipVariations&&(w&&"start"===r&&m||w&&"end"===r&&g||!w&&"start"===r&&v||!w&&"end"===r&&b),A=!!e.flipVariationsByContent&&(w&&"start"===r&&g||w&&"end"===r&&m||!w&&"start"===r&&b||!w&&"end"===r&&v),S=_||A;(u||y||S)&&(t.flipped=!0,(u||y)&&(o=a[f+1]),S&&(r="end"===(h=r)?"start":"start"===h?"end":h),t.placement=o+(r?"-"+r:""),t.offsets.popper=X({},t.offsets.popper,C(t.instance.popper,t.offsets.reference,t.placement)),t=k(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],o=t.offsets,s=o.popper,r=o.reference,a=-1!==["left","right"].indexOf(n),l=-1===["top","left"].indexOf(n);return s[a?"left":"top"]=r[n]-(l?s[a?"width":"height"]:0),t.placement=x(e),t.offsets.popper=u(s),t}},hide:{order:800,enabled:!0,fn:function(t){if(!I(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=A(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottomn.right||e.top>n.bottom||e.rightwindow.devicePixelRatio||!J,r=(s=n.offsets).popper,l=s.reference,f=N,h=function(t){return t},c=f(l.width),d=f(r.width),p=-1!==["left","right"].indexOf(n.placement),u=-1!==n.placement.indexOf("-"),g=o?p||u||c%2==d%2?f:W:h,v=o?f:h,{left:g(1==c%2&&1==d%2&&!u&&o?r.left-1:r.left),top:v(r.top),bottom:v(r.bottom),right:g(r.right)}),O="bottom"===b?"top":"bottom",H="right"===y?"left":"right",D=L("transform");(C="bottom"==O?"HTML"===S.nodeName?-S.clientHeight+z.bottom:-E.height+z.bottom:z.top,x="right"==H?"HTML"===S.nodeName?-S.clientWidth+z.right:-E.width+z.right:z.left,k&&D)?(B[D]="translate3d("+x+"px, "+C+"px, 0)",B[O]=0,B[H]=0,B.willChange="transform"):(B[O]=C*("bottom"==O?-1:1),B[H]=x*("right"==H?-1:1),B.willChange=O+", "+H);var T={"x-placement":t.placement};return t.attributes=X({},T,t.attributes),t.styles=X({},B,t.styles),t.arrowStyles=X({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){return T(t.instance.popper,t.styles),function t(e,n){Object.keys(n).forEach(function(t){!1===n[t]?e.removeAttribute(t):e.setAttribute(t,n[t])})}(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&T(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,o,s){var r=w(s,e,t,n.positionFixed),a=y(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),T(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},te}),function(t,e,n){"use strict";var o,s,r,a=t.document,l=t.Modernizr,f=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},h="Moz Webkit O Ms".split(" "),c=function(t){var e,n=a.documentElement.style;if("string"==typeof n[t])return t;t=f(t);for(var o=0,s=h.length;s>o;o++)if("string"==typeof n[e=h[o]+t])return e},d=c("transform"),p=c("transitionProperty"),u={csstransforms:function(){return!!d},csstransforms3d:function(){var t=!!c("perspective");if(t){var n=e("").appendTo("head"),o=e('
').appendTo("html");t=3===o.height(),o.remove(),n.remove()}return t},csstransitions:function(){return!!p}};if(l)for(o in u)l.hasOwnProperty(o)||l.addTest(o,u[o]);else{l=t.Modernizr={_version:"1.6ish: miniModernizr for Isotope"};var m,g=" ";for(o in u)m=u[o](),l[o]=m,g+=" "+(m?"":"no-")+o;e("html").addClass(g)}if(l.csstransforms){var v=l.csstransforms3d?{translate:function(t){return"translate3d("+t[0]+"px, "+t[1]+"px, 0) "},scale:function(t){return"scale3d("+t+", "+t+", 1) "}}:{translate:function(t){return"translate("+t[0]+"px, "+t[1]+"px) "},scale:function(t){return"scale("+t+") "}},b=function(t,n,o){var s,r,a=e.data(t,"isoTransform")||{},l={},f={};for(s in l[n]=o,e.extend(a,l),a)r=a[s],f[s]=v[s](r);var h=(f.translate||"")+(f.scale||"");e.data(t,"isoTransform",a),t.style[d]=h};e.cssNumber.scale=!0,e.cssHooks.scale={set:function(t,e){b(t,"scale",e)},get:function(t,n){var o=e.data(t,"isoTransform");return o&&o.scale?o.scale:1}},e.fx.step.scale=function(t){e.cssHooks.scale.set(t.elem,t.now+t.unit)},e.cssNumber.translate=!0,e.cssHooks.translate={set:function(t,e){b(t,"translate",e)},get:function(t,n){var o=e.data(t,"isoTransform");return o&&o.translate?o.translate:[0,0]}}}l.csstransitions&&(s=({WebkitTransitionProperty:"webkitTransitionEnd",MozTransitionProperty:"transitionend",OTransitionProperty:"oTransitionEnd otransitionend",transitionProperty:"transitionend"})[p],r=c("transitionDuration"));var y,w=e.event,_=e.event.handle?"handle":"dispatch";w.special.smartresize={setup:function(){e(this).bind("resize",w.special.smartresize.handler)},teardown:function(){e(this).unbind("resize",w.special.smartresize.handler)},handler:function(t,e){var n=this,o=arguments;t.type="smartresize",y&&clearTimeout(y),y=setTimeout(function(){w[_].apply(n,o)},"execAsap"===e?0:100)}},e.fn.smartresize=function(t){return t?this.bind("smartresize",t):this.trigger("smartresize",["execAsap"])},e.Isotope=function(t,n,o){this.element=e(n),this._create(t),this._init(o)};var x=["width","height"],C=e(t);e.Isotope.settings={resizable:!0,layoutMode:"masonry",containerClass:"isotope",itemClass:"isotope-item",hiddenClass:"isotope-hidden",hiddenStyle:{opacity:0,scale:.001},visibleStyle:{opacity:1,scale:1},containerStyle:{position:"relative",overflow:"hidden"},animationEngine:"best-available",animationOptions:{queue:!1,duration:800},sortBy:"original-order",sortAscending:!0,resizesContainer:!0,transformsEnabled:!0,itemPositionDataEnabled:!1},e.Isotope.prototype={_create:function(t){this.options=e.extend({},e.Isotope.settings,t),this.styleQueue=[],this.elemCount=0;var n=this.element[0].style;this.originalStyle={};var o=x.slice(0);for(var s in this.options.containerStyle)o.push(s);for(var r=0,a=o.length;a>r;r++)s=o[r],this.originalStyle[s]=n[s]||"";this.element.css(this.options.containerStyle),this._updateAnimationEngine(),this._updateUsingTransforms(),this.options.getSortData=e.extend(this.options.getSortData,{"original-order":function(t,e){return e.elemCount++,e.elemCount},random:function(){return Math.random()}}),this.reloadItems(),this.offset={left:parseInt(this.element.css("padding-left")||0,10),top:parseInt(this.element.css("padding-top")||0,10)};var l=this;setTimeout(function(){l.element.addClass(l.options.containerClass)},0),this.options.resizable&&C.bind("smartresize.isotope",function(){l.resize()}),this.element.delegate("."+this.options.hiddenClass,"click",function(){return!1})},_getAtoms:function(t){var e=this.options.itemSelector,n=e?t.filter(e).add(t.find(e)):t,o={position:"absolute"};return n=n.filter(function(t,e){return 1===e.nodeType}),this.usingTransforms&&(o.left=0,o.top=0),n.css(o).addClass(this.options.itemClass),this.updateSortData(n,!0),n},_init:function(t){this.$filteredAtoms=this._filter(this.$allAtoms),this._sort(),this.reLayout(t)},option:function(t){var n;if(e.isPlainObject(t))for(var o in this.options=e.extend(!0,this.options,t),t)this[n="_update"+f(o)]&&this[n]()},_updateAnimationEngine:function(){var t;switch(this.options.animationEngine.toLowerCase().replace(/[ _\-]/g,"")){case"css":case"none":t=!1;break;case"jquery":t=!0;break;default:t=!l.csstransitions}this.isUsingJQueryAnimation=t,this._updateUsingTransforms()},_updateTransformsEnabled:function(){this._updateUsingTransforms()},_updateUsingTransforms:function(){var t=this.usingTransforms=this.options.transformsEnabled&&l.csstransforms&&l.csstransitions&&!this.isUsingJQueryAnimation;t||(delete this.options.hiddenStyle.scale,delete this.options.visibleStyle.scale),this.getPositionStyles=t?this._translate:this._positionAbs},_filter:function(t){var e=""===this.options.filter?"*":this.options.filter;if(!e)return t;var n=this.options.hiddenClass,o="."+n,s=t.filter(o),r=s;if("*"!==e){r=s.filter(e);var a=t.not(o).not(e).addClass(n);this.styleQueue.push({$el:a,style:this.options.hiddenStyle})}return this.styleQueue.push({$el:r,style:this.options.visibleStyle}),r.removeClass(n),t.filter(e)},updateSortData:function(t,n){var o,s,r=this,a=this.options.getSortData;t.each(function(){for(var t in o=e(this),s={},a)s[t]=n||"original-order"!==t?a[t](o,r):e.data(this,"isotope-sort-data")[t];e.data(this,"isotope-sort-data",s)})},_sort:function(){var t=this.options.sortBy,e=this._getSorter,n=this.options.sortAscending?1:-1;this.$filteredAtoms.sort(function(o,s){var r=e(o,t),a=e(s,t);return r===a&&"original-order"!==t&&(r=e(o,"original-order"),a=e(s,"original-order")),(r>a?1:a>r?-1:0)*n})},_getSorter:function(t,n){return e.data(t,"isotope-sort-data")[n]},_translate:function(t,e){return{translate:[t,e]}},_positionAbs:function(t,e){return{left:t,top:e}},_pushPosition:function(t,e,n){e=Math.round(e+this.offset.left),n=Math.round(n+this.offset.top);var o=this.getPositionStyles(e,n);this.styleQueue.push({$el:t,style:o}),this.options.itemPositionDataEnabled&&t.data("isotope-item-position",{x:e,y:n})},layout:function(t,e){var n=this.options.layoutMode;if(this["_"+n+"Layout"](t),this.options.resizesContainer){var o=this["_"+n+"GetContainerSize"]();this.styleQueue.push({$el:this.element,style:o})}this._processStyleQueue(t,e),this.isLaidOut=!0},_processStyleQueue:function(t,n){var o,a,f,h,c=this.isLaidOut&&this.isUsingJQueryAnimation?"animate":"css",d=this.options.animationOptions,p=this.options.onLayout;if(a=function(t,e){e.$el[c](e.style,d)},this._isInserting&&this.isUsingJQueryAnimation)a=function(t,e){o=e.$el.hasClass("no-transition")?"css":c,e.$el[o](e.style,d)};else if(n||p||d.complete){var u=!1,m=[n,p,d.complete],g=this;if(f=!0,h=function(){if(!u){for(var e,n=0,o=m.length;o>n;n++)"function"==typeof(e=m[n])&&e.call(g.element,t,g);u=!0}},this.isUsingJQueryAnimation&&"animate"===c)d.complete=h,f=!1;else if(l.csstransitions){for(var v,b=0,y=this.styleQueue[0],w=y&&y.$el;!w||!w.length;){if(!(v=this.styleQueue[b++]))return;w=v.$el}parseFloat(getComputedStyle(w[0])[r])>0&&(a=function(t,e){e.$el[c](e.style,d).one(s,h)},f=!1)}}e.each(this.styleQueue,a),f&&h(),this.styleQueue=[]},resize:function(){this["_"+this.options.layoutMode+"ResizeChanged"]()&&this.reLayout()},reLayout:function(t){this["_"+this.options.layoutMode+"Reset"](),this.layout(this.$filteredAtoms,t)},addItems:function(t,e){var n=this._getAtoms(t);this.$allAtoms=this.$allAtoms.add(n),e&&e(n)},insert:function(t,e){this.element.append(t);var n=this;this.addItems(t,function(t){var o=n._filter(t);n._addHideAppended(o),n._sort(),n.reLayout(),n._revealAppended(o,e)})},appended:function(t,e){var n=this;this.addItems(t,function(t){n._addHideAppended(t),n.layout(t),n._revealAppended(t,e)})},_addHideAppended:function(t){this.$filteredAtoms=this.$filteredAtoms.add(t),t.addClass("no-transition"),this._isInserting=!0,this.styleQueue.push({$el:t,style:this.options.hiddenStyle})},_revealAppended:function(t,e){var n=this;setTimeout(function(){t.removeClass("no-transition"),n.styleQueue.push({$el:t,style:n.options.visibleStyle}),n._isInserting=!1,n._processStyleQueue(t,e)},10)},reloadItems:function(){this.$allAtoms=this._getAtoms(this.element.children())},remove:function(t,e){this.$allAtoms=this.$allAtoms.not(t),this.$filteredAtoms=this.$filteredAtoms.not(t);var n=this,o=function(){t.remove(),e&&e.call(n.element)};t.filter(":not(."+this.options.hiddenClass+")").length?(this.styleQueue.push({$el:t,style:this.options.hiddenStyle}),this._sort(),this.reLayout(o)):o()},shuffle:function(t){this.updateSortData(this.$allAtoms),this.options.sortBy="random",this._sort(),this.reLayout(t)},destroy:function(){var t=this.usingTransforms,e=this.options;this.$allAtoms.removeClass(e.hiddenClass+" "+e.itemClass).each(function(){var e=this.style;e.position="",e.top="",e.left="",e.opacity="",t&&(e[d]="")});var n=this.element[0].style;for(var o in this.originalStyle)n[o]=this.originalStyle[o];this.element.unbind(".isotope").undelegate("."+e.hiddenClass,"click").removeClass(e.containerClass).removeData("isotope"),C.unbind(".isotope")},_getSegments:function(t){var e,n=this.options.layoutMode,o=t?"rowHeight":"columnWidth",s=t?"height":"width",r=t?"rows":"cols",a=this.element[s](),l=this.options[n]&&this.options[n][o]||this.$filteredAtoms["outer"+f(s)](!0)||a;e=Math.max(e=Math.floor(a/l),1),this[n][r]=e,this[n][o]=l},_checkIfSegmentsChanged:function(t){var e=this.options.layoutMode,n=t?"rows":"cols",o=this[e][n];return this._getSegments(t),this[e][n]!==o},_masonryReset:function(){this.masonry={},this._getSegments();var t=this.masonry.cols;for(this.masonry.colYs=[];t--;)this.masonry.colYs.push(0)},_masonryLayout:function(t){var n=this,o=n.masonry;t.each(function(){var t=e(this),s=Math.ceil(t.outerWidth(!0)/o.columnWidth);if(1===(s=Math.min(s,o.cols)))n._masonryPlaceBrick(t,o.colYs);else{var r,a,l=o.cols+1-s,f=[];for(a=0;l>a;a++)r=o.colYs.slice(a,a+s),f[a]=Math.max.apply(Math,r);n._masonryPlaceBrick(t,f)}})},_masonryPlaceBrick:function(t,e){for(var n=Math.min.apply(Math,e),o=0,s=0,r=e.length;r>s;s++)if(e[s]===n){o=s;break}var a=this.masonry.columnWidth*o;this._pushPosition(t,a,n);var l=n+t.outerHeight(!0),f=this.masonry.cols+1-r;for(s=0;f>s;s++)this.masonry.colYs[o+s]=l},_masonryGetContainerSize:function(){return{height:Math.max.apply(Math,this.masonry.colYs)}},_masonryResizeChanged:function(){return this._checkIfSegmentsChanged()},_fitRowsReset:function(){this.fitRows={x:0,y:0,height:0}},_fitRowsLayout:function(t){var n=this,o=this.element.width(),s=this.fitRows;t.each(function(){var t=e(this),r=t.outerWidth(!0),a=t.outerHeight(!0);0!==s.x&&r+s.x>o&&(s.x=0,s.y=s.height),n._pushPosition(t,s.x,s.y),s.height=Math.max(s.y+a,s.height),s.x+=r})},_fitRowsGetContainerSize:function(){return{height:this.fitRows.height}},_fitRowsResizeChanged:function(){return!0},_cellsByRowReset:function(){this.cellsByRow={index:0},this._getSegments(),this._getSegments(!0)},_cellsByRowLayout:function(t){var n=this,o=this.cellsByRow;t.each(function(){var t=e(this),s=o.index%o.cols,r=Math.floor(o.index/o.cols),a=(s+.5)*o.columnWidth-t.outerWidth(!0)/2,l=(r+.5)*o.rowHeight-t.outerHeight(!0)/2;n._pushPosition(t,a,l),o.index++})},_cellsByRowGetContainerSize:function(){return{height:Math.ceil(this.$filteredAtoms.length/this.cellsByRow.cols)*this.cellsByRow.rowHeight+this.offset.top}},_cellsByRowResizeChanged:function(){return this._checkIfSegmentsChanged()},_straightDownReset:function(){this.straightDown={y:0}},_straightDownLayout:function(t){var n=this;t.each(function(t){var o=e(this);n._pushPosition(o,0,n.straightDown.y),n.straightDown.y+=o.outerHeight(!0)})},_straightDownGetContainerSize:function(){return{height:this.straightDown.y}},_straightDownResizeChanged:function(){return!0},_masonryHorizontalReset:function(){this.masonryHorizontal={},this._getSegments(!0);var t=this.masonryHorizontal.rows;for(this.masonryHorizontal.rowXs=[];t--;)this.masonryHorizontal.rowXs.push(0)},_masonryHorizontalLayout:function(t){var n=this,o=n.masonryHorizontal;t.each(function(){var t=e(this),s=Math.ceil(t.outerHeight(!0)/o.rowHeight);if(1===(s=Math.min(s,o.rows)))n._masonryHorizontalPlaceBrick(t,o.rowXs);else{var r,a,l=o.rows+1-s,f=[];for(a=0;l>a;a++)r=o.rowXs.slice(a,a+s),f[a]=Math.max.apply(Math,r);n._masonryHorizontalPlaceBrick(t,f)}})},_masonryHorizontalPlaceBrick:function(t,e){for(var n=Math.min.apply(Math,e),o=0,s=0,r=e.length;r>s;s++)if(e[s]===n){o=s;break}var a=this.masonryHorizontal.rowHeight*o;this._pushPosition(t,n,a);var l=n+t.outerWidth(!0),f=this.masonryHorizontal.rows+1-r;for(s=0;f>s;s++)this.masonryHorizontal.rowXs[o+s]=l},_masonryHorizontalGetContainerSize:function(){return{width:Math.max.apply(Math,this.masonryHorizontal.rowXs)}},_masonryHorizontalResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_fitColumnsReset:function(){this.fitColumns={x:0,y:0,width:0}},_fitColumnsLayout:function(t){var n=this,o=this.element.height(),s=this.fitColumns;t.each(function(){var t=e(this),r=t.outerWidth(!0),a=t.outerHeight(!0);0!==s.y&&a+s.y>o&&(s.x=s.width,s.y=0),n._pushPosition(t,s.x,s.y),s.width=Math.max(s.x+r,s.width),s.y+=a})},_fitColumnsGetContainerSize:function(){return{width:this.fitColumns.width}},_fitColumnsResizeChanged:function(){return!0},_cellsByColumnReset:function(){this.cellsByColumn={index:0},this._getSegments(),this._getSegments(!0)},_cellsByColumnLayout:function(t){var n=this,o=this.cellsByColumn;t.each(function(){var t=e(this),s=Math.floor(o.index/o.rows),r=o.index%o.rows,a=(s+.5)*o.columnWidth-t.outerWidth(!0)/2,l=(r+.5)*o.rowHeight-t.outerHeight(!0)/2;n._pushPosition(t,a,l),o.index++})},_cellsByColumnGetContainerSize:function(){return{width:Math.ceil(this.$filteredAtoms.length/this.cellsByColumn.rows)*this.cellsByColumn.columnWidth}},_cellsByColumnResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_straightAcrossReset:function(){this.straightAcross={x:0}},_straightAcrossLayout:function(t){var n=this;t.each(function(t){var o=e(this);n._pushPosition(o,n.straightAcross.x,0),n.straightAcross.x+=o.outerWidth(!0)})},_straightAcrossGetContainerSize:function(){return{width:this.straightAcross.x}},_straightAcrossResizeChanged:function(){return!0}},e.fn.imagesLoaded=function(t){function n(){t.call(o,s)}var o=this,s=o.find("img").add(o.filter("img")),r=s.length,a="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",l=[];return r||n(),s.bind("load.imagesLoaded error.imagesLoaded",function t(o){var f=o.target;f.src!==a&&-1===e.inArray(f,l)&&(l.push(f),--r<=0&&(setTimeout(n),s.unbind(".imagesLoaded",t)))}).each(function(){var t=this.src;this.src=a,this.src=t}),o};var A=function(e){t.console&&t.console.error(e)};e.fn.isotope=function(t,n){if("string"==typeof t){var o=Array.prototype.slice.call(arguments,1);this.each(function(){var n=e.data(this,"isotope");return n?e.isFunction(n[t])&&"_"!==t.charAt(0)?void n[t].apply(n,o):void A("no such method '"+t+"' for isotope instance"):void A("cannot call methods on isotope prior to initialization; attempted to call method '"+t+"'")})}else this.each(function(){var o=e.data(this,"isotope");o?(o.option(t),o._init(n)):e.data(this,"isotope",new e.Isotope(t,this,n))});return this}}(window,jQuery);let web_list=null,local_web_list=localStorage.getItem("web_list"),local_web_list_md5=localStorage.getItem("web_list_md5");local_web_list_md5&&local_web_list?web_list=JSON.parse(local_web_list):($.ajaxSettings.async=!1,$.getJSON("static/site/js/web.json",function(t){web_list=t,localStorage.setItem("web_list",JSON.stringify(t)),localStorage.setItem("web_list_md5",JSON.stringify("2020-01-01 00:00:00"))}),$.ajaxSettings.async=!0);let i=0,web_list_html="";for(i in web_list){"捏脸"==web_list[i].title&&(web_list_html+=`

LKs网页推荐站

实用

`);let t=`${web_list[i].kind}_${web_list[i].id}`;$(window).width()>=768?web_list_html+=`

${web_list[i].title}

${web_list[i].kind_name}

`:web_list_html+=`

${web_list[i].title}

${web_list[i].kind_name}

`}$(".web-list").html(web_list_html),$(".copyrights").removeClass("hide");let $grid=$(".web-list").isotope({itemSelector:".web-grid",getSortData:getSortData()});function getSortData(){sortData={};var t=["like-num-sort"];for(var e in t)sortData[t[e]]=function(n){return parseInt(n.find("."+t[e]).text())};return sortData}$(".section-title>span").click(()=>{window.location.reload()}),$(".web-grid-phone").click(function(){let t=$(this).find("p>.like-num").text(),e=$(this).attr("id");$(".back-modal").stop().fadeIn(300),$(".phone-modal").stop().fadeIn(300),$(".phone-modal").find("h3").text($(this).find("span div h2").text()),$(".phone-modal").find(".slogan span").text($(this).find("span div").attr("data-content")),$(".phone-modal").find(".go-url").attr("href",$(this).find("span").attr("href")),$(".phone-modal").find(".like-num").text(t),$(".phone-modal").find(".iconfont").removeClass("like_flag"),$(".phone-modal").find(".like-num").removeClass("like_flag"),$(".phone-modal").find(".iconfont").addClass(localStorage.getItem(e)),$(".phone-modal").find(".like-num").addClass(localStorage.getItem(e)),$(".phone-modal .hide-modal").attr("web_grid",$(this).attr("id"))}),$(".phone-modal .go-url").click(()=>{$(".phone-modal").stop().fadeOut(300),$(".back-modal").stop().fadeOut(300)}),$(".back-modal").click(()=>{$(".phone-modal").stop().fadeOut(300),$(".back-modal").stop().fadeOut(300)});let video_list=[["av3743771","bvid=BV11s411X7u5"],["av9856372","bvid=BV1Nx411D78D"],["av27234784","bvid=BV1fs411E7ht"],["av66209341","bvid=BV1M4411m7Mz"],["BV1a741137NS","bvid=BV1a741137NS"],["BV1wv411y7L6","bvid=BV1wv411y7L6"],["BV1bU4y1x7A1","bvid=BV1bU4y1x7A1"],["BV1qQ4y1r7ty","bvid=BV1qQ4y1r7ty"],["BV1ju411X7Zm","bvid=BV1ju411X7Zm"],["BV1HB4y1n7nS","bvid=BV1HB4y1n7nS"],];localStorage.getItem("is_show_bilibili")||localStorage.setItem("is_show_bilibili",0),$(".web-menu").on("click","button:eq(0), .period, .btn_star",function(){let t=$(this).attr("num");if("0"===t)$(".bilibili_iframe").css("display","none"),$("iframe").attr("src",""),$(".group-video").html(`B站博主 -LKs- 《良心到难以置信的网站推荐》`);else if("0"!=t&&!$(this).hasClass("active")){$(".group-video").html(`视频传送门:${video_list[Number(t)-1][0]}   `);let e=()=>{$(".bilibili_iframe").css("display","block"),$(".show_bilibili").html('关闭'),$("iframe").attr("src",`//player.bilibili.com/player.html?${video_list[Number(t)-1][1]}&page=1`)},n=()=>{$(".bilibili_iframe").css("display","none"),$(".show_bilibili").html('预览'),$("iframe").attr("src","")};1==localStorage.getItem("is_show_bilibili")?e():n(),$(".show_bilibili").click(()=>{1==localStorage.getItem("is_show_bilibili")?(localStorage.setItem("is_show_bilibili",0),n()):(localStorage.setItem("is_show_bilibili",1),e())})}$(this).addClass("active").siblings().removeClass("active"),$grid.isotope({filter:$(this).attr("data-filter")}),setTimeout(()=>{$(".copyrights").css("position","relative")},10)});let $scroll_to_top=$("#scroll-to-top"),$dmtop=$(".dmtop");$(window).scroll(()=>{100>$(window).scrollTop()?$dmtop.removeClass("show"):$dmtop.addClass("show")}),$scroll_to_top.click(function(t){t.preventDefault(),$("html,body").animate({scrollTop:0},700)}),window.onresize=()=>{$(window).width()>=768?$grid.isotope({filter:$(".web-menu button.active").attr("data-filter")}):$(".services-inner-box").unbind("mouseenter").unbind("mouseleave")},768>$(window).width()&&setTimeout(()=>{$(".services-inner-box").unbind("mouseenter").unbind("mouseleave")},300),setTimeout(()=>{$(".modal-body img").attr("src","static/site/img/lks.png")},300),$(".github_lks_btn").click(()=>{window.open("https://github.com/xiangjianan/lks/")}),$(".btn_toogle").click(function(){$(".web-menu button:eq(0)").click(),$(this).hasClass("is_period")?($(this).removeClass("is_period"),$(".period").css("display","none"),$(".category").css("display","inline-block")):($(this).addClass("is_period"),$(".period").css("display","inline-block"),$(".category").css("display","none")),setTimeout(()=>{$(".copyrights").css("position","relative"),$(".web-menu button").eq(0).addClass("active").siblings().removeClass("active")},10)}),$(".category").click(function(){let t=$(this).text();$(this).addClass("active").siblings().removeClass("active"),$(".web-list .web-grid").removeClass("filter_web"),$(".web-list .web-grid").each(function(){-1!=$(this).find(".web-single p").text().toUpperCase().search(t)&&$(this).addClass("filter_web")}),$grid.isotope({filter:".filter_web"}),set_footer()});let set_footer=()=>{$(".web-list .web-grid.filter_web").length<=9?$(".copyrights").css("position","absolute"):$(".copyrights").css("position","relative")};