PageSourceSearch

https://www.lucasdebargue.com/wp-content/cache/minify/6e4d9.js

js lucasdebargue.com collected 2026-10-05 21:33:35 UTC 470,946 bytes, 2,056 lines download raw bytes

vendor: 15,659 bytes, lines 1-8
1var cff_js_exists=void 0!==cff_js_exists;if(!cff_js_exists){function cffCommentAvatarAlt(t){return (t.find(".cff-name").first().text()||"").replace(/"/g,""")}
2        /*! Hammer.JS - v2.0.8 - 2016-04-23
3                * http://hammerjs.github.io/
4                *
5                * Copyright (c) 2016 Jorik Tangelder;
6                * Licensed under the MIT license
7                * */
8        if(void 0!==window.cff_block_editor&&(cffmetatrans=!1,cffajaxurl=window.cff_block_editor.cffajaxurl),"undefined"==typeof cffnomobileswipe)!function(t,e,i,n){"use strict";function a(t,e,i){return setTimeout(c(t,i),e)}function o(t,e,i){return!!Array.isArray(t)&&(s(t,i[e],i),!0)}function s(t,e,i){var a;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==n)for(a=0;a<t.length;)e.call(i,t[a],a,t),a++;else for(a in t)t.hasOwnProperty(a)&&e.call(i,t[a],a,t)}function r(e,i,n){var a="DEPRECATED METHOD: "+i+"\n"+n+" AT \n";return function(){var i=new Error("get-stack-trace"),n=i&&i.stack?i.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=t.console&&(t.console.warn||t.console.log);return o&&o.call(t.console,a,n),e.apply(this,arguments)}}function f(t,e,i){var n,a=e.prototype;(n=t.prototype=Object.create(a)).constructor=t,n._super=a,i&&nt(n,i)}function c(t,e){return function(){return t.apply(e,arguments)}}function l(t,e){return typeof t==st?t.apply(e&&e[0]||n,e):t}function d(t,e){return t===n?e:t}function u(t,e,i){s(g(e),function(e){t.addEventListener(e,i,!1)})}function h(t,e,i){s(g(e),function(e){t.removeEventListener(e,i,!1)})}function m(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function p(t,e){return t.indexOf(e)>-1}function g(t){return t.trim().split(/\s+/g)}function v(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function b(t){return Array.prototype.slice.call(t,0)}function y(t,e,i){for(var n=[],a=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];v(a,s)<0&&n.push(t[o]),a[o]=s,o++}return i&&(n=e?n.sort(function(t,i){return t[e]>i[e]}):n.sort()),n}function w(t,e){for(var i,a,o=e[0].toUpperCase()+e.slice(1),s=0;s<at.length;){if((a=(i=at[s])?i+o:e)in t)return a;s++}return n}function x(e){var i=e.ownerDocument||e;return i.defaultView||i.parentWindow||t}function C(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){l(t.options.enable,[t])&&i.handler(e)},this.init()}function k(t,e,i){var n=i.pointers.length,a=i.changedPointers.length,o=e&yt&&n-a===0,s=e&(xt|Ct)&&n-a===0;i.isFirst=!!o,i.isFinal=!!s,o&&(t.session={}),i.eventType=e,function(t,e){var i=t.session,n=e.pointers,a=n.length;i.firstInput||(i.firstInput=I(e)),a>1&&!i.firstMultiple?i.firstMultiple=I(e):1===a&&(i.firstMultiple=!1);var o=i.firstInput,s=i.firstMultiple,r=s?s.center:o.center,f=e.center=A(n);e.timeStamp=ct(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=j(r,f),e.distance=T(r,f),function(t,e){var i=e.center,n=t.offsetDelta||{},a=t.prevDelta||{},o=t.prevInput||{};e.eventType!==yt&&o.eventType!==xt||(a=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=a.x+(i.x-n.x),e.deltaY=a.y+(i.y-n.y)}(i,e),e.offsetDirection=E(e.deltaX,e.deltaY);var c=z(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=ft(c.x)>ft(c.y)?c.x:c.y,e.scale=s?function(t,e){return T(e[0],e[1],Dt)/T(t[0],t[1],Dt)}(s.pointers,n):1,e.rotation=s?function(t,e){return j(e[1],e[0],Dt)+j(t[1],t[0],Dt)}(s.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,_(i,e);var l=t.element;m(e.srcEvent.target,l)&&(l=e.srcEvent.target),e.target=l}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function _(t,e){var i,a,o,s,r=t.lastInterval||e,f=e.timeStamp-r.timeStamp;if(e.eventType!=Ct&&(f>bt||r.velocity===n)){var c=e.deltaX-r.deltaX,l=e.deltaY-r.deltaY,d=z(f,c,l);a=d.x,o=d.y,i=ft(d.x)>ft(d.y)?d.x:d.y,s=E(c,l),t.lastInterval=e}else i=r.velocity,a=r.velocityX,o=r.velocityY,s=r.direction;e.velocity=i,e.velocityX=a,e.velocityY=o,e.direction=s}function I(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:rt(t.pointers[i].clientX),clientY:rt(t.pointers[i].clientY)},i++;return{timeStamp:ct(),pointers:e,center:A(e),deltaX:t.deltaX,deltaY:t.deltaY}}function A(t){var e=t.length;if(1===e)return{x:rt(t[0].clientX),y:rt(t[0].clientY)};for(var i=0,n=0,a=0;e>a;)i+=t[a].clientX,n+=t[a].clientY,a++;return{x:rt(i/e),y:rt(n/e)}}function z(t,e,i){return{x:e/t||0,y:i/t||0}}function E(t,e){return t===e?kt:ft(t)>=ft(e)?0>t?_t:It:0>e?At:zt}function T(t,e,i){i||(i=Ft);var n=e[i[0]]-t[i[0]],a=e[i[1]]-t[i[1]];return Math.sqrt(n*n+a*a)}function j(t,e,i){i||(i=Ft);var n=e[i[0]]-t[i[0]],a=e[i[1]]-t[i[1]];return 180*Math.atan2(a,n)/Math.PI}function F(){this.evEl=St,this.evWin=Lt,this.pressed=!1,C.apply(this,arguments)}function D(){this.evEl=Rt,this.evWin=Mt,C.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function B(){this.evTarget=qt,this.evWin=Nt,this.started=!1,C.apply(this,arguments)}function S(t,e){var i=b(t.touches),n=b(t.changedTouches);return e&(xt|Ct)&&(i=y(i.concat(n),"identifier",!0)),[i,n]}function L(){this.evTarget=$t,this.targetIds={},C.apply(this,arguments)}function Q(t,e){var i=b(t.touches),n=this.targetIds;if(e&(yt|wt)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var a,o,s=b(t.changedTouches),r=[],f=this.target;if(o=i.filter(function(t){return m(t.target,f)}),e===yt)for(a=0;a<o.length;)n[o[a].identifier]=!0,a++;for(a=0;a<s.length;)n[s[a].identifier]&&r.push(s[a]),e&(xt|Ct)&&delete n[s[a].identifier],a++;return r.length?[y(o.concat(r),"identifier",!0),r]:void 0}function O(){C.apply(this,arguments);var t=c(this.handler,this);this.touch=new L(this.manager,t),this.mouse=new F(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function R(t,e){t&yt?(this.primaryTouch=e.changedPointers[0].identifier,M.call(this,e)):t&(xt|Ct)&&M.call(this,e)}function M(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY};this.lastTouches.push(i);var n=this.lastTouches;setTimeout(function(){var t=n.indexOf(i);t>-1&&n.splice(t,1)},Gt)}}function P(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var a=this.lastTouches[n],o=Math.abs(e-a.x),s=Math.abs(i-a.y);if(Ht>=o&&Ht>=s)return!0}return!1}function q(t,e){this.manager=t,this.set(e)}function N(t){this.options=nt({},this.defaults,t||{}),this.id=ut++,this.manager=null,this.options.enable=d(this.options.enable,!0),this.state=ie,this.simultaneous={},this.requireFail=[]}function W(t){return t&re?"cancel":t&oe?"end":t&ae?"move":t&ne?"start":""}function $(t){return t==zt?"down":t==At?"up":t==_t?"left":t==It?"right":""}function G(t,e){var i=e.manager;return i?i.get(t):t}function H(){N.apply(this,arguments)}function U(){H.apply(this,arguments),this.pX=null,this.pY=null}function Y(){H.apply(this,arguments)}function V(){N.apply(this,arguments),this._timer=null,this._input=null}function X(){H.apply(this,arguments)}function J(){H.apply(this,arguments)}function Z(){N.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function K(t,e){return(e=e||{}).recognizers=d(e.recognizers,K.defaults.preset),new tt(t,e)}function tt(t,e){this.options=nt({},K.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=function(t){return new(t.options.inputClass||(mt?D:pt?L:ht?O:F))(t,k)}(this),this.touchAction=new q(this,this.options.touchAction),et(this,!0),s(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function et(t,e){var i,n=t.element;n.style&&(s(t.options.cssProps,function(a,o){i=w(n.style,o),e?(t.oldCssProps[i]=n.style[i],n.style[i]=a):n.style[i]=t.oldCssProps[i]||""}),e||(t.oldCssProps={}))}function it(t,i){var n=e.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=i,i.target.dispatchEvent(n)}var nt,at=["","webkit","Moz","MS","ms","o"],ot=e.createElement("div"),st="function",rt=Math.round,ft=Math.abs,ct=Date.now;nt="function"!=typeof Object.assign?function(t){if(t===n||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var a=arguments[i];if(a!==n&&null!==a)for(var o in a)a.hasOwnProperty(o)&&(e[o]=a[o])}return e}:Object.assign;var lt=r(function(t,e,i){for(var a=Object.keys(e),o=0;o<a.length;)(!i||i&&t[a[o]]===n)&&(t[a[o]]=e[a[o]]),o++;return t},"extend","Use `assign`."),dt=r(function(t,e){return lt(t,e,!0)},"merge","Use `assign`."),ut=1,ht="ontouchstart"in t,mt=w(t,"PointerEvent")!==n,pt=ht&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),gt="touch",vt="mouse",bt=25,yt=1,wt=2,xt=4,Ct=8,kt=1,_t=2,It=4,At=8,zt=16,Et=_t|It,Tt=At|zt,jt=Et|Tt,Ft=["x","y"],Dt=["clientX","clientY"];C.prototype={handler:function(){},init:function(){this.evEl&&u(this.element,this.evEl,this.domHandler),this.evTarget&&u(this.target,this.evTarget,this.domHandler),this.evWin&&u(x(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&h(this.element,this.evEl,this.domHandler),this.evTarget&&h(this.target,this.evTarget,this.domHandler),this.evWin&&h(x(this.element),this.evWin,this.domHandler)}};var Bt={mousedown:yt,mousemove:wt,mouseup:xt},St="mousedown",Lt="mousemove mouseup";f(F,C,{handler:function(t){var e=Bt[t.type];e&yt&&0===t.button&&(this.pressed=!0),e&wt&&1!==t.which&&(e=xt),this.pressed&&(e&xt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:vt,srcEvent:t}))}});var Qt={pointerdown:yt,pointermove:wt,pointerup:xt,pointercancel:Ct,pointerout:Ct},Ot={2:gt,3:"pen",4:vt,5:"kinect"},Rt="pointerdown",Mt="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Rt="MSPointerDown",Mt="MSPointerMove MSPointerUp MSPointerCancel"),f(D,C,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),a=Qt[n],o=Ot[t.pointerType]||t.pointerType,s=o==gt,r=v(e,t.pointerId,"pointerId");a&yt&&(0===t.button||s)?0>r&&(e.push(t),r=e.length-1):a&(xt|Ct)&&(i=!0),0>r||(e[r]=t,this.callback(this.manager,a,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),i&&e.splice(r,1))}});var Pt={touchstart:yt,touchmove:wt,touchend:xt,touchcancel:Ct},qt="touchstart",Nt="touchstart touchmove touchend touchcancel";f(B,C,{handler:function(t){var e=Pt[t.type];if(e===yt&&(this.started=!0),this.started){var i=S.call(this,t,e);e&(xt|Ct)&&i[0].length-i[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:gt,srcEvent:t})}}});var Wt={touchstart:yt,touchmove:wt,touchend:xt,touchcancel:Ct},$t="touchstart touchmove touchend touchcancel";f(L,C,{handler:function(t){var e=Wt[t.type],i=Q.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:gt,srcEvent:t})}});var Gt=2500,Ht=25;f(O,C,{handler:function(t,e,i){var n=i.pointerType==gt,a=i.pointerType==vt;if(!(a&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(n)R.call(this,e,i);else if(a&&P.call(this,i))return;this.callback(t,e,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ut=w(ot.style,"touchAction"),Yt=Ut!==n,Vt="compute",Xt="auto",Jt="manipulation",Zt="none",Kt="pan-x",te="pan-y",ee=function(){if(!Yt)return!1;var e={},i=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){e[n]=!i||t.CSS.supports("touch-action",n)}),e}();q.prototype={set:function(t){t==Vt&&(t=this.compute()),Yt&&this.manager.element.style&&ee[t]&&(this.manager.element.style[Ut]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return s(this.manager.recognizers,function(e){l(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(p(t,Zt))return Zt;var e=p(t,Kt),i=p(t,te);return e&&i?Zt:e||i?e?Kt:te:p(t,Jt)?Jt:Xt}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,i=t.offsetDirection;if(!this.manager.session.prevented){var n=this.actions,a=p(n,Zt)&&!ee[Zt],o=p(n,te)&&!ee[te],s=p(n,Kt)&&!ee[Kt];if(a){var r=1===t.pointers.length,f=t.distance<2,c=t.deltaTime<250;if(r&&f&&c)return}return s&&o?void 0:a||o&&i&Et||s&&i&Tt?this.preventSrc(e):void 0}e.preventDefault()},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var ie=1,ne=2,ae=4,oe=8,se=oe,re=16,fe=32;N.prototype={defaults:{},set:function(t){return nt(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(o(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=G(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return o(t,"dropRecognizeWith",this)||(t=G(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(o(t,"requireFailure",this))return this;var e=this.requireFail;return-1===v(e,t=G(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(o(t,"dropRequireFailure",this))return this;t=G(t,this);var e=v(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){i.manager.emit(e,t)}var i=this,n=this.state;oe>n&&e(i.options.event+W(n)),e(i.options.event),t.additionalEvent&&e(t.additionalEvent),n>=oe&&e(i.options.event+W(n))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=fe)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(fe|ie)))return!1;t++}return!0},recognize:function(t){var e=nt({},t);return l(this.options.enable,[this,e])?(this.state&(se|re|fe)&&(this.state=ie),this.state=this.process(e),void(this.state&(ne|ae|oe|re)&&this.tryEmit(e))):(this.reset(),void(this.state=fe))},process:function(t){},getTouchAction:function(){},reset:function(){}},f(H,N,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,n=e&(ne|ae),a=this.attrTest(t);return n&&(i&Ct||!a)?e|re:n||a?i&xt?e|oe:e&ne?e|ae:ne:fe}}),f(U,H,{defaults:{event:"pan",threshold:10,pointers:1,direction:jt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Et&&e.push(te),t&Tt&&e.push(Kt),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,a=t.direction,o=t.deltaX,s=t.deltaY;return a&e.direction||(e.direction&Et?(a=0===o?kt:0>o?_t:It,i=o!=this.pX,n=Math.abs(t.deltaX)):(a=0===s?kt:0>s?At:zt,i=s!=this.pY,n=Math.abs(t.deltaY))),t.direction=a,i&&n>e.threshold&&a&e.direction},attrTest:function(t){return H.prototype.attrTest.call(this,t)&&(this.state&ne||!(this.state&ne)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=$(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),f(Y,H,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Zt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&ne)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),f(V,N,{defaults:{event:"press",pointers:1,time:251,threshold:9}
8,getTouchAction:function(){return[Xt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,o=t.deltaTime>e.time;if(this._input=t,!n||!i||t.eventType&(xt|Ct)&&!o)this.reset();else if(t.eventType&yt)this.reset(),this._timer=a(function(){this.state=se,this.tryEmit()},e.time,this);else if(t.eventType&xt)return se;return fe},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===se&&(t&&t.eventType&xt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=ct(),this.manager.emit(this.options.event,this._input)))}}),f(X,H,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Zt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&ne)}}),f(J,H,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Et|Tt,pointers:1},getTouchAction:function(){return U.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(Et|Tt)?e=t.overallVelocity:i&Et?e=t.overallVelocityX:i&Tt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&ft(e)>this.options.velocity&&t.eventType&xt},emit:function(t){var e=$(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),f(Z,N,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Jt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,o=t.deltaTime<e.time;if(this.reset(),t.eventType&yt&&0===this.count)return this.failTimeout();if(n&&o&&i){if(t.eventType!=xt)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<e.interval,r=!this.pCenter||T(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,r&&s?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=a(function(){this.state=se,this.tryEmit()},e.interval,this),ne):se}return fe},failTimeout:function(){return this._timer=a(function(){this.state=fe},this.options.interval,this),fe},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==se&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),K.VERSION="2.0.8",K.defaults={domEvents:!1,touchAction:Vt,enable:!0,inputTarget:null,inputClass:null,preset:[[X,{enable:!1}],[Y,{enable:!1},["rotate"]],[J,{direction:Et}],[U,{direction:Et},["swipe"]],[Z],[Z,{event:"doubletap",taps:2},["tap"]],[V]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},tt.prototype={set:function(t){return nt(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var i,n=this.recognizers,a=e.curRecognizer;(!a||a&&a.state&se)&&(a=e.curRecognizer=null);for(var o=0;o<n.length;)i=n[o],2===e.stopped||a&&i!=a&&!i.canRecognizeWith(a)?i.reset():i.recognize(t),!a&&i.state&(ne|ae|oe)&&(a=e.curRecognizer=i),o++}},get:function(t){if(t instanceof N)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(o(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(o(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,i=v(e,t);-1!==i&&(e.splice(i,1),this.touchAction.update())}return this},on:function(t,e){if(t!==n&&e!==n){var i=this.handlers;return s(g(t),function(t){i[t]=i[t]||[],i[t].push(e)}),this}},off:function(t,e){if(t!==n){var i=this.handlers;return s(g(t),function(t){e?i[t]&&i[t].splice(v(i[t],e),1):delete i[t]}),this}},emit:function(t,e){this.options.domEvents&&it(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var n=0;n<i.length;)i[n](e),n++}},destroy:function(){this.element&&et(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},nt(K,{INPUT_START:yt,INPUT_MOVE:wt,INPUT_END:xt,INPUT_CANCEL:Ct,STATE_POSSIBLE:ie,STATE_BEGAN:ne,STATE_CHANGED:ae,STATE_ENDED:oe,STATE_RECOGNIZED:se,STATE_CANCELLED:re,STATE_FAILED:fe,DIRECTION_NONE:kt,DIRECTION_LEFT:_t,DIRECTION_RIGHT:It,DIRECTION_UP:At,DIRECTION_DOWN:zt,DIRECTION_HORIZONTAL:Et,DIRECTION_VERTICAL:Tt,DIRECTION_ALL:jt,Manager:tt,Input:C,TouchAction:q,TouchInput:L,MouseInput:F,PointerEventInput:D,TouchMouseInput:O,SingleTouchInput:B,Recognizer:N,AttrRecognizer:H,Tap:Z,Pan:U,Swipe:J,Pinch:Y,Rotate:X,Press:V,on:u,off:h,each:s,merge:dt,extend:lt,assign:nt,inherit:f,bindFn:c,prefixed:w}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=K,"function"==typeof define&&define.amd?define(function(){return K}):"undefined"!=typeof module&&module.exports?module.exports=K:t.Hammer=K}(window,document),function(t){"function"==typeof define&&define.amd?define(["jquery","hammerjs"],t):"object"==typeof exports?t(require("jquery"),require("hammerjs")):t(jQuery,Hammer)}(function(t,e){var i;t.fn.hammer=function(i){return this.each(function(){!function(i,n){var a=t(i);a.data("hammer")||a.data("hammer",new e(a[0],n))}(this,i)})},e.Manager.prototype.emit=(i=e.Manager.prototype.emit,function(e,n){i.call(this,e,n),t(this.element).trigger({type:e,gesture:n})})});else{var Hammer={Manager:{prototype:{}}};!function(t){"function"==typeof define&&define.amd?define(["jquery","hammerjs"],t):"object"==typeof exports?t(require("jquery"),require("hammerjs")):t(jQuery,Hammer)}(function(t,e){var i;t.fn.hammer=function(t){return this.each(function(){})},e.Manager.prototype.emit=(i=e.Manager.prototype.emit,function(e,n){i.call(this,e,n),t(this.element).trigger({type:e,gesture:n})})})}function cffAddMasonry(t){var e=jQuery.Event("cffbeforemasonry");if(e.$self=t,jQuery(window).trigger(e),"function"==typeof t.masonry){var i=jQuery(window).width(),n=!1;i>800?t.hasClass("masonry-1-desktop")||(n=!0,t.addClass("cff-masonry cff-masonry-js").removeClass("cff-disable-masonry")):i>400?(t.hasClass("masonry-2-tablet")||t.hasClass("masonry-3-tablet")||t.hasClass("masonry-4-tablet")||t.hasClass("masonry-5-tablet")||t.hasClass("masonry-6-tablet"))&&(n=!0,t.addClass("cff-masonry cff-masonry-js").removeClass("cff-disable-masonry")):(t.hasClass("masonry-2-mobile")||t.hasClass("masonry-3-mobile"))&&(n=!0,t.addClass("cff-masonry cff-masonry-js").removeClass("cff-disable-masonry")),t.hasClass("cff-masonry")&&t.find(".cff
8-album-item a").removeAttr("style"),n&&(t.find(".cff-item").length?(window.cffMasonrySettings.itemSelector=".cff-new, .cff-item, .cff-likebox",t.find(".cff-posts-wrap").masonry(window.cffMasonrySettings),t.find(".cff-item").each(function(){jQuery(this).css("margin-bottom","15px")})):t.find(".cff-album-item").length&&(window.cffMasonrySettings.itemSelector=".cff-album-item, .cff-likebox",t.find(".cff-posts-wrap").masonry(window.cffMasonrySettings)))}}function Cff(){this.feeds={},this.options={}}function CffFeed(t,e,i){this.el=t,this.index=e,this.settings=i,this.resizedImages={},this.needsResizing=[],this.imagesWaiting=0}function CFFLocationGuess(t=!1){var e=0==t?jQuery(this.el):t,i="content";return e.closest("footer").length?i="footer":e.closest(".header").length||e.closest("header").length?i="header":(e.closest(".sidebar").length||e.closest("aside").length)&&(i="sidebar"),i}function cffAjax(t,e){jQuery.ajax({url:cffajaxurl,type:"post",data:t,success:e})}function cffCmplzGetCookie(t){for(var e=t+"=",i=window.document.cookie.split(";"),n=0;n<i.length;n++){var a=i[n].trim();if(0==a.indexOf(e))return a.substring(e.length,a.length)}return""}!function(t){function e(){}function i(t){function i(e){e.prototype.option||(e.prototype.option=function(e){t.isPlainObject(e)&&(this.options=t.extend(!0,this.options,e))})}function a(e,i){t.fn[e]=function(a){if("string"==typeof a){for(var s=n.call(arguments,1),r=0,f=this.length;f>r;r++){var c=this[r],l=t.data(c,e);if(l)if(t.isFunction(l[a])&&"_"!==a.charAt(0)){var d=l[a].apply(l,s);if(void 0!==d)return d}else o("no such method '"+a+"' for "+e+" instance");else o("cannot call methods on "+e+" prior to initialization; attempted to call '"+a+"'")}return this}return this.each(function(){var n=t.data(this,e);n?(n.option(a),n._init()):(n=new i(this,a),t.data(this,e,n))})}}if(t){var o="undefined"==typeof console?e:function(t){console.error(t)};return t.bridget=function(t,e){i(e),a(t,e)},t.bridget}}var n=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],i):i("object"==typeof exports?require("jquery"):t.jQuery)}(window),function(t){function e(e){var i=t.event;return i.target=i.target||i.srcElement||e,i}var i=document.documentElement,n=function(){};i.addEventListener?n=function(t,e,i){t.addEventListener(e,i,!1)}:i.attachEvent&&(n=function(t,i,n){t[i+n]=n.handleEvent?function(){var i=e(t);n.handleEvent.call(n,i)}:function(){var i=e(t);n.call(t,i)},t.attachEvent("on"+i,t[i+n])});var a=function(){};i.removeEventListener?a=function(t,e,i){t.removeEventListener(e,i,!1)}:i.detachEvent&&(a=function(t,e,i){t.detachEvent("on"+e,t[e+i]);try{delete t[e+i]}catch(n){t[e+i]=void 0}});var o={bind:n,unbind:a};"function"==typeof define&&define.amd?define("eventie/eventie",o):"object"==typeof exports?module.exports=o:t.eventie=o}(window),function(){function t(){}function e(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}function i(t){return function(){return this[t].apply(this,arguments)}}var n=t.prototype,a=this,o=a.EventEmitter;n.getListeners=function(t){var e,i,n=this._getEvents();if(t instanceof RegExp)for(i in e={},n)n.hasOwnProperty(i)&&t.test(i)&&(e[i]=n[i]);else e=n[t]||(n[t]=[]);return e},n.flattenListeners=function(t){var e,i=[];for(e=0;e<t.length;e+=1)i.push(t[e].listener);return i},n.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&((e={})[t]=i),e||i},n.addListener=function(t,i){var n,a=this.getListenersAsObject(t),o="object"==typeof i;for(n in a)a.hasOwnProperty(n)&&-1===e(a[n],i)&&a[n].push(o?i:{listener:i,once:!1});return this},n.on=i("addListener"),n.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},n.once=i("addOnceListener"),n.defineEvent=function(t){return this.getListeners(t),this},n.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},n.removeListener=function(t,i){var n,a,o=this.getListenersAsObject(t);for(a in o)o.hasOwnProperty(a)&&-1!==(n=e(o[a],i))&&o[a].splice(n,1);return this},n.off=i("removeListener"),n.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},n.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)}
8,n.manipulateListeners=function(t,e,i){var n,a,o=t?this.removeListener:this.addListener,s=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(n=i.length;n--;)o.call(this,e,i[n]);else for(n in e)e.hasOwnProperty(n)&&(a=e[n])&&("function"==typeof a?o.call(this,n,a):s.call(this,n,a));return this},n.removeEvent=function(t){var e,i=typeof t,n=this._getEvents();if("string"===i)delete n[t];else if(t instanceof RegExp)for(e in n)n.hasOwnProperty(e)&&t.test(e)&&delete n[e];else delete this._events;return this},n.removeAllListeners=i("removeEvent"),n.emitEvent=function(t,e){var i,n,a,o=this.getListenersAsObject(t);for(a in o)if(o.hasOwnProperty(a))for(n=o[a].length;n--;)!0===(i=o[a][n]).once&&this.removeListener(t,i.listener),i.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},n.trigger=i("emitEvent"),n.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},n.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},n._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},n._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return a.EventEmitter=o,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:a.EventEmitter=t}.call(this),function(t){function e(t){if(t){if("string"==typeof n[t])return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e,a=0,o=i.length;o>a;a++)if(e=i[a]+t,"string"==typeof n[e])return e}}var i="Webkit Moz ms Ms O".split(" "),n=document.documentElement.style;"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(t){function e(t){var e=parseFloat(t);return-1===t.indexOf("%")&&!isNaN(e)&&e}function i(i){function o(){if(!l){l=!0;var a=t.getComputedStyle;if(r=function(){var t=a?function(t){return a(t,null)}:function(t){return t.currentStyle};return function(e){var i=t(e);return i||n("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),i}}(),f=i("boxSizing")){var o=document.createElement("div");o.style.width="200px",o.style.padding="1px 2px 3px 4px",o.style.borderStyle="solid",o.style.borderWidth="1px 2px 3px 4px",o.style[f]="border-box";var s=document.body||document.documentElement;s.appendChild(o);var d=r(o);c=200===e(d.width),s.removeChild(o)}}}function s(e,i){if(t.getComputedStyle||-1===i.indexOf("%"))return i;var n=e.style,a=n.left,o=e.runtimeStyle,s=o&&o.left;return s&&(o.left=e.currentStyle.left),n.left=i,i=n.pixelLeft,n.left=a,s&&(o.left=s),i}var r,f,c,l=!1;return function(t){if(o(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var i=r(t);if("none"===i.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0,i=a.length;i>e;e++)t[a[e]]=0;return t}();var n={};n.width=t.offsetWidth,n.height=t.offsetHeight;for(var l=n.isBorderBox=!(!f||!i[f]||"border-box"!==i[f]),d=0,u=a.length;u>d;d++){var h=a[d],m=i[h];m=s(t,m);var p=parseFloat(m);n[h]=isNaN(p)?0:p}var g=n.paddingLeft+n.paddingRight,v=n.paddingTop+n.paddingBottom,b=n.marginLeft+n.marginRight,y=n.marginTop+n.marginBottom,w=n.borderLeftWidth+n.borderRightWidth,x=n.borderTopWidth+n.borderBottomWidth,C=l&&c,k=e(i.width);!1!==k&&(n.width=k+(C?0:g+w));var _=e(i.height);return!1!==_&&(n.height=_+(C?0:v+x)),n.innerWidth=n.width-(g+w),n.innerHeight=n.height-(v+x),n.outerWidth=n.width+b,n.outerHeight=n.height+y,n}}}var n="undefined"==typeof console?function(){}:function(t){console.error(t)},a=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],i):"object"==typeof exports?module.exports=i(require("desandro-get-style-property")):t.getSize=i(t.getStyleProperty)}(window),function(t){function e(t){"function"==typeof t&&(e.isReady?t():s.push(t))}function i(t){var i="readystatechange"===t.type&&"complete"!==o.readyState;e.isReady||i||n()}function n(){e.isReady=!0;for(var t=0,i=s.length;i>t;t++)(0,s[t])()}function a(a){return"complete"===o.readyState?n():(a.bind(o,"DOMContentLoaded",i),a.bind(o,"readystatechange",i
8),a.bind(t,"load",i)),e}var o=t.document,s=[];e.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],a):"object"==typeof exports?module.exports=a(require("eventie")):t.docReady=a(t.eventie)}(window),function(t){function e(t,e){return t[a](e)}function i(t){t.parentNode||document.createDocumentFragment().appendChild(t)}var n,a=function(){if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0,n=e.length;n>i;i++){var a=e[i]+"MatchesSelector";if(t[a])return a}}();if(a){var o=e(document.createElement("div"),"div");n=o?e:function(t,n){return i(t),e(t,n)}}else n=function(t,e){i(t);for(var n=t.parentNode.querySelectorAll(e),a=0,o=n.length;o>a;a++)if(n[a]===t)return!0;return!1};"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return n}):"object"==typeof exports?module.exports=n:window.matchesSelector=n}(Element.prototype),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(i,n){return e(t,i,n)}):"object"==typeof exports?module.exports=e(t,require("doc-ready"),require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.docReady,t.matchesSelector)}(window,function(t,e,i){var n={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},a=Object.prototype.toString;n.isArray=function(t){return"[object Array]"==a.call(t)},n.makeArray=function(t){var e=[];if(n.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0,a=t.length;a>i;i++)e.push(t[i]);else e.push(t);return e},n.indexOf=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i;return-1},n.removeFrom=function(t,e){var i=n.indexOf(t,e);-1!=i&&t.splice(i,1)},n.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(t){return t instanceof HTMLElement}:function(t){return t&&"object"==typeof t&&1==t.nodeType&&"string"==typeof t.nodeName},n.setText=function(){var t;return function(e,i){e[t=t||(void 0!==document.documentElement.textContent?"textContent":"innerText")]=i}}(),n.getParent=function(t,e){for(;t!=document.body;)if(t=t.parentNode,i(t,e))return t},n.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},n.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.filterFindElements=function(t,e){for(var a=[],o=0,s=(t=n.makeArray(t)).length;s>o;o++){var r=t[o];if(n.isElement(r))if(e){i(r,e)&&a.push(r);for(var f=r.querySelectorAll(e),c=0,l=f.length;l>c;c++)a.push(f[c])}else a.push(r)}return a},n.debounceMethod=function(t,e,i){var n=t.prototype[e],a=e+"Timeout";t.prototype[e]=function(){var t=this[a];t&&clearTimeout(t);var e=arguments,o=this;this[a]=setTimeout(function(){n.apply(o,e),delete o[a]},i||100)}},n.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var o=t.console;return n.htmlInit=function(i,a){e(function(){for(var e=n.toDashed(a),s=document.querySelectorAll(".js-"+e),r="data-"+e+"-options",f=0,c=s.length;c>f;f++){var l,d=s[f],u=d.getAttribute(r);try{l=u&&JSON.parse(u)}catch(t){o&&o.error("Error parsing "+r+" on "+d.nodeName.toLowerCase()+(d.id?"#"+d.id:"")+": "+t);continue}var h=new i(d,l),m=t.jQuery;m&&m.data(d,a,h)}})},n}),function(t,e){"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(i,n,a,o){return e(t,i,n,a,o)}):"object"==typeof exports?module.exports=e(t,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(t.Outlayer={},t.Outlayer.Item=e(t,t.EventEmitter,t.getSize,t.getStyleProperty,t.fizzyUIUtils))}(window,function(t,e,i,n,a){function o(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var s=t.getComputedStyle,r=s?function(t){return s(t,null)}:function(t){return t.currentStyle},f=n("transition"),c=n("transform"),l=f&&c,d=!!n("perspective"),u={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[f],h=["transform","transition","transitionDuration","transitionProperty"],m=function(){for(var t={},e=0,i=h.length;i>e;e++){var a=h[e],o=n(a);o&&o!==a&&(t[a]=o)}return t}();a.extend(o.prototype,e.prototype),o.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},o.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},o.prototype.getSize=function(){this.size=i(this.element)},o.prototype.css=function(t){var e=this.element.style;for(var i in t)e[m[i]||i]=t[i]},o.prototype.getPosition=function(){var t=r(this.element),e=this.layout.options,i=e.isOriginLeft,n=e.isOriginTop,a=parseInt(t[i?"left":"right"],10),o=parseInt(t[n?"top":"bottom"],10);a=isNaN(a)?0:a,o=isNaN(o)?0:o;var s=this.layout.size;a-=i?s.paddingLeft:s.paddingRight,o-=n?s.paddingTop:s.paddingBottom,this.position.x=a,this.position.y=o},o.prototype.layoutPosition=function(){var t=this.layout.size,e=this.layout.options,i={},n=e.isOriginLeft?"paddingLeft":"paddingRight",a=e.isOriginLeft?"left"
8:"right",o=e.isOriginLeft?"right":"left",s=this.position.x+t[n];s=e.percentPosition&&!e.isHorizontal?s/t.width*100+"%":s+"px",i[a]=s,i[o]="";var r=e.isOriginTop?"paddingTop":"paddingBottom",f=e.isOriginTop?"top":"bottom",c=e.isOriginTop?"bottom":"top",l=this.position.y+t[r];l=e.percentPosition&&e.isHorizontal?l/t.height*100+"%":l+"px",i[f]=l,i[c]="",this.css(i),this.emitEvent("layout",[this])};var p=d?function(t,e){return"translate3d("+t+"px, "+e+"px, 0)"}:function(t,e){return"translate("+t+"px, "+e+"px)"};o.prototype._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,a=parseInt(t,10),o=parseInt(e,10),s=a===this.position.x&&o===this.position.y;if(this.setPosition(t,e),!s||this.isTransitioning){var r=t-i,f=e-n,c={},l=this.layout.options;r=l.isOriginLeft?r:-r,f=l.isOriginTop?f:-f,c.transform=p(r,f),this.transition({to:c,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},o.prototype.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},o.prototype.moveTo=l?o.prototype._transitionTo:o.prototype.goTo,o.prototype.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},o.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)},o.prototype._transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);t.from&&(this.css(t.from),this.element.offsetHeight),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var g=c&&a.toDashed(c)+",opacity";o.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:g,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(u,this,!1))},o.prototype.transition=o.prototype[f?"_transition":"_nonTransition"],o.prototype.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},o.prototype.onotransitionend=function(t){this.ontransitionend(t)};var v={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};o.prototype.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=v[t.propertyName]||t.propertyName;delete e.ingProperties[i],function(t){for(var e in t)return!1;return!0}(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])}},o.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(u,this,!1),this.isTransitioning=!1},o.prototype._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var b={transitionProperty:"",transitionDuration:""};return o.prototype.removeTransitionStyles=function(){this.css(b)},o.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},o.prototype.remove=function(){if(f&&parseFloat(this.layout.options.transitionDuration)){var t=this;this.once("transitionEnd",function(){t.removeElem()}),this.hide()}else this.removeElem()},o.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})},o.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},o.prototype.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},o.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})},o.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},o.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},o}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,a,o,s){return e(t,i,n,a,o,s)}):"object"==typeof exports?module.exports=e(t,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.eventie,t.EventEmitter,t.getSize,t.f
8izzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,a,o){function s(t,e){var i=a.getQueryElement(t);if(i){this.element=i,f&&(this.$element=f(this.element)),this.options=a.extend({},this.constructor.defaults),this.option(e);var n=++l;this.element.outlayerGUID=n,d[n]=this,this._create(),this.options.isInitLayout&&this.layout()}else r&&r.error("Bad element for "+this.constructor.namespace+": "+(i||t))}var r=t.console,f=t.jQuery,c=function(){},l=0,d={};return s.namespace="outlayer",s.Item=o,s.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)"}},a.extend(s.prototype,i.prototype),s.prototype.option=function(t){a.extend(this.options,t)},s.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),a.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},s.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},s.prototype._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],a=0,o=e.length;o>a;a++){var s=new i(e[a],this);n.push(s)}return n},s.prototype._filterFindItemElements=function(t){return a.filterFindElements(t,this.options.itemSelector)},s.prototype.getItemElements=function(){for(var t=[],e=0,i=this.items.length;i>e;e++)t.push(this.items[e].element);return t},s.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},s.prototype._init=s.prototype.layout,s.prototype._resetLayout=function(){this.getSize()},s.prototype.getSize=function(){this.size=n(this.element)},s.prototype._getMeasurement=function(t,e){var i,o=this.options[t];o?("string"==typeof o?i=this.element.querySelector(o):a.isElement(o)&&(i=o),this[t]=i?n(i)[e]:o):this[t]=0},s.prototype.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},s.prototype._getItemsForLayout=function(t){for(var e=[],i=0,n=t.length;n>i;i++){var a=t[i];a.isIgnored||e.push(a)}return e},s.prototype._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){for(var i=[],n=0,a=t.length;a>n;n++){var o=t[n],s=this._getItemLayoutPosition(o);s.item=o,s.isInstant=e||o.isLayoutInstant,i.push(s)}this._processLayoutQueue(i)}},s.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},s.prototype._processLayoutQueue=function(t){for(var e=0,i=t.length;i>e;e++){var n=t[e];this._positionItem(n.item,n.x,n.y,n.isInstant)}},s.prototype._positionItem=function(t,e,i,n){n?t.goTo(e,i):t.moveTo(e,i)},s.prototype._postLayout=function(){this.resizeContainer()},s.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},s.prototype._getContainerSize=c,s.prototype._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.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"}},s.prototype._emitCompleteOnItems=function(t,e){function i(){a.emitEvent(t+"Complete",[e])}function n(){++s===o&&i()}var a=this,o=e.length;if(e&&o)for(var s=0,r=0,f=e.length;f>r;r++)e[r].once(t,n);else i()},s.prototype.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},s.prototype.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},s.prototype.stamp=function(t){if(t=this._find(t)){this.stamps=this.stamps.concat(t);for(var e=0,i=t.length;i>e;e++){var n=t[e];this.ignore(n)}}},s.prototype.unstamp=function(t){if(t=this._find(t))for(var e=0,i=t.length;i>e;e++){var n=t[e];a.removeFrom(this.stamps,n),this.unignore(n)}},s.prototype._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=a.makeArray(t)):void 0},s.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect
8();for(var t=0,e=this.stamps.length;e>t;t++){var i=this.stamps[t];this._manageStamp(i)}}},s.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)}},s.prototype._manageStamp=c,s.prototype._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,a=n(t);return{left:e.left-i.left-a.marginLeft,top:e.top-i.top-a.marginTop,right:i.right-e.right-a.marginRight,bottom:i.bottom-e.bottom-a.marginBottom}},s.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},s.prototype.bindResize=function(){this.isResizeBound||(e.bind(t,"resize",this),this.isResizeBound=!0)},s.prototype.unbindResize=function(){this.isResizeBound&&e.unbind(t,"resize",this),this.isResizeBound=!1},s.prototype.onresize=function(){this.resizeTimeout&&clearTimeout(this.resizeTimeout);var t=this;this.resizeTimeout=setTimeout(function(){t.resize(),delete t.resizeTimeout},100)},s.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},s.prototype.needsResizeLayout=function(){var t=n(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},s.prototype.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},s.prototype.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},s.prototype.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},s.prototype.reveal=function(t){this._emitCompleteOnItems("reveal",t);for(var e=t&&t.length,i=0;e&&e>i;i++)t[i].reveal()},s.prototype.hide=function(t){this._emitCompleteOnItems("hide",t);for(var e=t&&t.length,i=0;e&&e>i;i++)t[i].hide()},s.prototype.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},s.prototype.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},s.prototype.getItem=function(t){for(var e=0,i=this.items.length;i>e;e++){var n=this.items[e];if(n.element===t)return n}},s.prototype.getItems=function(t){for(var e=[],i=0,n=(t=a.makeArray(t)).length;n>i;i++){var o=t[i],s=this.getItem(o);s&&e.push(s)}return e},s.prototype.remove=function(t){var e=this.getItems(t);if(this._emitCompleteOnItems("remove",e),e&&e.length)for(var i=0,n=e.length;n>i;i++){var o=e[i];o.remove(),a.removeFrom(this.items,o)}},s.prototype.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="";for(var e=0,i=this.items.length;i>e;e++)this.items[e].destroy();this.unbindResize();var n=this.element.outlayerGUID;delete d[n],delete this.element.outlayerGUID,f&&f.removeData(this.element,this.constructor.namespace)},s.data=function(t){var e=(t=a.getQueryElement(t))&&t.outlayerGUID;return e&&d[e]},s.create=function(t,e){function i(){s.apply(this,arguments)}return Object.create?i.prototype=Object.create(s.prototype):a.extend(i.prototype,s.prototype),i.prototype.constructor=i,i.defaults=a.extend({},s.defaults),a.extend(i.defaults,e),i.prototype.settings={},i.namespace=t,i.data=s.data,i.Item=function(){o.apply(this,arguments)},i.Item.prototype=new o,a.htmlInit(i,t),f&&f.bridget&&f.bridget(t,i),i},s.Item=o,s}),function(t,e){"function"==typeof define&&define.amd?define(["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,e,i){var n=t.create("masonry");return n.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},n.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,a=this.containerWidth+this.gutter,o=a/n,s=n-a%n;o=Math[s&&1>s?"round":"floor"](o),this.cols=Math.max(o,1)},n.prototype.getContainerWidth=function(){var t=this.options.isFitWidth?this.element.parentNode:this.element,i=e(t);this.containerWidth=i&&i.innerWidth},n.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,n=Math[e&&1>e?"round":"ceil"](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var a=this._getColGroup(n),o=Math.min.apply(Math,a),s=i.indexOf(a,o),r={x:this.columnWidth*s,y:o},f=o+t.size.outerHeight,c=this.cols+1-a.length,l=0;c>l;l++)this.colYs[s+l]=f;return r},n.prototype._getColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++){var a=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,a)}return e},n.prototype._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),a=this.options.isOriginLeft?n.left:n.right,o=a+i.outerWidth,s=Math.floor(a/this.columnWidth);s=Math.max(0,s);var r=Math.floor(o/this.columnWidth);r-=o%this.columnWidth?0:1,r=Math.min(this.cols-1,r);for(var f=(this.options.isOriginTop?n.top:n.bottom)+i.outerHeight,c=s;r>=c;c++)this.colYs[c]=Math.max(f,this.colYs[c])},n.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},n.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!==this.containerWidth},n}),window.cffMasonrySettings={itemSelector:".cff-album-item"},Cff.prototype={createPage:function(t,e){void 0!==window.cffOptions&&void 0!==window.cffOptions.resized_url||(window.cffOptions={resized_url:location.protocol+"//"+window.location.hostname+"/wp-content/uploads/sb-facebook-feed-images/",placeholder:location.protocol+"//"+window.location.hostname+"/wp-content/plugins/custom-facebook-feed-pro/assets/img/placeholder.png"}),t(e)},createFeeds:function(t){jQuery(".cff").each(function(t){jQuery(this).attr("data-cff-index",t+1);var e=jQuery(this),i=void 0!==e.attr("data-cff-flags")?e.attr("data-cff-flags").split(","):[],n={feedID:e.find(".cff_resized_image_data").attr("data-feedid"),shortCodeAtts:e.attr("data-cff-shortcode"),resizingEnabled:e.find(".cff_resized_image_data").length,page:1,pag_url:"",gdpr:i.indexOf("gdpr")>-1,overrideBlockCDN:i.indexOf("overrideBlockCDN")>-1,consentGiven:!1,locator:i.indexOf("locator")>-1,postID:void 0!==e.attr("data-postid")?e.attr("data-postid"):"unknown"};window.cff.feeds[t]=new CffFeed(this,t,n),void 0!==window.cff.feeds[t].setResizedImages&&window.cff.feeds[t].setResizedImages(),void 0!==window.cff.feeds[t].setResizedImages&&window.cff.feeds[t].init()})}},CffFeed.prototype={init:function(){var t=this;if(t.settings.consentGiven=t.checkConsent(),!t.settings.consentGiven){jQuery(this.el).find(".cff
8-load-more").is(":visible")&&jQuery(this.el).find(".cff-load-more").hide().addClass("cff-no-consent-hide");var e=jQuery(this.el).closest(".cff-wrapper");e.find(".cff-visual-header").length&&e.find(".cff-header-text").closest(".cff-visual-header").addClass("cff-no-consent"),e.find(".fb-video").addClass("cff-no-consent"),setTimeout(function(){t.settings.consentGiven=t.checkConsent(),t.settings.consentGiven&&t.addFullFeatures()},1e3)}var i,n=(i=0,function(t,e){clearTimeout(i),i=setTimeout(t,e)});this.afterInitialImagesLoaded(),jQuery(window).on("resize",function(){n(function(){t.afterResize()},500)}),jQuery(this.el).find(".cff-item").each(function(){t.lazyLoadCheck(jQuery(this))})},addFullFeatures:function(){var t=jQuery;jQuery(this.el),jQuery(".cff-gdpr-notice").remove(),t(window).on("resize scroll load",function(){t('iframe.cff-lazy-load[data-loaded="false"]').each(function(){t(this).isInViewport()&&(t(this).attr("src",t(this).attr("data-src")),t(this).attr("data-loaded","true"))})}),jQuery(this.el).find(".cff-author-img").each(function(){t(this).find("img").attr("src",t(this).attr("data-avatar")),t(this).removeClass("cff-no-consent")}),jQuery(".fb-video.cff-no-consent").removeClass("cff-no-consent"),jQuery(".cff-visual-header").length&&jQuery(".cff-visual-header").each(function(){jQuery(this).removeClass("cff-no-consent"),jQuery(this).find(".cff-header-hero").length&&jQuery(this).find(".cff-header-hero").find("img").attr("src",jQuery(this).find(".cff-header-hero").find("img").attr("data-cover-url")),jQuery(this).find(".cff-header-img").length&&jQuery(this).find(".cff-header-img").find("img").attr("src",jQuery(this).find(".cff-header-img").find("img").attr("data-avatar"))}),jQuery(".cff-comment:visible").each(function(){var t=jQuery(this);(void 0===window.cff||void 0===window.cff.feeds||window.cff.feeds[0].settings.consentGiven)&&t.find(".cff-comment-img:not(.cff-comment-reply-img) a, .cff-comment-img:not(.cff-comment-reply-img) span").html('<img src="'+t.attr("data-avatar")+'" class="cff-feed-image" alt="'+cffCommentAvatarAlt(t)+'" />')}),jQuery(".cff-comment-image-placeholder").each(function(){jQuery(this).replaceWith('<img src="'+jQuery(this).attr("data-src")+'" class="cff-feed-image" alt="'+(jQuery(this).attr("data-alt")||"")+'"/>')}),jQuery(".cff-likebox iframe").each(function(){var e=t(this),i=e.attr("data-likebox-width"),n=e.parent().width();""==i&&(i=340),n<i&&(i=n),e.attr("src","https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2F"+e.attr("data-likebox-id")+"%2F&tabs&width="+Math.floor(i)+"&small_header="+e.attr("data-likebox-header")+"&adapt_container_width=true&hide_cover="+e.attr("data-hide-cover")+"&hide_cta="+e.attr("data-hide-cta")+"&show_facepile="+e.attr("data-likebox-faces")+"&locale="+e.attr("data-locale"))}),jQuery(".cff-iframe-placeholder").each(function(){var t=jQuery(this),e=t.attr("data-src");switch(t.attr("data-type")){case"facebook":t.replaceWith('<iframe src="'+e+'" title="Facebook video player" allowfullscreen frameborder="0" webkitallowfullscreen mozallowfullscreen></iframe>');break;case"youtube":t.replaceWith('<iframe class="youtube-player" type="text/html" src="'+e+'" allowfullscreen title="YouTube video"></iframe>');break;case"vimeo":t.replaceWith('<iframe src="'+e+'" webkitAllowFullScreen mozallowfullscreen allowFullScreen title="Vimeo video"></iframe>');break;case"soundcloud":t.replaceWith('<iframe class="cff-soundcloud" width="100%" height="100" scrolling="no" title="Music player" frameborder="no" src="'+e+'"></iframe>');break;case"spotify":t.replaceWith('<iframe class="cff-spotify" src="'+e+'" width="100%" height="80" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>');break;case"video":var i=t.attr("data-poster-src");t.replaceWith('<video src="'+e+'" poster="'+i+'" preload="none"></video>')}}),jQuery("a[data-x-cff-lightbox]").each(function(){jQuery(this).attr("data-cff-lightbox",jQuery(this).attr("data-x-cff-lightbox")),jQuery(this).removeAttr("data-x-cff-lightbox")}),jQuery(this.el).find(".cff-load-more.cff-no-consent-hide").show(),this.afterResize()},setResizedImages:function(){if(jQuery(this.el).find(".cff_resized_image_data").length&&void 0!==jQuery(this.el).find(".cff_resized_image_data").attr("data-resized")&&(0===jQuery(this.el).find(".cff_resized_image_data").attr("data-resized").indexOf('{"')||0===jQuery(this.el).find(".cff_resized_image_data").attr("data-resized").indexOf("["))){var t=JSON.parse(jQuery(this.el).find(".cff_resized_image_data").attr("data-resized")),e={};jQuery.each(t,function(t,i){e[i.facebook_id]={id:i.media_id,sizes:JSON.parse(i.sizes),aspect:i.aspect_ratio}}),this.resizedImages=e}jQuery(this.el).find(".cff_resized_image_data").remove()},sendNeedsResizingToServer:function(){var t=this;let e="";if(void 0!==jQuery(this.el).attr("data-locatornonce")&&(e=jQuery(this.el).attr("data-locatornonce")),t.needsResizing.length>
80&&t.settings.resizingEnabled){var i=jQuery(this.el).find(".cff-item").length;t.settings.consentGiven||t.settings.overrideBlockCDN||void 0!==jQuery(this.el).find(".cff-lightbox-link").attr("data-cff-lightbox")&&(jQuery(this.el).find(".cff-lightbox-link").attr("data-x-cff-lightbox",jQuery(this.el).find(".cff-lightbox-link").attr("data-cff-lightbox")),jQuery(this.el).find(".cff-lightbox-link").removeAttr("data-cff-lightbox")),cffAjax({action:"cff_resized_images_submit",needs_resizing:t.needsResizing,offset:i,feed_id:t.settings.feedID,atts:t.settings.shortCodeAtts,pag_url:t.pag_url,location:CFFLocationGuess(),post_id:t.settings.postID,locator_nonce:e},function(e){if(t.needsResizing=[],0===e.trim().indexOf("{")){var i=JSON.parse(e);if(t.settings.debugEnabled&&console.log(i),void 0!==i.resizing){var n=i.resizing;for(var a in n)n.hasOwnProperty(a)&&(t.resizedImages[a]=n[a]);t.maybeRaiseImageResolution(),void 0!==jQuery(t.el).find(".cff-lightbox-link").attr("data-x-cff-lightbox")&&(jQuery(t.el).find(".cff-lightbox-link").attr("data-cff-lightbox",jQuery(t.el).find(".cff-lightbox-link").attr("data-x-cff-lightbox")),jQuery(t.el).find(".cff-lightbox-link").removeAttr("data-x-cff-lightbox")),setTimeout(function(){t.afterResize()},500)}}})}else if(t.settings.locator){let e="";void 0!==jQuery(t.el).attr("data-locatornonce")&&(e=jQuery(t.el).attr("data-locatornonce")),cffAjax({action:"cff_do_locator",feed_id:t.settings.feedID,atts:t.settings.shortCodeAtts,location:CFFLocationGuess(),post_id:t.settings.postID,locator_nonce:e},function(t){})}},hasTargetElement:function(t){var e=t;return t.find(".cff-photo").length?e=t.find(".cff-photo"):t.find(".cff-poster").length?e=t.find(".cff-poster"):t.find(".cff-link-slider-slides").length?e=t.find(".cff-link-slider-slides"):t.find(".cff-img-wrap").length?e=t.find(".cff-img-wrap"):t.find(".cff-album-cover").length?e=t.find(".cff-album-cover"):t.find(".cff-link").length&&(e=t.find(".cff-link")),void 0!==e.attr("data-img-src-set")},getTargetElement:function(t){var e=t.find(".cff-photo");return t.find(".cff-poster").length?e=t.find(".cff-poster"):t.find(".cff-link-slider-slides").length?e=t.find(".cff-link-slider-item"):t.find(".cff-img-wrap").length?e=t.find(".cff-img-wrap"):t.find(".cff-album-cover").length?e=t.find(".cff-album-cover"):t.find(".cff-link").length&&(e=t.find(".cff-link")),e},getTargetElementImage:function(t){return t.find("img").length?t.find("img"):t},getTargetWidth:function(t,e,i){var n;return n=e.find(".cff-multi-image").length>2&&i>0?e.innerWidth()/3:e.closest(".cff-masonry").length?e.innerWidth():t.closest(".cff-item").find(".cff-link-slider").length?t.closest(".cff-item").find(".cff-link-slider").width():!t.closest(".cff-media-wrap").length||t.closest(".cff-thumb-layout").length||t.closest(".cff-half-layout").length?t.innerWidth():t.closest(".cff-media-wrap").width(),Math.max(50,n)},maybeRaiseSingleImageResolution:function(t,e,i){var n=this,a=n.getTargetElement(t),o=n.getImageUrls(t,a);a.each(function(e){var i=jQuery(this),a=n.getTargetElementImage(i),s=a.attr("src"),r=void 0===i.attr("data-current")?0:parseInt(i.attr("data-current")),f=n.getTargetWidth(i,t,e),c=!1;if(r<f&&void 0!==o[e]){var l=!1;jQuery.each(o[e],function(t,e){!l&&t>r&&(c=t,t>=f&&(l=!0))})}if(n.settings.consentGiven?(i.find("a[data-cff-lightbox]").length?i.find("a[data-cff-lightbox]"):i.closest(".cff-item").find("a[data-cff-lightbox]").length?i.closest(".cff-item").find("a[data-cff-lightbox]"):i.closest(".cff-album-item").find("a[data-cff-lightbox]").length&&i.closest(".cff-album-item").find("a[data-cff-lightbox]"),i.find("area[data-cff-lightbox]").length?i.find("area[data-cff-lightbox]"):i.closest(".cff-item").find("area[data-cff-lightbox]").length&&i.closest(".cff-item").find("area[data-cff-lightbox]")):(i.find("a[data-cff-lightbox]").length?i.find("a[data-cff-lightbox]"):i.closest(".cff-item").find("a[data-cff-lightbox]").length&&i.closest(".cff-item").find("a[data-cff-lightbox]"),i.find("area[data-cff-lightbox]").length?i.find("area[data-cff-lightbox]"):i.closest(".cff-item").find("area[data-cff-lightbox]").length&&i.closest(".cff-item").find("area[data-cff-lightbox]")),c){r=c,n.settings.debugEnabled&&n.placeholderURL,i.attr("data-current",c);var d=o[e][c];d!==s&&(a.attr("src",d),a.attr("data-lightbox-source",d),i.hasClass("imgLiquid_ready")&&(i.css("background-image",'url("'+d+'")'),i.imgLiquid({fill:!0})),n.processNewImage(i),r<720&&t.hasClass("cff-album-item")&&!a.hasClass("cff-secondary-check")&&(a.addClass("cff-secondary-check"),a.on("load",function(){if(!jQuery(this).hasClass("cff-secondary-checked")){jQuery(this).addClass("cff-secondary-checked");
8var d=a.get(0),u=d.naturalHeight,h=d.naturalWidth/d.naturalHeight;if(a.innerWidth()>u&&(f=n.getTargetWidth(i,t,e)*h,parseInt(r)<f&&(l=!1,jQuery.each(o[e],function(t,e){!l&&t>r&&(c=t,t>=f&&(l=!0))}),c))){i.attr("data-current",c);var m=o[e][c];m!==s&&(a.attr("src",m),i.hasClass("imgLiquid_ready")&&(i.css("background-image",'url("'+m+'")'),i.imgLiquid({fill:!0})),n.processNewImage(i))}}})))}a.on("error",function(){if(jQuery(this).hasClass("cff-img-error"))console.log("unfixed error "+jQuery(this).attr("src"));else{jQuery(this).addClass("cff-img-error");var t=void 0!==jQuery(this).attr("data-orig-source")&&jQuery(this).attr("data-orig-source");t&&t!==s&&(a.attr("src",t),i.hasClass("imgLiquid_ready")&&i.css("background-image",'url("'+t+'")')),setTimeout(function(){n.afterResize()},1500)}})})},maybeRaiseImageResolution:function(t){var e=this,i=void 0!==t&&!0===t?".cff-item.cff-new, .cff-album-item.cff-new":".cff-item, .cff-album-item";jQuery(e.el).find(i).each(function(t){!jQuery(this).hasClass("cff-num-diff-hide")&&e.hasTargetElement(jQuery(this))&&e.maybeRaiseSingleImageResolution(jQuery(this),t)})},getImageUrls:function(t,e){var i=this,n={},a=!1,o=t.attr("id").replace("cff_","");void 0!==e.attr("data-img-src-set")?a=e:void 0!==t.find(".cff-photo").attr("data-img-src-set")?a=t.find(".cff-photo"):void 0!==t.find(".cff-link-slider-slides").attr("data-img-src-set")?a=t.find(".cff-link-slider-slides"):void 0!==t.find(".cff-album-cover").attr("data-img-src-set")&&(a=t.find(".cff-album-cover")),a&&(n=JSON.parse(a.attr("data-img-src-set").replace(/\\\//g,"/"))),this.settings.consentGiven||this.settings.overrideBlockCDN||jQuery.each(n,function(t,e){n[t]={}});var s=n;if(void 0===i.resizedImages[o]&&-1===o.indexOf("_")&&void 0!==t.attr("data-page-id")&&(o=t.attr("data-page-id")+"_"+o),void 0!==i.resizedImages[o]&&"pending"!==i.resizedImages[o].id&&"error"!==i.resizedImages[o].id)jQuery.each(n,function(t,e){if(i.settings.consentGiven){s[t]={};var n=JSON.parse(a.attr("data-img-src-set").replace(/\\\//g,"/"));jQuery.each(n[t],function(e,i){(e>700||e<220)&&(s[t][e]=i)})}jQuery.each(i.resizedImages[o].sizes,function(e,n){s[t][n]=window.cffOptions.resized_url+i.resizedImages[o].id+"-"+t+"-"+n+".jpg"})});else if(void 0===this.resizedImages[o]||void 0!==this.resizedImages[o].id&&"pending"!==this.resizedImages[o].id&&"error"!==this.resizedImages[o].id){var r=!1;jQuery.each(s[0],function(t){parseInt(t)>150&&parseInt(t)<500&&(r=!0)}),i.settings.gdpr&&(r=!1),r||this.addToNeedsResizing(o)}return s},addToNeedsResizing:function(t){-1===this.needsResizing.indexOf(t)&&this.needsResizing.push(t)},processNewImage:function(t){var e=this;t.find("img").each(function(){jQuery(this).prop("complete")||(e.imagesWaiting++,jQuery(this).addClass("cff-image-loading").on("load",function(){jQuery(this).removeClass("cff-image-loading"),e.imagesWaiting--,e.imagesWaiting<1&&e.afterResize()}),jQuery(this).on("error",function(){jQuery(this).removeClass("cff-image-loading"),e.imagesWaiting--,e.imagesWaiting<1&&e.afterResize()}))})},getMaxResImage:function(t,e){if(void 0===t[e])return!1;var i=0,n=!1;return jQuery.each(t[e],function(t,e){t>i&&(i=t,n=e.toString())}),n},lazyLoadCheck:function(t){var e=this,i=e.getTargetElement(t),n=e.getImageUrls(t,i);t.closest(".cff").hasClass("cff-no-ll-check")||t.find("img").each(function(t){void 0!==jQuery(this).attr("data-src")&&jQuery(this).attr("data-src",jQuery(this).attr("data-orig-source")),void 0!==jQuery(this).attr("data-orig-src")&&jQuery(this).attr("data-orig-src",jQuery(this).attr("data-orig-source")),e.settings.consentGiven||(jQuery(this).removeAttr("data-orig-source"),maxResImage=e.getMaxResImage(n,t),maxResImage&&-1===maxResImage.indexOf("scontent")&&jQuery(this).attr("data-orig-source",maxResImage)),jQuery(this).on("load",function(){if(!jQuery(this).hasClass("cff-replaced")&&jQuery(this).attr("src").indexOf("placeholder")>-1){jQuery(this).addClass("cff-replaced");var t=void 0!==jQuery(this).attr("data-orig-source")&&jQuery(this).attr("data-orig-source");t&&(jQuery(this).attr("src",jQuery(this).attr("data-orig-source")),jQuery(this).closest(".imgLiquid_bgSize").length&&jQuery(this).closest(".imgLiquid_bgSize").css("background-image","url("+t+")"))}})})},maybeRelayoutMasonry:function(){var t,e=jQuery(this.el);e.hasClass("cff-masonry-js")&&!e.hasClass("cff-masonry-css")&&(t=0,function(e,i){clearTimeout(t),t=setTimeout(e,i
8)})(function(){cffAddMasonry(e)},500)},afterInitialImagesLoaded:function(){this.maybeRaiseImageResolution(),this.sendNeedsResizingToServer(),this.maybeCleanUpNew(),this.settings.consentGiven?this.addFullFeatures():jQuery(".cff-gdpr-notice").css({display:"inline-block"})},afterResize:function(){this.maybeRaiseImageResolution(),this.maybeRelayoutMasonry()},afterLoadMoreClicked:function(){this.maybeRaiseImageResolution(),this.addFullFeatures()},maybeCleanUpNew:function(){var t=this,e=jQuery(this.el);setTimeout(function(){t.index>0&&e.find(".cff-new").removeClass("cff-new"),e.find("img").each(function(){if(t.settings.consentGiven&&!jQuery(this).hasClass("cff-image-loading")&&null!=jQuery(this).attr("src")&&null!=jQuery(this).attr("src")&&jQuery(this).attr("src").indexOf("placeholder.png")>-1){console.log("lazy load correction");var e=jQuery(this),i=e.attr("src"),n=e.attr("data-orig-source");n!=i&&e.attr("src",n),e.hasClass("cff-multi-image")&&e.css("background-image","url("+n+")")}})},1250)},checkConsent:function(){if(this.settings.consentGiven||!this.settings.gdpr)return!0;if(void 0!==window.WPConsent)this.settings.consentGiven=window.WPConsent.hasConsent("marketing");else if(void 0!==window.cookieyes)void 0!==window.cookieyes._ckyConsentStore.get&&(this.settings.consentGiven="yes"===window.cookieyes._ckyConsentStore.get("functional"));else if("undefined"!=typeof CLI_Cookie)null!==CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)&&("null"!==CLI_Cookie.read("cookielawinfo-checkbox-non-necessary")&&(this.settings.consentGiven="yes"===CLI_Cookie.read("cookielawinfo-checkbox-non-necessary")),"null"!==CLI_Cookie.read("cookielawinfo-checkbox-necessary")&&(this.settings.consentGiven="yes"===CLI_Cookie.read("cookielawinfo-checkbox-necessary")));else if(void 0!==window.cnArgs){var t=("; "+document.cookie).split("; cookie_notice_accepted=");if(2===t.length){var e=t.pop().split(";").shift();this.settings.consentGiven="true"===e}}else if(void 0!==window.complianz)this.settings.consentGiven="allow"===cffCmplzGetCookie("cmplz_marketing");else if(void 0!==window.Cookiebot)this.settings.consentGiven=Cookiebot.consented;else if(void 0!==window.BorlabsCookie)this.settings.consentGiven=void 0!==window.BorlabsCookie.Consents?window.BorlabsCookie.Consents.hasConsent("facebook"):window.BorlabsCookie.checkCookieConsent("facebook");else if(cffCmplzGetCookie("moove_gdpr_popup")){var i=JSON.parse(decodeURIComponent(cffCmplzGetCookie("moove_gdpr_popup")));this.settings.consentGiven=void 0!==i.thirdparty&&"1"===i.thirdparty}var n=jQuery.Event("cffcheckconsent");return n.feed=this,jQuery(window).trigger(n),this.settings.consentGiven},afterConsentToggled:function(){if(this.checkConsent()){var t=this;t.maybeRaiseImageResolution(),this.addFullFeatures(),setTimeout(function(){t.afterResize()},500)}}};var cff_init=window.cff_init=function(t){jQuery(".cff-nojs").removeClass("cff-nojs");var e=!1;1==("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)==1&&(e=!0);var i=!1;void 0===t&&(t=jQuery(".cff"),i=!0),function(n){n(function(){jQuery(document).off("keydown","#cff .cff-view-comments").on("keydown","#cff .cff-view-comments",function(t){"Enter"!==t.key&&" "!==t.key&&"Spacebar"!==t.key||(t.preventDefault(),jQuery(this).trigger("click"))}),jQuery(document).off("click","#cff .cff-view-comments").on("click","#cff .cff-view-comments",function(){var t=jQuery(this),e=t.closest(".cff-item").find(".cff-comments-box");t.toggleClass("cff-open"),t.attr("aria-expanded",t.hasClass("cff-open")?"true":"false"),e.slideToggle(300);var i=t.closest("#cff");n(this).closest(".cff-item"),i.hasClass("cff-masonry-js")&&setTimeout(function(){cffAddMasonry(i)},500),e.find(".cff-comment:visible").each(function(){var t=jQuery(this);(void 0===window.cff||void 0===window.cff.feeds||window.cff.feeds[0].settings.consentGiven)&&t.find(".cff-comment-img:not(.cff-comment-reply-img) a, .cff-comment-img:not(.cff-comment-reply-img) span").html('<img src="'+t.attr("data-avatar")+'" class="cff-feed-image" alt="'+cffCommentAvatarAlt(t)+'" />')})});var a,o=!1;t.find(".cff-view-comments").on("mouseenter",function(){var t=n(this),e=50;
8t.hasClass("cff-open")||t.find(".cff-icon").each(function(){!function(t,e){o=!1,a=setTimeout(function(){o||t.addClass("cff-animate")},e)}(jQuery(this),e),e+=50})}).on("mouseleave",function(){clearTimeout(a),o=!0,n(this).find(".cff-icon").removeClass("cff-animate")}),"undefined"!=typeof cffsiteurl&&""!=cffsiteurl||(cffsiteurl=window.location.host+"/wp-content/plugins");var s={},r={},f=[],c=0;jQuery("#cff.cff-lb").each(function(){c++,n(this).attr("data-cff-lb",c)});var l=t.find(".cff-item.cff-new, .cff-album-item.cff-new");if(i&&(l=jQuery("#cff .cff-item.cff-new, #cff .cff-album-item.cff-new")),l.each(function(){var i=jQuery(this);if(i.find(".cff-viewpost-link, .cff-viewpost-facebook, .cff-viewpost").parent("p").length&&(i.hasClass("event")||i.find(".cff-viewpost-link, .cff-viewpost-facebook, .cff-viewpost").unwrap("p")),i.find(".cff-photo").parent("p").length&&(i.find("p .cff-photo").unwrap("p"),i.find(".cff-album-icon").appendTo(".cff-photo:last")),i.find(".cff-event-thumb").parent("p").length&&i.find(".cff-event-thumb").unwrap("p"),i.find(".cff-vidLink").parent("p").length&&i.find(".cff-vidLink").unwrap("p"),i.find(".cff-link").parent("p").length&&i.find(".cff-link").unwrap("p"),i.find(".cff-viewpost-link").parent("p").length&&i.find(".cff-viewpost-link").unwrap("p"),i.find(".cff-viewpost-facebook").parent("p").length&&i.find(".cff-viewpost-facebook").unwrap("p"),i.find("iframe").parent("p").length&&i.find("iframe").unwrap("p"),i.find(".cff-author").parent("p").length&&(i.find(".cff-author").eq(1).unwrap("p"),i.find(".cff-author").eq(1).remove()),i.find(".cff-view-comments").parent("p").length){i.find(".cff-meta-wrap > p").remove(),i.find(".cff-view-comments").eq(1).remove();var a=i.find(".cff-meta"),o=a.attr("class");a.find(".cff-view-comments").unwrap().wrapInner('<ul class="'+o+'">')}i.find(".cff-photo").siblings(".cff-photo").length&&i.find(".cff-photo").slice(0,2).remove(),n(".cff-author-img").parent().is("p")&&n(".cff
8-author-img").unwrap("p"),i.find("p:empty").not(".cff-comments-box p").remove();var s=!1;if(i.hasClass("cff-event"))var r=(f=i.find(".cff-desc .cff-desc-text")).parent().attr("data-char");else{var f=i.find(".cff-post-text .cff-text");r=i.closest("#cff").attr("data-char")}void 0!==r&&""!=r||(r=99999),f.find("a.cff-post-text-link").length&&(f=i.find(".cff-post-text .cff-text a"));var c=f.html(),l=f.html();if(void 0===c&&(c=""),function(t){let e=jQuery("<div>").html(t).text();return jQuery.trim(e).length}(c)>r){i.find(".cff-expand").show();var d="",u=new RegExp(/(<[^>]*>)/g),h=l.split(u),m=0;h.every((t,e)=>{var i=/<(\/*)[a-z][\s\S]*>/i.test(t),n=/<\/[a-z][\s\S]*>/i.test(h[e+1]);return i||((m+=t.length)>r&&(t=t.slice(0,r-(m-t.length)),n&&(t+=h[e+1])),""===t&&0===t.length&&(m+=1)),d+=t,!(m>=r)})}f.html(d),u=new RegExp(/(<[^>]*>)/g),full_text_arr=c.split(u),i.find(".cff-expand .cff-readmore, .cff-expand a").off("click").on("click",function(e){e.preventDefault();var n=jQuery(this),a=n.find(".cff-more"),o=n.find(".cff-less");0==s?(f.html(l),s=!0,a.hide(),o.show(),n.attr("aria-expanded","true")):(f.html(d),s=!1,a.show(),o.hide(),n.attr("aria-expanded","false")),w(),f.find("a").attr("target","_blank"),i.closest(".cff").hasClass("cff-masonry-js")&&!i.closest(".cff").hasClass("cff-masonry-css")&&cffAddMasonry(t)}),f.find("a").add(i.find(".cff-post-desc a")).attr({target:"_blank",rel:"nofollow noopener noreferrer"});var p=i.attr("id").substring(4);i.find(".cff-view-comments").attr("id"),jQuery(document).off("click","#cff .cff-show-more-comments, .cff-lightbox-sidebar .cff-show-more-comments").on("click","#cff .cff-show-more-comments, .cff-lightbox-sidebar .cff-show-more-comments",function(){var t=jQuery(this),e=parseInt(t.attr("data-cff-comments-total"));t.hasClass("cff-clicked")&&e>25&&t.find("a").attr({href:t.closest(".cff-comments-box").find(".cff-comment-on-facebook a").attr("href"),target:"_blank"}),e<=25&&t.hide(),t.addClass("cff-clicked"),t.parent().find(".cff-comment").show().each(function(){var t=jQuery(this);(void 0===window.cff||void 0===window.cff.feeds||window.cff.feeds[0].settings.consentGiven)&&t.find(".cff-comment-img:not(.cff-comment-reply-img) a, .cff-comment-img:not(.cff-comment-reply-img) span").html('<img src="'+t.attr("data-avatar")+'" class="cff-feed-image" alt="'+cffCommentAvatarAlt(t)+'" />')});var i=t.closest(".cff");i.hasClass("cff-masonry-js")&&!i.hasClass("cff-opaque-comments")&&setTimeout(function(){cffAddMasonry(i)},500);var cffA11yScope=t.closest(".cff, .cff-lightbox-wrapper"),cffA11yStatus=cffA11yScope.find("[data-cff-feed-status]").first();cffA11yStatus.length||(cffA11yStatus=jQuery('<div class="cff-screenreader" aria-live="polite" aria-atomic="true" data-cff-feed-status></div>').appendTo(cffA11yScope));cffA11yStatus.text((void 0!==window.cff_a11y_strings?window.cff_a11y_strings.commentsLoaded:"")||"More comments loaded")}),(i.hasClass("cff-timeline-event")||i.hasClass("cff-event"))&&n(this).find(".cff-date .cff-start-date k").text()!==n(this).find(".cff-date .cff-end-date k").text()&&n(this).find(".cff-date .cff-end-date k").show();var g=i.find(".cff-photo img, .cff-event-thumb img, .cff-poster, .cff-album-cover img"),v=g.attr("src"),b=g.attr("data-querystring");if(void 0===v&&(v=""),v.indexOf("i0.wp.com")>-1||v.indexOf("i1.wp.com")>-1||v.indexOf("i2.wp.com")>-1||v.indexOf("i3.wp.com")>-1||v.indexOf("i4.wp.com")>-1||v.indexOf("i5.wp.com")>-1){var y=g.attr("src").substring(0,g.attr("src").indexOf("?")).replace("http://","https:/").replace(/i0.wp.com|i1.wp.com|i2.wp.com|i3.wp.com|i4.wp.com|i5.wp.com/gi,"")+"?"+b;g.attr("src",y)}function w(){var t=i.find(".cff-text").html(),e=i.find(".cff-post-desc").html(),n=/(^|\s)#(\w*[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u
80EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]+\w*)/gi,a=sanitizeColor(i.find(".cff-text").attr("data-color")),o="";function s(t){var e=jQuery.trim(t);return/^#[0-9A-F]{6}$/i.test(e)?e:(a&&void 0!==a&&a.length>1&&(o='style="color:#'+a+'"'),' <a href="https://www.facebook.com/hashtag/'+e.substring(1)+'" target="_blank" rel="nofollow noopener" '+o+">"+e+"</a>")}if("undefined"==typeof cfflinkhashtags&&(cfflinkhashtags="true"),"true"==cfflinkhashtags){var r=i.find(".cff-text");r.length>0&&(t=t.replace(/<br>/g,"<br> "),r.html(t.replace(n,s)))}i.find(".cff-post-desc").length>0&&i.find(".cff-post-desc").html(e.replace(n,s))}if(w(),i.find(".cff-text a").attr("target","_blank"),setTimeout(function(){i.closest("#cff").hasClass("cff-lb")&&i.find(".cff-photo, .cff-single-photo, .cff-album-cover, .cff-event-thumb, .cff-html5-video, .cff-iframe-wrap").each(function(){var a=n(this),o=p,s="",r="",f="";function l(t){return i.hasClass("cff-album-item")?String(t).replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/\n/g,"<br/>"):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/\n/g,"<br/>")}if(i.hasClass("cff-albums-only"))r="albumsonly",s=l(i.find("img").attr("alt")),void 0!==i.closest("#cff").attr("data-group")&&(f='data-cffgroupalbums="true"');else if(i.hasClass("cff-timeline-event")){var d="";i.find(".cff-author-text .cff-page-name").length&&(d+=i.find(".cff-author-text .cff-page-name").text()+"<br /><br />"),c.length>5&&(d+=c),s=l(d)}else if(i.hasClass("cff-event"))i.find(".cff-details").length&&(i.find(".cff
8-event-title").length&&(s='<span class="cff-event-title" style="font-weight:bold;">'+l(i.find(".cff-event-title").html()+"</span>")),i.find(".cff-date").length&&(s+='<span class="cff-date">'+l(i.find(".cff-date").html()+"</span>")),i.find(".cff-location").length&&(s+='<span class="cff-location">'+l(i.find(".cff-location").html()+"</span>")),s+='<span class="cff-desc">'+c+"</span>");else if(i.hasClass("cff-album-item"))s=l(i.find("img").attr("alt"));else{var u=c;""==c.trim()&&(u=i.find(".cff-post-desc").text()),""==u&&i.find(".cff-author .cff-story").length&&(u=i.find(".cff-author .cff-page-name").text()),""==u&&(u="&nbsp;"),s=l(u)}s.length>1&&(s=s.replace(/"/g,"&quot;"));var cffViewPostMediaLabel=((void 0!==window.cff_a11y_strings?window.cff_a11y_strings.viewPostMedia:"")||"View post media"),h='<a class="cff-lightbox-link nofancybox" rel="nofollow" aria-label="'+cffViewPostMediaLabel+'" ',m=void 0===window.cff||void 0===window.cff.feeds||window.cff.feeds[0].settings.consentGiven;if(a.hasClass("cff-iframe-wrap")){var g="";a.find("iframe").length&&void 0===(g=a.find("iframe").attr("src"))&&(g=a.find("iframe").attr("data-src")),a.find(".cff-iframe-placeholder").length&&(g=a.find(".cff-iframe-placeholder").attr("data-src")),h+='href="'+cffsiteurl+"/custom-facebook-feed-pro/assets/img/video-lightbox.png?"+o+'" data-iframe="'+g+'" '}else if(a.hasClass("cff-swf"))h+='href="'+cffsiteurl+'/custom-facebook-feed-pro/assets/img/video-lightbox.png" data-iframe="'+a.find("video").attr("src")+'" ';else{var v=-1!==a.find("img").attr("src").indexOf("placeholder")?a.find("img").attr("src"):void 0!==a.find("img").attr("data-orig-source")?a.find("img").attr("data-orig-source"):a.find("img").attr("src");if(void 0!==a.attr("data-img-src-set")){let t=JSON.parse(a.attr("data-img-src-set").replace(/\\\//g,"/"));void 0!==t[0]&&(v=Object.values(t[0]).slice(-1))}a.find("img").attr("data-cff-no-event-img-large")&&(v=a.find("img").attr("data-cff-no-event-img-large")),a.find("img").attr("data-cff-full-img")&&!t.hasClass("cff-doing-gdpr")&&(v=a.find("img").attr("data-cff-full-img")),m||(v=a.find("img").attr("src")),h+='href="'+v+'" data-iframe="" '}if(h+='data-cff-lightbox="cff-lightbox-'+i.closest("#cff").attr("data-cff-lb")+'" data-title="'+s+'" data-id="'+o+'" data-thumbs="true" '+f+" ",a.hasClass("cff-html5-video"))if(a.hasClass("cff-swf"))h+='data-url="'+a.find(".cff-html5-play").attr("href")+'" data-video="';else{var b=a.find("img").attr("data-cff-video");void 0!==b&&""!==b||void 0===a.attr("data-cff-video-link")&&""===a.attr("data-cff-video-link")||(b="https://www.facebook.com/v2.3/plugins/video.php?href= "+a.attr("data-cff-video-link")),"facebook"===a.attr("data-cff-video-player")&&(b="https://www.facebook.com/v2.3/plugins/video.php?href= "+a.attr("data-cff-video-link")),h+='data-url="'+a.find(".cff-html5-play").attr("href")+'" data-video="'+b}else a.hasClass("cff-video")?h+='data-url="https://facebook.com/'+a.attr("id")+'" data-video="'+a.attr("data-source"):a.hasClass("cff-iframe-wrap")?h+='data-url="https://facebook.com/'+p+'" data-video="':h+='data-url="'+a.attr("href")+'" data-video="';h+='" data-type="'+r+'" data-lb-comments="'+a.closest(".cff-lb").attr("data-lb-comments")+'"><div class="cff-photo-hover"><div class="cff-html5-play"></div><span class="cff-screenreader">View</span></div></a>',a.prepend(h),e||a.on("mouseenter",function(){i.find(".cff-photo-hover").fadeIn(150)}).on("mouseleave",function(){i.find(".cff-photo-hover").stop().fadeOut(500)})})},2e3),i.find(".cff-share-link").off("click").on("click",function(t){t.preventDefault();var e=i.find(".cff-share-tooltip");if(e.is(":visible")){e.hide().find("a").removeClass("cff-show");jQuery(this).attr("aria-expanded","false")}else{jQuery(this).attr("aria-expanded","true");e.show();var n=0;e.find("a").each(function(){var t=jQuery(this);setTimeout(function(){t.addClass("cff-show")},n),n+=20})}}),void 0!==t.attr("data-restricted"))var x=!0;else x=!1;if(i.hasClass("cff-album-item")){var C=i.attr("data-cff-full-size");void 0!==C&&""!=C&&(x?setTimeout(()=>
8{i.find(".cff-lightbox-link").attr("href",C),i.find(".cff-lightbox-link").closest(".cff-album-cover").css("background-image","url("+C+")"),i.find("img").attr("src",C)},100):i.find(".cff-lightbox-link").attr("href",C))}if(i.find(".cff-html5-video").length||i.hasClass("cff-video")){var k=!1;if(i.find(".cff-html5-video").length&&"true"==(_=i.find(".cff-html5-video")).attr("data-cff-live")&&(k=!0),i.hasClass("cff-video"))var _=i;k&&n(window).width()<=640||i.closest(".cff").hasClass("cff-private-group")||"standard"!=_.attr("data-cff-video-player")&&i.find(".cff-lightbox-link").attr({"data-iframe":"https://www.facebook.com/v2.3/plugins/video.php?href="+_.attr("data-cff-video-link"),"data-video":""})}setTimeout(function(){i.find(".cff-iframe-wrap .fluid-width-video-wrapper iframe").unwrap().wrap('<div style="float: left; width: 100%;"></div>'),i.find(".cff-iframe-wrap .iframe-embed iframe").unwrap("iframe-embed")},500),i.find(".cff-album-info a").on("click",function(t){t.preventDefault(),i.find(".cff-lightbox-link").trigger("click")})}),jQuery(document).off("click",".cff-comment-replies a").on("click",".cff-comment-replies a",function(){cffLoadCommentReplies(n(this))}),n(".cff-wrapper").each(function(){var t=n(this).find(".cff"),e=t.attr("data-grid-pag"),i=(cffGetShortcodeToken(t),n(this).find(".cff"));if(void 0!==i.attr("data-nummobile")){var a=void 0!==i.attr("data-pag-num")&&""!==i.attr("data-pag-num")?parseInt(i.attr("data-pag-num")):1,o=void 0!==i.attr("data-nummobile")&&""!==i.attr("data-nummobile")?parseInt(i.attr("data-nummobile")):a,s=i.find(".cff-item").length?".cff-item":".cff-album-item";t.hasClass("cff-carousel")&&(s=".cff_owl-item"),n(window).width()<480?(o<i.find(s).length&&i.find(s).slice(o-i.find(s).length).addClass("cff-num-diff-hide"),t.hasClass("cff-carousel")&&i.find(".cff_owl-page").slice(o-i.find(".cff_owl-page").length).css({display:"none"})):(a<i.find(s).length&&i.find(s).slice(a-i.find(s).length).addClass("cff-num-diff-hide"),t.hasClass("cff-carousel")&&i.find(".cff_owl-page").slice(o-i.find(".cff_owl-page").length).css({display:"inline-block"})),i.removeAttr("data-nummobile")}if(t.hasClass("cff-masonry-js")&&!t.hasClass("cff-all-reviews")){if(t.find(".cff-album-item").length&&!t.hasClass("cff-masonry"))return void t.removeClass("cff-masonry-js");cffAddMasonry(t),setTimeout(function(){cffAddMasonry(t)},1e3),n(window).on("resize",function(){setTimeout(function(){cffAddMasonry(t)},500)}),t.find(".cff-credit").length&&t.css("padding-bottom",30)}function r(){if(t.hasClass("cff-album-items-feed"))var e=t;else e=t.find(".cff-item").first();e.innerWidth()<400?t.hasClass("cff-disable-narrow")||t.addClass("narrow"):t.removeClass("narrow"),e.innerWidth()<250&&t.addClass("cff-super-narrow")}function f(){t.find(".cff-item").first().innerWidth()<190+n(".cff-post-links").innerWidth()?t.find(".cff-post-links").addClass("cff-left"):t.find(".cff-post-links").removeClass("cff-left")}r(),f();var c,l=(c=0,function(t,e){clearTimeout(c),c=setTimeout(t,e)});function d(e){if(!t.hasClass("cff-masonry")&&!t.hasClass("cff-disable-liquid")){var i=t.find(".cff-album-item").eq(0).find("a").innerWidth();t.find(".cff-album-item a").css("height",i),t.find(".cff-photo.cff-crop").css("height",t.find(".cff-photo.cff-crop").width()),t.find(".cff-item.cff-album .cff-photo.cff-multiple, .cff-video-post .cff-html5-video.cff-multiple").each(function(){var t=n(this),i=t.find("img").first().width();if(i<10&&(i=300),t.hasClass("cff-img-layout-3")&&t.find(".cff-img-attachments .cff-crop").css("height",i/2),t.hasClass("cff-img-layout-4")&&t.find(".cff-img-attachments .cff-crop").css("height",i/3),t.is(".cff-img-layout-3, .cff-img-layout-4")){var a=t.find(".cff-main-image"),o=.6;t.hasClass("cff-img-layout-4")&&(o=.8);var s=Math.round(i/a.find("img").attr("data-ratio"));a.css("height",Math.round(Math.max(s*o,t.find(".cff-img-attachments").height())))}else t.is(".cff-img-layout-2")&&(t.find(".cff-img-wrap.cff-crop"),t.hasClass("cff-portrait")?t.find(".cff-img-wrap.cff-crop").css("height",.8*t.width()):t.find(".cff-img-wrap.cff-crop").css("height",t.width()/2));1==e&&(t.is(".cff-img-layout-3")||t.is(".cff-img-layout-4"))&&t.find(".cff
8-main-image").height()<10&&t.find(".cff-img-layout-3 .cff-main-image img, .cff-img-layout-4 .cff-main-image img").css({display:"block",visibility:"visible"}),i<200?t.addClass("cff-small-layout"):t.removeClass("cff-small-layout")})}}window.addEventListener("resize",function(t){l(function(){r(),f(),d()},500)}),d(!1),setTimeout(function(){d(!1)},50),setTimeout(function(){d(!0)},500),setTimeout(function(){d(!0)},1500);var u=parseInt(t.attr("data-pag-num")),h=u,m=t.find(".cff-event").length;if(n(".cff-event:visible").length,t.find(".cff-event").slice(0,u).css("display","inline-block"),n(".cff-load-placeholder").length&&($loadmorePlaceholder=n(".cff-load-placeholder").first().find("a"),n(".cff-load-placeholder").before($loadmorePlaceholder),n(".cff-load-placeholder").remove(),m>u&&$loadmorePlaceholder.on("click",function(){var e=t.find(".cff-event:visible").length,i=(parseInt(t.attr("data-pag-num")),!1);e<m?(t.find(".cff-event").slice(0,u+n(".cff-event:visible").length).css("display","inline-block"),n(".cff-event:visible").length===m&&(i=!0)):i=!0,i&&function(){var e=window.cff_a11y_strings||{},o=t.find(".cff-load-more"),r=o.attr("data-no-more"),a=void 0===r||""==r?e.noMorePosts||"No more posts":r.replace(/\\'/g,"'"),c=o.is(":focus")||o.find(":focus").length>0;o.replaceWith(function(){return n('<p class="cff-no-more-posts" tabindex="-1">'+a+"</p>")}),t.find("[data-cff-feed-status]").text(a);if(c)try{t.find(".cff-no-more-posts").first().trigger("focus")}catch(t){}}(),setTimeout(function(){cffAddMasonry(t)},200),setTimeout(function(){cffAddMasonry(t)},1e3)})),t.hasClass("cff-all-reviews")){var p=parseInt(t.attr("data-pag-num")),g=p,b=parseInt(t.attr("data-offset"));(void 0===b||isNaN(b))&&(b=0),t.find(".cff-review").slice(0,p+b).css("display","inline-block"),b>0&&t.find(".cff-review").slice(0,b).remove(),t.hasClass("cff-masonry-js")&&(cffAddMasonry(t),setTimeout(function(){cffAddMasonry(t)},1e3),n(window).on("resize",function(){setTimeout(function(){cffAddMasonry(t)},500)}),t.find(".cff-credit").length&&t.css("padding-bottom",30))}var y=t.find("#cff-load-more"),w=t.find(".cff-load-more").attr("data-cff-no-posts-added");function x(t,e){var i=""==e.attr("data-no-more")?(window.cff_a11y_strings||{}
8).noMorePosts||"No more posts":e.attr("data-no-more").replace(/\\'/g,"'");var f=e.is(":focus")||e.find(":focus").length>0;t.find(".cff-no-more-posts").length<1&&e.hide().after('<p class="cff-no-more-posts" tabindex="-1">'+i+"</p>");if(f){try{t.find(".cff-no-more-posts").first().trigger("focus")}catch(o){}}}void 0!==w&&0!=w||y.attr("data-cff-no-posts-added","false"),t.find(".cff-item, .cff-album-item").length<1&&y.attr("data-cff-no-posts-added","true"),y.off().on("click",function(){var cffA11y="undefined"!=typeof window.cff_a11y_strings?window.cff_a11y_strings:{},cffLoadingMore=cffA11y.loadingMore||"Loading more posts",cffPostsLoaded=cffA11y.postsLoaded||"More posts loaded";var i=t.attr("data-cff-shortcode"),a=t.find(".cff-pag-url"),o=a.attr("data-cff-pag-url"),s=a.attr("data-transient-name"),r=a.attr("data-post-id"),f=CFFLocationGuess(t),c=t.find(".cff-upcoming-event").length;if(c>0)return h+=u,t.find(".cff-upcoming-event").slice(0,h).css("display","inline-block").removeClass("cff-num-diff-hide"),h>c&&(t.find("#cff-load-more").hide(),x(t,y)),void(t.hasClass("cff-masonry-js")&&!t.hasClass("cff-masonry-css")&&cffAddMasonry(t));if(t.hasClass("cff-all-reviews")){var l=t.find(".cff-review").length;if(l>0)return g+=p,t.find(".cff-review").slice(0,g).css("display","inline-block"),g>l&&(t.find("#cff-load-more").hide(),x(t,y)),void(t.hasClass("cff-masonry-js")&&!t.hasClass("cff-masonry-css")&&cffAddMasonry(t))}if(t.find("[data-cff-feed-status]").text(cffLoadingMore),y.off().removeAttr("id").addClass("cff-disabled"),a.remove(),t.hasClass("cff-album-items-feed"))var d=".cff-album-item";else d=".cff-item";if(".cff-album-item"==d){""!=o&&"{}"!=o||(o=a.attr("data-cff-prev-url"));var m=a.attr("data-cff-prev-url"),b=void 0===m?"":JSON.parse(m)}var w=void 0===o?"":JSON.parse(o);if(".cff-album-item"==d)for(var C in b)b.hasOwnProperty(C)&&void 0===w[C]&&(w[C]=b[C]);""!=o&&"{}"!=o&&0!=o&&"0"!=o||".cff-item"!=d?(y.addClass("cff-loading").append('<div class="cff-loader"></div>'),y.find(".cff-loader").css("background-color",y.css("color"))):(y.hide(),x(t,y));var k=!1;if(t.attr("data-timeline-pag")&&(k=!0),1==k);else for(var C in w)if(w.hasOwnProperty(C)&&"latest_record_date"!=C){var _=w[C],I=v("until",_),A=t.find(d+".cff-"+C).last(),z=(parseInt(A.attr("data-cff-timestamp"))-1).toString();void 0!==A.attr("data-cff-backdated")&&(z=(parseInt(A.attr("data-cff-backdated"))-1).toString()),isNaN(parseFloat(z))&&(A=t.find(d).last(),z=(parseInt(A.attr("data-cff-timestamp"))-1).toString(),void 0!==A.attr("data-cff-backdated")&&(z=(parseInt(A.attr("data-cff-backdated"))-1).toString()));var E=_;"true"==y.attr("data-cff-no-posts-added")||".cff-album-item"!==d&&(E=-1!==_.indexOf("until=")?_.replace("until="+I,"until="+z):_+"&until="+z).indexOf("&after=")>-1&&(E=E.replace("&after="+v("after",E),"")),".cff-album-item"!==d&&((_.indexOf("/events")>-1&&_.indexOf("&after=")>-1||_.indexOf("/ratings")>-1&&_.indexOf("&after=")>-1&&t.hasClass("cff-all-reviews"))&&(E=E.replace("&after="+v("after",E),"")),E.indexOf("&__paging_token")>-1&&(E=E.replace("&__paging_token="+v("__paging_token",E),"")),w[C]=E)}var T=void 0!==t.attr("data-page")?t.attr("data-page"):1,j=parseInt(T)+1;t.attr("data-page",j);let F="";void 0!==t.attr("data-locatornonce")&&(F=t.attr("data-locatornonce")),o=JSON.stringify(w),jQuery.ajax({url:cffajaxurl,type:"post",data:{action:"cff_get_new_posts",shortcode_data:i,pag_url:o,feed_id:s,post_id:r,location:f,page:j,locator_nonce:F},success:function(i){t.find(".cff-num-diff-hide").removeClass("cff-num-diff-hide"),-1==i.indexOf("<div class=")&&-1==i.indexOf("<span class=")?y.attr("data-cff-no-posts-added","true"):y.attr("data-cff-no-posts-added","false"),t.find(".cff-item, .cff-album-item").length?t.find(".cff-item, .cff-album-item").addClass("cff-masonry-new").removeClass("cff-new").last().after(i):t.find(".cff-posts-wrap").append(i);var a=void 0!==t.attr("data-page")?t.attr("data-page"):2,o=t.attr("data-mobilenumber"),s=parseInt(a)*parseInt(o);if(t.attr({"data-shownmobileposts":s}),n(window).width()<480){var r=t.find(".cff-item").length?".cff-item":".cff-album-item",f=s;f<t.find(r).length&&t.find(r).slice(f-t.find(r).length).addClass("cff-num-diff-hide")}
8t.find(".cff-album-item").each(function(t){var e=n('[id="'+this.id+'"]').eq(1);e.length&&(this_classes=e.attr("class"),this_classes=this_classes.replace("cff-album-item",""))}),y.removeClass("cff-loading").find(".cff-loader").remove(),y.attr("id","cff-load-more").removeClass("cff-disabled"),cff_init(t),y=t.find(".cff-load-more"),t.find("[data-cff-feed-status]").text(cffPostsLoaded);var c=parseInt(y.closest(".cff").attr("data-cff-index"))-1;void 0!==window.cff&&"undefined"!==window.cff.feeds[c]&&window.cff.feeds[c].afterLoadMoreClicked(y),(t.find(".cff-album-item").length&&t.hasClass("cff-disable-liquid")||t.hasClass("cff-masonry-js")&&!t.hasClass("cff-masonry-css"))&&(t.find(".cff-posts-wrap").masonry("appended",t.find(".cff-new")),t.find(".cff-view-comments, .cff-comment-replies a, .cff-show-more-comments a").off().on("click",function(){t.hasClass("cff-opaque-comments")||setTimeout(function(){cffAddMasonry(t)},500)}));var l=t.find(".cff-pag-url").attr("data-cff-pag-url");".cff-item"==d||"cursor"==e?"{}"==l&&x(t,y):i.indexOf('class="cff-album-item')<0&&i.indexOf('class="cff-empty-album')<0&&x(t,y),"function"==typeof cff_custom_js&&cff_custom_js(jQuery)}})}).on("mouseenter",function(){n(this).css("background",n(this).attr("data-cff-hover"))}).on("mouseleave",function(){n(this).css("background",n(this).attr("data-cff-bg"))}),t.find(".cff-album-item").length&&!t.hasClass("cff-masonry")&&t.removeClass("cff-masonry cff-masonry-js cff-masonry-css"),t.find(".cff-more-dates").on("click",function(){n(this).siblings(".cff-multiple-dates").slideToggle(100)})}),n(".cff-timeline-feed").length&&"undefined"==typeof cffdisablecommentcaching){var d=function(){var t=[];return n(".cff-posts-wrap").each(function(){n(this).find(".cff-item.cff-new:not(.cff-event)").each(function(){var e=n(this),i=e.find(".cff-view-comments").attr("id");e.closest(".cff-item").attr("data-object-id"),t.push(i)})}),t}(),u=function(){var t=[];return n(".cff-timeline-feed").each(function(){$cffPagUrl=n(this).find(".cff-pag-url");var e={feedID:$cffPagUrl.attr("data-feed-id"),postID:$cffPagUrl.attr("data-post-id"),shortCodeAtts:""==n(this).attr("data-cff-shortcode").trim()?{}:JSON.parse(n(this).attr("data-cff-shortcode")),location:CFFLocationGuess(n(this))};t.push(e)}),t}(),h=void 0!==t.attr("data-cff-shortcode")&&0===t.attr("data-cff-shortcode").indexOf("{")?JSON.parse(t.attr("data-cff-shortcode")):{},m=void 0!==t.attr("data-page")?parseInt(t.attr("data-page")):1;n.ajax({url:cffajaxurl,type:"POST",async:!0,cache:!1,data:{action:"get_meta",comments_array_ids:d,feedLocatorData:u,atts:h,page:m},success:function(e){""==e||e.length<1?s=[]:(e=e.replace(/\\'/g,"'"),s=JSON.parse(e)),t.each(function(){n(this).find(".cff-item.cff-new:not(.cff-event)").each(function(){var t=n(this),e=t.find(".cff-view-comments").attr("id"),i=t.closest(".cff-item").attr("data-object-id");s.hasOwnProperty(e)&&""!=s[e]?(y(t,JSON.parse(s[e]).content),b(t,JSON.parse(s[e]).content)):p(t,e,i)})})},error:function(t,e,i){}})}else n("#cff .cff-item.cff-new:not(.cff-event)").each(function(){var t=n(this),e=t.find(".cff-view-comments").attr("id"),i=t.closest(".cff-item").attr("data-object-id");p(t,e,i)});function p(e,i,a){if(0!=e.find(".cff-view-comments").length){(void 0===a||a.length<2)&&(a="");var o="object",c=e.find(".cff-comments .cff-count").text(),l=e.find(".cff-likes .cff-count").text(),d=e.attr("data-page-id");void 0!==c&&""!=c||(c=0),void 0!==e.attr("data-comments-js")&&(void 0!==c&&""!=c||(c=1)),void 0!==l&&""!=l||(l=0),(void 0===a||a.length<2||e.find(".cff-comments-box").hasClass("cff-shared-story")||e.hasClass("cff-timeline-event"))&&(o="post");e.hasClass("cff-timeline-event")&&"&timeline_event=true";e.closest("#cff").hasClass("cff-group")&&"&usegrouptoken=true","true"==e.closest("#cff").attr("data-own-token")&&"&useowntoken=true",shortcode_token_param=cffGetShortcodeToken(e.closest("#cff"));e.hasClass("cff-video-post");if(cffsiteurl,shortcode_token_param,e.hasClass("cff-album"),void 0===window.cff_block_editor){var u={action:"cff_query",o_id:a,post_id:i,use_id:o,comments_num:c,likes_num:l,type:"meta",pageid:d};if(e.hasClass("cff-video-post")&&(u.isvideo=!0),e.hasClass("cff-timeline-event")&&(u.timeline_event=!0),e.closest("#cff").hasClass("cff-group")&&(u.usegrouptoken=!0),"true"==e.closest("#cff").attr("data-own-token")&&(u.useowntoken=!0),""!==shortcode_token_param){var h=shortcode_token_param.split("=");u.at=h[1]}cffAjax(u,function(a){f.push({id_post:i,content:a}),s[i]=a,r[i]=a,y(e,a),b(e,a),function(e){if("undefined"==typeof cffdisablecommentcaching&&!g){var i=0;setTimeout(function(){var t=setInterval(function(){a(e),2==++i&&clearInterval(t)},3e3);a(e)},500),g=!0}function a(e){var i=JSON.stringify(e),a=void 0!==t.attr("data-cff-shortcode")&&0===t.attr("data-cff-shortcode").indexOf("{")?JSON.parse(t.attr("data-cff-shortcode")):{},o=void 0!==t.attr("data-page")?parseInt(t.attr("data-page")):1,s={url:cffajaxurl,type:"POST",async:!0,cache:!1,data:{action:"cache_meta",nonce:cffOptions.nonce,metadata:i,atts:a,page:o},success:function(t){}
8,error:function(t,e,i){}};n.ajax(s)}}(f)})}}}var g=!1;function v(t,e){t=t.replace(/[\[\]]/g,"\\$&");var i=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}function b(t,e){void 0!==(e=JSON.parse(e)).images&&null!==e.images&&t.find(".cff-lightbox-link").attr("href",e.images[0].source)}function y(t,e){if("<"==e.substring(0,1))return!1;e=JSON.parse(e);var i="",a="",o=parseInt(t.find(".cff-comments-box").attr("data-num")),s=void 0!==e.likes?e.likes.summary.total_count:0,r=t.find(".cff-comments-box"),f=r.find(".cff-comment-likes"),c=(Boolean(t.find(".cff-comments-box").attr("data-cff-hide-avatars")),Boolean(t.find(".cff-comments-box").attr("data-cff-expand-comments"))),l=r.attr("data-cff-like-text"),d=r.attr("data-cff-likes-text"),u=r.attr("data-cff-reacted-text"),h=r.attr("data-cff-and-text"),m=r.attr("data-cff-other-text"),p=r.attr("data-cff-others-text"),g=r.attr("data-cff-reply-text"),v=r.attr("data-cff-replies-text"),b=void 0!==e.comments?e.comments.summary.total_count:0,y=t.find(".cff-comments-box").attr("data-cff-meta-link-color"),w=Boolean(t.find(".cff-comments-box").attr("data-cff-post-tags"));void 0!==t.attr("data-comments-js")&&void 0!==e.comments&&e.comments.summary.total_count;var x=void 0!==e.haha?e.haha.summary.total_count:0,C=void 0!==e.love?e.love.summary.total_count:0,k=void 0!==e.wow?e.wow.summary.total_count:0,_=void 0!==e.sad?e.sad.summary.total_count:0,I=void 0!==e.angry?e.angry.summary.total_count:0,A=[x,C,k,_,I],z=A.sort(T)[0],E=A.sort(T)[1];function T(t,e){return e-t}var j="",F=!1,D=!1,B=!1,S=!1,L=!1,Q='<svg role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M462.3 62.7c-54.5-46.4-136-38.7-186.6 13.5L256 96.6l-19.7-20.3C195.5 34.1 113.2 8.7 49.7 62.7c-62.8 53.6-66.1 149.8-9.9 207.8l193.5 199.8c6.2 6.4 14.4 9.7 22.6 9.7 8.2 0 16.4-3.2 22.6-9.7L472 270.5c56.4-58 53.1-154.2-9.7-207.8zm-13.1 185.6L256.4 448.1 62.8 248.3c-38.4-39.6-46.4-115.1 7.7-161.2 54.8-46.8 119.2-12.9 142.8 11.5l42.7 44.1 42.7-44.1c23.2-24 88.2-58 142.8-11.5 54 46 46.1 121.5 7.7 161.2z"></path></svg><span class="cff-svg-bg-dark"><svg class="cff-svg-bg" role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"></path></svg></span>',O='<svg role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm152.7 400.7c-19.8 19.8-43 35.4-68.7 46.3-26.6 11.3-54.9 17-84.1 17s-57.5-5.7-84.1-17c-25.7-10.9-48.8-26.5-68.7-46.3-19.8-19.8-35.4-43-46.3-68.7-11.3-26.6-17-54.9-17-84.1s5.7-57.5 17-84.1c10.9-25.7 26.5-48.8 46.3-68.7 19.8-19.8 43-35.4 68.7-46.3 26.6-11.3 54.9-17 84.1-17s57.5 5.7 84.1 17c25.7 10.9 48.8 26.5 68.7 46.3 19.8 19.8 35.4 43 46.3 68.7 11.3 26.6 17 54.9 17 84.1s-5.7 57.5-17 84.1c-10.8 25.8-26.4 48.9-46.3 68.7zM281.8 206.3l80 48c11.5 6.8 24-7.6 15.4-18L343.6 196l33.6-40.3c8.6-10.3-3.8-24.8-15.4-18l-80 48c-7.7 4.7-7.7 15.9 0 20.6zm-147.6 48l80-48c7.8-4.7 7.8-15.9 0-20.6l-80-48c-11.6-6.9-24 7.7-1
85.4 18l33.6 40.3-33.6 40.3c-8.7 10.4 3.8 24.8 15.4 18zM383 288H113c-9.6 0-17.1 8.4-15.9 18 8.8 71 69.4 126 142.9 126h16c73.4 0 134-55 142.9-126 1.2-9.6-6.3-18-15.9-18zM256 400h-16c-50.2 0-93.5-33.3-107.4-80h230.8c-13.9 46.7-57.2 80-107.4 80z"></path></svg><svg class="cff-svg-bg" role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 152c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm88 272h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18-8.9 71-69.5 126-142.9 126z"></path></svg>',R='<svg role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 464c-119.1 0-216-96.9-216-216S128.9 40 248 40s216 96.9 216 216-96.9 216-216 216zm0-184c-35.3 0-64 28.7-64 64s28.7 64 64 64 64-28.7 64-64-28.7-64-64-64zm0 96c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32zm-48-176c0-17.7-14.3-32-32-32s-32 14.3-32 32 14.3 32 32 32 32-14.3 32-32zm128-32c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32z"></path></svg><svg class="cff-svg-bg" role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 208c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm112 208c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm80-176c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"></path></svg>',M='<svg role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 464c-119.1 0-216-96.9-216-216S128.9 40 248 40s216 96.9 216 216-96.9 216-216 216zm0-152c-44.4 0-86.2 19.6-114.8 53.8-5.7 6.8-4.8 16.9 2 22.5 6.8 5.7 16.9 4.8 22.5-2 22.4-26.8 55.3-42.2 90.2-42.2s67.8 15.4 90.2 42.2c5.3 6.4 15.4 8 22.5 2 6.8-5.7 7.7-15.8 2-22.5C334.2 339.6 292.4 320 248 320zm-80-80c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32z"></path></svg><svg class="cff-svg-bg" role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm170.2 218.2C315.8 367.4 282.9 352 248 352s-67.8 15.4-90.2 42.2c-13.5 16.3-38.1-4.2-24.6-20.5C161.7 339.6 203.6 320 248 320s86.3 19.6 114.7 53.8c13.6 16.2-11 36.7-24.5 20.4z"></path></svg>',P='<svg role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 464c-119.1 0-216-96.9-216-216S128.9 40 248 40s216 96.9 216 216-96.9 216-216 216zm0-136c-31.2 0-60.6 13.8-80.6 37.8-5.7 6.8-4.8 16.9 2 22.5s16.9 4.8 22.5-2c27.9-33.4 84.2-33.4 112.1 0 5.3 6.4 15.4 8 22.5 2 6.8-5.7 7.7-15.8 2-22.5-19.9-24-49.3-37.8-80.5-37.8zm-48-96c0-2.9-.9-5.6-1.7-8.2.6.1 1.1.2 1.7.2 6.9 0 13.2-4.5 15.3-11.4 2.6-8.5-2.2-17.4-10.7-19.9l-80-24c-8.4-2.5-17.4 2.3-19.9 10.7-2.6 8.5 2.2 17.4 10.7 19.9l31 9.3c-6.3 5.8-10.5 14.1-10.5 23.4 0 17.7 14.3 32 32 32s32.1-14.3 32.1-32zm171.4-63.3l-80 24c-8.5 2.5-13.3 11.5-10.7 19.9 2.1 6.9 8.4 11.4 15.3 11.4.6 0 1.1-.2 1.7-.2-.7 2.7-1.7 5.3-1.7 8.2 0 17.7 14.3 32 32 32s32-14.3 32-32c0-9.3-4.1-17.5-10.5-23.4l31-9.3c8.5-2.5 13.3-11.5 10.7-19.9-2.4-8.5-11.4-13.2-19.8-10.7z"></path></svg><span class="cff-svg-bg-dark"><svg class="cff-svg-bg" role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 240c0-9.3 4.1-17.5 10.5-23.4l-31-9.3c-8.5-2.5-13.3-11.5-10.7-19.9 2.5-8.5 11.4-13.2 19.9-10.7l80 24c8.5 2.5 13.3 11.5 10.7 19.9-2.1 6.9-8.4 11.4-15.3 11.4-.5 0-1.1-.2-1.7-.2.7 2.7 1.7 5.3 1.7 8.2 0 17.7-14.3 32-32 32S136 257.7 136 240zm168 154.2c-27.8-33.4-84.2-33.4-112.1 0-13.5 16.3-38.2-4.2-24.6-20.5 20-24 49.4-37.8 80.6-37.8s60.6 13.8 80.6 37.8c13.8 16.5-11.1 36.6-24.5 20.5zm76.6-186.9l-31 9.3c6.3 5.8 10.5 14.1 10.5 23.4 0 17.7-14.3 32-32 32s-32-14.3-32-32c0-2.9.9-5.6 1.7-8.2-.6.1-1.1.2-1.7.2-6.9 0-13.2-4.5-15.3-11.4-2.5-8.5 2.3-17.4 10.7-19.9l80-24c8.4-2.5 17.4 2.3 19.9 10.7 2.5 8.5-2.3 17.4-10.8 19.9z"></path></svg></span>',q="";if(z>0&&n("#cff").hasClass("cff-theme-default_theme")&&(e.love.summary.total_count==z&&(q+='<span class="cff-love cff-reaction-one cff-icon">'+Q+"</span>",F=!0),e.haha.summary.total_count==z&&(q+='<span class="cff-haha cff-reaction-one cff-icon">'+O+"</span>
8",D=!0),e.wow.summary.total_count==z&&(q+='<span class="cff-wow cff-reaction-one cff-icon">'+R+"</span>",B=!0),e.sad.summary.total_count==z&&(q+='<span class="cff-sad cff-reaction-one cff-icon">'+M+"</span>",S=!0),e.angry.summary.total_count==z&&(q+='<span class="cff-angry cff-reaction-one cff-icon">'+P+"</span>",L=!0),j+=q),q.split("cff-reaction-one").length<3&&n("#cff").hasClass("cff-theme-default_theme")&&E>0){var N="";e.love.summary.total_count!=E||F||(N='<span class="cff-love cff-reaction-two cff-icon">'+Q+"</span>"),e.haha.summary.total_count!=E||D||(N='<span class="cff-haha cff-reaction-two cff-icon">'+O+"</span>"),e.wow.summary.total_count!=E||B||(N='<span class="cff-wow cff-reaction-two cff-icon">'+R+"</span>"),e.sad.summary.total_count!=E||S||(N='<span class="cff-sad cff-reaction-two cff-icon">'+M+"</span>"),e.angry.summary.total_count!=E||L||(N='<span class="cff-angry cff-reaction-two cff-icon">'+P+"</span>"),j+=N}t.find(".cff-meta .cff-likes").find(".cff-icon").length<2&&t.find(".cff-meta .cff-likes .cff-icon").after(j),0==parseInt(s)&&(parseInt(C)>0||parseInt(x)>0||parseInt(k)>0||parseInt(_)>0||parseInt(I)>0)&&(t.find(".cff-meta .cff-likes .cff-like").remove(),t.find(".cff-meta .cff-likes span").addClass("cff-no-animate"));var W=parseInt(s)+parseInt(C)+parseInt(x)+parseInt(k)+parseInt(_)+parseInt(I),$=!1;0==C&&0==x&&0==k&&0==_&&0==I&&($=!0);var G='<span class="cff-reactions-count">';if(parseInt(s)>0&&(G+='<span class="cff-like cff-icon"><svg role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M496.656 285.683C506.583 272.809 512 256 512 235.468c-.001-37.674-32.073-72.571-72.727-72.571h-70.15c8.72-17.368 20.695-38.911 20.695-69.817C389.819 34.672 366.518 0 306.91 0c-29.995 0-41.126 37.918-46.829 67.228-3.407 17.511-6.626 34.052-16.525 43.951C219.986 134.75 184 192 162.382 203.625c-2.189.922-4.986 1.648-8.032 2.223C148.577 197.484 138.931 192 128 192H32c-17.673 0-32 14.327-32 32v256c0 17.673 14.327 32 32 32h96c17.673 0 32-14.327 32-32v-8.74c32.495 0 100.687 40.747 177.455 40.726 5.505.003 37.65.03 41.013 0 59.282.014 92.255-35.887 90.335-89.793 15.127-17.727 22.539-43.337 18.225-67.105 12.456-19.526 15.126-47.07 9.628-69.405zM32 480V224h96v256H32zm424.017-203.648C472 288 472 336 450.41 347.017c13.522 22.76 1.352 53.216-15.015 61.996 8.293 52.54-18.961 70.606-57.212 70.974-3.312.03-37.247 0-40.727 0-72.929 0-134.742-40.727-177.455-40.727V235.625c37.708 0 72.305-67.939 106.183-101.818 30.545-30.545 20.363-81.454 40.727-101.817 50.909 0 50.909 35.517 50.909 61.091 0 42.189-30.545 61.09-30.545 101.817h111.999c22.73 0 40.627 20.364 40.727 40.727.099 20.363-8.001 36.375-23.984 40.727zM104 432c0 13.255-10.745 24-24 24s-24-10.745-24-24 10.745-24 24-24 24 10.745 24 24z"></path></svg><svg class="cff-svg-bg" role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M104 224H24c-13.255 0-24 10.745-24 24v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V248c0-13.255-10.745-24-24-24zM64 472c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zM384 81.452c0 42.416-25.97 66.208-33.277 94.548h101.723c33.397 0 59.397 27.746 59.553 58.098.084 17.938-7.546 37.249-19.439 49.197l-.11.11c9.836 23.337 8.237 56.037-9.308 79.469 8.681 25.895-.069 57.704-16.382 74.757 4.298 17.598 2.244 32.575-6.148 44.632C440.202 511.587 389.616 512 346.839 512l-2.845-.001c-48.287-.017-87.806-17.598-119.56-31.725-15.957-7.099-36.821-15.887-52.651-16.178-6.54-.12-11.783-5.457-11.783-11.998v-213.77c0-3.2 1.282-6.271 3.558-8.521 39.614-39.144 56.648-80.587 89.117-113.111 14.804-14.832 20.188-37.236 25.393-58.902C282.515 39.293 291.817 0 312 0c24 0 72 8 72 81.452z"></path></svg></span>',$||(parseInt(s)>0&&(G+='<span class="cff-like-count">'+s+"</span>"),C>0&&(G+='<span class="cff-reaction-wrap"><span class="cff-love cff-icon">'+Q+'</span><span class="cff-love-count">'+C+"</span></span>"),x>0&&(G+='<span class="cff-reaction-wrap"><span class="cff-haha cff-icon">'+O+'</span><span class="cff-haha-count">'+x+"</span></span>"),k>0&&(G+='<span class="cff-reaction-wrap"><span class="cff-wow cff-icon">'+R+'</span><span class="cff-wow-count">'+k+"</span></span>"),_>0&&(G+='<span class="cff-reaction-wrap"><span class="cff-sad cff-icon">'+M+'</span><span class="cff-sad-count">'+_+"</span></span>"),I>0&&(G+='<span class="cff-reaction-wrap"><span class="cff-angry cff-icon">
8'+P+'</span><span class="cff-angry-count">'+I+"</span></span>"))),G+="</span>",void 0!==e.likes)if(e.likes.data.length){a+='<span class="cff-likes-this-text">';var H="",U="";if(s>0&&void 0!==e.likes.data[0]){var Y=!1;void 0!==e.likes.data[0].link&&-1==e.likes.data[0].link.indexOf("/app_scoped_user_id/")&&(Y=!0),Y?H+='<a href="'+e.likes.data[0].link+'" target="_blank" rel="nofollow noopener" class="cff-liker-one-name" style="color:'+y+";":H='<span class="cff-liker-one-name" style="',$&&(H+=" margin-left: 5px"),H+='">'+e.likes.data[0].name,H+=Y?"</a>":"</span>"}s>1&&void 0!==e.likes.data[1]&&(Y=!1,void 0!==e.likes.data[1].link&&-1==e.likes.data[1].link.indexOf("/app_scoped_user_id/")&&(Y=!0),Y?U+='<a href="'+e.likes.data[1].link+'" target="_blank" rel="nofollow noopener" style="color:'+y+'">':U="<span>",U+=e.likes.data[1].name,U+=Y?"</a>":"</span>"),1==s?a+=H+" "+d:2==s?a+=H+" "+h+" "+U+" "+l:3==s?a+=H+", "+U+" "+h+" 1 "+m+" "+l:(a+=H+", "+U+" "+h+" ",25==s&&(a+='<span class="cff-comment-likes-count">'),a+=parseInt(W)-2,25==s&&(a+="</span>"),a+=" "+p,parseInt(W)==parseInt(s)?a+=" "+l:a+=" "+u),a+="</span>",f.find(".cff-reactions-count").length<1&&f.append('<span class="cff-likes-info-wrap">'+G+a+"</span>")}else $?f.hide():f.find(".cff-reactions-count").length<1&&f.append('<span class="cff-likes-info-wrap">'+G+"</span>");void 0!==e.comments&&n.each(e.comments.data,function(e,a){var s,r,f,l=void 0===window.cff||void 0===window.cff.feeds||window.cff.feeds[0].settings.consentGiven,d=cffEncodeHTML(a.message),u=(s=/(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim,r=/(^|[^\/])(www\.[\S]+(\b|$))/gim,f=/(([a-zA-Z0-9\-\_\.])+@[a-zA-Z\_]+?(\.[a-zA-Z]{2,6})+)/gim,d=d.replace(s,'<a href="$1" target="_blank" rel="nofollow noopener noreferrer">$1</a>').replace(r,'$1<a href="http://$2" target="_blank" rel="nofollow noopener noreferrer">$2</a>').replace(f,'<a href="mailto:$1">$1</a>'),!0),h=Boolean(t.find(".cff-comments-box").attr("data-cff-hide-avatars"));void 0!==a.from?cff_comment_from_id=a.from.id:(h=!0,u=!1,cff_comment_from_id=""),i+='<div class="cff-comment" id="cff_'+a.id+'" data-id="'+cff_comment_from_id+'"',i+=' style="',i+=e>=o?"display: none;":"display: block;",void 0!==t.find("#cff_"+a.id).attr("style")&&(i+=t.find("#cff_"+a.id).attr("style")),i+='"',void 0!==a.from&&void 0!==a.from.picture&&(i+='data-avatar="'+a.from.picture.data.url+'"'),i+=">",i+='<div class="cff-comment-text-wrapper">',i+='<div class="cff-comment-text',h&&(i+=" cff-no-image"),i+='"><p>',u&&(void 0!==a.from.link?i+='<a href="'+a.from.link+'" class="cff-name" target="_blank" rel="nofollow noopener" style="color:'+y+'">'+a.from.name+"</a>":i+='<span class="cff-name">'+a.from.name+"</span>"),w&&a.hasOwnProperty("message_tags")&&n.each(a.message_tags,function(t,e){tag_name=e.name,tag_link='<a href="https://facebook.com/'+e.id+'" target="_blank" rel="nofollow noopener" style="color:'+y+'">'+e.name+"</a>",d=d.replace(tag_name,tag_link)}),i+=d+"</p>",a.hasOwnProperty("attachment")&&a.attachment.hasOwnProperty("media")&&(i+=l?'<a class="cff-comment-attachment cff-feed-image" href="https://facebook.com/'+a.id+'" target="_blank" rel="nofollow noopener"><img src="'+a.attachment.media.image.src+'" alt="':'<a class="cff-comment-attachment cff-feed-image" href="https://facebook.com/'+a.id+'" target="_blank" rel="nofollow noopener"><span class="cff-comment-image-placeholder" data-src="'+a.attachment.media.image.src+'"></span>',l?(a.attachment.hasOwnProperty("title")?i+=a.attachment.title:i+="Attachment",i+='" /></a>'):i+="</a>"),i+='<span class="cff-time">';var m=t.find("#cff_"+a.id).attr("data-cff-comment-date");void 0!==m&&(i+='<span class="cff-comment-date">'+m+"</span>"),a.like_count>0&&(i+='<span class="cff-comment-likes"><span class="cff-comment-likes-bg"><b><svg role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M466.27 286.69C475.04 271.84 480 256 480 236.85c0-44.015-37.218-85.58-85.82-85.58H357.7c4.92-12.81 8.85-28.13 8.85-46.54C366.55 31.936 328.86 0 271.28 0c-61.607 0-58.093 94.933-71.76 108.6-22.747 22.747-49.615 66.447-68.76 83.4H32c-17.673 0-32 14.327-32 32v240c0 17.673 14.327 32 32 32h64c14.893 0 27.408-10.174 30.978-23.95 44.509 1.001 75.06 39.94 177.802 39.94 7.22 0 15.22.01 22.22.01 77.117 0 111.986-39.423 112.94-95.33 13.319-18.425 20.299-43.122 17.34-66.99 9.854-18.452 13.664-40.343 8.99-62.99zm-61.75 53.83c12.56 21.13 1.26 49.41-13.94 57.57 7.7 48.78-17.608 65.9-53.12 65.9h-37.82c-71.639 0-118.029-37.82-171.64-37.82V240h10.92c28.36 0 67.98-70.89 94.54-97.46 28.36-28.36 18.91-75.63 37.82-94.54 47.27 0 47.27 32.98 47.27 56.73 0 39.17-28.36 56.72-28.36 94.54h103.99c21.11 0 37.73 18.91 37.82 37.82.09 18.9-12.82 37.81-22.27 37.81 13.489 14.555 16.371 45.236-5.21 65.62zM88 432c0 13.255-10.745 24-24 24s-24-10.745-24-24 10.745-24 24-24 24 10.745 24 24z"></path></svg></b>'+a.like_count+"</span></span>"),i+="</span>";var p=parseInt(a.comment_count);if(p>0){var b;b=1==p?g:v,i+='<p class="cff-comment-replies" data-id="'+a.id+'"><a class="cff-comment-replies-a" href="javascript:void(0);" style="color:'+y+'"><span class="cff-replies-icon"></span>'+p+" "+b+'</a></p><div class="cff-comment-replies-box cff-empty"></div>'}i+="</div>",i+="</div>",!h&&u&&(i+='<div class="cff-comment-img cff-avatar-fallback">',void 0!==a.from.link&&(i+='<a href="https://facebook.com/'+a.from.link+'" target="_blank" rel="noopener">'),i+=c&&e<o?l?'<img src="'+a.from.picture.data.url+'" class="cff-feed-image" width=32 height=32 alt="'+a.from.name+'">':'<span class="cff-comment-avatar-placeholder" data-src="'+a.from.picture.data.url+'">':'<span class="cff-comment-avatar"></span>',void 0!==a.from.link&&(i+="</a>"),i+="</div>"),i+="</div>"}
8),t.find(".cff-comments-wrap .cff-comment").remove(),t.find(".cff-comments-wrap").prepend(i),t.find(".cff-show-more-comments").attr("data-cff-comments-total",b),t.find(".cff-comment-likes span").length>0&&t.find(".cff-comment-on-facebook").css({"border-top-left-radius":"0","border-top-right-radius":"0"}),t.find(".cff-comments-wrap .cff-comment").length>0&&t.find(".cff-comment-on-facebook").css({"border-bottom-left-radius":"0","border-bottom-right-radius":"0"}),t.find(".cff-comments-wrap .cff-comment").length<1&&t.find(".cff-comment-on-facebook").css("padding","8px 15px 8px 10px"),setTimeout(function(){t.closest(".cff").hasClass("cff-masonry-js")&&!t.closest(".cff").hasClass("cff-masonry-css")&&cffAddMasonry(t.closest(".cff"))},200)}function w(){var t=jQuery;t(".cff-lightbox-link").each(function(){var e=t(this);e.closest(".cff-album-item").attr("data-cff-full-size")?lborigSrc=e.attr("data-cff-full-size"):lborigSrc=e.parent().find("img").attr("data-orig-source"),e.attr("href",lborigSrc)}),t("img[data-orig-source]").each(function(){var e=t(this),i=e.attr("src"),n=e.attr("data-orig-source");n!=i&&e.attr("src",n),e.hasClass("cff-multi-image")&&e.css("background-image","url("+n+")")}),t(".cff-link-slider").each(function(){t(this).find(".cff-link-slider-slides").css("width","2500px")})}n(document).off("click","#cff .cff-html5-video .cff-html5-play").on("click","#cff .cff-html5-video .cff-html5-play",function(t){t.preventDefault();var e=n(this),i=e.closest(".cff-html5-video"),a=e.siblings("video")[0];a.play(),e.hide(),e.siblings(".cff-poster").hide(),a.hasAttribute("controls")?a.removeAttribute("controls"):a.setAttribute("controls","controls"),i.innerWidth()<150&&!i.hasClass("cff-no-video-expand")&&i.css("width","100%").closest(".cff-item").find(".cff-text-wrapper").css("width","100%")}),void 0===window.cff||void 0===window.cff.feeds?t.find(".cff_resized_image_data").length||w():void 0!==window.cff.feeds[0]&&(window.cff.feeds[0].settings.resizingEnabled||w()),setTimeout(function(){t.find(".cff-link-slider").each(function(){var t=n(this),e=t.find(".cff-link-slider-slides"),i=e.find(".cff-link-slider-item"),a=i.length,o=t.width(),s=0;function r(i){"prev"==i?s--:s++,e.css("left",-s*o),s==a-1?t.find("a.cff-slider-next").hide():t.find("a.cff-slider-next").show(),s>0?t.find("a.cff-slider-prev").show():t.find("a.cff-slider-prev").hide()}e.css({width:o*a}),i.css({width:o}),t.find("a.cff-slider-prev, a.cff-slider-next").on("click",function(t){t.preventDefault(),n(this).hasClass("cff-slider-prev")?r("prev"):r("next")}),setTimeout(function(){var t=e.find(".cff-link-slider-item").first().height();e.find(".cff-final-item").css("height",t).find("img").css("margin-top",t/2-100)},1500),e.find(".cff-link-slider-item").show()})},200)})}(jQuery);
9        /*!
10                imgLiquid v0.9.944 / 03-05-2013
11                https://github.com/karacas/imgLiquid
12                */
13        var n,a,o,s=s||{VER:"0.9.944"};s.bgs_Available=!1,s.bgs_CheckRunned=!1,jQuery(".cff").each(function(){jQuery(this).hasClass("cff-disable-liquid")||jQuery(this).find(".cff-new .cff-album-cover img").css("visibility","hidden")}),t.find(".cff-new .cff-crop img").css("visibility","hidden"),jQuery("#cff .cff-img-attachments .cff-crop img").css("opacity",0),function(t){t.fn.extend({imgLiquid:function(e){this.defaults={fill:!0,verticalAlign:"center",horizontalAlign:"center",useBackgroundSize:!1,useDataHtmlAttr:!0,responsive:!0,delay:!1,fadeInTime:!1,removeBoxBackground:!1,hardPixels:!0,responsiveCheckTime:500,timecheckvisibility:500,onStart:null,onFinish:null,onItemStart:null,onItemFinish:function(t,e,i){i.addClass("cffFadeIn")},onItemError:null},function(){if(!s.bgs_CheckRunned){s.bgs_CheckRunned=!0;var e=t('<span style="background-size:cover" />');t("body").append(e),function(){var t=e[0];if(t&&window.getComputedStyle){var i=window.getComputedStyle(t,null);i&&i.backgroundSize&&(s.bgs_Available="cover"===i.backgroundSize)}}(),e.remove()}}();var i=this;return this.options=e,this.settings=t.extend({},this.defaults,this.options),this.settings.onStart&&this.settings.onStart(),this.each(function(e){var n=i.settings,a=t(this),o=t("img:first",a);function r(){(n.responsive||o.data("imgLiquid_oldProcessed"))&&o.data("imgLiquid_settings")&&(n=o.data("imgLiquid_settings"),a.actualSize=a.get(0).offsetWidth+a.get(0).offsetHeight/1e4,a.sizeOld&&a.actualSize!==a.sizeOld&&c(),a.sizeOld=a.actualSize,setTimeout(r,n.responsiveCheckTime))}function f(){o.data("imgLiquid_error",!0),a.addClass("imgLiquid_error"),n.onItemError&&n.onItemError(e,a,o),l()}function c(){var t,i,s,r,f,c,d,u,h=0,m=0,p=a.width(),g=a.height();if(void 0===o.data("owidth")&&o.data("owidth",o[0].width),void 0===o.data("oheight")&&o.data("oheight",o[0].height),n.fill===p/g>=o.data("owidth")/o.data("oheight")?(t="100%",i="auto",s=Math.floor(p),r=Math.floor(p*(o.data("oheight")/o.data("owidth")))):(t="auto",i="100%",s=Math.floor(g*(o.data("owidth")/o.data("oheight"))),r=Math.floor(g)),d=p-s,"left"===(f=n.horizontalAlign.toLowerCase())&&(m=0),"center"===f&&(m=.5*d),"right"===f&&(m=d),-1!==f.indexOf("%")&&(f=parseInt(f.replace("%",""),10))>0&&(m=d*f*.01),u=g-r,"left"===(c=n.verticalAlign.toLowerCase())&&(h=0),"center"===c&&(h=.5*u),"bottom"===c&&(h=u),-1!==c.indexOf("%")&&(c=parseInt(c.replace("%",""),10))>0&&(h=u*c*.01),n.hardPixels&&(t=s,i=r),o.css({width:t,height:i,"margin-left":Math.floor(m),"margin-top":Math.floor(h)}),!o.data("imgLiquid_oldProcessed")){o.fadeTo(n.fadeInTime,1),o.data("imgLiquid_oldProcessed",!0);var v=o.attr("src");a.css({"background-image":"url("+v+")"}),a.addClass("imgLiquid_nobgSize"),a.addClass("imgLiquid_ready")}n.onItemFinish&&n.onItemFinish(e,a,o),l()}function l(){e===i.length-1&&i.settings.onFinish&&i.settings.onFinish()}o.length?(o.data("imgLiquid_settings")?(a.removeClass("imgLiquid_error").removeClass("imgLiquid_ready"),n=t.extend({},o.data("imgLiquid_settings"),i.options)):n=t.extend({},i.settings,function(){var t={};if(i.settings.useDataHtmlAttr){var e=a.attr("data-imgLiquid-fill"),n=a.attr("data-imgLiquid-horizontalAlign"),o=a.attr("data-imgLiquid-verticalAlign");"true"!==e&&"false"!==e||(t.fill=Boolean("true"===e)),void 0===n||"left"!==n&&"center"!==n&&"right"!==n&&-1===n.indexOf("%")||(t.horizontalAlign=n),void 0===o||"top"!==o&&"bottom"!==o&&"center"!==o&&-1===o.indexOf("%")||(t.verticalAlign=o)}return s.isIE&&i.settings.ieFadeInDisabled&&(t.fadeInTime=0),t}()),o.data("imgLiquid_settings",n),n.onItemStart&&n.onItemStart(e,a,o),s.bgs_Available&&n.useBackgroun
13dSize?(-1===a.css("background-image").indexOf(encodeURI(o.attr("src")))&&a.css({"background-image":'url("'+encodeURI(o.attr("src"))+'")'}),a.css({"background-size":n.fill?"cover":"contain","background-position":(n.horizontalAlign+" "+n.verticalAlign).toLowerCase(),"background-repeat":"no-repeat"}),t("a:first",a).css({display:"block",width:"100%",height:"100%"}),t("img",a).css({display:"none"}),n.onItemFinish&&n.onItemFinish(e,a,o),a.addClass("imgLiquid_bgSize"),a.addClass("imgLiquid_ready"),l()):function i(){if(o.data("oldSrc")&&o.data("oldSrc")!==o.attr("src")){var s=o.clone().removeAttr("style");return s.data("imgLiquid_settings",o.data("imgLiquid_settings")),o.parent().prepend(s),o.remove(),(o=s)[0].width=0,void setTimeout(i,10)}o.data("imgLiquid_oldProcessed")?c():(o.data("imgLiquid_oldProcessed",!1),o.data("oldSrc",o.attr("src")),t("img:not(:first)",a).css("display","none"),a.css({overflow:"hidden"}),o.fadeTo(0,0).removeAttr("width").removeAttr("height").css({visibility:"visible","max-width":"none","max-height":"none",width:"auto",height:"auto",display:"block"}),o.on("error",f),o[0].onerror=f,function t(){o.data("imgLiquid_error")||o.data("imgLiquid_loaded")||o.data("imgLiquid_oldProcessed")||(a.is(":visible")&&o[0].complete&&o[0].width>0&&o[0].height>0?(o.data("imgLiquid_loaded",!0),setTimeout(c,e*n.delay)):setTimeout(t,n.timecheckvisibility))}(),r())}()):f()})}})}(jQuery),void 0!==window.cff&&void 0!==window.cff.feeds||(window.cff=new Cff,window.cff.createPage(window.cff.createFeeds,{})),jQuery(document).ready(function(){var t=!0;jQuery(".cff").each(function(e){void 0!==window.cff&&void 0!==window.cff.feeds&&void 0===window.cff.feeds[e]&&(t=!1)}),t||window.cff.createPage(window.cff.createFeeds,{});var e=jQuery;e("#cookie-notice a").on("click",function(){setTimeout(function(){e.each(window.cff.feeds,function(t){window.cff.feeds[t].afterConsentToggled()})},1e3)}),e("#cookie-law-info-bar a").on("click",function(){setTimeout(function(){e.each(window.cff.feeds,function(t){window.cff.feeds[t].afterConsentToggled()})},1e3)}),e(".cli-user-preference-checkbox, .cky-notice button").on("click",function(){setTimeout(function(){e.each(window.cff.feeds,function(t){window.cff.feeds[t].checkConsent(),window.cff.feeds[t].afterConsentToggled()})},1e3)}),e(window).on("CookiebotOnAccept",function(t){e.each(window.cff.feeds,function(t){window.cff.feeds[t].settings.consentGiven=!0,window.cff.feeds[t].afterConsentToggled()})}),e(".cmplz-btn").on("click",function(){"function"==typeof cmplz_accepted_categories&&setTimeout(function(){cmplz_accepted_categories().indexOf("marketing")>-1&&e.each(window.cff.feeds,function(t){window.cff.feeds[t].settings.consentGiven=!0,window.cff.feeds[t].afterConsentToggled()})},1e3)}),e(document).on("cmplzEnableScripts",function(t){"marketing"===t.detail&&e.each(window.cff.feeds,function(t){window.cff.feeds[t].settings.consentGiven=!0,window.cff.feeds[t].afterConsentToggled()})}),e(document).on("cmplzFireCategories",function(t){"marketing"===t.detail.category&&e.each(window.cff.feeds,function(t){window.cff.feeds[t].settings.consentGiven=!0,window.cff.feeds[t].afterConsentToggled()})}),e(document).on("cmplzRevoke",function(t){e.each(window.cff.feeds,function(t){window.cff.feeds[t].settings.consentGiven=!1,window.cff.feeds[t].afterConsentToggled()})}),jQuery(".cmplz-btn.cmplz-accept").on("click",function(t){setTimeout(function(){jQuery.each(window.cff.feeds,function(t){window.cff.feeds[t].settings.consentGiven="allow"===cffCmplzGetCookie("cmplz_marketing"),window.cff.feeds[t].afterConsentToggled()})},500)}),e(document).on("borlabs-cookie-consent-saved",function(t){e.each(window.cff.feeds,function(t){window.cff.feeds[t].settings.consentGiven=!1,window.cff.feeds[t].afterConsentToggled()})}),void 0!==window.consentApi&&window.consentApi.consent("custom-facebook-feed").then(()=>{try{setTimeout(function(){e.each(window.cff.feeds,function(t){window.cff.feeds[t].settings.consentGiven=!0,window.cff.feeds[t].afterConsentToggled()})},1e3)}catch(t){}}),e(".moove-gdpr-infobar-allow-all").on("click",function(){setTimeout(function(){e.each(window.cff.feeds,function(t){window.cff.feeds[t].settings.consentGiven=!0,window.cff.feeds[t].afterConsentToggled()})},1e3)}
13),e("#cff-frce-hide-license-error").on("click",function(){e("#cff-fr-ce-license-error").slideUp(),jQuery.ajax({url:cffajaxurl,type:"post",data:{action:"cff_hide_frontend_license_error",nonce:cffOptions.nonce},success:function(t){console.log(t)}})})}),window.addEventListener("wpconsent_consent_saved",function(t){setTimeout(function(){$.each(window.cff.feeds,function(t){window.cff.feeds[t].afterConsentToggled()})},1e3)}),window.addEventListener("wpconsent_consent_updated",function(t){setTimeout(function(){$.each(window.cff.feeds,function(t){window.cff.feeds[t].afterConsentToggled()})},1e3)}),setTimeout(function(){jQuery("#cff .embed-responsive video, #cff .embed-responsive iframe").unwrap()},500),n=s.injectCss,a=document.getElementsByTagName("head")[0],(o=document.createElement("style")).type="text/css",o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n)),a.appendChild(o),jQuery(".cff").each(function(){jQuery(this).hasClass("cff-disable-liquid")||jQuery(this).find(".cff-new .cff-album-cover").imgLiquid({fill:!0})}),jQuery(".cff-new .cff-crop").imgLiquid({fill:!0,useBackgroundSize:!0}),jQuery(".cff-header-hero").imgLiquid({fill:!0})};function sanitizeColor(t){return/^(#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})|rgba?\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}(?:\s*,\s*(?:0|1|0?\.\d+))?\s*\))$/.test(t)?t:null}function cffGetShortcodeToken(t){var e="";if(t.attr("data-cff-shortcode")&&-1!==t.attr("data-cff-shortcode").indexOf("accesstoken")){var i=t.attr("data-cff-shortcode"),n=JSON.parse(i);e=encodeURI("&at="+n.accesstoken)}return e}function cffEscapeHtmlAttr(t){return String(void 0===t||null===t?"":t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#039;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function cffSanitizeCaptionHtml(t){var e=document.implementation.createHTMLDocument("");e.body.innerHTML=String(void 0===t||null===t?"":t);for(var n=e.body.querySelectorAll("*"),r=n.length-1;r>=0;r--){var i=n[r];if("A"!==i.tagName&&"BR"!==i.tagName)i.parentNode.replaceChild(e.createTextNode(i.textContent||""),i);else for(var o=i.attributes.length-1;o>=0;o--){var a=i.attributes[o].name;"href"===a&&/^(https?|ftp|mailto):/i.test(i.getAttribute("href"))||"class"===a||"target"===a||"rel"===a||i.removeAttribute(a)}}return e.body.innerHTML}function cffReplaceHashtags(t){var e=jQuery.trim(t);return/^#[0-9A-F]{6}$/i.test(e)?e:'<a href="https://www.facebook.com/hashtag/'+e.substring(1)+'" target="_blank" rel="nofollow noopener">'+e+"</a>"}function cffReplaceTags(t){var e=jQuery.trim(t);return'<a href="https://www.facebook.com/'+e.substring(1)+'" target="_blank" rel="nofollow noopener">'+e+"</a>"}cff_init(),window.cffLinkify=function(){var t="[a-z\\d.-]+://",e="(?:(?:(?:[^\\s!@#$%^&*()_=+[\\]{}\\\\|;:'\",.<>/?]+)\\.)+(?:ac|ad|aero|ae|af|ag|ai|al|am|an|ao|aq|arpa|ar|asia|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|biz|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|cat|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|coop|com|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|info|int|in|io|iq|ir|is|it|je|jm|jobs|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mil|mk|ml|mm|mn|mobi|mo|mp|mq|mr|ms|mt|museum|mu|mv|mw|mx|my|mz|name|na|nc|net|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pro|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tel|tf|tg|th|tj|tk|tl|tm|tn|to|tp|travel|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|xn--0zwm56d|xn--11b5bs3a9aj6g|xn--80akhbyknj4f|xn--9t4b11yi5a|xn--deba0ad|xn--g6w251d|xn--hgbk6aj7f53bba|xn--hlcj6aya9esc7a|xn--jxalpdlp|xn--kgbechtv|xn--zckzah|ye|yt|yu|za|zm|zw)|(?:(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])\\.){3}(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5]))",i="(?:\\?[^#<>\\s]*)?(?:#[^<>\\s]*)?",n="mailto:",a=new RegExp("(?:\\b"+t+"[^<>\\s]+|\\b"+e+"(?:[;/][^#?<>\\s]*)?"+i+"(?!\\w)|(?:"+n+")?[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@"+e+i+"(?!\\w))","ig"),o=new RegExp("^"+t,"i"),s={"'":"`",">":"<",")":"(","]":"[","}":"{","B;":"B+","b:":"b9"},r={callback:function(t,e){return e?'<a href="'+e+'" title="'+e+'" target="_blank" rel="nofollow noopener noreferrer">'+t+"</a>":t},punct_regexp:/(?:[!?.,:;'"]|(?:&|&amp;
13)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)$/};return function(t,e){e=e||{};var i,f,c,l,d,u,h,m,p,g,v,b,y="",w=[];for(f in r)void 0===e[f]&&(e[f]=r[f]);for(;i=a.exec(t);)if(c=i[0],h=(u=a.lastIndex)-c.length,!/[\/:]/.test(t.charAt(h-1))){do{m=c,b=c.substr(-1),(v=s[b])&&(p=c.match(new RegExp("\\"+v+"(?!$)","g")),g=c.match(new RegExp("\\"+b,"g")),(p?p.length:0)<(g?g.length:0)&&(c=c.substr(0,c.length-1),u--)),e.punct_regexp&&(c=c.replace(e.punct_regexp,function(t){return u-=t.length,""}))}while(c.length&&c!==m);l=c,o.test(l)||(l=(-1!==l.indexOf("@")?l.indexOf(n)?n:"":l.indexOf("irc.")?l.indexOf("ftp.")?"http://":"ftp://":"irc://")+l),d!=h&&(w.push([t.slice(d,h)]),d=u),w.push([c,l])}for(w.push([t.substr(d)]),f=0;f<w.length;f++)y+=e.callback.apply(window,w[f]);return y||t}}();var hashRegex=/[#]+[A-Za-z0-9-_]+/g,tagRegex=/[@]+[A-Za-z0-9-_]+/g;function cffEncodeHTML(t){return void 0===t?"":t.replace(/(>)/g,"&gt;").replace(/(<)/g,"&lt;").replace(/(&lt;br\/&gt;)/g,"<br>").replace(/(&lt;br&gt;)/g,"<br>")}function cffLoadCommentReplies(t){var e=jQuery("#cff_"+t.parent().attr("data-id")).closest("#cff");e.hasClass("cff-group"),e.attr("data-own-token");var i=void 0!==t.closest(".cff-item").attr("data-page-id")?t.closest(".cff-item").attr("data-page-id"):jQuery(".cff-lightbox-wrapper").attr("data-page-id"),n=cffGetShortcodeToken(e),a=t.parent(),o=a.siblings(".cff-comment-replies-box");if(cffsiteurl,a.attr("data-id"),a.hasClass("cff-hide"))o.hide(),a.removeClass("cff-hide");else if(o.show(),a.addClass("cff-hide"),o.hasClass("cff-empty")){var s=a.find("a");s.append('<div class="cff-loader"></div>'),a.find(".cff-loader").css("background-color",s.css("color"));var r={action:"cff_comments",id:a.attr("data-id"),pageid:i};if(e.hasClass("cff-group")&&(r.usegrouptoken=!0),"true"==e.attr("data-own-token")&&(r.useowntoken=!0),""!==n){var f=n.split("=");r.at=f[1]}cffAjax(r,function(e){a.find(".cff-loader").remove(),e=JSON.parse(e);var i="";void 0!==e.comments&&jQuery.each(e.comments.data,function(t,e){var n=void 0===window.cff||void 0===window.cff.feeds||window.cff.feeds[0].settings.consentGiven,a=!0;void 0!==e.from?cff_comment_from_id=e.from.id:(a=!1,cff_comment_from_id=""),i+='<div class="cff-comment-reply" id="cff_'+e.id+'"><div class="cff-comment-text-wrapper"><div class="cff-comment-text',a||(i+=" cff-no-name"),i+='"><p>',a&&(void 0!==e.from.link?i+='<a href="https://facebook.com/'+e.from.id+'" class="cff-name" target="_blank" rel="nofollow noopener">'+e.from.name+"</a>":i+='<span class="cff-name">'+e.from.name+"</span>");var o=cffEncodeHTML(e.message);i+=o,parseInt(e.like_count)>0&&(i+='<span class="cff-comment-likes"><span class="cff-comment-likes-bg"><b style="padding-top: 3px;"><svg role="img" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M466.27 286.69C475.04 271.84 480 256 480 236.85c0-44.015-37.218-85.58-85.82-85.58H357.7c4.92-12.81 8.85-28.13 8.85-46.54C366.55 31.936 328.86 0 271.28 0c-61.607 0-58.093 94.933-71.76 108.6-22.747 22.747-49.615 66.447-68.76 83.4H32c-17.673 0-32 14.327-32 32v240c0 17.673 14.327 32 32 32h64c14.893 0 27.408-10.174 30.978-23.95 44.509 1.001 75.06 39.94 177.802 39.94 7.22 0 15.22.01 22.22.01 77.117 0 111.986-39.423 112.94-95.33 13.319-18.425 20.299-43.122 17.34-66.99 9.854-18.452 13.664-40.343 8.99-62.99zm-61.75 53.83c12.56 21.13 1.26 49.41-13.94 57.57 7.7 48.78-17.608 65.9-53.12 65.9h-37.82c-71.639 0-118.029-37.82-171.64-37.82V240h10.92c28.36 0 67.98-70.89 94.54-97.46 28.36-28.36 18.91-75.63 37.82-94.54 47.27 0 47.27 32.98 47.27 56.73 0 39.17-28.36 56.72-28.36 94.54h103.99c21.11 0 37.73 18.91 37.82 37.82.09 18.9-12.82 37.81-22.27 37.81 13.489 14.555 16.371 45.236-5.21 65.62zM88 432c0 13.255-10.745 24-24 24s-24-10.745-24-24 10.745-24 24-24 24 10.745 24 24z"></path></svg></b>'+e.like_count+"</span></span>"),i+="</p>",void 0!==e.attachment&&(i+=n?'<a class="cff-comment-attachment" href="'+e.attachment.url+'" target="_blank" rel="nofollow noopener"><img src="'+e.attachment.media.image.src+'" class="cff-feed-image" alt="'+e.attachment.title+'" /></a>':'<a class="cff-comment-attachment" href="'+e.attachment.url+'" target="_blank" rel="nofollow noopener"><span class="cff-comment-image-placeholder" data-src="'+e.attachment.media.image.src+'" data-alt
13="'+e.attachment.title+'"></span></a>'),i+="</div></div>",a&&(i+=n?'<div class="cff-comment-img cff-comment-reply-img"><a href="https://facebook.com/'+e.from.id+'" target="_blank" rel="nofollow noopener"><img src="'+e.from.picture.data.url+'" class="cff-feed-image" width="20" height="20" alt="'+e.from.name+'"></a></div>':'<div class="cff-comment-img cff-comment-reply-img"><a href="https://facebook.com/'+e.from.id+'" target="_blank" rel="nofollow noopener"><span data-src="'+e.from.picture.data.url+'"></span></a></div>'),i+="</div>"}),o.html(i).removeClass("cff-empty"),function(){var cffA11yScope=o.closest(".cff, .cff-lightbox-wrapper"),cffA11yStatus=cffA11yScope.find("[data-cff-feed-status]").first();cffA11yStatus.length||(cffA11yStatus=jQuery('<div class="cff-screenreader" aria-live="polite" aria-atomic="true" data-cff-feed-status></div>').appendTo(cffA11yScope));cffA11yStatus.text((void 0!==window.cff_a11y_strings?window.cff_a11y_strings.commentsLoaded:"")||"More comments loaded")}(),!t.closest("#cff").hasClass("cff-masonry-js")||t.closest("#cff").hasClass("cff-masonry-css")||t.closest("#cff").hasClass("cff-opaque-comments")||cffAddMasonry(t.closest("#cff"))})}}function cffLightbox(){function t(){return!!document.createElement("video").canPlayType}
14        /**
15             * Lightbox v2.7.1
16             * by Lokesh Dhakar - http://lokeshdhakar.com/projects/lightbox2/
17             *
18             * @license http://creativecommons.org/licenses/by/2.5/
19             * - Free for use in both personal and commercial projects
20             * - Attribution requires leaving author name, author link, and the license info intact
21             */
22        (function(){var e=jQuery,i=function(){function t(){this.fadeDuration=300,this.fitImagesInViewport=!0,this.resizeDuration=400,this.positionFromTop=50,this.showImageNumberLabel=!0,this.alwaysShowNavOnTouchDevices=!1,this.wrapAround=!1}return t.prototype.albumLabel=function(t,e){return t+" / "+e},t}(),n=function(){function i(t){this.options=t,this.album=[],this.currentImageIndex=void 0,this.init()}i.prototype.init=function(){this.enable(),this.build()},i.prototype.enable=function(){var t=this;e("body").on("click","a[data-cff-lightbox], area[data-cff-lightbox]",function(i){return window.cffCurrentLightboxPostID=e(i.currentTarget).attr("data-id"),t.start(e(i.currentTarget)),!1})},i.prototype.build=function(){var i="";e(".cff.cff-no-svgs").length&&(i="cff-no-svgs");var n,a=this;if(e("<div id='cff-lightbox-overlay' class='cff-lightbox-overlay'></div><div id='cff-lightbox-wrapper' class='cff-lightbox-wrapper "+i+"' role='dialog' aria-modal='true' aria-label='Post media' tabindex='-1'><div class='cff-lightbox-outerContainer'><div class='cff-lightbox-container'><iframe type='text/html' src='' allowfullscreen frameborder='0' webkitAllowFullScreen mozallowfullscreen allowFullScreen title='Video'></iframe><img class='cff-lightbox-image' src='' alt='' /><div class='cff-lightbox-nav'><a class='cff-lightbox-prev' href='' role='button' tabindex='0'><span>Previous</span></a><a class='cff-lightbox-next' href='' role='button' tabindex='0'><span>Next</span></a></div><div class='cff-lightbox-loader'></div><div class='cff-lightbox-sidebar'></div></div></div><div class='cff-lightbox-dataContainer'><div class='cff-lightbox-data'><div class='cff-lightbox-details'><p class='cff-lightbox-caption'><span class='cff-lightbox-caption-text'></span><a class='cff-lightbox-facebook' href=''><svg aria-hidden='true' focusable='false' data-prefix='fab' data-icon='facebook-square' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512' class='svg-inline--fa fa-facebook-square fa-w-14'><path fill='currentColor' d='M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48z'></path></svg>"+e("#cff").attr("data-fb-text")+"</a></p><div class='cff-lightbox-thumbs'><div class='cff-lightbox-thumbs-holder'></div></div></div><div class='cff-lightbox-closeContainer'><a class='cff-lightbox-close' role='button' tabindex='0' aria-label='Close'><svg aria-hidden='true' focusable='false' data-prefix='fas' data-icon='times' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 352 512' class='svg-inline--fa fa-times fa-w-11'><path fill='currentColor' d='M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z' class=''></path></svg></a></div></div></div></div>").appendTo(e("body")),jQuery("#cff").attr("data-cff-theme")&&"default_theme"!==jQuery("#cff").attr("data-cff-theme")){let t=jQuery("#cff").attr("data-cff-theme");jQuery("#cff-lightbox-wrapper").addClass("cff-theme cff-"+t)}if("function"!=typeof jQuery("#cff-lightbox-wrapper").find(".cff
22-lightbox-dataContainer").hammer){n=function(t,e){var i;t.fn.hammer=function(t){return this.each(function(){})},e.Manager.prototype.emit=(i=e.Manager.prototype.emit,function(e,n){i.call(this,e,n),t(this.element).trigger({type:e,gesture:n})})},"function"==typeof define&&define.amd?define(["jquery","hammerjs"],n):"object"==typeof exports?n(require("jquery"),require("hammerjs")):n(jQuery,{Manager:{prototype:{}}})}this.$lightbox=e("#cff-lightbox-wrapper"),this.$overlay=e("#cff-lightbox-overlay"),this.$outerContainer=this.$lightbox.find(".cff-lightbox-outerContainer"),this.$container=this.$lightbox.find(".cff-lightbox-container"),this.containerTopPadding=parseInt(this.$container.css("padding-top"),10),this.containerRightPadding=parseInt(this.$container.css("padding-right"),10),this.containerBottomPadding=parseInt(this.$container.css("padding-bottom"),10),this.containerLeftPadding=parseInt(this.$container.css("padding-left"),10),this.$overlay.hide().on("click",function(){return a.end(),t()&&e("#cff-lightbox-wrapper video.cff-lightbox-video").length&&e("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),e("#cff-lightbox-wrapper iframe").attr("src",""),e("body").length&&e("body").removeClass("cff_no_scroll"),!1}),this.$lightbox.hide().on("click",function(i){return a.album.length=0,"cff-lightbox-wrapper"===e(i.target).attr("id")&&(a.end(),t()&&e("#cff
22-lightbox-wrapper video.cff-lightbox-video").length&&e("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),e("#cff-lightbox-wrapper iframe").attr("src",""),e("body").length&&e("body").removeClass("cff_no_scroll")),!1}),this.$outerContainer.on("click",function(i){return"cff-lightbox-wrapper"===e(i.target).attr("id")&&(a.album.length=0,a.end(),t()&&e("#cff-lightbox-wrapper video.cff-lightbox-video").length&&e("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),e("#cff-lightbox-wrapper iframe").attr("src","")),!1}),this.$lightbox.find(".cff-lightbox-prev").on("click",function(){return t()&&e("#cff-lightbox-wrapper video.cff-lightbox-video").length&&e("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),e("#cff-lightbox-wrapper iframe").attr("src",""),0===a.currentImageIndex?a.changeImage(a.album.length-1):a.changeImage(a.currentImageIndex-1),!1}),this.$lightbox.find(".cff-lightbox-next").on("click",function(){return t()&&e("#cff-lightbox-wrapper video.cff-lightbox-video").length&&e("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),e("#cff-lightbox-wrapper iframe").attr("src",""),a.currentImageIndex===a.album.length-1?a.changeImage(0):a.changeImage(a.currentImageIndex+1),!1}),this.$lightbox.find(".cff-lightbox-outerContainer").hammer().on("swipeleft",function(){return t()&&e("#cff
22-lightbox-wrapper video.cff-lightbox-video").length&&e("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),e("#cff-lightbox-wrapper iframe").attr("src",""),a.currentImageIndex===a.album.length-1?a.changeImage(0):a.changeImage(a.currentImageIndex+1),!1}),this.$lightbox.find(".cff-lightbox-outerContainer").hammer().on("swiperight",function(){return t()&&e("#cff-lightbox-wrapper video.cff-lightbox-video").length&&e("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),e("#cff-lightbox-wrapper iframe").attr("src",""),0===a.currentImageIndex?a.changeImage(a.album.length-1):a.changeImage(a.currentImageIndex-1),!1}),e(".cff-lightbox-thumbs").on("click",".cff-lightbox-attachment",function(){var t=e(this),i=t.find("img"),n=t.attr("data-caption"),o=t.attr("data-video"),s=t.attr("data-iframe"),r=parseInt(t.attr("data-cff-lightbox-order"));return""!=n&&"undefined"!=n||(n=t.attr("orig-caption")),void 0!==a.album[r]&&(""!==o&&null!=o&&"link"!==o&&(a.album[r].video=o),""!==s&&null!=s&&"link"!==s&&(a.album[r].iframe=s)),a.changeImage(r,t.attr("href"),i.attr("width"),i.attr("height"),t.attr("data-facebook"),n),!1}),this.$lightbox.find(".cff-lightbox-loader, .cff-lightbox-close").on("click",function(){return a.album.length=0,a.end(),t()&&e("#cff
22-lightbox-wrapper video.cff-lightbox-video").length&&e("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),e("#cff-lightbox-wrapper iframe").attr("src",""),e("body").length&&e("body").removeClass("cff_no_scroll"),!1}),this.$lightbox.find(".cff-lightbox-close").on("keydown",function(t){("Enter"===t.key||" "===t.key||13===t.keyCode||32===t.keyCode)&&(t.preventDefault(),e(this).trigger("click"))}),this.$lightbox.find(".cff-lightbox-prev, .cff-lightbox-next").on("keydown",function(t){("Enter"===t.key||" "===t.key||13===t.keyCode||32===t.keyCode)&&(t.preventDefault(),e(this).trigger("click"))})},i.prototype.start=function(t){var i=this,n=e(window);n.on("resize",e.proxy(this.sizeOverlay,this)),e("body").length&&e("body").addClass("cff_no_scroll"),e("select, object, embed").css({visibility:"hidden"}),this.sizeOverlay(),0==this.album.length&&(this.album=[]);var a=0;function o(t){if(t.closest(".cff-posts-wrap").hasClass("cff_owl-carousel"))n=t.closest(".cff-posts-wrap .cff_owl-item").children("div").attr("class");else var n=t.closest(".cff-posts-wrap").children("div").attr("class");linkParentPostID="",void 0!==n&&(linkParentPostID=t.closest("."+n.split(" ")[0]).attr("id"),linkParentPostID="undefined"!==linkParentPostID?linkParentPostID.replace("cff_",""):linkParentPostID);var a=!1;if(e.each(i.album,function(e,i){i.link!=t.attr("href")||i.postid!=linkParentPostID||(a=!0)}),e(".cff-duplicate-video-thumbnails").length||1!=a){var o=parseInt(t.closest(".cff").attr("data-cff-index")-1),s=t.attr("data-video"),r=t.attr("data-iframe"),f=t.attr("href"),c=0;void 0===window.cff||void 0===window.cff.feeds||window.cff.feeds[0].settings.consentGiven||(""!==r&&(r="link"),""!==s&&(s="link"),t.closest(".cff-album-item").length&&void 0!==t.closest(".cff-album-item").attr("data-count")&&(c=t.closest(".cff-album-item").attr("data-count"))),i.album.push({link:f,title:t.attr("data-title")||t.attr("title"),postid:t.attr("data-id"),showthumbs:t.attr("data-thumbs"),facebookurl:t.attr("data-url"),video:s,iframe:r,type:t.attr("data-type"),cffgroupalbums:t.attr("data-cffgroupalbums"),isthumbnail:t.attr("data-cff-isthumbnail"),pagename:t.parent().attr("data-cff-page-name")?t.parent().attr("data-cff-page-name"):t.parent().parent().attr("data-page-name"),posttime:t.parent().attr("data-cff-post-time")?t.parent().attr("data-cff-post-time"):t.parent().parent().attr("data-post-time"),lbcomments:t.attr("data-lb-comments"),feedIndex:o,count:c})}}var s,r=t.attr("data-cff-lightbox");if(e(".cff-lightbox-wrapper").attr("data-page-id",t.parents(".cff-item").attr("data-page-id")),r){s=e(t.prop("tagName")+'[data-cff-lightbox="'+r+'"]');for(var f=0;f<s.length;f=++f)o(e(s[f])),s[f]===t[0]&&(a=f,e.each(i.album,function(e,i){i.postid==t.attr("data-id")&&1!=i.isthumbnail&&(a=e)}))}else if("lightbox"===t.attr("rel"))o(t);else{s=e(t.prop("tagName")+'[rel="'+t.attr("rel")+'"]');for(var c=0;c<s.length;c=++c)o(e(s[c])),s[c]===t[0]&&(a=c)}var l=n.scrollTop()+this.options.positionFromTop,d=n.scrollLeft();this.$lightbox.css({top:l+"px",left:d+"px"}).fadeIn(this.options.fadeDuration);this.cffA11yTrigger=document.activeElement;var cffA11yT=this;setTimeout(function(){cffA11yT.$lightbox.trigger("focus")},this.options.fadeDuration+50);this.changeImage(a)},i.prototype.changeImage=function(t,i,n,a,o,s){var r=this,f=!1,c=120;imageNumber=t,void 0!==i&&(f=!0),this.disableKeyboardNav();var l=this.$lightbox.find(".cff-lightbox-image"),d=this.$lightbox.find(".cff-lightbox-container"),u=d.find("iframe");var cffAltSrc=f&&void 0!==s?s:this.album[imageNumber]&&this.album[imageNumber].title||"";l.attr("alt",e("<div>").html(String(cffAltSrc)).text().trim());this.$overlay.fadeIn(this.options.fadeDuration),u.attr("src","").hide().css({display:"none",visibility:"hidden",opacity:"0"}),l.hide().css({display:"none",visibility:"hidden",opacity:"0"}),d.find("video").remove(),d.find(".cff_gdpr_notice").remove(),this.$lightbox.find(".cff-lightbox-nav, .cff-lightbox-prev, .cff-lightbox-next, .cff-lightbox-dataContainer, .cff-lightbox-numbers, .cff-lightbox-caption").hide(),e(".cff-lightbox-loader").css({display:"block",visibility:"visible",opacity:"1"}).fadeIn("fast"),this.$outerContainer.addClass("animating");var h=!1,m=!1,p=this.album[imageNumber].video,g=this.album[imageNumber].iframe;if(null!=p&&"link"!==p&&""!==p&&String(p).trim().length>0&&(h=!0),null!=g&&"link"!==g&&""!==g&&String(g).trim().length>0&&(m=!0),h||m){var v=new Image;return v.onload=function(){let t=e(window).width(),i=e(window).height();var n=v.width>t?t/1.5:v.width,a=v.height>i?i/1.5:v.height;l.attr("src",r.album[imageNumber].link),l.width(n),l.height(a),r.sizeContainer(n,a)},v.onerror=function(){l.attr("src",r.album[imageNumber].link),l.width(800),l.height(600),r.sizeContainer(800,600)},v.src=this.album[imageNumber].link,void(this.currentImageIndex=imageNumber)}var b=new Image;b.onload=function(){var t,d,u,h,m,p;if(l.attr("src",r.album[imageNumber].link),f&&(l.attr("src",i),e(".cff-lightbox-facebook").attr("href",o),e(".cff-lightbox-caption .cff-lightbox-caption-text").text(s),b.width=n,b.height=a,c=180),e(b),l.width(b.width),l.height(b.height),r.options.fitImagesInViewport){p=e(window).width(),m=e(window).height();var g=0,v=80;"true"==e("#cff_"+r.album[0].postid).closest("#cff").attr("data-lb-comments")&&p>640&&(g=300),window.innerWidth<640&&(v=40),h=p-r.containerLeftPadding-r.containerRightPadding-20-g-v,u=m-r.containerTopPadding-r.containerBottomPadding-c,(b.width>h||b.height>u)&&(b.width/h>
22b.height/u?(d=h,t=parseInt(b.height/(b.width/d),10),l.width(d),l.height(t)):(t=u,d=parseInt(b.width/(b.height/t),10),l.width(d),l.height(t)))}r.sizeContainer(l.width(),l.height())},b.src=this.album[imageNumber].link,this.currentImageIndex=imageNumber},i.prototype.sizeOverlay=function(){this.$overlay.width(e(window).width()).height(e(document).height())},i.prototype.sizeContainer=function(t,e){var i=this,n=this.$outerContainer.outerWidth(),a=this.$outerContainer.outerHeight(),o=t+this.containerLeftPadding+this.containerRightPadding,s=e+this.containerTopPadding+this.containerBottomPadding;function r(){i.$lightbox.find(".cff-lightbox-dataContainer").width(o),i.$lightbox.find(".cff-lightbox-prevLink").height(s),i.$lightbox.find(".cff-lightbox-nextLink").height(s),i.showImage()}n!==o||a!==s?this.$outerContainer.animate({width:o,height:s},this.options.resizeDuration,"swing",function(){r()}):r()},i.prototype.showImage=function(){var t=void 0!==this.album[this.currentImageIndex].video&&""!==this.album[this.currentImageIndex].video&&"link"!==this.album[this.currentImageIndex].video,e=void 0!==this.album[this.currentImageIndex].iframe&&""!==this.album[this.currentImageIndex].iframe&&"link"!==this.album[this.currentImageIndex].iframe;t||e||this.$lightbox.find(".cff-lightbox-loader").fadeOut("fast"),this.updateNav(),this.updateDetails(),this.preloadNeighboringImages(),this.enableKeyboardNav()},i.prototype.updateNav=function(){var t=!1;try{document.createEvent("TouchEvent"),t=!!this.options.alwaysShowNavOnTouchDevices}catch(t){}this.$lightbox.find(".cff-lightbox-nav").show(),this.album.length>1&&(this.options.wrapAround?(t&&this.$lightbox.find(".cff-lightbox-prev, .cff-lightbox-next").css("opacity","1"),this.$lightbox.find(".cff-lightbox-prev, .cff-lightbox-next").show()):(this.currentImageIndex>0&&(this.$lightbox.find(".cff-lightbox-prev").show(),t&&this.$lightbox.find(".cff-lightbox-prev").css("opacity","1")),this.currentImageIndex<this.album.length-1&&(this.$lightbox.find(".cff-lightbox-next").show(),t&&this.$lightbox.find(".cff-lightbox-next").css("opacity","1"))))};var n={};return i.prototype.updateDetails=function(){var i=this,a="";this.$lightbox.find(".cff-lightbox-nav, .cff-lightbox-nav a").show();var o=!1,s=!1,r="",f="";if(t()){e("#cff-lightbox-wrapper").removeClass("cff-has-video");var c=this.album[this.currentImageIndex].video;null!=c&&"link"!==c&&""!==c&&String(c).trim().length>0&&(o=!0,r=c);var l=this.album[this.currentImageIndex].iframe;null!=l&&"link"!==l&&""!==l&&String(l).trim().length>0&&(s=!0,f=l);var d=e(".cff-lightbox-image"),u=e(".cff-lightbox-container iframe");if(o){d.hide().css({display:"none",visibility:"hidden",opacity:"0"});var h=this.currentImageIndex,m=this.album[h].link;u.attr("src",""),setTimeout(function(){i.currentImageIndex===h&&(u.attr({src:r,poster:m,autoplay:"true"}),u.on("load",function(){e(".cff-lightbox-loader").fadeOut("fast"),u.off("load")}),setTimeout(function(){i.currentImageIndex===h&&e(".cff-lightbox-loader").fadeOut("fast")},1e3))},50),u.show().css({display:"block",visibility:"visible",opacity:"1"}),e("#cff-lightbox-wrapper").addClass("cff-has-video")}else if(s)d.hide().css({display:"none",visibility:"hidden",opacity:"0"}),u.show().css({display:"block",visibility:"visible",opacity:"1"});else{u.hide().css({display:"none",visibility:"hidden",opacity:"0"}),u.attr("src",""),e("#cff-lightbox-wrapper").removeClass("cff-has-video cff-has-iframe cff-fb-player");var p=this.album[this.currentImageIndex].link;d.attr("src")&&""!==d.attr("src")&&d.attr("src")===p||d.attr("src",p),d.css({display:"block",visibility:"visible",opacity:"1"}),d.is(":visible")?d.show():d.fadeIn("slow")}}else d=e(".cff-lightbox-image"),(u=e(".cff-lightbox-container iframe")).hide().css({display:"none",visibility:"hidden",opacity:"0"}),u.attr("src",""),e("#cff-lightbox-wrapper").removeClass("cff-has-video cff-has-iframe cff-fb-player"),p=this.album[this.currentImageIndex].link,d.attr("src")&&""!==d.attr("src")&&d.attr("src")===p||d.attr("src",p),d.css({display:"block",visibility:"visible",opacity:"1"}),d.is(":visible")?d.show():d.fadeIn("slow");var g=!1;"link"===this.album[this.currentImageIndex].iframe&&(g=!0),"link"!==this.album[this.currentImageIndex].video&&!g||jQuery(".cff-lightbox-container .cff_gdpr_notice").length?"link"===this.album[this.currentImageIndex].video||g?jQuery(".cff-lightbox-container .cff_gdpr_notice").length&&jQuery(".cff-lightbox-container .cff_gdpr_notice").attr("href",this.album[this.currentImageIndex].facebookurl):jQuery(".cff_gdpr_notice").remove():jQuery(".cff-lightbox-container").prepend('<a href="'+this.album[this.currentImageIndex].facebookurl+'" target="_blank" rel="noopener noreferrer" class="cff_gdpr_notice"><svg style="color: rgba(255,255,255,1)" class="svg-inline--fa fa-play fa-w-14" aria-label="Play" aria-hidden="true" data-fa-processed="" data-prefix="fa" data-icon="play" role="presentation" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
22<path fill="currentColor" d="M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"></path></svg></a>');var v="true"==this.album[this.currentImageIndex].lbcomments&&"false"!=e("#cff_"+this.album[this.currentImageIndex].postid+" .cff-lightbox-link").attr("data-lb-comments");if(e(window).width()<=640&&(v=!1),v){var b=this.album[this.currentImageIndex].postid.split("_")[0],y=this.album[this.currentImageIndex].pagename,w=this.album[this.currentImageIndex].posttime,x=e(".cff-lightbox-container .cff-lightbox-sidebar"),C=e(".cff-lightbox-thumbs-holder"),k=e("#cff_"+this.album[this.currentImageIndex].postid).attr("data-cff-from");e(".cff-lightbox-wrapper").addClass("cff-enable-lb-comments"),e(".cff-lightbox-dataContainer").css("width",e(".cff-lightbox-dataContainer").innerWidth()+300),x.css("display","block");var _="";if(void 0!==window.cff&&void 0!==window.cff.feeds&&!window.cff.feeds[0].settings.consentGiven||void 0===k)_=e("<div class='cff-author cff-no-author-info'></div>").append(e("<div class='cff-author-text'></div>").append(e("<p class='cff-date'></p>").text(w))).append(e("<div class='cff-author-img'></div>"));else{var I=k!=b?e("#cff_"+this.album[this.currentImageIndex].postid).find(".cff-author-img").find(".cff-feed-image").attr("src"):"https://graph.facebook.com/"+encodeURIComponent(k)+"/picture?type=square";_=e("<div class='cff-author'></div>").append(e("<div class='cff-author-text'></div>").append(e("<p class='cff-page-name cff-author-date'></p>").append(e("<a>",{href:"https://facebook.com/"+encodeURIComponent(k),target:"_blank",rel:"nofollow"}).text(y)).append(e("<span class='cff-story'> </span>"))).append(e("<p class='cff-date'></p>").text(w))).append(e("<a>",{href:"https://facebook.com/"+encodeURIComponent(k),target:"_blank",rel:"nofollow noopener",class:"cff-author-img"}).append(e("<img>",{src:I,title:y,alt:y,width:40,height:40})))}e(".cff-lightbox-dataContainer .cff-lightbox-close").remove(),x.html("<div class='cff-lightbox-closeContainer'><div class='cff-lightbox-close' role='button' tabindex='0' aria-label='Close'><svg aria-hidden='true' focusable='false' data-prefix='fas' data-icon='times' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 352 512' class='svg-inline--fa fa-times fa-w-11'><path fill='currentColor' d='M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z' class=''></path></svg></div></div><div class='cff-lightbox-sidebar-content'><p class='cff-lightbox-caption'><span class='cff-lightbox-caption-text'>"+e(".cff-lightbox-caption-text").html()+"</span></p></div>"+e("#cff_"+this.album[this.currentImageIndex].postid+" .cff-comments-box")[0].outerHTML),x.find(".cff-lightbox-sidebar-content").prepend(_),this.$lightbox.find(".cff-lightbox-close").on("keydown",function(t){("Enter"===t.key||" "===t.key||13===t.keyCode||32===t.keyCode)&&(t.preventDefault(),e(this).trigger("click"))}),this.$lightbox.find(".cff-lightbox-close").on("click",function(){return i.end(),i.album.length=0,t()&&e("#cff
22-lightbox-wrapper video.cff-lightbox-video").length&&e("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),e("#cff-lightbox-wrapper iframe").attr("src",""),e("body").length&&e("body").removeClass("cff_no_scroll"),!1}),setTimeout(function(){C.find("a").length>1&&(x.find(".cff-page-name a").text(C.find("a.cff-selected").attr("data-page-name")),x.find(".cff-date").text(C.find("a.cff-selected").attr("data-post-date")))},0),C.css("margin-top",-10),x.find(".cff-reactions-count").innerWidth()>150&&x.find(".cff-likes-this-text").addClass("cff-long"),x.find(".cff-comment:visible").each(function(){var t=jQuery(this);(void 0===window.cff||void 0===window.cff.feeds||window.cff.feeds[0].settings.consentGiven)&&t.find(".cff-comment-img:not(.cff-comment-reply-img) a, .cff-comment-img:not(.cff-comment-reply-img) span").html('<img src="'+t.attr("data-avatar")+'" alt="'+cffCommentAvatarAlt(t)+'" />')}),x.find(".cff-comment-replies a").on("click",function(){cffLoadCommentReplies(e(this))}),x.find(".cff-show-more-comments a").attr("href",x.find(".cff-comment-on-facebook a").attr("href"))}else e(".cff-lightbox-wrapper .cff-lightbox-sidebar").html(""),e(".cff-lightbox-wrapper").removeClass("cff-enable-lb-comments");if(e("#cff-lightbox-wrapper").removeClass("cff-has-iframe cff-fb-player cff-has-thumbs"),s&&!o){var A=f;if(d=e(".cff-lightbox-image"),u=e(".cff-lightbox-container iframe"),e("#cff
22-lightbox-wrapper").addClass("cff-has-iframe"),d.hide().css({display:"none",visibility:"hidden",opacity:"0"}),u.show().css({display:"block",visibility:"visible",opacity:"1"}),e("#cff-lightbox-wrapper").removeClass("cff-has-video"),-1!=A.indexOf("https://www.facebook.com/v2.3/plugins/video.php?")&&e("#cff-lightbox-wrapper").addClass("cff-fb-player"),A.indexOf(".swf")>-1||-1!=A.indexOf("&autoplay=1"))var z="";else z="?autoplay=1";h=this.currentImageIndex,e("#cff-lightbox-wrapper iframe").attr("src",""),setTimeout(function(){if(i.currentImageIndex===h){var t=e("#cff-lightbox-wrapper iframe");t.attr({src:A+z+"&mute=0"}),t.on("load",function(){e(".cff-lightbox-loader").fadeOut("fast"),t.off("load")}),setTimeout(function(){i.currentImageIndex===h&&e(".cff-lightbox-loader").fadeOut("fast")},1500)}},500)}else o||s||(d=e(".cff-lightbox-image"),(u=e(".cff-lightbox-container iframe")).hide().css({display:"none",visibility:"hidden",opacity:"0"}),u.attr("src",""),e("#cff-lightbox-wrapper").removeClass("cff-has-video cff-has-iframe cff-fb-player"),p=this.album[this.currentImageIndex].link,d.attr("src")&&""!==d.attr("src")&&d.attr("src")===p||d.attr("src",p),d.css({display:"block",visibility:"visible",opacity:"1"}),d.is(":visible")?d.show():d.fadeIn("slow"));var E=!1;if(this.album[this.currentImageIndex].isthumbnail&&(E=!0),E||e(".cff-lightbox-thumbs-holder").empty().removeClass("cff-animate"),this.album[this.currentImageIndex].link==e(".cff-lightbox-image").attr("src")&&e(".cff-lightbox-facebook").attr("href",this.album[this.currentImageIndex].facebookurl),"true"==this.album[this.currentImageIndex].showthumbs){e(".cff-lightbox-thumbs").show();var T=this.album[this.currentImageIndex].postid,j="",F=!1;if("albumsonly"==this.album[this.currentImageIndex].type&&(F=!0),void 0!==n[T])e.each(n[T],function(t,n){var a=n[5].replace(/"/g,"&quot;"),o=0;e.each(i.album,function(t,e){if(e.postid==T)return o=t,!1});var s=parseInt(o)+parseInt(t),r="",f="";if(void 0!==i.album[s]){var c=i.album[s];void 0!==c.video&&""!==c.video&&"link"!==c.video&&(r=c.video),void 0!==c.iframe&&""!==c.iframe&&"link"!==c.iframe&&(f=c.iframe)}if((""===r||""===f)&&void 0!==i.album[o]){var l=i.album[o];""===r&&void 0!==l.video&&""!==l.video&&"link"!==l.video&&(r=l.video),""===f&&void 0!==l.iframe&&""!==l.iframe&&"link"!==l.iframe&&(f=l.iframe)}void 0===n[8]&&(n[8]=n[0]),j+='<a href="'+cffEscapeHtmlAttr(n[0])+'" class="cff-lightbox-attachment" data-cff-lightbox="cff-lightbox-1" data-facebook="'+cffEscapeHtmlAttr(n[3])+'" data-caption="'+n[4]+'" orig-caption="'+a+'" data-page-name="'+cffEscapeHtmlAttr(n[6])+'" data-post-date="'+cffEscapeHtmlAttr(n[7])+'" data-cff-lightbox-order="'+s+'" lbcomments="true" data-thumbs="true" data-url="'+cffEscapeHtmlAttr(n[3])+'" data-iframe="'+cffEscapeHtmlAttr(""!==f?f:"")+'" data-video="'+cffEscapeHtmlAttr(""!==r?r:"")+'" ',j+=F?'data-type="albumsonly" ':"data-type ",j+='data-cff-isthumbnail="true"><img src="'+cffEscapeHtmlAttr(n[8])+'" width="'+cffEscapeHtmlAttr(n[1])+'" height="'+cffEscapeHtmlAttr(n[2])+'" /></a>',t>0&&q(s,n[0],n[4],n[3],T,F,!0,n[6],r,f)}),e(".cff-lightbox-thumbs-holder").html('<div class="cff-lightbox-thumbs-wrap">'+j+"</div>").addClass("cff-animate"),e(".cff-lightbox-wrapper").addClass("cff-has-thumbs"),jQuery(".cff-lightbox-thumbs-holder a").imgLiquid({fill:!0,useBackgroundSize:!0}),e(".cff-loader").hide(),e(".cff-lightbox-thumbs-holder").css("min-height",0);else{"undefined"!=typeof cffsiteurl&&""!=cffsiteurl||(cffsiteurl=window.location.host+"/wp-content/plugins");var D=e("#cff_"+T).closest(".cff"),B=e("#cff_"+T).attr("data-page-id"),S=cffGetShortcodeToken(D),L="";"true"==D.attr("data-own-token")&&(L="&useowntoken=true");var Q=cffsiteurl+"/custom-facebook-feed-pro/thumbs.php?id="+T+"&pageid="+B+L+S,O=[];F&&(Q+="&albumsonly=true",(void 0===window.cff||void 0===window.cff.feeds||window.cff.feeds[0].settings.consentGiven)&&e(".cff-lightbox-thumbs-holder").css("min-height",45).after('<div class="cff-loader"></div>'));var R=this.album[this.currentImageIndex].cffgroupalbums;R&&(Q=Q+"&usegrouptoken="+R);var M={action:"cff_thumbs",id:T,pageid:B};if(""!==S){var P=S.split("=");M.at=P[1]}"true"==D.attr("data-own-token")&&(M.useowntoken=!0),R&&(M.usegrouptoken=R),F&&(M.albumsonly=!0),e(".cff-gdpr-more-link").remove(),window.cff.feeds[this.album[this.currentImageIndex].feedIndex].settings.consentGiven?(F&&(jQuery(".cff-lightbox-container").addClass("cff-album-loading"),jQuery(".cff-lightbox-prev, .cff-lightbox-next").hide()),cffAjax(M,function(t){t&&(t=JSON.parse(t),F?e.each(t.data,function(t,e){var n="";e.name&&(n=e.name),n=(n=cffLinkify(n)).replace(hashRegex,cffReplaceHashtags),n=String(n).replace(/& /g,"&amp; ").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/\n/g,"<br/>"),a=String(a).replace(/& /g,"&amp; ").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/\n/g,"<br/>");var o=parseInt(i.currentImageIndex)+parseInt(t),s=e.source,r=e.width,f=e.height;if(void 0!==e.images[0]&&(s=e.images[0].source,r=e.images[0].width,f=e.images[0].height),void 0!==e.images[e.images.length-2])var c=e.images[e.images.length-2].source;else c=s;j+='<a href="'+s+'" class="cff-lightbox-attachment" data-facebook="https://facebook.com/'+e.id+'" data-caption="'+n+'" orig-caption="'+a+'" data-cff-lightbox-order="'+o+'" data-thumbs="true" data-url="http://facebook.com/'+e.id+'" data-iframe data-video data-type="albumsonly" data-cff-isthumbnail="true"><img src="'+c+'" lbcomments="false" width="'+r+'" height="'+f+'" /></a>',O.push([s,r,f,"https://facebook.com/"+e.id,n,a,void 0,void 0,c]),t>0&&q(o,s,n,"https://facebook.com/"+e.id,T,F,!0,c)}):void 0!==t.attachments&&e.each(t.attachments.data[0].subattachments.data,function(t,e){var n="";e.description&&(n=e.description),a=String(a).replace(/"/g,"&quot;"),n=(n=cffLinkify(n)).replace(hashRegex,cffReplaceHashtags),n=String(n).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/\n/g,"<br/>");var o=parseInt(i.currentImageIndex)+parseInt(t),s="",r="";console.log(e),void 0!==e.type&&"video"===e.type&&(void 0!==e.media&&void 0!==e.media.source&&void 0!==e.media.source&&(s=e.media.source),void 0!==e.target&&void 0!==e.target.url&&(r=e.target.url),""===s&&void 0!==e.url&&(r="https://www.facebook.com/v2.3/plugins/video.php?href="+encodeURIComponent(e.url))),j+='<a href="'+cffEscapeHtmlAttr(e.media.image.src)+'" class="cff-lightbox-attachment" data-facebook="'+cffEscapeHtmlAttr(e.url)+'" data-caption="'+n+'" orig-caption="'+a+'" lbcomments="true" data-page-name="'+cffEscapeHtmlAttr(y)+'" data-post-date="'+cffEscapeHtmlAttr(w)+'" data-cff-lightbox-order="'+o+'" data-thumbs="true" data-url="'+cffEscapeHtmlAttr(e.url)+'" data-iframe="'+cffEscapeHtmlAttr(""!==r?r:"")+'" data-video="'+cffEscapeHtmlAttr(""!==s?s:"")+'" data-type data-cff-isthumbnail="true"><img src="'+cffEscapeHtmlAttr(e.media.image.src)+'" width="'+cffEscapeHtmlAttr(e.media.image.width)+'" height="'+cffEscapeHtmlAttr(e.media.image.height)+'" /></a>',O.push([e.media.image.src,e.media.image.width,e.media.image.height,e.url,n,a,y,w]),t>0&&q(o,e.media.image.src,n,e.url,T,F,!0,y,s,r)}),j.length>0&&(e(".cff-lightbox-thumbs-holder").html('<div class="cff-lightbox-thumbs-wrap">'+j+"</div>").addClass("cff-animate"),e(".cff-lightbox-wrapper").addClass("cff-has-thumbs")),jQuery(".cff-lightbox-thumbs-holder .cff-lightbox-attachment").imgLiquid({fill:!0,useBackgroun
22dSize:!0}),e(".cff-loader").hide(),e(".cff-lightbox-thumbs-holder").css("min-height",0),n[T]=O,F&&(jQuery(".cff-lightbox-container").removeClass("cff-album-loading"),jQuery(".cff-lightbox-prev, .cff-lightbox-next").show()))})):parseInt(this.album[this.currentImageIndex].count)>0&&(e(".cff-lightbox-facebook").after('<a href="'+e(".cff-lightbox-facebook").attr("href")+'"  class="cff-gdpr-more-link cff-lightbox-attachment"><div class="cff-gdpr-overlay"></div><span>+'+this.album[this.currentImageIndex].count+'</span><img src="'+jQuery(".cff-lightbox-image").attr("src")+'"></a>'),e(".cff-gdpr-more-link").imgLiquid({fill:!0,useBackgroundSize:!0}),setTimeout(function(){e(".cff-gdpr-more-link span").css({"margin-top":"-"+e(".cff-gdpr-more-link span").height()/2+"px","margin-right":"-"+e(".cff-gdpr-more-link span").width()/2+"px",display:"block"})},200))}}else e(".cff-lightbox-thumbs").hide();function q(t,n,a,o,s,r,f,c,l,d){var u=!1;e.each(i.album,function(t,e){e.link!=n||e.postid!=s||(u=!0)}),1!=u&&(postType=r?"albumsonly":"",lbcomments=r?"false":"true",void 0!==l&&""!==l||e.each(i.album,function(t,e){if(e.postid==s&&!e.isthumbnail)return void 0!==e.video&&""!==e.video&&"link"!==e.video&&e.video,void 0!==e.iframe&&""!==e.iframe&&"link"!==e.iframe&&e.iframe,!1}),i.album.splice(t,0,{link:n,title:a,postid:s,showthumbs:"true",facebookurl:o,video:void 0!==l&&""!==l?l:"",iframe:void 0!==d&&""!==d?d:"",type:postType,cffgroupalbums:void 0,isthumbnail:f,lbcomments:lbcomments,thumbimg:c}))}if(e(".cff-lightbox-attachment").removeClass("cff-selected"),e(".cff-lightbox-attachment[href='"+e(".cff-lightbox-image").attr("src")+"']").addClass("cff-selected"),this.$lightbox.find(".cff-lightbox-caption").fadeIn("fast"),void 0!==this.album[this.currentImageIndex].title&&""!==this.album[this.currentImageIndex].title){a=(a=this.album[this.currentImageIndex].title).replace(hashRegex,cffReplaceHashtags),a=String(a).replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"'),a=cffSanitizeCaptionHtml(a);var N=this.$lightbox.find(".cff-lightbox-caption"),W=N.find(".cff-lightbox-caption-text");this.album[this.currentImageIndex].link==e(".cff-lightbox-image").attr("src")&&W.html(a.includes("</a>")?a:cffLinkify(a))," "==W.text()||""==W.text()?N.addClass("cff-no-caption"):N.removeClass("cff-no-caption")}else(F||void 0===this.album[this.currentImageIndex].title)&&this.$lightbox.find(".cff-lightbox-caption-text").html(""),this.$lightbox.find(".cff-lightbox-caption .cff-lightbox-caption-text").text().length<1&&this.$lightbox.find(".cff-lightbox-caption").addClass("cff-no-caption").find(".cff-lightbox-caption-text").html("");this.$lightbox.find(".cff-lightbox-facebook, .cff-lightbox-caption-text a, .cff-lightbox-sidebar a:not(.cff-comment-replies-a), .cff_gdpr_notice, .cff-gdpr-more-link").off("click").on("click",function(t){window.open(e(this).attr("href"),"_blank")}),this.album.length>1&&this.options.showImageNumberLabel?this.$lightbox.find(".cff-lightbox-number").text(this.options.albumLabel(this.currentImageIndex+1,this.album.length)).fadeIn("fast"):this.$lightbox.find(".cff-lightbox-number").hide(),"function"==typeof cffLightboxAction&&setTimeout(function(){cffLightboxAction()},100),this.$outerContainer.removeClass("animating"),this.$lightbox.find(".cff-lightbox-dataContainer").fadeIn(this.options.resizeDuration,function(){return i.sizeOverlay()})},i.prototype.preloadNeighboringImages=function(){this.album.length>this.currentImageIndex+1&&((new Image).src=this.album[this.currentImageIndex+1].link),this.currentImageIndex>0&&((new Image).src=this.album[this.currentImageIndex-1].link)},i.prototype.enableKeyboardNav=function(){e(document).on("keyup.keyboard",e.proxy(this.keyboardAction,this));var cffTrapT=this;e(document).on("keydown.keyboard",function(t){if(("Tab"===t.key||9===t.keyCode)&&cffTrapT.$lightbox.is(":visible")){var b=cffTrapT.$lightbox.find('a[href], button, video, iframe, [tabindex="0"]').filter(":visible");if(b.length){var b1=b[0],b2=b[b.length-1],b3=document.activeElement,b4=cffTrapT.$lightbox[0].contains(b3);if(t.shiftKey){if(!b4||b3===b1||b3===cffTrapT.$lightbox[0]){t.preventDefault();try{b2.focus()}catch(o){}}}else if(!b4||b3===b2){t.preventDefault();try{b1.focus()}catch(o){}}}}})},i.prototype.disableKeyboardNav=function(){e(document).off(".keyboard")},i.prototype.keyboardAction=function(i){var n=i.keyCode,a=String.fromCharCode(n).toLowerCase();
22if(27===n||a.match(/x|o|c/))t()&&e("#cff-lightbox-wrapper video.cff-lightbox-video").length&&e("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),e("#cff-lightbox-wrapper iframe").attr("src",""),this.end();else if("p"===a||37===n){if(jQuery(".cff-lightbox-container").hasClass("cff-album-loading"))return;0!==this.currentImageIndex?this.changeImage(this.currentImageIndex-1):this.options.wrapAround&&this.album.length>1&&this.changeImage(this.album.length-1),t()&&e("#cff-lightbox-wrapper video.cff-lightbox-video").length&&e("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),e("#cff-lightbox-wrapper iframe").attr("src","")}else if("n"===a||39===n){if(jQuery(".cff-lightbox-container").hasClass("cff-album-loading"))return;this.currentImageIndex!==this.album.length-1?this.changeImage(this.currentImageIndex+1):this.options.wrapAround&&this.album.length>1&&this.changeImage(0),t()&&e("#cff-lightbox-wrapper video.cff-lightbox-video").length&&e("#cff-lightbox-wrapper video.cff-lightbox-video")[0].pause(),e("#cff-lightbox-wrapper iframe").attr("src","")}},i.prototype.end=function(){this.disableKeyboardNav(),e(window).off("resize",this.sizeOverlay),this.$lightbox.fadeOut(this.options.fadeDuration),this.$overlay.fadeOut(this.options.fadeDuration),e("select, object, embed").css({visibility:"visible"});if(this.cffA11yTrigger&&document.body.contains(this.cffA11yTrigger)){try{this.cffA11yTrigger.focus()}catch(t){}}this.cffA11yTrigger=null},i}();e(function(){var t=new i;new n(t)})}).call(this)}jQuery("#cff.cff-lb").length&&cffLightbox(),jQuery.fn.isInViewport=function(){var t=jQuery(this).offset().top,e=t+jQuery(this).outerHeight(),i=jQuery(window).scrollTop(),n=i+jQuery(window).height();return e>i&&t<n}}
23;jcf={modules:{},plugins:{},baseOptions:{unselectableClass:'jcf-unselectable',labelActiveClass:'jcf-label-active',labelDisabledClass:'jcf-label-disabled',classPrefix:'jcf-class-',hiddenClass:'jcf-hidden',focusClass:'jcf-focus',wrapperTag:'div'},customForms:{setOptions:function(obj){for(var p in obj){if(obj.hasOwnProperty(p)&&typeof obj[p]==='object'){jcf.lib.extend(jcf.modules[p].prototype.defaultOptions,obj[p]);}}},replaceAll:function(){for(var k in jcf.modules){var els=jcf.lib.queryBySelector(jcf.modules[k].prototype.selector);for(var i=0;i<els.length;i++){if(els[i].jcf){els[i].jcf.refreshState();}else{if(!jcf.lib.hasClass(els[i],'default')&&jcf.modules[k].prototype.checkElement(els[i])){new jcf.modules[k]({replaces:els[i]});}}}}},refreshAll:function(){for(var k in jcf.modules){var els=jcf.lib.queryBySelector(jcf.modules[k].prototype.selector);for(var i=0;i<els.length;i++){if(els[i].jcf){els[i].jcf.refreshState();}}}},refreshElement:function(obj){if(obj&&obj.jcf){obj.jcf.refreshState();}},destroyAll:function(){for(var k in jcf.modules){var els=jcf.lib.queryBySelector(jcf.modules[k].prototype.selector);for(var i=0;i<els.length;i++){if(els[i].jcf){els[i].jcf.destroy();}}}}},isTouchDevice:('ontouchstart'in window)||window.DocumentTouch&&document instanceof DocumentTouch,isWinPhoneDevice:navigator.msPointerEnabled&&/MSIE 10.*Touch/.test(navigator.userAgent),setBaseModule:function(obj){jcf.customControl=function(opt){this.options=jcf.lib.extend({},jcf.baseOptions,this.defaultOptions,opt);this.init();};for(var p in obj){jcf.customControl.prototype[p]=obj[p];}},addModule:function(obj){if(obj.name){jcf.modules[obj.name]=function(){jcf.modules[obj.name].superclass.constructor.apply(this,arguments);};jcf.lib.inherit(jcf.modules[obj.name],jcf.customControl);for(var p in obj){jcf.modules[obj.name].prototype[p]=obj[p];}
24jcf.modules[obj.name].prototype.onCreateModule();for(var mod in jcf.modules){if(jcf.modules[mod]!=jcf.modules[obj.name]){jcf.modules[mod].prototype.onModuleAdded(jcf.modules[obj.name]);}}}},addPlugin:function(obj){if(obj&&obj.name){jcf.plugins[obj.name]=function(){this.init.apply(this,arguments);};for(var p in obj){jcf.plugins[obj.name].prototype[p]=obj[p];}}},init:function(){if(navigator.msPointerEnabled){this.eventPress='MSPointerDown';this.eventMove='MSPointerMove';this.eventRelease='MSPointerUp';}else{this.eventPress=this.isTouchDevice?'touchstart':'mousedown';
24this.eventMove=this.isTouchDevice?'touchmove':'mousemove';this.eventRelease=this.isTouchDevice?'touchend':'mouseup';}
25setTimeout(function(){jcf.lib.domReady(function(){jcf.initStyles();});},1);return this;},initStyles:function(){var head=document.getElementsByTagName('head')[0],style=document.createElement('style'),rules=document.createTextNode('.'+jcf.baseOptions.unselectableClass+'{'+'-moz-user-select:none;'+'-webkit-tap-highlight-color:rgba(255,255,255,0);'+'-webkit-user-select:none;'+'user-select:none;'+'}');style.type='text/css';if(style.styleSheet){style.styleSheet.cssText=rules.nodeValue;}else{style.appendChild(rules);}
26head.appendChild(style);}}.init();jcf.setBaseModule({init:function(){if(this.options.replaces){this.realElement=this.options.replaces;this.realElement.jcf=this;this.replaceObject();}},defaultOptions:{},checkElement:function(el){return true;},replaceObject:function(){this.createWrapper();this.attachEvents();this.fixStyles();this.setupWrapper();},createWrapper:function(){this.fakeElement=jcf.lib.createElement(this.options.wrapperTag);this.labelFor=jcf.lib.getLabelFor(this.realElement);jcf.lib.disableTextSelection(this.fakeElement);jcf.lib.addClass(this.fakeElement,jcf.lib.getAllClasses(this.realElement.className,this.options.classPrefix));jcf.lib.addClass(this.realElement,jcf.baseOptions.hiddenClass);},attachEvents:function(){jcf.lib.event.add(this.realElement,'focus',this.onFocusHandler,this);jcf.lib.event.add(this.realElement,'blur',this.onBlurHandler,this);jcf.lib.event.add(this.fakeElement,'click',this.onFakeClick,this);jcf.lib.event.add(this.fakeElement,jcf.eventPress,this.onFakePressed,this);jcf.lib.event.add(this.fakeElement,jcf.eventRelease,this.onFakeReleased,this);if(this.labelFor){this.labelFor.jcf=this;jcf.lib.event.add(this.labelFor,'click',this.onFakeClick,this);jcf.lib.event.add(this.labelFor,jcf.eventPress,this.onFakePressed,this);jcf.lib.event.add(this.labelFor,jcf.eventRelease,this.onFakeReleased,this);}},fixStyles:function(){if(jcf.isTouchDevice){var tapStyle='rgba(255,255,255,0)';this.realElement.style.webkitTapHighlightColor=tapStyle;this.fakeElement.style.webkitTapHighlightColor=tapStyle;if(this.labelFor){this.labelFor.style.webkitTapHighlightColor=tapStyle;}}},setupWrapper:function(){},refreshState:function(){},destroy:function(){if(this.fakeElement&&this.fakeElement.parentNode){this.fakeElement.parentNode.removeChild(this.fakeElement);}
27jcf.lib.removeClass(this.realElement,jcf.baseOptions.hiddenClass);this.realElement.jcf=null;},onFocus:function(){jcf.lib.addClass(this.fakeElement,this.options.focusClass);},onBlur:function(cb){jcf.lib.removeClass(this.fakeElement,this.options.focusClass);},onFocusHandler:function(){if(this.focused)return;this.focused=true;if(jcf.isTouchDevice){if(jcf.focusedInstance&&jcf.focusedInstance.realElement!=this.realElement){jcf.focusedInstance.onBlur();jcf.focusedInstance.realElement.blur();}
28jcf.focusedInstance=this;}
29this.onFocus.apply(this,arguments);},onBlurHandler:function(){if(!this.pressedFlag){this.focused=false;this.onBlur.apply(this,arguments);}},onFakeClick:function(){if(jcf.isTouchDevice){this.onFocus();}else if(!this.realElement.disabled){this.realElement.focus();}},onFakePressed:function(e){this.pressedFlag=true;},onFakeReleased:function(){this.pressedFlag=false;},onCreateModule:function(){},onModuleAdded:function(module){},onControlReady:function(){}});jcf.lib={bind:function(func,scope){return function(){return func.apply(scope,arguments);}},browser:(function(){var ua=navigator.userAgent.toLowerCase(),res={},match=/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(ua)||[];res[match[1]]=true;res.version=match[2]||"0";res.safariMac=ua.indexOf('mac')!=-1&&ua.indexOf('safari')!=-1;return res;})(),getOffset:function(obj){if(obj.getBoundingClientRect&&!navigator.msPointerEnabled){var scrollLeft=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft;var scrollTop=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;var clientLeft=document.documentElement.clientLeft||document.body.clientLeft||0;var clientTop=document.documentElement.clientTop||document.body.clientTop||0;return{top:Math.round(obj.getBoundingClientRect().top+scrollTop-clientTop),left
29:Math.round(obj.getBoundingClientRect().left+scrollLeft-clientLeft)}}else{var posLeft=0,posTop=0;while(obj.offsetParent){posLeft+=obj.offsetLeft;posTop+=obj.offsetTop;obj=obj.offsetParent;}
30return{top:posTop,left:posLeft};}},getScrollTop:function(){return window.pageYOffset||document.documentElement.scrollTop;},getScrollLeft:function(){return window.pageXOffset||document.documentElement.scrollLeft;},getWindowWidth:function(){return document.compatMode=='CSS1Compat'?document.documentElement.clientWidth:document.body.clientWidth;},getWindowHeight:function(){return document.compatMode=='CSS1Compat'?document.documentElement.clientHeight:document.body.clientHeight;},getStyle:function(el,prop){if(document.defaultView&&document.defaultView.getComputedStyle){return document.defaultView.getComputedStyle(el,null)[prop];}else if(el.currentStyle){return el.currentStyle[prop];}else{return el.style[prop];}},getParent:function(obj,selector){while(obj.parentNode&&obj.parentNode!=document.body){if(obj.parentNode.tagName.toLowerCase()==selector.toLowerCase()){return obj.parentNode;}
31obj=obj.parentNode;}
32return false;},isParent:function(child,parent){while(child.parentNode){if(child.parentNode===parent){return true;}
33child=child.parentNode;}
34return false;},getLabelFor:function(object){var parentLabel=jcf.lib.getParent(object,'label');if(parentLabel){return parentLabel;}else if(object.id){return jcf.lib.queryBySelector('label[for="'+object.id+'"]')[0];}},disableTextSelection:function(el){if(typeof el.onselectstart!=='undefined'){el.onselectstart=function(){return false};}else if(window.opera){el.setAttribute('unselectable','on');}else{jcf.lib.addClass(el,jcf.baseOptions.unselectableClass);}},enableTextSelection:function(el){if(typeof el.onselectstart!=='undefined'){el.onselectstart=null;}else if(window.opera){el.removeAttribute('unselectable');}else{jcf.lib.removeClass(el,jcf.baseOptions.unselectableClass);}},queryBySelector:function(selector,scope){return this.getElementsBySelector(selector,scope);},prevSibling:function(node){while(node=node.previousSibling)if(node.nodeType==1)break;return node;},nextSibling:function(node){while(node=node.nextSibling)if(node.nodeType==1)break;return node;},fireEvent:function(element,event){if(element.dispatchEvent){var evt=document.createEvent('HTMLEvents');evt.initEvent(event,true,true);return!element.dispatchEvent(evt);}else if(document.createEventObject){var evt=document.createEventObject();return element.fireEvent('on'+event,evt);}},isParent:function(p,c){while(c.parentNode){if(p==c){return true;}
35c=c.parentNode;}
36return false;},inherit:function(Child,Parent){var F=function(){}
37F.prototype=Parent.prototype
38Child.prototype=new F()
39Child.prototype.constructor=Child
40Child.superclass=Parent.prototype},extend:function(obj){for(var i=1;i<arguments.length;i++){for(var p in arguments[i]){if(arguments[i].hasOwnProperty(p)){obj[p]=arguments[i][p];}}}
41return obj;},hasClass:function(obj,cname){return(obj.className?obj.className.match(new RegExp('(\\s|^)'+cname+'(\\s|$)')):false);},addClass:function(obj,cname){if(!this.hasClass(obj,cname))obj.className+=(!obj.className.length||obj.className.charAt(obj.className.length-1)===' '?'':' ')+cname;},removeClass:function(obj,cname){if(this.hasClass(obj,cname))obj.className=obj.className.replace(new RegExp('(\\s|^)'+cname+'(\\s|$)'),' ').replace(/\s+$/,'');},toggleClass:function(obj,cname,condition){if(condition)this.addClass(obj,cname);else this.removeClass(obj,cname);},createElement:function(tagName,options){var el=document.createElement(tagName);for(var p in options){if(options.hasOwnProperty(p)){switch(p){case'class':el.className=options[p];break;case'html':el.innerHTML=options[p];break;case'style':this.setStyles(el,options[p]);break;default:el.setAttribute(p,options[p]);}}}
42return el;},setStyles:function(el,styles){for(var p in styles){if(styles.hasOwnProperty(p)){switch(p){case'float':el.style.cssFloat=styles[p];break;case'opacity':el.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity='+styles[p]*100+')';el.style.opacity=styles[p];break;default:el.style[p]=(typeof styles[p]==='undefined'?0:styles[p])+(typeof styles[p]==='number'?'px':'');}}}
43return el;},getInnerWidth:function(el){return el.offsetWidth-(parseInt(this.getStyle(el,'paddingLeft'))||0)-(parseInt(this.getStyle(el,'paddingRight'))||0);},getInnerHeight:function(el){return el.offsetHeight-(parseInt(this.getStyle(el,'paddingTop'))||0)-(parseInt(this.getStyle(el,'paddingBottom'))||0);},getAllClasses:function(cname,prefix,skip){if(!skip)skip='';if(!prefix)prefix='';return cname?cname.replace(new RegExp('(\\s|^)'+skip+'(\\s|$)'),' ').replace(/[\s]*([\S]+)+[\s]*/gi,prefix+"$1 "):'';},getElementsBySelector:function(selector,scope){if(typeof document.querySelectorAll==='function'){return(scope||document).querySelectorAll(selector);}
44var selectors=selector.split(',');var resultList=[];for(var s=0;s<selectors.length;s++){var currentContext=[scope||document];var tokens=selectors[s].replace(/^\s+/,'').replace(/\s+$/,'').split(' ');for(var i=0;i<tokens.length;i++){token=tokens[i].replace(/^\s+/,'').replace(/\s+$/,'');if(token.indexOf('#')>-1){var bits=token.split('#'),tagName=bits[0],id=bits[1];var element=document.getElementById(id);if(tagName&&element.nodeName.toLowerCase()!=tagName){return[];}
45currentContext=[element];continue;}
46if(token.indexOf('.')>-1){var bits=token.split('.'),tagName=bits[0]||'*',className=bits[1],found=[],foundCount=0;for(var h=0;h<currentContext.length;h++){var elements;if(tagName=='*'){elements=currentContext[h].getElementsByTagName('*');}else{elements=currentContext[h].getElementsByTagName(tagName);}
47for(var j=0;j<elements.length;j++){found[foundCount++]=elements[j];}}
48currentContext=[];var currentContextIndex=0;for(var k=0;k<found.length;k++){if(found[k].className&&found[k].className.match(new RegExp('(\\s|^)'+className+'(\\s|$)'))){currentContext[currentContextIndex++]=found[k];}}
49continue;}
50if(token.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/)){var tagName=RegExp.$1||'*',attrName=RegExp.$2,attrOperator=RegExp.$3,attrValue=RegExp.$4;if(attrName.toLowerCase()=='for'&&this.browser.msie&&this.browser.version<8){attrName='htmlFor';}
51var found=[],foundCount=0;for(var h=0;h<currentContext.length;h++){var elements;if(tagName=='*'){elements=currentContext[h].getElementsByTagName('*');}else{elements=currentContext[h].getElementsByTagName(tagName);}
52for(var j=0;elements[j];j++){found[foundCount++]=elements[j];}}
53currentContext=[];var currentContextIndex=0,checkFunction;switch(attrOperator){case'=':checkFunction=function(e){return(e.getAttribute(attrName)==attrValue)};break;case'~':checkFunction=function(e){return(e.getAttribute(attrName).match(new RegExp('(\\s|^)'+attrValue+'(\\s|$)')))};break;
53case'|':checkFunction=function(e){return(e.getAttribute(attrName).match(new RegExp('^'+attrValue+'-?')))};break;case'^':checkFunction=function(e){return(e.getAttribute(attrName).indexOf(attrValue)==0)};break;case'$':checkFunction=function(e){return(e.getAttribute(attrName).lastIndexOf(attrValue)==e.getAttribute(attrName).length-attrValue.length)};break;case'*':checkFunction=function(e){return(e.getAttribute(attrName).indexOf(attrValue)>-1)};break;default:checkFunction=function(e){return e.getAttribute(attrName)};}
54currentContext=[];var currentContextIndex=0;for(var k=0;k<found.length;k++){if(checkFunction(found[k])){currentContext[currentContextIndex++]=found[k];}}
55continue;}
56tagName=token;var found=[],foundCount=0;for(var h=0;h<currentContext.length;h++){var elements=currentContext[h].getElementsByTagName(tagName);for(var j=0;j<elements.length;j++){found[foundCount++]=elements[j];}}
57currentContext=found;}
58resultList=[].concat(resultList,currentContext);}
59return resultList;},scrollSize:(function(){var content,hold,sizeBefore,sizeAfter;function buildSizer(){if(hold)removeSizer();content=document.createElement('div');hold=document.createElement('div');hold.style.cssText='position:absolute;overflow:hidden;width:100px;height:100px';hold.appendChild(content);document.body.appendChild(hold);}
60function removeSizer(){document.body.removeChild(hold);hold=null;}
61function calcSize(vertical){buildSizer();content.style.cssText='height:'+(vertical?'100%':'200px');sizeBefore=(vertical?content.offsetHeight:content.offsetWidth);hold.style.overflow='scroll';content.innerHTML=1;sizeAfter=(vertical?content.offsetHeight:content.offsetWidth);if(vertical&&hold.clientHeight)sizeAfter=hold.clientHeight;removeSizer();return sizeBefore-sizeAfter;}
62return{getWidth:function(){return calcSize(false);},getHeight:function(){return calcSize(true)}}}()),domReady:function(handler){var called=false
63function ready(){if(called)return;called=true;handler();}
64if(document.addEventListener){document.addEventListener("DOMContentLoaded",ready,false);}else if(document.attachEvent){if(document.documentElement.doScroll&&window==window.top){function tryScroll(){if(called)return
65if(!document.body)return
66try{document.documentElement.doScroll("left")
67ready()}catch(e){setTimeout(tryScroll,0)}}
68tryScroll()}
69document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){ready()}})}
70if(window.addEventListener)window.addEventListener('load',ready,false)
71else if(window.attachEvent)window.attachEvent('onload',ready)},event:(function(){var guid=0;function fixEvent(e){e=e||window.event;if(e.isFixed){return e;}
72e.isFixed=true;e.preventDefault=e.preventDefault||function(){this.returnValue=false}
73e.stopPropagation=e.stopPropagaton||function(){this.cancelBubble=true}
74if(!e.target){e.target=e.srcElement}
75if(!e.relatedTarget&&e.fromElement){e.relatedTarget=e.fromElement==e.target?e.toElement:e.fromElement;}
76if(e.pageX==null&&e.clientX!=null){var html=document.documentElement,body=document.body;e.pageX=e.clientX+(html&&html.scrollLeft||body&&body.scrollLeft||0)-(html.clientLeft||0);e.pageY=e.clientY+(html&&html.scrollTop||body&&body.scrollTop||0)-(html.clientTop||0);}
77if(!e.which&&e.button){e.which=e.button&1?1:(e.button&2?3:(e.button&4?2:0));}
78if(e.type==="DOMMouseScroll"||e.type==='mousewheel'){e.mWheelDelta=0;if(e.wheelDelta){e.mWheelDelta=e.wheelDelta/120;}else if(e.detail){e.mWheelDelta=-e.detail/3;}}
79return e;}
80function commonHandle(event,customScope){event=fixEvent(event);var handlers=this.events[event.type];for(var g in handlers){var handler=handlers[g];var ret=handler.call(customScope||this,event);if(ret===false){event.preventDefault()
81event.stopPropagation()}}}
82var publicAPI={add:function(elem,type,handler,forcedScope){if(elem.setInterval&&(elem!=window&&!elem.frameElement)){elem=window;}
83if(!handler.guid){handler.guid=++guid;}
84if(!elem.events){elem.events={};elem.handle=function(event){return commonHandle.call(elem,event);}}
85if(!elem.events[type]){elem.events[type]={};if(elem.addEventListener)elem.addEventListener(type,elem.handle,false);else if(elem.attachEvent)elem.attachEvent("on"+type,elem.handle);if(type==='mousewheel'){publicAPI.add(elem,'DOMMouseScroll',handler,forcedScope);}}
86var fakeHandler=jcf.lib.bind(handler,forcedScope);fakeHandler.guid=handler.guid;elem.events[type][handler.guid]=forcedScope?fakeHandler:handler;},remove:function(elem,type,handler){var handlers=elem.events&&elem.events[type];
86if(!handlers)return;delete handlers[handler.guid];for(var any in handlers)return;if(elem.removeEventListener)elem.removeEventListener(type,elem.handle,false);else if(elem.detachEvent)elem.detachEvent("on"+type,elem.handle);delete elem.events[type];for(var any in elem.events)return;try{delete elem.handle;delete elem.events;}catch(e){if(elem.removeAttribute){elem.removeAttribute("handle");elem.removeAttribute("events");}}
87if(type==='mousewheel'){publicAPI.remove(elem,'DOMMouseScroll',handler);}}}
88return publicAPI;}())}
89jcf.addModule({name:'select',selector:'select',defaultOptions:{useNativeDropOnMobileDevices:true,hideDropOnScroll:true,showNativeDrop:false,handleDropPosition:true,selectDropPosition:'bottom',wrapperClass:'select-area',focusClass:'select-focus',dropActiveClass:'select-active',selectedClass:'item-selected',currentSelectedClass:'current-selected',disabledClass:'select-disabled',valueSelector:'span.center',optGroupClass:'optgroup',openerSelector:'a.select-opener',selectStructure:'<span class="left"></span><span class="center"></span><a class="select-opener"></a>',wrapperTag:'span',classPrefix:'select-',dropMaxHeight:200,dropFlippedClass:'select-options-flipped',dropHiddenClass:'options-hidden',dropScrollableClass:'options-overflow',dropClass:'select-options',dropClassPrefix:'drop-',dropStructure:'<div class="drop-holder"><div class="drop-list"></div></div>',dropSelector:'div.drop-list'},checkElement:function(el){return(!el.size&&!el.multiple);},setupWrapper:function(){jcf.lib.addClass(this.fakeElement,this.options.wrapperClass);this.realElement.parentNode.insertBefore(this.fakeElement,this.realElement);this.fakeElement.innerHTML=this.options.selectStructure;this.fakeElement.style.width=(this.realElement.offsetWidth>0?this.realElement.offsetWidth+'px':'auto');if(jcf.baseOptions.useNativeDropOnMobileDevices&&(jcf.isTouchDevice||jcf.isWinPhoneDevice)){this.options.showNativeDrop=true;}
90if(this.options.showNativeDrop){this.fakeElement.appendChild(this.realElement);jcf.lib.removeClass(this.realElement,this.options.hiddenClass);jcf.lib.setStyles(this.realElement,{top:0,left:0,margin:0,padding:0,opacity:0,border:'none',position:'absolute',width:jcf.lib.getInnerWidth(this.fakeElement)-1,height:jcf.lib.getInnerHeight(this.fakeElement)-1});jcf.lib.event.add(this.realElement,'touchstart',function(){this.realElement.title='';},this)}
91this.opener=jcf.lib.queryBySelector(this.options.openerSelector,this.fakeElement)[0];this.valueText=jcf.lib.queryBySelector(this.options.valueSelector,this.fakeElement)[0];jcf.lib.disableTextSelection(this.valueText);this.opener.jcf=this;if(!this.options.showNativeDrop){this.createDropdown();this.refreshState();this.onControlReady(this);this.hideDropdown(true);}else{this.refreshState();}
92this.addEvents();},addEvents:function(){if(this.options.showNativeDrop){jcf.lib.event.add(this.realElement,'click',this.onChange,this);}else{jcf.lib.event.add(this.fakeElement,'click',this.toggleDropdown,this);}
93jcf.lib.event.add(this.realElement,'change',this.onChange,this);},onFakeClick:function(){},onFocus:function(){jcf.modules[this.name].superclass.onFocus.apply(this,arguments);if(!this.options.showNativeDrop){if(jcf.lib.browser.safariMac){this.realElement.setAttribute('size','2');}
94jcf.lib.event.add(this.realElement,'keydown',this.onKeyDown,this);if(jcf.activeControl&&jcf.activeControl!=this){jcf.activeControl.hideDropdown();jcf.activeControl=this;}}},onBlur:function(){if(!this.options.showNativeDrop){if(jcf.lib.browser.safariMac){this.realElement.removeAttribute('size');}
95if(!this.isActiveDrop()||!this.isOverDrop()){jcf.modules[this.name].superclass.onBlur.apply(this);if(jcf.activeControl===this)jcf.activeControl=null;if(!jcf.isTouchDevice){this.hideDropdown();}}
96jcf.lib.event.remove(this.realElement,'keydown',this.onKeyDown);}else{jcf.modules[this.name].superclass.onBlur.apply(this);}},onChange:function(){this.refreshState();},onKeyDown:function(e){this.dropOpened=true;jcf.tmpFlag=true;setTimeout(function(){jcf.tmpFlag=false},100);var context=this;context.keyboardFix=true;setTimeout(function(){context.refreshState();},10);if(e.keyCode==13){context.toggleDropdown.apply(context);return false;}},onResizeWindow:function(e){if(this.isActiveDrop()){this.hideDropdown();}},onScrollWindow:function(e){if(this.options.hideDropOnScroll){this.hideDropdown();}else if(this.isActiveDrop()){this.positionDropdown();}},onOptionClick:function(e){var opener=e.target&&e.target.tagName&&e.target.tagName.toLowerCase()=='li'?e.target:jcf.lib.getParent(e.target,'li');if(opener){this.dropOpened=true;
96this.realElement.selectedIndex=parseInt(opener.getAttribute('rel'));if(jcf.isTouchDevice){this.onFocus();}else{this.realElement.focus();}
97this.refreshState();this.hideDropdown();jcf.lib.fireEvent(this.realElement,'change');$(e.target).attr('href',$(this.realElement).val());}
98return false;},onClickOutside:function(e){if(jcf.tmpFlag){jcf.tmpFlag=false;return;}
99if(!jcf.lib.isParent(this.fakeElement,e.target)&&!jcf.lib.isParent(this.selectDrop,e.target)){this.hideDropdown();}},onDropHover:function(e){if(!this.keyboardFix){this.hoverFlag=true;var opener=e.target&&e.target.tagName&&e.target.tagName.toLowerCase()=='li'?e.target:jcf.lib.getParent(e.target,'li');if(opener){this.realElement.selectedIndex=parseInt(opener.getAttribute('rel'));this.refreshSelectedClass(parseInt(opener.getAttribute('rel')));}}else{this.keyboardFix=false;}},onDropLeave:function(){this.hoverFlag=false;},isActiveDrop:function(){return!jcf.lib.hasClass(this.selectDrop,this.options.dropHiddenClass);},isOverDrop:function(){return this.hoverFlag;},createDropdown:function(){if(this.selectDrop){this.selectDrop.parentNode.removeChild(this.selectDrop);}
100this.selectDrop=document.createElement('div');this.selectDrop.className=this.options.dropClass;this.selectDrop.innerHTML=this.options.dropStructure;jcf.lib.setStyles(this.selectDrop,{position:'absolute'});this.selectList=jcf.lib.queryBySelector(this.options.dropSelector,this.selectDrop)[0];jcf.lib.addClass(this.selectDrop,this.options.dropHiddenClass);document.body.appendChild(this.selectDrop);this.selectDrop.jcf=this;jcf.lib.event.add(this.selectDrop,'click',this.onOptionClick,this);jcf.lib.event.add(this.selectDrop,'mouseover',this.onDropHover,this);jcf.lib.event.add(this.selectDrop,'mouseout',this.onDropLeave,this);this.buildDropdown();},buildDropdown:function(){this.buildDropdownOptions();this.positionDropdown();this.buildDropdownScroll();},buildDropdownOptions:function(){this.resStructure='';this.optNum=0;for(var i=0;i<this.realElement.children.length;i++){this.resStructure+=this.buildElement(this.realElement.children[i],i)+'\n';}
101this.selectList.innerHTML=this.resStructure;},buildDropdownScroll:function(){if(this.options.dropMaxHeight){if(this.selectDrop.offsetHeight>this.options.dropMaxHeight){this.selectList.style.height=this.options.dropMaxHeight+'px';this.selectList.style.overflow='auto';this.selectList.style.overflowX='hidden';jcf.lib.addClass(this.selectDrop,this.options.dropScrollableClass);}}
102jcf.lib.addClass(this.selectDrop,jcf.lib.getAllClasses(this.realElement.className,this.options.dropClassPrefix,jcf.baseOptions.hiddenClass));},parseOptionTitle:function(optTitle){return(typeof optTitle==='string'&&/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i.test(optTitle))?optTitle:'';},buildElement:function(obj,index){var res='',optImage;if(obj.tagName.toLowerCase()=='option'){if(!jcf.lib.prevSibling(obj)||jcf.lib.prevSibling(obj).tagName.toLowerCase()!='option'){res+='<ul>';}
103optImage=this.parseOptionTitle(obj.title);res+='<li rel="'+(this.optNum++)+'" class="'+(obj.className?obj.className+' ':'')+(index%2?'option-even ':'')+'jcfcalc"><a href="#">'+(optImage?'<img src="'+optImage+'" alt="" />':'')+'<span>'+obj.innerHTML+'</span></a></li>';if(!jcf.lib.nextSibling(obj)||jcf.lib.nextSibling(obj).tagName.toLowerCase()!='option'){res+='</ul>';}
104return res;}
105else if(obj.tagName.toLowerCase()=='optgroup'&&obj.label){res+='<div class="'+this.options.optGroupClass+'">';res+='<strong class="jcfcalc"><em>'+(obj.label)+'</em></strong>';for(var i=0;i<obj.children.length;i++){res+=this.buildElement(obj.children[i],i);}
106res+='</div>';return res;}},positionDropdown:function(){var ofs=jcf.lib.getOffset(this.fakeElement),selectAreaHeight=this.fakeElement.offsetHeight,selectDropHeight=this.selectDrop.offsetHeight;var fitInTop=ofs.top-selectDropHeight>=jcf.lib.getScrollTop()&&jcf.lib.getScrollTop()+jcf.lib.getWindowHeight()<ofs.top+selectAreaHeight+selectDropHeight;if((this.options.handleDropPosition&&fitInTop)||this.options.selectDropPosition==='top'){this.selectDrop.style.top=(ofs.top-selectDropHeight)+'px';jcf.lib.addClass(this.selectDrop,this.options.dropFlippedClass);}else{this.selectDrop.style.top=(ofs.top+selectAreaHeight)+'px';jcf.lib.removeClass(this.selectDrop,this.options.dropFlippedClass);}
107this.selectDrop.style.left=ofs.left+'px';this.selectDrop.style.width=this.fakeElement.offsetWidth+'px';},showDropdown:function(){document.body.appendChild(this.selectDrop);jcf.lib.removeClass(this.selectDrop,this.options.dropHiddenClass);jcf.lib.addClass(this.fakeElement,this.options.dropActiveClass);this.positionDropdown();var activeItem=this.getFakeActiveOption();this.removeClassFromItems(this.options.currentSelectedClass);jcf.lib.addClass(activeItem,this.options.currentSelectedClass);jcf.lib.event.add(window,'resize',this.onResizeWindow,this);jcf.lib.event.add(window,'scroll',this.onScrollWindow,this);jcf.lib.event.add(document,jcf.eventPress,this.onClickOutside,this);this.positionDropdown();},hideDropdown:function(partial){if(this.selectDrop.parentNode){if(this.selectDrop.offsetWidth){this.selectDrop.parentNode.removeChild(this.selectDrop);}
108if(partial){return;}}
109if(typeof this.origSelectedIndex==='number'){this.realElement.selectedIndex=this.origSelectedIndex;}
110jcf.lib.removeClass(this.fakeElement,this.options.dropActiveClass);jcf.lib.addClass(this.selectDrop,this.options.dropHiddenClass);jcf.lib.event.remove(window,'resize',this.onResizeWindow);jcf.lib.event.remove(window,'scroll',this.onScrollWindow);jcf.lib.event.remove(document.documentElement,jcf.eventPress,this.onClickOutside);if(jcf.isTouchDevice){this.onBlur();}},toggleDropdown:function(){if(!this.realElement.disabled){if(jcf.isTouchDevice){this.onFocus();}else{this.realElement.focus();}
111if(this.isActiveDrop()){this.hideDropdown();}else{this.showDropdown();}
112this.refreshState();}},scrollToItem:function(){if(this.isActiveDrop()){var dropHeight=this.selectList.offsetHeight;var offsetTop=this.calcOptionOffset(this.getFakeActiveOption());var sTop=this.selectList.scrollTop;var oHeight=this.getFakeActiveOption().offsetHeight;if(offsetTop>=sTop+dropHeight){this.selectList.scrollTop=offsetTop-dropHeight+oHeight;}else if(offsetTop<sTop){this.selectList.scrollTop=offsetTop;}}},getFakeActiveOption:function(c){return jcf.lib.queryBySelector('li[rel="'+(typeof c==='number'?c:this.realElement.selectedIndex)+'"]',this.selectList)[0];},calcOptionOffset:function(fake){var h=0;
112var els=jcf.lib.queryBySelector('.jcfcalc',this.selectList);for(var i=0;i<els.length;i++){if(els[i]==fake)break;h+=els[i].offsetHeight;}
113return h;},childrenHasItem:function(hold,item){var items=hold.getElementsByTagName('*');for(i=0;i<items.length;i++){if(items[i]==item)return true;}
114return false;},removeClassFromItems:function(className){var children=jcf.lib.queryBySelector('li',this.selectList);for(var i=children.length-1;i>=0;i--){jcf.lib.removeClass(children[i],className);}},setSelectedClass:function(c){jcf.lib.addClass(this.getFakeActiveOption(c),this.options.selectedClass);},refreshSelectedClass:function(c){if(!this.options.showNativeDrop){this.removeClassFromItems(this.options.selectedClass);this.setSelectedClass(c);}
115if(this.realElement.disabled){jcf.lib.addClass(this.fakeElement,this.options.disabledClass);if(this.labelFor){jcf.lib.addClass(this.labelFor,this.options.labelDisabledClass);}}else{jcf.lib.removeClass(this.fakeElement,this.options.disabledClass);if(this.labelFor){jcf.lib.removeClass(this.labelFor,this.options.labelDisabledClass);}}},refreshSelectedText:function(){if(!this.dropOpened&&this.realElement.title){this.valueText.innerHTML=this.realElement.title;}else{if(this.realElement.options[this.realElement.selectedIndex].title){var optImage=this.parseOptionTitle(this.realElement.options[this.realElement.selectedIndex].title);this.valueText.innerHTML=(optImage?'<img src="'+optImage+'" alt="" />':'')+this.realElement.options[this.realElement.selectedIndex].innerHTML;}else{this.valueText.innerHTML=this.realElement.options[this.realElement.selectedIndex].innerHTML;}}},refreshState:function(){this.origSelectedIndex=this.realElement.selectedIndex;this.refreshSelectedClass();this.refreshSelectedText();if(!this.options.showNativeDrop){this.positionDropdown();if(this.selectDrop.offsetWidth){this.scrollToItem();}}}});;(function(){var placeholderCollection=[];PlaceholderInput=function(){this.options={element:null,showUntilTyping:false,wrapWithElement:false,getParentByClass:false,showPasswordBullets:false,placeholderAttr:'value',inputFocusClass:'focus',inputActiveClass:'text-active',parentFocusClass:'parent-focus',parentActiveClass:'parent-active',labelFocusClass:'label-focus',labelActiveClass:'label-active',fakeElementClass:'input-placeholder-text'};placeholderCollection.push(this);this.init.apply(this,arguments);};PlaceholderInput.refreshAllInputs=function(except){for(var i=0;i<placeholderCollection.length;i++){if(except!==placeholderCollection[i]){placeholderCollection[i].refreshState();}}};PlaceholderInput.replaceByOptions=function(opt){var inputs=[].concat(convertToArray(document.getElementsByTagName('input')),convertToArray(document.getElementsByTagName('textarea')));for(var i=0;i<inputs.length;i++){if(inputs[i].className.indexOf(opt.skipClass)<0){var inputType=getInputType(inputs[i]);var placeholderValue=inputs[i].getAttribute('placeholder');if(opt.focusOnly||(opt.clearInputs&&(inputType==='text'||inputType==='email'||placeholderValue))||(opt.clearTextareas&&inputType==='textarea')||(opt.clearPasswords&&inputType==='password')){new PlaceholderInput({element:inputs[i],focusOnly:opt.focusOnly,wrapWithElement:opt.wrapWithElement,showUntilTyping:opt.showUntilTyping,getParentByClass:opt.getParentByClass,showPasswordBullets:opt.showPasswordBullets,placeholderAttr:placeholderValue?'placeholder':opt.placeholderAttr});}}}};PlaceholderInput.prototype={init:function(opt){this.setOptions(opt);if(this.element&&this.element.PlaceholderInst){this.element.PlaceholderInst.refreshClasses();}else{this.element.PlaceholderInst=this;if(this.elementType!=='radio'||this.elementType!=='checkbox'||this.elementType!=='file'){this.initElements();this.attachEvents();this.refreshClasses();}}},setOptions:function(opt){for(var p in opt){if(opt.hasOwnProperty(p)){this.options[p]=opt[p];}}
116if(this.options.element){this.element=this.options.element;this.elementType=getInputType(this.element);if(this.options.focusOnly){this.wrapWithElement=false;}else{if(this.elementType==='password'&&this.options.showPasswordBullets){this.wrapWithElement=false;}else{this.wrapWithElement=this.elementType==='password'||this.options.showUntilTyping?true:this.options.wrapWithElement;}}
117this.setPlaceholderValue(this.options.placeholderAttr);}},setPlaceholderValue:function(attr){this.origValue=(attr==='value'?this.element.defaultValue:(this.element.getAttribute(attr)||''));if(this.options.placeholderAttr!=='value'){this.element.removeAttribute(this.options.placeholderAttr);}},initElements:function(){if(this.wrapWithElement){this.fakeElement=document.createElement('span');this.fakeElement.className=this.options.fakeElementClass;this.fakeElement.innerHTML+=this.origValue;this.fakeElement.style.color=getStyle(this.element,'color');this.fakeElement.style.position='absolute';this.element.parentNode.insertBefore(this.fakeElement,this.element);if(this.element.value===this.origValue||!this.element.value){this.element.value='';this.togglePlaceholderText(true);}else{this.togglePlaceholderText(false);}}else if(!this.element.value&&this.origValue.length){this.element.value=this.origValue;}
118if(this.element.id){this.labels=document.getElementsByTagName('label');for(var i=0;i<this.labels.length;i++){if(this.labels[i].htmlFor===this.element.id){this.labelFor=this.labels[i];break;}}}
119this.elementParent=this.element.parentNode;if(typeof this.options.getParentByClass==='string'){var el=this.element;while(el.parentNode){if(hasClass(el.parentNode,this.options.getParentByClass)){this.elementParent=el.parentNode;break;}else{el=el.parentNode;}}}},attachEvents:function(){this.element.onfocus=bindScope(this.focusHandler,this);this.element.onblur=bindScope(this.blurHandler,this);if(this.options.showUntilTyping){this.element.onkeydown=bindScope(this.typingHandler,this);this.element.onpaste=bindScope(this.typingHandler,this);}
120if(this.wrapWithElement)this.fakeElement.onclick=bindScope(this.focusSetter,this);},togglePlaceholderText:function(state){if(!this.element.readOnly&&!this.options.focusOnly){if(this.wrapWithElement){this.fakeElement.style.display=state?'':'none';}else{this.element.value=state?this.origValue:'';}}},focusSetter:function(){this.element.focus();},focusHandler:function(){clearInterval(this.checkerInterval);this.checkerInterval=setInterval(bindScope(this.intervalHandler,this),1);this.focused=true;if(!this.element.value.length||this.element.value===this.origValue){if(!this.options.showUntilTyping){this.togglePlaceholderText(false);}}
121this.refreshClasses();},blurHandler:function(){clearInterval(this.checkerInterval);this.focused=false;if(!this.element.value.length||this.element.value===this.origValue){this.togglePlaceholderText(true);}
122this.refreshClasses();PlaceholderInput.refreshAllInputs(this);},typingHandler:function(){setTimeout(bindScope(function(){if(this.element.value.length){this.togglePlaceholderText(false);this.refreshClasses();}},this),10);},intervalHandler:function(){if(typeof this.tmpValue==='undefined'){this.tmpValue=this.element.value;}
123if(this.tmpValue!=this.element.value){PlaceholderInput.refreshAllInputs(this);}},refreshState:function(){if(this.wrapWithElement){if(this.element.value.length&&this.element.value!==this.origValue){this.togglePlaceholderText(false);}else if(!this.element.value.length){this.togglePlaceholderText(true);}}
124this.refreshClasses();},refreshClasses:function(){this.textActive=this.focused||(this.element.value.length&&this.element.value!==this.origValue);this.setStateClass(this.element,this.options.inputFocusClass,this.focused);this.setStateClass(this.elementParent,this.options.parentFocusClass,this.focused);this.setStateClass(this.labelFor,this.options.labelFocusClass,this.focused);this.setStateClass(this.element,this.options.inputActiveClass,this.textActive);this.setStateClass(this.elementParent,this.options.parentActiveClass,this.textActive);this.setStateClass(this.labelFor,this.options.labelActiveClass,this.textActive);},setStateClass:function(el,cls,state){if(!el)return;else if(state)addClass(el,cls);else removeClass(el,cls);}};function convertToArray(collection){var arr=[];for(var i=0,ref=arr.length=collection.length;i<ref;i++){arr[i]=collection[i];}
125return arr;}
126function getInputType(input){return(input.type?input.type:input.tagName).toLowerCase();}
127function hasClass(el,cls){return el.className?el.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)')):false;}
128function addClass(el,cls){if(!hasClass(el,cls))el.className+=" "+cls;}
129function removeClass(el,cls){if(hasClass(el,cls)){el.className=el.className.replace(new RegExp('(\\s|^)'+cls+'(\\s|$)'),' ');}}
130function bindScope(f,scope){return function(){return f.apply(scope,arguments);};}
131function getStyle(el,prop){if(document.defaultView&&document.defaultView.getComputedStyle){return document.defaultView.getComputedStyle(el,null)[prop];}else if(el.currentStyle){return el.currentStyle[prop];}else{return el.style[prop];}}}());lib={hasClass:function(el,cls){return el&&el.className?el.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)')):false;},addClass:function(el,cls){if(el&&!this.hasClass(el,cls))el.className+=" "+cls;},removeClass:function(el,cls){if(el&&this.hasClass(el,cls)){el.className=el.className.replace(new RegExp('(\\s|^)'+cls+'(\\s|$)'),'');}},extend:function(obj){for(var i=1;i<arguments.length;i++){for(var p in arguments[i]){if(arguments[i].hasOwnProperty(p)){obj[p]=arguments[i][p];}}}
132return obj;},each:function(obj,callback){var property,len;if(typeof obj.length==='number'){for(property=0,len=obj.length;property<len;property++){if(callback.call(obj[property],property,obj[property])===false){break;}}}else{for(property in obj){if(obj.hasOwnProperty(property)){if(callback.call(obj[property],property,obj[property])===false){break;}}}}},event:(function(){var fixEvent=function(e){e=e||window.event;if(e.isFixed)return e;else e.isFixed=true;if(!e.target)e.target=e.srcElement;e.preventDefault=e.preventDefault||function(){this.returnValue=false;};e.stopPropagation=e.stopPropagation||function(){this.cancelBubble=true;};return e;};return{add:function(elem,event,handler){if(!elem.events){elem.events={};elem.handle=function(e){var ret,handlers=elem.events[e.type];e=fixEvent(e);for(var i=0,len=handlers.length;i<len;i++){if(handlers[i]){ret=handlers[i].call(elem,e);if(ret===false){e.preventDefault();e.stopPropagation();}}}};}
133if(!elem.events[event]){elem.events[event]=[];if(elem.addEventListener)elem.addEventListener(event,elem.handle,false);else if(elem.attachEvent)elem.attachEvent('on'+event,elem.handle);}
134elem.events[event].push(handler);},remove:function(elem,event,handler){var handlers=elem.events[event];for(var i=handlers.length-1;i>=0;i--){if(handlers[i]===handler){handlers.splice(i,1);}}
135if(!handlers.length){delete elem.events[event];if(elem.removeEventListener)elem.removeEventListener(event,elem.handle,false);else if(elem.detachEvent)elem.detachEvent('on'+event,elem.handle);}}};}()),queryElementsBySelector:function(selector,scope){scope=scope||document;if(!selector)return[];if(selector==='>*')return scope.children;if(typeof document.querySelectorAll==='function'){return scope.querySelectorAll(selector);}
136var selectors=selector.split(',');var resultList=[];for(var s=0;s<selectors.length;s++){var currentContext=[scope||document];var tokens=selectors[s].replace(/^\s+/,'').replace(/\s+$/,'').split(' ');for(var i=0;i<tokens.length;i++){token=tokens[i].replace(/^\s+/,'').replace(/\s+$/,'');if(token.indexOf('#')>-1){var bits=token.split('#'),tagName=bits[0],id=bits[1];var element=document.getElementById(id);if(element&&tagName&&element.nodeName.toLowerCase()!=tagName){return[];}
137currentContext=element?[element]:[];continue;}
138if(token.indexOf('.')>-1){var bits=token.split('.'),tagName=bits[0]||'*',className=bits[1],found=[],foundCount=0;for(var h=0;h<currentContext.length;h++){var elements;if(tagName=='*'){elements=currentContext[h].getElementsByTagName('*');}else{elements=currentContext[h].getElementsByTagName(tagName);}
139for(var j=0;j<elements.length;j++){found[foundCount++]=elements[j];}}
140currentContext=[];var currentContextIndex=0;for(var k=0;k<found.length;k++){if(found[k].className&&found[k].className.match(new RegExp('(\\s|^)'+className+'(\\s|$)'))){currentContext[currentContextIndex++]=found[k];}}
141continue;}
142if(token.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/)){var tagName=RegExp.$1||'*',attrName=RegExp.$2,attrOperator=RegExp.$3,attrValue=RegExp.$4;if(attrName.toLowerCase()=='for'&&this.browser.msie&&this.browser.version<8){attrName='htmlFor';}
143var found=[],foundCount=0;for(var h=0;h<currentContext.length;h++){var elements;if(tagName=='*'){elements=currentContext[h].getElementsByTagName('*');}else{elements=currentContext[h].getElementsByTagName(tagName);}
144for(var j=0;elements[j];j++){found[foundCount++]=elements[j];}}
145currentContext=[];var currentContextIndex=0,checkFunction;switch(attrOperator){case'=':checkFunction=function(e){return(e.getAttribute(attrName)==attrValue)};break;case'~':checkFunction=function(e){return(e.getAttribute(attrName).match(new RegExp('(\\s|^)'+attrValue+'(\\s|$)')))};break;
145case'|':checkFunction=function(e){return(e.getAttribute(attrName).match(new RegExp('^'+attrValue+'-?')))};break;case'^':checkFunction=function(e){return(e.getAttribute(attrName).indexOf(attrValue)==0)};break;case'$':checkFunction=function(e){return(e.getAttribute(attrName).lastIndexOf(attrValue)==e.getAttribute(attrName).length-attrValue.length)};break;case'*':checkFunction=function(e){return(e.getAttribute(attrName).indexOf(attrValue)>-1)};break;default:checkFunction=function(e){return e.getAttribute(attrName)};}
146currentContext=[];var currentContextIndex=0;for(var k=0;k<found.length;k++){if(checkFunction(found[k])){currentContext[currentContextIndex++]=found[k];}}
147continue;}
148tagName=token;var found=[],foundCount=0;for(var h=0;h<currentContext.length;h++){var elements=currentContext[h].getElementsByTagName(tagName);for(var j=0;j<elements.length;j++){found[foundCount++]=elements[j];}}
149currentContext=found;}
150resultList=[].concat(resultList,currentContext);}
151return resultList;},trim:function(str){return str.replace(/^\s+/,'').replace(/\s+$/,'');},bind:function(f,scope,forceArgs){return function(){return f.apply(scope,typeof forceArgs!=='undefined'?[forceArgs]:arguments);};}};;(function($){$.fn.slideAccordion=function(opt){var options=$.extend({addClassBeforeAnimation:false,activeClass:'active',opener:'.opener',slider:'.slide',animSpeed:300,collapsible:true,event:'click'},opt);return this.each(function(){var accordion=$(this);var items=accordion.find(':has('+options.slider+')');items.each(function(){var item=$(this);var opener=item.find(options.opener);var slider=item.find(options.slider);opener.bind(options.event,function(e){if(!slider.is(':animated')){if(item.hasClass(options.activeClass)){if(options.collapsible){slider.slideUp(options.animSpeed,function(){hideSlide(slider);item.removeClass(options.activeClass);});}}else{var levelItems=item.siblings('.'+options.activeClass);var sliderElements=levelItems.find(options.slider);item.addClass(options.activeClass);showSlide(slider).hide().slideDown(options.animSpeed);sliderElements.slideUp(options.animSpeed,function(){levelItems.removeClass(options.activeClass);hideSlide(sliderElements);});}}
152e.preventDefault();});if(item.hasClass(options.activeClass))showSlide(slider);else hideSlide(slider);});});};var showSlide=function(slide){return slide.css({position:'',top:'',left:'',width:''});};var hideSlide=function(slide){return slide.show().css({position:'absolute',top:-9999,left:-9999,width:slide.width()});};}(jQuery));;(function($){function ContentPopup(opt){this.options=$.extend({holder:null,popup:'.popup',btnOpen:'.open',btnClose:'.close',openClass:'popup-active',clickEvent:'click',mode:'click',hideOnClickLink:true,hideOnClickOutside:true,delay:50},opt);if(this.options.holder){this.holder=$(this.options.holder);this.init();}}
153ContentPopup.prototype={init:function(){this.findElements();this.attachEvents();},findElements:function(){this.popup=this.holder.find(this.options.popup);this.btnOpen=this.holder.find(this.options.btnOpen);this.btnClose=this.holder.find(this.options.btnClose);},attachEvents:function(){var self=this;this.clickMode=isTouchDevice||(self.options.mode===self.options.clickEvent);if(this.clickMode){this.btnOpen.bind(self.options.clickEvent,function(e){if(self.holder.hasClass(self.options.openClass)){if(self.options.hideOnClickLink){self.hidePopup();}}else{self.showPopup();}
154e.preventDefault();});this.outsideClickHandler=this.bind(this.outsideClickHandler,this);}else{var timer,delayedFunc=function(func){clearTimeout(timer);timer=setTimeout(function(){func.call(self);},self.options.delay);};this.btnOpen.bind('mouseover',function(){delayedFunc(self.showPopup);}).bind('mouseout',function(){delayedFunc(self.hidePopup);});this.popup.bind('mouseover',function(){delayedFunc(self.showPopup);}).bind('mouseout',function(){delayedFunc(self.hidePopup);});}
155this.btnClose.bind(self.options.clickEvent,function(e){self.hidePopup();e.preventDefault();});},outsideClickHandler:function(e){var currentNode=(e.changedTouches?e.changedTouches[0]:e).target;if(!$(currentNode).parents().filter(this.holder).length){this.hidePopup();}},showPopup:function(){this.holder.addClass(this.options.openClass);this.popup.css({display:'block'});if(this.clickMode&&this.options.hideOnClickOutside&&!this.outsideHandlerActive){this.outsideHandlerActive=true;$(document).bind('click touchstart',this.outsideClickHandler);}},hidePopup:function(){this.holder.removeClass(this.options.openClass);this.popup.css({display:'none'});if(this.clickMode&&this.options.hideOnClickOutside&&this.outsideHandlerActive){this.outsideHandlerActive=false;$(document).unbind('click touchstart',this.outsideClickHandler);}},bind:function(f,scope,forceArgs){return function(){return f.apply(scope,forceArgs?[forceArgs]:arguments);};}};var isTouchDevice=/MSIE 10.*Touch/.test(navigator.userAgent)||('ontouchstart'in window)||window.DocumentTouch&&document instanceof DocumentTouch;$.fn.contentPopup=function(opt){return this.each(function(){new ContentPopup($.extend(opt,{holder:this}));});};}(jQuery));;(function($){function NavigationSelect(options){this.options=$.extend({list:null,levelIndentHTML:' &bull; ',defaultOptionAttr:'title',defaultOptionText:'...',selectClass:'nav-select',activeClass:'nav-active',defaultOptionClass:'opt-default',hasDropClass:'opt-sublevel',levelPrefixClass:'opt-level-',useDefaultOption:true},options);if(this.options.list){this.createSelect();this.attachEvents();}}
156NavigationSelect.prototype={createSelect:function(){var self=this;this.startIndex=0;this.navigation=$(this.options.list);this.select=$('<select>').addClass(this.options.selectClass);this.createDefaultOption();this.createList(this.navigation,0);this.select.insertBefore(this.navigation);},createDefaultOption:function(){if(this.options.useDefaultOption){var attrText=this.navigation.attr(this.options.defaultOptionAttr);var defaultOption=$('<option>').addClass(this.options.defaultOptionClass).text(attrText||this.options.defaultOptionText);this.navigation.removeAttr(this.options.defaultOptionAttr);this.select.append(defaultOption);this.startIndex=1;}},createList:function(list,level){var self=this;list.children().each(function(index,item){var listItem=$(this),listLink=listItem.find('a').eq(0),listDrop=listItem.find('ul').eq(0),hasDrop=listDrop.length>0;if(listLink.length){self.select.append(self.createOption(listLink,hasDrop,level,listLink.hasClass(self.options.activeClass)));}
157if(hasDrop){self.createList(listDrop,level+1);}});},createOption:function(link,hasDrop,level,selected){var optionHTML=this.getLevelIndent(level)+link.html();return $('<option>').html(optionHTML).addClass(this.options.levelPrefixClass+(level+1)).toggleClass(this.options.hasDropClass,hasDrop).val(link.attr('href')).attr('selected',selected?'selected':false);},getLevelIndent:function(level){return(new Array(level+1)).join(this.options.levelIndentHTML);},attachEvents:function(){var self=this;this.select.change(function(){if(this.selectedIndex>=self.startIndex){location.href=this.value;}});}};$.fn.navigationSelect=function(opt){return this.each(function(){new NavigationSelect($.extend({list:this},opt));});};}(jQuery));ResponsiveHelper=(function($){var handlers=[];var win=$(window),prevWinWidth;var scrollBarWidth=0;function resizeHandler(){var winWidth=win.width()+scrollBarWidth;if(winWidth!==prevWinWidth){prevWinWidth=winWidth;$.each(handlers,function(index,rangeObject){$.each(rangeObject.data,function(property,item){if((winWidth<item.range[0]||winWidth>item.range[1])&&item.currentActive){item.currentActive=false;if(typeof item.disableCallback==='function'){item.disableCallback();}}});$.each(rangeObject.data,function(property,item){if(winWidth>=item.range[0]&&winWidth<=item.range[1]&&!item.currentActive){item.currentActive=true;if(typeof item.enableCallback==='function'){item.enableCallback();}}});});}}
158win.bind('load',function(){if($.browser.mozilla||$.browser.opera){scrollBarWidth=window.innerWidth-$('body').width();resizeHandler();}
159win.bind('resize orientationchange',resizeHandler);});function parseRange(rangeStr){var rangeData=rangeStr.split('..');var x1=parseInt(rangeData[0],10)||-Infinity;var x2=parseInt(rangeData[1],10)||Infinity;return[x1,x2].sort(function(a,b){return a-b;});}
160return{addRange:function(ranges){var result={data:{}};$.each(ranges,function(property,data){result.data[property]={range:parseRange(property),enableCallback:data.on,disableCallback:data.off};});handlers.push(result);resizeHandler();}};}(jQuery));
161;/*! Facebook JS SDK https://developers.facebook.com/docs/javascript/ */
162(function(d, s, id) {
163	var js, fjs = d.getElementsByTagName(s)[0];
164	if (d.getElementById(id)) return;
165	js = d.createElement(s); js.id = id;
166	js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
167	fjs.parentNode.insertBefore(js, fjs);
168}(document, 'script', 'facebook-jssdk'));
169
170jQuery.expr[':'].parents = function(a,i,m){return jQuery(a).parents(m[3]).length > 0; /* Originally < 1 */ };
171
172/*! jQuery Migrate v1.2.1 | (c) 2005, 2013 jQuery Foundation, Inc. and other contributors | jquery.org/license */
173//jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(e,t,n){function r(n){var r=t.console;i[n]||(i[n]=!0,e.migrateWarnings.push(n),r&&r.warn&&!e.migrateMute&&(r.warn("JQMIGRATE: "+n),e.migrateTrace&&r.trace&&r.trace()))}function a(t,a,i,o){if(Object.defineProperty)try{return Object.defineProperty(t,a,{configurable:!0,enumerable:!0,get:function(){return r(o),i},set:function(e){r(o),i=e}}),n}catch(s){}e._definePropertyBroken=!0,t[a]=i}var i={};e.migrateWarnings=[],!e.migrateMute&&t.console&&t.console.log&&t.console.log("JQMIGRATE: Logging is active"),e.migrateTrace===n&&(e.migrateTrace=!0),e.migrateReset=function(){i={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");var o=e("<input/>",{size:1}).attr("size")&&e.attrFn,s=e.attr,u=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},c=e.attrHooks.value&&e.attrHooks.value.set||function(){return n},l=/^(?:input|button)$/i,d=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;a(e,"attrFn",o||{},"jQuery.attrFn is deprecated"),e.attr=function(t,a,i,u){var c=a.toLowerCase(),g=t&&t.nodeType;return u&&(4>s.length&&r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!d.test(g)&&(o?a in o:e.isFunction(e.fn[a])))?e(t)[a](i):("type"===a&&i!==n&&l.test(t.no
173deName)&&t.parentNode&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!e.attrHooks[c]&&p.test(c)&&(e.attrHooks[c]={get:function(t,r){var a,i=e.prop(t,r);return i===!0||"boolean"!=typeof i&&(a=t.getAttributeNode(r))&&a.nodeValue!==!1?r.toLowerCase():n},set:function(t,n,r){var a;return n===!1?e.removeAttr(t,r):(a=e.propFix[r]||r,a in t&&(t[a]=!0),t.setAttribute(r,r.toLowerCase())),r}},f.test(c)&&r("jQuery.fn.attr('"+c+"') may use property instead of attribute")),s.call(e,t,a,i))},e.attrHooks.value={get:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?u.apply(this,arguments):("input"!==n&&"option"!==n&&r("jQuery.fn.attr('value') no longer gets properties"),t in e?e.value:null)},set:function(e,t){var a=(e.nodeName||"").toLowerCase();return"button"===a?c.apply(this,arguments):("input"!==a&&"option"!==a&&r("jQuery.fn.attr('value', val) no longer sets properties"),e.value=t,n)}};var g,h,v=e.fn.init,m=e.parseJSON,y=/^([^<]*)(<[\w\W]+>)([^>]*)$/;e.fn.init=function(t,n,a){var i;return t&&"string"==typeof t&&!e.isPlainObject(n)&&(i=y.exec(e.trim(t)))&&i[0]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),i[3]&&r("$(html) HTML text after last tag is ignored"),"#"===i[0].charAt(0)&&(r("HTML string cannot start with a '#' character"),e.error("JQMIGRATE: Invalid selector string (XSS)")),n&&n.context&&(n=n.context),e.parseHTML)?v.call(this,e.parseHTML(i[2],n,!0),n,a):v.apply(this,arguments)},e.fn.init.prototype=e.fn,e.parseJSON=function(e){return e||null===e?m.apply(this,arguments):(r("jQuery.parseJSON requires a valid JSON string"),null)},e.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0>e.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.browser||(g=e.uaMatch(navigator.userAgent),h={},g.browser&&(h[g.browser]=!0,h.version=g.version),h.chrome?h.webkit=!0:h.webkit&&(h.safari=!0),e.browser=h),a(e,"browser",e.browser,"jQuery.browser is deprecated"),e.sub=function(){function t(e,n){return new t.fn.init(e,n)}e.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(r,a){return a&&a instanceof e&&!(a instanceof t)&&(a=t(a)),e.fn.init.call(this,r,a,n)},t.fn.init.prototype=t.fn;var n=t(document);return r("jQuery.sub() is deprecated"),t},e.ajaxSetup({converters:{"text json":e.parseJSON}});var b=e.fn.data;e.fn.data=function(t){var a,i,o=this[0];return!o||"events"!==t||1!==arguments.length||(a=e.data(o,t),i=e._data(o,t),a!==n&&a!==i||i===n)?b.apply(this,arguments):(r("Use of jQuery.fn.data('events') is deprecated"),i)};var j=/\/(java|ecma)script/i,w=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return r("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),w.apply(this,arguments)},e.clean||(e.clean=function(t,a,i,o){a=a||document,a=!a.nodeType&&a[0]||a,a=a.ownerDocument||a,r("jQuery.clean() is deprecated");var s,u,c,l,d=[];if(e.merge(d,e.buildFragment(t,a).childNodes),i)for(c=function(e){return!e.type||j.test(e.type)?o?o.push(e.parentNode?e.parentNode.removeChild(e):e):i.appendChild(e):n},s=0;null!=(u=d[s]);s++)e.nodeName(u,"script")&&c(u)||(i.appendChild(u),u.getElementsByTagName!==n&&(l=e.grep(e.merge([],u.getElementsByTagName("script")),c),d.splice.apply(d,[s+1,0].concat(l)),s+=l.length));return d});var Q=e.event.add,x=e.event.remove,k=e.event.trigger,N=e.fn.toggle,T=e.fn.live,M=e.fn.die,S="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",C=RegExp("\\b(?:"+S+")\\b"),H=/(?:^|\s)hover(\.\S+|)\b/,A=function(t){return"string"!=typeof t||e.event.special.hover?t:(H.test(t)&&r("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(H,"mouseenter$1 mouseleave$1"))};e.event.props&&"attrChange"!==e.event.props[0]&&e.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),e.event.dispatch&&a(e.event,"handle",e.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),e.event.add=function(e,t,n,a,i){e!==document&&C.test(t)&&r("AJAX events should be attached to document: "+t),Q.call(this,e,A(t||""),n,a,i)},e.event.remove=function(e,t,n,r,a){x.call(this,e,A(t)||"",n,r,a)},e.fn.error=function(){var e=Array.prototype.slice.call(arguments,0);return r("jQuery.fn.error() is deprecated"),e.splice(0,0,"error"),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this)},e.fn.toggle=function(t,n){if(!e.isFunction(t)||!e.isFunction(n))return N.apply(this,arguments);r("jQuery.fn.toggle(handler, handler...) is deprecated");var a=arguments,i=t.guid||e.guid++,o=0,s=function(n){var r=(e._data(this,"lastToggle"+t.guid)||0)%o;return e._data(this,"lastToggle"+t.guid,r+1),n.preventDefault(),a[r].apply(this,arguments)||!1};for(s.guid=i;a.length>o;)a[o++].guid=i;return this.click(s)},e.fn.live=function(t,n,a){return r("jQuery.fn.live() is deprecated"),T?T.apply(this,arguments):(e(this.context).on(t,this.selector,n,a),this)},e.fn.die=function(t,n){return r("jQuery.fn.die() is deprecated"),M?M.apply(this,arguments):(e(this.context).off(t,this.selector||"**",n),this)},e.event.trigger=function(e,t,n,a){return n||C.test(e)||r("Global events are undocumented and deprecated"),k.call(this,e,t,n||document,a)},e.each(S.split("|"),function(t,n){e.event.special[n]={setup:function(){var t=this;return t!==document&&(e.event.add(document,n+"."+e.guid,function(){e.event.trigger(n,null,t,!0)}),e._data(this,n,e.guid++)),!1},teardown:function(){return this!==document&&e.event.remove(document,n+"."+e._data(this,n)),!1}}})}(jQuery,window);
174
175/*! jQuery onFontResize 2013-03-31 (https://github.com/ginader/jquery.onfontresize) | (c) 2008 Tom Deater (http://www.tomdeater.com) | opensource.org/licenses/mit-license.php */
176jQuery.onFontResize=function(e){return e(document).ready(function(){var t=e("<iframe />").attr("id","frame-onFontResize"+Date.parse(new Date)).css({width:"100em",height:"10px",position:"absolute",borderWidth:0,top:"-5000px",left:"-5000px"}).appendTo("body"),n=/(msie) ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[],i=n[1]||"";if("msie"===i)t.bind("resize",function(){e.onFontResize.trigger(t[0].offsetWidth/100)});else{var o=t[0].contentWindow||t[0].contentDocument||t[0].document;o=o.document||o,o.open(),o.write('<div id="em" style="width:100em;height:10px;"></div>'),o.write('<script>window.onload = function(){var em = document.getElementById("em");window.onresize = function(){if(parent.jQuery.onFontResize){parent.jQuery.onFontResize.trigger(em.offsetWidth / 100);}}};</script>'),o.close()}}),{trigger:function(t){e(document).trigger("fontresize",[t])}}}(jQuery);
177
178/*! jQuery Same Height 2013-04-02 (https://github.com/leepowers/same-height) */
179(function($){$.fn.sameHeight=function(opt){var options=$.extend({skipClass:"same-height-ignore",leftEdgeClass:"same-height-left",rightEdgeClass:"same-height-right",elements:">*",flexible:false,multiLine:false,useMinHeight:false,minWidth:false},opt);return this.each(function(){var holder=$(this),postResizeTimer,ignoreResize;var elements=holder.find(options.elements).not("."+options.skipClass);if(!elements.length){return}function hitMinWidth(){return options.minWidth!==false&&options.minWidth>$(document).width()}function doResize(){elements.css(options.useMinHeight&&supportMinHeight?"minHeight":"height","");if(!hitMinWidth()){if(options.multiLine){resizeElementsByRows(elements,options)}else{resizeElements(elements,holder,options)}}}doResize();var delayedResizeHandler=function(){if(!ignoreResize){ignoreResize=true;doResize();clearTimeout(postResizeTimer);postResizeTimer=setTimeout(function(){doResize();setTimeout(function(){ignoreResize=false},10)},100)}};if(options.flexible){$(window).bind("resize orientationchange fontresize",delayedResizeHandler)}$(window).bind("load",delayedResizeHandler)})};var supportMinHeight=typeof document.documentElement.style.maxHeight!=="undefined";function resizeElementsByRows(boxes,options){var currentRow=$(),maxHeight,firstOffset=boxes.eq(0).offset().top;boxes.each(function(ind){var curItem=$(this);if(curItem.offset().top===firstOffset){currentRow=currentRow.add(this)}else{maxHeight=getMaxHeight(currentRow);resizeElements(currentRow,maxHeight,options);currentRow=curItem;firstOffset=curItem.offset().top}});if(currentRow.length){maxHeight=getMaxHeight(currentRow);resizeElements(currentRow,maxHeight,options)}}function getMaxHeight(boxes){var maxHeight=0;boxes.each(function(){maxHeight=Math.max(maxHeight,$(this).outerHeight())});return maxHeight}function resizeElements(boxes,parent,options){var parentHeight=typeof parent==="number"?parent:parent.height();boxes.removeClass(options.leftEdgeClass).removeClass(options.rightEdgeClass).each(function(i){var element=$(this);var depthDiffHeight=0;if(typeof parent!=="number"){element.parents().each(function(){var tmpParent=$(this);if(this===parent[0]){return false}else{depthDiffHeight+=tmpParent.outerHeight()-tmpParent.height()}})}var calcHeight=parentHeight-depthDiffHeight-(element.outerHeight()-element.innerHe
vendor: 4,247 bytes, lines 179-190
179ight());if(calcHeight>0){element.css(options.useMinHeight&&supportMinHeight?"minHeight":"height",calcHeight)}});boxes.filter(":first").addClass(options.leftEdgeClass);boxes.filter(":last").addClass(options.rightEdgeClass)}}(jQuery));
180
181
182/*! fancyBox v2.1.4 fancyapps.com | fancyapps.com/fancybox/#license */
183;(function(C,z,f,r){var q=f(C),n=f(z),b=f.fancybox=function(){b.open.apply(this,arguments)},H=navigator.userAgent.match(/msie/),w=null,s=z.createTouch!==r,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},p=function(a){return a&&"string"===f.type(a)},F=function(a){return p(a)&&0<a.indexOf("%")},l=function(a,d){var e=parseInt(a,10)||0;d&&F(a)&&(e*=b.getViewport()[d]/100);return Math.ceil(e)},x=function(a,b){return l(a,b)+"px"};f.extend(b,{version:"2.1.4",defaults:{padding:15,margin:20,width:800,
184height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!s,fitToView:!0,aspectRatio:!1,topRatio:0.5,leftRatio:0.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3E3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",
18534:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+
186(H?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,
187openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,
188isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data("fancybox-href")||c.attr("href"),title:c.data("fancybox-title")||c.attr("title"),isDom:!0,element:c},f.metadata&&f.extend(!0,k,
189c.metadata())):k=c);g=d.href||k.href||(p(c)?c:null);h=d.title!==r?d.title:k.title||"";m=(j=d.content||k.content)?"html":d.type||k.type;!m&&k.isDom&&(m=c.data("fancybox-type"),m||(m=(m=c.prop("class").match(/fancybox\.(\w+)/))?m[1]:null));p(g)&&(m||(b.isImage(g)?m="image":b.isSWF(g)?m="swf":"#"===g.charAt(0)?m="inline":p(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(p(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):k.isDom&&(j=c):"html"===m?j=g:!m&&(!g&&
190k.isDom)&&(m="inline",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==r&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;
190a&&!1!==b.trigger("onCancel")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),b.coming=null,b.current||
191b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer=
192setTimeout(b.next,b.current.playSpeed))},c=function(){d();f("body").unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index<b.group.length-1))b.player.isActive=!0,f("body").bind({"afterShow.player onUpdate.player":e,"onCancel.player beforeClose.player":c,"beforeLoad.player":d}),e(),b.trigger("onPlayStart")}else c()},next:function(a){var d=b.current;d&&(p(a)||(a=d.direction.next),b.jumpto(d.index+1,a,"next"))},
193prev:function(a){var d=b.current;d&&(p(a)||(a=d.direction.prev),b.jumpto(d.index-1,a,"prev"))},jumpto:function(a,d,e){var c=b.current;c&&(a=l(a),b.direction=d||c.direction[a>=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==r&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&"scroll"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({},
194e.dim,k)))},update:function(a){var d=a&&a.type,e=!d||"orientationchange"===d;e&&(clearTimeout(w),w=null);b.isOpen&&!w&&(w=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),w=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"),
195b.trigger("onUpdate")),b.update())},hideLoading:function(){n.unbind(".loading");f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('<div id="fancybox-loading"><div></div></div>').click(b.cancel).appendTo("body");n.bind("keydown.loading",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked||
196!1,d={x:q.scrollLeft(),y:q.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&C.innerWidth?C.innerWidth:q.width(),d.h=s&&C.innerHeight?C.innerHeight:q.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");n.unbind(".fb");q.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(q.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&n.bind("keydown.fb",function(e){var c=e.which||e.keyCode,k=
197e.target||e.srcElement;if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is("[contenteditable]")))&&f.each(d,function(d,k){if(1<a.group.length&&k[c]!==r)return b[d](k[c]),e.preventDefault(),!1;if(-1<f.inArray(c,k))return b[d](),e.preventDefault(),!1})}),f.fn.mousewheel&&a.mouseWheel&&b.wrap.bind("mousewheel.fb",function(d,c,k,g){for(var h=f(d.target||null),j=!1;h.length&&!j&&!h.is(".fancybox-skin")&&!h.is(".fancybox-wrap");)j=h[0]&&!(h[0].style.overflow&&
198"hidden"===h[0].style.overflow)&&(h[0].clientWidth&&h[0].scrollWidth>h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1<b.group.length&&!a.canShrink){if(0<g||0<k)b.prev(0<g?"down":"left");else if(0>g||0>k)b.next(0>g?"up":"right");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1
vendor: 6,067 bytes, lines 198-210
198)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,
199e){e&&(b.helpers[d]&&f.isFunction(b.helpers[d][a]))&&(e=f.extend(!0,{},b.helpers[d].defaults,e),b.helpers[d][a](e,c))});f.event.trigger(a+".fb")}},isImage:function(a){return p(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp)((\?|#).*)?$)/i)},isSWF:function(a){return p(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&&
200(d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=
201!0;if("image"===c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio=!0);"iframe"===c&&s&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,x(d.padding[a]))});b.trigger("onReady");
202if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href");"image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=
203this.width;b.coming.height=this.height;b._afterLoad()};a.onerror=function(){this.onload=this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g,
204(new Date).getTime())).attr("scrolling",s?"auto":a.iframe.scrolling).attr("src",a.href);f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);s||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=
205b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload,e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindEvents();
206e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("<div>").html(e).find(a.selector):t(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('<div class="fancybox-placeholder"></div>').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",
207!1)}));break;case "image":e=a.tpl.image.replace("{href}",g);break;case "swf":e='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+g+'"></param>',h="",f.each(a.swf,function(a,b){e+='<param name="'+a+'" value="'+b+'"></param>';h+=" "+a+'="'+b+'"'}),e+='<embed src="'+g+'" type="application/x-shockwave-flash" width="100%" height="100%"'+h+"></embed></object>"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger("beforeShow");
208a.inner.css("overflow","yes"===k?"scroll":"no"===k?"hidden":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth,
209v=h.maxHeight,s=h.scrolling,q=h.scrollOutside?h.scrollbarWidth:0,y=h.margin,p=l(y[1]+y[3]),r=l(y[0]+y[2]),z,A,t,D,B,G,C,E,w;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");y=l(k.outerWidth(!0)-k.width());z=l(k.outerHeight(!0)-k.height());A=p+y;t=r+z;D=F(c)?(a.w-A)*l(c)/100:c;B=F(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(w=h.content,h.autoHeight&&1===w.data("ready"))try{w[0].contentWindow.document.location&&(g.width(D).height(9999),G=w.contents().find("body"),q&&G.css("overflow-x",
210"hidden"),B=G.height())}catch(H){}}else if(h.autoWidth||h.autoHeight)g.addClass("fancybox-tmp"),h.autoWidth||g.width(D),h.autoHeight||g.height(B),h.autoWidth&&(D=g.width()),h.autoHeight&&(B=g.height()),g.removeClass("fancybox-tmp");c=l(D);j=l(B);E=D/B;m=l(F(m)?l(m,"w")-A:m);n=l(F(n)?l(n,"w")-A:n);u=l(F(u)?l(u,"h")-t:u);v=l(F(v)?l(v,"h")-t:v);G=n;C=v;
210h.fitToView&&(n=Math.min(a.w-A,n),v=Math.min(a.h-t,v));A=a.w-p;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/E)),j>v&&(j=v,c=l(j*E)),c<m&&(c=m,j=l(c/E)),j<u&&
211(j=u,c=l(j*E))):(c=Math.max(m,Math.min(c,n)),h.autoHeight&&"iframe"!==h.type&&(g.width(c),j=g.height()),j=Math.max(u,Math.min(j,v)));if(h.fitToView)if(g.width(c).height(j),e.width(c+y),a=e.width(),p=e.height(),h.aspectRatio)for(;(a>A||p>r)&&(c>m&&j>u)&&!(19<d++);)j=Math.max(u,Math.min(v,j-10)),c=l(j*E),c<m&&(c=m,j=l(c/E)),c>n&&(c=n,j=l(c/E)),g.width(c).height(j),e.width(c+y),a=e.width(),p=e.height();else c=Math.max(m,Math.min(c,c-(a-A))),j=Math.max(u,Math.min(j,j-(p-r)));q&&("auto"===s&&j<B&&c+y+
212q<A)&&(c+=q);g.width(c).height(j);e.width(c+y);a=e.width();p=e.height();e=(a>A||p>r)&&c>m&&j>u;c=h.aspectRatio?c<G&&j<C&&c<D&&j<B:(c<G||j<C)&&(c<D||j<B);f.extend(h,{dim:{width:x(a),height:x(p)},origWidth:D,origHeight:B,canShrink:e,canExpand:c,wPadding:y,hPadding:z,wrapSpace:p-k.outerHeight(!0),skinSpace:k.height()-j});!w&&(h.autoHeight&&j>u&&j<v&&!c)&&g.height("auto")},_getPosition:function(a){var d=b.current,e=b.getViewport(),c=d.margin,f=b.wrap.width()+c[1]+c[3],g=b.wrap.height()+c[0]+c[2],c={position:"absolute",
213top:c[0],left:c[3]};d.autoCenter&&d.fixed&&!a&&g<=e.h&&f<=e.w?c.position="fixed":d.locked||(c.top+=e.y,c.left+=e.x);c.top=x(Math.max(c.top,c.top+(e.h-g)*d.topRatio));c.left=x(Math.max(c.left,c.left+(e.w-f)*d.leftRatio));return c},_afterZoomIn:function(){var a=b.current;a&&(b.isOpen=b.isOpened=!0,b.wrap.css("overflow","visible").addClass("fancybox-opened"),b.update(),(a.closeClick||a.nextClick&&1<b.group.length)&&b.inner.css("cursor","pointer").bind("click.fb",function(d){!f(d.target).is("a")&&!f(d.target).parent().is("a")&&
214(d.preventDefault(),b[a.closeClick?"close":"next"]())}),a.closeBtn&&f(a.tpl.closeBtn).appendTo(b.skin).bind("click.fb",function(a){a.preventDefault();b.close()}),a.arrows&&1<b.group.length&&((a.loop||0<a.index)&&f(a.tpl.prev).appendTo(b.outer).bind("click.fb",b.prev),(a.loop||a.index<b.group.length-1)&&f(a.tpl.next).appendTo(b.outer).bind("click.fb",b.next)),b.trigger("afterShow"),!a.loop&&a.index===a.group.length-1?b.play(!1):b.opts.autoPlay&&!b.player.isActive&&(b.opts.autoPlay=!1,b.play()))},_afterZoomOut:function(a){a=
215a||b.current;f(".fancybox-wrap").trigger("onReset").remove();f.extend(b,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null});b.trigger("afterClose",a)}});b.transitions={getOrigPosition:function(){var a=b.current,d=a.element,e=a.orig,c={},f=50,g=50,h=a.hPadding,j=a.wPadding,m=b.getViewport();!e&&(a.isDom&&d.is(":visible"))&&(e=d.find("img:first"),e.length||(e=d));t(e)?(c=e.offset(),e.is("img")&&(f=e.outerWidth(),g=e.outerHeight())):
216(c.top=m.y+(m.h-g)*a.topRatio,c.left=m.x+(m.w-f)*a.leftRatio);if("fixed"===b.wrap.css("position")||a.locked)c.top-=m.y,c.left-=m.x;return c={top:x(c.top-h*a.topRatio),left:x(c.left-j*a.leftRatio),width:x(f+j),height:x(g+h)}},step:function(a,d){var e,c,f=d.prop;c=b.current;var g=c.wrapSpace,h=c.skinSpace;if("width"===f||"height"===f)e=d.end===d.start?1:(a-d.start)/(d.end-d.start),b.isClosing&&(e=1-e),c="width"===f?c.wPadding:c.hPadding,c=a-c,b.skin[f](l("width"===f?c:c-g*e)),b.inner[f](l("width"===
217f?c:c-g*e-h*e))},zoomIn:function(){var a=b.current,d=a.pos,e=a.openEffect,c="elastic"===e,k=f.extend({opacity:1},d);delete k.position;c?(d=this.getOrigPosition(),a.openOpacity&&(d.opacity=0.1)):"fade"===e&&(d.opacity=0.1);b.wrap.css(d).animate(k,{duration:"none"===e?0:a.openSpeed,easing:a.openEasing,step:c?this.step:null,complete:b._afterZoomIn})},zoomOut:function(){var a=b.current,d=a.closeEffect,e="elastic"===d,c={opacity:0.1};e&&(c=this.getOrigPosition(),a.closeOpacity&&(c.opacity=0.1));b.wrap.animate(c,
218{duration:"none"===d?0:a.closeSpeed,easing:a.closeEasing,step:e?this.step:null,complete:b._afterZoomOut})},changeIn:function(){var a=b.current,d=a.nextEffect,e=a.pos,c={opacity:1},f=b.direction,g;e.opacity=0.1;"elastic"===d&&(g="down"===f||"up"===f?"top":"left","down"===f||"right"===f?(e[g]=x(l(e[g])-200),c[g]="+=200px"):(e[g]=x(l(e[g])+200),c[g]="-=200px"));"none"===d?b._afterZoomIn():b.wrap.css(e).animate(c,{duration:a.nextSpeed,easing:a.nextEasing,complete:b._afterZoomIn})},changeOut:function(){var a=
219b.previous,d=a.prevEffect,e={opacity:0.1},c=b.direction;"elastic"===d&&(e["down"===c||"up"===c?"top":"left"]=("up"===c||"left"===c?"-":"+")+"=200px");a.wrap.animate(e,{duration:"none"===d?0:a.prevSpeed,easing:a.prevEasing,complete:function(){f(this).trigger("onReset").remove()}})}};b.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!s,fixed:!0},overlay:null,fixed:!1,create:function(a){a=f.extend({},this.defaults,a);this.overlay&&this.close();this.overlay=f('<div class="fancybox-overlay"></div>').appendTo("body");
220this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(q.bind("resize.overlay",f.proxy(this.update,this)),this.update());a.closeClick&&this.overlay.bind("click.overlay",function(a){f(a.target).hasClass("fancybox-overlay")&&(b.isActive?b.close():d.close())});this.overlay.css(a.css).show()},
221close:function(){f(".fancybox-overlay").remove();q.unbind("resize.overlay");this.overlay=null;!1!==this.margin&&(f("body").css("margin-right",this.margin),this.margin=!1);this.el&&this.el.removeClass("fancybox-lock")},update:function(){var a="100%",b;this.overlay.width(a).height("100%");H?(b=Math.max(z.documentElement.offsetWidth,z.body.offsetWidth),n.width()>b&&(a=n.width())):n.width()>q.width()&&(a=n.width());this.overlay.width(a).height(n.height())},onReady:function(a,b){f(".fancybox-overlay").stop(!0,
222!0);this.overlay||(this.margin=n.height()>q.height()||"scroll"===f("body").css("overflow-y")?f("body").css("margin-right"):!1,this.el=z.all&&!z.querySelector?f("html"):f("body"),this.create(a));a.locked&&this.fixed&&(b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){b.locked&&(this.el.addClass("fancybox-lock"),!1!==this.margin&&f("body").css("margin-right",l(this.margin)+b.scrollbarWidth));this.open(a)},onUpdate:function(){this.fixed||
223this.update()},afterClose:function(a){this.overlay&&!b.isActive&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var d=b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(p(e)&&""!==f.trim(e)){d=f('<div class="fancybox-title fancybox-title-'+c+'-wrap">'+e+"</div>");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),
224H&&d.width(d.width()),d.wrapInner('<span class="child"></span>'),b.current.margin[2]+=Math.abs(l(d.css("margin-bottom")))}
224d["top"===a.position?"prependTo":"appendTo"](c)}}};f.fn.fancybox=function(a){var d,e=f(this),c=this.selector||"",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(".fancybox-wrap")&&(k=a.groupAttr||"data-fancybox-group",l=h.attr(k),l||(k="rel",l=h.get(0)[k]),l&&(""!==l&&"nofollow"!==l)&&(h=c.length?f(c):e,h=h.filter("["+k+'="'+l+
225'"]'),j=h.index(this)),a.index=j,!1!==b.open(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind("click.fb-start").bind("click.fb-start",k):n.undelegate(c,"click.fb-start").delegate(c+":not('.fancybox-item, .fancybox-nav')","click.fb-start",k);this.filter("[data-fancybox-start=1]").trigger("click");return this};n.ready(function(){f.scrollbarWidth===r&&(f.scrollbarWidth=function(){var a=f('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),b=a.children(),
226b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===r){var a=f.support,d=f('<div style="position:fixed;top:20px;"></div>').appendTo("body"),e=20===d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")})})})(window,document,jQuery);
227
228/*!
229* FitVids 1.0
230*
231* Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
232* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
233* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
234*
235* Date: Thu Sept 01 18:00:00 2011 -0500
236*/
237;(function(e){e.fn.fitVids=function(t){var n={customSelector:null},r=document.createElement("div"),i=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];return r.className="fit-vids-style",r.innerHTML="&shy;<style>               .fluid-width-video-wrapper {                 width: 100%;                              position: relative;                       padding: 0;                            }                                                                                   .fluid-width-video-wrapper iframe,        .fluid-width-video-wrapper object,        .fluid-width-video-wrapper embed {           position: absolute;                       top: 0;                                   left: 0;                                  width: 100%;                              height: 100%;                          }                                       </style>",i.parentNode.insertBefore(r,i),t&&e.extend(n,t),this.each(function(){var t=["iframe[src*='player.vimeo.com']","iframe[src*='www.youtube.com']","iframe[src*='www.kickstarter.com']","object","embed"];n.customSelector&&t.push(n.customSelector);var r=e(this).find(t.join(","));r.each(function(){var t=e(this);if(this.tagName.toLowerCase()=="embed"&&t.parent("object").length||t.parent(".fluid-width-video-wrapper").length)return;var n=this.tagName.toLowerCase()=="object"||t.attr("height")?t.attr("height"):t.height(),r=t.attr("width")?t.attr("width"):t.width(),i=n/r;if(!t.attr("id")){var s="fitvid"+Math.floor(Math.random()*999999);t.attr("id",s)}t.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",i*100+"%"),t.removeAttr("height").removeAttr("width")})})}})(jQuery);
238
239
vendor: 60,950 bytes, lines 240-242
240/*! jPlayer 2.9.2 for jQuery ~ (c) 2009-2014 Happyworm Ltd ~ MIT License */
241!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],b):b("object"==typeof exports?require("jquery"):a.jQuery?a.jQuery:a.Zepto)}(this,function(a,b){a.fn.jPlayer=function(c){var d="jPlayer",e="string"==typeof c,f=Array.prototype.slice.call(arguments,1),g=this;return c=!e&&f.length?a.extend.apply(null,[!0,c].concat(f)):c,e&&"_"===c.charAt(0)?g:(this.each(e?function(){var e=a(this).data(d),h=e&&a.isFunction(e[c])?e[c].apply(e,f):e;return h!==e&&h!==b?(g=h,!1):void 0}:function(){var b=a(this).data(d);b?b.option(c||{}):a(this).data(d,new a.jPlayer(c,this))}),g)},a.jPlayer=function(b,c){if(arguments.length){this.element=a(c),this.options=a.extend(!0,{},this.options,b);var d=this;this.element.bind("remove.jPlayer",function(){d.destroy()}),this._init()}},"function"!=typeof a.fn.stop&&(a.fn.stop=function(){}),a.jPlayer.emulateMethods="load play pause",a.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate",a.jPlayer.emulateOptions="muted volume",a.jPlayer.reservedEvent="ready flashreset resize repeat error warning",a.jPlayer.event={},a.each(["ready","setmedia","flashreset","resize","repeat","click","error","warning","loadstart","progress","suspend","abort","emptied","stalled","play","pause","loadedmetadata","loadeddata","waiting","playing","canplay","canplaythrough","seeking","seeked","timeupdate","ended","ratechange","durationchange","volumechange"],function(){a.jPlayer.event[this]="jPlayer_"+this}),a.jPlayer.htmlEvent=["loadstart","abort","emptied","stalled","loadedmetadata","canplay","canplaythrough"],a.jPlayer.pause=function(){a.jPlayer.prototype.destroyRemoved(),a.each(a.jPlayer.prototype.instances,function(a,b){b.data("jPlayer").status.srcSet&&b.jPlayer("pause")})},a.jPlayer.timeFormat={showHour:!1,showMin:!0,showSec:!0,padHour:!1,padMin:!0,padSec:!0,sepHour:":",sepMin:":",sepSec:""};var c=function(){this.init()};c.prototype={init:function(){this.options={timeFormat:a.jPlayer.timeFormat}},time:function(a){a=a&&"number"==typeof a?a:0;var b=new Date(1e3*a),c=b.getUTCHours(),d=this.options.timeFormat.showHour?b.getUTCMinutes():b.getUTCMinutes()+60*c,e=this.options.timeFormat.showMin?b.getUTCSeconds():b.getUTCSeconds()+60*d,f=this.options.timeFormat.padHour&&10>c?"0"+c:c,g=this.options.timeFormat.padMin&&10>d?"0"+d:d,h=this.options.timeFormat.padSec&&10>e?"0"+e:e,i="";return i+=this.options.timeFormat.showHour?f+this.options.timeFormat.sepHour:"",i+=this.options.timeFormat.showMin?g+this.options.timeFormat.sepMin:"",i+=this.options.timeFormat.showSec?h+this.options.timeFormat.sepSec:""}};var d=new c;a.jPlayer.convertTime=function(a){return d.time(a)},a.jPlayer.uaBrowser=function(a){var b=a.toLowerCase(),c=/(webkit)[ \/]([\w.]+)/,d=/(opera)(?:.*version)?[ \/]([\w.]+)/,e=/(msie) ([\w.]+)/,f=/(mozilla)(?:.*? rv:([\w.]+))?/,g=c.exec(b)||d.exec(b)||e.exec(b)||b.indexOf("compatible")<0&&f.exec(b)||[];return{browser:g[1]||"",version:g[2]||"0"}},a.jPlayer.uaPlatform=function(a){var b=a.toLowerCase(),c=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/,d=/(ipad|playbook)/,e=/(android)/,f=/(mobile)/,g=c.exec(b)||[],h=d.exec(b)||!f.exec(b)&&e.exec(b)||[];return g[1]&&(g[1]=g[1].replace(/\s/g,"_")),{platform:g[1]||"",tablet:h[1]||""}},a.jPlayer.browser={},a.jPlayer.platform={};var e=a.jPlayer.uaBrowser(navigator.userAgent);e.browser&&(a.jPlayer.browser[e.browser]=!0,a.jPlayer.browser.version=e.version);var f=a.jPlayer.uaPlatform(navigator.userAgent);f.platform&&(a.jPlayer.platform[f.platform]=!0,a.jPlayer.platform.mobile=!f.tablet,a.jPlayer.platform.tablet=!!f.tablet),a.jPlayer.getDocMode=function(){var b;return a.jPlayer.browser.msie&&(document.documentMode?b=document.documentMode:(b=5,document.compatMode&&"CSS1Compat"===document.compatMode&&(b=7))),b},a.jPlayer.browser.documentMode=a.jPlayer.getDocMode(),a.jPlayer.nativeFeatures={init:function(){var a,b,c,d=document,e=d.createElement("video"),f={w3c:["fullscreenEnabled","fullscreenElement","requestFullscreen","exitFullscreen","fullscreenchange","fullscreenerror"],moz:["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror"],webkit:["","webkitCurrentFullScreenElement","webkitRequestFullScreen","webkitCancelFullScreen","webkitfullscreenchange",""],webkitVideo:["webkitSupportsFullscreen","webkitDisplayingFullscreen","webkitEnterFullscreen","webkitExitFullscreen","",""],ms:["","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError"]},g=["w3c","moz","webkit","webkitVideo","ms"];for(this.fullscreen=a={support:{w3c:!!d[f.w3c[0]],moz:!!d[f.moz[0]],webkit:"function"==typeof d[f.webkit[3]],webkitVideo:"function"==typeof e[f.webkitVideo[2]],ms:"function"==typeof e[f.ms[2]]},used:{}},b=0,c=g.length;c>b;b++){var h=g[b];if(a.support[h]){a.spec=h,a.used[h]=!0;break}}if(a.spec){var i=f[a.spec];a.api={fullscreenEnabled:!0,fullscreenElement:function(a){return a=a?a:d,a[i[1]]},requestFullscreen:function(a){return a[i[2]]()},exitFullscreen:function(a){return a=a?a:d,a[i[3]]()}},a.event={fullscreenchange:i[4],fullscreenerror:i[5]}}else a.api={fullscreenEnabled:!1,fullscreenElement:function(){return null},requestFullscreen:function(){},exitFullscreen:function(){}},a.event={}}},a.jPlayer.nativeFeatures.init(),a.jPlayer.focus=null,a.jPlayer.keyIgnoreElementNames="A INPUT TEXTAREA SELECT BUTTON";var g=function(b){var c,d=a.jPlayer.focus;d&&(a.each(a.jPlayer.keyIgnoreElementNames.split(/\s+/g),function(a,d){return b.target.nodeName.toUpperCase()===d.toUpperCase()?(c=!0,!1):void 0}),c||a.each(d.options.keyBindings,function(c,e){return e&&a.isFunction(e.fn)&&("number"==typeof e.key&&b.which===e.key||"string"==typeof e.key&&b.key===e.key)?(b.preventDefault(),e.fn(d),!1):void 0}))};a.jPlayer.keys=function(b){var c="keydown.jPlayer";a(document.documentElement).unbind(c),b&&a(document.documentElement).bind(c,g)},a.jPlayer.keys(!0),a.jPlayer.prototype={count:0,version:{script:"2.9.2",needFlash:"2.9.0",flash:"unknown"},options:{swfPath:"js",solution:"html, flash",supplied:"mp3",auroraFormats:"wav",preload:"metadata",volume:.8,muted:!1,remainingDuration:!1,toggleDuration:!1,captureDuration:!0,playbackRate:1,defaultPlaybackRate:1,minPlaybackRate:.5,maxPlaybackRate:4,wmode:"opaque",backgroundColor:"#000000",cssSelectorAncestor:"#jp_container_1",cssSelector:{videoPlay:".jp-video-play",play:".jp-play",pause:".jp-pause",stop:".jp-stop",seekBar:".jp-seek-bar",playBar:".jp-play-bar",mute:".jp-mute",unmute:".jp-unmute",volumeBar:".jp-volume-bar",volumeBarValue:".jp-volume-bar-value",volumeMax:".jp-volume-max",playbackRateBar:".jp-playback-rate-bar",playbackRateBarValue:".jp-playback-rate-bar-value",currentTime:".jp-current-time",duration:".jp-duration",title:".jp-title",fullScreen:".jp-full-screen",restoreScreen:".jp-restore-screen",repeat:".jp-repeat",repeatOff:".jp-repeat-off",gui:".jp-gui",noSolution:".jp-no-solution"},stateClass:{playing:"jp-state-playing",seeking:"jp-state-seeking",muted:"jp-state-muted",looped:"jp-state-looped",fullScreen:"jp-state-full-screen",noVolume:"jp-state-no-volume"},useStateClassSkin:!1,autoBlur:!0,smoothPlayBar:!1,fullScreen:!1,fullWindow:!1,autohide:{restored:!1,full:!0,fadeIn:200,fadeOut:600,hold:1e3},loop:!1,repeat:function(b){b.jPlayer.options.loop?a(this).unbind(".jPlayerRepeat").bind(a.jPlayer.event.ended+".jPlayer.jPlayerRepeat",function(){a(this).jPlayer("play")}):a(this).unbind(".jPlayerRepeat")},nativeVideoControls:{},noFullWindow:{msie:/msie [0-6]\./,ipad:/ipad.*?os [0-4]\./,iphone:/iphone/,ipod:/ipod/,android_pad:/android [0-3]\.(?!.*?mobile)/,android_phone:/(?=.*android)(?!.*chrome)(?=.*mobile)/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/},noVolume:{ipad:/ipad/,iphone:/iphone/,ipod:/ipod/,android_pad:/android(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/,playbook:/playbook/},timeFormat:{},keyEnabled:!1,audioFullScreen:!1,keyBindings:{play:{key:80,fn:function(a){a.status.paused?a.play():a.pause()}},fullScreen:{key:70,fn:function(a){(a.status.video||a.options.audioFullScreen)&&a._setOption("fullScreen",!a.options.fullScreen)}},muted:{key:77,fn:function(a){a._muted(!a.options.muted)}},volumeUp:{key:190,fn:function(a){a.volume(a.options.volume+.1)}},volumeDown:{key:188,fn:function(a){a.volume(a.options.volume-.1)}},loop:{key:76,fn:function(a){a._loop(!a.options.loop)}}},verticalVolume:!1,verticalPlaybackRate:!1,globalVolume:!1,idPrefix:"jp",noConflict:"jQuery",emulateHtml:!1,consoleAlerts:!0,errorAlerts:!1,warningAlerts:!1},optionsAudio:{size:{width:"0px",height:"0px",cssClass:""},sizeFull:{width:"0px",height:"0px",cssClass:""}},optionsVideo:{size:{width:"480px",height:"270px",cssClass:"jp-video-270p"},sizeFull:{width:"100%",height:"100%",cssClass:"jp-video-full"}},instances:{},status:{src:"",media:{},paused:!0,format:{},formatType:"",waitForPlay:!0,waitForLoad:!0,srcSet:!1,video:!1,seekPercent:0,currentPercentRelative:0,currentPercentAbsolute:0,currentTime:0,duration:0,remaining:0,videoWidth:0,videoHeight:0,readyState:0,networkState:0,playbackRate:1,ended:0},internal:{ready:!1},solution:{html:!0,aurora:!0,flash:!0},format:{mp3:{codec:"audio/mpeg",flashCanPlay:!0,media:"audio"},m4a:{codec:'audio/mp4; codecs="mp4a.40.2"',flashCanPlay:!0,media:"audio"},m3u8a:{codec:'application/vnd.apple.mpegurl; codecs="mp4a.40.2"',flashCanPlay:!1,media:"audio"},m3ua:{codec:"audio/mpegurl",flashCanPlay:!1,media:"audio"},oga:{codec:'audio/ogg; codecs="vorbis, opus"',flashCanPlay:!1,media:"audio"},flac:{codec:"audio/x-flac",flashCanPlay:!1,media:"audio"},wav:{codec:'audio/wav; codecs="1"',flashCanPlay:!1,media:"audio"},webma:{codec:'audio/webm; codecs="vorbis"',flashCanPlay:!1,media:"audio"},fla:{codec:"audio/x-flv",flashCanPlay:!0,media:"audio"},rtmpa:{codec:'audio/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"audio"},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!0,media:"video"},m3u8v:{codec:'application/vnd.apple.mpegurl; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!1,media:"video"},m3uv:{codec:"audio/mpegurl",flashCanPlay:!1,media:"video"},ogv:{codec:'video/ogg; codecs="theora, vorbis"',flashCanPlay:!1,media:"video"},webmv:{codec:'video/webm; codecs="vorbis, vp8"',flashCanPlay:!1,media:"video"},flv:{codec:"video/x-flv",flashCanPlay:!0,media:"video"},rtmpv:{codec:'video/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"video"}},_init:function(){var c=this;if(this.element.empty(),this.status=a.extend({},this.status),this.internal=a.extend({},this.internal),this.options.timeFormat=a.extend({},a.jPlayer.timeFormat,this.options.timeFormat),this.internal.cmdsIgnored=a.jPlayer.platform.ipad||a.jPlayer.platform.iphone||a.jPlayer.platform.ipod,this.internal.domNode=this.element.get(0),this.options.keyEnabled&&!a.jPlayer.focus&&(a.jPlayer.focus=this),this.androidFix={setMedia:!1,play:!1,pause:!1,time:0/0},a.jPlayer.platform.android&&(this.options.preload="auto"!==this.options.preload?"metadata":"auto"),this.formats=[],this.solutions=[],this.require={},this.htmlElement={},this.html={},this.html.audio={},this.html.video={},this.aurora={},this.aurora.formats=[],this.aurora.properties=[],this.flash={},this.css={},this.css.cs={},this.css.jq={},this.ancestorJq=[],this.options.volume=this._limitValue(this.options.volume,0,1),a.each(this.options.supplied.toLowerCase().split(","),function(b,d){var e=d.replace(/^\s+|\s+$/g,"");if(c.format[e]){var f=!1;a.each(c.formats,function(a,b){return e===b?(f=!0,!1):void 0}),f||c.formats.push(e)}}),a.each(this.options.solution.toLowerCase().split(","),function(b,d){var e=d.replace(/^\s+|\s+$/g,"");if(c.solution[e]){var f=!1;a.each(c.solutions,function(a,b){return e===b?(f=!0,!1):void 0}),f||c.solutions.push(e)}}),a.each(this.options.auroraFormats.toLowerCase().split(","),function(b,d){var e=d.replace(/^\s+|\s+$/g,"");if(c.format[e]){var f=!1;a.each(c.aurora.formats,function(a,b){return e===b?(f=!0,!1):void 0}),f||c.aurora.formats.push(e)}}),this.internal.instance="jp_"+this.count,this.instances[this.internal.instance]=this.element,this.element.attr("id")||this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count),this.internal.self=a.extend({},{id:this.element.attr("id"),jq:this.element}),this.internal.audio=a.extend({},{id:this.options.idPrefix+"_audio_"+this.count,jq:b}),this.internal.video=a.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:b}),this.internal.flash=a.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:b,swf:this.options.swfPath+(".swf"!==this.options.swfPath.toLowerCase().slice(-4)?(this.options.swfPath&&"/"!==this.options.swfPath.slice(-1)?"/":"")+"jquery.jplayer.swf":"")}),this.internal.poster=a.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:b}),a.each(a.jPlayer.event,function(a,d){c.options[a]!==b&&(c.element.bind(d+".jPlayer",c.options[a]),c.options[a]=b)}),this.require.audio=!1,this.require.video=!1,a.each(this.formats,function(a,b){c.require[c.format[b].media]=!0}),this.options=this.require.video?a.extend(!0,{},this.optionsVideo,this.options):a.extend(!0,{},this.optionsAudio,this.options),this._setSize(),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this.status.noFullWindow=this._uaBlocklist(this.options.noFullWindow),this.status.noVolume=this._uaBlocklist(this.options.noVolume),a.jPlayer.nativeFeatures.fullscreen.api.fullscreenEnabled&&this._fullscreenAddEventListeners(),this._restrictNativeVideoControls(),this.htmlElement.poster=document.createElement("img"),this.htmlElement.poster.id=this.internal.poster.id,this.htmlElement.poster.onload=function(){(!c.status.video||c.status.waitForPlay)&&c.internal.poster.jq.show()},this.element.append(this.htmlElement.poster),this.internal.poster.jq=a("#"+this.internal.poster.id),this.internal.poster.jq.css({width:this.status.width,height:this.status.height}),this.internal.poster.jq.hide(),this.internal.poster.jq.bind("click.jPlayer",function(){c._trigger(a.jPlayer.event.click)}),this.html.audio.available=!1,this.require.audio&&(this.htmlElement.audio=document.createElement("audio"),this.htmlElement.audio.id=this.internal.audio.id,this.html.audio.available=!!this.htmlElement.audio.canPlayType&&this._testCanPlayType(this.htmlElement.audio)),this.html.video.available=!1,this.require.video&&(this.htmlElement.video=document.createElement("video"),this.htmlElement.video.id=this.internal.video.id,this.html.video.available=!!this.htmlElement.video.canPlayType&&this._testCanPlayType(this.htmlElement.video)),this.flash.available=this._checkForFlash(10.1),this.html.canPlay={},this.aurora.canPlay={},this.flash.canPlay={},a.each(this.formats,function(b,d){c.html.canPlay[d]=c.html[c.format[d].media].available&&""!==c.htmlElement[c.format[d].media].canPlayType(c.format[d].codec),c.aurora.canPlay[d]=a.inArray(d,c.aurora.formats)>-1,c.flash.canPlay[d]=c.format[d].flashCanPlay&&c.flash.available}),this.html.desired=!1,this.aurora.desired=!1,this.flash.desired=!1,a.each(this.solutions,function(b,d){if(0===b)c[d].desired=!0;else{var e=!1,f=!1;a.each(c.formats,function(a,b){c[c.solutions[0]].canPlay[b]&&("video"===c.format[b].media?f=!0:e=!0)}),c[d].desired=c.require.audio&&!e||c.require.video&&!f}}),this.html.support={},this.aurora.support={},this.flash.support={},a.each(this.formats,function(a,b){c.html.support[b]=c.html.canPlay[b]&&c.html.desired,c.aurora.support[b]=c.aurora.canPlay[b]&&c.aurora.desired,c.flash.support[b]=c.flash.canPlay[b]&&c.flash.desired}),this.html.used=!1,this.aurora.used=!1,this.flash.used=!1,a.each(this.solutions,function(b,d){a.each(c.formats,function(a,b){return c[d].support[b]?(c[d].used=!0,!1):void 0})}),this._resetActive(),this._resetGate(),this._cssSelectorAncestor(this.options.cssSelectorAncestor),this.html.used||this.aurora.used||this.flash.used?this.css.jq.noSolution.length&&this.css.jq.noSolution.hide():(this._error({type:a.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:a.jPlayer.errorMsg.NO_SOLUTION,hint:a.jPlayer.errorHint.NO_SOLUTION}),this.css.jq.noSolution.length&&this.css.jq.noSolution.show()),this.flash.used){var d,e="jQuery="+encodeURI(this.options.noConflict)+"&id="+encodeURI(this.internal.self.id)+"&vol="+this.options.volume+"&muted="+this.options.muted;if(a.jPlayer.browser.msie&&(Number(a.jPlayer.browser.version)<9||a.jPlayer.browser.documentMode<9)){var f='<object id="'+this.internal.flash.id+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="0" height="0" tabindex="-1"></object>',g=['<param name="movie" value="'+this.internal.flash.swf+'" />','<param name="FlashVars" value="'+e+'" />','<param name="allowScriptAccess" value="always" />','<param name="bgcolor" value="'+this.options.backgroundColor+'" />','<param name="wmode" value="'+this.options.wmode+'" />'];d=document.createElement(f);for(var h=0;h<g.length;h++)d.appendChild(document.createElement(g[h]))}else{var i=function(a,b,c){var d=document.createElement("param");d.setAttribute("name",b),d.setAttribute("value",c),a.appendChild(d)};d=document.createElement("object"),d.setAttribute("id",this.internal.flash.id),d.setAttribute("name",this.internal.flash.id),d.setAttribute("data",this.internal.flash.swf),d.setAttribute("type","application/x-shockwave-flash"),d.setAttribute("width","1"),d.setAttribute("height","1"),d.setAttribute("tabindex","-1"),i(d,"flashvars",e),i(d,"allowscriptaccess","always"),i(d,"bgcolor",this.options.backgroundColor),i(d,"wmode",this.options.wmode)}this.element.append(d),this.internal.flash.jq=a(d)}this.status.playbackRateEnabled=this.html.used&&!this.flash.used?this._testPlaybackRate("audio"):!1,this._updatePlaybackRate(),this.html.used&&(this.html.audio.available&&(this._addHtmlEventListeners(this.htmlElement.audio,this.html.audio),this.element.append(this.htmlElement.audio),this.internal.audio.jq=a("#"+this.internal.audio.id)),this.html.video.available&&(this._addHtmlEventListeners(this.htmlElement.video,this.html.video),this.element.append(this.htmlElement.video),this.internal.video.jq=a("#"+this.internal.video.id),this.internal.video.jq.css(this.status.nativeVideoControls?{width:this.status.width,height:this.status.height}:{width:"0px",height:"0px"}),this.internal.video.jq.bind("click.jPlayer",function(){c._trigger(a.jPlayer.event.click)}))),this.aurora.used,this.options.emulateHtml&&this._emulateHtmlBridge(),!this.html.used&&!this.aurora.used||this.flash.used||setTimeout(function(){c.internal.ready=!0,c.version.flash="n/a",c._trigger(a.jPlayer.event.repeat),c._trigger(a.jPlayer.event.ready)},100),this._updateNativeVideoControls(),this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),a.jPlayer.prototype.count++},destroy:function(){this.clearMedia(),this._removeUiClass(),this.css.jq.currentTime.length&&this.css.jq.currentTime.text(""),this.css.jq.duration.length&&this.css.jq.duration.text(""),a.each(this.css.jq,function(a,b){b.length&&b.unbind(".jPlayer")}),this.internal.poster.jq.unbind(".jPlayer"),this.internal.video.jq&&this.internal.video.jq.unbind(".jPlayer"),this._fullscreenRemoveEventListeners(),this===a.jPlayer.focus&&(a.jPlayer.focus=null),this.options.emulateHtml&&this._destroyHtmlBridge(),this.element.removeData("jPlayer"),this.element.unbind(".jPlayer"),this.element.empty(),delete this.instances[this.internal.instance]},destroyRemoved:function(){var b=this;a.each(this.instances,function(a,c){b.element!==c&&(c.data("jPlayer")||(c.jPlayer("destroy"),delete b.instances[a]))})},enable:function(){},disable:function(){},_testCanPlayType:function(a){try{return a.canPlayType(this.format.mp3.codec),!0}catch(b){return!1}},_testPlaybackRate:function(a){var b,c=.5;a="string"==typeof a?a:"audio",b=document.createElement(a);try{return"playbackRate"in b?(b.playbackRate=c,b.playbackRate===c):!1}catch(d){return!1}},_uaBlocklist:function(b){var c=navigator.userAgent.toLowerCase(),d=!1;return a.each(b,function(a,b){return b&&b.test(c)?(d=!0,!1):void 0}),d},_restrictNativeVideoControls:function(){this.require.audio&&this.status.nativeVideoControls&&(this.status.nativeVideoControls=!1,this.status.noFullWindow=!0)},_updateNativeVideoControls:function(){this.html.video.available&&this.html.used&&(this.htmlElement.video.controls=this.status.nativeVideoControls,this._updateAutohide(),this.status.nativeVideoControls&&this.require.video?(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})):this.status.waitForPlay&&this.status.video&&(this.internal.poster.jq.show(),this.internal.video.jq.css({width:"0px",height:"0px"})))},_addHtmlEventListeners:function(b,c){var d=this;b.preload=this.options.preload,b.muted=this.options.muted,b.volume=this.options.volume,this.status.playbackRateEnabled&&(b.defaultPlaybackRate=this.options.defaultPlaybackRate,b.playbackRate=this.options.playbackRate),b.addEventListener("progress",function(){c.gate&&(d.internal.cmdsIgnored&&this.readyState>0&&(d.internal.cmdsIgnored=!1),d._getHtmlStatus(b),d._updateInterface(),d._trigger(a.jPlayer.event.progress))},!1),b.addEventListener("loadeddata",function(){c.gate&&(d.androidFix.setMedia=!1,d.androidFix.play&&(d.androidFix.play=!1,d.play(d.androidFix.time)),d.androidFix.pause&&(d.androidFix.pause=!1,d.pause(d.androidFix.time)),d._trigger(a.jPlayer.event.loadeddata))},!1),b.addEventListener("timeupdate",function(){c.gate&&(d._getHtmlStatus(b),d._updateInterface(),d._trigger(a.jPlayer.event.timeupdate))},!1),b.addEventListener("durationchange",function(){c.gate&&(d._getHtmlStatus(b),d._updateInterface(),d._trigger(a.jPlayer.event.durationchange))},!1),b.addEventListener("play",function(){c.gate&&(d._updateButtons(!0),d._html_checkWaitForPlay(),d._trigger(a.jPlayer.event.play))},!1),b.addEventListener("playing",function(){c.gate&&(d._updateButtons(!0),d._seeked(),d._trigger(a.jPlayer.event.playing))},!1),b.addEventListener("pause",function(){c.gate&&(d._updateButtons(!1),d._trigger(a.jPlayer.event.pause))},!1),b.addEventListener("waiting",function(){c.gate&&(d._seeking(),d._trigger(a.jPlayer.event.waiting))},!1),b.addEventListener("seeking",function(){c.gate&&(d._seeking(),d._trigger(a.jPlayer.event.seeking))},!1),b.addEventListener("seeked",function(){c.gate&&(d._seeked(),d._trigger(a.jPlayer.event.seeked))},!1),b.addEventListener("volumechange",function(){c.gate&&(d.options.volume=b.volume,d.options.muted=b.muted,d._updateMute(),d._updateVolume(),d._trigger(a.jPlayer.event.volumechange))},!1),b.addEventListener("ratechange",function(){c.gate&&(d.options.defaultPlaybackRate=b.defaultPlaybackRate,d.options.playbackRate=b.playbackRate,d._updatePlaybackRate(),d._trigger(a.jPlayer.event.ratechange))},!1),b.addEventListener("suspend",function(){c.gate&&(d._seeked(),d._trigger(a.jPlayer.event.suspend))},!1),b.addEventListener("ended",function(){c.gate&&(a.jPlayer.browser.webkit||(d.htmlElement.media.currentTime=0),d.htmlElement.media.pause(),d._updateButtons(!1),d._getHtmlStatus(b,!0),d._updateInterface(),d._trigger(a.jPlayer.event.ended))},!1),b.addEventListener("error",function(){c.gate&&(d._updateButtons(!1),d._seeked(),d.status.srcSet&&(clearTimeout(d.internal.htmlDlyCmdId),d.status.waitForLoad=!0,d.status.waitForPlay=!0,d.status.video&&!d.status.nativeVideoControls&&d.internal.video.jq.css({width:"0px",height:"0px"}),d._validString(d.status.media.poster)&&!d.status.nativeVideoControls&&d.internal.poster.jq.show(),d.css.jq.videoPlay.length&&d.css.jq.videoPlay.show(),d._error({type:a.jPlayer.error.URL,context:d.status.src,message:a.jPlayer.errorMsg.URL,hint:a.jPlayer.errorHint.URL})))},!1),a.each(a.jPlayer.htmlEvent,function(e,f){b.addEventListener(this,function(){c.gate&&d._trigger(a.jPlayer.event[f])},!1)})},_addAuroraEventListeners:function(b,c){var d=this;b.volume=100*this.options.volume,b.on("progress",function(){c.gate&&(d.internal.cmdsIgnored&&this.readyState>0&&(d.internal.cmdsIgnored=!1),d._getAuroraStatus(b),d._updateInterface(),d._trigger(a.jPlayer.event.progress),b.duration>0&&d._trigger(a.jPlayer.event.timeupdate))},!1),b.on("ready",function(){c.gate&&d._trigger(a.jPlayer.event.loadeddata)},!1),b.on("duration",function(){c.gate&&(d._getAuroraStatus(b),d._updateInterface(),d._trigger(a.jPlayer.event.durationchange))},!1),b.on("end",function(){c.gate&&(d._updateButtons(!1),d._getAuroraStatus(b,!0),d._updateInterface(),d._trigger(a.jPlayer.event.ended))},!1),b.on("error",function(){c.gate&&(d._updateButtons(!1),d._seeked(),d.status.srcSet&&(d.status.waitForLoad=!0,d.status.waitForPlay=!0,d.status.video&&!d.status.nativeVideoControls&&d.internal.video.jq.css({width:"0px",height:"0px"}),d._validString(d.status.media.poster)&&!d.status.nativeVideoControls&&d.internal.poster.jq.show(),d.css.jq.videoPlay.length&&d.css.jq.videoPlay.show(),d._error({type:a.jPlayer.error.URL,context:d.status.src,message:a.jPlayer.errorMsg.URL,hint:a.jPlayer.errorHint.URL})))},!1)},_getHtmlStatus:function(a,b){var c=0,d=0,e=0,f=0;isFinite(a.duration)&&(this.status.duration=a.duration),c=a.currentTime,d=this.status.duration>0?100*c/this.status.duration:0,"object"==typeof a.seekable&&a.seekable.length>0?(e=this.status.duration>0?100*a.seekable.end(a.seekable.length-1)/this.status.duration:100,f=this.status.duration>0?100*a.currentTime/a.seekable.end(a.seekable.length-1):0):(e=100,f=d),b&&(c=0,f=0,d=0),this.status.seekPercent=e,this.status.currentPercentRelative=f,this.status.currentPercentAbsolute=d,this.status.currentTime=c,this.status.remaining=this.status.duration-this.status.currentTime,this.status.videoWidth=a.videoWidth,this.status.videoHeight=a.videoHeight,this.status.readyState=a.readyState,this.status.networkState=a.networkState,this.status.playbackRate=a.playbackRate,this.status.ended=a.ended},_getAuroraStatus:function(a,b){var c=0,d=0,e=0,f=0;this.status.duration=a.duration/1e3,c=a.currentTime/1e3,d=this.status.duration>0?100*c/this.status.duration:0,a.buffered>0?(e=this.status.duration>0?a.buffered*this.status.duration/this.status.duration:100,f=this.status.duration>0?c/(a.buffered*this.status.duration):0):(e=100,f=d),b&&(c=0,f=0,d=0),this.status.seekPercent=e,this.status.currentPercentRelative=f,this.status.currentPercentAbsolute=d,this.status.currentTime=c,this.status.remaining=this.status.duration-this.status.currentTime,this.status.readyState=4,this.status.networkState=0,this.status.playbackRate=1,this.status.ended=!1},_resetStatus:function(){this.status=a.extend({},this.status,a.jPlayer.prototype.status)},_trigger:function(b,c,d){var e=a.Event(b);e.jPlayer={},e.jPlayer.version=a.extend({},this.version),e.jPlayer.options=a.extend(!0,{},this.options),e.jPlayer.status=a.extend(!0,{},this.status),e.jPlayer.html=a.extend(!0,{},this.html),e.jPlayer.aurora=a.extend(!0,{},this.aurora),e.jPlayer.flash=a.extend(!0,{},this.flash),c&&(e.jPlayer.error=a.extend({},c)),d&&(e.jPlayer.warning=a.extend({},d)),this.element.trigger(e)},jPlayerFlashEvent:function(b,c){if(b===a.jPlayer.event.ready)if(this.internal.ready){if(this.flash.gate){if(this.status.srcSet){var d=this.status.currentTime,e=this.status.paused;this.setMedia(this.status.media),this.volumeWorker(this.options.volume),d>0&&(e?this.pause(d):this.play(d))}this._trigger(a.jPlayer.event.flashreset)}}else this.internal.ready=!0,this.internal.flash.jq.css({width:"0px",height:"0px"}),this.version.flash=c.version,this.version.needFlash!==this.version.flash&&this._error({type:a.jPlayer.error.VERSION,context:this.version.flash,message:a.jPlayer.errorMsg.VERSION+this.version.flash,hint:a.jPlayer.errorHint.VERSION}),this._trigger(a.jPlayer.event.repeat),this._trigger(b);if(this.flash.gate)switch(b){case a.jPlayer.event.progress:this._getFlashStatus(c),this._updateInterface(),this._trigger(b);break;case a.jPlayer.event.timeupdate:this._getFlashStatus(c),this._updateInterface(),this._trigger(b);break;case a.jPlayer.event.play:this._seeked(),this._updateButtons(!0),this._trigger(b);break;case a.jPlayer.event.pause:this._updateButtons(!1),this._trigger(b);break;case a.jPlayer.event.ended:this._updateButtons(!1),this._trigger(b);break;case a.jPlayer.event.click:this._trigger(b);break;case a.jPlayer.event.error:this.status.waitForLoad=!0,this.status.waitForPlay=!0,this.status.video&&this.internal.flash.jq.css({width:"0px",height:"0px"}),this._validString(this.status.media.poster)&&this.internal.poster.jq.show(),this.css.jq.videoPlay.length&&this.status.video&&this.css.jq.videoPlay.show(),this.status.video?this._flash_setVideo(this.status.media):this._flash_setAudio(this.status.media),this._updateButtons(!1),this._error({type:a.jPlayer.error.URL,context:c.src,message:a.jPlayer.errorMsg.URL,hint:a.jPlayer.errorHint.URL});break;case a.jPlayer.event.seeking:this._seeking(),this._trigger(b);break;case a.jPlayer.event.seeked:this._seeked(),this._trigger(b);break;case a.jPlayer.event.ready:break;default:this._trigger(b)}return!1},_getFlashStatus:function(a){this.status.seekPercent=a.seekPercent,this.status.currentPercentRelative=a.currentPercentRelative,this.status.currentPercentAbsolute=a.currentPercentAbsolute,this.status.currentTime=a.currentTime,this.status.duration=a.duration,this.status.remaining=a.duration-a.currentTime,this.status.videoWidth=a.videoWidth,this.status.videoHeight=a.videoHeight,this.status.readyState=4,this.status.networkState=0,this.status.playbackRate=1,this.status.ended=!1},_updateButtons:function(a){a===b?a=!this.status.paused:this.status.paused=!a,a?this.addStateClass("playing"):this.removeStateClass("playing"),!this.status.noFullWindow&&this.options.fullWindow?this.addStateClass("fullScreen"):this.removeStateClass("fullScreen"),this.options.loop?this.addStateClass("looped"):this.removeStateClass("looped"),this.css.jq.play.length&&this.css.jq.pause.length&&(a?(this.css.jq.play.hide(),this.css.jq.pause.show()):(this.css.jq.play.show(),this.css.jq.pause.hide())),this.css.jq.restoreScreen.length&&this.css.jq.fullScreen.length&&(this.status.noFullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.hide()):this.options.fullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.show()):(this.css.jq.fullScreen.show(),this.css.jq.restoreScreen.hide())),this.css.jq.repeat.length&&this.css.jq.repeatOff.length&&(this.options.loop?(this.css.jq.repeat.hide(),this.css.jq.repeatOff.show()):(this.css.jq.repeat.show(),this.css.jq.repeatOff.hide()))},_updateInterface:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.width(this.status.seekPercent+"%"),this.css.jq.playBar.length&&(this.options.smoothPlayBar?this.css.jq.playBar.stop().animate({width:this.status.currentPercentAbsolute+"%"},250,"linear"):this.css.jq.playBar.width(this.status.currentPercentRelative+"%"));var a="";this.css.jq.currentTime.length&&(a=this._convertTime(this.status.currentTime),a!==this.css.jq.currentTime.text()&&this.css.jq.currentTime.text(this._convertTime(this.status.currentTime)));var b="",c=this.status.duration,d=this.status.remaining;this.css.jq.duration.length&&("string"==typeof this.status.media.duration?b=this.status.media.duration:("number"==typeof this.status.media.duration&&(c=this.status.media.duration,d=c-this.status.currentTime),b=this.options.remainingDuration?(d>0?"-":"")+this._convertTime(d):this._convertTime(c)),b!==this.css.jq.duration.text()&&this.css.jq.duration.text(b))},_convertTime:c.prototype.time,_seeking:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.addClass("jp-seeking-bg"),this.addStateClass("seeking")},_seeked:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.removeClass("jp-seeking-bg"),this.removeStateClass("seeking")},_resetGate:function(){this.html.audio.gate=!1,this.html.video.gate=!1,this.aurora.gate=!1,this.flash.gate=!1},_resetActive:function(){this.html.active=!1,this.aurora.active=!1,this.flash.active=!1},_escapeHtml:function(a){return a.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split('"').join("&quot;")},_qualifyURL:function(a){var b=document.createElement("div");
242return b.innerHTML='<a href="'+this._escapeHtml(a)+'">x</a>',b.firstChild.href},_absoluteMediaUrls:function(b){var c=this;return a.each(b,function(a,d){d&&c.format[a]&&"data:"!==d.substr(0,5)&&(b[a]=c._qualifyURL(d))}),b},addStateClass:function(a){this.ancestorJq.length&&this.ancestorJq.addClass(this.options.stateClass[a])},removeStateClass:function(a){this.ancestorJq.length&&this.ancestorJq.removeClass(this.options.stateClass[a])},setMedia:function(b){var c=this,d=!1,e=this.status.media.poster!==b.poster;this._resetMedia(),this._resetGate(),this._resetActive(),this.androidFix.setMedia=!1,this.androidFix.play=!1,this.androidFix.pause=!1,b=this._absoluteMediaUrls(b),a.each(this.formats,function(e,f){var g="video"===c.format[f].media;return a.each(c.solutions,function(e,h){if(c[h].support[f]&&c._validString(b[f])){var i="html"===h,j="aurora"===h;return g?(i?(c.html.video.gate=!0,c._html_setVideo(b),c.html.active=!0):(c.flash.gate=!0,c._flash_setVideo(b),c.flash.active=!0),c.css.jq.videoPlay.length&&c.css.jq.videoPlay.show(),c.status.video=!0):(i?(c.html.audio.gate=!0,c._html_setAudio(b),c.html.active=!0,a.jPlayer.platform.android&&(c.androidFix.setMedia=!0)):j?(c.aurora.gate=!0,c._aurora_setAudio(b),c.aurora.active=!0):(c.flash.gate=!0,c._flash_setAudio(b),c.flash.active=!0),c.css.jq.videoPlay.length&&c.css.jq.videoPlay.hide(),c.status.video=!1),d=!0,!1}}),d?!1:void 0}),d?(this.status.nativeVideoControls&&this.html.video.gate||this._validString(b.poster)&&(e?this.htmlElement.poster.src=b.poster:this.internal.poster.jq.show()),"string"==typeof b.title&&(this.css.jq.title.length&&this.css.jq.title.html(b.title),this.htmlElement.audio&&this.htmlElement.audio.setAttribute("title",b.title),this.htmlElement.video&&this.htmlElement.video.setAttribute("title",b.title)),this.status.srcSet=!0,this.status.media=a.extend({},b),this._updateButtons(!1),this._updateInterface(),this._trigger(a.jPlayer.event.setmedia)):this._error({type:a.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:a.jPlayer.errorMsg.NO_SUPPORT,hint:a.jPlayer.errorHint.NO_SUPPORT})},_resetMedia:function(){this._resetStatus(),this._updateButtons(!1),this._updateInterface(),this._seeked(),this.internal.poster.jq.hide(),clearTimeout(this.internal.htmlDlyCmdId),this.html.active?this._html_resetMedia():this.aurora.active?this._aurora_resetMedia():this.flash.active&&this._flash_resetMedia()},clearMedia:function(){this._resetMedia(),this.html.active?this._html_clearMedia():this.aurora.active?this._aurora_clearMedia():this.flash.active&&this._flash_clearMedia(),this._resetGate(),this._resetActive()},load:function(){this.status.srcSet?this.html.active?this._html_load():this.aurora.active?this._aurora_load():this.flash.active&&this._flash_load():this._urlNotSetError("load")},focus:function(){this.options.keyEnabled&&(a.jPlayer.focus=this)},play:function(a){var b="object"==typeof a;b&&this.options.useStateClassSkin&&!this.status.paused?this.pause(a):(a="number"==typeof a?a:0/0,this.status.srcSet?(this.focus(),this.html.active?this._html_play(a):this.aurora.active?this._aurora_play(a):this.flash.active&&this._flash_play(a)):this._urlNotSetError("play"))},videoPlay:function(){this.play()},pause:function(a){a="number"==typeof a?a:0/0,this.status.srcSet?this.html.active?this._html_pause(a):this.aurora.active?this._aurora_pause(a):this.flash.active&&this._flash_pause(a):this._urlNotSetError("pause")},tellOthers:function(b,c){var d=this,e="function"==typeof c,f=Array.prototype.slice.call(arguments);"string"==typeof b&&(e&&f.splice(1,1),a.jPlayer.prototype.destroyRemoved(),a.each(this.instances,function(){d.element!==this&&(!e||c.call(this.data("jPlayer"),d))&&this.jPlayer.apply(this,f)}))},pauseOthers:function(a){this.tellOthers("pause",function(){return this.status.srcSet},a)},stop:function(){this.status.srcSet?this.html.active?this._html_pause(0):this.aurora.active?this._aurora_pause(0):this.flash.active&&this._flash_pause(0):this._urlNotSetError("stop")},playHead:function(a){a=this._limitValue(a,0,100),this.status.srcSet?this.html.active?this._html_playHead(a):this.aurora.active?this._aurora_playHead(a):this.flash.active&&this._flash_playHead(a):this._urlNotSetError("playHead")},_muted:function(a){this.mutedWorker(a),this.options.globalVolume&&this.tellOthers("mutedWorker",function(){return this.options.globalVolume},a)},mutedWorker:function(b){this.options.muted=b,this.html.used&&this._html_setProperty("muted",b),this.aurora.used&&this._aurora_mute(b),this.flash.used&&this._flash_mute(b),this.html.video.gate||this.html.audio.gate||(this._updateMute(b),this._updateVolume(this.options.volume),this._trigger(a.jPlayer.event.volumechange))},mute:function(a){var c="object"==typeof a;c&&this.options.useStateClassSkin&&this.options.muted?this._muted(!1):(a=a===b?!0:!!a,this._muted(a))},unmute:function(a){a=a===b?!0:!!a,this._muted(!a)},_updateMute:function(a){a===b&&(a=this.options.muted),a?this.addStateClass("muted"):this.removeStateClass("muted"),this.css.jq.mute.length&&this.css.jq.unmute.length&&(this.status.noVolume?(this.css.jq.mute.hide(),this.css.jq.unmute.hide()):a?(this.css.jq.mute.hide(),this.css.jq.unmute.show()):(this.css.jq.mute.show(),this.css.jq.unmute.hide()))},volume:function(a){this.volumeWorker(a),this.options.globalVolume&&this.tellOthers("volumeWorker",function(){return this.options.globalVolume},a)},volumeWorker:function(b){b=this._limitValue(b,0,1),this.options.volume=b,this.html.used&&this._html_setProperty("volume",b),this.aurora.used&&this._aurora_volume(b),this.flash.used&&this._flash_volume(b),this.html.video.gate||this.html.audio.gate||(this._updateVolume(b),this._trigger(a.jPlayer.event.volumechange))},volumeBar:function(b){if(this.css.jq.volumeBar.length){var c=a(b.currentTarget),d=c.offset(),e=b.pageX-d.left,f=c.width(),g=c.height()-b.pageY+d.top,h=c.height();this.volume(this.options.verticalVolume?g/h:e/f)}this.options.muted&&this._muted(!1)},_updateVolume:function(a){a===b&&(a=this.options.volume),a=this.options.muted?0:a,this.status.noVolume?(this.addStateClass("noVolume"),this.css.jq.volumeBar.length&&this.css.jq.volumeBar.hide(),this.css.jq.volumeBarValue.length&&this.css.jq.volumeBarValue.hide(),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.hide()):(this.removeStateClass("noVolume"),this.css.jq.volumeBar.length&&this.css.jq.volumeBar.show(),this.css.jq.volumeBarValue.length&&(this.css.jq.volumeBarValue.show(),this.css.jq.volumeBarValue[this.options.verticalVolume?"height":"width"](100*a+"%")),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.show())},volumeMax:function(){this.volume(1),this.options.muted&&this._muted(!1)},_cssSelectorAncestor:function(b){var c=this;this.options.cssSelectorAncestor=b,this._removeUiClass(),this.ancestorJq=b?a(b):[],b&&1!==this.ancestorJq.length&&this._warning({type:a.jPlayer.warning.CSS_SELECTOR_COUNT,context:b,message:a.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:a.jPlayer.warningHint.CSS_SELECTOR_COUNT}),this._addUiClass(),a.each(this.options.cssSelector,function(a,b){c._cssSelector(a,b)}),this._updateInterface(),this._updateButtons(),this._updateAutohide(),this._updateVolume(),this._updateMute()},_cssSelector:function(b,c){var d=this;if("string"==typeof c)if(a.jPlayer.prototype.options.cssSelector[b]){if(this.css.jq[b]&&this.css.jq[b].length&&this.css.jq[b].unbind(".jPlayer"),this.options.cssSelector[b]=c,this.css.cs[b]=this.options.cssSelectorAncestor+" "+c,this.css.jq[b]=c?a(this.css.cs[b]):[],this.css.jq[b].length&&this[b]){var e=function(c){c.preventDefault(),d[b](c),d.options.autoBlur?a(this).blur():a(this).focus()};this.css.jq[b].bind("click.jPlayer",e)}c&&1!==this.css.jq[b].length&&this._warning({type:a.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[b],message:a.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[b].length+" found for "+b+" method.",hint:a.jPlayer.warningHint.CSS_SELECTOR_COUNT})}else this._warning({type:a.jPlayer.warning.CSS_SELECTOR_METHOD,context:b,message:a.jPlayer.warningMsg.CSS_SELECTOR_METHOD,hint:a.jPlayer.warningHint.CSS_SELECTOR_METHOD});else this._warning({type:a.jPlayer.warning.CSS_SELECTOR_STRING,context:c,message:a.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:a.jPlayer.warningHint.CSS_SELECTOR_STRING})},duration:function(a){this.options.toggleDuration&&(this.options.captureDuration&&a.stopPropagation(),this._setOption("remainingDuration",!this.options.remainingDuration))},seekBar:function(b){if(this.css.jq.seekBar.length){var c=a(b.currentTarget),d=c.offset(),e=b.pageX-d.left,f=c.width(),g=100*e/f;this.playHead(g)}},playbackRate:function(a){this._setOption("playbackRate",a)},playbackRateBar:function(b){if(this.css.jq.playbackRateBar.length){var c,d,e=a(b.currentTarget),f=e.offset(),g=b.pageX-f.left,h=e.width(),i=e.height()-b.pageY+f.top,j=e.height();c=this.options.verticalPlaybackRate?i/j:g/h,d=c*(this.options.maxPlaybackRate-this.options.minPlaybackRate)+this.options.minPlaybackRate,this.playbackRate(d)}},_updatePlaybackRate:function(){var a=this.options.playbackRate,b=(a-this.options.minPlaybackRate)/(this.options.maxPlaybackRate-this.options.minPlaybackRate);this.status.playbackRateEnabled?(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.show(),this.css.jq.playbackRateBarValue.length&&(this.css.jq.playbackRateBarValue.show(),this.css.jq.playbackRateBarValue[this.options.verticalPlaybackRate?"height":"width"](100*b+"%"))):(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.hide(),this.css.jq.playbackRateBarValue.length&&this.css.jq.playbackRateBarValue.hide())},repeat:function(a){var b="object"==typeof a;this._loop(b&&this.options.useStateClassSkin&&this.options.loop?!1:!0)},repeatOff:function(){this._loop(!1)},_loop:function(b){this.options.loop!==b&&(this.options.loop=b,this._updateButtons(),this._trigger(a.jPlayer.event.repeat))},option:function(c,d){var e=c;if(0===arguments.length)return a.extend(!0,{},this.options);if("string"==typeof c){var f=c.split(".");if(d===b){for(var g=a.extend(!0,{},this.options),h=0;h<f.length;h++){if(g[f[h]]===b)return this._warning({type:a.jPlayer.warning.OPTION_KEY,context:c,message:a.jPlayer.warningMsg.OPTION_KEY,hint:a.jPlayer.warningHint.OPTION_KEY}),b;g=g[f[h]]}return g}e={};for(var i=e,j=0;j<f.length;j++)j<f.length-1?(i[f[j]]={},i=i[f[j]]):i[f[j]]=d}return this._setOptions(e),this},_setOptions:function(b){var c=this;return a.each(b,function(a,b){c._setOption(a,b)}),this},_setOption:function(b,c){var d=this;switch(b){case"volume":this.volume(c);break;case"muted":this._muted(c);break;case"globalVolume":this.options[b]=c;break;case"cssSelectorAncestor":this._cssSelectorAncestor(c);break;case"cssSelector":a.each(c,function(a,b){d._cssSelector(a,b)});break;case"playbackRate":this.options[b]=c=this._limitValue(c,this.options.minPlaybackRate,this.options.maxPlaybackRate),this.html.used&&this._html_setProperty("playbackRate",c),this._updatePlaybackRate();break;case"defaultPlaybackRate":this.options[b]=c=this._limitValue(c,this.options.minPlaybackRate,this.options.maxPlaybackRate),this.html.used&&this._html_setProperty("defaultPlaybackRate",c),this._updatePlaybackRate();break;case"minPlaybackRate":this.options[b]=c=this._limitValue(c,.1,this.options.maxPlaybackRate-.1),this._updatePlaybackRate();break;case"maxPlaybackRate":this.options[b]=c=this._limitValue(c,this.options.minPlaybackRate+.1,16),this._updatePlaybackRate();break;case"fullScreen":if(this.options[b]!==c){var e=a.jPlayer.nativeFeatures.fullscreen.used.webkitVideo;(!e||e&&!this.status.waitForPlay)&&(e||(this.options[b]=c),c?this._requestFullscreen():this._exitFullscreen(),e||this._setOption("fullWindow",c))}break;case"fullWindow":this.options[b]!==c&&(this._removeUiClass(),this.options[b]=c,this._refreshSize());break;case"size":this.options.fullWindow||this.options[b].cssClass===c.cssClass||this._removeUiClass(),this.options[b]=a.extend({},this.options[b],c),this._refreshSize();break;case"sizeFull":this.options.fullWindow&&this.options[b].cssClass!==c.cssClass&&this._removeUiClass(),this.options[b]=a.extend({},this.options[b],c),this._refreshSize();break;case"autohide":this.options[b]=a.extend({},this.options[b],c),this._updateAutohide();break;case"loop":this._loop(c);break;case"remainingDuration":this.options[b]=c,this._updateInterface();break;case"toggleDuration":this.options[b]=c;break;case"nativeVideoControls":this.options[b]=a.extend({},this.options[b],c),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this._restrictNativeVideoControls(),this._updateNativeVideoControls();break;case"noFullWindow":this.options[b]=a.extend({},this.options[b],c),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this.status.noFullWindow=this._uaBlocklist(this.options.noFullWindow),this._restrictNativeVideoControls(),this._updateButtons();break;case"noVolume":this.options[b]=a.extend({},this.options[b],c),this.status.noVolume=this._uaBlocklist(this.options.noVolume),this._updateVolume(),this._updateMute();break;case"emulateHtml":this.options[b]!==c&&(this.options[b]=c,c?this._emulateHtmlBridge():this._destroyHtmlBridge());break;case"timeFormat":this.options[b]=a.extend({},this.options[b],c);break;case"keyEnabled":this.options[b]=c,c||this!==a.jPlayer.focus||(a.jPlayer.focus=null);break;case"keyBindings":this.options[b]=a.extend(!0,{},this.options[b],c);break;case"audioFullScreen":this.options[b]=c;break;case"autoBlur":this.options[b]=c}return this},_refreshSize:function(){this._setSize(),this._addUiClass(),this._updateSize(),this._updateButtons(),this._updateAutohide(),this._trigger(a.jPlayer.event.resize)},_setSize:function(){this.options.fullWindow?(this.status.width=this.options.sizeFull.width,this.status.height=this.options.sizeFull.height,this.status.cssClass=this.options.sizeFull.cssClass):(this.status.width=this.options.size.width,this.status.height=this.options.size.height,this.status.cssClass=this.options.size.cssClass),this.element.css({width:this.status.width,height:this.status.height})},_addUiClass:function(){this.ancestorJq.length&&this.ancestorJq.addClass(this.status.cssClass)},_removeUiClass:function(){this.ancestorJq.length&&this.ancestorJq.removeClass(this.status.cssClass)},_updateSize:function(){this.internal.poster.jq.css({width:this.status.width,height:this.status.height}),!this.status.waitForPlay&&this.html.active&&this.status.video||this.html.video.available&&this.html.used&&this.status.nativeVideoControls?this.internal.video.jq.css({width:this.status.width,height:this.status.height}):!this.status.waitForPlay&&this.flash.active&&this.status.video&&this.internal.flash.jq.css({width:this.status.width,height:this.status.height})},_updateAutohide:function(){var a=this,b="mousemove.jPlayer",c=".jPlayerAutohide",d=b+c,e=function(b){var c,d,e=!1;"undefined"!=typeof a.internal.mouse?(c=a.internal.mouse.x-b.pageX,d=a.internal.mouse.y-b.pageY,e=Math.floor(c)>0||Math.floor(d)>0):e=!0,a.internal.mouse={x:b.pageX,y:b.pageY},e&&a.css.jq.gui.fadeIn(a.options.autohide.fadeIn,function(){clearTimeout(a.internal.autohideId),a.internal.autohideId=setTimeout(function(){a.css.jq.gui.fadeOut(a.options.autohide.fadeOut)},a.options.autohide.hold)})};this.css.jq.gui.length&&(this.css.jq.gui.stop(!0,!0),clearTimeout(this.internal.autohideId),delete this.internal.mouse,this.element.unbind(c),this.css.jq.gui.unbind(c),this.status.nativeVideoControls?this.css.jq.gui.hide():this.options.fullWindow&&this.options.autohide.full||!this.options.fullWindow&&this.options.autohide.restored?(this.element.bind(d,e),this.css.jq.gui.bind(d,e),this.css.jq.gui.hide()):this.css.jq.gui.show())},fullScreen:function(a){var b="object"==typeof a;b&&this.options.useStateClassSkin&&this.options.fullScreen?this._setOption("fullScreen",!1):this._setOption("fullScreen",!0)},restoreScreen:function(){this._setOption("fullScreen",!1)},_fullscreenAddEventListeners:function(){var b=this,c=a.jPlayer.nativeFeatures.fullscreen;c.api.fullscreenEnabled&&c.event.fullscreenchange&&("function"!=typeof this.internal.fullscreenchangeHandler&&(this.internal.fullscreenchangeHandler=function(){b._fullscreenchange()}),document.addEventListener(c.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1))},_fullscreenRemoveEventListeners:function(){var b=a.jPlayer.nativeFeatures.fullscreen;this.internal.fullscreenchangeHandler&&document.removeEventListener(b.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1)},_fullscreenchange:function(){this.options.fullScreen&&!a.jPlayer.nativeFeatures.fullscreen.api.fullscreenElement()&&this._setOption("fullScreen",!1)},_requestFullscreen:function(){var b=this.ancestorJq.length?this.ancestorJq[0]:this.element[0],c=a.jPlayer.nativeFeatures.fullscreen;c.used.webkitVideo&&(b=this.htmlElement.video),c.api.fullscreenEnabled&&c.api.requestFullscreen(b)},_exitFullscreen:function(){var b,c=a.jPlayer.nativeFeatures.fullscreen;c.used.webkitVideo&&(b=this.htmlElement.video),c.api.fullscreenEnabled&&c.api.exitFullscreen(b)},_html_initMedia:function(b){var c=a(this.htmlElement.media).empty();a.each(b.track||[],function(a,b){var d=document.createElement("track");d.setAttribute("kind",b.kind?b.kind:""),d.setAttribute("src",b.src?b.src:""),d.setAttribute("srclang",b.srclang?b.srclang:""),d.setAttribute("label",b.label?b.label:""),b.def&&d.setAttribute("default",b.def),c.append(d)}),this.htmlElement.media.src=this.status.src,"none"!==this.options.preload&&this._html_load(),this._trigger(a.jPlayer.event.timeupdate)},_html_setFormat:function(b){var c=this;a.each(this.formats,function(a,d){return c.html.support[d]&&b[d]?(c.status.src=b[d],c.status.format[d]=!0,c.status.formatType=d,!1):void 0})},_html_setAudio:function(a){this._html_setFormat(a),this.htmlElement.media=this.htmlElement.audio,this._html_initMedia(a)},_html_setVideo:function(a){this._html_setFormat(a),this.status.nativeVideoControls&&(this.htmlElement.video.poster=this._validString(a.poster)?a.poster:""),this.htmlElement.media=this.htmlElement.video,this._html_initMedia(a)},_html_resetMedia:function(){this.htmlElement.media&&(this.htmlElement.media.id!==this.internal.video.id||this.status.nativeVideoControls||this.internal.video.jq.css({width:"0px",height:"0px"}),this.htmlElement.media.pause())},_html_clearMedia:function(){this.htmlElement.media&&(this.htmlElement.media.src="about:blank",this.htmlElement.media.load())},_html_load:function(){this.status.waitForLoad&&(this.status.waitForLoad=!1,this.htmlElement.media.load()),clearTimeout(this.internal.htmlDlyCmdId)},_html_play:function(a){var b=this,c=this.htmlElement.media;if(this.androidFix.pause=!1,this._html_load(),this.androidFix.setMedia)this.androidFix.play=!0,this.androidFix.time=a;else if(isNaN(a))c.play();else{this.internal.cmdsIgnored&&c.play();try{if(c.seekable&&!("object"==typeof c.seekable&&c.seekable.length>0))throw 1;c.currentTime=a,c.play()}catch(d){return void(this.internal.htmlDlyCmdId=setTimeout(function(){b.play(a)},250))}}this._html_checkWaitForPlay()},_html_pause:function(a){var b=this,c=this.htmlElement.media;if(this.androidFix.play=!1,a>0?this._html_load():clearTimeout(this.internal.htmlDlyCmdId),c.pause(),this.androidFix.setMedia)this.androidFix.pause=!0,this.androidFix.time=a;else if(!isNaN(a))try{if(c.seekable&&!("object"==typeof c.seekable&&c.seekable.length>0))throw 1;c.currentTime=a}catch(d){return void(this.internal.htmlDlyCmdId=setTimeout(function(){b.pause(a)},250))}a>0&&this._html_checkWaitForPlay()},_html_playHead:function(a){var b=this,c=this.htmlElement.media;this._html_load();try{if("object"==typeof c.seekable&&c.seekable.length>0)c.currentTime=a*c.seekable.end(c.seekable.length-1)/100;else{if(!(c.duration>0)||isNaN(c.duration))throw"e";c.currentTime=a*c.duration/100}}catch(d){return void(this.internal.htmlDlyCmdId=setTimeout(function(){b.playHead(a)},250))}this.status.waitForLoad||this._html_checkWaitForPlay()},_html_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})))},_html_setProperty:function(a,b){this.html.audio.available&&(this.htmlElement.audio[a]=b),this.html.video.available&&(this.htmlElement.video[a]=b)},_aurora_setAudio:function(b){var c=this;a.each(this.formats,function(a,d){return c.aurora.support[d]&&b[d]?(c.status.src=b[d],c.status.format[d]=!0,c.status.formatType=d,!1):void 0}),this.aurora.player=new AV.Player.fromURL(this.status.src),this._addAuroraEventListeners(this.aurora.player,this.aurora),"auto"===this.options.preload&&(this._aurora_load(),this.status.waitForLoad=!1)},_aurora_resetMedia:function(){this.aurora.player&&this.aurora.player.stop()},_aurora_clearMedia:function(){},_aurora_load:function(){this.status.waitForLoad&&(this.status.waitForLoad=!1,this.aurora.player.preload())},_aurora_play:function(b){this.status.waitForLoad||isNaN(b)||this.aurora.player.seek(b),this.aurora.player.playing||this.aurora.player.play(),this.status.waitForLoad=!1,this._aurora_checkWaitForPlay(),this._updateButtons(!0),this._trigger(a.jPlayer.event.play)},_aurora_pause:function(b){isNaN(b)||this.aurora.player.seek(1e3*b),this.aurora.player.pause(),b>0&&this._aurora_checkWaitForPlay(),this._updateButtons(!1),this._trigger(a.jPlayer.event.pause)},_aurora_playHead:function(a){this.aurora.player.duration>0&&this.aurora.player.seek(a*this.aurora.player.duration/100),this.status.waitForLoad||this._aurora_checkWaitForPlay()},_aurora_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1)},_aurora_volume:function(a){this.aurora.player.volume=100*a},_aurora_mute:function(a){a?(this.aurora.properties.lastvolume=this.aurora.player.volume,this.aurora.player.volume=0):this.aurora.player.volume=this.aurora.properties.lastvolume,this.aurora.properties.muted=a},_flash_setAudio:function(b){var c=this;try{a.each(this.formats,function(a,d){if(c.flash.support[d]&&b[d]){switch(d){case"m4a":case"fla":c._getMovie().fl_setAudio_m4a(b[d]);break;case"mp3":c._getMovie().fl_setAudio_mp3(b[d]);break;case"rtmpa":c._getMovie().fl_setAudio_rtmp(b[d])}return c.status.src=b[d],c.status.format[d]=!0,c.status.formatType=d,!1}}),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(d){this._flashError(d)}},_flash_setVideo:function(b){var c=this;try{a.each(this.formats,function(a,d){if(c.flash.support[d]&&b[d]){switch(d){case"m4v":case"flv":c._getMovie().fl_setVideo_m4v(b[d]);break;case"rtmpv":c._getMovie().fl_setVideo_rtmp(b[d])}return c.status.src=b[d],c.status.format[d]=!0,c.status.formatType=d,!1}}),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(d){this._flashError(d)}},_flash_resetMedia:function(){this.internal.flash.jq.css({width:"0px",height:"0px"}),this._flash_pause(0/0)},_flash_clearMedia:function(){try{this._getMovie().fl_clearMedia()}catch(a){this._flashError(a)}},_flash_load:function(){try{this._getMovie().fl_load()}catch(a){this._flashError(a)}this.status.waitForLoad=!1},_flash_play:function(a){try{this._getMovie().fl_play(a)}catch(b){this._flashError(b)}this.status.waitForLoad=!1,this._flash_checkWaitForPlay()},_flash_pause:function(a){try{this._getMovie().fl_pause(a)}catch(b){this._flashError(b)}a>0&&(this.status.waitForLoad=!1,this._flash_checkWaitForPlay())},_flash_playHead:function(a){try{this._getMovie().fl_play_head(a)}catch(b){this._flashError(b)}this.status.waitForLoad||this._flash_checkWaitForPlay()},_flash_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.flash.jq.css({width:this.status.width,height:this.status.height})))},_flash_volume:function(a){try{this._getMovie().fl_volume(a)}catch(b){this._flashError(b)}},_flash_mute:function(a){try{this._getMovie().fl_mute(a)}catch(b){this._flashError(b)}},_getMovie:function(){return document[this.internal.flash.id]},_getFlashPluginVersion:function(){var a,b=0;if(window.ActiveXObject)try{if(a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")){var c=a.GetVariable("$version");c&&(c=c.split(" ")[1].split(","),b=parseInt(c[0],10)+"."+parseInt(c[1],10))}}catch(d){}else navigator.plugins&&navigator.mimeTypes.length>0&&(a=navigator.plugins["Shockwave Flash"],a&&(b=navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1")));return 1*b},_checkForFlash:function(a){var b=!1;return this._getFlashPluginVersion()>=a&&(b=!0),b},_validString:function(a){return a&&"string"==typeof a},_limitValue:function(a,b,c){return b>a?b:a>c?c:a},_urlNotSetError:function(b){this._error({type:a.jPlayer.error.URL_NOT_SET,context:b,message:a.jPlayer.errorMsg.URL_NOT_SET,hint:a.jPlayer.errorHint.URL_NOT_SET})},_flashError:function(b){var c;c=this.internal.ready?"FLASH_DISABLED":"FLASH",this._error({type:a.jPlayer.error[c],context:this.internal.flash.swf,message:a.jPlayer.errorMsg[c]+b.message,hint:a.jPlayer.errorHint[c]}),this.internal.flash.jq.css({width:"1px",height:"1px"})},_error:function(b){this._trigger(a.jPlayer.event.error,b),this.options.errorAlerts&&this._alert("Error!"+(b.message?"\n"+b.message:"")+(b.hint?"\n"+b.hint:"")+"\nContext: "+b.context)},_warning:function(c){this._trigger(a.jPlayer.event.warning,b,c),this.options.warningAlerts&&this._alert("Warning!"+(c.message?"\n"+c.message:"")+(c.hint?"\n"+c.hint:"")+"\nContext: "+c.context)},_alert:function(a){var b="jPlayer "+this.version.script+" : id='"+this.internal.self.id+"' : "+a;this.options.consoleAlerts?window.console&&window.console.log&&window.console.log(b):alert(b)},_emulateHtmlBridge:function(){var b=this;a.each(a.jPlayer.emulateMethods.split(/\s+/g),function(a,c){b.internal.domNode[c]=function(a){b[c](a)}}),a.each(a.jPlayer.event,function(c,d){var e=!0;a.each(a.jPlayer.reservedEvent.split(/\s+/g),function(a,b){return b===c?(e=!1,!1):void 0}),e&&b.element.bind(d+".jPlayer.jPlayerHtml",function(){b._emulateHtmlUpdate();var a=document.createEvent("Event");a.initEvent(c,!1,!0),b.internal.domNode.dispatchEvent(a)})})},_emulateHtmlUpdate:function(){var b=this;a.each(a.jPlayer.emulateStatus.split(/\s+/g),function(a,c){b.internal.domNode[c]=b.status[c]}),a.each(a.jPlayer.emulateOptions.split(/\s+/g),function(a,c){b.internal.domNode[c]=b.options[c]})},_destroyHtmlBridge:function(){var b=this;this.element.unbind(".jPlayerHtml");var c=a.jPlayer.emulateMethods+" "+a.jPlayer.emulateStatus+" "+a.jPlayer.emulateOptions;a.each(c.split(/\s+/g),function(a,c){delete b.internal.domNode[c]})}},a.jPlayer.error={FLASH:"e_flash",FLASH_DISABLED:"e_flash_disabled",NO_SOLUTION:"e_no_solution",NO_SUPPORT:"e_no_support",URL:"e_url",URL_NOT_SET:"e_url_not_set",VERSION:"e_version"},a.jPlayer.errorMsg={FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ",FLASH_DISABLED:"jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ",NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.",NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.",URL:"Media URL could not be loaded.",URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.",VERSION:"jPlayer "+a.jPlayer.prototype.version.script+" needs Jplayer.swf version "+a.jPlayer.prototype.version.needFlash+" but found "},a.jPlayer.errorHint={FLASH:"Check your swfPath option and that Jplayer.swf is there.",FLASH_DISABLED:"Check that you have not display:none; the jPlayer entity or any ancestor.",NO_SOLUTION:"Review the jPlayer options: support and supplied.",NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.",URL:"Check media URL is valid.",URL_NOT_SET:"Use setMedia() to set the media URL.",VERSION:"Update jPlayer files."},a.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method",CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"},a.jPlayer.warningMsg={CSS_SELECTOR_COUNT:"The number of css selectors found did not equal one: ",CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",OPTION_KEY:"The option requested in jPlayer('option') is undefined."},a.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.",CSS_SELECTOR_METHOD:"Check your method name.",CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."}});
vendor: 9,836 bytes, lines 242-252
242
243
244/*! jPlayerPlaylist for jPlayer 2.9.2 ~ (c) 2009-2014 Happyworm Ltd ~ MIT License */
245!function(a,b){jPlayerPlaylist=function(b,c,d){var e=this;this.current=0,this.loop=!1,this.shuffled=!1,this.removing=!1,this.cssSelector=a.extend({},this._cssSelector,b),this.options=a.extend(!0,{keyBindings:{next:{key:221,fn:function(){e.next()}},previous:{key:219,fn:function(){e.previous()}},shuffle:{key:83,fn:function(){e.shuffle()}}},stateClass:{shuffled:"jp-state-shuffled"}},this._options,d),this.playlist=[],this.original=[],this._initPlaylist(c),this.cssSelector.details=this.cssSelector.cssSelectorAncestor+" .jp-details",this.cssSelector.playlist=this.cssSelector.cssSelectorAncestor+" .jp-playlist",this.cssSelector.next=this.cssSelector.cssSelectorAncestor+" .jp-next",this.cssSelector.previous=this.cssSelector.cssSelectorAncestor+" .jp-previous",this.cssSelector.shuffle=this.cssSelector.cssSelectorAncestor+" .jp-shuffle",this.cssSelector.shuffleOff=this.cssSelector.cssSelectorAncestor+" .jp-shuffle-off",this.options.cssSelectorAncestor=this.cssSelector.cssSelectorAncestor,this.options.repeat=function(a){e.loop=a.jPlayer.options.loop},a(this.cssSelector.jPlayer).bind(a.jPlayer.event.ready,function(){e._init()}),a(this.cssSelector.jPlayer).bind(a.jPlayer.event.ended,function(){e.next()}),a(this.cssSelector.jPlayer).bind(a.jPlayer.event.play,function(){a(this).jPlayer("pauseOthers")}),a(this.cssSelector.jPlayer).bind(a.jPlayer.event.resize,function(b){b.jPlayer.options.fullScreen?a(e.cssSelector.details).show():a(e.cssSelector.details).hide()}),a(this.cssSelector.previous).click(function(a){a.preventDefault(),e.previous(),e.blur(this)}),a(this.cssSelector.next).click(function(a){a.preventDefault(),e.next(),e.blur(this)}),a(this.cssSelector.shuffle).click(function(b){b.preventDefault(),e.shuffle(e.shuffled&&a(e.cssSelector.jPlayer).jPlayer("option","useStateClassSkin")?!1:!0),e.blur(this)}),a(this.cssSelector.shuffleOff).click(function(a){a.preventDefault(),e.shuffle(!1),e.blur(this)}).hide(),this.options.fullScreen||a(this.cssSelector.details).hide(),a(this.cssSelector.playlist+" ul").empty(),this._createItemHandlers(),a(this.cssSelector.jPlayer).jPlayer(this.options)},jPlayerPlaylist.prototype={_cssSelector:{jPlayer:"#jquery_jplayer_1",cssSelectorAncestor:"#jp_container_1"},_options:{playlistOptions:{autoPlay:!1,loopOnPrevious:!1,shuffleOnLoop:!0,enableRemoveControls:!1,displayTime:"slow",addTime:"fast",removeTime:"fast",shuffleTime:"slow",itemClass:"jp-playlist-item",freeGroupClass:"jp-free-media",freeItemClass:"jp-playlist-item-free",removeItemClass:"jp-playlist-item-remove"}},option:function(a,c){if(c===b)return this.options.playlistOptions[a];switch(this.options.playlistOptions[a]=c,a){case"enableRemoveControls":this._updateControls();break;case"itemClass":case"freeGroupClass":case"freeItemClass":case"removeItemClass":this._refresh(!0),this._createItemHandlers()}return this},_init:function(){var a=this;this._refresh(function(){a.options.playlistOptions.autoPlay?a.play(a.current):a.select(a.current)})},_initPlaylist:function(b){this.current=0,this.shuffled=!1,this.removing=!1,this.original=a.extend(!0,[],b),this._originalPlaylist()},_originalPlaylist:function(){var b=this;this.playlist=[],a.each(this.original,function(a){b.playlist[a]=b.original[a]})},_refresh:function(b){var c=this;if(b&&!a.isFunction(b))a(this.cssSelector.playlist+" ul").empty(),a.each(this.playlist,function(b){a(c.cssSelector.playlist+" ul").append(c._createListItem(c.playlist[b]))}),this._updateControls();else{var d=a(this.cssSelector.playlist+" ul").children().length?this.options.playlistOptions.displayTime:0;a(this.cssSelector.playlist+" ul").slideUp(d,function(){var d=a(this);a(this).empty(),a.each(c.playlist,function(a){d.append(c._createListItem(c.playlist[a]))}),c._updateControls(),a.isFunction(b)&&b(),c.playlist.length?a(this).slideDown(c.options.playlistOptions.displayTime):a(this).show()})}},_createListItem:function(b){var c=this,d="<li><div>";if(d+="<a href='javascript:;' class='"+this.options.playlistOptions.removeItemClass+"'>&times;</a>",b.free){var e=!0;d+="<span class='"+this.options.playlistOptions.freeGroupClass+"'>(",a.each(b,function(b,f){a.jPlayer.prototype.format[b]&&(e?e=!1:d+=" | ",d+="<a class='"+c.options.playlistOptions.freeItemClass+"' href='"+f+"' tabindex='-1'>"+b+"</a>")}),d+=")</span>"}return d+="<a href='javascript:;' class='"+this.options.playlistOptions.itemClass+"' tabindex='0'>"+b.title+(b.artist?" <span class='jp-artist'>by "+b.artist+"</span>":"")+"</a>",d+="</div></li>"},_createItemHandlers:function(){var b=this;a(this.cssSelector.playlist).off("click","a."+this.options.playlistOptions.itemClass).on("click","a."+this.options.playlistOptions.itemClass,function(c){c.preventDefault();var d=a(this).parent().parent().index();b.current!==d?b.play(d):a(b.cssSelector.jPlayer).jPlayer("play"),b.blur(this)}),a(this.cssSelector.playlist).off("click","a."+this.options.playlistOptions.freeItemClass).on("click","a."+this.options.playlistOptions.freeItemClass,function(c){c.preventDefault(),a(this).parent().parent().find("."+b.options.playlistOptions.itemClass).click(),b.blur(this)}),a(this.cssSelector.playlist).off("click","a."+this.options.playlistOptions.removeItemClass).on("click","a."+this.options.playlistOptions.removeItemClass,function(c){c.preventDefault();var d=a(this).parent().parent().index();b.remove(d),b.blur(this)})},_updateControls:function(){this.options.playlistOptions.enableRemoveControls?a(this.cssSelector.playlist+" ."+this.options.playlistOptions.removeItemClass).show():a(this.cssSelector.playlist+" ."+this.options.playlistOptions.removeItemClass).hide(),this.shuffled?a(this.cssSelector.jPlayer).jPlayer("addStateClass","shuffled"):a(this.cssSelector.jPlayer).jPlayer("removeStateClass","shuffled"),a(this.cssSelector.shuffle).length&&a(this.cssSelector.shuffleOff).length&&(this.shuffled?(a(this.cssSelector.shuffleOff).show(),a(this.cssSelector.shuffle).hide()):(a(this.cssSelector.shuffleOff).hide(),a(this.cssSelector.shuffle).show()))},_highlight:function(c){this.playlist.length&&c!==b&&(a(this.cssSelector.playlist+" .jp-playlist-current").removeClass("jp-playlist-current"),a(this.cssSelector.playlist+" li:nth-child("+(c+1)+")").addClass("jp-playlist-current").find(".jp-playlist-item").addClass("jp-playlist-current"))},setPlaylist:function(a){this._initPlaylist(a),this._init()},add:function(b,c){a(this.cssSelector.playlist+" ul").append(this._createListItem(b)).find("li:last-child").hide().slideDown(this.options.playlistOptions.addTime),this._updateControls(),this.original.push(b),this.playlist.push(b),c?this.play(this.playlist.length-1):1===this.original.length&&this.select(0)},remove:function(c){var d=this;return c===b?(this._initPlaylist([]),this._refresh(function(){a(d.cssSelector.jPlayer).jPlayer("clearMedia")}),!0):this.removing?!1:(c=0>c?d.original.length+c:c,c>=0&&c<this.playlist.length&&(this.removing=!0,a(this.cssSelector.playlist+" li:nth-child("+(c+1)+")").slideUp(this.options.playlistOptions.removeTime,function(){if(a(this).remove(),d.shuffled){var b=d.playlist[c];a.each(d.original,function(a){return d.original[a]===b?(d.original.splice(a,1),!1):void 0}),d.playlist.splice(c,1)}else d.original.splice(c,1),d.playlist.splice(c,1);d.original.length?c===d.current?(d.current=c<d.original.length?d.current:d.original.length-1,d.select(d.current)):c<d.current&&d.current--:(a(d.cssSelector.jPlayer).jPlayer("clearMedia"),d.current=0,d.shuffled=!1,d._updateControls()),d.removing=!1})),!0)},select:function(b){b=0>b?this.original.length+b:b,b>=0&&b<this.playlist.length?(this.current=b,this._highlight(b),a(this.cssSelector.jPlayer).jPlayer("setMedia",this.playlist[this.current])):this.current=0},play:function(c){c=0>c?this.original.length+c:c,c>=0&&c<this.playlist.length?this.playlist.length&&(this.select(c),a(this.cssSelector.jPlayer).jPlayer("play")):c===b&&a(this.cssSelector.jPlayer).jPlayer("play")},pause:function(){a(this.cssSelector.jPlayer).jPlayer("pause")},next:function(){var a=this.current+1<this.playlist.length?this.current+1:0;this.loop?0===a&&this.shuffled&&this.options.playlistOptions.shuffleOnLoop&&this.playlist.length>1?this.shuffle(!0,!0):this.play(a):a>0&&this.play(a)},previous:function(){var a=this.current-1>=0?this.current-1:this.playlist.length-1;(this.loop&&this.options.playlistOptions.loopOnPrevious||a<this.playlist.length-1)&&this.play(a)},shuffle:function(c,d){var e=this;c===b&&(c=!this.shuffled),(c||c!==this.shuffled)&&a(this.cssSelector.playlist+" ul").slideUp(this.options.playlistOptions.shuffleTime,function(){e.shuffled=c,c?e.playlist.sort(function(){return.5-Math.random()}):e._originalPlaylist(),e._refresh(!0),d||!a(e.cssSelector.jPlayer).data("jPlayer").status.paused?e.play(0):e.select(0),a(this).slideDown(e.options.playlistOptions.shuffleTime)})},blur:function(b){a(this.cssSelector.jPlayer).jPlayer("option","autoBlur")&&a(b).blur()}}}(jQuery);
246
247
248/* Foresight.js 2.0.0 Copyright (c) 2012, Adam Bradley
249 * Available via the MIT license.
250 * For details see: https://github.com/adamdbradley/foresight.js
251 */
252// ;(function(e,t,n,r){"use strict";e.images=[],e.options=e.options||{};var i=e.options,s=i.testConn||!0,o=i.minKbpsForHighBandwidth||300,u=i.speedTestUri||"http://foresightjs.appspot.com/speed-test/50K",a=i.speedTestKB||50,f=i.speedTestExpireMinutes||30,l=i.hiResClassname||"fs-high-resolution",c=i.lowResClassname||"fs-standard-resolution",h="devicePixelRatio",p="devicePixelRatioRounded",d="bandwidth",v="connType",m="connTestResult",g="connKbps",y="requestChange",b="defaultSrc",w="highResolutionSrc",E="browserWidth",S="browserHeight",x="requestWidth",T="requestHeight",N="width",C="height",k="widthUnits",L="heightUnits",A="aspectRatio",O="appliedImageSetItem",M="scale",_="scaleRounded",D="uriTemplate",P="uriFind",H="uri
252Replace",B="srcModification",j="loading",F="complete",I="fsjs",q="auto",R="percent",U="auto",z="pixel",W="display",X="auto",V=!0,$=!1,J=/url\((?:([a-zA-Z-_0-9{}\?=&\\/.:\s]+)|([a-zA-Z-_0-9{}\?=&\\/.:\s]+)\|([a-zA-Z-_0-9{}\?=&\\/.:\s]+))\)/g,K=/[^\d]+/,Q,G,Y=function(){if(Q)return;Q=j,et(),Q=F,it()},Z=function(e,t){if(n.createEvent){var r=n.createEvent("Event");r.initEvent("foresight-"+e,V,V),t.dispatchEvent(r)}},et=function(){var t,r,i;for(t=0;t<n.images.length;t++){r=n.images[t];if(r.ignore)continue;if(!r.initalized){r.initalized=V,Z("imageInitStart",r),r[b]=rt(r,"src"),r[k]=rt(r,N,V),r[L]=rt(r,C,V);var s=rt(r,"aspect-ratio",$);r[A]=s===q?s:!isNaN(s)&&s!==null?parseFloat(s):0;if(!r[b]||(!r[k]||!r[L])&&!r[A]){r.ignore=V;continue}r[w]=rt(r,"high-resolution-src"),r.orgClassName=r.className?r.className:"",r.onerror=gt,Z("imageInitEnd",r),e.images.push(r)}r.imageSetText=ct(r,"font-family","fontFamily"),r.imageSet=[],r.imageSetText.length>1&&tt(r,r.imageSetText.split("image-set(")[1])}},tt=function(e,t){var n,r=t!==undefined&&t!==null?t.split(","):[],i,s;for(n=0;n<r.length;n++){i={text:r[n],weight:0},i.text.indexOf(" 1.5x")>-1?(i.weight++,i[M]=1.5):i.text.indexOf(" 2x")>-1?i[M]=2:i.text.indexOf(" 1x")>-1&&(i[M]=1),i.text.indexOf(" high-bandwidth")>-1?i[d]="high":i.text.indexOf(" low-bandwidth")>-1&&(i[d]="low");while(s=J.exec(i.text))s[1]!=null&&s[1]!==""?(i[D]=s[1],i.weight++):s[2]!=null&&s[2]!==""&&(i[P]=s[2],i[H]=s[3],i.weight++);i[M]&&i[d]?i.weight+=2:(i[M]||i[d])&&i.weight++,e.imageSet.push(i)}e.imageSet.sort(nt)},nt=function(e,t){return e.weight<t.weight?1:e.weight>t.weight?-1:0},rt=function(e,t,n,r){return r=e.getAttribute("data-"+t),n&&r!==null?isNaN(r)?0:parseInt(r,10):r},it=function(){if(G!==F||Q!==F)return;var t,n=e.images.length,r,i,s,o,u=[],a;for(t=0;t<n;t++){r=e.images[t];if(!at(r))continue;Z("imageRebuildStart",r),s=r.orgClassName.split(" "),ft(r),r.unitType==z&&(o="fs-"+r[E]+"x"+r[S],s.push(o),u[o]==undefined&&(u[o]=V,u.push("."+o+"{width:"+r[E]+"px;height:"+r[S]+"px}"))),r.style.display!=="inline"&&(r.style.display="inline"),ut(r),st(r),e.hiResEnabled&&r.src!==r[b]?s.push(l):s.push(c),s.push("fs-"+r[B]),r.className=s.join(" "),Z("imageRebuildEnd",r)}u.length&&pt(u),e.updateComplete&&e.updateComplete(),Et=xt()},st=function(t){var n,r;t[O][M]>1&&t[O][d]==="high"?(n=t[E]===undefined?X:Math.round(t[E]*t[O][M]),r=t[S]===undefined?X:Math.round(t[S]*t[O][M]),e.hiResEnabled=V):(n=t[E]===undefined?X:t[E],r=t[S]===undefined?X:t[S],e.hiResEnabled=$),!t[x]||n>t[x]||t.activeImageSetText!==t.imageSetText?(t[x]=n,t[T]=r,t[w]&&e.hiResEnabled?(t.src=t[w],t[B]="src-hi-res"):t.src=ot(t),t[y]=V,t.activeImageSetText=t.imageSetText):t[y]=$},ot=function(e){return e[O][D]?(e[B]="src-uri-template",dt(e)):e[O][P]&&e[O][H]?(e[B]="src-find-replace",mt(e)):(e[B]="src-default",e[b])},ut=function(t){var n,r,i={};for(n=0;n<t.imageSet.length;n++){r=t.imageSet[n];if(r[M]&&r[d]){if(e[h]==r[M]&&e[d]===r[d]){i=r;break}if(Math.round(e[h])==r[M]&&e[d]===r[d]){i=r;break}}else if(r[M]){if(e[h]==r[M]){i=r;break}if(Math.round(e[h])==r[M]){i=r;break}}else if(r[d]){if(e[d]===r[d]){i=r;break}}else i=r}
252i[M]||(i[M]=e[h]),i[d]||(i[d]=e[d]),i[_]=Math.round(i[M]),t[O]=i},at=function(e,t){return t=e.parentNode,t.clientWidth?V:ct(t,"display")==="inline"?at(t):$},ft=function(e,t){if(!e.unitType){var n=e.style[W];e.style[W]="none",t=ct(e,N),e.style[W]=n,e[A]&&t==="auto"||t.indexOf("%")>0?e.unitType=R:(e.unitType=z,e[A]&&e[A]!==q?e[L]?(e[E]=Math.round(e[HEIGHT_UNTIS]/e[A]),e[S]=e[L]):(e[E]=e[k]||t.replace(K,""),e[S]=Math.round(e[E]/e[A])):(e[E]=e[k],e[S]=e[L]))}if(e.unitType===R||e[A])e.computedWidth=lt(e),e[E]=e.computedWidth,e[A]!=q?e[S]=Math.round(e[E]/e[A]):e[L]&&(e[S]=Math.round(e[L]*(e.computedWidth/e[k]))),e[S]&&r.appVersion.indexOf("MSIE")>-1&&(e.style.height=e[S]+"px")},lt=function(e){if(e.offsetWidth!==0)return e.offsetWidth;var t,n,r={},i={position:"absolute",visibility:"hidden",display:"block"};for(n in i)r[n]=e.style[n],e.style[n]=i[n];t=e.offsetWidth;for(n in i)e.style[n]=r[n];return t},ct=function(e,t,r){return r||(r=t),e.currentStyle?e.currentStyle[r]:n.defaultView.getComputedStyle(e,null).getPropertyValue(t)},ht,pt=function(e,t){ht||(ht=n.createElement("style"),ht.setAttribute("type","text/css")),t=e.join("");try{ht.innerHTML=t}catch(r){ht.styleSheet.cssText=t}ht.parentElement==null&&n.getElementsByTagName("head")[0].appendChild(ht)},dt=function(e){var t,n=["src","protocol","host","port","directory","file","filename","ext","query",x,T,M,_],r=e[O][D];e.uri=vt(e[b]),e.uri.src=e[b],e.uri[x]=e[x],e.uri[T]=e[T],e.uri[M]=e[O][M],e.uri[_]=e[O][_];for(t=0;t<n.length;t++)r=r.replace("{"+n[t]+"}",e.uri[n[t]]);return r},vt=function(e){var t={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/},n=t.parser.exec(e),r={},i=14;while(i--)r[t.key[i]]=n[i]||"";r[t.q.name]={},r[t.key[12]].replace(t.q.parser,function(e,n,i){n&&(r[t.q.name][n]=i)});var s=r.file.split(".");return r.filename=s[0],r.ext=s.length>1?s[s.length-1]:"",r},mt=function(e){var t=e[O][P].replace("{browserWidth}",e[k]).replace("{browserHeight}",e[L]),n,r=e[b].replace(t,e[O][H]),i=[x,T,M,_];for(n=0;n<i.length;n++)r=r.replace("{"+i[n]+"}",e[i[n]]);return r},gt=function(e){e=this,e.className=e.className.replace(l,c),e[B]="response-error";if(e.hasError||e.src===e[b])return;e.hasError=V,e.src=e[b]},yt=function(){if(G)return;if(i.forcedBandwidth){e[d]=i.forcedBandwidth,e[m]="forced",G=F;return}if(e[h]===1){e[m]="skip",G=F;return}var t=r.connection||{type:"unknown"},s=t.type==3||t.type==4||/^[23]g$/.test(t.type);e[v]=t.type;if(s){e[m]="connTypeSlow",G=F;return}try{var f=JSON.parse(localStorage.getItem(I));if(f!==null&&(new Date).getTime()<f.exp){e[d]=f.bw,e[g]=f.kbps,e[m]="localStorage",G=F;return}}catch(l){}var c=n.createElement("img"),p,y,b;c.onload=function(){p=(new Date).getTime();var t=(p-y)/1e3;t=t>1?t:1,e[g]=a*1024*8/t/1024,e[d]=e[g]>=o?"high":"low",bt("networkSuccess")},c.onerror=function(){bt("networkError",5)},c.onabort=function(){bt("networkAbort",5)},y=(new Date).getTime(),G=j,n.location.protocol==="https:"&&(u=u.replace("http:","https:")),c.src=u+"?r="+Math.random(),b=a*8/o*1e3+350,setTimeout(function(){bt("networkSlow")},b)},bt=function(t,n){if(G===F)return;G=F,e[m]=t;try{n||(n=f);var r={kbps:e[g],bw:e[d],exp:(new Date).getTime()+n*6e4};localStorage.setItem(I,JSON.stringify(r))}catch(i){}it()},wt=function(){t.addEventListener?t.addEventListener("resize",St,$):t.attachEvent&&t.attachEvent("onresize",St)},Et=0,St=function(){Et!==xt()&&e.reload()},xt=function(){return n.documentElement.clientWidth||n.body&&n.body.clientWidth||1024},Tt,Nt=function(){if(Q!==F||G!==F)return;et(),it()};e.resolve=function(e,t){t.imageSet=[],tt(t,e),ut(t),st(t),t.src=ot(t)},e.reload=function(){t.clearTimeout(Tt),Tt=t.setTimeout(Nt,250)},e.ready=function(){if(!n.body)return t.setTimeout(e.ready,1);Y()},n.readyState===F?setTimeout(e.ready,1):n.addEventListener?(n.addEventListener("DOMContentLoaded",e.ready,$),t.addEventListener("load",e.ready,$)):n.attachEvent&&(n.attachEvent("onreadystatechange",e.ready),t.attachEvent("onload",e.ready)),e[h]=t[h]?t[h]:1,i.forcedPixelRatio&&(e[h]=i.forcedPixelRatio),e[p]=Math.round(e[h]),yt(),wt()})(this.foresight=this.foresight||{},this,document,navigator);
253
254
255
256/*
257 * jQuery throttle / debounce - v1.1 - 3/7/2010
258 * http://benalman.com/projects/jquery-throttle-debounce-plugin/
259 *
260 * Copyright (c) 2010 "Cowboy" Ben Alman
261 * Dual licensed under the MIT and GPL licenses.
262 * http://benalman.com/about/license/
263 */
264;(function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=a=function(e,f,j,i){var h,d=0;if(typeof f!=="boolean"){i=j;j=f;f=c}function g(){var o=this,m=+new Date()-d,n=arguments;function l(){d=+new Date();j.apply(o,n)}function k(){h=c}if(i&&!h){l()}h&&clearTimeout(h);if(i===c&&m>e){l()}else{if(f!==true){h=setTimeout(i?k:l,i===c?e-m:e)}}}if($.guid){g.guid=j.guid=j.guid||$.guid++}return g};$.debounce=function(d,e,f){return f===c?a(d,e,false):a(d,f,e!==false)}})(this);
265
266
267/*! jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ */
268jQuery.easing["jswing"]=jQuery.easing["swing"];jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,t,n,r,i){return jQuery.easing[jQuery.easing.def](e,t,n,r,i)},easeInQuad:function(e,t,n,r,i){return r*(t/=i)*t+n},easeOutQuad:function(e,t,n,r,i){return-r*(t/=i)*(t-2)+n},easeInOutQuad:function(e,t,n,r,i){if((t/=i/2)<1)return r/2*t*t+n;return-r/2*(--t*(t-2)-1)+n}
268,easeInCubic:function(e,t,n,r,i){return r*(t/=i)*t*t+n},easeOutCubic:function(e,t,n,r,i){return r*((t=t/i-1)*t*t+1)+n},easeInOutCubic:function(e,t,n,r,i){if((t/=i/2)<1)return r/2*t*t*t+n;return r/2*((t-=2)*t*t+2)+n},easeInQuart:function(e,t,n,r,i){return r*(t/=i)*t*t*t+n},easeOutQuart:function(e,t,n,r,i){return-r*((t=t/i-1)*t*t*t-1)+n},easeInOutQuart:function(e,t,n,r,i){if((t/=i/2)<1)return r/2*t*t*t*t+n;return-r/2*((t-=2)*t*t*t-2)+n},easeInQuint:function(e,t,n,r,i){return r*(t/=i)*t*t*t*t+n},easeOutQuint:function(e,t,n,r,i){return r*((t=t/i-1)*t*t*t*t+1)+n},easeInOutQuint:function(e,t,n,r,i){if((t/=i/2)<1)return r/2*t*t*t*t*t+n;return r/2*((t-=2)*t*t*t*t+2)+n},easeInSine:function(e,t,n,r,i){return-r*Math.cos(t/i*(Math.PI/2))+r+n},easeOutSine:function(e,t,n,r,i){return r*Math.sin(t/i*(Math.PI/2))+n},easeInOutSine:function(e,t,n,r,i){return-r/2*(Math.cos(Math.PI*t/i)-1)+n},easeInExpo:function(e,t,n,r,i){return t==0?n:r*Math.pow(2,10*(t/i-1))+n},easeOutExpo:function(e,t,n,r,i){return t==i?n+r:r*(-Math.pow(2,-10*t/i)+1)+n},easeInOutExpo:function(e,t,n,r,i){if(t==0)return n;if(t==i)return n+r;if((t/=i/2)<1)return r/2*Math.pow(2,10*(t-1))+n;return r/2*(-Math.pow(2,-10*--t)+2)+n},easeInCirc:function(e,t,n,r,i){return-r*(Math.sqrt(1-(t/=i)*t)-1)+n},easeOutCirc:function(e,t,n,r,i){return r*Math.sqrt(1-(t=t/i-1)*t)+n},easeInOutCirc:function(e,t,n,r,i){if((t/=i/2)<1)return-r/2*(Math.sqrt(1-t*t)-1)+n;return r/2*(Math.sqrt(1-(t-=2)*t)+1)+n},easeInElastic:function(e,t,n,r,i){var s=1.70158;var o=0;var u=r;if(t==0)return n;if((t/=i)==1)return n+r;if(!o)o=i*.3;if(u<Math.abs(r)){u=r;var s=o/4}else var s=o/(2*Math.PI)*Math.asin(r/u);return-(u*Math.pow(2,10*(t-=1))*Math.sin((t*i-s)*2*Math.PI/o))+n},easeOutElastic:function(e,t,n,r,i){var s=1.70158;var o=0;var u=r;if(t==0)return n;if((t/=i)==1)return n+r;if(!o)o=i*.3;if(u<Math.abs(r)){u=r;var s=o/4}else var s=o/(2*Math.PI)*Math.asin(r/u);return u*Math.pow(2,-10*t)*Math.sin((t*i-s)*2*Math.PI/o)+r+n},easeInOutElastic:function(e,t,n,r,i){var s=1.70158;var o=0;var u=r;if(t==0)return n;if((t/=i/2)==2)return n+r;if(!o)o=i*.3*1.5;if(u<Math.abs(r)){u=r;var s=o/4}else var s=o/(2*Math.PI)*Math.asin(r/u);if(t<1)return-.5*u*Math.pow(2,10*(t-=1))*Math.sin((t*i-s)*2*Math.PI/o)+n;return u*Math.pow(2,-10*(t-=1))*Math.sin((t*i-s)*2*Math.PI/o)*.5+r+n},easeInBack:function(e,t,n,r,i,s){if(s==undefined)s=1.70158;return r*(t/=i)*t*((s+1)*t-s)+n},easeOutBack:function(e,t,n,r,i,s){if(s==undefined)s=1.70158;return r*((t=t/i-1)*t*((s+1)*t+s)+1)+n},easeInOutBack:function(e,t,n,r,i,s){if(s==undefined)s=1.70158;if((t/=i/2)<1)return r/2*t*t*(((s*=1.525)+1)*t-s)+n;return r/2*((t-=2)*t*(((s*=1.525)+1)*t+s)+2)+n},easeInBounce:function(e,t,n,r,i){return r-jQuery.easing.easeOutBounce(e,i-t,0,r,i)+n},easeOutBounce:function(e,t,n,r,i){if((t/=i)<1/2.75){return r*7.5625*t*t+n}else if(t<2/2.75){return r*(7.5625*(t-=1.5/2.75)*t+.75)+n}else if(t<2.5/2.75){return r*(7.5625*(t-=2.25/2.75)*t+.9375)+n}else{return r*(7.5625*(t-=2.625/2.75)*t+.984375)+n}},easeInOutBounce:function(e,t,n,r,i){if(t<i/2)return jQuery.easing.easeInBounce(e,t*2,0,r,i)*.5+n;return jQuery.easing.easeOutBounce(e,t*2-i,0,r,i)*.5+r*.5+n}});(function(e){e.fn.quicksand=function(t,n){var r={duration:750,easing:"swing",attribute:"data-id",adjustHeight:"auto",adjustWidth:"auto",useScaling:false,enhancement:function(e){},selector:"> *",atomic:false,dx:0,dy:0,maxWidth:0,retainExisting:true};e.extend(r,n);if(e.browser.msie||typeof e.fn.scale=="undefined"){r.useScaling=false}var i;if(typeof arguments[1]=="function"){i=arguments[1]}else if(typeof (arguments[2]=="function")){i=arguments[2]}return this.each(function(n){var s;var o=[];var u;if(typeof r.attribute=="function"){u=e(t)}else{u=e(t).filter("["+r.attribute+"]").clone()}var a=e(this);var f=e(this).css("height");var l=e(this).css("width");var c,h;var p=false;var d=false;var v=e(a).offset();var m=[];var g=e(this).find(r.selector);var y=e(g).innerWidth();if(e.browser.msie&&parseInt(e.browser.version,10)<7){a.html("").append(u);return}var b=0;var w=function(){e(this).css("margin","").css("position","").css("top","").css("left","").css("opacity","");if(!b){b=1;if(!r.atomic){var t=a.find(r.selector);if(!r.retainExisting){a.prepend(N.find(r.selector));t.remove()}else{var n=e([]);N.find(r.selector).each(function(i){var s=e([]);if(typeof r.attribute=="function"){var o=r.attribute(e(this));t.each(function(){if(r.attribute(this)==o){s=e(this);return false}})}else{s=t.filter("["+r.attribute+'="'+e(this).attr(r.attribute)+'"]')}if(s.length>0){n=n.add(s);if(i===0){a.prepend(s)}else{s.insertAfter(a.find(r.selector).get(i-1))}}});t.not(n).remove()}if(p){a.css("height",c)}if(d){a.css("width",l)}}r.enhancement(a);if(typeof i=="function"){i.call(this)}}if(false===r.adjustHeight){a.css("height","auto")}if(false===r.adjustWidth){a.css("width","auto")}};var E=a.offsetParent();var S=E.offset();if(E.css("position")=="relative"){if(E.get(0).nodeName.toLowerCase()!="body"){S.top+=parseFloat(E.css("border-top-width"))||0;S.left+=parseFloat(E.css("border-left-width"))||0}}else{S.top-=parseFloat(E.css("border-top-width"))||0;S.left-=parseFloat(E.css("border-left-width"))||0;S.top-=parseFloat(E.css("margin-top"))||0;S.left-=parseFloat(E.css("margin-left"))||0}if(isNaN(S.left)){S.left=0}if(isNaN(S.top)){S.top=0}S.left-=r.dx;S.top-=r.dy;a.css("height",e(this).height());a.css("width",e(this).width());g.each(function(t){m[t]=e(this).offset()});e(this).stop();var x=0;var T=0;g.each(function(t){e(this).stop();var n=e(this).get(0);if(n.style.position=="absolute"){x=-r.dx;T=-r.dy}else{x=r.dx;T=r.dy}n.style.position="absolute";n.style.margin="0";if(!r.adjustWidth){n.style.width=y+"px"}n.style.top=m[t].top-parseFloat(n.style.marginTop)-S.top+T+"px";n.style.left=m[t].left-parseFloat(n.style.marginLeft)-S.left+x+"px";if(r.maxWidth>0&&m[t].left>r.maxWidth){n.style.display="none"}});var N=e(a).clone();var C=N.get(0);C.innerHTML="";C.setAttribute("id","");C.style.height="auto";C.style.width=a.width()+"px";N.append(u);N.insertBefore(a);N.css("opacity",0);C.style.zIndex=-1;C.style.margin="0";C.style.position="absolute";C.style.top=v.top-S.top+"px";C.style.left=v.left-S.left+"px";if(r.adjustHeight==="dynamic"){a.animate({height:N.height()},r.duration,r.easing)}else if(r.adjustHeight==="auto"){c=N.height();if(parseFloat(f)<parseFloat(c)){a.css("height",c)}else{p=true}}if(r.adjustWidth==="dynamic"){a.animate({width:N.width()},r.duration,r.easing)}else if(r.adjustWidth==="auto"){h=N.width();if(parseFloat(l)<parseFloat(h)){a.css("width",h)}else{d=true}}g.each(function(t){var n=[];if(typeof r.attribute=="function"){s=r.attribute(e(this));u.each(function(){if(r.attribute(this)==s){n=e(this);return false}})}else{n=u.filter("["+r.attribute+'="'+e(this).attr(r.attribute)+'"]')}if(n.length){if(!r.useScaling){o.push({element:e(this),dest:n,style:{to
268p:e(this).offset().top,left:e(this).offset().left,opacity:""},animation:{top:n.offset().top-S.top,left:n.offset().left-S.left,opacity:1}})}else{o.push({element:e(this),dest:n,style:{top:e(this).offset().top,left:e(this).offset().left,opacity:""},animation:{top:n.offset().top-S.top,left:n.offset().left-S.left,opacity:1,scale:"1.0"}})}}else{if(!r.useScaling){o.push({element:e(this),style:{top:e(this).offset().top,left:e(this).offset().left,opacity:""},animation:{opacity:"0.0"}})}else{o.push({element:e(this),animation:{opacity:"0.0",style:{top:e(this).offset().top,left:e(this).offset().left,opacity:""},scale:"0.0"}})}}});u.each(function(t){var n=[];var i=[];if(typeof r.attribute=="function"){s=r.attribute(e(this));g.each(function(){if(r.attribute(this)==s){n=e(this);return false}});u.each(function(){if(r.attribute(this)==s){i=e(this);return false}})}else{n=g.filter("["+r.attribute+'="'+e(this).attr(r.attribute)+'"]');i=u.filter("["+r.attribute+'="'+e(this).attr(r.attribute)+'"]')}var f;if(n.length===0&&i.length>0){if(!r.useScaling){f={opacity:"1.0"}}else{f={opacity:"1.0",scale:"1.0"}}var l=i.clone();var c=l.get(0);c.style.position="absolute";c.style.margin="0";if(!r.adjustWidth){c.style.width=y+"px"}c.style.top=i.offset().top-S.top+"px";c.style.left=i.offset().left-S.left+"px";l.css("opacity",0);if(r.useScaling){l.css("transform","scale(0.0)")}l.appendTo(a);if(r.maxWidth===0||i.offset().left<r.maxWidth){o.push({element:e(l),dest:i,animation:f})}}});N.remove();if(!r.atomic){r.enhancement(a);for(n=0;n<o.length;n++){o[n].element.animate(o[n].animation,r.duration,r.easing,w)}}else{$toDelete=a.find(r.selector);a.prepend(N.find(r.selector));for(n=0;n<o.length;n++){if(o[n].dest&&o[n].style){var k=o[n].dest;var L=k.offset();k.css({position:"relative",top:o[n].style.top-L.top,left:o[n].style.left-L.left});k.animate({top:"0",left:"0"},r.duration,r.easing,w)}else{o[n].element.animate(o[n].animation,r.duration,r.easing,w)}}$toDelete.remove()}})}})(jQuery);
269
270
271/*
272jQuery Waypoints - v2.0.2
273Copyright (c) 2011-2013 Caleb Troughton
274Dual licensed under the MIT license and GPL license.
275https://github.com/imakewebthings/jquery-waypoints/blob/master/licenses.txt
276*/
277(function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++){if(e in this&&this[e]===t)return e}return-1},e=[].slice;(function(t,e){if(typeof define==="function"&&define.amd){return define("waypoints",["jquery"],function(n){return e(n,t)})}else{return e(t.jQuery,t)}})(this,function(n,r){var i,o,l,s,f,u,a,c,h,d,p,y,v,w,g,m;i=n(r);c=t.call(r,"ontouchstart")>=0;s={horizontal:{},vertical:{}};f=1;a={};u="waypoints-context-id";p="resize.waypoints";y="scroll.waypoints";v=1;w="waypoints-waypoint-ids";g="waypoint";m="waypoints";o=function(){function t(t){var e=this;this.$element=t;this.element=t[0];this.didResize=false;this.didScroll=false;this.id="context"+f++;this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()};this.waypoints={horizontal:{},vertical:{}};t.data(u,this.id);a[this.id]=this;t.bind(y,function(){var t;if(!(e.didScroll||c)){e.didScroll=true;t=function(){e.doScroll();return e.didScroll=false};return r.setTimeout(t,n[m].settings.scrollThrottle)}});t.bind(p,function(){var t;if(!e.didResize){e.didResize=true;t=function(){n[m]("refresh");return e.didResize=false};return r.setTimeout(t,n[m].settings.resizeThrottle)}})}t.prototype.doScroll=function(){var t,e=this;t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};if(c&&(!t.vertical.oldScroll||!t.vertical.newScroll)){n[m]("refresh")}n.each(t,function(t,r){var i,o,l;l=[];o=r.newScroll>r.oldScroll;i=o?r.forward:r.backward;n.each(e.waypoints[t],function(t,e){var n,i;if(r.oldScroll<(n=e.offset)&&n<=r.newScroll){return l.push(e)}else if(r.newScroll<(i=e.offset)&&i<=r.oldScroll){return l.push(e)}});l.sort(function(t,e){return t.offset-e.offset});if(!o){l.reverse()}return n.each(l,function(t,e){if(e.options.continuous||t===l.length-1){return e.trigger([i])}})});return this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}};t.prototype.refresh=function(){var t,e,r,i=this;r=n.isWindow(this.element);e=this.$element.offset();this.doScroll();t={horizontal:{contextOffset:r?0:e.left,contextScroll:r?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:r?0:e.top,contextScroll:r?0:this.oldScroll.y,contextDimension:r?n[m]("viewportHe
277ight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};return n.each(t,function(t,e){return n.each(i.waypoints[t],function(t,r){var i,o,l,s,f;i=r.options.offset;l=r.offset;o=n.isWindow(r.element)?0:r.$element.offset()[e.offsetProp];if(n.isFunction(i)){i=i.apply(r.element)}else if(typeof i==="string"){i=parseFloat(i);if(r.options.offset.indexOf("%")>-1){i=Math.ceil(e.contextDimension*i/100)}}r.offset=o-e.contextOffset+e.contextScroll-i;if(r.options.onlyOnScroll&&l!=null||!r.enabled){return}if(l!==null&&l<(s=e.oldScroll)&&s<=r.offset){return r.trigger([e.backward])}else if(l!==null&&l>(f=e.oldScroll)&&f>=r.offset){return r.trigger([e.forward])}else if(l===null&&e.oldScroll>=r.offset){return r.trigger([e.forward])}})})};t.prototype.checkEmpty=function(){if(n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical)){this.$element.unbind([p,y].join(" "));return delete a[this.id]}};return t}();l=function(){function t(t,e,r){var i,o;r=n.extend({},n.fn[g].defaults,r);if(r.offset==="bottom-in-view"){r.offset=function(){var t;t=n[m]("viewportHeight");if(!n.isWindow(e.element)){t=e.$element.height()}return t-n(this).outerHeight()}}this.$element=t;this.element=t[0];this.axis=r.horizontal?"horizontal":"vertical";this.callback=r.handler;this.context=e;this.enabled=r.enabled;this.id="waypoints"+v++;this.offset=null;this.options=r;e.waypoints[this.axis][this.id]=this;s[this.axis][this.id]=this;i=(o=t.data(w))!=null?o:[];i.push(this.id);t.data(w,i)}t.prototype.trigger=function(t){if(!this.enabled){return}if(this.callback!=null){this.callback.apply(this.element,t)}if(this.options.triggerOnce){return this.destroy()}};t.prototype.disable=function(){return this.enabled=false};t.prototype.enable=function(){this.context.refresh();return this.enabled=true};t.prototype.destroy=function(){delete s[this.axis][this.id];delete this.context.waypoints[this.axis][this.id];return this.context.checkEmpty()};t.getWaypointsByElement=function(t){var e,r;r=n(t).data(w);if(!r){return[]}e=n.extend({},s.horizontal,s.vertical);return n.map(r,function(t){return e[t]})};return t}();d={init:function(t,e){var r;if(e==null){e={}}if((r=e.handler)==null){e.handler=t}this.each(function(){var t,r,i,s;t=n(this);i=(s=e.context)!=null?s:n.fn[g].defaults.context;if(!n.isWindow(i)){i=t.closest(i)}i=n(i);r=a[i.data(u)];if(!r){r=new o(i)}return new l(t,r,e)});n[m]("refresh");return this},disable:function(){return d._invoke(this,"disable")},enable:function(){return d._invoke(this,"enable")},destroy:function(){return d._invoke(this,"destroy")},prev:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e>0){return t.push(n[e-1])}})},next:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e<n.length-1){return t.push(n[e+1])}})},_traverse:function(t,e,i){var o,l;if(t==null){t="vertical"}if(e==null){e=r}l=h.aggregate(e);o=[];this.each(function(){var e;e=n.inArray(this,l[t]);return i(o,e,l[t])});return this.pushStack(o)},_invoke:function(t,e){t.each(function(){var t;t=l.getWaypointsByElement(this);return n.each(t,function(t,n){n[e]();return true})});return this}};n.fn[g]=function(){var t,r;r=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(d[r]){return d[r].apply(this,t)}else if(n.isFunction(r)){return d.init.apply(this,arguments)}else if(n.isPlainObject(r)){return d.init.apply(this,[null,r])}else if(!r){return n.error("jQuery Waypoints needs a callback function or handler option.")}else{return n.error("The "+r+" method does not exist in jQuery Waypoints.")}};n.fn[g].defaults={context:r,continuous:true,enabled:true,horizontal:false,offset:0,triggerOnce:false};h={refresh:function(){return n.each(a,function(t,e){return e.refresh()})},viewportHeight:function(){var t;return(t=r.innerHeight)!=null?t:i.height()},aggregate:function(t){var e,r,i;e=s;if(t){e=(i=a[n(t).data(u)])!=null?i.waypoints:void 0}if(!e){return[]}r={horizontal:[],vertical:[]};n.each(r,function(t,i){n.each(e[t],function(t,e){return i.push(e)});i.sort(function(t,e){return t.offset-e.offset});r[t]=n.map(i,function(t){return t.element});return r[t]=n.unique(r[t])});return r},above:function(t){if(t==null){t=r}return h._filter(t,"vertical",function(t,e){return e.offset<=t.oldScroll.y})},below:function(t){if(t==null){t=r}return h._filter(t,"vertical",function(t,e){return e.offset>t.oldScroll.y})},left:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendFn:function(t,e){return d[t]=e},_invoke:function(t){var e;e=n.extend({},s.vertical,s.horizontal);
277return n.each(e,function(e,n){n[t]();return true})},_filter:function(t,e,r){var i,o;i=a[n(t).data(u)];if(!i){return[]}o=[];n.each(i.waypoints[e],function(t,e){if(r(i,e)){return o.push(e)}});o.sort(function(t,e){return t.offset-e.offset});return n.map(o,function(t){return t.element})}};n[m]=function(){var t,n;n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(h[n]){return h[n].apply(null,t)}else{return h.aggregate.call(null,n)}};n[m].settings={resizeThrottle:100,scrollThrottle:30};return i.load(function(){return n[m]("refresh")})})}).call(this);
278
279/* FREEWALL */
280// created by Minh Nguyen;
281// version 1.04;
282
283(function($) {
284
285    // for zeptojs;
286    $.isNumeric == null && ($.isNumeric = function(src) {
287        return src != null && src.constructor === Number;
288    });
289
290    $.isFunction == null && ($.isFunction = function(src) {
291        return src != null && src instanceof Function;
292    });
293
294    var $W = $(window);
295    var $D = $(document);
296
297    var layoutManager = {
298        // default setting;
299        defaultConfig: {
300            animate: false,
301            cellW: 100, // function(container) {return 100;}
302            cellH: 100, // function(container) {return 100;}
303            delay: 0, // slowdown active block;
304            engine: 'giot', // 'giot' is a person name;
305            fixSize: null, // resize + adjust = fill gap;
306            //fixSize: 0, allow adjust size = no fill gap;
307            //fixSize: 1, no resize + no adjust = no fill gap;
308            gutterX: 15, // width spacing between blocks;
309            gutterY: 15, // height spacing between blocks;
310            selector: '> div',
311            draggable: false,
312            rightToLeft: false,
313            bottomToTop: false,
314            onStartSet: function() {},
315            onGapFound: function() {},
316            onComplete: function() {},
317            onResize: function() {},
318            onSetBlock: function() {}
319        },
320        plugin: {},
321        totalGrid: 1,
322        transition: false,
323        loadBlock: function(item, setting) {
324            var runtime = setting.runtime;
325            var $item = $(item);
326            var block = null;
327            var gutterX = runtime.gutterX;
328            var gutterY = runtime.gutterY;
329            var fixSize = parseInt($item.attr('data-fixSize'));
330            var blockId = runtime.lastId++ + '-' + this.totalGrid;
331
332            //ignore dragging block;
333            if ($item.hasClass('fw-float')) return;
334            $item.attr({id: blockId, 'data-delay': item.index});
335
336            //remove animation for speed render;
337            if (setting.animate && this.transition) {
338                this.setTransition(item, "");
339            }
340
341            // store original size;
342            $item.attr('data-height') == null && $item.attr('data-height', $item.height());
343            $item.attr('data-width') == null && $item.attr('data-width', $item.width());
344            var height = 1 * $item.attr('data-height');
345            var width = 1 * $item.attr('data-width');
346            var fixPos = $item.attr('data-fixPos');
347
348            var cellH = runtime.cellH;
349            var cellW = runtime.cellW;
350
351            var col = !width ? 0 : Math.round((width + gutterX) / cellW);
352            var row = !height ? 0 : Math.round((height + gutterY) / cellH);
353
354            isNaN(fixSize) && (fixSize = null);
355            // estimate size;
356            if (!fixSize && setting.cellH == 'auto') {
357                $item.width(cellW * col - gutterX);
358                item.style.height = "";
359                height = $item.height();
360                row = !height ? 0 : Math.round((height + gutterY) / cellH);
361            }
362
363            if (!fixSize && setting.cellW == 'auto') {
364                $item.height(cellH * row - gutterY);
365                item.style.width = "";
366                width = $item.width();
367                col = !width ? 0 : Math.round((width + gutterX) / cellW);
368            }
369
370            // for none resize block;
371            if ((fixSize != null) && (col > runtime.limitCol || row > runtime.limitRow)) {
372                block = null;
373            } else {
374                // get smallest width and smallest height of block;
375                // using for image runtime;
376                row && row < runtime.minHoB && (runtime.minHoB = row);
377                col && col < runtime.minWoB && (runtime.minWoB = col);
378
379                // get biggest width and biggest height of block;
380                row > runtime.maxHoB && (runtime.maxHoB = row);
381                col > runtime.maxWoB && (runtime.maxWoB = col);
382
383                width == 0 && (col = 0);
384                height == 0 && (row = 0);
385
386                block = {
387                    id: blockId,
388                    width: col,
389                    height: row,
390                    fixSize: fixSize
391                };
392
393                // for fix position;
394                if (fixPos) {
395                    fixPos = fixPos.split("-");
396                    block.y = 1 * fixPos[0];
397                    block.x = 1 * fixPos[1];
398                    block.width = fixSize != null ? col : Math.min(col, runtime.limitCol - block.x);
399                    block.height = fixSize != null ? row : Math.min(row, runtime.limitRow - block.y);
400                    runtime.holes.push({
401                        top: block.y,
402                        left: block.x,
403                        width: block.width,
404                        height: block.height
405                    });
406                    this.setBlock(block, setting);
407                }
408            }
409
410            // for css animation;
411            if ($item.attr("data-state") == null) {
412                $item.attr("data-state", "init");
413            } else {
414                $item.attr("data-state", "move");
415            }
416            return fixPos ? null : block;
417        },
418        setBlock: function(block, setting) {
419            var runtime = setting.runtime;
420            var gutterX = runtime.gutterX;
421            var gutterY = runtime.gutterY;
422            var height = block.height;
423            var width = block.width;
424            var cellH = runtime.cellH;
425            var cellW = runtime.cellW;
426            var x = block.x;
427            var y = block.y;
428
429            if (setting.rightToLeft) {
430                x = runtime.limitCol - x - width;
431            }
432            if (setting.bottomToTop) {
433                y = runtime.limitRow - y - height;
434            }
435
436            var realBlock = {
437                fixSize: block.fixSize,
438                top: y * cellH,
439                left: x  * cellW,
440                width: cellW * width - gutterX,
441                height: cellH * height - gutterY
442            };
443
444            realBlock.top = 1 * realBlock.top.toFixed(2);
445            realBlock.left = 1 * realBlock.left.toFixed(2);
446            realBlock.width = 1 * realBlock.width.toFixed(2);
447            realBlock.height = 1 * realBlock.height.toFixed(2);
448
449            //runtime.length += 1;
450            block.id && (runtime.blocks[block.id] = realBlock);
451
452            // for append feature;
453            return realBlock;
454        },
455        showBlock: function(item, setting) {
456            var runtime = setting.runtime;
457            var method = setting.animate && !this.transition ? 'animate' : 'css';
458            var block = runtime.blocks[item.id];
459            var $item = $(item);
460            var self = this;
461            var start = $item.attr("data-state") != "move";
462            var trans = start ? "width 0.5s, height 0.5s" : "top 0.5s, left 0.5s, width 0.5s, height 0.5s, opacity 0.5s";
463
464            item.delay && clearTimeout(item.delay);
465            //ignore dragging block;
466            if ($item.hasClass('fw-float')) return;
467
468            // kill the old transition;
469            self.setTransition(item, "");
470            item.style.position = "absolute";
471            setting.onStartSet.call(item, block, setting);
472
473            function action() {
474                // start to arrange;
475                start && $item.attr("data-state", "start");
476                // add animation by using css3 transition;
477                if (setting.animate && self.transition) {
478                    self.setTransition(item, trans);
479                }
480
481                // for hidden block;
482                if (!block) {
483                    //var position = $item.position(); <= make speed so slow;
484                    var height = parseInt(item.style.height) || 0;
485                    var width = parseInt(item.style.width) || 0;
486                    var left = parseInt(item.style.left) || 0;
487                    var top = parseInt(item.style.top) || 0;
488                    $item[method]({
489                        left: left + width / 2,
490                        top: top + height / 2,
491                        width: 0,
492                        height: 0,
493                        opacity: 0
494                    });
495                } else {
496                    if (block.fixSize) {
497                        block.height = 1 * $item.attr("data-height");
498                        block.width = 1 * $item.attr("data-width");
499                    }
500
501                    $item["css"]({
502                        opacity: 1,
503                        width: block.width,
504                        height: block.height
505                    });
506
507                    // for animating by javascript;
508                    $item[method]({
509                        top: block.top,
510                        left: block.left
511                    });
512
513                    if ($item.attr('data-nested') != null) {
514                        self.nestedGrid(item, setting);
515                    }
516                }
517
518                runtime.length -= 1;
519
520                setting.onSetBlock.call(item, block, setting);
521
522                runtime.length == 0 && setting.onComplete.call(item, block, setting);
523            }
524
525            setting.delay > 0 ? (item.delay = setTimeout(action, setting.delay * $item.attr("data-delay"))) : action();
526        },
527        nestedGrid: function(item, setting) {
528            var innerWall, $item = $(item), runtime = setting.runtime;
529            var gutterX = $item.attr("data-gutterX") || setting.gutterX;
530            var gutterY = $item.attr("data-gutterY") || setting.gutterY;
531            var method = $item.attr("data-method") || "fitZone";
532            var nested = $item.attr('data-nested') || "> div";
533            var cellH = $item.attr("data-cellH") || setting.cellH;
534            var cellW = $item.attr("data-cellW") || setting.cellW;
535            var block = runtime.blocks[item.id];
536
537            if (block) {
538                innerWall = new freewall($item);
539                innerWall.reset({
540                    cellH: cellH,
541                    cellW: cellW,
542                    gutterX: 1 * gutterX,
543                    gutterY: 1 * gutterY,
544                    selector: nested
545                });
546
547                switch (method) {
548                    case "fitHeight":
549                        innerWall[method](block.height);
550                        break;
551                    case "fitWidth":
552                        innerWall[method](block.width);
553                        break;
554                    case "fitZone":
555                        innerWall[method](block.width, block.height);
556                        break;
557                }
558            }
559        },
560        adjustBlock: function(block, setting) {
561            var runtime = setting.runtime;
562            var gutterX = runtime.gutterX;
563            var gutterY = runtime.gutterY;
564            var $item = $("#" + block.id);
565            var cellH = runtime.cellH;
566            var cellW = runtime.cellW;
567
568            if (setting.cellH = 'auto') {
569                $item.width(block.width * cellW - gutterX);
570                $item.get(0).style = "";
571                block.height = Math.round(($item.height() + gutterY) / cellH);
572            }
573        },
574        adjustUnit: function(width, height, setting) {
575            var gutterX = setting.gutterX;
576            var gutterY = setting.gutterY;
577            var runtime = setting.runtime;
578            var cellW = setting.cellW;
579            var cellH = setting.cellH;
580
581            $.isFunction(cellW) && (cellW = cellW(width));
582            cellW = 1 * cellW;
583            !$.isNumeric(cellW) && (cellW = 1);
584
585            $.isFunction(cellH) && (cellH = cellH(height));
586            cellH = 1 * cellH;
587            !$.isNumeric(cellH) && (cellH = 1);
588
589            if ($.isNumeric(width)) {
590                // adjust cell width via container;
591                cellW < 1 && (cellW = cellW * width);
592
593                // estimate total columns;
594                var limitCol = Math.max(1, Math.floor(width / cellW));
595
596                // adjust unit size for fit width;
597                if (!$.isNumeric(gutterX)) {
598                    gutterX = (width - limitCol * cellW) / Math.max(1, (limitCol - 1));
599                    gutterX = Math.max(0, gutterX);
600                }
601
602                limitCol = Math.floor((width + gutterX) / cellW);
603                runtime.cellW = (width + gutterX) / limitCol;
604                runtime.cellS = runtime.cellW / cellW;
605                runtime.gutterX = gutterX;
606                runtime.limitCol = limitCol;
607            }
608
609            if ($.isNumeric(height)) {
610                // adjust cell height via container;
611                cellH < 1 && (cellH = cellH * height);
612
613                // estimate total rows;
614                var limitRow = Math.max(1, Math.floor(height / cellH));
615
616                // adjust size unit for fit height;
617                if (!$.isNumeric(gutterY)) {
618                    gutterY = (height - limitRow * cellH) / Math.max(1, (limitRow - 1));
619                    gutterY = Math.max(0, gutterY);
620                }
621
622                limitRow = Math.floor((height + gutterY) / cellH);
623                runtime.cellH = (height + gutterY) / limitRow;
624                runtime.cellS = runtime.cellH / cellH;
625                runtime.gutterY = gutterY;
626                runtime.limitRow = limitRow;
627            }
628
629            if (!$.isNumeric(width)) {
630                // adjust cell width via cell height;
631                cellW < 1 && (cellW = runtime.cellH);
632                runtime.cellW = cellW != 1 ? cellW * runtime.cellS : 1;
633                runtime.gutterX = gutterX;
634                runtime.limitCol = 666666;
635            }
636
637            if (!$.isNumeric(height)) {
638                // adjust cell height via cell width;
639                cellH < 1 && (cellH = runtime.cellW);
640                runtime.cellH = cellH != 1 ? cellH * runtime.cellS : 1;
641                runtime.gutterY = gutterY;
642                runtime.limitRow = 666666;
643            }
644        },
645        resetGrid: function(runtime) {
646            runtime.blocks = {};
647            runtime.length = 0;
648            runtime.cellH = 0;
649            runtime.cellW = 0;
650            runtime.lastId = 1;
651            runtime.matrix = {};
652            runtime.totalCol = 0;
653            runtime.totalRow = 0;
654        },
655        setDragable: function(item, option) {
656            var touch = false;
657            var def = {
658                sX: 0, //start clientX;
659                sY: 0,
660                top: 0,
661                left: 0,
662                proxy: null,
663                end: function() {},
664                move: function() {},
665                start: function() {}
666            };
667
668            $(item).each(function() {
669                var set = $.extend({}, def, option);
670                var ele = set.proxy || this;
671                var $ele = $(ele);
672
673                var posStyle = $ele.css("position");
674                posStyle != "absolute" && $ele.css("position", "relative");
675
676
677                function mouseDown(evt) {
678                    evt.stopPropagation();
679                    evt = evt.originalEvent;
680
681                    if (evt.touches) {
682                        touch = true;
683                        evt = evt.changedTouches[0];
684                    }
685
686                    if (evt.button != 2 && evt.which != 3) {
687                        set.start.call(ele, evt);
688
689                        set.sX = evt.clientX;
690                        set.sY = evt.clientY;
691                        set.top = parseInt($ele.css("top")) || 0;
692                        set.left = parseInt($ele.css("left")) || 0;
693
694                        $D.bind("mouseup touchend", mouseUp);
695                        $D.bind("mousemove touchmove", mouseMove);
696                    }
697
698                    return false;
699                };
700
701
702                function mouseMove(evt) {
703                    evt = evt.originalEvent;
704                    touch && (evt = evt.changedTouches[0]);
705
706                    $ele.css({
707                        top: set.top - (set.sY - evt.clientY),
708                        left: set.left - (set.sX - evt.clientX)
709                    });
710
711                    set.move.call(ele, evt);
712                };
713
714                function mouseUp(evt) {
715                    evt = evt.originalEvent;
716                    touch && (evt = evt.changedTouches[0]);
717
718                    set.end.call(ele, evt);
719
720                    $D.unbind("mouseup touchend", mouseUp);
721                     $D.unbind("mousemove touchmove", mouseMove);
722                };
723
724                // ignore drag drop on text field;
725                $(this).find("iframe, form, input, textarea, .ignore-drag")
726                .each(function() {
727                    $(this).on("touchstart mousedown", function(evt) {
728                        evt.stopPropagation();
729                    });
730                });
731
732                $D.unbind("mouseup touchend", mouseUp);
733                $D.unbind("mousemove touchmove", mouseMove);
734                $ele.unbind("mousedown touchstart").bind("mousedown touchstart", mouseDown);
735
736            });
737        },
738        setTransition: function(item, trans) {
739            var style = item.style;
740            var $item = $(item);
741
742            // remove animation;
743            if (!this.transition && $item.stop) {
744                $item.stop();
745            } else if (style.webkitTransition != null) {
746                style.webkitTransition = trans;
747            } else if (style.MozTransition != null) {
748                style.MozTransition = trans;
749            } else if (style.msTransition != null) {
750                style.msTransition = trans;
751            } else if (style.OTransition != null) {
752                style.OTransition = trans;
753            } else {
754                style.transition = trans;
755            }
756        },
757        getFreeArea: function(t, l, runtime) {
758            var maxY = Math.min(t + runtime.maxHoB, runtime.limitRow);
759            var maxX = Math.min(l + runtime.maxWoB, runtime.limitCol);
760            var minX = maxX;
761            var minY = maxY;
762            var matrix = runtime.matrix;
763
764            // find limit zone by horizon;
765            for (var y = t; y < minY; ++y) {
766                for (var x = l; x < maxX; ++x) {
767                    if (matrix[y + '-' + x] == true) {
768                        (l < x && x < minX) && (minX = x);
769                    }
770                }
771            }
772
773            // find limit zone by vertical;
774            for (var y = t; y < maxY; ++y) {
775                for (var x = l; x < minX; ++x) {
776                    if (matrix[y + '-' + x] == true) {
777                        (t < y && y < minY) && (minY = y);
778                    }
779                }
780            }
781
782            return {
783                top: t,
784                left: l,
785                width: minX - l,
786                height: minY - t
787            };
788
789        },
790        setWallSize: function(runtime, container) {
791            var totalRow = Math.max(1, runtime.totalRow);
792            var totalCol = Math.max(1, runtime.totalCol);
793            var gutterY = runtime.gutterY;
794            var gutterX = runtime.gutterX;
795            var cellH = runtime.cellH;
796            var cellW = runtime.cellW;
797            var totalWidth = cellW * totalCol - gutterX;
798            var totalHeight = cellH * totalRow - gutterY;
799
800            container.attr({
801                'data-total-col': totalCol,
802                'data-total-row': totalRow,
803                'data-wall-width': Math.ceil(totalWidth),
804                'data-wall-height': Math.ceil(totalHeight)
805            });
806
807            if (runtime.limitCol < runtime.limitRow) {
808                // do not set height with nesting grid;
809                !container.attr("data-height") && container.height(Math.ceil(totalHeight));
810            }
811        }
812    };
813
814
815
816    var engine = {
817        // Giot just a person name;
818        giot: function(items, setting) {
819            var runtime = setting.runtime,
820                row = runtime.limitRow,
821                col = runtime.limitCol,
822                x = 0,
823                y = 0,
824                maxX = runtime.totalCol,
825                maxY = runtime.totalRow,
826                wall = {},
827                holes = runtime.holes,
828                block = null,
829                matrix = runtime.matrix,
830                bigLoop = Math.max(col, row),
831                freeArea = null,
832                misBlock = null,
833                fitWidth = col < row ? 1 : 0,
834                lastBlock = null,
835                smallLoop = Math.min(col, row);
836
837            // fill area with top, left, width, height;
838            function fillMatrix(t, l, w, h) {
839                for (var y = t; y < t + h;) {
840                    for (var x = l; x < l + w;) {
841                        matrix[y + '-' + x] = true;
842                        ++x > maxX && (maxX = x);
843                    }
844                    ++y > maxY && (maxY = y);
845                }
846            }
847
848            // set a hole on the wall;
849            if (holes.length) {
850                for (var i = 0; i < holes.length; ++i) {
851                    fillMatrix(holes[i]['top'], holes[i]['left'], holes[i]['width'], holes[i]['height']);
852                }
853            }
854
855            for (var b = 0; b < bigLoop; ++b) {
856                if (!items.length) break;
857                fitWidth ? (y = b) : (x = b);
858                lastBlock = null;
859
860                for (var s = 0; s < smallLoop; ++s) {
861                    if (!items.length) break;
862                    fitWidth ? (x = s) : (y = s);
863                    if (runtime.matrix[y + '-' + x]) continue;
864                    freeArea = layoutManager.getFreeArea(y, x, runtime);
865                    block = null;
866                    for (var i = 0; i < items.length; ++i) {
867                        if (items[i].height > freeArea.height) continue;
868                        if (items[i].width > freeArea.width) continue;
869                        block = items.splice(i, 1)[0];
870                        break;
871                    }
872
873                    // trying resize the other block to fit gap;
874                    if (block == null && setting.fixSize == null) {
875                        // resize near block to fill gap;
876                        if (lastBlock && !fitWidth && runtime.minHoB > freeArea.height) {
877                            lastBlock.height += freeArea.height;
878                            fillMatrix(lastBlock.y, lastBlock.x, lastBlock.width, lastBlock.height);
879                            layoutManager.setBlock(lastBlock, setting);
880                            continue;
881                        } else if (lastBlock && fitWidth && runtime.minWoB > freeArea.width) {
882                            lastBlock.width += freeArea.width;
883                            fillMatrix(lastBlock.y, lastBlock.x, lastBlock.width, lastBlock.height);
884                            layoutManager.setBlock(lastBlock, setting);
885                            continue;
886                        } else {
887                            // get other block fill to gap;
888                            for (var i = 0; i < items.length; ++i) {
889                                if (items[i]['fixSize'] != null) continue;
890                                block = items.splice(i, 1)[0];
891                                if (fitWidth) {
892                                    block.width = freeArea.width;
893                                    if (setting.cellH == 'auto') {
894                                        layoutManager.adjustBlock(block, setting);
895                                    }
896                                    // for fitZone;
897                                    block.height = Math.min(block.height, freeArea.height);
898                                } else {
899                                    block.height = freeArea.height;
900                                    // for fitZone;
901                                    block.width = Math.min(block.width, freeArea.width);
902                                }
903                                break;
904                            }
905                        }
906                    }
907
908                    if (block != null) {
909                        wall[block.id] = {
910                            id: block.id,
911                            x: x,
912                            y: y,
913                            width: block.width,
914                            height: block.height,
915                            fixSize: block.fixSize
916                        };
917
918                        // keep success block for next round;
919                        lastBlock = wall[block.id];
920
921                        fillMatrix(lastBlock.y, lastBlock.x, lastBlock.width, lastBlock.height);
922                        layoutManager.setBlock(lastBlock, setting);
923                    } else {
924                        // get expect area;
925                        var misBlock = {
926                            x: x,
927                            y: y,
928                            fixSize: 0
929                        };
930                        if (fitWidth) {
931                            misBlock.width = freeArea.width;
932                            misBlock.height = 0;
933                            var lastX = x - 1;
934                            var lastY = y;
935
936                            while (matrix[lastY + '-' + lastX]) {
937                                matrix[lastY + '-' + x] = true;
938                                misBlock.height += 1;
939                                lastY += 1;
940                            }
941                        } else {
942                            misBlock.height = freeArea.height;
943                            misBlock.width = 0;
944                            var lastY = y - 1;
945                            var lastX = x;
946
947                            while (matrix[lastY + '-' + lastX]) {
948                                matrix[y + '-' + lastX] = true;
949                                misBlock.width += 1;
950                                lastX += 1;
951                            }
952                        }
953                        setting.onGapFound(layoutManager.setBlock(misBlock, setting), setting);
954                    }
955                }
956
957            }
958
959            runtime.matrix = matrix;
960            runtime.totalRow = maxY;
961            runtime.totalCol = maxX;
962        }
963    };
964
965
966
967    window.freewall = function(selector) {
968
969        var container = $(selector);
970        if (container.css('position') == 'static') {
971            container.css('position', 'relative');
972        }
973        var MAX = Number.MAX_VALUE;
974        var klass = this;
975        // increase the instance index;
976        layoutManager.totalGrid += 1;
977
978        var setting = $.extend({}, layoutManager.defaultConfig);
979        var runtime = {
980            blocks: {}, // store all items;
981            events: {}, // store custome events;
982            matrix: {},
983            holes: [], // forbidden zone;
984
985            cellW: 0,
986            cellH: 0, // unit adjust;
987            cellS: 1, // unit scale;
988
989            filter: '', // filter selector;
990
991            lastId: 0,
992            length: 0,
993
994            maxWoB: 0, // max width of block;
995            maxHoB: 0,
996            minWoB: MAX,
997            minHoB: MAX, // min height of block;
998
999            running: 0, // flag to check layout arranging;
1000
1001            gutterX: 15,
1002            gutterY: 15,
1003
1004            totalCol: 0,
1005            totalRow: 0,
1006
1007            limitCol: 666666, // maximum column;
1008            limitRow: 666666,
1009
1010            currentMethod: null,
1011            currentArguments: []
1012        };
1013        setting.runtime = runtime;
1014
1015        // check browser support transition;
1016        var bodyStyle = document.body.style;
1017        if (!layoutManager.transition) {
1018            (bodyStyle.webkitTransition != null ||
1019            bodyStyle.MozTransition != null ||
1020            bodyStyle.msTransition != null ||
1021            bodyStyle.OTransition != null ||
1022            bodyStyle.transition != null) &&
1023            (layoutManager.transition = true);
1024        }
1025
1026
1027        function setDragable(item) {
1028
1029            var gutterX = runtime.gutterX;
1030            var gutterY = runtime.gutterY;
1031            var cellH = runtime.cellH;
1032            var cellW = runtime.cellW;
1033
1034            layoutManager.setDragable(item, {
1035                start: function(event) {
1036                    if (setting.animate && layoutManager.transition) {
1037                        layoutManager.setTransition(this, "");
1038                    }
1039                    $(this).css('z-index', 9999).addClass('fw-float');
1040                },
1041                move: function(evt, tracker) {
1042                    var position = $(this).position();
1043                    var top = Math.round(position.top / cellH);
1044                    var left = Math.round(position.left / cellW);
1045                    var width = Math.round($(this).width() / cellW);
1046                    var height = Math.round($(this).height() / cellH);
1047                    top = Math.min(Math.max(0, top), runtime.limitRow - height);
1048                    left = Math.min(Math.max(0, left), runtime.limitCol - width);
1049                    klass.setHoles([{top: top, left: left, width: width, height: height}]);
1050                    klass.refresh();
1051                },
1052                end: function() {
1053                    var position = $(this).position();
1054                    var top = Math.round(position.top / cellH);
1055                    var left = Math.round(position.left / cellW);
1056                    var width = Math.round($(this).width() / cellW);
1057                    var height = Math.round($(this).height() / cellH);
1058                    top = Math.min(Math.max(0, top), runtime.limitRow - height);
1059                    left = Math.min(Math.max(0, left), runtime.limitCol - width);
1060
1061                    $(this).css({
1062                        zIndex: "auto",
1063                        top: top * cellH,
1064                        left: left * cellW
1065                    }).removeClass('fw-float');
1066                    klass.fillHoles();
1067                }
1068            });
1069        }
1070
1071
1072        $.extend(klass, {
1073
1074            addCustomEvent: function(name, func) {
1075                var events = runtime.events;
1076                name = name.toLowerCase();
1077                !events[name] && (events[name] = []);
1078                func.eid = events[name].length;
1079                events[name].push(func);
1080                return this;
1081            },
1082
1083            appendBlock: function(items) {
1084                var allBlock = $(items).appendTo(container);
1085                var block = null;
1086                var activeBlock = [];
1087
1088                allBlock.each(function(index, item) {
1089                    item.index = ++index;
1090                    if (block = layoutManager.loadBlock(item, setting)) {
1091                        activeBlock.push(block);
1092                        klass.fireEvent('onBlockLoad', item, setting);
1093                    }
1094                });
1095
1096                engine[setting.engine](activeBlock, setting);
1097
1098                layoutManager.setWallSize(runtime, container);
1099
1100                runtime.length = allBlock.length;
1101
1102                allBlock.each(function(index, item) {
1103                    setting.draggable && setDragable(item);
1104                    layoutManager.showBlock(item, setting);
1105                    klass.fireEvent('onBlockShow', item, setting);
1106                });
1107            },
1108            /*
1109            add one or more blank area (hole) on layout;
1110            example:
1111
1112                wall.appendHoles({
1113                    top: 10,
1114                    left: 36,
1115                    width: 2,
1116                    height: 6
1117                });
1118
1119                wall.appendHoles([
1120                    {
1121                        top: 16,
1122                        left: 16,
1123                        width: 8,
1124                        height: 2
1125                    },
1126                    {
1127                        top: 10,
1128                        left: 36,
1129                        width: 2,
1130                        height: 6
1131                    }
1132                ]);
1133
1134            */
1135            appendHoles: function(holes) {
1136                runtime.holes = runtime.holes.concat(holes);
1137                return this;
1138            },
1139
1140            container: container,
1141
1142            fillHoles: function() {
1143                runtime.holes = [];
1144                return this;
1145            },
1146
1147            filter: function(filter) {
1148                runtime.filter = filter;
1149                runtime.currentMethod && this.refresh();
1150                return this;
1151            },
1152
1153            fireEvent: function(name, object, setting) {
1154                var events = runtime.events;
1155                name = name.toLowerCase();
1156                if (events[name] && events[name].length) {
1157                    for (var i = 0; i < events[name].length; ++i) {
1158                        events[name][i].call(object, setting);
1159                    }
1160                }
1161                return this;
1162            },
1163
1164            fitHeight: function(height) {
1165                var allBlock = container.find(setting.selector).removeAttr('id'),
1166                    block = null,
1167                    activeBlock = [];
1168
1169                height = height ? height : container.height() || $W.height();
1170
1171                runtime.currentMethod = arguments.callee;
1172                runtime.currentArguments = arguments;
1173
1174                layoutManager.resetGrid(runtime);
1175                layoutManager.adjustUnit('auto', height, setting);
1176
1177                if (runtime.filter) {
1178                    allBlock.data('active', 0);
1179                    allBlock.filter(runtime.filter).data('active', 1);
1180                } else {
1181                    allBlock.data('active', 1);
1182                }
1183
1184                klass.fireEvent('onGridReady', container, setting);
1185
1186                allBlock.each(function(index, item) {
1187                    var $item = $(item);
1188                    item.index = ++index;
1189                    if (block = layoutManager.loadBlock(item, setting)) {
1190                        $item.data("active") && activeBlock.push(block);
1191                        klass.fireEvent('onBlockLoad', item, setting);
1192                    }
1193                });
1194
1195                klass.fireEvent('onGridLoad', container, setting);
1196
1197                engine[setting.engine](activeBlock, setting);
1198
1199                layoutManager.setWallSize(runtime, container);
1200
1201                klass.fireEvent('onGridArrange', container, setting);
1202
1203                runtime.length = allBlock.length;
1204
1205                allBlock.each(function(index, item) {
1206                    setting.draggable && setDragable(item);
1207                    layoutManager.showBlock(item, setting);
1208                    klass.fireEvent('onBlockShow', item, setting);
1209                });
1210
1211                klass.fireEvent('onGridShow', container, setting);
1212            },
1213
1214            fitWidth: function(width) {
1215                var allBlock = container.find(setting.selector).removeAttr('id'),
1216                    block = null,
1217                    activeBlock = [];
1218
1219                width = width ? width : container.width() || $W.width();
1220
1221                runtime.currentMethod = arguments.callee;
1222                runtime.currentArguments = arguments;
1223
1224                layoutManager.resetGrid(runtime);
1225                layoutManager.adjustUnit(width, 'auto', setting);
1226
1227                if (runtime.filter) {
1228                    allBlock.data('active', 0);
1229                    allBlock.filter(runtime.filter).data('active', 1);
1230                } else {
1231                    allBlock.data('active', 1);
1232                }
1233
1234                klass.fireEvent('onGridReady', container, setting);
1235
1236                allBlock.each(function(index, item) {
1237                    var $item = $(item);
1238                    item.index = ++index;
1239                    if (block = layoutManager.loadBlock(item, setting)) {
1240                        $item.data("active") && activeBlock.push(block);
1241                        klass.fireEvent('onBlockLoad', item, setting);
1242                    }
1243                });
1244
1245                klass.fireEvent('onGridLoad', container, setting);
1246
1247                engine[setting.engine](activeBlock, setting);
1248
1249                layoutManager.setWallSize(runtime, container);
1250
1251                klass.fireEvent('onGridArrange', container, setting);
1252
1253                runtime.length = allBlock.length;
1254
1255                allBlock.each(function(index, item) {
1256                    setting.draggable && setDragable(item);
1257                    layoutManager.showBlock(item, setting);
1258                    klass.fireEvent('onBlockShow', item, setting);
1259                });
1260
1261                klass.fireEvent('onGridShow', container, setting);
1262            },
1263
1264            fitZone: function(width, height) {
1265                var allBlock = container.find(setting.selector).removeAttr('id'),
1266                    block = null,
1267                    activeBlock = [];
1268
1269                height = height ? height : container.height() || $W.height();
1270                width = width ? width : container.width() || $W.width();
1271
1272                runtime.currentMethod = arguments.callee;
1273                runtime.currentArguments = arguments;
1274
1275                layoutManager.resetGrid(runtime);
1276                layoutManager.adjustUnit(width, height, setting);
1277
1278                if (runtime.filter) {
1279                    allBlock.data('active', 0);
1280                    allBlock.filter(runtime.filter).data('active', 1);
1281                } else {
1282                    allBlock.data('active', 1);
1283                }
1284
1285                klass.fireEvent('onGridReady', container, setting);
1286
1287                allBlock.each(function(index, item) {
1288                    var $item = $(item);
1289                    item.index = ++index;
1290                    if (block = layoutManager.loadBlock(item, setting)) {
1291                        $item.data("active") && activeBlock.push(block);
1292                        klass.fireEvent('onBlockLoad', item, setting);
1293                    }
1294                });
1295
1296                klass.fireEvent('onGridLoad', container, setting);
1297
1298                engine[setting.engine](activeBlock, setting);
1299
1300                layoutManager.setWallSize(runtime, container);
1301
1302                klass.fireEvent('onGridArrange', container, setting);
1303
1304                runtime.length = allBlock.length;
1305
1306                allBlock.each(function(index, item) {
1307                    setting.draggable && setDragable(item);
1308                    layoutManager.showBlock(item, setting);
1309                    klass.fireEvent('onBlockShow', item, setting);
1310                });
1311
1312                klass.fireEvent('onGridShow', container, setting);
1313            },
1314
1315            /*
1316            set block with special position, the top and left are multiple of unit width/height;
1317            example:
1318
1319                wall.fixSize({
1320                    top: 0,
1321                    left: 0,
1322                    block: $('.free')
1323                });
1324            */
1325            fixPos: function(option) {
1326                $(option.block).attr({'data-fixPos': option.top + "-" + option.left});
1327                return this;
1328            },
1329
1330            /*
1331            set block with special size, the width and height are multiple of unit width/height;
1332            example:
1333
1334                wall.fixSize({
1335                    height: 5,
1336                    width: 2,
1337                    block: $('.free')
1338                });
1339            */
1340            fixSize: function(option) {
1341                option.width != null && $(option.block).attr({'data-width': option.width});
1342                option.height != null && $(option.block).attr({'data-height': option.height});
1343                return this;
1344            },
1345
1346            prepend: function(items) {
1347                container.prepend(items);
1348                runtime.currentMethod && this.refresh();
1349                return this;
1350            },
1351
1352            refresh: function() {
1353                var params = arguments.length ? arguments : runtime.currentArguments;
1354                runtime.currentMethod == null && (runtime.currentMethod = this.fitWidth);
1355                runtime.currentMethod.apply(this, Array.prototype.slice.call(params, 0));
1356                return this;
1357            },
1358
1359            /*
1360            custom layout setting;
1361            example:
1362
1363                wall.reset({
1364                    selector: '.brick',
1365                    animate: true,
1366                    cellW: 160,
1367                    cellH: 160,
1368                    delay: 50,
1369                    onResize: function() {
1370                        wall.fitWidth();
1371                    }
1372                });
1373            */
1374            reset: function(option) {
1375                $.extend(setting, option);
1376                return this;
1377            },
1378
1379            /*
1380            create one or more blank area (hole) on layout;
1381            example:
1382
1383                wall.setHoles({
1384                    top: 2,
1385                    left: 2,
1386                    width: 2,
1387                    height: 2
1388                });
1389            */
1390
1391            setHoles: function(holes) {
1392                runtime.holes = [].concat(holes);
1393                return this;
1394            },
1395
1396            unFilter: function() {
1397                delete runtime.filter;
1398                this.refresh();
1399                return this;
1400            }
1401        });
1402
1403        container.attr('data-min-width', Math.floor($W.width() / 80) * 80);
1404        // execute plugins;
1405        for (var i in layoutManager.plugin) {
1406            if (layoutManager.plugin.hasOwnProperty(i)) {
1407                layoutManager.plugin[i].call(klass, setting, container);
1408            }
1409        }
1410
1411        // setup resize event;
1412        $W.resize(function() {
1413            if (runtime.running) return;
1414            runtime.running = 1;
1415            setTimeout(function() {
1416                runtime.running = 0;
1417                setting.onResize.call(klass, container);
1418            }, 122);
1419            container.attr('data-min-width', Math.floor($W.width() / 80) * 80);
1420        });
1421    };
1422
1423
1424    /*
1425    support create new plugin;
1426    example:
1427
1428        freewall.createPlugin({
1429            centering: function(setting, container) {
1430                console.log(this);
1431                console.log(setting);
1432            }
1433        }).addConfig({
1434            offsetLeft: 0
1435        });
1436    */
1437    freewall.createPlugin = function(pluginData) {
1438        // register new plugin;
1439        $.extend(layoutManager.plugin, pluginData);
1440        return {
1441            addConfig: function(newConfig) {
1442                // add default setting;
1443                $.extend(layoutManager.defaultConfig, newConfig);
1444            }
1445        }
1446    };
1447
1448    /*
1449    support create new arrange algorithm;
1450    example:
1451
1452        freewall.createEngine({
1453            slice: function(items, setting) {
1454                // slice engine;
1455            }
1456        });
1457    */
1458    freewall.createEngine = function(engineData) {
1459        // create new engine;
1460        $.extend(engine, engineData);
1461    };
1462
1463    /*
1464    support access helper function;
1465    example:
1466
1467        freewall.getMethod('setBlock')(block, setting);
1468    */
1469    freewall.getMethod = function(method) {
1470        return layoutManager[method];
1471    };
1472
1473})(window.Zepto || window.jQuery);
1474
1475
1476/** Abstract base class for collection plugins.
1477	Written by Keith Wood (kbwood{at}iinet.com.au) December 2013.
1478	Licensed under the MIT (https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt) license. */
1479(function(){var j=false;window.JQClass=function(){};JQClass.classes={};JQClass.extend=function extender(f){var g=this.prototype;j=true;var h=new this();j=false;for(var i in f){h[i]=typeof f[i]=='function'&&typeof g[i]=='function'?(function(d,e){return function(){var b=this._super;this._super=function(a){return g[d].apply(this,a)};var c=e.apply(this,arguments);this._super=b;return c}})(i,f[i]):f[i]}function JQClass(){if(!j&&this._init){this._init.apply(this,arguments)}}JQClass.prototype=h;JQClass.prototype.constructor=JQClass;JQClass.extend=extender;return JQClass}})();(function($){JQClass.classes.JQPlugin=JQClass.extend({name:'plugin',defaultOptions:{},regionalOptions:{},_getters:[],_getMarker:function(){return'is-'+this.name},_init:function(){$.extend(this.defaultOptions,(this.regionalOptions&&this.regionalOptions[''])||{});var c=camelCase(this.name);$[c]=this;$.fn[c]=function(a){var b=Array.prototype.slice.call(arguments,1);if($[c]._isNotChained(a,b)){return $[c][a].apply($[c],[this[0]].concat(b))}return this.each(function(){if(typeof a==='string'){if(a[0]==='_'||!$[c][a]){throw'Unknown method: '+a;}$[c][a].apply($[c],[this].concat(b))}else{$[c]._attach(this,a)}})}},setDefaults:function(a){$.extend(this.defaultOptions,a||{})},_isNotChained:function(a,b){if(a==='option'&&(b.length===0||(b.length===1&&typeof b[0]==='string'))){return true}return $.inArray(a,this._getters)>-1},_attach:function(a,b){a=$(a);if(a.hasClass(this._getMarker())){return}a.addClass(this._getMarker());b=$.extend({},this.defaultOptions,this._getMetadata(a),b||{});var c=$.extend({name:this.name,elem:a,options:b},this._instSettings(a,b));a.data(this.name,c);this._postAttach(a,c);this.option(a,b)},_instSettings:function(a,b){return{}},_postAttach:function(a,b){},_getMetadata:function(d){try{var f=d.data(this.name.toLowerCase())||'';f=f.replace(/'/g,'"');f=f.replace(/([a-zA-Z0-9]+):/g,function(a,b,i){var c=f.substring(0,i).match(/"/g);return(!c||c.length%2===0?'"'+b+'":':b+':')});f=$.parseJSON('{'+f+'}');for(var g in f){var h=f[g];if(typeof h==='string'&&h.match(/^new Date\((.*)\)$/)){f[g]=eval(h)}}return f}catch(e){return{}}},_getInst:function(a){return $(a).data(this.name)||{}},option:function(a,b,c){a=$(a);var d=a.data(this.name);if(!b||(typeof b==='string'&&c==null)){var e=(d||{}).options;return(e&&b?e[b]:e)}if(!a.hasClass(this._getMarker())){return}var e=b||{};if(typeof b==='string'){e={};e[b]=c}this._optionsChanged(a,d,e);$.extend(d.options,e)},_optionsChanged:function(a,b,c){},destroy:function(a){a=$(a);if(!a.hasClass(this._getMarker())){return}this._preDestroy(a,this._getInst(a));a.removeData(this.name).removeClass(this._getMarker())},_preDestroy:function(a,b){}});function camelCase(c){return c.replace(/-([a-z])/g,function(a,b){return b.toUpperCase()})}$.JQPlugin={createPlugin:function(a,b){if(typeof a==='object'){b=a;a='JQPlugin'}a=camelCase(a);var c=camelCase(b.name);JQClass.classes[c]=JQClass.classes[a].extend(b);new JQClass.classes[c]()}}})(jQuery);
1480
1481/* http://keith-wood.name/countdown.html
1482   Countdown for jQuery v2.0.0.
1483   Written by Keith Wood (kbwood{at}iinet.com.au) January 2008.
1484   Available under the MIT (https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt) license.
1485   Please attribute the author if you use it. */
1486(function($){var w='countdown';var Y=0;var O=1;var W=2;var D=3;var H=4;var M=5;var S=6;$.JQPlugin.createPlugin({name:w,defaultOptions:{until:null,since:null,timezone:null,serverSync:null,format:'dHMS',layout:'',compact:false,padZeroes:false,significant:0,description:'',expiryUrl:'',expiryText:'',alwaysExpire:false,onExpiry:null,onTick:null,tickInterval:1},regionalOptions:{'':{labels:['Years','Months','Weeks','Days','Hours','Minutes','Seconds'],labels1:['Year','Month','Week','Day','Hour','Minute','Second'],compactLabels:['y','m','w','d'],whichLabels:null,digits:['0','1','2','3','4','5','6','7','8','9'],timeSeparator:':',isRTL:false}},_getters:['getTimes'],_rtlClass:w+'-rtl',_sectionClass:w+'-section',_amountClass:w+'-amount',_periodClass:w+'-period',_rowClass:w+'-row',_holdingClass:w+'-holding',_showClass:w+'-show',_descrClass:w+'-descr',_timerElems:[],_init:function(){var c=this;this._super();this._serverSyncs=[];var d=(typeof Date.now=='function'?Date.now:function(){return new Date().getTime()});var e=(window.performance&&typeof window.performance.now=='function');function timerCallBack(a){var b=(a<1e12?(e?(performance.now()+performance.timing.navigationStart):d()):a||d());if(b-g>=1000){c._updateElems();g=b}f(timerCallBack)}var f=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||null;var g=0;if(!f||$.noRequestAnimationFrame){$.noRequestAnimationFrame=null;setInterval(function(){c._updateElems()},980)}else{g=window.animationStartTime||window.webkitAnimationStartTime||window.mozAnimationStartTime||window.oAnimationStartTime||window.msAnimationStartTime||d();f(timerCallBack)}},UTCDate:function(a,b,c,e,f,g,h,i){if(typeof b=='object'&&b.constructor==Date){i=b.getMilliseconds();h=b.getSeconds();g=b.getMinutes();f=b.getHours();e=b.getDate();c=b.getMonth();b=b.getFullYear()}var d=new Date();d.setUTCFullYear(b);d.setUTCDate(1);d.setUTCMonth(c||0);d.setUTCDate(e||1);d.setUTCHours(f||0);d.setUTCMinutes((g||0)-(Math.abs(a)<30?a*60:a));d.setUTCSeconds(h||0);d.setUTCMilliseconds(i||0);return d},periodsToSeconds:function(a){return a[0]*31557600+a[1]*2629800+a[2]*604800+a[3]*86400+a[4]*3600+a[5]*60+a[6]},_instSettings:function(a,b){return{_periods:[0,0,0,0,0,0,0]}}
1486,_addElem:function(a){if(!this._hasElem(a)){this._timerElems.push(a)}},_hasElem:function(a){return($.inArray(a,this._timerElems)>-1)},_removeElem:function(b){this._timerElems=$.map(this._timerElems,function(a){return(a==b?null:a)})},_updateElems:function(){for(var i=this._timerElems.length-1;i>=0;i--){this._updateCountdown(this._timerElems[i])}},_optionsChanged:function(a,b,c){if(c.layout){c.layout=c.layout.replace(/&lt;/g,'<').replace(/&gt;/g,'>')}this._resetExtraLabels(b.options,c);var d=(b.options.timezone!=c.timezone);$.extend(b.options,c);this._adjustSettings(a,b,c.until!=null||c.since!=null||d);var e=new Date();if((b._since&&b._since<e)||(b._until&&b._until>e)){this._addElem(a[0])}this._updateCountdown(a,b)},_updateCountdown:function(a,b){a=a.jquery?a:$(a);b=b||a.data(this.name);if(!b){return}a.html(this._generateHTML(b)).toggleClass(this._rtlClass,b.options.isRTL);if($.isFunction(b.options.onTick)){var c=b._hold!='lap'?b._periods:this._calculatePeriods(b,b._show,b.options.significant,new Date());if(b.options.tickInterval==1||this.periodsToSeconds(c)%b.options.tickInterval==0){b.options.onTick.apply(a[0],[c])}}var d=b._hold!='pause'&&(b._since?b._now.getTime()<b._since.getTime():b._now.getTime()>=b._until.getTime());if(d&&!b._expiring){b._expiring=true;if(this._hasElem(a[0])||b.options.alwaysExpire){this._removeElem(a[0]);if($.isFunction(b.options.onExpiry)){b.options.onExpiry.apply(a[0],[])}if(b.options.expiryText){var e=b.options.layout;b.options.layout=b.options.expiryText;this._updateCountdown(a[0],b);b.options.layout=e}if(b.options.expiryUrl){window.location=b.options.expiryUrl}}b._expiring=false}else if(b._hold=='pause'){this._removeElem(a[0])}},_resetExtraLabels:function(a,b){var c=false;for(var n in b){if(n!='whichLabels'&&n.match(/[Ll]abels/)){c=true;break}}if(c){for(var n in a){if(n.match(/[Ll]abels[02-9]|compactLabels1/)){a[n]=null}}}},_adjustSettings:function(a,b,c){var d;var e=0;var f=null;for(var i=0;i<this._serverSyncs.length;i++){if(this._serverSyncs[i][0]==b.options.serverSync){f=this._serverSyncs[i][1];break}}if(f!=null){e=(b.options.serverSync?f:0);d=new Date()}else{var g=($.isFunction(b.options.serverSync)?b.options.serverSync.apply(a[0],[]):null);d=new Date();e=(g?d.getTime()-g.getTime():0);this._serverSyncs.push([b.options.serverSync,e])}var h=b.options.timezone;h=(h==null?-d.getTimezoneOffset():h);if(c||(!c&&b._until==null&&b._since==null)){b._since=b.options.since;if(b._since!=null){b._since=this.UTCDate(h,this._determineTime(b._since,null));if(b._since&&e){b._since.setMilliseconds(b._since.getMilliseconds()+e)}}b._until=this.UTCDate(h,this._determineTime(b.options.until,d));if(e){b._until.setMilliseconds(b._until.getMilliseconds()+e)}}b._show=this._determineShow(b)},_preDestroy:function(a,b){this._removeElem(a[0]);a.empty()},pause:function(a){this._hold(a,'pause')},lap:function(a){this._hold(a,'lap')},resume:function(a){this._hold(a,null)},toggle:function(a){var b=$.data(a,this.name)||{};this[!b._hold?'pause':'resume'](a)},toggleLap:function(a){var b=$.data(a,this.name)||{};this[!b._hold?'lap':'resume'](a)},_hold:function(a,b){var c=$.data(a,this.name);if(c){if(c._hold=='pause'&&!b){c._periods=c._savePeriods;var d=(c._since?'-':'+');c[c._since?'_since':'_until']=this._determineTime(d+c._periods[0]+'y'+d+c._periods[1]+'o'+d+c._periods[2]+'w'+d+c._periods[3]+'d'+d+c._periods[4]+'h'+d+c._periods[5]+'m'+d+c._periods[6]+'s');this._addElem(a)}c._hold=b;c._savePeriods=(b=='pause'?c._periods:null);$.data(a,this.name,c);this._updateCountdown(a,c)}},getTimes:function(a){var b=$.data(a,this.name);return(!b?null:(b._hold=='pause'?b._savePeriods:(!b._hold?b._periods:this._calculatePeriods(b,b._show,b.options.significant,new Date()))))},_determineTime:function(k,l){var m=this;var n=function(a){var b=new Date();b.setTime(b.getTime()+a*1000);return b};var o=function(a){a=a.toLowerCase();var b=new Date();var c=b.getFullYear();var d=b.getMonth();var e=b.getDate();var f=b.getHours();var g=b.getMinutes();var h=b.getSeconds();var i=/([+-]?[0-9]+)\s*(s|m|h|d|w|o|y)?/g;var j=i.exec(a);while(j){switch(j[2]||'s'){case's':h+=parseInt(j[1],10);break;case'm':g+=parseInt(j[1],10);break;case'h':f+=parseInt(j[1],10);break;case'd':e+=parseInt(j[1],10);break;case'w':e+=parseInt(j[1],10)*7;break;case'o':d+=parseInt(j[1],10);e=Math.min(e,m._getDaysInMonth(c,d));break;case'y':c+=parseInt(j[1],10);e=Math.min(e,m._getDaysInMonth(c,d));break}j=i.exec(a)}return new Date(c,d,e,f,g,h,0)};var p=(k==null?l:(typeof k=='string'?o(k):(typeof k=='number'?n(k):k)));if(p)p.setMilliseconds(0);return p},_getDaysInMonth:function(a,b){return 32-new Date(a,b,32).getDate()},_normalLabels:function(a){return a},_generateHTML:function(c){var d=this;
1486c._periods=(c._hold?c._periods:this._calculatePeriods(c,c._show,c.options.significant,new Date()));var e=false;var f=0;var g=c.options.significant;var h=$.extend({},c._show);for(var i=Y;i<=S;i++){e|=(c._show[i]=='?'&&c._periods[i]>0);h[i]=(c._show[i]=='?'&&!e?null:c._show[i]);f+=(h[i]?1:0);g-=(c._periods[i]>0?1:0)}var j=[false,false,false,false,false,false,false];for(var i=S;i>=Y;i--){if(c._show[i]){if(c._periods[i]){j[i]=true}else{j[i]=g>0;g--}}}var k=(c.options.compact?c.options.compactLabels:c.options.labels);var l=c.options.whichLabels||this._normalLabels;var m=function(a){var b=c.options['compactLabels'+l(c._periods[a])];return(h[a]?d._translateDigits(c,c._periods[a])+(b?b[a]:k[a])+' ':'')};var n=(c.options.padZeroes?2:1);var o=function(a){var b=c.options['labels'+l(c._periods[a])];return((!c.options.significant&&h[a])||(c.options.significant&&j[a])?'<span class="'+d._sectionClass+'">'+'<span class="'+d._amountClass+'">'+d._minDigits(c,c._periods[a],n)+'</span>'+'<span class="'+d._periodClass+'">'+(b?b[a]:k[a])+'</span></span>':'')};return(c.options.layout?this._buildLayout(c,h,c.options.layout,c.options.compact,c.options.significant,j):((c.options.compact?'<span class="'+this._rowClass+' '+this._amountClass+(c._hold?' '+this._holdingClass:'')+'">'+m(Y)+m(O)+m(W)+m(D)+(h[H]?this._minDigits(c,c._periods[H],2):'')+(h[M]?(h[H]?c.options.timeSeparator:'')+this._minDigits(c,c._periods[M],2):'')+(h[S]?(h[H]||h[M]?c.options.timeSeparator:'')+this._minDigits(c,c._periods[S],2):''):'<span class="'+this._rowClass+' '+this._showClass+(c.options.significant||f)+(c._hold?' '+this._holdingClass:'')+'">'+o(Y)+o(O)+o(W)+o(D)+o(H)+o(M)+o(S))+'</span>'+(c.options.description?'<span class="'+this._rowClass+' '+this._descrClass+'">'+c.options.description+'</span>':'')))},_buildLayout:function(c,d,e,f,g,h){var j=c.options[f?'compactLabels':'labels'];var k=c.options.whichLabels||this._normalLabels;var l=function(a){return(c.options[(f?'compactLabels':'labels')+k(c._periods[a])]||j)[a]};var m=function(a,b){return c.options.digits[Math.floor(a/b)%10]};var o={desc:c.options.description,sep:c.options.timeSeparator,yl:l(Y),yn:this._minDigits(c,c._periods[Y],1),ynn:this._minDigits(c,c._periods[Y],2),ynnn:this._minDigits(c,c._periods[Y],3),y1:m(c._periods[Y],1),y10:m(c._periods[Y],10),y100:m(c._periods[Y],100),y1000:m(c._periods[Y],1000),ol:l(O),on:this._minDigits(c,c._periods[O],1),onn:this._minDigits(c,c._periods[O],2),onnn:this._minDigits(c,c._periods[O],3),o1:m(c._periods[O],1),o10:m(c._periods[O],10),o100:m(c._periods[O],100),o1000:m(c._periods[O],1000),wl:l(W),wn:this._minDigits(c,c._periods[W],1),wnn:this._minDigits(c,c._periods[W],2),wnnn:this._minDigits(c,c._periods[W],3),w1:m(c._periods[W],1),w10:m(c._periods[W],10),w100:m(c._periods[W],100),w1000:m(c._periods[W],1000),dl:l(D),dn:this._minDigits(c,c._periods[D],1),dnn:this._minDigits(c,c._periods[D],2),dnnn:this._minDigits(c,c._periods[D],3),d1:m(c._periods[D],1),d10:m(c._periods[D],10),d100:m(c._periods[D],100),d1000:m(c._periods[D],1000),hl:l(H),hn:this._minDigits(c,c._periods[H],1),hnn:this._minDigits(c,c._periods[H],2),hnnn:this._minDigits(c,c._periods[H],3),h1:m(c._periods[H],1),h10:m(c._periods[H],10),h100:m(c._periods[H],100),h1000:m(c._periods[H],1000),ml:l(M),mn:this._minDigits(c,c._periods[M],1),mnn:this._minDigits(c,c._periods[M],2),mnnn:this._minDigits(c,c._periods[M],3),m1:m(c._periods[M],1),m10:m(c._periods[M],10),m100:m(c._periods[M],100),m1000:m(c._periods[M],1000),sl:l(S),sn:this._minDigits(c,c._periods[S],1),snn:this._minDigits(c,c._periods[S],2),snnn:this._minDigits(c,c._periods[S],3),s1:m(c._periods[S],1),s10:m(c._periods[S],10),s100:m(c._periods[S],100),s1000:m(c._periods[S],1000)};var p=e;for(var i=Y;i<=S;i++){var q='yowdhms'.charAt(i);var r=new RegExp('\\{'+q+'<\\}([\\s\\S]*)\\{'+q+'>\\}','g');p=p.replace(r,((!g&&d[i])||(g&&h[i])?'$1':''))}$.each(o,function(n,v){var a=new RegExp('\\{'+n+'\\}','g');p=p.replace(a,v)});return p},_minDigits:function(a,b,c){b=''+b;if(b.length>=c){return this._translateDigits(a,b)}b='0000000000'+b;return this._translateDigits(a,b.substr(b.length-c))},_translateDigits:function(b,c){return(''+c).replace(/[0-9]/g,function(a){return b.options.digits[a]})},_determineShow:function(a){var b=a.options.format;var c=[];c[Y]=(b.match('y')?'?':(b.match('Y')?'!':null));c[O]=(b.match('o')?'?':(b.match('O')?'!':null));c[W]=(b.match('w')?'?':(b.match('W')?'!':null));c[D]=(b.match('d')?'?':(b.match('D')?'!':null));c[H]=(b.match('h')?'?':(b.match('H')?'!':null));c[M]=(b.match('m')?'?':(b.match('M')?'!':null));c[S]=(b.match('s')?'?':(b.match('S')?'!':null));return c}
1486,_calculatePeriods:function(c,d,e,f){c._now=f;c._now.setMilliseconds(0);var g=new Date(c._now.getTime());if(c._since){if(f.getTime()<c._since.getTime()){c._now=f=g}else{f=c._since}}else{g.setTime(c._until.getTime());if(f.getTime()>c._until.getTime()){c._now=f=g}}var h=[0,0,0,0,0,0,0];if(d[Y]||d[O]){var i=this._getDaysInMonth(f.getFullYear(),f.getMonth());var j=this._getDaysInMonth(g.getFullYear(),g.getMonth());var k=(g.getDate()==f.getDate()||(g.getDate()>=Math.min(i,j)&&f.getDate()>=Math.min(i,j)));var l=function(a){return(a.getHours()*60+a.getMinutes())*60+a.getSeconds()};var m=Math.max(0,(g.getFullYear()-f.getFullYear())*12+g.getMonth()-f.getMonth()+((g.getDate()<f.getDate()&&!k)||(k&&l(g)<l(f))?-1:0));h[Y]=(d[Y]?Math.floor(m/12):0);h[O]=(d[O]?m-h[Y]*12:0);f=new Date(f.getTime());var n=(f.getDate()==i);var o=this._getDaysInMonth(f.getFullYear()+h[Y],f.getMonth()+h[O]);if(f.getDate()>o){f.setDate(o)}f.setFullYear(f.getFullYear()+h[Y]);f.setMonth(f.getMonth()+h[O]);if(n){f.setDate(o)}}var p=Math.floor((g.getTime()-f.getTime())/1000);var q=function(a,b){h[a]=(d[a]?Math.floor(p/b):0);p-=h[a]*b};q(W,604800);q(D,86400);q(H,3600);q(M,60);q(S,1);if(p>0&&!c._since){var r=[1,12,4.3482,7,24,60,60];var s=S;var t=1;for(var u=S;u>=Y;u--){if(d[u]){if(h[s]>=t){h[s]=0;p=1}if(p>0){h[u]++;p=0;s=u;t=1}}t*=r[u]}}if(e){for(var u=Y;u<=S;u++){if(e&&h[u]){e--}else if(!e){h[u]=0}}}return h}})})(jQuery);
1487
1488/**
1489 * jQuery.browser.mobile (http://detectmobilebrowser.com/)
1490 *
1491 * jQuery.browser.mobile will be true if the browser is a mobile device
1492 *
1493 **/
1494(function(a){(jQuery.browser=jQuery.browser||{}).mobile=/(android|bb\d+|meego).+mobile|android|ipad|playbook|silk|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))})(navigator.userAgent||navigator.vendor||window.opera);
1495
1496/* Modernizr 2.7.1 (Custom Build) | MIT & BSD
1497 * Build: http://modernizr.com/download/#-touch-shiv-cssclasses-teststyles-prefixes-load
1498 */
1499;window.Modernizr=function(a,b,c){function w(a){j.cssText=a}function x(a,b){return w(m.join(a+";")+(b||""))}function y(a,b){return typeof a===b}function z(a,b){return!!~(""+a).indexOf(b)}function A(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:y(f,"function")?f.bind(d||b):f}return!1}var d="2.7.1",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n={},o={},p={},q=[],r=q.slice,s,t=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["&#173;",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},u={}.hasOwnProperty,v;!y(u,"undefined")&&!y(u.call,"undefined")?v=function(a,b){return u.call(a,b)}:v=function(a,b){return b in a&&y(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;
vendor: 8,653 bytes, lines 1499-1551
1499var d=r.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(r.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(r.call(arguments)))};return e}),n.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:t(["@media (",m.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c};for(var B in n)v(n,B)&&(s=B.toLowerCase(),e[s]=n[B](),q.push((e[s]?"":"no-")+s));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)v(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},w(""),i=k=null,function(a,b){function l(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function m(){var a=s.elements;return typeof a=="string"?a.split(" "):a}function n(a){var b=j[a[h]];return b||(b={},i++,a[h]=i,j[i]=b),b}function o(a,c,d){c||(c=b);if(k)return c.createElement(a);d||(d=n(c));var g;return d.cache[a]?g=d.cache[a].cloneNode():f.test(a)?g=(d.cache[a]=d.createElem(a)).cloneNode():g=d.createElem(a),g.canHaveChildren&&!e.test(a)&&!g.tagUrn?d.frag.appendChild(g):g}function p(a,c){a||(a=b);if(k)return a.createDocumentFragment();c=c||n(a);var d=c.frag.cloneNode(),e=0,f=m(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function q(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return s.shivMethods?o(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/[\w\-]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(s,b.frag)}function r(a){a||(a=b);var c=n(a);return s.shivCSS&&!g&&!c.hasCSS&&(c.hasCSS=!!l(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),k||q(a,c),a}var c="3.7.0",d=a.html5||{},e=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,f=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,g,h="_html5shiv",i=0,j={},k;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",g="hidden"in a,k=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){g=!0,k=!0}})();var s={elements:d.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:c,shivCSS:d.shivCSS!==!1,supportsUnknownElements:k,shivMethods:d.shivMethods!==!1,type:"default",shivDocument:r,createElement:o,createDocumentFragment:p};a.html5=s,r(b)}(this,b),e._version=d,e._prefixes=m,e.testStyles=t,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+q.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};
1500
1501/* Retina Display */
1502(function() {
1503  var root = (typeof exports == 'undefined' ? window : exports);
1504
1505  var config = {
1506    // Ensure Content-Type is an image before trying to load @2x image
1507    // https://github.com/imulus/retinajs/pull/45)
1508    check_mime_type: true,
1509
1510    // Resize high-resolution images to original image's pixel dimensions
1511    // https://github.com/imulus/retinajs/issues/8
1512    force_original_dimensions: true
1513 };
1514
1515  root.Retina = Retina;
1516
1517  function Retina() {}
1518
1519  Retina.configure = function(options) {
1520    if (options == null) options = {};
1521    for (var prop in options) config[prop] = options[prop];
1522  };
1523
1524  Retina.init = function(context) {
1525    if (context == null) context = root;
1526
1527    var existing_onload = context.onload || new Function;
1528
1529    context.onload = function() {
1530      var images = document.querySelectorAll('img[data-at2x]'), retinaImages = [], i, image;
1531      for (i = 0; i < images.length; i++) {
1532        image = images[i];
1533        retinaImages.push(new RetinaImage(image));
1534      }
1535      existing_onload();
1536    }
1537  };
1538
1539  Retina.isRetina = function(){
1540    var mediaQuery = "(-webkit-min-device-pixel-ratio: 1.5),\
1541                      (min--moz-device-pixel-ratio: 1.5),\
1542                      (-o-min-device-pixel-ratio: 3/2),\
1543                      (min-resolution: 1.5dppx)";
1544
1545    if (root.devicePixelRatio > 1)
1546      return true;
1547
1548    if (root.matchMedia && root.matchMedia(mediaQuery).matches)
1549      return true;
1550
1551    return false;
1552  };
1553
1554
1555  root.RetinaImagePath = RetinaImagePath;
1556
1557  function RetinaImagePath(path, at_2x_path) {
1558    this.path = path;
1559    if (typeof at_2x_path !== "undefined" && at_2x_path !== null) {
1560      this.at_2x_path = at_2x_path;
1561      this.perform_check = false;
1562    } else {
1563      this.at_2x_path = path.replace(/\.\w+$/, function(match) { return "@2x" + match; });
1564      this.perform_check = true;
1565    }
1566  }
1567
1568  RetinaImagePath.confirmed_paths = [];
1569
1570  RetinaImagePath.prototype.is_external = function() {
1571    return !!(this.path.match(/^https?\:/i) && !this.path.match('//' + document.domain) )
1572  }
1573
1574  RetinaImagePath.prototype.check_2x_variant = function(callback) {
1575    var http, that = this;
1576    if (this.is_external()) {
1577      return callback(false);
1578    } else if (!this.perform_check && typeof this.at_2x_path !== "undefined" && this.at_2x_path !== null) {
1579      return callback(false);
1580
1581    } else if (this.at_2x_path in RetinaImagePath.confirmed_paths) {
1582      return callback(true);
1583
1584    } else {
1585      http = new XMLHttpRequest;
1586      http.open('HEAD', this.at_2x_path);
1587      http.onreadystatechange = function() {
1588        if (http.readyState != 4) {
1589          return callback(false);
1590        }
1591
1592        if (http.status >= 200 && http.status <= 399) {
1593          if (config.check_mime_type) {
1594            var type = http.getResponseHeader('Content-Type');
1595            if (type == null || !type.match(/^image/i)) {
1596              return callback(false);
1597            }
1598          }
1599
1600          RetinaImagePath.confirmed_paths.push(that.at_2x_path);
1601          return callback(true);
1602        } else {
1603          return callback(false);
1604        }
1605      }
1606      http.send();
1607    }
1608  }
1609
1610
1611
1612  function RetinaImage(el) {
1613    this.el = el;
1614    this.path = new RetinaImagePath(this.el.getAttribute('src'), this.el.getAttribute('data-at2x'));
1615    var that = this;
1616    this.path.check_2x_variant(function(hasVariant) {
1617      if (hasVariant) that.swap();
1618    });
1619  }
1620
1621  root.RetinaImage = RetinaImage;
1622
1623  RetinaImage.prototype.swap = function(path) {
1624    if (typeof path == 'undefined') path = this.path.at_2x_path;
1625
1626    var that = this;
1627    function load() {
1628      if (! that.el.complete) {
1629        setTimeout(load, 5);
1630      } else {
1631        if (config.force_original_dimensions) {
1632          that.el.setAttribute('width', that.el.offsetWidth);
1633          that.el.setAttribute('height', that.el.offsetHeight);
1634        }
1635
1636        that.el.setAttribute('src', path);
1637      }
1638    }
1639    load();
1640  }
1641
1642
1643
1644
1645  if (Retina.isRetina()) {
1646    Retina.init(root);
1647  }
1648
1649})();
1650
1651
1652(function(){
1653
1654    var special = jQuery.event.special,
1655        uid1 = 'D' + (+new Date()),
1656        uid2 = 'D' + (+new Date() + 1);
1657
1658    special.scrollstart = {
1659        setup: function() {
1660
1661            var timer,
1662                handler =  function(evt) {
1663
1664                    var _self = this,
1665                        _args = arguments;
1666
1667                    if (timer) {
1668                        clearTimeout(timer);
1669                    } else {
1670                        evt.type = 'scrollstart';
1671                        jQuery.event.handle.apply(_self, _args);
1672                    }
1673
1674                    timer = setTimeout( function(){
1675                        timer = null;
1676                    }, special.scrollstop.latency);
1677
1678                };
1679
1680            jQuery(this).bind('scroll', handler).data(uid1, handler);
1681
1682        },
1683        teardown: function(){
1684            jQuery(this).unbind( 'scroll', jQuery(this).data(uid1) );
1685        }
1686    };
1687
1688    special.scrollstop = {
1689        latency: 300,
1690        setup: function() {
1691
1692            var timer,
1693                    handler = function(evt) {
1694
1695                    var _self = this,
1696                        _args = arguments;
1697
1698                    if (timer) {
1699                        clearTimeout(timer);
1700                    }
1701
1702                    timer = setTimeout( function(){
1703
1704                        timer = null;
1705                        evt.type = 'scrollstop';
1706                        jQuery.event.handle.apply(_self, _args);
1707
1708                    }, special.scrollstop.latency);
1709
1710                };
1711
1712            jQuery(this).bind('scroll', handler).data(uid2, handler);
1713
1714        },
1715        teardown: function() {
1716            jQuery(this).unbind( 'scroll', jQuery(this).data(uid2) );
1717        }
1718    };
1719
1720})();
1721
1722/**
1723 * Isotope v1.5.26
1724 * An exquisite jQuery plugin for magical layouts
1725 * http://isotope.metafizzy.co
1726 *
1727 * Commercial use requires one-time purchase of a commercial license
1728 * http://isotope.metafizzy.co/docs/license.html
1729 *
1730 * Non-commercial use is licensed under the MIT License
1731 *
1732 * Copyright 2014 Metafizzy
1733 */
1734!function(t,i){"use strict";var s,e=t.document,n=e.documentElement,o=t.Modernizr,r=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},a="Moz Webkit O Ms".split(" "),h=function(t){var i,s=n.style;if("string"==typeof s[t])return t;t=r(t);for(var e=0,o=a.length;o>e;e++)if(i=a[e]+t,"string"==typeof s[i])return i},l=h("transform"),u=h("transitionProperty"),c={csstransforms:function(){return!!l},csstransforms3d:function(){var t=!!h("perspective");if(t&&"webkitPerspective"in n.style){var s=i("<style>@media (transform-3d),(-webkit-transform-3d){#modernizr{height:3px}}</style>").appendTo("head"),e=i('<div id="modernizr" />').appendTo("html");t=3===e.height(),e.remove(),s.remove()}return t},csstransitions:function(){return!!u}};if(o)for(s in c)o.hasOwnProperty(s)||o.addTest(s,c[s]);else{o=t.Modernizr={_version:"1.6ish: miniModernizr for Isotope"};var d,f=" ";for(s in c)d=c[s](),o[s]=d,f+=" "+(d?"":"no-")+s;i("html").addClass(f)}if(o.csstransforms){var m=o.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+") "}},p=function(t,s,e){var n,o,r=i.data(t,"isoTransform")||{},a={},h={};a[s]=e,i.extend(r,a);for(n in r)o=r[n],h[n]=m[n](o);var u=h.translate||"",c=h.scale||"",d=u+c;i.data(t,"isoTransform",r),t.style[l]=d};i.cssNumber.scale=!0,i.cssHooks.scale={set:function(t,i){p(t,"scale",i)},get:function(t){var s=i.data(t,"isoTransform");return s&&s.scale?s.scale:1}},i.fx.step.scale=function(t){i.cssHooks.scale.set(t.elem,t.now+t.unit)},i.cssNumber.translate=!0,i.cssHooks.translate={set:function(t,i){p(t,"translate",i)},get:function(t){var s=i.data(t,"isoTransform");return s&&s.translate?s.translate:[0,0]}}}var y,g;o.csstransitions&&(y={WebkitTransitionProperty:"webkitTransitionEnd",MozTransitionProperty:"transitionend",OTransitionProperty:"oTransitionEnd otransitionend",transitionProperty:"transitionend"}[u],g=h("transitionDuration"));var v,_=i.event,A=i.event.handle?"handle":"dispatch";_.special.smartresize={setup:function(){i(this).bind("resize",_.special.smartresize.handler)},teardown:function(){i(this).unbind("resize",_.special.smartresize.handler)},handler:function(t,i){var s=this,e=arguments;t.type="smartresize",v&&clearTimeout(v),v=setTimeout(function(){_[A].apply(s,e)},"execAsap"===i?0:100)}},i.fn.smartresize=function(t){return t?this.bind("smartresize",t):this.trigger("smartresize",["execAsap"])},i.Isotope=function(t,s,e){this.element=i(s),this._create(t),this._init(e)};var w=["width","height"],C=i(t);i.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},i.Isotope.prototype={_create:function(t){this.options=i.extend({},i.Isotope.settings,t),this.styleQueue=[],this.elemCount=0;var s=this.element[0].style;this.originalStyle={};var e=w.slice(0);for(var n in this.options.containerStyle)e.push(n);for(var o=0,r=e.length;r>o;o++)n=e[o],this.originalStyle[n]=s[n]||"";this.element.css(this.options.containerStyle),this._updateAnimationEngine(),this._updateUsingTransforms();var a={"original-order":function(t,i){return i.elemCount++,i.elemCount},random:function(){return Math.random()}};this.options.getSortData=i.extend(this.options.getSortData,a),this.reloadItems(),this.offset={left:parseInt(this.element.css("padding-left")||0,10),top:parseInt(this.element.css("padding-top")||0,10)};var h=this;setTimeout(function(){h.element.addClass(h.options.containerClass)},0),this.options.resizable&&C.bind("smartresize.isotope",function(){h.resize()}),this.element.delegate("."+this.options.hiddenClass,"click",function(){return!1})},_getAtoms:function(t){var i=this.options.itemSelector,s=i?t.filter(i).add(t.find(i)):t,e={position:"absolute"};return s=s.filter(function(t,i){return 1===i.nodeType}),this.usingTransforms&&(e.left=0,e.top=0),s.css(e).addClass(this.options.itemClass),this.updateSortData(s,!0),s},_init:function(t){this.$filteredAtoms=this._filter(this.$allAtoms),this._sort(),this.reLayout(t)},option:function(t){if(i.isPlainObject(t)){this.options=i.extend(!0,this.options,t);var s;for(var e in t)s="_update"+r(e),this[s]&&this[s]()}},_updateAnimationEngine:function(){var t,i=this.options.animationEngine.toLowerCase().replace(/[ _\-]/g,"");
1734switch(i){case"css":case"none":t=!1;break;case"jquery":t=!0;break;default:t=!o.csstransitions}this.isUsingJQueryAnimation=t,this._updateUsingTransforms()},_updateTransformsEnabled:function(){this._updateUsingTransforms()},_updateUsingTransforms:function(){var t=this.usingTransforms=this.options.transformsEnabled&&o.csstransforms&&o.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 i=""===this.options.filter?"*":this.options.filter;if(!i)return t;var s=this.options.hiddenClass,e="."+s,n=t.filter(e),o=n;if("*"!==i){o=n.filter(i);var r=t.not(e).not(i).addClass(s);this.styleQueue.push({$el:r,style:this.options.hiddenStyle})}return this.styleQueue.push({$el:o,style:this.options.visibleStyle}),o.removeClass(s),t.filter(i)},updateSortData:function(t,s){var e,n,o=this,r=this.options.getSortData;t.each(function(){e=i(this),n={};for(var t in r)n[t]=s||"original-order"!==t?r[t](e,o):i.data(this,"isotope-sort-data")[t];i.data(this,"isotope-sort-data",n)})},_sort:function(){var t=this.options.sortBy,i=this._getSorter,s=this.options.sortAscending?1:-1,e=function(e,n){var o=i(e,t),r=i(n,t);return o===r&&"original-order"!==t&&(o=i(e,"original-order"),r=i(n,"original-order")),(o>r?1:r>o?-1:0)*s};this.$filteredAtoms.sort(e)},_getSorter:function(t,s){return i.data(t,"isotope-sort-data")[s]},_translate:function(t,i){return{translate:[t,i]}},_positionAbs:function(t,i){return{left:t,top:i}},_pushPosition:function(t,i,s){i=Math.round(i+this.offset.left),s=Math.round(s+this.offset.top);var e=this.getPositionStyles(i,s);this.styleQueue.push({$el:t,style:e}),this.options.itemPositionDataEnabled&&t.data("isotope-item-position",{x:i,y:s})},layout:function(t,i){var s=this.options.layoutMode;if(this["_"+s+"Layout"](t),this.options.resizesContainer){var e=this["_"+s+"GetContainerSize"]();this.styleQueue.push({$el:this.element,style:e})}this._processStyleQueue(t,i),this.isLaidOut=!0},_processStyleQueue:function(t,s){var e,n,r,a,h=this.isLaidOut?this.isUsingJQueryAnimation?"animate":"css":"css",l=this.options.animationOptions,u=this.options.onLayout;if(n=function(t,i){i.$el[h](i.style,l)},this._isInserting&&this.isUsingJQueryAnimation)n=function(t,i){e=i.$el.hasClass("no-transition")?"css":h,i.$el[e](i.style,l)};else if(s||u||l.complete){var c=!1,d=[s,u,l.complete],f=this;if(r=!0,a=function(){if(!c){for(var i,s=0,e=d.length;e>s;s++)i=d[s],"function"==typeof i&&i.call(f.element,t,f);c=!0}},this.isUsingJQueryAnimation&&"animate"===h)l.complete=a,r=!1;else if(o.csstransitions){for(var m,p=0,v=this.styleQueue[0],_=v&&v.$el;!_||!_.length;){if(m=this.styleQueue[p++],!m)return;_=m.$el}var A=parseFloat(getComputedStyle(_[0])[g]);A>0&&(n=function(t,i){i.$el[h](i.style,l).one(y,a)},r=!1)}}i.each(this.styleQueue,n),r&&a(),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,i){var s=this._getAtoms(t);this.$allAtoms=this.$allAtoms.add(s),i&&i(s)},insert:function(t,i){this.element.append(t);var s=this;this.addItems(t,function(t){var e=s._filter(t);s._addHideAppended(e),s._sort(),s.reLayout(),s._revealAppended(e,i)})},appended:function(t,i){var s=this;this.addItems(t,function(t){s._addHideAppended(t),s.layout(t),s._revealAppended(t,i)})},_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,i){var s=this;setTimeout(function(){t.removeClass("no-transition"),s.styleQueue.push({$el:t,style:s.options.visibleStyle}),s._isInserting=!1,s._processStyleQueue(t,i)},10)},reloadItems:function(){this.$allAtoms=this._getAtoms(this.element.children())},remove:function(t,i){this.$allAtoms=this.$allAtoms.not(t),this.$filteredAtoms=this.$filteredAtoms.not(t);var s=this,e=function(){t.remove(),i&&i.call(s.element)};t.filter(":not(."+this.options.hiddenClass+")").length?(this.styleQueue.push({$el:t,style:this.options.hiddenStyle}),this._sort(),this.reLayout(e)):e()},shuffle:function(t){this.updateSortData(this.$allAtoms),this.options.sortBy="random",this._sort(),this.reLayout(t)},destroy:function(){var t=this.usingTransforms,i=this.options;this.$allAtoms.removeClass(i.hiddenClass+" "+i.itemClass).each(function(){var i=this.style;i.position="",i.top="",i.left="",i.opacity="",t&&(i[l]="")});var s=this.element[0].style;for(var e in this.originalStyle)s[e]=this.originalStyle[e];this.element.unbind(".isotope").undelegate("."+i.hiddenClass,"click").removeClass(i.
vendor: 5,772 bytes, line 1734
1734containerClass).removeData("isotope"),C.unbind(".isotope")},_getSegments:function(t){var i,s=this.options.layoutMode,e=t?"rowHeight":"columnWidth",n=t?"height":"width",o=t?"rows":"cols",a=this.element[n](),h=this.options[s]&&this.options[s][e]||this.$filteredAtoms["outer"+r(n)](!0)||a;i=Math.floor(a/h),i=Math.max(i,1),this[s][o]=i,this[s][e]=h},_checkIfSegmentsChanged:function(t){var i=this.options.layoutMode,s=t?"rows":"cols",e=this[i][s];return this._getSegments(t),this[i][s]!==e},_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 s=this,e=s.masonry;t.each(function(){var t=i(this),n=Math.ceil(t.outerWidth(!0)/e.columnWidth);if(n=Math.min(n,e.cols),1===n)s._masonryPlaceBrick(t,e.colYs);else{var o,r,a=e.cols+1-n,h=[];for(r=0;a>r;r++)o=e.colYs.slice(r,r+n),h[r]=Math.max.apply(Math,o);s._masonryPlaceBrick(t,h)}})},_masonryPlaceBrick:function(t,i){for(var s=Math.min.apply(Math,i),e=0,n=0,o=i.length;o>n;n++)if(i[n]===s){e=n;break}var r=this.masonry.columnWidth*e,a=s;this._pushPosition(t,r,a);var h=s+t.outerHeight(!0),l=this.masonry.cols+1-o;for(n=0;l>n;n++)this.masonry.colYs[e+n]=h},_masonryGetContainerSize:function(){var t=Math.max.apply(Math,this.masonry.colYs);return{height:t}},_masonryResizeChanged:function(){return this._checkIfSegmentsChanged()},_fitRowsReset:function(){this.fitRows={x:0,y:0,height:0}},_fitRowsLayout:function(t){var s=this,e=this.element.width(),n=this.fitRows;t.each(function(){var t=i(this),o=t.outerWidth(!0),r=t.outerHeight(!0);0!==n.x&&o+n.x>e&&(n.x=0,n.y=n.height),s._pushPosition(t,n.x,n.y),n.height=Math.max(n.y+r,n.height),n.x+=o})},_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 s=this,e=this.cellsByRow;t.each(function(){var t=i(this),n=e.index%e.cols,o=Math.floor(e.index/e.cols),r=(n+.5)*e.columnWidth-t.outerWidth(!0)/2,a=(o+.5)*e.rowHeight-t.outerHeight(!0)/2;s._pushPosition(t,r,a),e.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 s=this;t.each(function(){var t=i(this);s._pushPosition(t,0,s.straightDown.y),s.straightDown.y+=t.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 s=this,e=s.masonryHorizontal;t.each(function(){var t=i(this),n=Math.ceil(t.outerHeight(!0)/e.rowHeight);if(n=Math.min(n,e.rows),1===n)s._masonryHorizontalPlaceBrick(t,e.rowXs);else{var o,r,a=e.rows+1-n,h=[];for(r=0;a>r;r++)o=e.rowXs.slice(r,r+n),h[r]=Math.max.apply(Math,o);s._masonryHorizontalPlaceBrick(t,h)}})},_masonryHorizontalPlaceBrick:function(t,i){for(var s=Math.min.apply(Math,i),e=0,n=0,o=i.length;o>n;n++)if(i[n]===s){e=n;break}var r=s,a=this.masonryHorizontal.rowHeight*e;this._pushPosition(t,r,a);var h=s+t.outerWidth(!0),l=this.masonryHorizontal.rows+1-o;for(n=0;l>n;n++)this.masonryHorizontal.rowXs[e+n]=h},_masonryHorizontalGetContainerSize:function(){var t=Math.max.apply(Math,this.masonryHorizontal.rowXs);return{width:t}},_masonryHorizontalResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_fitColumnsReset:function(){this.fitColumns={x:0,y:0,width:0}},_fitColumnsLayout:function(t){var s=this,e=this.element.height(),n=this.fitColumns;t.each(function(){var t=i(this),o=t.outerWidth(!0),r=t.outerHeight(!0);0!==n.y&&r+n.y>e&&(n.x=n.width,n.y=0),s._pushPosition(t,n.x,n.y),n.width=Math.max(n.x+o,n.width),n.y+=r})},_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 s=this,e=this.cellsByColumn;t.each(function(){var t=i(this),n=Math.floor(e.index/e.rows),o=e.index%e.rows,r=(n+.5)*e.columnWidth-t.outerWidth(!0)/2,a=(o+.5)*e.rowHeight-t.outerHeight(!0)/2;s._pushPosition(t,r,a),e.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 s=this;t.each(function(){var t=i(this);s._pushPosition(t,s.straightAcross.x,0),s.straightAcross.x+=t.outerWidth(!0)})},_straightAcrossGetContainerSize:function(){return{width:this.straightAcross.x}},_straightAcrossResizeChanged:function(){return!0}},i.fn.imagesLoaded=function(t){function s(){t.call(n,o)}function e(t){var n=t.target;n.src!==a&&-1===i.inArray(n,h)&&(h.push(n),--r<=0&&(setTimeout(s),o.unbind(".imagesLoaded",e)))}var n=this,o=n.find("img").add(n.filter("img")),r=o.length,a="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",h=[];return r||s(),o.bind("load.imagesLoaded error.imagesLoaded",e).each(function(){var t=this.src;this.src=a,this.src=t}),n};var z=function(i){t.console&&t.console.error(i)};i.fn.isotope=function(t,s){if("string"==typeof t){var e=Array.prototype.slice.call(arguments,1
1734);this.each(function(){var s=i.data(this,"isotope");return s?i.isFunction(s[t])&&"_"!==t.charAt(0)?void s[t].apply(s,e):void z("no such method '"+t+"' for isotope instance"):void z("cannot call methods on isotope prior to initialization; attempted to call method '"+t+"'")})}else this.each(function(){var e=i.data(this,"isotope");e?(e.option(t),e._init(s)):i.data(this,"isotope",new i.Isotope(t,this,s))});return this}}(window,jQuery);
1735
1736
1737
1738// objectFitPolyfill
1739!function(t,e){"function"==typeof define&&define.amd?define([],function(){return t.objectFitPolyfill=e()}):"object"==typeof module&&module.exports?module.exports=e():t.objectFitPolyfill=e()}(this,function(){"use strict";if("objectFit"in document.documentElement.style==!1){var t=function(t){var e=window.getComputedStyle(t,null),i=e.getPropertyValue("position"),o=e.getPropertyValue("overflow"),n=e.getPropertyValue("display");i&&"static"!==i||(t.style.position="relative"),"hidden"!==o&&(t.style.overflow="hidden"),n&&"inline"!==n||(t.style.display="block"),0===t.clientHeight&&(t.style.height="100%"),t.className=t.className+" object-fit-polyfill"},e=function(t){var e=window.getComputedStyle(t,null),i={"max-width":"none","max-height":"none","min-width":"0px","min-height":"0px"};for(var o in i){var n=e.getPropertyValue(o);n!==i[o]&&(t.style[o]=i[o])}},i=function(t,e,i){i=i.split(" ");var o,n,l,a,d;if("x"===t)o=i[0],n=i[1],l="left",a="right",d=e.clientWidth;else{if("y"!==t)return;o=i[1],n=i[0],l="top",a="bottom",d=e.clientHeight}return o===l||n===l?void(e.style[l]="0"):o===a||n===a?void(e.style[a]="0"):"center"===o||"50%"===o?(e.style[l]="50%",void(e.style["margin-"+l]=d/-2+"px")):o.indexOf("%")>=0?(o=parseInt(o),void(o<50?(e.style[l]=o+"%",e.style["margin-"+l]=d*(o/-100)+"px"):(o=100-o,e.style[a]=o+"%",e.style["margin-"+a]=d*(o/-100)+"px"))):void(e.style[l]=o)},o=function(o){var n=o.dataset?o.dataset.objectFit:o.getAttribute("data-object-fit"),l=o.dataset?o.dataset.objectPosition:o.getAttribute("data-object-position");n=n||"cover",l=l||"50% 50%";var a=o.parentNode;t(a),e(o),o.style.position="absolute",o.style.height="100%",o.style.width="auto","scale-down"===n&&(o.style.height="auto",o.clientWidth<a.clientWidth&&o.clientHeight<a.clientHeight?(i("x",o,l),i("y",o,l)):(n="contain",o.style.height="100%")),"none"===n?(o.style.width="auto",o.style.height="auto",i("x",o,l),i("y",o,l)):"cover"===n&&o.clientWidth>a.clientWidth||"contain"===n&&o.clientWidth<a.clientWidth?(o.style.top="0",o.style.marginTop="0",i("x",o,l)):"scale-down"!==n&&(o.style.width="100%",o.style.height="auto",o.style.left="0",o.style.marginLeft="0",i("y",o,l))},n=function(){for(var t=document.querySelectorAll("[data-object-fit]"),e=0;e<t.length;e++){var i=t[e].nodeName.toLowerCase();"img"===i?t[e].complete?o(t[e]):t[e].addEventListener("load",function(){o(this)}):"video"===i&&(t[e].readyState>0?o(t[e]):t[e].addEventListener("loadedmetadata",function(){o(this)}))}};return n}}),"function"==typeof objectFitPolyfill&&(document.addEventListener("DOMContentLoaded",function(){objectFitPolyfill()}),window.addEventListener("resize",function(){objectFitPolyfill()}));
1740;(function($){var $window=$(window);var $pusher=$('#pusher');var windowHeight=$pusher.height();$window.resize(function(){windowHeight=$pusher.height();});$.fn.parallax=function(xpos,speedFactor,outerHeight){var $this=$(this);var getHeight;var firstTop;var paddingTop=0;$this.each(function(){var firstTopCalc=$this.offset().top;var firstTopPusher=$pusher.scrollTop();firstTop=firstTopPusher+firstTopCalc;});if(outerHeight){getHeight=function(jqo){return jqo.outerHeight(true);};}else{getHeight=function(jqo){return jqo.height();};}
1741if(arguments.length<1||xpos===null)xpos="50%";if(arguments.length<2||speedFactor===null)speedFactor=0.1;if(arguments.length<3||outerHeight===null)outerHeight=true;function update(){var pos=$pusher.scrollTop();$this.each(function(){var $element=$(this);var top=$element.offset().top;var height=getHeight($element);$this.css('backgroundPosition',xpos+" "+Math.round((firstTop-pos)*speedFactor)+"px");});}
1742$pusher.on('scroll',update);$(window).on('resize',update);
1742update();};})(jQuery);
1743;// jquery.tweet.js - See http://tweet.seaofclouds.com/ or https://github.com/seaofclouds/tweet for more info
1744// Copyright (c) 2008-2012 Todd Matthews & Steve Purcell
1745// Modified by Stan Scates for https://github.com/StanScates/Tweet.js-Mod
1746
1747(function (factory) {
1748	if (typeof define === 'function' && define.amd)
1749	define(['jquery'], factory); // AMD support for RequireJS etc.
1750	else
1751	factory(jQuery);
1752}(function ($) {
1753	$.fn.tweet = function(o){
1754		var s = $.extend({
1755			modpath: iron_vars.ajaxurl,              // [string]   relative URL to Tweet.js mod (see https://github.com/StanScates/Tweet.js-Mod)
1756			username: null,                           // [string or array] required unless using the 'query' option; one or more twitter screen names (use 'list' option for multiple names, where possible)
1757			list_id: null,                            // [integer]  ID of list to fetch when using list functionality
1758			list: null,                               // [string]   optional slug of list belonging to username
1759			favorites: false,                         // [boolean]  display the user's favorites instead of his tweets
1760			query: null,                              // [string]   optional search query (see also: http://search.twitter.com/operators)
1761			avatar_size: null,                        // [integer]  height and width of avatar if displayed (48px max)
1762			count: 3,                                 // [integer]  how many tweets to display?
1763			fetch: null,                              // [integer]  how many tweets to fetch via the API (set this higher than 'count' if using the 'filter' option)
1764			page: 1,                                  // [integer]  which page of results to fetch (if count != fetch, you'll get unexpected results)
1765			retweets: true,                           // [boolean]  whether to fetch (official) retweets (not supported in all display modes)
1766			intro_text: null,                         // [string]   do you want text BEFORE your your tweets?
1767			outro_text: null,                         // [string]   do you want text AFTER your tweets?
1768			join_text:  null,                         // [string]   optional text in between date and tweet, try setting to "auto"
1769			auto_join_text_default: "i said,",        // [string]   auto text for non verb: "i said" bullocks
1770			auto_join_text_ed: "i",                   // [string]   auto text for past tense: "i" surfed
1771			auto_join_text_ing: "i am",               // [string]   auto tense for present tense: "i was" surfing
1772			auto_join_text_reply: "i replied to",     // [string]   auto tense for replies: "i replied to" @someone "with"
1773			auto_join_text_url: "i was looking at",   // [string]   auto tense for urls: "i was looking at" http:...
1774			loading_text: null,                       // [string]   optional loading text, displayed while tweets load
1775			refresh_interval: null ,                  // [integer]  optional number of seconds after which to reload tweets
1776			twitter_url: "twitter.com",               // [string]   custom twitter url, if any (apigee, etc.)
1777			twitter_api_url: "api.twitter.com",       // [string]   custom twitter api url, if any (apigee, etc.)
1778			twitter_search_url: "api.twitter.com", // [string]   custom twitter search url, if any (apigee, etc.)
1779			template: "{avatar}{time}{join}{text}",   // [string or function] template used to construct each tweet <li> - see code for available vars
1780			comparator: function(tweet1, tweet2) {    // [function] comparator used to sort tweets (see Array.sort)
1781				return tweet2["tweet_time"] - tweet1["tweet_time"];
1782			},
1783			filter: function(tweet) {                 // [function] whether or not to include a particular tweet (be sure to also set 'fetch')
1784				return true;
1785			}
1786		// You can attach callbacks to the following events using jQuery's standard .bind() mechanism:
1787		//   "loaded" -- triggered when tweets have been fetched and rendered
1788		}, o);
1789
1790		// See http://daringfireball.net/2010/07/improved_regex_for_matching_urls
1791		var url_regexp = /\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi;
1792
1793		// Expand values inside simple string templates with {placeholders}
1794		function t(template, info) {
1795			if (typeof template === "string") {
1796				var result = template;
1797				for(var key in info) {
1798					var val = info[key];
1799					result = result.replace(new RegExp('{'+key+'}','g'), val === null ? '' : val);
1800				}
1801				return result;
1802			} else return template(info);
1803		}
1804		// Export the t function for use when passing a function as the 'template' option
1805		$.extend({tweet: {t: t}});
1806
1807		function replacer (regex, replacement) {
1808			return function() {
1809				var returning = [];
1810				this.each(function() {
1811					returning.push(this.replace(regex, replacement));
1812				});
1813				return $(returning);
1814			};
1815		}
1816
1817		function escapeHTML(s) {
1818			return s.replace(/</g,"&lt;").replace(/>/g,"^&gt;");
1819		}
1820
1821		$.fn.extend({
1822			linkUser: replacer(/(^|[\W])@(\w+)/gi, "$1<span class=\"at\">@</span><a href=\"http://"+s.twitter_url+"/$2\">$2</a>"),
1823			// Support various latin1 (\u00**) and arabic (\u06**) alphanumeric chars
1824			linkHash: replacer(/(?:^| )[\#]+([\w\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u00ff\u0600-\u06ff]+)/gi,
1825				' <a href="https://twitter.com/search?q=%23$1'+((s.username && s.username.length == 1 && !s.list) ? '&from='+s.username.join("%2BOR%2B") : '')+'" class="tweet_hashtag">#$1</a>'),
1826			makeHeart: replacer(/(&lt;)+[3]/gi, "<tt class='heart'>&#x2665;</tt>")
1827		});
1828
1829		function linkURLs(text, entities) {
1830			return text.replace(url_regexp, function(match) {
1831				var url = (/^[a-z]+:/i).test(match) ? match : "http://"+match;
1832				var text = match;
1833				for(var i = 0; i < entities.length; ++i) {
1834					var entity = entities[i];
1835					if (entity.url == url && entity.expanded_url) {
1836						url = entity.expanded_url;
1837						text = entity.display_url;
1838						break;
1839					}
1840				}
1841				return "<a href=\""+escapeHTML(url)+"\">"+escapeHTML(text)+"</a>";
1842			});
1843		}
1844
1845		function parse_date(date_str) {
1846			// The non-search twitter APIs return inconsistently-formatted dates, which Date.parse
1847			// cannot handle in IE. We therefore perform the following transformation:
1848			// "Wed Apr 29 08:53:31 +0000 2009" => "Wed, Apr 29 2009 08:53:31 +0000"
1849			return Date.parse(date_str.replace(/^([a-z]{3})( [a-z]{3} \d\d?)(.*)( \d{4})$/i, '$1,$2$4$3'));
1850		}
1851
1852		function relative_time(date) {
1853			var relative_to = (arguments.length > 1) ? arguments[1] : new Date();
1854			var delta = parseInt((relative_to.getTime() - date) / 1000, 10);
1855			var r = '';
1856			if (delta < 1) {
1857				r = 'just now';
1858			} else if (delta < 60) {
1859				r = delta + ' seconds ago';
1860			} else if(delta < 120) {
1861				r = 'about a minute ago';
1862			} else if(delta < (45*60)) {
1863				r = 'about ' + (parseInt(delta / 60, 10)).toString() + ' minutes ago';
1864			} else if(delta < (2*60*60)) {
1865				r = 'about an hour ago';
1866			} else if(delta < (24*60*60)) {
1867				r = 'about ' + (parseInt(delta / 3600, 10)).toString() + ' hours ago';
1868			} else if(delta < (48*60*60)) {
1869				r = 'about a day ago';
1870			} else {
1871				r = 'about ' + (parseInt(delta / 86400, 10)).toString() + ' days ago';
1872			}
1873			return r;
1874		}
1875
1876		function build_auto_join_text(text) {
1877			if (text.match(/^(@([A-Za-z0-9-_]+)) .*/i)) {
1878				return s.auto_join_text_reply;
1879			} else if (text.match(url_regexp)) {
1880				return s.auto_join_text_url;
1881			} else if (text.match(/^((\w+ed)|just) .*/im)) {
1882				return s.auto_join_text_ed;
1883			} else if (text.match(/^(\w*ing) .*/i)) {
1884				return s.auto_join_text_ing;
1885			} else {
1886				return s.auto_join_text_default;
1887			}
1888		}
1889
1890		function build_api_request() {
1891			var modpath = s.modpath,
1892				count = (s.fetch === null) ? s.count : s.fetch,
1893				defaults = {
1894					include_entities: 1
1895				};
1896
1897			if (s.list) {
1898				return {
1899					host: s.twitter_api_url,
1900					url: "/1.1/lists/statuses.json",
1901					parameters: $.extend({}, defaults, {
1902						list_id: s.list_id,
1903						slug: s.list,
1904						owner_screen_name: s.username,
1905						page: s.page,
1906						count: count,
1907						include_rts: (s.retweets ? 1 : 0)
1908					})
1909				};
1910			} else if (s.favorites) {
1911				return {
1912					host: s.twitter_api_url,
1913					url: "/1.1/favorites/list.json",
1914					parameters: $.extend({}, defaults, {
1915						list_id: s.list_id,
1916						screen_name: s.username,
1917						page: s.page,
1918						count: count
1919					})
1920				};
1921			} else if (s.query === null && s.username.length === 1) {
1922				return {
1923					host: s.twitter_api_url,
1924					url: "/1.1/statuses/user_timeline.json",
1925					parameters: $.extend({}, defaults, {
1926						screen_name: s.username,
1927						page: s.page,
1928						count: count,
1929						include_rts: (s.retweets ? 1 : 0)
1930					})
1931				};
1932			} else {
1933				var query = (s.query || 'from:'+s.username.join(' OR from:'));
1934				return {
1935					host: s.twitter_search_url,
1936					url: "/1.1/search/tweets.json",
1937					parameters: $.extend({}, defaults, {
1938						q: query,
1939						count: count
1940					})
1941				};
1942			}
1943		}
1944
1945		function extract_avatar_url(item, secure) {
1946			if (secure) {
1947				return ('user' in item) ?
1948					item.user.profile_image_url_https :
1949					extract_avatar_url(item, false).
1950					replace(/^http:\/\/[a-z0-9]{1,3}\.twimg\.com\//, "https://s3.amazonaws.com/twitter_production/");
1951			} else {
1952				return item.profile_image_url || item.user.profile_image_url;
1953			}
1954		}
1955
1956		// Convert twitter API objects into data available for
1957		// constructing each tweet <li> using a template
1958		function extract_template_data(item) {
1959			var o = {};
1960			o.item = item;
1961			o.source = item.source;
1962			// The actual user name is not returned by all Twitter APIs, so please do not file an issue if it is empty.
1963			o.name = item.from_user_name || item.user.name;
1964			o.screen_name = item.from_user || item.user.screen_name;
1965			o.avatar_size = s.avatar_size;
1966			o.avatar_url = extract_avatar_url(item, (document.location.protocol === 'https:'));
1967			o.retweet = typeof(item.retweeted_status) != 'undefined';
1968			o.tweet_time = parse_date(item.created_at);
1969			o.join_text = s.join_text == "auto" ? build_auto_join_text(item.text) : s.join_text;
1970			o.tweet_id = item.id_str;
1971			o.twitter_base = "http://"+s.twitter_url+"/";
1972			o.user_url = o.twitter_base+o.screen_name;
1973			o.tweet_url = o.user_url+"/status/"+o.tweet_id;
1974			o.reply_url = o.twitter_base+"intent/tweet?in_reply_to="+o.tweet_id;
1975			o.retweet_url = o.twitter_base+"intent/retweet?tweet_id="+o.tweet_id;
1976			o.favorite_url = o.twitter_base+"intent/favorite?tweet_id="+o.tweet_id;
1977			o.retweeted_screen_name = o.retweet && item.retweeted_status.user.screen_name;
1978			o.tweet_relative_time = relative_time(o.tweet_time);
1979			o.entities = item.entities ? (item.entities.urls || []).concat(item.entities.media || []) : [];
1980			o.tweet_raw_text = o.retweet ? ('RT @'+o.retweeted_screen_name+' '+item.retweeted_status.text) : item.text; // avoid '...' in long retweets
1981			o.tweet_text = $([linkURLs(o.tweet_raw_text, o.entities)]).linkUser().linkHash()[0];
1982			o.tweet_text_fancy = $([o.tweet_text]).makeHeart()[0];
1983
1984			// Default spans, and pre-formatted blocks for common layouts
1985			o.user = t('<a class="tweet_user" href="{user_url}">{screen_name}</a>', o);
1986			o.join = s.join_text ? t(' <span class="tweet_join">{join_text}</span> ', o) : ' ';
1987			o.avatar = o.avatar_size ?
1988				t('<a class="tweet_avatar" href="{user_url}"><img src="{avatar_url}" height="{avatar_size}" width="{avatar_size}" alt="{screen_name}\'s avatar" title="{screen_name}\'s avatar" border="0"/></a>', o) : '';
1989			o.time = t('<span class="tweet_time"><a href="{tweet_url}" title="view tweet on twitter">{tweet_relative_time}</a></span>', o);
1990			o.text = t('<span class="tweet_text">{tweet_text_fancy}</span>', o);
1991			o.reply_action = t('<a class="tweet_action tweet_reply" href="{reply_url}">reply</a>', o);
1992			o.retweet_action = t('<a class="tweet_action tweet_retweet" href="{retweet_url}">retweet</a>', o);
1993			o.favorite_action = t('<a class="tweet_action tweet_favorite" href="{favorite_url}">favorite</a>', o);
1994			return o;
1995		}
1996
1997		return this.each(function(i, widget){
1998			var list = $('<ul class="tweet_list">');
1999			var intro = '<p class="tweet_intro">'+s.intro_text+'</p>';
2000			var outro = '<p class="tweet_outro">'+s.outro_text+'</p>';
2001			var loading = $('<p class="loading">'+s.loading_text+'</p>');
2002
2003			if(s.username && typeof(s.username) == "string"){
2004				s.username = [s.username];
2005			}
2006
2007			$(widget).unbind("tweet:load").bind("tweet:load", function(){
2008				if (s.loading_text) $(widget).empty().append(loading);
2009
2010				$.ajax({
2011					dataType: "json",
2012					type: "post",
2013					url: iron_vars.ajaxurl,
2014					data: {
2015						request: build_api_request(),
2016						action: 'ironTwitter'
2017					}
2018				})
2019				.done(function(data, status) {
2020
2021					var response = data.response;
2022					$(widget).empty().append(list);
2023					if (s.intro_text) list.before(intro);
2024					list.empty();
2025
2026					if(response.statuses !== undefined) {
2027						resp = response.statuses;
2028					} else if(response.results !== undefined) {
2029						resp = response.results;
2030					} else {
2031						resp = response;
2032					}
2033
2034					var tweets = $.map(resp, extract_template_data);
2035						tweets = $.grep(tweets, s.filter).sort(s.comparator).slice(0, s.count);
2036
2037					list.append($.map(tweets, function(o) { return "<li>" + t(s.template, o) + "</li>"; }).join('')).
2038						children('li:first').addClass('tweet_first').end().
2039						children('li:odd').addClass('tweet_even').end().
2040						children('li:even').addClass('tweet_odd');
2041
2042					if (s.outro_text) list.after(outro);
2043					$(widget).trigger("loaded").trigger((tweets ? "empty" : "full"));
2044					if (s.refresh_interval) {
2045						window.setTimeout(function() { $(widget).trigger("tweet:load"); }, 1000 * s.refresh_interval);
2046					}
2047				})
2048				.always(function(data, status){
2049					if(data.message) {
2050						console.log(data.message);
2051					}
2052				});
2053			}).trigger("tweet:load");
2054		});
2055	};
2056}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.