Advertisement
Guest User

embed,js

a guest
Jun 4th, 2016
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 455.66 KB | None | 0 0
  1. !function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e=t.length,n=re.type(t);return"function"===n||re.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t}function i(t,e,n){if(re.isFunction(e))return re.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return re.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(he.test(e))return re.filter(e,t,n);e=re.filter(e,t)}return re.grep(t,function(t){return re.inArray(t,e)>=0!==n})}function r(t,e){do t=t[e];while(t&&1!==t.nodeType);return t}function s(t){var e=be[t]={};return re.each(t.match(we)||[],function(t,n){e[n]=!0}),e}function o(){de.addEventListener?(de.removeEventListener("DOMContentLoaded",a,!1),t.removeEventListener("load",a,!1)):(de.detachEvent("onreadystatechange",a),t.detachEvent("onload",a))}function a(){(de.addEventListener||"load"===event.type||"complete"===de.readyState)&&(o(),re.ready())}function l(t,e,n){if(void 0===n&&1===t.nodeType){var i="data-"+e.replace(Te,"-$1").toLowerCase();if(n=t.getAttribute(i),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:xe.test(n)?re.parseJSON(n):n}catch(r){}re.data(t,e,n)}else n=void 0}return n}function c(t){var e;for(e in t)if(("data"!==e||!re.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function u(t,e,n,i){if(re.acceptData(t)){var r,s,o=re.expando,a=t.nodeType,l=a?re.cache:t,c=a?t[o]:t[o]&&o;if(c&&l[c]&&(i||l[c].data)||void 0!==n||"string"!=typeof e)return c||(c=a?t[o]=G.pop()||re.guid++:o),l[c]||(l[c]=a?{}:{toJSON:re.noop}),("object"==typeof e||"function"==typeof e)&&(i?l[c]=re.extend(l[c],e):l[c].data=re.extend(l[c].data,e)),s=l[c],i||(s.data||(s.data={}),s=s.data),void 0!==n&&(s[re.camelCase(e)]=n),"string"==typeof e?(r=s[e],null==r&&(r=s[re.camelCase(e)])):r=s,r}}function p(t,e,n){if(re.acceptData(t)){var i,r,s=t.nodeType,o=s?re.cache:t,a=s?t[re.expando]:re.expando;if(o[a]){if(e&&(i=n?o[a]:o[a].data)){re.isArray(e)?e=e.concat(re.map(e,re.camelCase)):e in i?e=[e]:(e=re.camelCase(e),e=e in i?[e]:e.split(" ")),r=e.length;for(;r--;)delete i[e[r]];if(n?!c(i):!re.isEmptyObject(i))return}(n||(delete o[a].data,c(o[a])))&&(s?re.cleanData([t],!0):ne.deleteExpando||o!=o.window?delete o[a]:o[a]=null)}}}function h(){return!0}function f(){return!1}function d(){try{return de.activeElement}catch(t){}}function g(t){var e=Ie.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}function m(t,e){var n,i,r=0,s=typeof t.getElementsByTagName!==ke?t.getElementsByTagName(e||"*"):typeof t.querySelectorAll!==ke?t.querySelectorAll(e||"*"):void 0;if(!s)for(s=[],n=t.childNodes||t;null!=(i=n[r]);r++)!e||re.nodeName(i,e)?s.push(i):re.merge(s,m(i,e));return void 0===e||e&&re.nodeName(t,e)?re.merge([t],s):s}function y(t){Ee.test(t.type)&&(t.defaultChecked=t.checked)}function v(t,e){return re.nodeName(t,"table")&&re.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function w(t){return t.type=(null!==re.find.attr(t,"type"))+"/"+t.type,t}function b(t){var e=Ue.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function S(t,e){for(var n,i=0;null!=(n=t[i]);i++)re._data(n,"globalEval",!e||re._data(e[i],"globalEval"))}function _(t,e){if(1===e.nodeType&&re.hasData(t)){var n,i,r,s=re._data(t),o=re._data(e,s),a=s.events;if(a){delete o.handle,o.events={};for(n in a)for(i=0,r=a[n].length;r>i;i++)re.event.add(e,n,a[n][i])}o.data&&(o.data=re.extend({},o.data))}}function k(t,e){var n,i,r;if(1===e.nodeType){if(n=e.nodeName.toLowerCase(),!ne.noCloneEvent&&e[re.expando]){r=re._data(e);for(i in r.events)re.removeEvent(e,i,r.handle);e.removeAttribute(re.expando)}"script"===n&&e.text!==t.text?(w(e).text=t.text,b(e)):"object"===n?(e.parentNode&&(e.outerHTML=t.outerHTML),ne.html5Clone&&t.innerHTML&&!re.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===n&&Ee.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===n?e.defaultSelected=e.selected=t.defaultSelected:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue)}}function x(e,n){var i,r=re(n.createElement(e)).appendTo(n.body),s=t.getDefaultComputedStyle&&(i=t.getDefaultComputedStyle(r[0]))?i.display:re.css(r[0],"display");return r.detach(),s}function T(t){var e=de,n=Ze[t];return n||(n=x(t,e),"none"!==n&&n||(Ke=(Ke||re("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=(Ke[0].contentWindow||Ke[0].contentDocument).document,e.write(),e.close(),n=x(t,e),Ke.detach()),Ze[t]=n),n}function A(t,e){return{get:function(){var n=t();if(null!=n)return n?void delete this.get:(this.get=e).apply(this,arguments)}}}function C(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),i=e,r=fn.length;r--;)if(e=fn[r]+n,e in t)return e;return i}function j(t,e){for(var n,i,r,s=[],o=0,a=t.length;a>o;o++)i=t[o],i.style&&(s[o]=re._data(i,"olddisplay"),n=i.style.display,e?(s[o]||"none"!==n||(i.style.display=""),""===i.style.display&&je(i)&&(s[o]=re._data(i,"olddisplay",T(i.nodeName)))):(r=je(i),(n&&"none"!==n||!r)&&re._data(i,"olddisplay",r?n:re.css(i,"display"))));for(o=0;a>o;o++)i=t[o],i.style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?s[o]||"":"none"));return t}function J(t,e,n){var i=cn.exec(e);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):e}function E(t,e,n,i,r){for(var s=n===(i?"border":"content")?4:"width"===e?1:0,o=0;4>s;s+=2)"margin"===n&&(o+=re.css(t,n+Ce[s],!0,r)),i?("content"===n&&(o-=re.css(t,"padding"+Ce[s],!0,r)),"margin"!==n&&(o-=re.css(t,"border"+Ce[s]+"Width",!0,r))):(o+=re.css(t,"padding"+Ce[s],!0,r),"padding"!==n&&(o+=re.css(t,"border"+Ce[s]+"Width",!0,r)));return o}function P(t,e,n){var i=!0,r="width"===e?t.offsetWidth:t.offsetHeight,s=tn(t),o=ne.boxSizing&&"border-box"===re.css(t,"boxSizing",!1,s);if(0>=r||null==r){if(r=en(t,e,s),(0>r||null==r)&&(r=t.style[e]),rn.test(r))return r;i=o&&(ne.boxSizingReliable()||r===t.style[e]),r=parseFloat(r)||0}return r+E(t,e,n||(o?"border":"content"),i,s)+"px"}function $(t,e,n,i,r){return new $.prototype.init(t,e,n,i,r)}function O(){return setTimeout(function(){dn=void 0}),dn=re.now()}function M(t,e){var n,i={height:t},r=0;for(e=e?1:0;4>r;r+=2-e)n=Ce[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function L(t,e,n){for(var i,r=(bn[e]||[]).concat(bn["*"]),s=0,o=r.length;o>s;s++)if(i=r[s].call(n,e,t))return i}function I(t,e,n){var i,r,s,o,a,l,c,u,p=this,h={},f=t.style,d=t.nodeType&&je(t),g=re._data(t,"fxshow");n.queue||(a=re._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,re.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],c=re.css(t,"display"),u="none"===c?re._data(t,"olddisplay")||T(t.nodeName):c,"inline"===u&&"none"===re.css(t,"float")&&(ne.inlineBlockNeedsLayout&&"inline"!==T(t.nodeName)?f.zoom=1:f.display="inline-block")),n.overflow&&(f.overflow="hidden",ne.shrinkWrapBlocks()||p.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}));for(i in e)if(r=e[i],mn.exec(r)){if(delete e[i],s=s||"toggle"===r,r===(d?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;d=!0}h[i]=g&&g[i]||re.style(t,i)}else c=void 0;if(re.isEmptyObject(h))"inline"===("none"===c?T(t.nodeName):c)&&(f.display=c);else{g?"hidden"in g&&(d=g.hidden):g=re._data(t,"fxshow",{}),s&&(g.hidden=!d),d?re(t).show():p.done(function(){re(t).hide()}),p.done(function(){var e;re._removeData(t,"fxshow");for(e in h)re.style(t,e,h[e])});for(i in h)o=L(d?g[i]:0,i,p),i in g||(g[i]=o.start,d&&(o.end=o.start,o.start="width"===i||"height"===i?1:0))}}function D(t,e){var n,i,r,s,o;for(n in t)if(i=re.camelCase(n),r=e[i],s=t[n],re.isArray(s)&&(r=s[1],s=t[n]=s[0]),n!==i&&(t[i]=s,delete t[n]),o=re.cssHooks[i],o&&"expand"in o){s=o.expand(s),delete t[i];for(n in s)n in t||(t[n]=s[n],e[n]=r)}else e[i]=r}function N(t,e,n){var i,r,s=0,o=wn.length,a=re.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=dn||O(),n=Math.max(0,c.startTime+c.duration-e),i=n/c.duration||0,s=1-i,o=0,l=c.tweens.length;l>o;o++)c.tweens[o].run(s);return a.notifyWith(t,[c,s,n]),1>s&&l?n:(a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:re.extend({},e),opts:re.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:dn||O(),duration:n.duration,tweens:[],createTween:function(e,n){var i=re.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(r)return this;for(r=!0;i>n;n++)c.tweens[n].run(1);return e?a.resolveWith(t,[c,e]):a.rejectWith(t,[c,e]),this}}),u=c.props;for(D(u,c.opts.specialEasing);o>s;s++)if(i=wn[s].call(c,t,u,c.opts))return i;return re.map(u,L,c),re.isFunction(c.opts.start)&&c.opts.start.call(t,c),re.fx.timer(re.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function H(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,s=e.toLowerCase().match(we)||[];if(re.isFunction(n))for(;i=s[r++];)"+"===i.charAt(0)?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function F(t,e,n,i){function r(a){var l;return s[a]=!0,re.each(t[a]||[],function(t,a){var c=a(e,n,i);return"string"!=typeof c||o||s[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),r(c),!1)}),l}var s={},o=t===Bn;return r(e.dataTypes[0])||!s["*"]&&r("*")}function z(t,e){var n,i,r=re.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((r[i]?t:n||(n={}))[i]=e[i]);return n&&re.extend(!0,t,n),t}function q(t,e,n){for(var i,r,s,o,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(o in a)if(a[o]&&a[o].test(r)){l.unshift(o);break}if(l[0]in n)s=l[0];else{for(o in n){if(!l[0]||t.converters[o+" "+l[0]]){s=o;break}i||(i=o)}s=s||i}return s?(s!==l[0]&&l.unshift(s),n[s]):void 0}function R(t,e,n,i){var r,s,o,a,l,c={},u=t.dataTypes.slice();if(u[1])for(o in t.converters)c[o.toLowerCase()]=t.converters[o];for(s=u.shift();s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=s,s=u.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(o=c[l+" "+s]||c["* "+s],!o)for(r in c)if(a=r.split(" "),a[1]===s&&(o=c[l+" "+a[0]]||c["* "+a[0]])){o===!0?o=c[r]:c[r]!==!0&&(s=a[0],u.unshift(a[1]));break}if(o!==!0)if(o&&t["throws"])e=o(e);else try{e=o(e)}catch(p){return{state:"parsererror",error:o?p:"No conversion from "+l+" to "+s}}}return{state:"success",data:e}}function B(t,e,n,i){var r;if(re.isArray(e))re.each(e,function(e,r){n||Gn.test(t)?i(t,r):B(t+"["+("object"==typeof r?e:"")+"]",r,n,i)});else if(n||"object"!==re.type(e))i(t,e);else for(r in e)B(t+"["+r+"]",e[r],n,i)}function V(){try{return new t.XMLHttpRequest}catch(e){}}function W(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function U(t){return re.isWindow(t)?t:9===t.nodeType?t.defaultView||t.parentWindow:!1}var G=[],Y=G.slice,Q=G.concat,X=G.push,K=G.indexOf,Z={},te=Z.toString,ee=Z.hasOwnProperty,ne={},ie="1.11.1",re=function(t,e){return new re.fn.init(t,e)},se=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,oe=/^-ms-/,ae=/-([\da-z])/gi,le=function(t,e){return e.toUpperCase()};re.fn=re.prototype={jquery:ie,constructor:re,selector:"",length:0,toArray:function(){return Y.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:Y.call(this)},pushStack:function(t){var e=re.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return re.each(this,t,e)},map:function(t){return this.pushStack(re.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(Y.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(0>t?e:0);return this.pushStack(n>=0&&e>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:X,sort:G.sort,splice:G.splice},re.extend=re.fn.extend=function(){var t,e,n,i,r,s,o=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[a]||{},a++),"object"==typeof o||re.isFunction(o)||(o={}),a===l&&(o=this,a--);l>a;a++)if(null!=(r=arguments[a]))for(i in r)t=o[i],n=r[i],o!==n&&(c&&n&&(re.isPlainObject(n)||(e=re.isArray(n)))?(e?(e=!1,s=t&&re.isArray(t)?t:[]):s=t&&re.isPlainObject(t)?t:{},o[i]=re.extend(c,s,n)):void 0!==n&&(o[i]=n));return o},re.extend({expando:"jQuery"+(ie+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===re.type(t)},isArray:Array.isArray||function(t){return"array"===re.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!re.isArray(t)&&t-parseFloat(t)>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==re.type(t)||t.nodeType||re.isWindow(t))return!1;try{if(t.constructor&&!ee.call(t,"constructor")&&!ee.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(ne.ownLast)for(e in t)return ee.call(t,e);for(e in t);return void 0===e||ee.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?Z[te.call(t)]||"object":typeof t},globalEval:function(e){e&&re.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(oe,"ms-").replace(ae,le)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,i){var r,s=0,o=t.length,a=n(t);if(i){if(a)for(;o>s&&(r=e.apply(t[s],i),r!==!1);s++);else for(s in t)if(r=e.apply(t[s],i),r===!1)break}else if(a)for(;o>s&&(r=e.call(t[s],s,t[s]),r!==!1);s++);else for(s in t)if(r=e.call(t[s],s,t[s]),r===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(se,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(n(Object(t))?re.merge(i,"string"==typeof t?[t]:t):X.call(i,t)),i},inArray:function(t,e,n){var i;if(e){if(K)return K.call(e,t,n);for(i=e.length,n=n?0>n?Math.max(0,i+n):n:0;i>n;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;n>i;)t[r++]=e[i++];if(n!==n)for(;void 0!==e[i];)t[r++]=e[i++];return t.length=r,t},grep:function(t,e,n){for(var i,r=[],s=0,o=t.length,a=!n;o>s;s++)i=!e(t[s],s),i!==a&&r.push(t[s]);return r},map:function(t,e,i){var r,s=0,o=t.length,a=n(t),l=[];if(a)for(;o>s;s++)r=e(t[s],s,i),null!=r&&l.push(r);else for(s in t)r=e(t[s],s,i),null!=r&&l.push(r);return Q.apply([],l)},guid:1,proxy:function(t,e){var n,i,r;return"string"==typeof e&&(r=t[e],e=t,t=r),re.isFunction(t)?(n=Y.call(arguments,2),i=function(){return t.apply(e||this,n.concat(Y.call(arguments)))},i.guid=t.guid=t.guid||re.guid++,i):void 0},now:function(){return+new Date},support:ne}),re.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){Z["[object "+e+"]"]=e.toLowerCase()});var ce=function(t){function e(t,e,n,i){var r,s,o,a,l,c,p,f,d,g;if((e?e.ownerDocument||e:F)!==$&&P(e),e=e||$,n=n||[],!t||"string"!=typeof t)return n;if(1!==(a=e.nodeType)&&9!==a)return[];if(M&&!i){if(r=ve.exec(t))if(o=r[1]){if(9===a){if(s=e.getElementById(o),!s||!s.parentNode)return n;if(s.id===o)return n.push(s),n}else if(e.ownerDocument&&(s=e.ownerDocument.getElementById(o))&&N(e,s)&&s.id===o)return n.push(s),n}else{if(r[2])return Z.apply(n,e.getElementsByTagName(t)),n;if((o=r[3])&&S.getElementsByClassName&&e.getElementsByClassName)return Z.apply(n,e.getElementsByClassName(o)),n}if(S.qsa&&(!L||!L.test(t))){if(f=p=H,d=e,g=9===a&&t,1===a&&"object"!==e.nodeName.toLowerCase()){for(c=T(t),(p=e.getAttribute("id"))?f=p.replace(be,"\\$&"):e.setAttribute("id",f),f="[id='"+f+"'] ",l=c.length;l--;)c[l]=f+h(c[l]);d=we.test(t)&&u(e.parentNode)||e,g=c.join(",")}if(g)try{return Z.apply(n,d.querySelectorAll(g)),n}catch(m){}finally{p||e.removeAttribute("id")}}}return C(t.replace(le,"$1"),e,n,i)}function n(){function t(n,i){return e.push(n+" ")>_.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[H]=!0,t}function r(t){var e=$.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function s(t,e){for(var n=t.split("|"),i=t.length;i--;)_.attrHandle[n[i]]=e}function o(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||G)-(~t.sourceIndex||G);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function a(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function l(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function c(t){return i(function(e){return e=+e,i(function(n,i){for(var r,s=t([],n.length,e),o=s.length;o--;)n[r=s[o]]&&(n[r]=!(i[r]=n[r]))})})}function u(t){return t&&typeof t.getElementsByTagName!==U&&t}function p(){}function h(t){for(var e=0,n=t.length,i="";n>e;e++)i+=t[e].value;return i}function f(t,e,n){var i=e.dir,r=n&&"parentNode"===i,s=q++;return e.first?function(e,n,s){for(;e=e[i];)if(1===e.nodeType||r)return t(e,n,s)}:function(e,n,o){var a,l,c=[z,s];if(o){for(;e=e[i];)if((1===e.nodeType||r)&&t(e,n,o))return!0}else for(;e=e[i];)if(1===e.nodeType||r){if(l=e[H]||(e[H]={}),(a=l[i])&&a[0]===z&&a[1]===s)return c[2]=a[2];if(l[i]=c,c[2]=t(e,n,o))return!0}}}function d(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function g(t,n,i){for(var r=0,s=n.length;s>r;r++)e(t,n[r],i);return i}function m(t,e,n,i,r){for(var s,o=[],a=0,l=t.length,c=null!=e;l>a;a++)(s=t[a])&&(!n||n(s,i,r))&&(o.push(s),c&&e.push(a));return o}function y(t,e,n,r,s,o){return r&&!r[H]&&(r=y(r)),s&&!s[H]&&(s=y(s,o)),i(function(i,o,a,l){var c,u,p,h=[],f=[],d=o.length,y=i||g(e||"*",a.nodeType?[a]:a,[]),v=!t||!i&&e?y:m(y,h,t,a,l),w=n?s||(i?t:d||r)?[]:o:v;if(n&&n(v,w,a,l),r)for(c=m(w,f),r(c,[],a,l),u=c.length;u--;)(p=c[u])&&(w[f[u]]=!(v[f[u]]=p));if(i){if(s||t){if(s){for(c=[],u=w.length;u--;)(p=w[u])&&c.push(v[u]=p);s(null,w=[],c,l)}for(u=w.length;u--;)(p=w[u])&&(c=s?ee.call(i,p):h[u])>-1&&(i[c]=!(o[c]=p))}}else w=m(w===o?w.splice(d,w.length):w),s?s(null,o,w,l):Z.apply(o,w)})}function v(t){for(var e,n,i,r=t.length,s=_.relative[t[0].type],o=s||_.relative[" "],a=s?1:0,l=f(function(t){return t===e},o,!0),c=f(function(t){return ee.call(e,t)>-1},o,!0),u=[function(t,n,i){return!s&&(i||n!==j)||((e=n).nodeType?l(t,n,i):c(t,n,i))}];r>a;a++)if(n=_.relative[t[a].type])u=[f(d(u),n)];else{if(n=_.filter[t[a].type].apply(null,t[a].matches),n[H]){for(i=++a;r>i&&!_.relative[t[i].type];i++);return y(a>1&&d(u),a>1&&h(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(le,"$1"),n,i>a&&v(t.slice(a,i)),r>i&&v(t=t.slice(i)),r>i&&h(t))}u.push(n)}return d(u)}function w(t,n){var r=n.length>0,s=t.length>0,o=function(i,o,a,l,c){var u,p,h,f=0,d="0",g=i&&[],y=[],v=j,w=i||s&&_.find.TAG("*",c),b=z+=null==v?1:Math.random()||.1,S=w.length;for(c&&(j=o!==$&&o);d!==S&&null!=(u=w[d]);d++){if(s&&u){for(p=0;h=t[p++];)if(h(u,o,a)){l.push(u);break}c&&(z=b)}r&&((u=!h&&u)&&f--,i&&g.push(u))}if(f+=d,r&&d!==f){for(p=0;h=n[p++];)h(g,y,o,a);if(i){if(f>0)for(;d--;)g[d]||y[d]||(y[d]=X.call(l));y=m(y)}Z.apply(l,y),c&&!i&&y.length>0&&f+n.length>1&&e.uniqueSort(l)}return c&&(z=b,j=v),g};return r?i(o):o}var b,S,_,k,x,T,A,C,j,J,E,P,$,O,M,L,I,D,N,H="sizzle"+-new Date,F=t.document,z=0,q=0,R=n(),B=n(),V=n(),W=function(t,e){return t===e&&(E=!0),0},U="undefined",G=1<<31,Y={}.hasOwnProperty,Q=[],X=Q.pop,K=Q.push,Z=Q.push,te=Q.slice,ee=Q.indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(this[e]===t)return e;return-1},ne="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ie="[\\x20\\t\\r\\n\\f]",re="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",se=re.replace("w","w#"),oe="\\["+ie+"*("+re+")(?:"+ie+"*([*^$|!~]?=)"+ie+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+se+"))|)"+ie+"*\\]",ae=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",le=new RegExp("^"+ie+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ie+"+$","g"),ce=new RegExp("^"+ie+"*,"+ie+"*"),ue=new RegExp("^"+ie+"*([>+~]|"+ie+")"+ie+"*"),pe=new RegExp("="+ie+"*([^\\]'\"]*?)"+ie+"*\\]","g"),he=new RegExp(ae),fe=new RegExp("^"+se+"$"),de={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re.replace("w","w*")+")"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ie+"*(even|odd|(([+-]|)(\\d*)n|)"+ie+"*(?:([+-]|)"+ie+"*(\\d+)|))"+ie+"*\\)|)","i"),bool:new RegExp("^(?:"+ne+")$","i"),needsContext:new RegExp("^"+ie+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ie+"*((?:-\\d)?\\d*)"+ie+"*\\)|)(?=[^-]|$)","i")},ge=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ye=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,we=/[+~]/,be=/'|\\/g,Se=new RegExp("\\\\([\\da-f]{1,6}"+ie+"?|("+ie+")|.)","ig"),_e=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)};try{Z.apply(Q=te.call(F.childNodes),F.childNodes),Q[F.childNodes.length].nodeType}catch(ke){Z={apply:Q.length?function(t,e){K.apply(t,te.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}S=e.support={},x=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},P=e.setDocument=function(t){var e,n=t?t.ownerDocument||t:F,i=n.defaultView;return n!==$&&9===n.nodeType&&n.documentElement?($=n,O=n.documentElement,M=!x(n),i&&i!==i.top&&(i.addEventListener?i.addEventListener("unload",function(){P()},!1):i.attachEvent&&i.attachEvent("onunload",function(){P()})),S.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),S.getElementsByTagName=r(function(t){return t.appendChild(n.createComment("")),!t.getElementsByTagName("*").length}),S.getElementsByClassName=ye.test(n.getElementsByClassName)&&r(function(t){return t.innerHTML="<div class='a'></div><div class='a i'></div>",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),S.getById=r(function(t){return O.appendChild(t).id=H,!n.getElementsByName||!n.getElementsByName(H).length}),S.getById?(_.find.ID=function(t,e){if(typeof e.getElementById!==U&&M){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},_.filter.ID=function(t){var e=t.replace(Se,_e);return function(t){return t.getAttribute("id")===e}}):(delete _.find.ID,_.filter.ID=function(t){var e=t.replace(Se,_e);return function(t){var n=typeof t.getAttributeNode!==U&&t.getAttributeNode("id");return n&&n.value===e}}),_.find.TAG=S.getElementsByTagName?function(t,e){return typeof e.getElementsByTagName!==U?e.getElementsByTagName(t):void 0}:function(t,e){var n,i=[],r=0,s=e.getElementsByTagName(t);if("*"===t){for(;n=s[r++];)1===n.nodeType&&i.push(n);return i}return s},_.find.CLASS=S.getElementsByClassName&&function(t,e){return typeof e.getElementsByClassName!==U&&M?e.getElementsByClassName(t):void 0},I=[],L=[],(S.qsa=ye.test(n.querySelectorAll))&&(r(function(t){t.innerHTML="<select msallowclip=''><option selected=''></option></select>",t.querySelectorAll("[msallowclip^='']").length&&L.push("[*^$]="+ie+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||L.push("\\["+ie+"*(?:value|"+ne+")"),t.querySelectorAll(":checked").length||L.push(":checked")}),r(function(t){var e=n.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&L.push("name"+ie+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||L.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),L.push(",.*:")})),(S.matchesSelector=ye.test(D=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&r(function(t){S.disconnectedMatch=D.call(t,"div"),D.call(t,"[s!='']:x"),I.push("!=",ae)}),L=L.length&&new RegExp(L.join("|")),I=I.length&&new RegExp(I.join("|")),e=ye.test(O.compareDocumentPosition),N=e||ye.test(O.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},W=e?function(t,e){if(t===e)return E=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i?i:(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!S.sortDetached&&e.compareDocumentPosition(t)===i?t===n||t.ownerDocument===F&&N(F,t)?-1:e===n||e.ownerDocument===F&&N(F,e)?1:J?ee.call(J,t)-ee.call(J,e):0:4&i?-1:1)}:function(t,e){if(t===e)return E=!0,0;var i,r=0,s=t.parentNode,a=e.parentNode,l=[t],c=[e];if(!s||!a)return t===n?-1:e===n?1:s?-1:a?1:J?ee.call(J,t)-ee.call(J,e):0;if(s===a)return o(t,e);for(i=t;i=i.parentNode;)l.unshift(i);for(i=e;i=i.parentNode;)c.unshift(i);for(;l[r]===c[r];)r++;return r?o(l[r],c[r]):l[r]===F?-1:c[r]===F?1:0},n):$},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==$&&P(t),n=n.replace(pe,"='$1']"),!(!S.matchesSelector||!M||I&&I.test(n)||L&&L.test(n)))try{var i=D.call(t,n);if(i||S.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(r){}return e(n,$,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==$&&P(t),N(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==$&&P(t);var n=_.attrHandle[e.toLowerCase()],i=n&&Y.call(_.attrHandle,e.toLowerCase())?n(t,e,!M):void 0;return void 0!==i?i:S.attributes||!M?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,r=0;if(E=!S.detectDuplicates,J=!S.sortStable&&t.slice(0),t.sort(W),E){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return J=null,t},k=e.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=k(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=k(e);return n},_=e.selectors={cacheLength:50,createPseudo:i,match:de,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Se,_e),t[3]=(t[3]||t[4]||t[5]||"").replace(Se,_e),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return de.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&he.test(n)&&(e=T(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Se,_e).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=R[t+" "];return e||(e=new RegExp("(^|"+ie+")"+t+"("+ie+"|$)"))&&R(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==U&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(r){var s=e.attr(r,t);return null==s?"!="===n:n?(s+="","="===n?s===i:"!="===n?s!==i:"^="===n?i&&0===s.indexOf(i):"*="===n?i&&s.indexOf(i)>-1:"$="===n?i&&s.slice(-i.length)===i:"~="===n?(" "+s+" ").indexOf(i)>-1:"|="===n?s===i||s.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(t,e,n,i,r){var s="nth"!==t.slice(0,3),o="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,u,p,h,f,d,g=s!==o?"nextSibling":"previousSibling",m=e.parentNode,y=a&&e.nodeName.toLowerCase(),v=!l&&!a;if(m){if(s){for(;g;){for(p=e;p=p[g];)if(a?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;d=g="only"===t&&!d&&"nextSibling"}return!0}if(d=[o?m.firstChild:m.lastChild],o&&v){for(u=m[H]||(m[H]={}),c=u[t]||[],f=c[0]===z&&c[1],h=c[0]===z&&c[2],p=f&&m.childNodes[f];p=++f&&p&&p[g]||(h=f=0)||d.pop();)if(1===p.nodeType&&++h&&p===e){u[t]=[z,f,h];break}}else if(v&&(c=(e[H]||(e[H]={}))[t])&&c[0]===z)h=c[1];else for(;(p=++f&&p&&p[g]||(h=f=0)||d.pop())&&((a?p.nodeName.toLowerCase()!==y:1!==p.nodeType)||!++h||(v&&((p[H]||(p[H]={}))[t]=[z,h]),p!==e)););return h-=r,h===i||h%i===0&&h/i>=0}}},PSEUDO:function(t,n){var r,s=_.pseudos[t]||_.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return s[H]?s(n):s.length>1?(r=[t,t,"",n],_.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,r=s(t,n),o=r.length;o--;)i=ee.call(t,r[o]),t[i]=!(e[i]=r[o])}):function(t){return s(t,0,r)}):s}},pseudos:{not:i(function(t){var e=[],n=[],r=A(t.replace(le,"$1"));return r[H]?i(function(t,e,n,i){for(var s,o=r(t,null,i,[]),a=t.length;a--;)(s=o[a])&&(t[a]=!(e[a]=s))}):function(t,i,s){return e[0]=t,r(e,null,s,n),!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return function(e){return(e.textContent||e.innerText||k(e)).indexOf(t)>-1}}),lang:i(function(t){return fe.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(Se,_e).toLowerCase(),function(e){var n;do if(n=M?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===O},focus:function(t){return t===$.activeElement&&(!$.hasFocus||$.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!_.pseudos.empty(t)},header:function(t){return me.test(t.nodeName)},input:function(t){return ge.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:c(function(){return[0]}),last:c(function(t,e){return[e-1]}),eq:c(function(t,e,n){return[0>n?n+e:n]}),even:c(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:c(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:c(function(t,e,n){for(var i=0>n?n+e:n;--i>=0;)t.push(i);return t}),gt:c(function(t,e,n){for(var i=0>n?n+e:n;++i<e;)t.push(i);return t})}},_.pseudos.nth=_.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[b]=a(b);for(b in{submit:!0,reset:!0})_.pseudos[b]=l(b);return p.prototype=_.filters=_.pseudos,_.setFilters=new p,T=e.tokenize=function(t,n){var i,r,s,o,a,l,c,u=B[t+" "];if(u)return n?0:u.slice(0);for(a=t,l=[],c=_.preFilter;a;){(!i||(r=ce.exec(a)))&&(r&&(a=a.slice(r[0].length)||a),l.push(s=[])),i=!1,(r=ue.exec(a))&&(i=r.shift(),s.push({value:i,type:r[0].replace(le," ")}),a=a.slice(i.length));for(o in _.filter)!(r=de[o].exec(a))||c[o]&&!(r=c[o](r))||(i=r.shift(),s.push({value:i,type:o,matches:r}),a=a.slice(i.length));if(!i)break}return n?a.length:a?e.error(t):B(t,l).slice(0)},A=e.compile=function(t,e){var n,i=[],r=[],s=V[t+" "];if(!s){for(e||(e=T(t)),n=e.length;n--;)s=v(e[n]),s[H]?i.push(s):r.push(s);s=V(t,w(r,i)),s.selector=t}return s},C=e.select=function(t,e,n,i){var r,s,o,a,l,c="function"==typeof t&&t,p=!i&&T(t=c.selector||t);if(n=n||[],1===p.length){if(s=p[0]=p[0].slice(0),s.length>2&&"ID"===(o=s[0]).type&&S.getById&&9===e.nodeType&&M&&_.relative[s[1].type]){if(e=(_.find.ID(o.matches[0].replace(Se,_e),e)||[])[0],!e)return n;c&&(e=e.parentNode),t=t.slice(s.shift().value.length)}for(r=de.needsContext.test(t)?0:s.length;r--&&(o=s[r],!_.relative[a=o.type]);)if((l=_.find[a])&&(i=l(o.matches[0].replace(Se,_e),we.test(s[0].type)&&u(e.parentNode)||e))){if(s.splice(r,1),t=i.length&&h(s),!t)return Z.apply(n,i),n;
  2. break}}return(c||A(t,p))(i,e,!M,n,we.test(t)&&u(e.parentNode)||e),n},S.sortStable=H.split("").sort(W).join("")===H,S.detectDuplicates=!!E,P(),S.sortDetached=r(function(t){return 1&t.compareDocumentPosition($.createElement("div"))}),r(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||s("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),S.attributes&&r(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||s("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||s(ne,function(t,e,n){var i;return n?void 0:t[e]===!0?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(t);re.find=ce,re.expr=ce.selectors,re.expr[":"]=re.expr.pseudos,re.unique=ce.uniqueSort,re.text=ce.getText,re.isXMLDoc=ce.isXML,re.contains=ce.contains;var ue=re.expr.match.needsContext,pe=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,he=/^.[^:#\[\.,]*$/;re.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?re.find.matchesSelector(i,t)?[i]:[]:re.find.matches(t,re.grep(e,function(t){return 1===t.nodeType}))},re.fn.extend({find:function(t){var e,n=[],i=this,r=i.length;if("string"!=typeof t)return this.pushStack(re(t).filter(function(){for(e=0;r>e;e++)if(re.contains(i[e],this))return!0}));for(e=0;r>e;e++)re.find(t,i[e],n);return n=this.pushStack(r>1?re.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(i(this,t||[],!1))},not:function(t){return this.pushStack(i(this,t||[],!0))},is:function(t){return!!i(this,"string"==typeof t&&ue.test(t)?re(t):t||[],!1).length}});var fe,de=t.document,ge=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,me=re.fn.init=function(t,e){var n,i;if(!t)return this;if("string"==typeof t){if(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:ge.exec(t),!n||!n[1]&&e)return!e||e.jquery?(e||fe).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof re?e[0]:e,re.merge(this,re.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:de,!0)),pe.test(n[1])&&re.isPlainObject(e))for(n in e)re.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if(i=de.getElementById(n[2]),i&&i.parentNode){if(i.id!==n[2])return fe.find(t);this.length=1,this[0]=i}return this.context=de,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):re.isFunction(t)?"undefined"!=typeof fe.ready?fe.ready(t):t(re):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),re.makeArray(t,this))};me.prototype=re.fn,fe=re(de);var ye=/^(?:parents|prev(?:Until|All))/,ve={children:!0,contents:!0,next:!0,prev:!0};re.extend({dir:function(t,e,n){for(var i=[],r=t[e];r&&9!==r.nodeType&&(void 0===n||1!==r.nodeType||!re(r).is(n));)1===r.nodeType&&i.push(r),r=r[e];return i},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),re.fn.extend({has:function(t){var e,n=re(t,this),i=n.length;return this.filter(function(){for(e=0;i>e;e++)if(re.contains(this,n[e]))return!0})},closest:function(t,e){for(var n,i=0,r=this.length,s=[],o=ue.test(t)||"string"!=typeof t?re(t,e||this.context):0;r>i;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&re.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?re.unique(s):s)},index:function(t){return t?"string"==typeof t?re.inArray(this[0],re(t)):re.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(re.unique(re.merge(this.get(),re(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),re.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return re.dir(t,"parentNode")},parentsUntil:function(t,e,n){return re.dir(t,"parentNode",n)},next:function(t){return r(t,"nextSibling")},prev:function(t){return r(t,"previousSibling")},nextAll:function(t){return re.dir(t,"nextSibling")},prevAll:function(t){return re.dir(t,"previousSibling")},nextUntil:function(t,e,n){return re.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return re.dir(t,"previousSibling",n)},siblings:function(t){return re.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return re.sibling(t.firstChild)},contents:function(t){return re.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:re.merge([],t.childNodes)}},function(t,e){re.fn[t]=function(n,i){var r=re.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=re.filter(i,r)),this.length>1&&(ve[t]||(r=re.unique(r)),ye.test(t)&&(r=r.reverse())),this.pushStack(r)}});var we=/\S+/g,be={};re.Callbacks=function(t){t="string"==typeof t?be[t]||s(t):re.extend({},t);var e,n,i,r,o,a,l=[],c=!t.once&&[],u=function(s){for(n=t.memory&&s,i=!0,o=a||0,a=0,r=l.length,e=!0;l&&r>o;o++)if(l[o].apply(s[0],s[1])===!1&&t.stopOnFalse){n=!1;break}e=!1,l&&(c?c.length&&u(c.shift()):n?l=[]:p.disable())},p={add:function(){if(l){var i=l.length;!function s(e){re.each(e,function(e,n){var i=re.type(n);"function"===i?t.unique&&p.has(n)||l.push(n):n&&n.length&&"string"!==i&&s(n)})}(arguments),e?r=l.length:n&&(a=i,u(n))}return this},remove:function(){return l&&re.each(arguments,function(t,n){for(var i;(i=re.inArray(n,l,i))>-1;)l.splice(i,1),e&&(r>=i&&r--,o>=i&&o--)}),this},has:function(t){return t?re.inArray(t,l)>-1:!(!l||!l.length)},empty:function(){return l=[],r=0,this},disable:function(){return l=c=n=void 0,this},disabled:function(){return!l},lock:function(){return c=void 0,n||p.disable(),this},locked:function(){return!c},fireWith:function(t,n){return!l||i&&!c||(n=n||[],n=[t,n.slice?n.slice():n],e?c.push(n):u(n)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},re.extend({Deferred:function(t){var e=[["resolve","done",re.Callbacks("once memory"),"resolved"],["reject","fail",re.Callbacks("once memory"),"rejected"],["notify","progress",re.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return re.Deferred(function(n){re.each(e,function(e,s){var o=re.isFunction(t[e])&&t[e];r[s[1]](function(){var t=o&&o.apply(this,arguments);t&&re.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s[0]+"With"](this===i?n.promise():this,o?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?re.extend(t,i):i}},r={};return i.pipe=i.then,re.each(e,function(t,s){var o=s[2],a=s[3];i[s[1]]=o.add,a&&o.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),r[s[0]]=function(){return r[s[0]+"With"](this===r?i:this,arguments),this},r[s[0]+"With"]=o.fireWith}),i.promise(r),t&&t.call(r,r),r},when:function(t){var e,n,i,r=0,s=Y.call(arguments),o=s.length,a=1!==o||t&&re.isFunction(t.promise)?o:0,l=1===a?t:re.Deferred(),c=function(t,n,i){return function(r){n[t]=this,i[t]=arguments.length>1?Y.call(arguments):r,i===e?l.notifyWith(n,i):--a||l.resolveWith(n,i)}};if(o>1)for(e=new Array(o),n=new Array(o),i=new Array(o);o>r;r++)s[r]&&re.isFunction(s[r].promise)?s[r].promise().done(c(r,i,s)).fail(l.reject).progress(c(r,n,e)):--a;return a||l.resolveWith(i,s),l.promise()}});var Se;re.fn.ready=function(t){return re.ready.promise().done(t),this},re.extend({isReady:!1,readyWait:1,holdReady:function(t){t?re.readyWait++:re.ready(!0)},ready:function(t){if(t===!0?!--re.readyWait:!re.isReady){if(!de.body)return setTimeout(re.ready);re.isReady=!0,t!==!0&&--re.readyWait>0||(Se.resolveWith(de,[re]),re.fn.triggerHandler&&(re(de).triggerHandler("ready"),re(de).off("ready")))}}}),re.ready.promise=function(e){if(!Se)if(Se=re.Deferred(),"complete"===de.readyState)setTimeout(re.ready);else if(de.addEventListener)de.addEventListener("DOMContentLoaded",a,!1),t.addEventListener("load",a,!1);else{de.attachEvent("onreadystatechange",a),t.attachEvent("onload",a);var n=!1;try{n=null==t.frameElement&&de.documentElement}catch(i){}n&&n.doScroll&&!function r(){if(!re.isReady){try{n.doScroll("left")}catch(t){return setTimeout(r,50)}o(),re.ready()}}()}return Se.promise(e)};var _e,ke="undefined";for(_e in re(ne))break;ne.ownLast="0"!==_e,ne.inlineBlockNeedsLayout=!1,re(function(){var t,e,n,i;n=de.getElementsByTagName("body")[0],n&&n.style&&(e=de.createElement("div"),i=de.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),typeof e.style.zoom!==ke&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",ne.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(i))}),function(){var t=de.createElement("div");if(null==ne.deleteExpando){ne.deleteExpando=!0;try{delete t.test}catch(e){ne.deleteExpando=!1}}t=null}(),re.acceptData=function(t){var e=re.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return 1!==n&&9!==n?!1:!e||e!==!0&&t.getAttribute("classid")===e};var xe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Te=/([A-Z])/g;re.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return t=t.nodeType?re.cache[t[re.expando]]:t[re.expando],!!t&&!c(t)},data:function(t,e,n){return u(t,e,n)},removeData:function(t,e){return p(t,e)},_data:function(t,e,n){return u(t,e,n,!0)},_removeData:function(t,e){return p(t,e,!0)}}),re.fn.extend({data:function(t,e){var n,i,r,s=this[0],o=s&&s.attributes;if(void 0===t){if(this.length&&(r=re.data(s),1===s.nodeType&&!re._data(s,"parsedAttrs"))){for(n=o.length;n--;)o[n]&&(i=o[n].name,0===i.indexOf("data-")&&(i=re.camelCase(i.slice(5)),l(s,i,r[i])));re._data(s,"parsedAttrs",!0)}return r}return"object"==typeof t?this.each(function(){re.data(this,t)}):arguments.length>1?this.each(function(){re.data(this,t,e)}):s?l(s,t,re.data(s,t)):void 0},removeData:function(t){return this.each(function(){re.removeData(this,t)})}}),re.extend({queue:function(t,e,n){var i;return t?(e=(e||"fx")+"queue",i=re._data(t,e),n&&(!i||re.isArray(n)?i=re._data(t,e,re.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=re.queue(t,e),i=n.length,r=n.shift(),s=re._queueHooks(t,e),o=function(){re.dequeue(t,e)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete s.stop,r.call(t,o,s)),!i&&s&&s.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return re._data(t,n)||re._data(t,n,{empty:re.Callbacks("once memory").add(function(){re._removeData(t,e+"queue"),re._removeData(t,n)})})}}),re.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?re.queue(this[0],t):void 0===e?this:this.each(function(){var n=re.queue(this,t,e);re._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&re.dequeue(this,t)})},dequeue:function(t){return this.each(function(){re.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=re.Deferred(),s=this,o=this.length,a=function(){--i||r.resolveWith(s,[s])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)n=re._data(s[o],t+"queueHooks"),n&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(e)}});var Ae=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ce=["Top","Right","Bottom","Left"],je=function(t,e){return t=e||t,"none"===re.css(t,"display")||!re.contains(t.ownerDocument,t)},Je=re.access=function(t,e,n,i,r,s,o){var a=0,l=t.length,c=null==n;if("object"===re.type(n)){r=!0;for(a in n)re.access(t,e,a,n[a],!0,s,o)}else if(void 0!==i&&(r=!0,re.isFunction(i)||(o=!0),c&&(o?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(re(t),n)})),e))for(;l>a;a++)e(t[a],n,o?i:i.call(t[a],a,e(t[a],n)));return r?t:c?e.call(t):l?e(t[0],n):s},Ee=/^(?:checkbox|radio)$/i;!function(){var t=de.createElement("input"),e=de.createElement("div"),n=de.createDocumentFragment();if(e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ne.leadingWhitespace=3===e.firstChild.nodeType,ne.tbody=!e.getElementsByTagName("tbody").length,ne.htmlSerialize=!!e.getElementsByTagName("link").length,ne.html5Clone="<:nav></:nav>"!==de.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,n.appendChild(t),ne.appendChecked=t.checked,e.innerHTML="<textarea>x</textarea>",ne.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,n.appendChild(e),e.innerHTML="<input type='radio' checked='checked' name='t'/>",ne.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,ne.noCloneEvent=!0,e.attachEvent&&(e.attachEvent("onclick",function(){ne.noCloneEvent=!1}),e.cloneNode(!0).click()),null==ne.deleteExpando){ne.deleteExpando=!0;try{delete e.test}catch(i){ne.deleteExpando=!1}}}(),function(){var e,n,i=de.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})n="on"+e,(ne[e+"Bubbles"]=n in t)||(i.setAttribute(n,"t"),ne[e+"Bubbles"]=i.attributes[n].expando===!1);i=null}();var Pe=/^(?:input|select|textarea)$/i,$e=/^key/,Oe=/^(?:mouse|pointer|contextmenu)|click/,Me=/^(?:focusinfocus|focusoutblur)$/,Le=/^([^.]*)(?:\.(.+)|)$/;re.event={global:{},add:function(t,e,n,i,r){var s,o,a,l,c,u,p,h,f,d,g,m=re._data(t);if(m){for(n.handler&&(l=n,n=l.handler,r=l.selector),n.guid||(n.guid=re.guid++),(o=m.events)||(o=m.events={}),(u=m.handle)||(u=m.handle=function(t){return typeof re===ke||t&&re.event.triggered===t.type?void 0:re.event.dispatch.apply(u.elem,arguments)},u.elem=t),e=(e||"").match(we)||[""],a=e.length;a--;)s=Le.exec(e[a])||[],f=g=s[1],d=(s[2]||"").split(".").sort(),f&&(c=re.event.special[f]||{},f=(r?c.delegateType:c.bindType)||f,c=re.event.special[f]||{},p=re.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&re.expr.match.needsContext.test(r),namespace:d.join(".")},l),(h=o[f])||(h=o[f]=[],h.delegateCount=0,c.setup&&c.setup.call(t,i,d,u)!==!1||(t.addEventListener?t.addEventListener(f,u,!1):t.attachEvent&&t.attachEvent("on"+f,u))),c.add&&(c.add.call(t,p),p.handler.guid||(p.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,p):h.push(p),re.event.global[f]=!0);t=null}},remove:function(t,e,n,i,r){var s,o,a,l,c,u,p,h,f,d,g,m=re.hasData(t)&&re._data(t);if(m&&(u=m.events)){for(e=(e||"").match(we)||[""],c=e.length;c--;)if(a=Le.exec(e[c])||[],f=g=a[1],d=(a[2]||"").split(".").sort(),f){for(p=re.event.special[f]||{},f=(i?p.delegateType:p.bindType)||f,h=u[f]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=s=h.length;s--;)o=h[s],!r&&g!==o.origType||n&&n.guid!==o.guid||a&&!a.test(o.namespace)||i&&i!==o.selector&&("**"!==i||!o.selector)||(h.splice(s,1),o.selector&&h.delegateCount--,p.remove&&p.remove.call(t,o));l&&!h.length&&(p.teardown&&p.teardown.call(t,d,m.handle)!==!1||re.removeEvent(t,f,m.handle),delete u[f])}else for(f in u)re.event.remove(t,f+e[c],n,i,!0);re.isEmptyObject(u)&&(delete m.handle,re._removeData(t,"events"))}},trigger:function(e,n,i,r){var s,o,a,l,c,u,p,h=[i||de],f=ee.call(e,"type")?e.type:e,d=ee.call(e,"namespace")?e.namespace.split("."):[];if(a=u=i=i||de,3!==i.nodeType&&8!==i.nodeType&&!Me.test(f+re.event.triggered)&&(f.indexOf(".")>=0&&(d=f.split("."),f=d.shift(),d.sort()),o=f.indexOf(":")<0&&"on"+f,e=e[re.expando]?e:new re.Event(f,"object"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=d.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:re.makeArray(n,[e]),c=re.event.special[f]||{},r||!c.trigger||c.trigger.apply(i,n)!==!1)){if(!r&&!c.noBubble&&!re.isWindow(i)){for(l=c.delegateType||f,Me.test(l+f)||(a=a.parentNode);a;a=a.parentNode)h.push(a),u=a;u===(i.ownerDocument||de)&&h.push(u.defaultView||u.parentWindow||t)}for(p=0;(a=h[p++])&&!e.isPropagationStopped();)e.type=p>1?l:c.bindType||f,s=(re._data(a,"events")||{})[e.type]&&re._data(a,"handle"),s&&s.apply(a,n),s=o&&a[o],s&&s.apply&&re.acceptData(a)&&(e.result=s.apply(a,n),e.result===!1&&e.preventDefault());if(e.type=f,!r&&!e.isDefaultPrevented()&&(!c._default||c._default.apply(h.pop(),n)===!1)&&re.acceptData(i)&&o&&i[f]&&!re.isWindow(i)){u=i[o],u&&(i[o]=null),re.event.triggered=f;try{i[f]()}catch(g){}re.event.triggered=void 0,u&&(i[o]=u)}return e.result}},dispatch:function(t){t=re.event.fix(t);var e,n,i,r,s,o=[],a=Y.call(arguments),l=(re._data(this,"events")||{})[t.type]||[],c=re.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,t)!==!1){for(o=re.event.handlers.call(this,t,l),e=0;(r=o[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,s=0;(i=r.handlers[s++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(i.namespace))&&(t.handleObj=i,t.data=i.data,n=((re.event.special[i.origType]||{}).handle||i.handler).apply(r.elem,a),void 0!==n&&(t.result=n)===!1&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,r,s,o=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&(!t.button||"click"!==t.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==t.type)){for(r=[],s=0;a>s;s++)i=e[s],n=i.selector+" ",void 0===r[n]&&(r[n]=i.needsContext?re(n,this).index(l)>=0:re.find(n,this,null,[l]).length),r[n]&&r.push(i);r.length&&o.push({elem:l,handlers:r})}return a<e.length&&o.push({elem:this,handlers:e.slice(a)}),o},fix:function(t){if(t[re.expando])return t;var e,n,i,r=t.type,s=t,o=this.fixHooks[r];for(o||(this.fixHooks[r]=o=Oe.test(r)?this.mouseHooks:$e.test(r)?this.keyHooks:{}),i=o.props?this.props.concat(o.props):this.props,t=new re.Event(s),e=i.length;e--;)n=i[e],t[n]=s[n];return t.target||(t.target=s.srcElement||de),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,o.filter?o.filter(t,s):t},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,i,r,s=e.button,o=e.fromElement;return null==t.pageX&&null!=e.clientX&&(i=t.target.ownerDocument||de,r=i.documentElement,n=i.body,t.pageX=e.clientX+(r&&r.scrollLeft||n&&n.scrollLeft||0)-(r&&r.clientLeft||n&&n.clientLeft||0),t.pageY=e.clientY+(r&&r.scrollTop||n&&n.scrollTop||0)-(r&&r.clientTop||n&&n.clientTop||0)),!t.relatedTarget&&o&&(t.relatedTarget=o===t.target?e.toElement:o),t.which||void 0===s||(t.which=1&s?1:2&s?3:4&s?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==d()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){return this===d()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return re.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(t){return re.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,i){var r=re.extend(new re.Event,n,{type:t,isSimulated:!0,originalEvent:{}});i?re.event.trigger(r,null,e):re.event.dispatch.call(e,r),r.isDefaultPrevented()&&n.preventDefault()}},re.removeEvent=de.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)}:function(t,e,n){var i="on"+e;t.detachEvent&&(typeof t[i]===ke&&(t[i]=null),t.detachEvent(i,n))},re.Event=function(t,e){return this instanceof re.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?h:f):this.type=t,e&&re.extend(this,e),this.timeStamp=t&&t.timeStamp||re.now(),void(this[re.expando]=!0)):new re.Event(t,e)},re.Event.prototype={isDefaultPrevented:f,isPropagationStopped:f,isImmediatePropagationStopped:f,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=h,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=h,t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=h,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},re.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){re.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,s=t.handleObj;return(!r||r!==i&&!re.contains(i,r))&&(t.type=s.origType,n=s.handler.apply(this,arguments),t.type=e),n}}}),ne.submitBubbles||(re.event.special.submit={setup:function(){return re.nodeName(this,"form")?!1:void re.event.add(this,"click._submit keypress._submit",function(t){var e=t.target,n=re.nodeName(e,"input")||re.nodeName(e,"button")?e.form:void 0;n&&!re._data(n,"submitBubbles")&&(re.event.add(n,"submit._submit",function(t){t._submit_bubble=!0}),re._data(n,"submitBubbles",!0))})},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&re.event.simulate("submit",this.parentNode,t,!0))},teardown:function(){return re.nodeName(this,"form")?!1:void re.event.remove(this,"._submit")}}),ne.changeBubbles||(re.event.special.change={setup:function(){return Pe.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(re.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),re.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),re.event.simulate("change",this,t,!0)})),!1):void re.event.add(this,"beforeactivate._change",function(t){var e=t.target;Pe.test(e.nodeName)&&!re._data(e,"changeBubbles")&&(re.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||re.event.simulate("change",this.parentNode,t,!0)}),re._data(e,"changeBubbles",!0))})},handle:function(t){var e=t.target;return this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type?t.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return re.event.remove(this,"._change"),!Pe.test(this.nodeName)}}),ne.focusinBubbles||re.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){re.event.simulate(e,t.target,re.event.fix(t),!0)};re.event.special[e]={setup:function(){var i=this.ownerDocument||this,r=re._data(i,e);r||i.addEventListener(t,n,!0),re._data(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=re._data(i,e)-1;r?re._data(i,e,r):(i.removeEventListener(t,n,!0),re._removeData(i,e))}}}),re.fn.extend({on:function(t,e,n,i,r){var s,o;if("object"==typeof t){"string"!=typeof e&&(n=n||e,e=void 0);for(s in t)this.on(s,e,n,t[s],r);return this}if(null==n&&null==i?(i=e,n=e=void 0):null==i&&("string"==typeof e?(i=n,n=void 0):(i=n,n=e,e=void 0)),i===!1)i=f;else if(!i)return this;return 1===r&&(o=i,i=function(t){return re().off(t),o.apply(this,arguments)},i.guid=o.guid||(o.guid=re.guid++)),this.each(function(){re.event.add(this,t,i,n,e)})},one:function(t,e,n,i){return this.on(t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,re(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return(e===!1||"function"==typeof e)&&(n=e,e=void 0),n===!1&&(n=f),this.each(function(){re.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){re.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?re.event.trigger(t,e,n,!0):void 0}});var Ie="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",De=/ jQuery\d+="(?:null|\d+)"/g,Ne=new RegExp("<(?:"+Ie+")[\\s/>]","i"),He=/^\s+/,Fe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ze=/<([\w:]+)/,qe=/<tbody/i,Re=/<|&#?\w+;/,Be=/<(?:script|style|link)/i,Ve=/checked\s*(?:[^=]|=\s*.checked.)/i,We=/^$|\/(?:java|ecma)script/i,Ue=/^true\/(.*)/,Ge=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Ye={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:ne.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Qe=g(de),Xe=Qe.appendChild(de.createElement("div"));Ye.optgroup=Ye.option,Ye.tbody=Ye.tfoot=Ye.colgroup=Ye.caption=Ye.thead,Ye.th=Ye.td,re.extend({clone:function(t,e,n){var i,r,s,o,a,l=re.contains(t.ownerDocument,t);if(ne.html5Clone||re.isXMLDoc(t)||!Ne.test("<"+t.nodeName+">")?s=t.cloneNode(!0):(Xe.innerHTML=t.outerHTML,Xe.removeChild(s=Xe.firstChild)),!(ne.noCloneEvent&&ne.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||re.isXMLDoc(t)))for(i=m(s),a=m(t),o=0;null!=(r=a[o]);++o)i[o]&&k(r,i[o]);if(e)if(n)for(a=a||m(t),i=i||m(s),o=0;null!=(r=a[o]);o++)_(r,i[o]);else _(t,s);return i=m(s,"script"),i.length>0&&S(i,!l&&m(t,"script")),i=a=r=null,s},buildFragment:function(t,e,n,i){for(var r,s,o,a,l,c,u,p=t.length,h=g(e),f=[],d=0;p>d;d++)if(s=t[d],s||0===s)if("object"===re.type(s))re.merge(f,s.nodeType?[s]:s);else if(Re.test(s)){for(a=a||h.appendChild(e.createElement("div")),l=(ze.exec(s)||["",""])[1].toLowerCase(),u=Ye[l]||Ye._default,a.innerHTML=u[1]+s.replace(Fe,"<$1></$2>")+u[2],r=u[0];r--;)a=a.lastChild;if(!ne.leadingWhitespace&&He.test(s)&&f.push(e.createTextNode(He.exec(s)[0])),!ne.tbody)for(s="table"!==l||qe.test(s)?"<table>"!==u[1]||qe.test(s)?0:a:a.firstChild,r=s&&s.childNodes.length;r--;)re.nodeName(c=s.childNodes[r],"tbody")&&!c.childNodes.length&&s.removeChild(c);for(re.merge(f,a.childNodes),a.textContent="";a.firstChild;)a.removeChild(a.firstChild);a=h.lastChild}else f.push(e.createTextNode(s));for(a&&h.removeChild(a),ne.appendChecked||re.grep(m(f,"input"),y),d=0;s=f[d++];)if((!i||-1===re.inArray(s,i))&&(o=re.contains(s.ownerDocument,s),a=m(h.appendChild(s),"script"),o&&S(a),n))for(r=0;s=a[r++];)We.test(s.type||"")&&n.push(s);return a=null,h},cleanData:function(t,e){for(var n,i,r,s,o=0,a=re.expando,l=re.cache,c=ne.deleteExpando,u=re.event.special;null!=(n=t[o]);o++)if((e||re.acceptData(n))&&(r=n[a],s=r&&l[r])){if(s.events)for(i in s.events)u[i]?re.event.remove(n,i):re.removeEvent(n,i,s.handle);l[r]&&(delete l[r],c?delete n[a]:typeof n.removeAttribute!==ke?n.removeAttribute(a):n[a]=null,G.push(r))}}}),re.fn.extend({text:function(t){return Je(this,function(t){return void 0===t?re.text(this):this.empty().append((this[0]&&this[0].ownerDocument||de).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=v(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=v(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,i=t?re.filter(t,this):this,r=0;null!=(n=i[r]);r++)e||1!==n.nodeType||re.cleanData(m(n)),n.parentNode&&(e&&re.contains(n.ownerDocument,n)&&S(m(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&re.cleanData(m(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&re.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return re.clone(this,t,e)})},html:function(t){return Je(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(De,""):void 0;if(!("string"!=typeof t||Be.test(t)||!ne.htmlSerialize&&Ne.test(t)||!ne.leadingWhitespace&&He.test(t)||Ye[(ze.exec(t)||["",""])[1].toLowerCase()])){t=t.replace(Fe,"<$1></$2>");try{for(;i>n;n++)e=this[n]||{},1===e.nodeType&&(re.cleanData(m(e,!1)),e.innerHTML=t);e=0}catch(r){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,re.cleanData(m(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=Q.apply([],t);var n,i,r,s,o,a,l=0,c=this.length,u=this,p=c-1,h=t[0],f=re.isFunction(h);if(f||c>1&&"string"==typeof h&&!ne.checkClone&&Ve.test(h))return this.each(function(n){var i=u.eq(n);f&&(t[0]=h.call(this,n,i.html())),i.domManip(t,e)});if(c&&(a=re.buildFragment(t,this[0].ownerDocument,!1,this),n=a.firstChild,1===a.childNodes.length&&(a=n),n)){for(s=re.map(m(a,"script"),w),r=s.length;c>l;l++)i=a,l!==p&&(i=re.clone(i,!0,!0),r&&re.merge(s,m(i,"script"))),e.call(this[l],i,l);if(r)for(o=s[s.length-1].ownerDocument,re.map(s,b),l=0;r>l;l++)i=s[l],We.test(i.type||"")&&!re._data(i,"globalEval")&&re.contains(o,i)&&(i.src?re._evalUrl&&re._evalUrl(i.src):re.globalEval((i.text||i.textContent||i.innerHTML||"").replace(Ge,"")));a=n=null}return this}}),re.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){re.fn[t]=function(t){for(var n,i=0,r=[],s=re(t),o=s.length-1;o>=i;i++)n=i===o?this:this.clone(!0),re(s[i])[e](n),X.apply(r,n.get());return this.pushStack(r)}});var Ke,Ze={};!function(){var t;ne.shrinkWrapBlocks=function(){if(null!=t)return t;t=!1;var e,n,i;return n=de.getElementsByTagName("body")[0],n&&n.style?(e=de.createElement("div"),i=de.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),typeof e.style.zoom!==ke&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(de.createElement("div")).style.width="5px",t=3!==e.offsetWidth),n.removeChild(i),t):void 0}}();var tn,en,nn=/^margin/,rn=new RegExp("^("+Ae+")(?!px)[a-z%]+$","i"),sn=/^(top|right|bottom|left)$/;t.getComputedStyle?(tn=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)},en=function(t,e,n){var i,r,s,o,a=t.style;return n=n||tn(t),o=n?n.getPropertyValue(e)||n[e]:void 0,n&&(""!==o||re.contains(t.ownerDocument,t)||(o=re.style(t,e)),rn.test(o)&&nn.test(e)&&(i=a.width,r=a.minWidth,s=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=n.width,a.width=i,a.minWidth=r,a.maxWidth=s)),void 0===o?o:o+""}):de.documentElement.currentStyle&&(tn=function(t){return t.currentStyle},en=function(t,e,n){var i,r,s,o,a=t.style;return n=n||tn(t),o=n?n[e]:void 0,null==o&&a&&a[e]&&(o=a[e]),rn.test(o)&&!sn.test(e)&&(i=a.left,r=t.runtimeStyle,s=r&&r.left,s&&(r.left=t.currentStyle.left),a.left="fontSize"===e?"1em":o,o=a.pixelLeft+"px",a.left=i,s&&(r.left=s)),void 0===o?o:o+""||"auto"}),function(){function e(){var e,n,i,r;n=de.getElementsByTagName("body")[0],n&&n.style&&(e=de.createElement("div"),i=de.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),e.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",s=o=!1,l=!0,t.getComputedStyle&&(s="1%"!==(t.getComputedStyle(e,null)||{}).top,o="4px"===(t.getComputedStyle(e,null)||{width:"4px"}).width,r=e.appendChild(de.createElement("div")),r.style.cssText=e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",r.style.marginRight=r.style.width="0",e.style.width="1px",l=!parseFloat((t.getComputedStyle(r,null)||{}).marginRight)),e.innerHTML="<table><tr><td></td><td>t</td></tr></table>",r=e.getElementsByTagName("td"),r[0].style.cssText="margin:0;border:0;padding:0;display:none",a=0===r[0].offsetHeight,a&&(r[0].style.display="",r[1].style.display="none",a=0===r[0].offsetHeight),n.removeChild(i))}var n,i,r,s,o,a,l;n=de.createElement("div"),n.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",r=n.getElementsByTagName("a")[0],i=r&&r.style,i&&(i.cssText="float:left;opacity:.5",ne.opacity="0.5"===i.opacity,ne.cssFloat=!!i.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",ne.clearCloneStyle="content-box"===n.style.backgroundClip,ne.boxSizing=""===i.boxSizing||""===i.MozBoxSizing||""===i.WebkitBoxSizing,re.extend(ne,{reliableHiddenOffsets:function(){return null==a&&e(),a
  3. },boxSizingReliable:function(){return null==o&&e(),o},pixelPosition:function(){return null==s&&e(),s},reliableMarginRight:function(){return null==l&&e(),l}}))}(),re.swap=function(t,e,n,i){var r,s,o={};for(s in e)o[s]=t.style[s],t.style[s]=e[s];r=n.apply(t,i||[]);for(s in e)t.style[s]=o[s];return r};var on=/alpha\([^)]*\)/i,an=/opacity\s*=\s*([^)]*)/,ln=/^(none|table(?!-c[ea]).+)/,cn=new RegExp("^("+Ae+")(.*)$","i"),un=new RegExp("^([+-])=("+Ae+")","i"),pn={position:"absolute",visibility:"hidden",display:"block"},hn={letterSpacing:"0",fontWeight:"400"},fn=["Webkit","O","Moz","ms"];re.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=en(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":ne.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,s,o,a=re.camelCase(e),l=t.style;if(e=re.cssProps[a]||(re.cssProps[a]=C(l,a)),o=re.cssHooks[e]||re.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(r=o.get(t,!1,i))?r:l[e];if(s=typeof n,"string"===s&&(r=un.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(re.css(t,e)),s="number"),null!=n&&n===n&&("number"!==s||re.cssNumber[a]||(n+="px"),ne.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),!(o&&"set"in o&&void 0===(n=o.set(t,n,i)))))try{l[e]=n}catch(c){}}},css:function(t,e,n,i){var r,s,o,a=re.camelCase(e);return e=re.cssProps[a]||(re.cssProps[a]=C(t.style,a)),o=re.cssHooks[e]||re.cssHooks[a],o&&"get"in o&&(s=o.get(t,!0,n)),void 0===s&&(s=en(t,e,i)),"normal"===s&&e in hn&&(s=hn[e]),""===n||n?(r=parseFloat(s),n===!0||re.isNumeric(r)?r||0:s):s}}),re.each(["height","width"],function(t,e){re.cssHooks[e]={get:function(t,n,i){return n?ln.test(re.css(t,"display"))&&0===t.offsetWidth?re.swap(t,pn,function(){return P(t,e,i)}):P(t,e,i):void 0},set:function(t,n,i){var r=i&&tn(t);return J(t,n,i?E(t,e,i,ne.boxSizing&&"border-box"===re.css(t,"boxSizing",!1,r),r):0)}}}),ne.opacity||(re.cssHooks.opacity={get:function(t,e){return an.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,i=t.currentStyle,r=re.isNumeric(e)?"alpha(opacity="+100*e+")":"",s=i&&i.filter||n.filter||"";n.zoom=1,(e>=1||""===e)&&""===re.trim(s.replace(on,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||i&&!i.filter)||(n.filter=on.test(s)?s.replace(on,r):s+" "+r)}}),re.cssHooks.marginRight=A(ne.reliableMarginRight,function(t,e){return e?re.swap(t,{display:"inline-block"},en,[t,"marginRight"]):void 0}),re.each({margin:"",padding:"",border:"Width"},function(t,e){re.cssHooks[t+e]={expand:function(n){for(var i=0,r={},s="string"==typeof n?n.split(" "):[n];4>i;i++)r[t+Ce[i]+e]=s[i]||s[i-2]||s[0];return r}},nn.test(t)||(re.cssHooks[t+e].set=J)}),re.fn.extend({css:function(t,e){return Je(this,function(t,e,n){var i,r,s={},o=0;if(re.isArray(e)){for(i=tn(t),r=e.length;r>o;o++)s[e[o]]=re.css(t,e[o],!1,i);return s}return void 0!==n?re.style(t,e,n):re.css(t,e)},t,e,arguments.length>1)},show:function(){return j(this,!0)},hide:function(){return j(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){je(this)?re(this).show():re(this).hide()})}}),re.Tween=$,$.prototype={constructor:$,init:function(t,e,n,i,r,s){this.elem=t,this.prop=n,this.easing=r||"swing",this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=s||(re.cssNumber[n]?"":"px")},cur:function(){var t=$.propHooks[this.prop];return t&&t.get?t.get(this):$.propHooks._default.get(this)},run:function(t){var e,n=$.propHooks[this.prop];return this.pos=e=this.options.duration?re.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):$.propHooks._default.set(this),this}},$.prototype.init.prototype=$.prototype,$.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=re.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){re.fx.step[t.prop]?re.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[re.cssProps[t.prop]]||re.cssHooks[t.prop])?re.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},$.propHooks.scrollTop=$.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},re.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},re.fx=$.prototype.init,re.fx.step={};var dn,gn,mn=/^(?:toggle|show|hide)$/,yn=new RegExp("^(?:([+-])=|)("+Ae+")([a-z%]*)$","i"),vn=/queueHooks$/,wn=[I],bn={"*":[function(t,e){var n=this.createTween(t,e),i=n.cur(),r=yn.exec(e),s=r&&r[3]||(re.cssNumber[t]?"":"px"),o=(re.cssNumber[t]||"px"!==s&&+i)&&yn.exec(re.css(n.elem,t)),a=1,l=20;if(o&&o[3]!==s){s=s||o[3],r=r||[],o=+i||1;do a=a||".5",o/=a,re.style(n.elem,t,o+s);while(a!==(a=n.cur()/i)&&1!==a&&--l)}return r&&(o=n.start=+o||+i||0,n.unit=s,n.end=r[1]?o+(r[1]+1)*r[2]:+r[2]),n}]};re.Animation=re.extend(N,{tweener:function(t,e){re.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,i=0,r=t.length;r>i;i++)n=t[i],bn[n]=bn[n]||[],bn[n].unshift(e)},prefilter:function(t,e){e?wn.unshift(t):wn.push(t)}}),re.speed=function(t,e,n){var i=t&&"object"==typeof t?re.extend({},t):{complete:n||!n&&e||re.isFunction(t)&&t,duration:t,easing:n&&e||e&&!re.isFunction(e)&&e};return i.duration=re.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in re.fx.speeds?re.fx.speeds[i.duration]:re.fx.speeds._default,(null==i.queue||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){re.isFunction(i.old)&&i.old.call(this),i.queue&&re.dequeue(this,i.queue)},i},re.fn.extend({fadeTo:function(t,e,n,i){return this.filter(je).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=re.isEmptyObject(t),s=re.speed(e,n,i),o=function(){var e=N(this,re.extend({},t),s);(r||re._data(this,"finish"))&&e.stop(!0)};return o.finish=o,r||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",s=re.timers,o=re._data(this);if(r)o[r]&&o[r].stop&&i(o[r]);else for(r in o)o[r]&&o[r].stop&&vn.test(r)&&i(o[r]);for(r=s.length;r--;)s[r].elem!==this||null!=t&&s[r].queue!==t||(s[r].anim.stop(n),e=!1,s.splice(r,1));(e||!n)&&re.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=re._data(this),i=n[t+"queue"],r=n[t+"queueHooks"],s=re.timers,o=i?i.length:0;for(n.finish=!0,re.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;o>e;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),re.each(["toggle","show","hide"],function(t,e){var n=re.fn[e];re.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(M(e,!0),t,i,r)}}),re.each({slideDown:M("show"),slideUp:M("hide"),slideToggle:M("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){re.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),re.timers=[],re.fx.tick=function(){var t,e=re.timers,n=0;for(dn=re.now();n<e.length;n++)t=e[n],t()||e[n]!==t||e.splice(n--,1);e.length||re.fx.stop(),dn=void 0},re.fx.timer=function(t){re.timers.push(t),t()?re.fx.start():re.timers.pop()},re.fx.interval=13,re.fx.start=function(){gn||(gn=setInterval(re.fx.tick,re.fx.interval))},re.fx.stop=function(){clearInterval(gn),gn=null},re.fx.speeds={slow:600,fast:200,_default:400},re.fn.delay=function(t,e){return t=re.fx?re.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var i=setTimeout(e,t);n.stop=function(){clearTimeout(i)}})},function(){var t,e,n,i,r;e=de.createElement("div"),e.setAttribute("className","t"),e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",i=e.getElementsByTagName("a")[0],n=de.createElement("select"),r=n.appendChild(de.createElement("option")),t=e.getElementsByTagName("input")[0],i.style.cssText="top:1px",ne.getSetAttribute="t"!==e.className,ne.style=/top/.test(i.getAttribute("style")),ne.hrefNormalized="/a"===i.getAttribute("href"),ne.checkOn=!!t.value,ne.optSelected=r.selected,ne.enctype=!!de.createElement("form").enctype,n.disabled=!0,ne.optDisabled=!r.disabled,t=de.createElement("input"),t.setAttribute("value",""),ne.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),ne.radioValue="t"===t.value}();var Sn=/\r/g;re.fn.extend({val:function(t){var e,n,i,r=this[0];{if(arguments.length)return i=re.isFunction(t),this.each(function(n){var r;1===this.nodeType&&(r=i?t.call(this,n,re(this).val()):t,null==r?r="":"number"==typeof r?r+="":re.isArray(r)&&(r=re.map(r,function(t){return null==t?"":t+""})),e=re.valHooks[this.type]||re.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))});if(r)return e=re.valHooks[r.type]||re.valHooks[r.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(Sn,""):null==n?"":n)}}}),re.extend({valHooks:{option:{get:function(t){var e=re.find.attr(t,"value");return null!=e?e:re.trim(re.text(t))}},select:{get:function(t){for(var e,n,i=t.options,r=t.selectedIndex,s="select-one"===t.type||0>r,o=s?null:[],a=s?r+1:i.length,l=0>r?a:s?r:0;a>l;l++)if(n=i[l],!(!n.selected&&l!==r||(ne.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&re.nodeName(n.parentNode,"optgroup"))){if(e=re(n).val(),s)return e;o.push(e)}return o},set:function(t,e){for(var n,i,r=t.options,s=re.makeArray(e),o=r.length;o--;)if(i=r[o],re.inArray(re.valHooks.option.get(i),s)>=0)try{i.selected=n=!0}catch(a){i.scrollHeight}else i.selected=!1;return n||(t.selectedIndex=-1),r}}}}),re.each(["radio","checkbox"],function(){re.valHooks[this]={set:function(t,e){return re.isArray(e)?t.checked=re.inArray(re(t).val(),e)>=0:void 0}},ne.checkOn||(re.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var _n,kn,xn=re.expr.attrHandle,Tn=/^(?:checked|selected)$/i,An=ne.getSetAttribute,Cn=ne.input;re.fn.extend({attr:function(t,e){return Je(this,re.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){re.removeAttr(this,t)})}}),re.extend({attr:function(t,e,n){var i,r,s=t.nodeType;if(t&&3!==s&&8!==s&&2!==s)return typeof t.getAttribute===ke?re.prop(t,e,n):(1===s&&re.isXMLDoc(t)||(e=e.toLowerCase(),i=re.attrHooks[e]||(re.expr.match.bool.test(e)?kn:_n)),void 0===n?i&&"get"in i&&null!==(r=i.get(t,e))?r:(r=re.find.attr(t,e),null==r?void 0:r):null!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):void re.removeAttr(t,e))},removeAttr:function(t,e){var n,i,r=0,s=e&&e.match(we);if(s&&1===t.nodeType)for(;n=s[r++];)i=re.propFix[n]||n,re.expr.match.bool.test(n)?Cn&&An||!Tn.test(n)?t[i]=!1:t[re.camelCase("default-"+n)]=t[i]=!1:re.attr(t,n,""),t.removeAttribute(An?n:i)},attrHooks:{type:{set:function(t,e){if(!ne.radioValue&&"radio"===e&&re.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),kn={set:function(t,e,n){return e===!1?re.removeAttr(t,n):Cn&&An||!Tn.test(n)?t.setAttribute(!An&&re.propFix[n]||n,n):t[re.camelCase("default-"+n)]=t[n]=!0,n}},re.each(re.expr.match.bool.source.match(/\w+/g),function(t,e){var n=xn[e]||re.find.attr;xn[e]=Cn&&An||!Tn.test(e)?function(t,e,i){var r,s;return i||(s=xn[e],xn[e]=r,r=null!=n(t,e,i)?e.toLowerCase():null,xn[e]=s),r}:function(t,e,n){return n?void 0:t[re.camelCase("default-"+e)]?e.toLowerCase():null}}),Cn&&An||(re.attrHooks.value={set:function(t,e,n){return re.nodeName(t,"input")?void(t.defaultValue=e):_n&&_n.set(t,e,n)}}),An||(_n={set:function(t,e,n){var i=t.getAttributeNode(n);return i||t.setAttributeNode(i=t.ownerDocument.createAttribute(n)),i.value=e+="","value"===n||e===t.getAttribute(n)?e:void 0}},xn.id=xn.name=xn.coords=function(t,e,n){var i;return n?void 0:(i=t.getAttributeNode(e))&&""!==i.value?i.value:null},re.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);return n&&n.specified?n.value:void 0},set:_n.set},re.attrHooks.contenteditable={set:function(t,e,n){_n.set(t,""===e?!1:e,n)}},re.each(["width","height"],function(t,e){re.attrHooks[e]={set:function(t,n){return""===n?(t.setAttribute(e,"auto"),n):void 0}}})),ne.style||(re.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var jn=/^(?:input|select|textarea|button|object)$/i,Jn=/^(?:a|area)$/i;re.fn.extend({prop:function(t,e){return Je(this,re.prop,t,e,arguments.length>1)},removeProp:function(t){return t=re.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}catch(e){}})}}),re.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,n){var i,r,s,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return s=1!==o||!re.isXMLDoc(t),s&&(e=re.propFix[e]||e,r=re.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=re.find.attr(t,"tabindex");return e?parseInt(e,10):jn.test(t.nodeName)||Jn.test(t.nodeName)&&t.href?0:-1}}}}),ne.hrefNormalized||re.each(["href","src"],function(t,e){re.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),ne.optSelected||(re.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),re.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){re.propFix[this.toLowerCase()]=this}),ne.enctype||(re.propFix.enctype="encoding");var En=/[\t\r\n\f]/g;re.fn.extend({addClass:function(t){var e,n,i,r,s,o,a=0,l=this.length,c="string"==typeof t&&t;if(re.isFunction(t))return this.each(function(e){re(this).addClass(t.call(this,e,this.className))});if(c)for(e=(t||"").match(we)||[];l>a;a++)if(n=this[a],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(En," "):" ")){for(s=0;r=e[s++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");o=re.trim(i),n.className!==o&&(n.className=o)}return this},removeClass:function(t){var e,n,i,r,s,o,a=0,l=this.length,c=0===arguments.length||"string"==typeof t&&t;if(re.isFunction(t))return this.each(function(e){re(this).removeClass(t.call(this,e,this.className))});if(c)for(e=(t||"").match(we)||[];l>a;a++)if(n=this[a],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(En," "):"")){for(s=0;r=e[s++];)for(;i.indexOf(" "+r+" ")>=0;)i=i.replace(" "+r+" "," ");o=t?re.trim(i):"",n.className!==o&&(n.className=o)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):this.each(re.isFunction(t)?function(n){re(this).toggleClass(t.call(this,n,this.className,e),e)}:function(){if("string"===n)for(var e,i=0,r=re(this),s=t.match(we)||[];e=s[i++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else(n===ke||"boolean"===n)&&(this.className&&re._data(this,"__className__",this.className),this.className=this.className||t===!1?"":re._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,i=this.length;i>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(En," ").indexOf(e)>=0)return!0;return!1}}),re.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){re.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),re.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var Pn=re.now(),$n=/\?/,On=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;re.parseJSON=function(e){if(t.JSON&&t.JSON.parse)return t.JSON.parse(e+"");var n,i=null,r=re.trim(e+"");return r&&!re.trim(r.replace(On,function(t,e,r,s){return n&&e&&(i=0),0===i?t:(n=r||e,i+=!s-!r,"")}))?Function("return "+r)():re.error("Invalid JSON: "+e)},re.parseXML=function(e){var n,i;if(!e||"string"!=typeof e)return null;try{t.DOMParser?(i=new DOMParser,n=i.parseFromString(e,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(e))}catch(r){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||re.error("Invalid XML: "+e),n};var Mn,Ln,In=/#.*$/,Dn=/([?&])_=[^&]*/,Nn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Hn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Fn=/^(?:GET|HEAD)$/,zn=/^\/\//,qn=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Rn={},Bn={},Vn="*/".concat("*");try{Ln=location.href}catch(Wn){Ln=de.createElement("a"),Ln.href="",Ln=Ln.href}Mn=qn.exec(Ln.toLowerCase())||[],re.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ln,type:"GET",isLocal:Hn.test(Mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Vn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":re.parseJSON,"text xml":re.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?z(z(t,re.ajaxSettings),e):z(re.ajaxSettings,t)},ajaxPrefilter:H(Rn),ajaxTransport:H(Bn),ajax:function(t,e){function n(t,e,n,i){var r,u,y,v,b,_=e;2!==w&&(w=2,a&&clearTimeout(a),c=void 0,o=i||"",S.readyState=t>0?4:0,r=t>=200&&300>t||304===t,n&&(v=q(p,S,n)),v=R(p,v,S,r),r?(p.ifModified&&(b=S.getResponseHeader("Last-Modified"),b&&(re.lastModified[s]=b),b=S.getResponseHeader("etag"),b&&(re.etag[s]=b)),204===t||"HEAD"===p.type?_="nocontent":304===t?_="notmodified":(_=v.state,u=v.data,y=v.error,r=!y)):(y=_,(t||!_)&&(_="error",0>t&&(t=0))),S.status=t,S.statusText=(e||_)+"",r?d.resolveWith(h,[u,_,S]):d.rejectWith(h,[S,_,y]),S.statusCode(m),m=void 0,l&&f.trigger(r?"ajaxSuccess":"ajaxError",[S,p,r?u:y]),g.fireWith(h,[S,_]),l&&(f.trigger("ajaxComplete",[S,p]),--re.active||re.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,r,s,o,a,l,c,u,p=re.ajaxSetup({},e),h=p.context||p,f=p.context&&(h.nodeType||h.jquery)?re(h):re.event,d=re.Deferred(),g=re.Callbacks("once memory"),m=p.statusCode||{},y={},v={},w=0,b="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(2===w){if(!u)for(u={};e=Nn.exec(o);)u[e[1].toLowerCase()]=e[2];e=u[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===w?o:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return w||(t=v[n]=v[n]||t,y[t]=e),this},overrideMimeType:function(t){return w||(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>w)for(e in t)m[e]=[m[e],t[e]];else S.always(t[S.status]);return this},abort:function(t){var e=t||b;return c&&c.abort(e),n(0,e),this}};if(d.promise(S).complete=g.add,S.success=S.done,S.error=S.fail,p.url=((t||p.url||Ln)+"").replace(In,"").replace(zn,Mn[1]+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=re.trim(p.dataType||"*").toLowerCase().match(we)||[""],null==p.crossDomain&&(i=qn.exec(p.url.toLowerCase()),p.crossDomain=!(!i||i[1]===Mn[1]&&i[2]===Mn[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(Mn[3]||("http:"===Mn[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=re.param(p.data,p.traditional)),F(Rn,p,e,S),2===w)return S;l=p.global,l&&0===re.active++&&re.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Fn.test(p.type),s=p.url,p.hasContent||(p.data&&(s=p.url+=($n.test(s)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=Dn.test(s)?s.replace(Dn,"$1_="+Pn++):s+($n.test(s)?"&":"?")+"_="+Pn++)),p.ifModified&&(re.lastModified[s]&&S.setRequestHeader("If-Modified-Since",re.lastModified[s]),re.etag[s]&&S.setRequestHeader("If-None-Match",re.etag[s])),(p.data&&p.hasContent&&p.contentType!==!1||e.contentType)&&S.setRequestHeader("Content-Type",p.contentType),S.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Vn+"; q=0.01":""):p.accepts["*"]);for(r in p.headers)S.setRequestHeader(r,p.headers[r]);if(p.beforeSend&&(p.beforeSend.call(h,S,p)===!1||2===w))return S.abort();b="abort";for(r in{success:1,error:1,complete:1})S[r](p[r]);if(c=F(Bn,p,e,S)){S.readyState=1,l&&f.trigger("ajaxSend",[S,p]),p.async&&p.timeout>0&&(a=setTimeout(function(){S.abort("timeout")},p.timeout));try{w=1,c.send(y,n)}catch(_){if(!(2>w))throw _;n(-1,_)}}else n(-1,"No Transport");return S},getJSON:function(t,e,n){return re.get(t,e,n,"json")},getScript:function(t,e){return re.get(t,void 0,e,"script")}}),re.each(["get","post"],function(t,e){re[e]=function(t,n,i,r){return re.isFunction(n)&&(r=r||i,i=n,n=void 0),re.ajax({url:t,type:e,dataType:r,data:n,success:i})}}),re.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){re.fn[e]=function(t){return this.on(e,t)}}),re._evalUrl=function(t){return re.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},re.fn.extend({wrapAll:function(t){if(re.isFunction(t))return this.each(function(e){re(this).wrapAll(t.call(this,e))});if(this[0]){var e=re(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return this.each(re.isFunction(t)?function(e){re(this).wrapInner(t.call(this,e))}:function(){var e=re(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=re.isFunction(t);return this.each(function(n){re(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){re.nodeName(this,"body")||re(this).replaceWith(this.childNodes)}).end()}}),re.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!ne.reliableHiddenOffsets()&&"none"===(t.style&&t.style.display||re.css(t,"display"))},re.expr.filters.visible=function(t){return!re.expr.filters.hidden(t)};var Un=/%20/g,Gn=/\[\]$/,Yn=/\r?\n/g,Qn=/^(?:submit|button|image|reset|file)$/i,Xn=/^(?:input|select|textarea|keygen)/i;re.param=function(t,e){var n,i=[],r=function(t,e){e=re.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=re.ajaxSettings&&re.ajaxSettings.traditional),re.isArray(t)||t.jquery&&!re.isPlainObject(t))re.each(t,function(){r(this.name,this.value)});else for(n in t)B(n,t[n],e,r);return i.join("&").replace(Un,"+")},re.fn.extend({serialize:function(){return re.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=re.prop(this,"elements");return t?re.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!re(this).is(":disabled")&&Xn.test(this.nodeName)&&!Qn.test(t)&&(this.checked||!Ee.test(t))}).map(function(t,e){var n=re(this).val();return null==n?null:re.isArray(n)?re.map(n,function(t){return{name:e.name,value:t.replace(Yn,"\r\n")}}):{name:e.name,value:n.replace(Yn,"\r\n")}}).get()}}),re.ajaxSettings.xhr=void 0!==t.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&V()||W()}:V;var Kn=0,Zn={},ti=re.ajaxSettings.xhr();t.ActiveXObject&&re(t).on("unload",function(){for(var t in Zn)Zn[t](void 0,!0)}),ne.cors=!!ti&&"withCredentials"in ti,ti=ne.ajax=!!ti,ti&&re.ajaxTransport(function(t){if(!t.crossDomain||ne.cors){var e;return{send:function(n,i){var r,s=t.xhr(),o=++Kn;if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)s[r]=t.xhrFields[r];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(r in n)void 0!==n[r]&&s.setRequestHeader(r,n[r]+"");s.send(t.hasContent&&t.data||null),e=function(n,r){var a,l,c;if(e&&(r||4===s.readyState))if(delete Zn[o],e=void 0,s.onreadystatechange=re.noop,r)4!==s.readyState&&s.abort();else{c={},a=s.status,"string"==typeof s.responseText&&(c.text=s.responseText);try{l=s.statusText}catch(u){l=""}a||!t.isLocal||t.crossDomain?1223===a&&(a=204):a=c.text?200:404}c&&i(a,l,c,s.getAllResponseHeaders())},t.async?4===s.readyState?setTimeout(e):s.onreadystatechange=Zn[o]=e:e()},abort:function(){e&&e(void 0,!0)}}}}),re.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return re.globalEval(t),t}}}),re.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),re.ajaxTransport("script",function(t){if(t.crossDomain){var e,n=de.head||re("head")[0]||de.documentElement;return{send:function(i,r){e=de.createElement("script"),e.async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||r(200,"success"))},n.insertBefore(e,n.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}});var ei=[],ni=/(=)\?(?=&|$)|\?\?/;re.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=ei.pop()||re.expando+"_"+Pn++;return this[t]=!0,t}}),re.ajaxPrefilter("json jsonp",function(e,n,i){var r,s,o,a=e.jsonp!==!1&&(ni.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&ni.test(e.data)&&"data");return a||"jsonp"===e.dataTypes[0]?(r=e.jsonpCallback=re.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(ni,"$1"+r):e.jsonp!==!1&&(e.url+=($n.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||re.error(r+" was not called"),o[0]},e.dataTypes[0]="json",s=t[r],t[r]=function(){o=arguments},i.always(function(){t[r]=s,e[r]&&(e.jsonpCallback=n.jsonpCallback,ei.push(r)),o&&re.isFunction(s)&&s(o[0]),o=s=void 0}),"script"):void 0}),re.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||de;var i=pe.exec(t),r=!n&&[];return i?[e.createElement(i[1])]:(i=re.buildFragment([t],e,r),r&&r.length&&re(r).remove(),re.merge([],i.childNodes))};var ii=re.fn.load;re.fn.load=function(t,e,n){if("string"!=typeof t&&ii)return ii.apply(this,arguments);var i,r,s,o=this,a=t.indexOf(" ");return a>=0&&(i=re.trim(t.slice(a,t.length)),t=t.slice(0,a)),re.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(s="POST"),o.length>0&&re.ajax({url:t,type:s,dataType:"html",data:e}).done(function(t){r=arguments,o.html(i?re("<div>").append(re.parseHTML(t)).find(i):t)}).complete(n&&function(t,e){o.each(n,r||[t.responseText,e,t])}),this},re.expr.filters.animated=function(t){return re.grep(re.timers,function(e){return t===e.elem}).length};var ri=t.document.documentElement;re.offset={setOffset:function(t,e,n){var i,r,s,o,a,l,c,u=re.css(t,"position"),p=re(t),h={};"static"===u&&(t.style.position="relative"),a=p.offset(),s=re.css(t,"top"),l=re.css(t,"left"),c=("absolute"===u||"fixed"===u)&&re.inArray("auto",[s,l])>-1,c?(i=p.position(),o=i.top,r=i.left):(o=parseFloat(s)||0,r=parseFloat(l)||0),re.isFunction(e)&&(e=e.call(t,n,a)),null!=e.top&&(h.top=e.top-a.top+o),null!=e.left&&(h.left=e.left-a.left+r),"using"in e?e.using.call(t,h):p.css(h)}},re.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){re.offset.setOffset(this,t,e)});var e,n,i={top:0,left:0},r=this[0],s=r&&r.ownerDocument;if(s)return e=s.documentElement,re.contains(e,r)?(typeof r.getBoundingClientRect!==ke&&(i=r.getBoundingClientRect()),n=U(s),{top:i.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):i},position:function(){if(this[0]){var t,e,n={top:0,left:0},i=this[0];return"fixed"===re.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),re.nodeName(t[0],"html")||(n=t.offset()),n.top+=re.css(t[0],"borderTopWidth",!0),n.left+=re.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-re.css(i,"marginTop",!0),left:e.left-n.left-re.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||ri;t&&!re.nodeName(t,"html")&&"static"===re.css(t,"position");)t=t.offsetParent;return t||ri})}}),re.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n=/Y/.test(e);re.fn[t]=function(i){return Je(this,function(t,i,r){var s=U(t);return void 0===r?s?e in s?s[e]:s.document.documentElement[i]:t[i]:void(s?s.scrollTo(n?re(s).scrollLeft():r,n?r:re(s).scrollTop()):t[i]=r)},t,i,arguments.length,null)}}),re.each(["top","left"],function(t,e){re.cssHooks[e]=A(ne.pixelPosition,function(t,n){return n?(n=en(t,e),rn.test(n)?re(t).position()[e]+"px":n):void 0})}),re.each({Height:"height",Width:"width"},function(t,e){re.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){re.fn[i]=function(i,r){var s=arguments.length&&(n||"boolean"!=typeof i),o=n||(i===!0||r===!0?"margin":"border");return Je(this,function(e,n,i){var r;return re.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===i?re.css(e,n,o):re.style(e,n,i,o)},e,s?i:void 0,s,null)}})}),re.fn.size=function(){return this.length},re.fn.andSelf=re.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return re});var si=t.jQuery,oi=t.$;return re.noConflict=function(e){return t.$===re&&(t.$=oi),e&&t.jQuery===re&&(t.jQuery=si),re},typeof e===ke&&(t.jQuery=t.$=re),re}),!function(t){t.fn.classes=function(e){var n=[];if(t.each(this,function(t,e){var i=e.className.split(/\s+/);for(var r in i){var s=i[r];-1===n.indexOf(s)&&n.push(s)}}),"function"==typeof e)for(var i in n)e(n[i]);return n}}(jQuery),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],function(n){return e(t,n)}):"object"==typeof exports?module.exports=e(t,require("jquery")):e(t,jQuery)}("undefined"!=typeof window?window:this,function(t,e,n){"use strict";function i(){"hidden"!==r&&(o.hidden=l.pageVisibility?o[r]:n)}for(var r,s,o=t.document,a=["webkit","o","ms","moz",""],l=e.support||{},c=("onfocusin"in o&&"hasFocus"in o?"focusin focusout":"focus blur");(s=a.pop())!==n;)if(r=(s?s+"H":"h")+"idden",l.pageVisibility=o[r]!==n,l.pageVisibility){c=s+"visibilitychange";break}i(),e(/blur$/.test(c)?t:o).on(c,function(t){var s=t.type,a=t.originalEvent;if(a){var l=a.toElement;(!/^focus./.test(s)||l===n&&a.fromElement===n&&a.relatedTarget===n)&&e(o).triggerHandler(r&&o[r]||/^(?:blur|focusout)$/.test(s)?"hide":"show"),i()}})}),function(){function t(t){function e(e,n,i,r,s,o){for(;s>=0&&o>s;s+=t){var a=r?r[s]:s;i=n(i,e[a],a,e)}return i}return function(n,i,r,s){i=w(i,s,4);var o=!A(n)&&v.keys(n),a=(o||n).length,l=t>0?0:a-1;return arguments.length<3&&(r=n[o?o[l]:l],l+=t),e(n,i,r,o,l,a)}}function e(t){return function(e,n,i){n=b(n,i);for(var r=T(e),s=t>0?0:r-1;s>=0&&r>s;s+=t)if(n(e[s],s,e))return s;return-1}}function n(t,e,n){return function(i,r,s){var o=0,a=T(i);if("number"==typeof s)t>0?o=s>=0?s:Math.max(s+a,o):a=s>=0?Math.min(s+1,a):s+a+1;else if(n&&s&&a)return s=n(i,r),i[s]===r?s:-1;if(r!==r)return s=e(u.call(i,o,a),v.isNaN),s>=0?s+o:-1;for(s=t>0?o:a-1;s>=0&&a>s;s+=t)if(i[s]===r)return s;return-1}}function i(t,e){var n=P.length,i=t.constructor,r=v.isFunction(i)&&i.prototype||a,s="constructor";for(v.has(t,s)&&!v.contains(e,s)&&e.push(s);n--;)s=P[n],s in t&&t[s]!==r[s]&&!v.contains(e,s)&&e.push(s)}var r=this,s=r._,o=Array.prototype,a=Object.prototype,l=Function.prototype,c=o.push,u=o.slice,p=a.toString,h=a.hasOwnProperty,f=Array.isArray,d=Object.keys,g=l.bind,m=Object.create,y=function(){},v=function(t){return t instanceof v?t:this instanceof v?void(this._wrapped=t):new v(t)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=v),exports._=v):r._=v,v.VERSION="1.8.3";var w=function(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)
  4. };case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)};case 4:return function(n,i,r,s){return t.call(e,n,i,r,s)}}return function(){return t.apply(e,arguments)}},b=function(t,e,n){return null==t?v.identity:v.isFunction(t)?w(t,e,n):v.isObject(t)?v.matcher(t):v.property(t)};v.iteratee=function(t,e){return b(t,e,1/0)};var S=function(t,e){return function(n){var i=arguments.length;if(2>i||null==n)return n;for(var r=1;i>r;r++)for(var s=arguments[r],o=t(s),a=o.length,l=0;a>l;l++){var c=o[l];e&&void 0!==n[c]||(n[c]=s[c])}return n}},_=function(t){if(!v.isObject(t))return{};if(m)return m(t);y.prototype=t;var e=new y;return y.prototype=null,e},k=function(t){return function(e){return null==e?void 0:e[t]}},x=Math.pow(2,53)-1,T=k("length"),A=function(t){var e=T(t);return"number"==typeof e&&e>=0&&x>=e};v.each=v.forEach=function(t,e,n){e=w(e,n);var i,r;if(A(t))for(i=0,r=t.length;r>i;i++)e(t[i],i,t);else{var s=v.keys(t);for(i=0,r=s.length;r>i;i++)e(t[s[i]],s[i],t)}return t},v.map=v.collect=function(t,e,n){e=b(e,n);for(var i=!A(t)&&v.keys(t),r=(i||t).length,s=Array(r),o=0;r>o;o++){var a=i?i[o]:o;s[o]=e(t[a],a,t)}return s},v.reduce=v.foldl=v.inject=t(1),v.reduceRight=v.foldr=t(-1),v.find=v.detect=function(t,e,n){var i;return i=A(t)?v.findIndex(t,e,n):v.findKey(t,e,n),void 0!==i&&-1!==i?t[i]:void 0},v.filter=v.select=function(t,e,n){var i=[];return e=b(e,n),v.each(t,function(t,n,r){e(t,n,r)&&i.push(t)}),i},v.reject=function(t,e,n){return v.filter(t,v.negate(b(e)),n)},v.every=v.all=function(t,e,n){e=b(e,n);for(var i=!A(t)&&v.keys(t),r=(i||t).length,s=0;r>s;s++){var o=i?i[s]:s;if(!e(t[o],o,t))return!1}return!0},v.some=v.any=function(t,e,n){e=b(e,n);for(var i=!A(t)&&v.keys(t),r=(i||t).length,s=0;r>s;s++){var o=i?i[s]:s;if(e(t[o],o,t))return!0}return!1},v.contains=v.includes=v.include=function(t,e,n,i){return A(t)||(t=v.values(t)),("number"!=typeof n||i)&&(n=0),v.indexOf(t,e,n)>=0},v.invoke=function(t,e){var n=u.call(arguments,2),i=v.isFunction(e);return v.map(t,function(t){var r=i?e:t[e];return null==r?r:r.apply(t,n)})},v.pluck=function(t,e){return v.map(t,v.property(e))},v.where=function(t,e){return v.filter(t,v.matcher(e))},v.findWhere=function(t,e){return v.find(t,v.matcher(e))},v.max=function(t,e,n){var i,r,s=-1/0,o=-1/0;if(null==e&&null!=t){t=A(t)?t:v.values(t);for(var a=0,l=t.length;l>a;a++)i=t[a],i>s&&(s=i)}else e=b(e,n),v.each(t,function(t,n,i){r=e(t,n,i),(r>o||r===-1/0&&s===-1/0)&&(s=t,o=r)});return s},v.min=function(t,e,n){var i,r,s=1/0,o=1/0;if(null==e&&null!=t){t=A(t)?t:v.values(t);for(var a=0,l=t.length;l>a;a++)i=t[a],s>i&&(s=i)}else e=b(e,n),v.each(t,function(t,n,i){r=e(t,n,i),(o>r||1/0===r&&1/0===s)&&(s=t,o=r)});return s},v.shuffle=function(t){for(var e,n=A(t)?t:v.values(t),i=n.length,r=Array(i),s=0;i>s;s++)e=v.random(0,s),e!==s&&(r[s]=r[e]),r[e]=n[s];return r},v.sample=function(t,e,n){return null==e||n?(A(t)||(t=v.values(t)),t[v.random(t.length-1)]):v.shuffle(t).slice(0,Math.max(0,e))},v.sortBy=function(t,e,n){return e=b(e,n),v.pluck(v.map(t,function(t,n,i){return{value:t,index:n,criteria:e(t,n,i)}}).sort(function(t,e){var n=t.criteria,i=e.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(i>n||void 0===i)return-1}return t.index-e.index}),"value")};var C=function(t){return function(e,n,i){var r={};return n=b(n,i),v.each(e,function(i,s){var o=n(i,s,e);t(r,i,o)}),r}};v.groupBy=C(function(t,e,n){v.has(t,n)?t[n].push(e):t[n]=[e]}),v.indexBy=C(function(t,e,n){t[n]=e}),v.countBy=C(function(t,e,n){v.has(t,n)?t[n]++:t[n]=1}),v.toArray=function(t){return t?v.isArray(t)?u.call(t):A(t)?v.map(t,v.identity):v.values(t):[]},v.size=function(t){return null==t?0:A(t)?t.length:v.keys(t).length},v.partition=function(t,e,n){e=b(e,n);var i=[],r=[];return v.each(t,function(t,n,s){(e(t,n,s)?i:r).push(t)}),[i,r]},v.first=v.head=v.take=function(t,e,n){return null==t?void 0:null==e||n?t[0]:v.initial(t,t.length-e)},v.initial=function(t,e,n){return u.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},v.last=function(t,e,n){return null==t?void 0:null==e||n?t[t.length-1]:v.rest(t,Math.max(0,t.length-e))},v.rest=v.tail=v.drop=function(t,e,n){return u.call(t,null==e||n?1:e)},v.compact=function(t){return v.filter(t,v.identity)};var j=function(t,e,n,i){for(var r=[],s=0,o=i||0,a=T(t);a>o;o++){var l=t[o];if(A(l)&&(v.isArray(l)||v.isArguments(l))){e||(l=j(l,e,n));var c=0,u=l.length;for(r.length+=u;u>c;)r[s++]=l[c++]}else n||(r[s++]=l)}return r};v.flatten=function(t,e){return j(t,e,!1)},v.without=function(t){return v.difference(t,u.call(arguments,1))},v.uniq=v.unique=function(t,e,n,i){v.isBoolean(e)||(i=n,n=e,e=!1),null!=n&&(n=b(n,i));for(var r=[],s=[],o=0,a=T(t);a>o;o++){var l=t[o],c=n?n(l,o,t):l;e?(o&&s===c||r.push(l),s=c):n?v.contains(s,c)||(s.push(c),r.push(l)):v.contains(r,l)||r.push(l)}return r},v.union=function(){return v.uniq(j(arguments,!0,!0))},v.intersection=function(t){for(var e=[],n=arguments.length,i=0,r=T(t);r>i;i++){var s=t[i];if(!v.contains(e,s)){for(var o=1;n>o&&v.contains(arguments[o],s);o++);o===n&&e.push(s)}}return e},v.difference=function(t){var e=j(arguments,!0,!0,1);return v.filter(t,function(t){return!v.contains(e,t)})},v.zip=function(){return v.unzip(arguments)},v.unzip=function(t){for(var e=t&&v.max(t,T).length||0,n=Array(e),i=0;e>i;i++)n[i]=v.pluck(t,i);return n},v.object=function(t,e){for(var n={},i=0,r=T(t);r>i;i++)e?n[t[i]]=e[i]:n[t[i][0]]=t[i][1];return n},v.findIndex=e(1),v.findLastIndex=e(-1),v.sortedIndex=function(t,e,n,i){n=b(n,i,1);for(var r=n(e),s=0,o=T(t);o>s;){var a=Math.floor((s+o)/2);n(t[a])<r?s=a+1:o=a}return s},v.indexOf=n(1,v.findIndex,v.sortedIndex),v.lastIndexOf=n(-1,v.findLastIndex),v.range=function(t,e,n){null==e&&(e=t||0,t=0),n=n||1;for(var i=Math.max(Math.ceil((e-t)/n),0),r=Array(i),s=0;i>s;s++,t+=n)r[s]=t;return r};var J=function(t,e,n,i,r){if(!(i instanceof e))return t.apply(n,r);var s=_(t.prototype),o=t.apply(s,r);return v.isObject(o)?o:s};v.bind=function(t,e){if(g&&t.bind===g)return g.apply(t,u.call(arguments,1));if(!v.isFunction(t))throw new TypeError("Bind must be called on a function");var n=u.call(arguments,2),i=function(){return J(t,i,e,this,n.concat(u.call(arguments)))};return i},v.partial=function(t){var e=u.call(arguments,1),n=function(){for(var i=0,r=e.length,s=Array(r),o=0;r>o;o++)s[o]=e[o]===v?arguments[i++]:e[o];for(;i<arguments.length;)s.push(arguments[i++]);return J(t,n,this,this,s)};return n},v.bindAll=function(t){var e,n,i=arguments.length;if(1>=i)throw new Error("bindAll must be passed function names");for(e=1;i>e;e++)n=arguments[e],t[n]=v.bind(t[n],t);return t},v.memoize=function(t,e){var n=function(i){var r=n.cache,s=""+(e?e.apply(this,arguments):i);return v.has(r,s)||(r[s]=t.apply(this,arguments)),r[s]};return n.cache={},n},v.delay=function(t,e){var n=u.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},v.defer=v.partial(v.delay,v,1),v.throttle=function(t,e,n){var i,r,s,o=null,a=0;n||(n={});var l=function(){a=n.leading===!1?0:v.now(),o=null,s=t.apply(i,r),o||(i=r=null)};return function(){var c=v.now();a||n.leading!==!1||(a=c);var u=e-(c-a);return i=this,r=arguments,0>=u||u>e?(o&&(clearTimeout(o),o=null),a=c,s=t.apply(i,r),o||(i=r=null)):o||n.trailing===!1||(o=setTimeout(l,u)),s}},v.debounce=function(t,e,n){var i,r,s,o,a,l=function(){var c=v.now()-o;e>c&&c>=0?i=setTimeout(l,e-c):(i=null,n||(a=t.apply(s,r),i||(s=r=null)))};return function(){s=this,r=arguments,o=v.now();var c=n&&!i;return i||(i=setTimeout(l,e)),c&&(a=t.apply(s,r),s=r=null),a}},v.wrap=function(t,e){return v.partial(e,t)},v.negate=function(t){return function(){return!t.apply(this,arguments)}},v.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,i=t[e].apply(this,arguments);n--;)i=t[n].call(this,i);return i}},v.after=function(t,e){return function(){return--t<1?e.apply(this,arguments):void 0}},v.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),1>=t&&(e=null),n}},v.once=v.partial(v.before,2);var E=!{toString:null}.propertyIsEnumerable("toString"),P=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];v.keys=function(t){if(!v.isObject(t))return[];if(d)return d(t);var e=[];for(var n in t)v.has(t,n)&&e.push(n);return E&&i(t,e),e},v.allKeys=function(t){if(!v.isObject(t))return[];var e=[];for(var n in t)e.push(n);return E&&i(t,e),e},v.values=function(t){for(var e=v.keys(t),n=e.length,i=Array(n),r=0;n>r;r++)i[r]=t[e[r]];return i},v.mapObject=function(t,e,n){e=b(e,n);for(var i,r=v.keys(t),s=r.length,o={},a=0;s>a;a++)i=r[a],o[i]=e(t[i],i,t);return o},v.pairs=function(t){for(var e=v.keys(t),n=e.length,i=Array(n),r=0;n>r;r++)i[r]=[e[r],t[e[r]]];return i},v.invert=function(t){for(var e={},n=v.keys(t),i=0,r=n.length;r>i;i++)e[t[n[i]]]=n[i];return e},v.functions=v.methods=function(t){var e=[];for(var n in t)v.isFunction(t[n])&&e.push(n);return e.sort()},v.extend=S(v.allKeys),v.extendOwn=v.assign=S(v.keys),v.findKey=function(t,e,n){e=b(e,n);for(var i,r=v.keys(t),s=0,o=r.length;o>s;s++)if(i=r[s],e(t[i],i,t))return i},v.pick=function(t,e,n){var i,r,s={},o=t;if(null==o)return s;v.isFunction(e)?(r=v.allKeys(o),i=w(e,n)):(r=j(arguments,!1,!1,1),i=function(t,e,n){return e in n},o=Object(o));for(var a=0,l=r.length;l>a;a++){var c=r[a],u=o[c];i(u,c,o)&&(s[c]=u)}return s},v.omit=function(t,e,n){if(v.isFunction(e))e=v.negate(e);else{var i=v.map(j(arguments,!1,!1,1),String);e=function(t,e){return!v.contains(i,e)}}return v.pick(t,e,n)},v.defaults=S(v.allKeys,!0),v.create=function(t,e){var n=_(t);return e&&v.extendOwn(n,e),n},v.clone=function(t){return v.isObject(t)?v.isArray(t)?t.slice():v.extend({},t):t},v.tap=function(t,e){return e(t),t},v.isMatch=function(t,e){var n=v.keys(e),i=n.length;if(null==t)return!i;for(var r=Object(t),s=0;i>s;s++){var o=n[s];if(e[o]!==r[o]||!(o in r))return!1}return!0};var $=function(t,e,n,i){if(t===e)return 0!==t||1/t===1/e;if(null==t||null==e)return t===e;t instanceof v&&(t=t._wrapped),e instanceof v&&(e=e._wrapped);var r=p.call(t);if(r!==p.call(e))return!1;switch(r){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!==+t?+e!==+e:0===+t?1/+t===1/e:+t===+e;case"[object Date]":case"[object Boolean]":return+t===+e}var s="[object Array]"===r;if(!s){if("object"!=typeof t||"object"!=typeof e)return!1;var o=t.constructor,a=e.constructor;if(o!==a&&!(v.isFunction(o)&&o instanceof o&&v.isFunction(a)&&a instanceof a)&&"constructor"in t&&"constructor"in e)return!1}n=n||[],i=i||[];for(var l=n.length;l--;)if(n[l]===t)return i[l]===e;if(n.push(t),i.push(e),s){if(l=t.length,l!==e.length)return!1;for(;l--;)if(!$(t[l],e[l],n,i))return!1}else{var c,u=v.keys(t);if(l=u.length,v.keys(e).length!==l)return!1;for(;l--;)if(c=u[l],!v.has(e,c)||!$(t[c],e[c],n,i))return!1}return n.pop(),i.pop(),!0};v.isEqual=function(t,e){return $(t,e)},v.isEmpty=function(t){return null==t?!0:A(t)&&(v.isArray(t)||v.isString(t)||v.isArguments(t))?0===t.length:0===v.keys(t).length},v.isElement=function(t){return!(!t||1!==t.nodeType)},v.isArray=f||function(t){return"[object Array]"===p.call(t)},v.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},v.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){v["is"+t]=function(e){return p.call(e)==="[object "+t+"]"}}),v.isArguments(arguments)||(v.isArguments=function(t){return v.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(v.isFunction=function(t){return"function"==typeof t||!1}),v.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},v.isNaN=function(t){return v.isNumber(t)&&t!==+t},v.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"===p.call(t)},v.isNull=function(t){return null===t},v.isUndefined=function(t){return void 0===t},v.has=function(t,e){return null!=t&&h.call(t,e)},v.noConflict=function(){return r._=s,this},v.identity=function(t){return t},v.constant=function(t){return function(){return t}},v.noop=function(){},v.property=k,v.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},v.matcher=v.matches=function(t){return t=v.extendOwn({},t),function(e){return v.isMatch(e,t)}},v.times=function(t,e,n){var i=Array(Math.max(0,t));e=w(e,n,1);for(var r=0;t>r;r++)i[r]=e(r);return i},v.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},v.now=Date.now||function(){return(new Date).getTime()};var O={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},M=v.invert(O),L=function(t){var e=function(e){return t[e]},n="(?:"+v.keys(t).join("|")+")",i=RegExp(n),r=RegExp(n,"g");return function(t){return t=null==t?"":""+t,i.test(t)?t.replace(r,e):t}};v.escape=L(O),v.unescape=L(M),v.result=function(t,e,n){var i=null==t?void 0:t[e];return void 0===i&&(i=n),v.isFunction(i)?i.call(t):i};var I=0;v.uniqueId=function(t){var e=++I+"";return t?t+e:e},v.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var D=/(.)^/,N={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},H=/\\|'|\r|\n|\u2028|\u2029/g,F=function(t){return"\\"+N[t]};v.template=function(t,e,n){!e&&n&&(e=n),e=v.defaults({},e,v.templateSettings);var i=RegExp([(e.escape||D).source,(e.interpolate||D).source,(e.evaluate||D).source].join("|")+"|$","g"),r=0,s="__p+='";t.replace(i,function(e,n,i,o,a){return s+=t.slice(r,a).replace(H,F),r=a+e.length,n?s+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?s+="'+\n((__t=("+i+"))==null?'':__t)+\n'":o&&(s+="';\n"+o+"\n__p+='"),e}),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{var o=new Function(e.variable||"obj","_",s)}catch(a){throw a.source=s,a}var l=function(t){return o.call(this,t,v)},c=e.variable||"obj";return l.source="function("+c+"){\n"+s+"}",l},v.chain=function(t){var e=v(t);return e._chain=!0,e};var z=function(t,e){return t._chain?v(e).chain():e};v.mixin=function(t){v.each(v.functions(t),function(e){var n=v[e]=t[e];v.prototype[e]=function(){var t=[this._wrapped];return c.apply(t,arguments),z(this,n.apply(v,t))}})},v.mixin(v),v.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=o[t];v.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],z(this,n)}}),v.each(["concat","join","slice"],function(t){var e=o[t];v.prototype[t]=function(){return z(this,e.apply(this._wrapped,arguments))}}),v.prototype.value=function(){return this._wrapped},v.prototype.valueOf=v.prototype.toJSON=v.prototype.value,v.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return v})}.call(this),function(t,e){var n=[],i=[],r=[],s={gsub:function(t,e,n){var i=new RegExp(e.source||e,"gi");return i.test(t)?t.replace(i,n):null},plural:function(t,e){n.unshift([t,e])},pluralize:function(i,s,o){var a;if(s!==e)s=parseFloat(s),a=1===s?this.singularize(i):this.pluralize(i),a=o?[s,a].join(" "):a;else{if(t(r).include(i))return i;a=i,t(n).detect(function(t){var e=this.gsub(i,t[0],t[1]);return e?a=e:!1},this)}return a},singular:function(t,e){i.unshift([t,e])},singularize:function(e){if(t(r).include(e))return e;var n=e;return t(i).detect(function(t){var i=this.gsub(e,t[0],t[1]);return i?n=i:!1},this),n},irregular:function(t,e){this.plural("\\b"+t+"\\b",e),this.singular("\\b"+e+"\\b",t)},uncountable:function(t){r.unshift(t)},ordinalize:function(t){if(isNaN(t))return t;t=t.toString();var e=t.slice(-1),n=t.slice(-2);if("11"===n||"12"===n||"13"===n)return t+"th";switch(e){case"1":return t+"st";case"2":return t+"nd";case"3":return t+"rd";default:return t+"th"}},titleize:function(t){return"string"!=typeof t?t:t.replace(/\S+/g,function(t){return t.charAt(0).toUpperCase()+t.slice(1)})},resetInflections:function(){return n=[],i=[],r=[],this.plural(/$/,"s"),this.plural(/s$/,"s"),this.plural(/(ax|test)is$/,"$1es"),this.plural(/(octop|vir)us$/,"$1i"),this.plural(/(octop|vir)i$/,"$1i"),this.plural(/(alias|status)$/,"$1es"),this.plural(/(bu)s$/,"$1ses"),this.plural(/(buffal|tomat)o$/,"$1oes"),this.plural(/([ti])um$/,"$1a"),this.plural(/([ti])a$/,"$1a"),this.plural(/sis$/,"ses"),this.plural(/(?:([^f])fe|([lr])?f)$/,"$1$2ves"),this.plural(/(hive)$/,"$1s"),this.plural(/([^aeiouy]|qu)y$/,"$1ies"),this.plural(/(x|ch|ss|sh)$/,"$1es"),this.plural(/(matr|vert|ind)(?:ix|ex)$/,"$1ices"),this.plural(/([m|l])ouse$/,"$1ice"),this.plural(/([m|l])ice$/,"$1ice"),this.plural(/^(ox)$/,"$1en"),this.plural(/^(oxen)$/,"$1"),this.plural(/(quiz)$/,"$1zes"),this.singular(/s$/,""),this.singular(/(n)ews$/,"$1ews"),this.singular(/([ti])a$/,"$1um"),this.singular(/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/,"$1$2sis"),this.singular(/(^analy)ses$/,"$1sis"),this.singular(/([^f])ves$/,"$1fe"),this.singular(/(hive)s$/,"$1"),this.singular(/(tive)s$/,"$1"),this.singular(/([lr])ves$/,"$1f"),this.singular(/([^aeiouy]|qu)ies$/,"$1y"),this.singular(/(s)eries$/,"$1eries"),this.singular(/(m)ovies$/,"$1ovie"),this.singular(/(x|ch|ss|sh)es$/,"$1"),this.singular(/([m|l])ice$/,"$1ouse"),this.singular(/(bus)es$/,"$1"),this.singular(/(o)es$/,"$1"),this.singular(/(shoe)s$/,"$1"),this.singular(/(cris|ax|test)es$/,"$1is"),this.singular(/(octop|vir)i$/,"$1us"),this.singular(/(alias|status)es$/,"$1"),this.singular(/^(ox)en/,"$1"),this.singular(/(vert|ind)ices$/,"$1ex"),this.singular(/(matr)ices$/,"$1ix"),this.singular(/(quiz)zes$/,"$1"),this.singular(/(database)s$/,"$1"),this.irregular("person","people"),this.irregular("man","men"),this.irregular("child","children"),this.irregular("sex","sexes"),this.irregular("move","moves"),this.irregular("cow","kine"),this.uncountable("equipment"),this.uncountable("information"),this.uncountable("rice"),this.uncountable("money"),this.uncountable("species"),this.uncountable("series"),this.uncountable("fish"),this.uncountable("sheep"),this.uncountable("jeans"),this}};t.mixin(s.resetInflections())}(_),function(t){var e="object"==typeof self&&self.self==self&&self||"object"==typeof global&&global.global==global&&global;if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(n,i,r){e.Backbone=t(e,r,n,i)});else if("undefined"!=typeof exports){var n,i=require("underscore");try{n=require("jquery")}catch(r){}t(e,exports,i,n)}else e.Backbone=t(e,{},e._,e.jQuery||e.Zepto||e.ender||e.$)}(function(t,e,n,i){var r=t.Backbone,s=[].slice;e.VERSION="1.2.1",e.$=i,e.noConflict=function(){return t.Backbone=r,this},e.emulateHTTP=!1,e.emulateJSON=!1;var o=function(t,e,i){switch(t){case 1:return function(){return n[e](this[i])};case 2:return function(t){return n[e](this[i],t)};case 3:return function(t,r){return n[e](this[i],t,r)};case 4:return function(t,r,s){return n[e](this[i],t,r,s)};default:return function(){var t=s.call(arguments);return t.unshift(this[i]),n[e].apply(n,t)}}},a=function(t,e,i){n.each(e,function(e,r){n[r]&&(t.prototype[r]=o(e,r,i))})},l=e.Events={},c=/\s+/,u=function(t,e,i,r,s){var o,a=0;if(i&&"object"==typeof i){void 0!==r&&"context"in s&&void 0===s.context&&(s.context=r);for(o=n.keys(i);a<o.length;a++)e=t(e,o[a],i[o[a]],s)}else if(i&&c.test(i))for(o=i.split(c);a<o.length;a++)e=t(e,o[a],r,s);else e=t(e,i,r,s);return e};l.on=function(t,e,n){return p(this,t,e,n)};var p=function(t,e,n,i,r){if(t._events=u(h,t._events||{},e,n,{context:i,ctx:t,listening:r}),r){var s=t._listeners||(t._listeners={});s[r.id]=r}return t};l.listenTo=function(t,e,i){if(!t)return this;var r=t._listenId||(t._listenId=n.uniqueId("l")),s=this._listeningTo||(this._listeningTo={}),o=s[r];if(!o){var a=this._listenId||(this._listenId=n.uniqueId("l"));o=s[r]={obj:t,objId:r,id:a,listeningTo:s,count:0}}return p(t,e,i,this,o),this};var h=function(t,e,n,i){if(n){var r=t[e]||(t[e]=[]),s=i.context,o=i.ctx,a=i.listening;a&&a.count++,r.push({callback:n,context:s,ctx:s||o,listening:a})}return t};l.off=function(t,e,n){return this._events?(this._events=u(f,this._events,t,e,{context:n,listeners:this._listeners}),this):this},l.stopListening=function(t,e,i){var r=this._listeningTo;if(!r)return this;for(var s=t?[t._listenId]:n.keys(r),o=0;o<s.length;o++){var a=r[s[o]];if(!a)break;a.obj.off(e,i,this)}return n.isEmpty(r)&&(this._listeningTo=void 0),this};var f=function(t,e,i,r){if(t){var s,o=0,a=r.context,l=r.listeners;if(e||i||a){for(var c=e?[e]:n.keys(t);o<c.length;o++){e=c[o];var u=t[e];if(!u)break;for(var p=[],h=0;h<u.length;h++){var f=u[h];i&&i!==f.callback&&i!==f.callback._callback||a&&a!==f.context?p.push(f):(s=f.listening,s&&0===--s.count&&(delete l[s.id],delete s.listeningTo[s.objId]))}p.length?t[e]=p:delete t[e]}return n.size(t)?t:void 0}for(var d=n.keys(l);o<d.length;o++)s=l[d[o]],delete l[s.id],delete s.listeningTo[s.objId]}};l.once=function(t,e,i){var r=u(d,{},t,e,n.bind(this.off,this));return this.on(r,void 0,i)},l.listenToOnce=function(t,e,i){var r=u(d,{},e,i,n.bind(this.stopListening,this,t));return this.listenTo(t,r)};var d=function(t,e,i,r){if(i){var s=t[e]=n.once(function(){r(e,s),i.apply(this,arguments)});s._callback=i}return t};l.trigger=function(t){if(!this._events)return this;for(var e=Math.max(0,arguments.length-1),n=Array(e),i=0;e>i;i++)n[i]=arguments[i+1];return u(g,this._events,t,void 0,n),this};var g=function(t,e,n,i){if(t){var r=t[e],s=t.all;r&&s&&(s=s.slice()),r&&m(r,i),s&&m(s,[e].concat(i))}return t},m=function(t,e){var n,i=-1,r=t.length,s=e[0],o=e[1],a=e[2];switch(e.length){case 0:for(;++i<r;)(n=t[i]).callback.call(n.ctx);return;case 1:for(;++i<r;)(n=t[i]).callback.call(n.ctx,s);return;case 2:for(;++i<r;)(n=t[i]).callback.call(n.ctx,s,o);return;case 3:for(;++i<r;)(n=t[i]).callback.call(n.ctx,s,o,a);return;default:for(;++i<r;)(n=t[i]).callback.apply(n.ctx,e);return}};l.bind=l.on,l.unbind=l.off,n.extend(e,l);var y=e.Model=function(t,e){var i=t||{};e||(e={}),this.cid=n.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(i=this.parse(i,e)||{}),i=n.defaults({},i,n.result(this,"defaults")),this.set(i,e),this.changed={},this.initialize.apply(this,arguments)};n.extend(y.prototype,l,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",initialize:function(){},toJSON:function(){return n.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return n.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!n.iteratee(t,this)(this.attributes)},set:function(t,e,i){if(null==t)return this;var r;if("object"==typeof t?(r=t,i=e):(r={})[t]=e,i||(i={}),!this._validate(r,i))return!1;var s=i.unset,o=i.silent,a=[],l=this._changing;this._changing=!0,l||(this._previousAttributes=n.clone(this.attributes),this.changed={});var c=this.attributes,u=this.changed,p=this._previousAttributes;this.idAttribute in r&&(this.id=r[this.idAttribute]);for(var h in r)e=r[h],n.isEqual(c[h],e)||a.push(h),n.isEqual(p[h],e)?delete u[h]:u[h]=e,s?delete c[h]:c[h]=e;if(!o){a.length&&(this._pending=i);for(var f=0;f<a.length;f++)this.trigger("change:"+a[f],this,c[a[f]],i)}if(l)return this;if(!o)for(;this._pending;)i=this._pending,this._pending=!1,this.trigger("change",this,i);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,n.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var i in this.attributes)e[i]=void 0;return this.set(e,n.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!n.isEmpty(this.changed):n.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?n.clone(this.changed):!1;var e=this._changing?this._previousAttributes:this.attributes,i={};for(var r in t){var s=t[r];n.isEqual(e[r],s)||(i[r]=s)}return n.size(i)?i:!1},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(t){t=n.extend({parse:!0},t);var e=this,i=t.success;return t.success=function(n){var r=t.parse?e.parse(n,t):n;return e.set(r,t)?(i&&i.call(t.context,e,n,t),void e.trigger("sync",e,n,t)):!1},H(this,t),this.sync("read",this,t)},save:function(t,e,i){var r;null==t||"object"==typeof t?(r=t,i=e):(r={})[t]=e,i=n.extend({validate:!0,parse:!0},i);var s=i.wait;if(r&&!s){if(!this.set(r,i))return!1}else if(!this._validate(r,i))return!1;var o=this,a=i.success,l=this.attributes;i.success=function(t){o.attributes=l;var e=i.parse?o.parse(t,i):t;return s&&(e=n.extend({},r,e)),e&&!o.set(e,i)?!1:(a&&a.call(i.context,o,t,i),void o.trigger("sync",o,t,i))},H(this,i),r&&s&&(this.attributes=n.extend({},l,r));var c=this.isNew()?"create":i.patch?"patch":"update";"patch"!==c||i.attrs||(i.attrs=r);var u=this.sync(c,this,i);return this.attributes=l,u},destroy:function(t){t=t?n.clone(t):{};var e=this,i=t.success,r=t.wait,s=function(){e.stopListening(),e.trigger("destroy",e,e.collection,t)};t.success=function(n){r&&s(),i&&i.call(t.context,e,n,t),e.isNew()||e.trigger("sync",e,n,t)};var o=!1;return this.isNew()?n.defer(t.success):(H(this,t),o=this.sync("delete",this,t)),r||s(),o},url:function(){var t=n.result(this,"urlRoot")||n.result(this.collection,"url")||N();if(this.isNew())return t;var e=this.get(this.idAttribute);return t.replace(/[^\/]$/,"$&/")+encodeURIComponent(e)},parse:function(t){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},n.defaults({validate:!0},t))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=n.extend({},this.attributes,t);var i=this.validationError=this.validate(t,e)||null;return i?(this.trigger("invalid",this,i,n.extend(e,{validationError:i})),!1):!0}});var v={keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1};a(y,v,"attributes");var w=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,n.extend({silent:!0},e))},b={add:!0,remove:!0,merge:!0},S={add:!0,remove:!1};n.extend(w.prototype,l,{model:y,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,n.extend({merge:!1},e,S))},remove:function(t,e){e=n.extend({},e);var i=!n.isArray(t);t=i?[t]:n.clone(t);var r=this._removeModels(t,e);return!e.silent&&r&&this.trigger("update",this,e),i?r[0]:r},set:function(t,e){e=n.defaults({},e,b),e.parse&&!this._isModel(t)&&(t=this.parse(t,e));var i=!n.isArray(t);t=i?t?[t]:[]:t.slice();var r,s,o,a,l,c=e.at;null!=c&&(c=+c),0>c&&(c+=this.length+1);for(var u=this.comparator&&null==c&&e.sort!==!1,p=n.isString(this.comparator)?this.comparator:null,h=[],f=[],d={},g=e.add,m=e.merge,y=e.remove,v=!u&&g&&y?[]:!1,w=!1,S=0;S<t.length;S++){if(o=t[S],a=this.get(o))y&&(d[a.cid]=!0),m&&o!==a&&(o=this._isModel(o)?o.attributes:o,e.parse&&(o=a.parse(o,e)),a.set(o,e),u&&!l&&a.hasChanged(p)&&(l=!0)),t[S]=a;else if(g){if(s=t[S]=this._prepareModel(o,e),!s)continue;h.push(s),this._addReference(s,e)}s=a||s,s&&(r=this.modelId(s.attributes),!v||!s.isNew()&&d[r]||(v.push(s),w=w||!this.models[S]||s.cid!==this.models[S].cid),d[r]=!0)}if(y){for(var S=0;S<this.length;S++)d[(s=this.models[S]).cid]||f.push(s);f.length&&this._removeModels(f,e)}if(h.length||w)if(u&&(l=!0),this.length+=h.length,null!=c)for(var S=0;S<h.length;S++)this.models.splice(c+S,0,h[S]);else{v&&(this.models.length=0);for(var _=v||h,S=0;S<_.length;S++)this.models.push(_[S])}if(l&&this.sort({silent:!0}),!e.silent){for(var k=null!=c?n.clone(e):e,S=0;S<h.length;S++)null!=c&&(k.index=c+S),(s=h[S]).trigger("add",s,this,k);(l||w)&&this.trigger("sort",this,e),(h.length||f.length)&&this.trigger("update",this,e)}return i?t[0]:t},reset:function(t,e){e=e?n.clone(e):{};for(var i=0;i<this.models.length;i++)this._removeReference(this.models[i],e);return e.previousModels=this.models,this._reset(),t=this.add(t,n.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,n.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,n.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return s.apply(this.models,arguments)},get:function(t){if(null==t)return void 0;var e=this.modelId(this._isModel(t)?t.attributes:t);return this._byId[t]||this._byId[e]||this._byId[t.cid]},at:function(t){return 0>t&&(t+=this.length),this.models[t]},where:function(t,e){var i=n.matches(t);return this[e?"find":"filter"](function(t){return i(t.attributes)})},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return t||(t={}),n.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this)),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return n.invoke(this.models,"get",t)},fetch:function(t){t=n.extend({parse:!0},t);var e=t.success,i=this;return t.success=function(n){var r=t.reset?"reset":"set";i[r](n,t),e&&e.call(t.context,i,n,t),i.trigger("sync",i,n,t)},H(this,t),this.sync("read",this,t)},create:function(t,e){e=e?n.clone(e):{};var i=e.wait;if(t=this._prepareModel(t,e),!t)return!1;i||this.add(t,e);var r=this,s=e.success;return e.success=function(t,e,n){i&&r.add(t,n),s&&s.call(n.context,t,e,n)},t.save(null,e),t},parse:function(t){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t){return t[this.model.prototype.idAttribute||"id"]},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(this._isModel(t))return t.collection||(t.collection=this),t;e=e?n.clone(e):{},e.collection=this;var i=new this.model(t,e);return i.validationError?(this.trigger("invalid",this,i.validationError,e),!1):i},_removeModels:function(t,e){for(var n=[],i=0;i<t.length;i++){var r=this.get(t[i]);if(r){var s=this.indexOf(r);this.models.splice(s,1),this.length--,e.silent||(e.index=s,r.trigger("remove",r,this,e)),n.push(r),this._removeReference(r,e)}}return n.length?n:!1},_isModel:function(t){return t instanceof y},_addReference:function(t){this._byId[t.cid]=t;var e=this.modelId(t.attributes);null!=e&&(this._byId[e]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t){delete this._byId[t.cid];var e=this.modelId(t.attributes);null!=e&&delete this._byId[e],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,i){if("add"!==t&&"remove"!==t||n===this){if("destroy"===t&&this.remove(e,i),"change"===t){var r=this.modelId(e.previousAttributes()),s=this.modelId(e.attributes);r!==s&&(null!=r&&delete this._byId[r],null!=s&&(this._byId[s]=e))}this.trigger.apply(this,arguments)}}});var _={forEach:3,each:3,map:3,collect:3,reduce:4,foldl:4,inject:4,reduceRight:4,foldr:4,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:2,contains:2,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3};a(w,_,"models");var k=["groupBy","countBy","sortBy","indexBy"];n.each(k,function(t){n[t]&&(w.prototype[t]=function(e,i){var r=n.isFunction(e)?e:function(t){return t.get(e)};return n[t](this.models,r,i)})});var x=e.View=function(t){this.cid=n.uniqueId("view"),n.extend(this,n.pick(t,A)),this._ensureElement(),this.initialize.apply(this,arguments)},T=/^(\S+)\s*(.*)$/,A=["model","collection","el","id","attributes","className","tagName","events"];n.extend(x.prototype,l,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t||(t=n.result(this,"events")),!t)return this;this.undelegateEvents();for(var e in t){var i=t[e];if(n.isFunction(i)||(i=this[i]),i){var r=e.match(T);this.delegate(r[1],r[2],n.bind(i,this))}}return this},delegate:function(t,e,n){return this.$el.on(t+".delegateEvents"+this.cid,e,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(t,e,n){return this.$el.off(t+".delegateEvents"+this.cid,e,n),this
  5. },_createElement:function(t){return document.createElement(t)},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"));else{var t=n.extend({},n.result(this,"attributes"));this.id&&(t.id=n.result(this,"id")),this.className&&(t["class"]=n.result(this,"className")),this.setElement(this._createElement(n.result(this,"tagName"))),this._setAttributes(t)}},_setAttributes:function(t){this.$el.attr(t)}}),e.sync=function(t,i,r){var s=C[t];n.defaults(r||(r={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var o={type:s,dataType:"json"};if(r.url||(o.url=n.result(i,"url")||N()),null!=r.data||!i||"create"!==t&&"update"!==t&&"patch"!==t||(o.contentType="application/json",o.data=JSON.stringify(r.attrs||i.toJSON(r))),r.emulateJSON&&(o.contentType="application/x-www-form-urlencoded",o.data=o.data?{model:o.data}:{}),r.emulateHTTP&&("PUT"===s||"DELETE"===s||"PATCH"===s)){o.type="POST",r.emulateJSON&&(o.data._method=s);var a=r.beforeSend;r.beforeSend=function(t){return t.setRequestHeader("X-HTTP-Method-Override",s),a?a.apply(this,arguments):void 0}}"GET"===o.type||r.emulateJSON||(o.processData=!1);var l=r.error;r.error=function(t,e,n){r.textStatus=e,r.errorThrown=n,l&&l.call(r.context,t,e,n)};var c=r.xhr=e.ajax(n.extend(o,r));return i.trigger("request",i,c,r),c};var C={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var j=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},J=/\((.*?)\)/g,E=/(\(\?)?:\w+/g,P=/\*\w+/g,$=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(j.prototype,l,{initialize:function(){},route:function(t,i,r){n.isRegExp(t)||(t=this._routeToRegExp(t)),n.isFunction(i)&&(r=i,i=""),r||(r=this[i]);var s=this;return e.history.route(t,function(n){var o=s._extractParameters(t,n);s.execute(r,o,i)!==!1&&(s.trigger.apply(s,["route:"+i].concat(o)),s.trigger("route",i,o),e.history.trigger("route",s,i,o))}),this},execute:function(t,e){t&&t.apply(this,e)},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var t,e=n.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace($,"\\$&").replace(J,"(?:$1)?").replace(E,function(t,e){return e?t:"([^/?]+)"}).replace(P,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var i=t.exec(e).slice(1);return n.map(i,function(t,e){return e===i.length-1?t||null:t?decodeURIComponent(t):null})}});var O=e.History=function(){this.handlers=[],n.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},M=/^[#\/]|\s+$/g,L=/^\/+|\/+$/g,I=/#.*$/;O.started=!1,n.extend(O.prototype,l,{interval:50,atRoot:function(){var t=this.location.pathname.replace(/[^\/]$/,"$&/");return t===this.root&&!this.getSearch()},matchRoot:function(){var t=this.decodeFragment(this.location.pathname),e=t.slice(0,this.root.length-1)+"/";return e===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return null==t&&(t=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),t.replace(M,"")},start:function(t){if(O.started)throw new Error("Backbone.history has already been started");if(O.started=!0,this.options=n.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._hasHashChange="onhashchange"in window,this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(L,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||"/";return this.location.replace(e+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var i=document.body,r=i.insertBefore(this.iframe,i.firstChild).contentWindow;r.document.open(),r.document.close(),r.location.hash="#"+this.fragment}var s=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};return this._usePushState?s("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?s("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.options.silent?void 0:this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),O.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(){var t=this.getFragment();return t===this.fragment&&this.iframe&&(t=this.getHash(this.iframe.contentWindow)),t===this.fragment?!1:(this.iframe&&this.navigate(t),void this.loadUrl())},loadUrl:function(t){return this.matchRoot()?(t=this.fragment=this.getFragment(t),n.any(this.handlers,function(e){return e.route.test(t)?(e.callback(t),!0):void 0})):!1},navigate:function(t,e){if(!O.started)return!1;e&&e!==!0||(e={trigger:!!e}),t=this.getFragment(t||"");var n=this.root;(""===t||"?"===t.charAt(0))&&(n=n.slice(0,-1)||"/");var i=n+t;if(t=this.decodeFragment(t.replace(I,"")),this.fragment!==t){if(this.fragment=t,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);if(this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var r=this.iframe.contentWindow;e.replace||(r.document.open(),r.document.close()),this._updateHash(r.location,t,e.replace)}}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var i=t.href.replace(/(javascript:|#).*$/,"");t.replace(i+"#"+e)}else t.hash="#"+e}}),e.history=new O;var D=function(t,e){var i,r=this;i=t&&n.has(t,"constructor")?t.constructor:function(){return r.apply(this,arguments)},n.extend(i,r,e);var s=function(){this.constructor=i};return s.prototype=r.prototype,i.prototype=new s,t&&n.extend(i.prototype,t),i.__super__=r.prototype,i};y.extend=w.extend=j.extend=x.extend=O.extend=D;var N=function(){throw new Error('A "url" property or function must be specified')},H=function(t,e){var n=e.error;e.error=function(i){n&&n.call(e.context,t,i,e),t.trigger("error",t,i,e)}};return e}),function(t,e){"function"==typeof define&&define.amd?define(["underscore","backbone"],function(n,i){return e(n||t._,i||t.Backbone)}):e(_,Backbone)}(this,function(t,e){function n(e,n){var i=null;try{i=n.url}catch(r){}if(!i)try{i=t.result(e,"url")}catch(r){}return i}function i(t,e){return":"===t||":"===e?!1:t===e?!1:!0}var r={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};return e.vanillaSync=e.sync,e.sync=function(s,o,a){var l=!1,c=document.createElement("a");c.href=document.URL;var u=document.createElement("a");if(u.href=n(o,a),""!==u.host&&c.host!==u.host&&(l=!0),l&&!e.$.support.cors){var p=r[s];if(t.defaults(a||(a={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON}),!a.emulateHTTP&&("update"===s||"patch"===s||"delete"===s))throw new Error("Backbone.CrossDomain cannot use PUT, PATCH, DELETE with XDomainRequest (IE) and emulateHTTP=false");var h={type:p,dataType:"json",url:n(o,a)};if(!h.url)throw new Error("No URL!");if(i(c.protocol,u.protocol)&&(h.url=h.url.replace(new RegExp(u.protocol),c.protocol)),null!=a.data||!o||"create"!==s&&"update"!==s&&"patch"!==s||(h.data=JSON.stringify(a.attrs||o.toJSON(a))),a.emulateJSON&&(h.data=h.data?{model:h.data}:{}),a.emulateHTTP&&("PUT"===p||"DELETE"===p||"PATCH"===p)){h.type="POST",a.emulateJSON&&(h.data._method=p);var f=a.beforeSend;a.beforeSend=function(){return f?f.apply(this,arguments):void 0}}"GET"===h.type||a.emulateJSON||(h.processData=!1),"POST"===h.type&&(h.data=e.$.param(e.$.parseJSON(h.data)));var d=a.xhr=new XDomainRequest,g=a.success,m=a.error;if(e.$.fn.jquery){var y=e.$.Deferred(),v=e.$.Callbacks("once memory");y.promise(d).complete=v.add}return d.onload=function(){var t={};d.responseText&&(t=e.$.parseJSON(d.responseText)),t&&(y&&y.resolveWith(this,[t,"success",d]),g(t))},d.onerror=function(){m&&(m(o,d,a),y&&y.rejectWith(this,[d,"error",m])),o.trigger("error",o,d,a)},"read"===s&&a.data&&(console.log("IE get params",JSON.stringify(a.data)),parameterized=e.$.param(a.data),h.url=h.url+"?"+parameterized),d.open(h.type,h.url),d.onprogress=function(){},d.ontimeout=function(){},setTimeout(function(){d.send(h.data)},0),o.trigger("request",o,d,a),d}return e.vanillaSync.apply(this,arguments)},e}),function(t,e){if("function"==typeof define&&define.amd)define(["underscore","backbone"],function(n,i){return e(t,i,n)});else if("undefined"!=typeof exports){var n=require("underscore"),i=require("backbone");e(t,i,n),"undefined"!=typeof module&&module.exports&&(module.exports=i),exports=i}else e(t,t.Backbone,t._)}(this,function(t,e,n){var i,r,s,o,a,l,c,u,p,h,f,d={};i=e.Model,r=e.Collection,s=i.prototype,a=r.prototype,o=e.Events,e.Associations={VERSION:"0.6.1"},e.Associations.scopes=[];var g=function(){return p},m=function(t){(!n.isString(t)||1>n.size(t))&&(t="."),p=t,c=RegExp("[\\"+p+"\\[\\]]+","g"),u=RegExp("[^\\"+p+"\\[\\]]+","g")};try{Object.defineProperty(e.Associations,"SEPARATOR",{enumerable:!0,get:g,set:m})}catch(y){}e.Associations.Many=e.Many="Many",e.Associations.One=e.One="One",e.Associations.Self=e.Self="Self",e.Associations.SEPARATOR=".",e.Associations.getSeparator=g,e.Associations.setSeparator=m,e.Associations.EVENTS_BUBBLE=!0,e.Associations.EVENTS_WILDCARD=!0,e.Associations.EVENTS_NC=!1,m(),l=e.AssociatedModel=e.Associations.AssociatedModel=i.extend({relations:void 0,_proxyCalls:void 0,on:function(t,i){var r=o.on.apply(this,arguments);if(e.Associations.EVENTS_NC)return r;var s=/\s+/;return n.isString(t)&&t&&!s.test(t)&&i&&(s=w(t))&&(d[s]="undefined"==typeof d[s]?1:d[s]+1),r},off:function(t,i,r){if(e.Associations.EVENTS_NC)return o.off.apply(this,arguments);var s=/\s+/,a=this._events,l={},c=a?n.keys(a):[],u=!t&&!i&&!r,p=n.isString(t)&&!s.test(t);if(u||p)for(var s=0,h=c.length;h>s;s++)l[c[s]]=a[c[s]]?a[c[s]].length:0;var f=o.off.apply(this,arguments);if(u||p)for(s=0,h=c.length;h>s;s++)(u=w(c[s]))&&(d[u]=a[c[s]]?d[u]-(l[c[s]]-a[c[s]].length):d[u]-l[c[s]]);return f},get:function(t){var e=s.get.call(this,t);return e?e:this._getAttr.apply(this,arguments)},set:function(t,e,i){var r;return n.isObject(t)||null==t?(r=t,i=e):(r={},r[t]=e),t=this._set(r,i),this._processPendingEvents(),t},_set:function(t,e){var i,r,s,o,a=this;if(!t)return this;for(i in t)if(r||(r={}),i.match(c)){var u=v(i);o=n.initial(u),u=u[u.length-1],o=this.get(o),o instanceof l&&(o=r[o.cid]||(r[o.cid]={model:o,data:{}}),o.data[u]=t[i])}else o=r[this.cid]||(r[this.cid]={model:this,data:{}}),o.data[i]=t[i];if(r)for(s in r)o=r[s],this._setAttr.call(o.model,o.data,e)||(a=!1);else a=this._setAttr.call(this,t,e);return a},_setAttr:function(o,a){var c;if(a||(a={}),a.unset)for(c in o)o[c]=void 0;return this.parents=this.parents||[],this.relations&&n.each(this.relations,function(s){var c,u,p,h=s.key,f=s.relatedModel,d=s.collectionType,g=s.scope||t,m=s.map,y=this.attributes[h],v=y&&y.idAttribute,w=!1;if(!f||f.prototype instanceof i||(f=n.isFunction(f)?f.call(this,s,o):f),f&&n.isString(f)&&(f=f===e.Self?this.constructor:b(f,g)),m&&n.isString(m)&&(m=b(m,g)),u=s.options?n.extend({},s.options,a):a,o[h]){if(c=n.result(o,h),c=m?m.call(this,c,d?d:f):c,s.type===e.Many){if(d&&n.isFunction(d)&&d.prototype instanceof i)throw Error("type is of Backbone.Model. Specify derivatives of Backbone.Collection");if(!d||d.prototype instanceof r||(d=n.isFunction(d)?d.call(this,s,o):d),d&&n.isString(d)&&(d=b(d,g)),!f&&!d)throw Error("specify either a relatedModel or collectionType");if(d&&!d.prototype instanceof r)throw Error("collectionType must inherit from Backbone.Collection");y?(y._deferEvents=!0,y[u.reset?"reset":"set"](c instanceof r?c.models:c,u),s=y):(w=!0,c instanceof r?s=c:(s=d?new d:this._createCollection(f,g),s[u.reset?"reset":"set"](c,u)))}else{if(s.type!==e.One)throw Error("type attribute must be specified and have the values Backbone.One or Backbone.Many");if(!f)throw Error("specify a relatedModel for Backbone.One type");if(!(f.prototype instanceof e.AssociatedModel))throw Error("specify an AssociatedModel for Backbone.One type");s=c instanceof l?c:new f(c,u),y&&s.attributes[v]&&y.attributes[v]===s.attributes[v]?(y._deferEvents=!0,y._set(c instanceof l?c.attributes:c,u),s=y):w=!0}p=o[h]=s,(w||p&&!p._proxyCallback)&&(p._proxyCallback=function(){return e.Associations.EVENTS_BUBBLE&&this._bubbleEvent.call(this,h,p,arguments)},p.on("all",p._proxyCallback,this))}o.hasOwnProperty(h)&&(y=o[h],v=this.attributes[h],y?(y.parents=y.parents||[],-1==n.indexOf(y.parents,this)&&y.parents.push(this)):v&&0<v.parents.length&&(v.parents=n.difference(v.parents,[this]),v._proxyCallback&&v.off("all",v._proxyCallback,this)))},this),s.set.call(this,o,a)},_bubbleEvent:function(t,n,s){var o,a=s[0].split(":"),l=a[0],c="nested-change"==s[0],u="change"===l,g=s[1],m=-1,y=n._proxyCalls,a=a[1],v=!a||-1==a.indexOf(p);return!c&&(v&&(f=w(s[0])||t),e.Associations.EVENTS_NC||d[f])?e.Associations.EVENTS_WILDCARD&&/\[\*\]/g.test(a)?this:(n instanceof r&&(u||a)&&(m=n.indexOf(h||g)),this instanceof i&&(h=this),a=t+(-1!==m&&(u||a)?"["+m+"]":"")+(a?p+a:""),e.Associations.EVENTS_WILDCARD&&(o=a.replace(/\[\d+\]/g,"[*]")),c=[],c.push.apply(c,s),c[0]=l+":"+a,e.Associations.EVENTS_WILDCARD&&a!==o&&(c[0]=c[0]+" "+l+":"+o),y=n._proxyCalls=y||{},this._isEventAvailable.call(this,y,a)?this:(y[a]=!0,u&&(this._previousAttributes[t]=n._previousAttributes,this.changed[t]=n),this.trigger.apply(this,c),e.Associations.EVENTS_NC&&u&&this.get(a)!=s[2]&&(t=["nested-change",a,s[1]],s[2]&&t.push(s[2]),this.trigger.apply(this,t)),y&&a&&delete y[a],h=void 0,this)):void 0},_isEventAvailable:function(t,e){return n.find(t,function(t,n){return-1!==e.indexOf(n,e.length-n.length)})},_createCollection:function(t,e){var i,s=t;if(n.isString(s)&&(s=b(s,e)),!(s&&s.prototype instanceof l||n.isFunction(s)))throw Error("type must inherit from Backbone.AssociatedModel");return i=new r,i.model=s,i},_processPendingEvents:function(){this._processedEvents||(this._processedEvents=!0,this._deferEvents=!1,n.each(this._pendingEvents,function(t){t.c.trigger.apply(t.c,t.a)}),this._pendingEvents=[],n.each(this.relations,function(t){(t=this.attributes[t.key])&&t._processPendingEvents()},this),delete this._processedEvents)},trigger:function(){this._deferEvents?(this._pendingEvents=this._pendingEvents||[],this._pendingEvents.push({c:this,a:arguments})):s.trigger.apply(this,arguments)},toJSON:function(t){var e,i={};return i[this.idAttribute]=this.id,this.visited||(this.visited=!0,i=s.toJSON.apply(this,arguments),t&&t.serialize_keys&&(i=n.pick(i,t.serialize_keys)),this.relations&&n.each(this.relations,function(r){var s=r.key,o=r.remoteKey,a=this.attributes[s],l=!r.isTransient;r=r.serialize||[],delete i[s],l&&(r.length&&(t?t.serialize_keys=r:t={serialize_keys:r}),e=a&&a.toJSON?a.toJSON(t):a,i[o||s]=n.isArray(e)?n.compact(e):e)},this),delete this.visited),i},clone:function(t){return new this.constructor(this.toJSON(t))},cleanup:function(){n.each(this.relations,function(t){(t=this.attributes[t.key])&&(t.parents=n.difference(t.parents,[this]))},this),this.off()},_getAttr:function(t){var e=this;t=v(t);var i,s;if(!(1>n.size(t))){for(s=0;s<t.length&&(i=t[s],e);s++)e=e instanceof r?isNaN(i)?void 0:e.at(i):e.attributes[i];return e}}});var v=function(t){return""===t?[""]:n.isString(t)?t.match(u):t||[]},w=function(t){return t?(t=t.split(":"),1<t.length?(t=t[t.length-1],t=t.split(p),1<t.length?t[t.length-1].split("[")[0]:t[0].split("[")[0]):""):t},b=function(t,i){var r,s=[i];s.push.apply(s,e.Associations.scopes);for(var o,a=0,l=s.length;l>a&&(!(o=s[a])||!(r=n.reduce(t.split(p),function(t,e){return t[e]},o)));++a);return r},S=function(t,e,i){var r,s;return n.find(t,function(t){return(r=n.find(t.relations,function(n){return t.get(n.key)===e},this))?(s=t,!0):void 0},this),r&&r.map?r.map.call(s,i,e):i},_={};return n.each(["set","remove","reset"],function(t){_[t]=r.prototype[t],a[t]=function(e){return this.model.prototype instanceof l&&this.parents&&(arguments[0]=S(this.parents,this,e)),_[t].apply(this,arguments)}}),_.trigger=a.trigger,a.trigger=function(){this._deferEvents?(this._pendingEvents=this._pendingEvents||[],this._pendingEvents.push({c:this,a:arguments})):_.trigger.apply(this,arguments)},a._processPendingEvents=l.prototype._processPendingEvents,a.on=l.prototype.on,a.off=l.prototype.off,e}),window._u=_.noConflict(),window.JuicerBackbone=Backbone.noConflict(),function(){for(var t,e=function(){},n=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],i=n.length,r=window.console=window.console||{};i--;)t=n[i],r[t]||(r[t]=e)}(),"object"!=typeof JSON&&(JSON={}),function(){"use strict";function f(t){return 10>t?"0"+t:t}function this_value(){return this.valueOf()}function quote(t){return rx_escapable.lastIndex=0,rx_escapable.test(t)?'"'+t.replace(rx_escapable,function(t){var e=meta[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'}function str(t,e){var n,i,r,s,o,a=gap,l=e[t];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(t)),"function"==typeof rep&&(l=rep.call(e,t,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,o=[],"[object Array]"===Object.prototype.toString.apply(l)){for(s=l.length,n=0;s>n;n+=1)o[n]=str(n,l)||"null";return r=0===o.length?"[]":gap?"[\n"+gap+o.join(",\n"+gap)+"\n"+a+"]":"["+o.join(",")+"]",gap=a,r}if(rep&&"object"==typeof rep)for(s=rep.length,n=0;s>n;n+=1)"string"==typeof rep[n]&&(i=rep[n],r=str(i,l),r&&o.push(quote(i)+(gap?": ":":")+r));else for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(r=str(i,l),r&&o.push(quote(i)+(gap?": ":":")+r));return r=0===o.length?"{}":gap?"{\n"+gap+o.join(",\n"+gap)+"\n"+a+"}":"{"+o.join(",")+"}",gap=a,r}}var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;"function"!=typeof JSON.stringify&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(t,e,n){var i;if(gap="",indent="","number"==typeof n)for(i=0;n>i;i+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return str("",{"":t})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(t,e){var n,i,r=t[e];if(r&&"object"==typeof r)for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i=walk(r,n),void 0!==i?r[n]=i:delete r[n]);return reviver.call(t,e,r)}var j;if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),function(){function t(){}function e(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function n(t){return function(){return this[t].apply(this,arguments)}}var i=t.prototype,r=this,s=r.EventEmitter;i.getListeners=function(t){var e,n,i=this._getEvents();if("object"==typeof t){e={};for(n in i)i.hasOwnProperty(n)&&t.test(n)&&(e[n]=i[n])}else e=i[t]||(i[t]=[]);return e},i.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},i.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&(e={},e[t]=n),e||n},i.addListener=function(t,n){var i,r=this.getListenersAsObject(t),s="object"==typeof n;for(i in r)r.hasOwnProperty(i)&&-1===e(r[i],n)&&r[i].push(s?n:{listener:n,once:!1});return this},i.on=n("addListener"),i.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},i.once=n("addOnceListener"),i.defineEvent=function(t){return this.getListeners(t),this},i.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},i.removeListener=function(t,n){var i,r,s=this.getListenersAsObject(t);for(r in s)s.hasOwnProperty(r)&&(i=e(s[r],n),-1!==i&&s[r].splice(i,1));return this},i.off=n("removeListener"),i.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},i.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},i.manipulateListeners=function(t,e,n){var i,r,s=t?this.removeListener:this.addListener,o=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(i=n.length;i--;)s.call(this,e,n[i]);else for(i in e)e.hasOwnProperty(i)&&(r=e[i])&&("function"==typeof r?s.call(this,i,r):o.call(this,i,r));return this},i.removeEvent=function(t){var e,n=typeof t,i=this._getEvents();if("string"===n)delete i[t];else if("object"===n)for(e in i)i.hasOwnProperty(e)&&t.test(e)&&delete i[e];else delete this._events;return this},i.removeAllListeners=n("removeEvent"),i.emitEvent=function(t,e){var n,i,r,s,o=this.getListenersAsObject(t);for(r in o)if(o.hasOwnProperty(r))for(i=o[r].length;i--;)n=o[r][i],n.once===!0&&this.removeListener(t,n.listener),s=n.listener.apply(this,e||[]),s===this._getOnceReturnValue()&&this.removeListener(t,n.listener);return this},i.trigger=n("emitEvent"),i.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},i.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},i._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},i._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return r.EventEmitter=s,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:this.EventEmitter=t}.call(this),function(t){function e(e){var n=t.event;return n.target=n.target||n.srcElement||e,n}var n=document.documentElement,i=function(){};n.addEventListener?i=function(t,e,n){t.addEventListener(e,n,!1)}:n.attachEvent&&(i=function(t,n,i){t[n+i]=i.handleEvent?function(){var n=e(t);i.handleEvent.call(i,n)}:function(){var n=e(t);i.call(t,n)},t.attachEvent("on"+n,t[n+i])});var r=function(){};n.removeEventListener?r=function(t,e,n){t.removeEventListener(e,n,!1)}:n.detachEvent&&(r=function(t,e,n){t.detachEvent("on"+e,t[e+n]);try{delete t[e+n]}catch(i){t[e+n]=void 0}});var s={bind:i,unbind:r};"function"==typeof define&&define.amd?define("eventie/eventie",s):t.eventie=s}(this),function(t,e){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,i){return e(t,n,i)}):"object"==typeof exports?module.exports=e(t,require("wolfy87-eventemitter"),require("eventie")):t.imagesLoaded=e(t,t.EventEmitter,t.eventie)}(window,function(t,e,n){function i(t,e){for(var n in e)t[n]=e[n];return t}function r(t){return"[object Array]"===h.call(t)}function s(t){var e=[];if(r(t))e=t;else if("number"==typeof t.length)for(var n=0,i=t.length;i>n;n++)e.push(t[n]);else e.push(t);return e}function o(t,e,n){if(!(this instanceof o))return new o(t,e);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=s(t),this.options=i({},this.options),"function"==typeof e?n=e:i(this.options,e),n&&this.on("always",n),this.getImages(),c&&(this.jqDeferred=new c.Deferred);var r=this;setTimeout(function(){r.check()})}function a(t){this.img=t}function l(t){this.src=t,f[t]=this}var c=t.jQuery,u=t.console,p="undefined"!=typeof u,h=Object.prototype.toString;o.prototype=new e,o.prototype.options={},o.prototype.getImages=function(){this.images=[];for(var t=0,e=this.elements.length;e>t;t++){var n=this.elements[t];"IMG"===n.nodeName&&this.addImage(n);var i=n.nodeType;if(i&&(1===i||9===i||11===i))for(var r=n.querySelectorAll("img"),s=0,o=r.length;o>s;s++){var a=r[s];this.addImage(a)}}},o.prototype.addImage=function(t){var e=new a(t);this.images.push(e)},o.prototype.check=function(){function t(t,r){return e.options.debug&&p&&u.log("confirm",t,r),e.progress(t),n++,n===i&&e.complete(),!0}var e=this,n=0,i=this.images.length;if(this.hasAnyBroken=!1,!i)return void this.complete();for(var r=0;i>r;r++){var s=this.images[r];s.on("confirm",t),s.check()}},o.prototype.progress=function(t){this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded;var e=this;setTimeout(function(){e.emit("progress",e,t),e.jqDeferred&&e.jqDeferred.notify&&e.jqDeferred.notify(e,t)})},o.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var e=this;setTimeout(function(){if(e.emit(t,e),e.emit("always",e),e.jqDeferred){var n=e.hasAnyBroken?"reject":"resolve";e.jqDeferred[n](e)}})},c&&(c.fn.imagesLoaded=function(t,e){var n=new o(this,t,e);return n.jqDeferred.promise(c(this))}),a.prototype=new e,a.prototype.check=function(){var t=f[this.img.src]||new l(this.img.src);if(t.isConfirmed)return void this.confirm(t.isLoaded,"cached was confirmed");if(this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var e=this;t.on("confirm",function(t,n){return e.confirm(t.isLoaded,n),!0}),t.check()},a.prototype.confirm=function(t,e){this.isLoaded=t,this.emit("confirm",this,e)};var f={};return l.prototype=new e,l.prototype.check=function(){if(!this.isChecked){var t=new Image;n.bind(t,"load",this),n.bind(t,"error",this),t.src=this.src,this.isChecked=!0}},l.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.prototype.onload=function(t){this.confirm(!0,"onload"),this.unbindProxyEvents(t)},l.prototype.onerror=function(t){this.confirm(!1,"onerror"),this.unbindProxyEvents(t)},l.prototype.confirm=function(t,e){this.isConfirmed=!0,this.isLoaded=t,this.emit("confirm",this,e)},l.prototype.unbindProxyEvents=function(t){n.unbind(t.target,"load",this),n.unbind(t.target,"error",this)},o}),function(t,e){var n=function(t,e,n){var i;return function(){function r(){n||t.apply(s,o),i=null}var s=this,o=arguments;i?clearTimeout(i):n&&t.apply(s,o),i=setTimeout(r,e||150)}};jQuery.fn[e]=function(t){return t?this.bind("resize",n(t)):this.trigger(e)}}(jQuery,"smartresize"),function(t){t.Gal=function(e,n){this.element=t(n),this._init(e)},t.Gal.settings={selector:".item",width:225,gutter:20,animate:!1,columns:3,animationOptions:{speed:200,duration:300,effect:"fadeInOnAppear",queue:!0,complete:function(){}}},t.Gal.prototype={_init:function(e){var n=this;this.name=this._setName(5),this.gridArr=[],this.gridArrAppend=[],this.gridArrPrepend=[],this.setArr=!1,this.setGrid=!1,this.setOptions,this.cols=0,this.itemCount=0,this.prependCount=0,this.isPrepending=!1,this.appendCount=0,this.resetCount=!0,this.ifCallback=!0,this.box=this.element,this.options=t.extend(!0,{},t.Gal.settings,e),this.gridArr=t.makeArray(this.box.find(this.options.selector)),this.isResizing=!1,this.w=0,this.boxArr=[],this.initialWidth=this.box.width(),this._setCols(),this._renderGrid("append"),t(this.box).addClass("gridalicious"),this._addLoadMore(),t(window).smartresize(function(){n.resize()})},_addLoadMore:function(){var e=t("<a>Load More</a>").addClass("j-paginate juicer-button");this.box.append(e)},_moveLoadMore:function(){var t=this.box.find(".j-paginate");t.length>0&&this.box.append(t.detach())},_setName:function(t,e){return e=e?e:"",t?this._setName(--t,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".charAt(Math.floor(60*Math.random()))+e):e},_setCols:function(){this.calculated=Math.floor(this.box.outerWidth()/this.options.width),this.cols=Math.min(this.options.columns,this.calculated),this.cols<1&&(this.cols=1),diff=(this.box.width()-this.cols*this.options.width)/this.cols,w=(this.options.width+diff)/this.box.width()*100,this.w=w,this.spacing=this.options.gutter/this.cols;for(var e=t("<div></div>").addClass("j-stacker-wrapper").css({marginLeft:-(this.options.gutter/2),marginRight:-(this.options.gutter/2)}),n=t("<div></div>").addClass("j-stacker"),i=0;i<this.cols;i++){var r=t("<div></div>").addClass("j-stack galcolumn").attr("id","item"+i+this.name).css({width:w+"%",paddingLeft:this.options.gutter/2,paddingRight:this.options.gutter/2});n.append(r)}e.append(n),this.box.append(e),this.box.find(t("#clear"+this.name)).remove();var s=t("<div></div>").css({clear:"both",height:"0",width:"0",display:"block"}).attr("id","clear"+this.name);this.box.append(s)},_renderGrid:function(e,n,i){{var r=[],s=[],o=0,a=(this.prependCount,this.appendCount),l=this.options.gutter,c=this.cols,u=this.name;t(".j-stack").width()}n?(s=n,"append"==e&&(a+=i,o=this.appendCount),"prepend"==e&&(this.isPrepending=!0,o=Math.round(i%c),0>=o&&(o=c)),"renderAfterPrepend"==e&&(a+=i,o=i)):(s=this.gridArr,a=t(this.gridArr).size()),t.each(s,function(n,i){var s=t(i),p="100%";s.hasClass("not-responsive")&&(p="auto"),s.css({marginBottom:l,zoom:"1"}).find(".j-image img, object, embed, iframe").css({width:p,height:"auto",display:"block","margin-left":"auto","margin-right":"auto"}),"prepend"==e?(o--,t("#item"+o+u).prepend(s),r.push(s),0==o&&(o=c)):(t("#item"+o+u).append(s),r.push(s),o++,o>=c&&(o=0),a>=c&&(a-=c))}),this.appendCount=a,this.itemCount=o,"append"==e||"prepend"==e?("prepend"==e&&this._updateAfterPrepend(this.gridArr,s),this._renderItem(r),this.isPrepending=!1):this._renderItem(this.gridArr)},_collectItems:function(){var e=[];return t(this.box).find(this.options.selector).each(function(){e.push(t(this))}),e},_renderItem:function(e){var n=this.options.animationOptions.speed,i=this.options.animationOptions.effect,r=this.options.animationOptions.duration,s=this.options.animationOptions.queue,o=this.options.animate,a=this.options.animationOptions.complete,l=0,c=0;o!==!0||this.isResizing?(t.each(e,function(e,n){t(n).css({opacity:"1"})}),this.ifCallback&&a.call(e)):(s===!0&&"fadeInOnAppear"==i?(this.isPrepending&&e.reverse(),t.each(e,function(i,s){setTimeout(function(){t(s).animate({opacity:"1.0"},r),c++,c==e.length&&a.call(void 0,e)},l*n),l++})):s===!1&&"fadeInOnAppear"==i&&(this.isPrepending&&e.reverse(),t.each(e,function(n,i){t(i).animate({opacity:"1.0"},r),c++,c==e.length&&this.ifCallback&&a.call(void 0,e)})),s!==!0||i||t.each(e,function(n,i){t(i).css({opacity:"1"}),c++,c==e.length&&this.ifCallback&&a.call(void 0,e)}))},_updateAfterPrepend:function(e,n){var i=this.gridArr;t.each(n,function(t,e){i.unshift(e)}),this.gridArr=i},resize:function(){this.box.width()!=this.initialWidth&&(this.initialWidth=this.box.width(),this.box.find(t(".j-stacker-wrapper")).remove(),this._setCols(),this._moveLoadMore(),this.ifCallback=!1,this.isResizing=!0,this._renderGrid("append"),this.ifCallback=!0,this.isResizing=!1)},append:function(e){var n=this.gridArr,i=this.gridArrPrepend;t.each(e,function(t,e){n.push(e),i.push(e)}),this._renderGrid("append",e,t(e).size()),this._addLoadMore()},prepend:function(e){this.ifCallback=!1,this._renderGrid("prepend",e,t(e).size()),this.ifCallback=!0
  6. }},t.fn.gridalicious=function(e,n){return this.each("string"==typeof e?function(){var i=t.data(this,"gridalicious");i[e].apply(i,[n])}:function(){t.data(this,"gridalicious",new t.Gal(e,this))}),this}}(jQuery),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){"use strict";var e=window.Slick||{};e=function(){function e(e,i){var r,s=this;s.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(e),appendDots:t(e),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return'<button type="button" data-role="none" role="button" aria-required="false" tabindex="0">'+(e+1)+"</button>"},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!1,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},s.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},t.extend(s,s.initials),s.activeBreakpoint=null,s.animType=null,s.animProp=null,s.breakpoints=[],s.breakpointSettings=[],s.cssTransitions=!1,s.hidden="hidden",s.paused=!1,s.positionProp=null,s.respondTo=null,s.rowCount=1,s.shouldClick=!0,s.$slider=t(e),s.$slidesCache=null,s.transformType=null,s.transitionType=null,s.visibilityChange="visibilitychange",s.windowWidth=0,s.windowTimer=null,r=t(e).data("slick")||{},s.options=t.extend({},s.defaults,r,i),s.currentSlide=s.options.initialSlide,s.originalSettings=s.options,"undefined"!=typeof document.mozHidden?(s.hidden="mozHidden",s.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(s.hidden="webkitHidden",s.visibilityChange="webkitvisibilitychange"),s.autoPlay=t.proxy(s.autoPlay,s),s.autoPlayClear=t.proxy(s.autoPlayClear,s),s.changeSlide=t.proxy(s.changeSlide,s),s.clickHandler=t.proxy(s.clickHandler,s),s.selectHandler=t.proxy(s.selectHandler,s),s.setPosition=t.proxy(s.setPosition,s),s.swipeHandler=t.proxy(s.swipeHandler,s),s.dragHandler=t.proxy(s.dragHandler,s),s.keyHandler=t.proxy(s.keyHandler,s),s.autoPlayIterator=t.proxy(s.autoPlayIterator,s),s.instanceUid=n++,s.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,s.registerBreakpoints(),s.init(!0),s.checkResponsive(!0)}var n=0;return e}(),e.prototype.addSlide=e.prototype.slickAdd=function(e,n,i){var r=this;if("boolean"==typeof n)i=n,n=null;else if(0>n||n>=r.slideCount)return!1;r.unload(),"number"==typeof n?0===n&&0===r.$slides.length?t(e).appendTo(r.$slideTrack):i?t(e).insertBefore(r.$slides.eq(n)):t(e).insertAfter(r.$slides.eq(n)):i===!0?t(e).prependTo(r.$slideTrack):t(e).appendTo(r.$slideTrack),r.$slides=r.$slideTrack.children(this.options.slide),r.$slideTrack.children(this.options.slide).detach(),r.$slideTrack.append(r.$slides),r.$slides.each(function(e,n){t(n).attr("data-slick-index",e)}),r.$slidesCache=r.$slides,r.reinit()},e.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&t.options.adaptiveHeight===!0&&t.options.vertical===!1){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},e.prototype.animateSlide=function(e,n){var i={},r=this;r.animateHeight(),r.options.rtl===!0&&r.options.vertical===!1&&(e=-e),r.transformsEnabled===!1?r.options.vertical===!1?r.$slideTrack.animate({left:e},r.options.speed,r.options.easing,n):r.$slideTrack.animate({top:e},r.options.speed,r.options.easing,n):r.cssTransitions===!1?(r.options.rtl===!0&&(r.currentLeft=-r.currentLeft),t({animStart:r.currentLeft}).animate({animStart:e},{duration:r.options.speed,easing:r.options.easing,step:function(t){t=Math.ceil(t),r.options.vertical===!1?(i[r.animType]="translate("+t+"px, 0px)",r.$slideTrack.css(i)):(i[r.animType]="translate(0px,"+t+"px)",r.$slideTrack.css(i))},complete:function(){n&&n.call()}})):(r.applyTransition(),e=Math.ceil(e),i[r.animType]=r.options.vertical===!1?"translate3d("+e+"px, 0px, 0px)":"translate3d(0px,"+e+"px, 0px)",r.$slideTrack.css(i),n&&setTimeout(function(){r.disableTransition(),n.call()},r.options.speed))},e.prototype.asNavFor=function(e){var n=this,i=n.options.asNavFor;i&&null!==i&&(i=t(i).not(n.$slider)),null!==i&&"object"==typeof i&&i.each(function(){var n=t(this).slick("getSlick");n.unslicked||n.slideHandler(e,!0)})},e.prototype.applyTransition=function(t){var e=this,n={};n[e.transitionType]=e.options.fade===!1?e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:"opacity "+e.options.speed+"ms "+e.options.cssEase,e.options.fade===!1?e.$slideTrack.css(n):e.$slides.eq(t).css(n)},e.prototype.autoPlay=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer),t.slideCount>t.options.slidesToShow&&t.paused!==!0&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this;t.options.infinite===!1?1===t.direction?(t.currentSlide+1===t.slideCount-1&&(t.direction=0),t.slideHandler(t.currentSlide+t.options.slidesToScroll)):(t.currentSlide-1===0&&(t.direction=1),t.slideHandler(t.currentSlide-t.options.slidesToScroll)):t.slideHandler(t.currentSlide+t.options.slidesToScroll)},e.prototype.buildArrows=function(){var e=this;e.options.arrows===!0&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),e.options.infinite!==!0&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,n,i=this;if(i.options.dots===!0&&i.slideCount>i.options.slidesToShow){for(n='<ul class="'+i.options.dotsClass+'">',e=0;e<=i.getDotCount();e+=1)n+="<li>"+i.options.customPaging.call(this,i,e)+"</li>";n+="</ul>",i.$dots=t(n).appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,n){t(n).attr("data-slick-index",e).data("originalStyling",t(n).attr("style")||"")}),e.$slidesCache=e.$slides,e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),(e.options.centerMode===!0||e.options.swipeToSlide===!0)&&(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.options.draggable===!0&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var t,e,n,i,r,s,o,a=this;if(i=document.createDocumentFragment(),s=a.$slider.children(),a.options.rows>1){for(o=a.options.slidesPerRow*a.options.rows,r=Math.ceil(s.length/o),t=0;r>t;t++){var l=document.createElement("div");for(e=0;e<a.options.rows;e++){var c=document.createElement("div");for(n=0;n<a.options.slidesPerRow;n++){var u=t*o+(e*a.options.slidesPerRow+n);s.get(u)&&c.appendChild(s.get(u))}l.appendChild(c)}i.appendChild(l)}a.$slider.html(i),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,n){var i,r,s,o=this,a=!1,l=o.$slider.width(),c=window.innerWidth||t(window).width();if("window"===o.respondTo?s=c:"slider"===o.respondTo?s=l:"min"===o.respondTo&&(s=Math.min(c,l)),o.options.responsive&&o.options.responsive.length&&null!==o.options.responsive){r=null;for(i in o.breakpoints)o.breakpoints.hasOwnProperty(i)&&(o.originalSettings.mobileFirst===!1?s<o.breakpoints[i]&&(r=o.breakpoints[i]):s>o.breakpoints[i]&&(r=o.breakpoints[i]));null!==r?null!==o.activeBreakpoint?(r!==o.activeBreakpoint||n)&&(o.activeBreakpoint=r,"unslick"===o.breakpointSettings[r]?o.unslick(r):(o.options=t.extend({},o.originalSettings,o.breakpointSettings[r]),e===!0&&(o.currentSlide=o.options.initialSlide),o.refresh(e)),a=r):(o.activeBreakpoint=r,"unslick"===o.breakpointSettings[r]?o.unslick(r):(o.options=t.extend({},o.originalSettings,o.breakpointSettings[r]),e===!0&&(o.currentSlide=o.options.initialSlide),o.refresh(e)),a=r):null!==o.activeBreakpoint&&(o.activeBreakpoint=null,o.options=o.originalSettings,e===!0&&(o.currentSlide=o.options.initialSlide),o.refresh(e),a=r),e||a===!1||o.$slider.trigger("breakpoint",[o,a])}},e.prototype.changeSlide=function(e,n){var i,r,s,o=this,a=t(e.target);switch(a.is("a")&&e.preventDefault(),a.is("li")||(a=a.closest("li")),s=o.slideCount%o.options.slidesToScroll!==0,i=s?0:(o.slideCount-o.currentSlide)%o.options.slidesToScroll,e.data.message){case"previous":r=0===i?o.options.slidesToScroll:o.options.slidesToShow-i,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide-r,!1,n);break;case"next":r=0===i?o.options.slidesToScroll:i,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide+r,!1,n);break;case"index":var l=0===e.data.index?0:e.data.index||a.index()*o.options.slidesToScroll;o.slideHandler(o.checkNavigable(l),!1,n),a.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var e,n,i=this;if(e=i.getNavigableIndexes(),n=0,t>e[e.length-1])t=e[e.length-1];else for(var r in e){if(t<e[r]){t=n;break}n=e[r]}return t},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(t("li",e.$dots).off("click.slick",e.changeSlide),e.options.pauseOnDotsHover===!0&&e.options.autoplay===!0&&t("li",e.$dots).off("mouseenter.slick",t.proxy(e.setPaused,e,!0)).off("mouseleave.slick",t.proxy(e.setPaused,e,!1))),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide)),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),e.$list.off("mouseenter.slick",t.proxy(e.setPaused,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.setPaused,e,!1)),e.options.accessibility===!0&&e.$list.off("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition),t(document).off("ready.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>1&&(t=e.$slides.children().children(),t.removeAttr("style"),e.$slider.html(t))},e.prototype.clickHandler=function(t){var e=this;e.shouldClick===!1&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(e){var n=this;n.autoPlayClear(),n.touchObject={},n.cleanUpEvents(),t(".slick-cloned",n.$slider).detach(),n.$dots&&n.$dots.remove(),n.$prevArrow&&n.$prevArrow.length&&(n.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.prevArrow)&&n.$prevArrow.remove()),n.$nextArrow&&n.$nextArrow.length&&(n.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.nextArrow)&&n.$nextArrow.remove()),n.$slides&&(n.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){t(this).attr("style",t(this).data("originalStyling"))}),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.detach(),n.$list.detach(),n.$slider.append(n.$slides)),n.cleanUpRows(),n.$slider.removeClass("slick-slider"),n.$slider.removeClass("slick-initialized"),n.unslicked=!0,e||n.$slider.trigger("destroy",[n])},e.prototype.disableTransition=function(t){var e=this,n={};n[e.transitionType]="",e.options.fade===!1?e.$slideTrack.css(n):e.$slides.eq(t).css(n)},e.prototype.fadeSlide=function(t,e){var n=this;n.cssTransitions===!1?(n.$slides.eq(t).css({zIndex:n.options.zIndex}),n.$slides.eq(t).animate({opacity:1},n.options.speed,n.options.easing,e)):(n.applyTransition(t),n.$slides.eq(t).css({opacity:1,zIndex:n.options.zIndex}),e&&setTimeout(function(){n.disableTransition(t),e.call()},n.options.speed))},e.prototype.fadeSlideOut=function(t){var e=this;e.cssTransitions===!1?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(t){var e=this;null!==t&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){var t=this;return t.currentSlide},e.prototype.getDotCount=function(){var t=this,e=0,n=0,i=0;if(t.options.infinite===!0)for(;e<t.slideCount;)++i,e=n+t.options.slidesToShow,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(t.options.centerMode===!0)i=t.slideCount;else for(;e<t.slideCount;)++i,e=n+t.options.slidesToShow,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return i-1},e.prototype.getLeft=function(t){var e,n,i,r=this,s=0;return r.slideOffset=0,n=r.$slides.first().outerHeight(!0),r.options.infinite===!0?(r.slideCount>r.options.slidesToShow&&(r.slideOffset=r.slideWidth*r.options.slidesToShow*-1,s=n*r.options.slidesToShow*-1),r.slideCount%r.options.slidesToScroll!==0&&t+r.options.slidesToScroll>r.slideCount&&r.slideCount>r.options.slidesToShow&&(t>r.slideCount?(r.slideOffset=(r.options.slidesToShow-(t-r.slideCount))*r.slideWidth*-1,s=(r.options.slidesToShow-(t-r.slideCount))*n*-1):(r.slideOffset=r.slideCount%r.options.slidesToScroll*r.slideWidth*-1,s=r.slideCount%r.options.slidesToScroll*n*-1))):t+r.options.slidesToShow>r.slideCount&&(r.slideOffset=(t+r.options.slidesToShow-r.slideCount)*r.slideWidth,s=(t+r.options.slidesToShow-r.slideCount)*n),r.slideCount<=r.options.slidesToShow&&(r.slideOffset=0,s=0),r.options.centerMode===!0&&r.options.infinite===!0?r.slideOffset+=r.slideWidth*Math.floor(r.options.slidesToShow/2)-r.slideWidth:r.options.centerMode===!0&&(r.slideOffset=0,r.slideOffset+=r.slideWidth*Math.floor(r.options.slidesToShow/2)),e=r.options.vertical===!1?t*r.slideWidth*-1+r.slideOffset:t*n*-1+s,r.options.variableWidth===!0&&(i=r.$slideTrack.children(".slick-slide").eq(r.slideCount<=r.options.slidesToShow||r.options.infinite===!1?t:t+r.options.slidesToShow),e=i[0]?-1*i[0].offsetLeft:0,r.options.centerMode===!0&&(i=r.$slideTrack.children(".slick-slide").eq(r.slideCount<=r.options.slidesToShow||r.options.infinite===!1?t:t+r.options.slidesToShow+1),e=i[0]?-1*i[0].offsetLeft:0,e+=(r.$list.width()-i.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(t){var e=this;return e.options[t]},e.prototype.getNavigableIndexes=function(){var t,e=this,n=0,i=0,r=[];for(e.options.infinite===!1?t=e.slideCount:(n=-1*e.options.slidesToScroll,i=-1*e.options.slidesToScroll,t=2*e.slideCount);t>n;)r.push(n),n=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return r},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,n,i,r=this;return i=r.options.centerMode===!0?r.slideWidth*Math.floor(r.options.slidesToShow/2):0,r.options.swipeToSlide===!0?(r.$slideTrack.find(".slick-slide").each(function(e,s){return s.offsetLeft-i+t(s).outerWidth()/2>-1*r.swipeLeft?(n=s,!1):void 0}),e=Math.abs(t(n).attr("data-slick-index")-r.currentSlide)||1):r.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,e){var n=this;n.changeSlide({data:{message:"index",index:parseInt(t)}},e)},e.prototype.init=function(e){var n=this;t(n.$slider).hasClass("slick-initialized")||(t(n.$slider).addClass("slick-initialized"),n.buildRows(),n.buildOut(),n.setProps(),n.startLoad(),n.loadSlider(),n.initializeEvents(),n.updateArrows(),n.updateDots()),e&&n.$slider.trigger("init",[n]),n.options.accessibility===!0&&n.initADA()},e.prototype.initArrowEvents=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.on("click.slick",{message:"next"},t.changeSlide))},e.prototype.initDotEvents=function(){var e=this;e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),e.options.dots===!0&&e.options.pauseOnDotsHover===!0&&e.options.autoplay===!0&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.setPaused,e,!0)).on("mouseleave.slick",t.proxy(e.setPaused,e,!1))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),e.$list.on("mouseenter.slick",t.proxy(e.setPaused,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.setPaused,e,!1)),e.options.accessibility===!0&&e.$list.on("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(document).on("ready.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.initUI=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.show(),t.options.autoplay===!0&&t.autoPlay()},e.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&e.options.accessibility===!0?e.changeSlide({data:{message:"previous"}}):39===t.keyCode&&e.options.accessibility===!0&&e.changeSlide({data:{message:"next"}}))},e.prototype.lazyLoad=function(){function e(e){t("img[data-lazy]",e).each(function(){var e=t(this),n=t(this).attr("data-lazy"),i=document.createElement("img");i.onload=function(){e.animate({opacity:0},100,function(){e.attr("src",n).animate({opacity:1},200,function(){e.removeAttr("data-lazy").removeClass("slick-loading")})})},i.src=n})}var n,i,r,s,o=this;o.options.centerMode===!0?o.options.infinite===!0?(r=o.currentSlide+(o.options.slidesToShow/2+1),s=r+o.options.slidesToShow+2):(r=Math.max(0,o.currentSlide-(o.options.slidesToShow/2+1)),s=2+(o.options.slidesToShow/2+1)+o.currentSlide):(r=o.options.infinite?o.options.slidesToShow+o.currentSlide:o.currentSlide,r-=o.options.slidesToShow,s=r+2*o.options.slidesToShow,o.options.fade===!0&&(r>0&&r--,s<=o.slideCount&&s++)),n=o.$slider.find(".slick-slide").slice(r,s),e(n),o.slideCount<=o.options.slidesToShow?(i=o.$slider.find(".slick-slide"),e(i)):o.currentSlide>=o.slideCount-o.options.slidesToShow?(i=o.$slider.find(".slick-cloned").slice(0,o.options.slidesToShow),e(i)):0===o.currentSlide&&(i=o.$slider.find(".slick-cloned").slice(-1*o.options.slidesToShow),e(i))},e.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){var t=this;t.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var t=this;t.checkResponsive(),t.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var t=this;t.autoPlayClear(),t.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var t=this;t.paused=!1,t.autoPlay()},e.prototype.postSlide=function(t){var e=this;e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.setPosition(),e.swipeLeft=null,e.options.autoplay===!0&&e.paused===!1&&e.autoPlay(),e.options.accessibility===!0&&e.initADA()},e.prototype.prev=e.prototype.slickPrev=function(){var t=this;t.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(t){t.preventDefault()},e.prototype.progressiveLazyLoad=function(){var e,n,i=this;e=t("img[data-lazy]",i.$slider).length,e>0&&(n=t("img[data-lazy]",i.$slider).first(),n.attr("src",null),n.attr("src",n.attr("data-lazy")).removeClass("slick-loading").load(function(){n.removeAttr("data-lazy"),i.progressiveLazyLoad(),i.options.adaptiveHeight===!0&&i.setPosition()}).error(function(){n.removeAttr("data-lazy"),i.progressiveLazyLoad()}))},e.prototype.refresh=function(e){var n,i,r=this;i=r.slideCount-r.options.slidesToShow,r.options.infinite||(r.slideCount<=r.options.slidesToShow?r.currentSlide=0:r.currentSlide>i&&(r.currentSlide=i)),n=r.currentSlide,r.destroy(!0),t.extend(r,r.initials,{currentSlide:n}),r.init(),e||r.changeSlide({data:{message:"index",index:n}},!1)},e.prototype.registerBreakpoints=function(){var e,n,i,r=this,s=r.options.responsive||null;if("array"===t.type(s)&&s.length){r.respondTo=r.options.respondTo||"window";for(e in s)if(i=r.breakpoints.length-1,n=s[e].breakpoint,s.hasOwnProperty(e)){for(;i>=0;)r.breakpoints[i]&&r.breakpoints[i]===n&&r.breakpoints.splice(i,1),i--;r.breakpoints.push(n),r.breakpointSettings[n]=s[e].settings}r.breakpoints.sort(function(t,e){return r.options.mobileFirst?t-e:e-t})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.checkResponsive(!1,!0),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses(0),e.setPosition(),e.$slider.trigger("reInit",[e]),e.options.autoplay===!0&&e.focusHandler()},e.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(t,e,n){var i=this;return"boolean"==typeof t?(e=t,t=e===!0?0:i.slideCount-1):t=e===!0?--t:t,i.slideCount<1||0>t||t>i.slideCount-1?!1:(i.unload(),n===!0?i.$slideTrack.children().remove():i.$slideTrack.children(this.options.slide).eq(t).remove(),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slidesCache=i.$slides,void i.reinit())},e.prototype.setCSS=function(t){var e,n,i=this,r={};i.options.rtl===!0&&(t=-t),e="left"==i.positionProp?Math.ceil(t)+"px":"0px",n="top"==i.positionProp?Math.ceil(t)+"px":"0px",r[i.positionProp]=t,i.transformsEnabled===!1?i.$slideTrack.css(r):(r={},i.cssTransitions===!1?(r[i.animType]="translate("+e+", "+n+")",i.$slideTrack.css(r)):(r[i.animType]="translate3d("+e+", "+n+", 0px)",i.$slideTrack.css(r)))},e.prototype.setDimensions=function(){var t=this;t.options.vertical===!1?t.options.centerMode===!0&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),t.options.centerMode===!0&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),t.options.vertical===!1&&t.options.variableWidth===!1?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):t.options.variableWidth===!0?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();t.options.variableWidth===!1&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},e.prototype.setFade=function(){var e,n=this;n.$slides.each(function(i,r){e=n.slideWidth*i*-1,t(r).css(n.options.rtl===!0?{position:"relative",right:e,top:0,zIndex:n.options.zIndex-2,opacity:0}:{position:"relative",left:e,top:0,zIndex:n.options.zIndex-2,opacity:0})}),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&t.options.adaptiveHeight===!0&&t.options.vertical===!1){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(e,n,i){var r,s,o=this;if("responsive"===e&&"array"===t.type(n))for(s in n)if("array"!==t.type(o.options.responsive))o.options.responsive=[n[s]];else{for(r=o.options.responsive.length-1;r>=0;)o.options.responsive[r].breakpoint===n[s].breakpoint&&o.options.responsive.splice(r,1),r--;o.options.responsive.push(n[s])}else o.options[e]=n;i===!0&&(o.unload(),o.reinit())},e.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),t.options.fade===!1?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},e.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=t.options.vertical===!0?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),(void 0!==e.WebkitTransition||void 0!==e.MozTransition||void 0!==e.msTransition)&&t.options.useCSS===!0&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&t.animType!==!1&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&t.animType!==!1},e.prototype.setSlideClasses=function(t){var e,n,i,r,s=this;n=s.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),s.$slides.eq(t).addClass("slick-current"),s.options.centerMode===!0?(e=Math.floor(s.options.slidesToShow/2),s.options.infinite===!0&&(t>=e&&t<=s.slideCount-1-e?s.$slides.slice(t-e,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(i=s.options.slidesToShow+t,n.slice(i-e+1,i+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?n.eq(n.length-1-s.options.slidesToShow).addClass("slick-center"):t===s.slideCount-1&&n.eq(s.options.slidesToShow).addClass("slick-center")),s.$slides.eq(t).addClass("slick-center")):t>=0&&t<=s.slideCount-s.options.slidesToShow?s.$slides.slice(t,t+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):n.length<=s.options.slidesToShow?n.addClass("slick-active").attr("aria-hidden","false"):(r=s.slideCount%s.options.slidesToShow,i=s.options.infinite===!0?s.options.slidesToShow+t:t,s.options.slidesToShow==s.options.slidesToScroll&&s.slideCount-t<s.options.slidesToShow?n.slice(i-(s.options.slidesToShow-r),i+r).addClass("slick-active").attr("aria-hidden","false"):n.slice(i,i+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===s.options.lazyLoad&&s.lazyLoad()},e.prototype.setupInfinite=function(){var e,n,i,r=this;if(r.options.fade===!0&&(r.options.centerMode=!1),r.options.infinite===!0&&r.options.fade===!1&&(n=null,r.slideCount>r.options.slidesToShow)){for(i=r.options.centerMode===!0?r.options.slidesToShow+1:r.options.slidesToShow,e=r.slideCount;e>r.slideCount-i;e-=1)n=e-1,t(r.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n-r.slideCount).prependTo(r.$slideTrack).addClass("slick-cloned");for(e=0;i>e;e+=1)n=e,t(r.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n+r.slideCount).appendTo(r.$slideTrack).addClass("slick-cloned");r.$slideTrack.find(".slick-cloned").find("[id]").each(function(){t(this).attr("id","")})}},e.prototype.setPaused=function(t){var e=this;e.options.autoplay===!0&&e.options.pauseOnHover===!0&&(e.paused=t,t?e.autoPlayClear():e.autoPlay())},e.prototype.selectHandler=function(e){var n=this,i=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),r=parseInt(i.attr("data-slick-index"));return r||(r=0),n.slideCount<=n.options.slidesToShow?(n.setSlideClasses(r),void n.asNavFor(r)):void n.slideHandler(r)},e.prototype.slideHandler=function(t,e,n){var i,r,s,o,a=null,l=this;return e=e||!1,l.animating===!0&&l.options.waitForAnimate===!0||l.options.fade===!0&&l.currentSlide===t||l.slideCount<=l.options.slidesToShow?void 0:(e===!1&&l.asNavFor(t),i=t,a=l.getLeft(i),o=l.getLeft(l.currentSlide),l.currentLeft=null===l.swipeLeft?o:l.swipeLeft,l.options.infinite===!1&&l.options.centerMode===!1&&(0>t||t>l.getDotCount()*l.options.slidesToScroll)?void(l.options.fade===!1&&(i=l.currentSlide,n!==!0?l.animateSlide(o,function(){l.postSlide(i)}):l.postSlide(i))):l.options.infinite===!1&&l.options.centerMode===!0&&(0>t||t>l.slideCount-l.options.slidesToScroll)?void(l.options.fade===!1&&(i=l.currentSlide,n!==!0?l.animateSlide(o,function(){l.postSlide(i)}):l.postSlide(i))):(l.options.autoplay===!0&&clearInterval(l.autoPlayTimer),r=0>i?l.slideCount%l.options.slidesToScroll!==0?l.slideCount-l.slideCount%l.options.slidesToScroll:l.slideCount+i:i>=l.slideCount?l.slideCount%l.options.slidesToScroll!==0?0:i-l.slideCount:i,l.animating=!0,l.$slider.trigger("beforeChange",[l,l.currentSlide,r]),s=l.currentSlide,l.currentSlide=r,l.setSlideClasses(l.currentSlide),l.updateDots(),l.updateArrows(),l.options.fade===!0?(n!==!0?(l.fadeSlideOut(s),l.fadeSlide(r,function(){l.postSlide(r)})):l.postSlide(r),void l.animateHeight()):void(n!==!0?l.animateSlide(a,function(){l.postSlide(r)
  7. }):l.postSlide(r))))},e.prototype.startLoad=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var t,e,n,i,r=this;return t=r.touchObject.startX-r.touchObject.curX,e=r.touchObject.startY-r.touchObject.curY,n=Math.atan2(e,t),i=Math.round(180*n/Math.PI),0>i&&(i=360-Math.abs(i)),45>=i&&i>=0?r.options.rtl===!1?"left":"right":360>=i&&i>=315?r.options.rtl===!1?"left":"right":i>=135&&225>=i?r.options.rtl===!1?"right":"left":r.options.verticalSwiping===!0?i>=35&&135>=i?"left":"right":"vertical"},e.prototype.swipeEnd=function(){var t,e=this;if(e.dragging=!1,e.shouldClick=e.touchObject.swipeLength>10?!1:!0,void 0===e.touchObject.curX)return!1;if(e.touchObject.edgeHit===!0&&e.$slider.trigger("edge",[e,e.swipeDirection()]),e.touchObject.swipeLength>=e.touchObject.minSwipe)switch(e.swipeDirection()){case"left":t=e.options.swipeToSlide?e.checkNavigable(e.currentSlide+e.getSlideCount()):e.currentSlide+e.getSlideCount(),e.slideHandler(t),e.currentDirection=0,e.touchObject={},e.$slider.trigger("swipe",[e,"left"]);break;case"right":t=e.options.swipeToSlide?e.checkNavigable(e.currentSlide-e.getSlideCount()):e.currentSlide-e.getSlideCount(),e.slideHandler(t),e.currentDirection=1,e.touchObject={},e.$slider.trigger("swipe",[e,"right"])}else e.touchObject.startX!==e.touchObject.curX&&(e.slideHandler(e.currentSlide),e.touchObject={})},e.prototype.swipeHandler=function(t){var e=this;if(!(e.options.swipe===!1||"ontouchend"in document&&e.options.swipe===!1||e.options.draggable===!1&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,e.options.verticalSwiping===!0&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},e.prototype.swipeMove=function(t){var e,n,i,r,s,o=this;return s=void 0!==t.originalEvent?t.originalEvent.touches:null,!o.dragging||s&&1!==s.length?!1:(e=o.getLeft(o.currentSlide),o.touchObject.curX=void 0!==s?s[0].pageX:t.clientX,o.touchObject.curY=void 0!==s?s[0].pageY:t.clientY,o.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(o.touchObject.curX-o.touchObject.startX,2))),o.options.verticalSwiping===!0&&(o.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(o.touchObject.curY-o.touchObject.startY,2)))),n=o.swipeDirection(),"vertical"!==n?(void 0!==t.originalEvent&&o.touchObject.swipeLength>4&&t.preventDefault(),r=(o.options.rtl===!1?1:-1)*(o.touchObject.curX>o.touchObject.startX?1:-1),o.options.verticalSwiping===!0&&(r=o.touchObject.curY>o.touchObject.startY?1:-1),i=o.touchObject.swipeLength,o.touchObject.edgeHit=!1,o.options.infinite===!1&&(0===o.currentSlide&&"right"===n||o.currentSlide>=o.getDotCount()&&"left"===n)&&(i=o.touchObject.swipeLength*o.options.edgeFriction,o.touchObject.edgeHit=!0),o.swipeLeft=o.options.vertical===!1?e+i*r:e+i*(o.$list.height()/o.listWidth)*r,o.options.verticalSwiping===!0&&(o.swipeLeft=e+i*r),o.options.fade===!0||o.options.touchMove===!1?!1:o.animating===!0?(o.swipeLeft=null,!1):void o.setCSS(o.swipeLeft)):void 0)},e.prototype.swipeStart=function(t){var e,n=this;return 1!==n.touchObject.fingerCount||n.slideCount<=n.options.slidesToShow?(n.touchObject={},!1):(void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=void 0!==e?e.pageX:t.clientX,n.touchObject.startY=n.touchObject.curY=void 0!==e?e.pageY:t.clientY,void(n.dragging=!0))},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},e.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},e.prototype.updateArrows=function(){var t,e=this;t=Math.floor(e.options.slidesToShow/2),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&e.options.centerMode===!1?(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-1&&e.options.centerMode===!0&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},e.prototype.visibility=function(){var t=this;document[t.hidden]?(t.paused=!0,t.autoPlayClear()):t.options.autoplay===!0&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this;e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),e.$slideTrack.attr("role","listbox"),e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(n){t(this).attr({role:"option","aria-describedby":"slick-slide"+e.instanceUid+n})}),null!==e.$dots&&e.$dots.attr("role","tablist").find("li").each(function(n){t(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+e.instanceUid+n,id:"slick-slide"+e.instanceUid+n})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),e.activateADA()},e.prototype.activateADA=function(){var t=this;t.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.focusHandler=function(){var e=this;e.$slider.on("focus.slick blur.slick","*",function(n){n.stopImmediatePropagation();var i=t(this);setTimeout(function(){e.isPlay&&(i.is(":focus")?(e.autoPlayClear(),e.paused=!0):(e.paused=!1,e.autoPlay()))},0)})},t.fn.slick=function(){var t,n,i=this,r=arguments[0],s=Array.prototype.slice.call(arguments,1),o=i.length;for(t=0;o>t;t++)if("object"==typeof r||"undefined"==typeof r?i[t].slick=new e(i[t],r):n=i[t].slick[r].apply(i[t].slick,s),"undefined"!=typeof n)return n;return i}}),function(){function t(t){return(t||"").split(" ")}function e(t,e,n){return s(t,e,n)}function n(t,e,n,i){return"number"!=typeof n&&"string"!=typeof n||null!=i||(i=n,n=void 0),s(t,e,n,{timezone:i})}function i(t,e,n){return s(t,e,n,{utc:!0})}function r(t){return function(n,i,r){return e(n,i,t,r)}}function s(t,e,n,i){i=i||{},e&&!a(e)&&(n=e,e=void 0),e=e||new Date,n=n||f,n.formats=n.formats||{};var r=e.getTime(),h=i.timezone,d=typeof h;if((i.utc||"number"==d||"string"==d)&&(e=o(e)),h){if("string"==d){var g="-"==h[0]?-1:1,m=parseInt(h.slice(1,3),10),y=parseInt(h.slice(3,5),10);h=g*(60*m+y)}d&&(e=new Date(e.getTime()+6e4*h))}return t.replace(/%([-_0]?.)/g,function(t,o){var a,f;if(2==o.length){if(a=o[0],"-"==a)f="";else if("_"==a)f=" ";else{if("0"!=a)return t;f="0"}o=o[1]}switch(o){case"A":return n.days[e.getDay()];case"a":return n.shortDays[e.getDay()];case"B":return n.months[e.getMonth()];case"b":return n.shortMonths[e.getMonth()];case"C":return l(Math.floor(e.getFullYear()/100),f);case"D":return s(n.formats.D||"%m/%d/%y",e,n);case"d":return l(e.getDate(),f);case"e":return l(e.getDate(),null==f?" ":f);case"F":return s(n.formats.F||"%Y-%m-%d",e,n);case"H":return l(e.getHours(),f);case"h":return n.shortMonths[e.getMonth()];case"I":return l(c(e),f);case"j":var d=new Date(e.getFullYear(),0,1),g=Math.ceil((e.getTime()-d.getTime())/864e5);return l(g,3);case"k":return l(e.getHours(),null==f?" ":f);case"L":return l(Math.floor(r%1e3),3);case"l":return l(c(e),null==f?" ":f);case"M":return l(e.getMinutes(),f);case"m":return l(e.getMonth()+1,f);case"n":return"\n";case"o":return String(e.getDate())+u(e.getDate());case"P":return e.getHours()<12?n.am:n.pm;case"p":return e.getHours()<12?n.AM:n.PM;case"R":return s(n.formats.R||"%H:%M",e,n);case"r":return s(n.formats.r||"%I:%M:%S %p",e,n);case"S":return l(e.getSeconds(),f);case"s":return Math.floor(r/1e3);case"T":return s(n.formats.T||"%H:%M:%S",e,n);case"t":return" ";case"U":return l(p(e,"sunday"),f);case"u":var g=e.getDay();return 0==g?7:g;case"v":return s(n.formats.v||"%e-%b-%Y",e,n);case"W":return l(p(e,"monday"),f);case"w":return e.getDay();case"Y":return e.getFullYear();case"y":var d=String(e.getFullYear());return d.slice(d.length-2);case"Z":if(i.utc)return"GMT";var m=e.toString().match(/\(([\w\s]+)\)/);return m&&m[1]||"";case"z":if(i.utc)return"+0000";var y="number"==typeof h?h:-e.getTimezoneOffset();return(0>y?"-":"+")+l(Math.floor(Math.abs(y)/60))+l(Math.abs(y)%60);default:return o}})}function o(t){var e=6e4*(t.getTimezoneOffset()||0);return new Date(t.getTime()+e)}function a(t){var e=0,n=d.length;for(e=0;n>e;++e)if("function"!=typeof t[d[e]])return!1;return!0}function l(t,e,n){"number"==typeof e&&(n=e,e="0"),null==e&&(e="0"),n=n||2;var i=String(t);if(e)for(;i.length<n;)i=e+i;return i}function c(t){var e=t.getHours();return 0==e?e=12:e>12&&(e-=12),e}function u(t){var e=t%10,n=t%100;if(n>=11&&13>=n||0===e||e>=4)return"th";switch(e){case 1:return"st";case 2:return"nd";case 3:return"rd"}}function p(t,e){e=e||"sunday";var n=t.getDay();"monday"==e&&(0==n?n=6:n--);var i=new Date(t.getFullYear(),0,1),r=(t-i)/864e5,s=(r+7-n)/7;return Math.floor(s)}var h;h="undefined"!=typeof module?module.exports=e:function(){return this||(1,eval)("this")}();var f={days:t("Sunday Monday Tuesday Wednesday Thursday Friday Saturday"),shortDays:t("Sun Mon Tue Wed Thu Fri Sat"),months:t("January February March April May June July August September October November December"),shortMonths:t("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec"),AM:"AM",PM:"PM",am:"am",pm:"pm"};h.strftime=e,h.strftimeTZ=e.strftimeTZ=n,h.strftimeUTC=e.strftimeUTC=i,h.localizedStrftime=e.localizedStrftime=r;var d=["getTime","getTimezoneOffset","getDay","getDate","getMonth","getFullYear","getYear","getHours","getMinutes","getSeconds"]}(),function(){var t,e=[].slice;t=function(){var t,n,i,r,s,o;return r=1<=arguments.length?e.call(arguments,0):[],s=/(^|[\s\n]|<br\/?>)((?:https?|ftp):\/\/[\-A-Z0-9+\u0026\u2019@#\/%?=()~_|!:,.;]*[\-A-Z0-9+\u0026@#\/%=~()_|])/gi,r.length>0?(i=r[0],n=function(){var e;e=[];for(t in i)o=i[t],"callback"!==t&&e.push(" "+t+"='"+o+"'");return e}().join(""),this.replace(s,function(t,e,r){var s;return s=("function"==typeof i.callback?i.callback(r):void 0)||"<a href='"+r+"'"+n+">"+r+"</a>",""+e+s})):this.replace(s,"$1<a href='$2'>$2</a>")},String.prototype.autoLink=t}.call(this),Object.create||(Object.create=function(t,e){function n(){}if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object prototype may only be an Object: "+t);if(null===t)throw new Error("This browser's implementation of Object.create is a shim and doesn't support 'null' as the first argument.");if("undefined"!=typeof e)throw new Error("This browser's implementation of Object.create is a shim and doesn't support a second argument.");return n.prototype=t,new n}),function(t,e){"use strict";t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function n(n,s,a){function l(t,e,i){var r,s="$()."+n+'("'+e+'")';return t.each(function(t,l){var c=a.data(l,n);if(!c)return void o(n+" not initialized. Cannot call methods, i.e. "+s);var u=c[e];if(!u||"_"==e.charAt(0))return void o(s+" is not a valid method");var p=u.apply(c,i);r=void 0===r?p:r}),void 0!==r?r:t}function c(t,e){t.each(function(t,i){var r=a.data(i,n);r?(r.option(e),r._init()):(r=new s(i,e),a.data(i,n,r))})}a=a||e||t.jQuery,a&&(s.prototype.option||(s.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[n]=function(t){if("string"==typeof t){var e=r.call(arguments,1);return l(this,t,e)}return c(this,t),this},i(a))}function i(t){!t||t&&t.bridget||(t.bridget=n)}var r=Array.prototype.slice,s=t.console,o="undefined"==typeof s?function(){}:function(t){s.error(t)};return i(e||t.jQuery),n}),function(t,e){"use strict";t.getWindowSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),n=-1==t.indexOf("%")&&!isNaN(e);return n&&e}function e(){}function n(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;c>e;e++){var n=l[e];t[n]=0}return t}function i(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function r(){if(!u){u=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(e);var r=i(e);s.isBoxSizeOuter=o=200==t(r.width),n.removeChild(e)}}function s(e){if(r(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var s=i(e);if("none"==s.display)return n();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var u=a.isBorderBox="border-box"==s.boxSizing,p=0;c>p;p++){var h=l[p],f=s[h],d=parseFloat(f);a[h]=isNaN(d)?0:d}var g=a.paddingLeft+a.paddingRight,m=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,w=a.borderLeftWidth+a.borderRightWidth,b=a.borderTopWidth+a.borderBottomWidth,S=u&&o,_=t(s.width);_!==!1&&(a.width=_+(S?0:g+w));var k=t(s.height);return k!==!1&&(a.height=k+(S?0:m+b)),a.innerWidth=a.width-(g+w),a.innerHeight=a.height-(m+b),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var o,a="undefined"==typeof console?e:function(t){console.error(t)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],c=l.length,u=!1;return s}),function(t,e){t.EvEmitter=e()}(this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},i=n[t]=n[t]||[];return-1==i.indexOf(e)&&i.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{},i=n[t]=n[t]||{};return i[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var i=n.indexOf(e);return-1!=i&&n.splice(i,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var i=0,r=n[i];e=e||[];for(var s=this._onceEvents&&this._onceEvents[t];r;){var o=s&&s[r];o&&(this.off(t,r),delete s[r]),r.apply(this,e),i+=o?0:1,r=n[i]}return this}},t}),function(t,e){"use strict";t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],n=0;n<e.length;n++){var i=e[n],r=i+"MatchesSelector";if(t[r])return r}}();return function(e,n){return e[t](n)}}),function(t,e){t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var n={};n.extend=function(t,e){for(var n in e)t[n]=e[n];return t},n.modulo=function(t,e){return(t%e+e)%e},n.makeArray=function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var n=0;n<t.length;n++)e.push(t[n]);else e.push(t);return e},n.removeFrom=function(t,e){var n=t.indexOf(e);-1!=n&&t.splice(n,1)},n.getParent=function(t,n){for(;t!=document.body;)if(t=t.parentNode,e(t,n))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,i){t=n.makeArray(t);var r=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!i)return void r.push(t);e(t,i)&&r.push(t);for(var n=t.querySelectorAll(i),s=0;s<n.length;s++)r.push(n[s])}}),r},n.debounceMethod=function(t,e,n){var i=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r];t&&clearTimeout(t);var e=arguments,s=this;this[r]=setTimeout(function(){i.apply(s,e),delete s[r]},n||100)}},n.docReady=function(t){"complete"==document.readyState?t():document.addEventListener?document.addEventListener("DOMContentLoaded",t):document.attachEvent("onreadystatechange",t)},n.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,n){return e+"-"+n}).toLowerCase()};var i=t.console;return n.htmlInit=function(e,r){n.docReady(function(){var s=n.toDashed(r),o="data-"+s,a=document.querySelectorAll("["+o+"]"),l=document.querySelectorAll(".js-"+s),c=n.makeArray(a).concat(n.makeArray(l)),u=o+"-options",p=t.jQuery;c.forEach(function(t){var n,s=t.getAttribute(o)||t.getAttribute(u);try{n=s&&JSON.parse(s)}catch(a){return void(i&&i.error("Error parsing "+o+" on "+t.className+": "+a))}var l=new e(t,n);p&&p.data(t,r,l)})})},n}),function(t,e){t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getWindowSize)}(window,function(t,e){"use strict";function n(t){for(var e in t)return!1;return e=null,!0}function i(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function r(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var s=document.documentElement.style,o="string"==typeof s.transition?"transition":"WebkitTransition",a="string"==typeof s.transform?"transform":"WebkitTransform",l={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[o],c={transform:a,transition:o,transitionDuration:o+"Duration",transitionProperty:o+"Property"},u=i.prototype=Object.create(t.prototype);u.constructor=i,u._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},u.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},u.getWindowSize=function(){this.size=e(this.element)},u.css=function(t){var e=this.element.style;for(var n in t){var i=c[n]||n;e[i]=t[n]}},u.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),i=t[e?"left":"right"],r=t[n?"top":"bottom"],s=this.layout.size,o=-1!=i.indexOf("%")?parseFloat(i)/100*s.width:parseInt(i,10),a=-1!=r.indexOf("%")?parseFloat(r)/100*s.height:parseInt(r,10);o=isNaN(o)?0:o,a=isNaN(a)?0:a,o-=e?s.paddingLeft:s.paddingRight,a-=n?s.paddingTop:s.paddingBottom,this.position.x=o,this.position.y=a},u.layoutPosition=function(){var t=this.layout.size,e={},n=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),r=n?"paddingLeft":"paddingRight",s=n?"left":"right",o=n?"right":"left",a=this.position.x+t[r];e[s]=this.getXValue(a),e[o]="";var l=i?"paddingTop":"paddingBottom",c=i?"top":"bottom",u=i?"bottom":"top",p=this.position.y+t[l];e[c]=this.getYValue(p),e[u]="",this.css(e),this.emitEvent("layout",[this])},u.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},u.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},u._transitionTo=function(t,e){this.getPosition();var n=this.position.x,i=this.position.y,r=parseInt(t,10),s=parseInt(e,10),o=r===this.position.x&&s===this.position.y;if(this.setPosition(t,e),o&&!this.isTransitioning)return void this.layoutPosition();var a=t-n,l=e-i,c={};c.transform=this.getTranslate(a,l),this.transition({to:c,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},u.getTranslate=function(t,e){var n=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop");return t=n?t:-t,e=i?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},u.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},u.moveTo=u._transitionTo,u.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},u._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},u.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var n in t.onTransitionEnd)e.onEnd[n]=t.onTransitionEnd[n];for(n in t.to)e.ingProperties[n]=!0,t.isCleaning&&(e.clean[n]=!0);if(t.from){this.css(t.from);var i=this.element.offsetHeight;i=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var p="opacity,"+r(a);u.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:p,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(l,this,!1))},u.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},u.onotransitionend=function(t){this.ontransitionend(t)};var h={"-webkit-transform":"transform"};u.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=h[t.propertyName]||t.propertyName;if(delete e.ingProperties[i],n(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd){var r=e.onEnd[i];r.call(this),delete e.onEnd[i]}this.emitEvent("transitionEnd",[this])}},u.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(l,this,!1),this.isTransitioning=!1},u._removeStyles=function(t){var e={};for(var n in t)e[n]="";this.css(e)};var f={transitionProperty:"",transitionDuration:""};return u.removeTransitionStyles=function(){this.css(f)},u.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},u.remove=function(){return o&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},u.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},n=this.getHideRevealTransitionEndProperty("visibleStyle");e[n]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},u.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},u.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var n in e)return n},u.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},n=this.getHideRevealTransitionEndProperty("hiddenStyle");e[n]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},u.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},u.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},i}),function(t,e){"use strict";t.Outlayer=e(t,t.EvEmitter,t.getWindowSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,n,i,r){"use strict";function s(t,e){var n=i.getQueryElement(t);if(!n)return void(a&&a.error("Bad element for "+this.constructor.namespace+": "+(n||t)));this.element=n,l&&(this.$element=l(this.element)),this.options=i.extend({},this.constructor.defaults),this.option(e);var r=++u;this.element.outlayerGUID=r,p[r]=this,this._create();var s=this._getOption("initLayout");s&&this.layout()}function o(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}var a=t.console,l=t.jQuery,c=function(){},u=0,p={};s.namespace="outlayer",s.Item=r,s.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var h=s.prototype;return i.extend(h,e.prototype),h.option=function(t){i.extend(this.options,t)},h._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},s.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},h._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),i.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},h.reloadItems=function(){this.items=this._itemize(this.element.children)},h._itemize=function(t){for(var e=this._filterFindItemElements(t),n=this.constructor.Item,i=[],r=0;r<e.length;r++){var s=e[r],o=new n(s,this);i.push(o)}return i},h._filterFindItemElements=function(t){return i.filterFindElements(t,this.options.itemSelector)},h.getItemElements=function(){return this.items.map(function(t){return t.element})},h.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},h._init=h.layout,h._resetLayout=function(){this.getWindowSize()},h.getWindowSize=function(){this.size=n(this.element)},h._getMeasurement=function(t,e){var i,r=this.options[t];r?("string"==typeof r?i=this.element.querySelector(r):r instanceof HTMLElement&&(i=r),this[t]=i?n(i)[e]:r):this[t]=0},h.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},h._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},h._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var n=[];t.forEach(function(t){var i=this._getItemLayoutPosition(t);i.item=t,i.isInstant=e||t.isLayoutInstant,n.push(i)},this),this._processLayoutQueue(n)}},h._getItemLayoutPosition=function(){return{x:0,y:0}},h._processLayoutQueue=function(t){t.forEach(function(t){this._positionItem(t.item,t.x,t.y,t.isInstant)},this)},h._positionItem=function(t,e,n,i){i?t.goTo(e,n):t.moveTo(e,n)},h._postLayout=function(){this.resizeContainer()},h.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},h._getContainerSize=c,h._setContainerMeasure=function(t,e){if(void 0!==t){var n=this.size;n.isBorderBox&&(t+=e?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},h._emitCompleteOnItems=function(t,e){function n(){r.dispatchEvent(t+"Complete",null,[e])}function i(){o++,o==s&&n()}var r=this,s=e.length;if(!e||!s)return void n();var o=0;e.forEach(function(e){e.once(t,i)})},h.dispatchEvent=function(t,e,n){var i=e?[e].concat(n):n;if(this.emitEvent(t,i),l)if(this.$element=this.$element||l(this.element),e){var r=l.Event(e);r.type=t,this.$element.trigger(r,n)}else this.$element.trigger(t,n)},h.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},h.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},h.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},h.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){i.removeFrom(this.stamps,t),this.unignore(t)},this)},h._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=i.makeArray(t)):void 0},h._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},h._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)}},h._manageStamp=c,h._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,r=n(t),s={left:e.left-i.left-r.marginLeft,top:e.top-i.top-r.marginTop,right:i.right-e.right-r.marginRight,bottom:i.bottom-e.bottom-r.marginBottom};return s},h.handleEvent=i.handleEvent,h.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},h.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},h.onresize=function(){this.resize()},i.debounceMethod(s,"onresize",100),h.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},h.needsResizeLayout=function(){var t=n(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},h.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},h.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},h.prepended=function(t){var e=this._itemize(t);if(e.length){var n=this.items.slice(0);this.items=e.concat(n),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(n)}},h.reveal=function(t){this._emitCompleteOnItems("reveal",t),t&&t.length&&t.forEach(function(t){t.reveal()})},h.hide=function(t){this._emitCompleteOnItems("hide",t),t&&t.length&&t.forEach(function(t){t.hide()})},h.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},h.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},h.getItem=function(t){for(var e=0;e<this.items.length;e++){var n=this.items[e];if(n.element==t)return n}},h.getItems=function(t){t=i.makeArray(t);var e=[];return t.forEach(function(t){var n=this.getItem(t);n&&e.push(n)},this),e},h.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),i.removeFrom(this.items,t)},this)},h.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete p[e],delete this.element.outlayerGUID,l&&l.removeData(this.element,this.constructor.namespace)},s.data=function(t){t=i.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&p[e]},s.create=function(t,e){var n=o(s);return n.defaults=i.extend({},s.defaults),i.extend(n.defaults,e),n.compatOptions=i.extend({},s.compatOptions),n.namespace=t,n.data=s.data,n.Item=o(r),i.htmlInit(n,t),l&&l.bridget&&l.bridget(t,n),n},s.Item=r,s}),function(t,e){t.Packery=t.Packery||{},t.Packery.Rect=e()}(window,function(){"use strict";function t(e){for(var n in t.defaults)this[n]=t.defaults[n];for(n in e)this[n]=e[n]}t.defaults={x:0,y:0,width:0,height:0};var e=t.prototype;return e.contains=function(t){var e=t.width||0,n=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+e&&this.y+this.height>=t.y+n},e.overlaps=function(t){var e=this.x+this.width,n=this.y+this.height,i=t.x+t.width,r=t.y+t.height;return this.x<i&&e>t.x&&this.y<r&&n>t.y},e.getMaximalFreeRects=function(e){if(!this.overlaps(e))return!1;var n,i=[],r=this.x+this.width,s=this.y+this.height,o=e.x+e.width,a=e.y+e.height;return this.y<e.y&&(n=new t({x:this.x,y:this.y,width:this.width,height:e.y-this.y}),i.push(n)),r>o&&(n=new t({x:o,y:this.y,width:r-o,height:this.height}),i.push(n)),s>a&&(n=new t({x:this.x,y:a,width:this.width,height:s-a}),i.push(n)),this.x<e.x&&(n=new t({x:this.x,y:this.y,width:e.x-this.x,height:this.height}),i.push(n)),i},e.canFit=function(t){return this.width>=t.width&&this.height>=t.height},t}),function(t,e){var n=t.Packery=t.Packery||{};n.Packer=e(n.Rect)}(window,function(t){"use strict";function e(t,e,n){this.width=t||0,this.height=e||0,this.sortDirection=n||"downwardLeftToRight",this.reset()}var n=e.prototype;n.reset=function(){this.spaces=[];var e=new t({x:0,y:0,width:this.width,height:this.height});this.spaces.push(e),this.sorter=i[this.sortDirection]||i.downwardLeftToRight},n.pack=function(t){for(var e=0;e<this.spaces.length;e++){var n=this.spaces[e];if(n.canFit(t)){this.placeInSpace(t,n);break}}},n.columnPack=function(t){for(var e=0;e<this.spaces.length;e++){var n=this.spaces[e],i=n.x<=t.x&&n.x+n.width>=t.x+t.width&&n.height>=t.height-.01;if(i){t.y=n.y,this.placed(t);
  8. break}}},n.rowPack=function(t){for(var e=0;e<this.spaces.length;e++){var n=this.spaces[e],i=n.y<=t.y&&n.y+n.height>=t.y+t.height&&n.width>=t.width-.01;if(i){t.x=n.x,this.placed(t);break}}},n.placeInSpace=function(t,e){t.x=e.x,t.y=e.y,this.placed(t)},n.placed=function(t){for(var e=[],n=0;n<this.spaces.length;n++){var i=this.spaces[n],r=i.getMaximalFreeRects(t);r?e.push.apply(e,r):e.push(i)}this.spaces=e,this.mergeSortSpaces()},n.mergeSortSpaces=function(){e.mergeRects(this.spaces),this.spaces.sort(this.sorter)},n.addSpace=function(t){this.spaces.push(t),this.mergeSortSpaces()},e.mergeRects=function(t){var e=0,n=t[e];t:for(;n;){for(var i=0,r=t[e+i];r;){if(r==n)i++;else{if(r.contains(n)){t.splice(e,1),n=t[e];continue t}n.contains(r)?t.splice(e+i,1):i++}r=t[e+i]}e++,n=t[e]}return t};var i={downwardLeftToRight:function(t,e){return t.y-e.y||t.x-e.x},rightwardTopToBottom:function(t,e){return t.x-e.x||t.y-e.y}};return e}),function(t,e){t.Packery.Item=e(t.Outlayer,t.Packery.Rect)}(window,function(t,e){"use strict";var n=document.documentElement.style,i="string"==typeof n.transform?"transform":"WebkitTransform",r=function(){t.Item.apply(this,arguments)},s=r.prototype=Object.create(t.Item.prototype),o=s._create;s._create=function(){o.call(this),this.rect=new e};var a=s.moveTo;return s.moveTo=function(t,e){var n=Math.abs(this.position.x-t),i=Math.abs(this.position.y-e),r=this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&1>n&&1>i;return r?void this.goTo(t,e):void a.apply(this,arguments)},s.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&i&&(this.element.style[i]="none"),this.isTransitioning=!1,this.getWindowSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},s.disablePlacing=function(){this.isPlacing=!1},s.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},s.showDropPlaceholder=function(){var t=this.dropPlaceholder;t||(t=this.dropPlaceholder=document.createElement("div"),t.className="packery-drop-placeholder",t.style.position="absolute"),t.style.width=this.size.width+"px",t.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(t)},s.positionDropPlaceholder=function(){this.dropPlaceholder.style[i]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},s.hideDropPlaceholder=function(){this.layout.element.removeChild(this.dropPlaceholder)},r}),function(t,e){t.Packery=e(t.getWindowSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window,function(t,e,n,i,r){"use strict";function s(t,e){return t.position.y-e.position.y||t.position.x-e.position.x}function o(t,e){return t.position.x-e.position.x||t.position.y-e.position.y}function a(t,e){var n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)}n.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var l=e.create("packery");l.Item=r;var c=l.prototype;c._create=function(){e.prototype._create.call(this),this.packer=new i,this.shiftPacker=new i,this.isEnabled=!0,this.dragItemCount=0;var t=this;this.handleDraggabilly={dragStart:function(){t.itemDragStart(this.element)},dragMove:function(){t.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){t.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(e,n){n&&t.itemDragStart(e.currentTarget)},drag:function(e,n){n&&t.itemDragMove(e.currentTarget,n.position.left,n.position.top)},stop:function(e,n){n&&t.itemDragEnd(e.currentTarget)}}},c._resetLayout=function(){this.getWindowSize(),this._getMeasurements();var t,e,n;this._getOption("horizontal")?(t=1/0,e=this.size.innerHeight+this.gutter,n="rightwardTopToBottom"):(t=this.size.innerWidth+this.gutter,e=1/0,n="downwardLeftToRight"),this.packer.width=this.shiftPacker.width=t,this.packer.height=this.shiftPacker.height=e,this.packer.sortDirection=this.shiftPacker.sortDirection=n,this.packer.reset(),this.maxY=0,this.maxX=0},c._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},c._getItemLayoutPosition=function(t){if(this._setRectSize(t.element,t.rect),this.isShifting||this.dragItemCount>0){var e=this._getPackMethod();this.packer[e](t.rect)}else this.packer.pack(t.rect);return this._setMaxXY(t.rect),t.rect},c.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},c._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},c._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX),this.maxY=Math.max(t.y+t.height,this.maxY)},c._setRectSize=function(e,n){var i=t(e),r=i.outerWidth,s=i.outerHeight;(r||s)&&(r=this._applyGridGutter(r,this.columnWidth),s=this._applyGridGutter(s,this.rowHeight)),n.width=Math.min(r,this.packer.width),n.height=Math.min(s,this.packer.height)},c._applyGridGutter=function(t,e){if(!e)return t+this.gutter;e+=this.gutter;var n=t%e,i=n&&1>n?"round":"ceil";return t=Math[i](t/e)*e},c._getContainerSize=function(){return this._getOption("horizontal")?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},c._manageStamp=function(t){var e,i=this.getItem(t);if(i&&i.isPlacing)e=i.rect;else{var r=this._getElementOffset(t);e=new n({x:this._getOption("originLeft")?r.left:r.right,y:this._getOption("originTop")?r.top:r.bottom})}this._setRectSize(t,e),this.packer.placed(e),this._setMaxXY(e)},c.sortItemsByPosition=function(){var t=this._getOption("horizontal")?o:s;this.items.sort(t)},c.fit=function(t,e,n){var i=this.getItem(t);i&&(this.stamp(i.element),i.enablePlacing(),this.updateShiftTargets(i),e=void 0===e?i.rect.x:e,n=void 0===n?i.rect.y:n,this.shift(i,e,n),this._bindFitEvents(i),i.moveTo(i.rect.x,i.rect.y),this.shiftLayout(),this.unstamp(i.element),this.sortItemsByPosition(),i.disablePlacing())},c._bindFitEvents=function(t){function e(){i++,2==i&&n.dispatchEvent("fitComplete",null,[t])}var n=this,i=0;t.once("layout",e),this.once("layoutComplete",e)},c.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},c.needsResizeLayout=function(){var e=t(this.element),n=this._getOption("horizontal")?"innerHeight":"innerWidth";return e[n]!=this.size[n]},c.resizeShiftPercentLayout=function(){var e=this._getItemsForLayout(this.items),n=this._getOption("horizontal"),i=n?"y":"x",r=n?"height":"width",s=n?"rowHeight":"columnWidth",o=n?"innerHeight":"innerWidth",a=this[s];if(a=a&&a+this.gutter){this._getMeasurements();var l=this[s]+this.gutter;e.forEach(function(t){var e=Math.round(t.rect[i]/a);t.rect[i]=e*l})}else{var c=t(this.element)[o]+this.gutter,u=this.packer[r];e.forEach(function(t){t.rect[i]=t.rect[i]/u*c})}this.shiftLayout()},c.itemDragStart=function(t){if(this.isEnabled){this.stamp(t);var e=this.getItem(t);e&&(e.enablePlacing(),e.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(e))}},c.updateShiftTargets=function(t){this.shiftPacker.reset(),this._getBoundingRect();var e=this._getOption("originLeft"),i=this._getOption("originTop");this.stamps.forEach(function(t){var r=this.getItem(t);if(!r||!r.isPlacing){var s=this._getElementOffset(t),o=new n({x:e?s.left:s.right,y:i?s.top:s.bottom});this._setRectSize(t,o),this.shiftPacker.placed(o)}},this);var r=this._getOption("horizontal"),s=r?"rowHeight":"columnWidth",o=r?"height":"width";this.shiftTargetKeys=[],this.shiftTargets=[];var a,l=this[s];if(l=l&&l+this.gutter){var c=Math.ceil(t.rect[o]/l),u=Math.floor((this.shiftPacker[o]+this.gutter)/l);a=(u-c)*l;for(var p=0;u>p;p++)this._addShiftTarget(p*l,0,a)}else a=this.shiftPacker[o]+this.gutter-t.rect[o],this._addShiftTarget(0,0,a);var h=this._getItemsForLayout(this.items),f=this._getPackMethod();h.forEach(function(t){var e=t.rect;this._setRectSize(t.element,e),this.shiftPacker[f](e),this._addShiftTarget(e.x,e.y,a);var n=r?e.x+e.width:e.x,i=r?e.y:e.y+e.height;if(this._addShiftTarget(n,i,a),l)for(var s=Math.round(e[o]/l),c=1;s>c;c++){var u=r?n:e.x+l*c,p=r?e.y+l*c:i;this._addShiftTarget(u,p,a)}},this)},c._addShiftTarget=function(t,e,n){var i=this._getOption("horizontal")?e:t;if(!(0!==i&&i>n)){var r=t+","+e,s=-1!=this.shiftTargetKeys.indexOf(r);s||(this.shiftTargetKeys.push(r),this.shiftTargets.push({x:t,y:e}))}},c.shift=function(t,e,n){var i,r=1/0,s={x:e,y:n};this.shiftTargets.forEach(function(t){var e=a(t,s);r>e&&(i=t,r=e)}),t.rect.x=i.x,t.rect.y=i.y};var u=120;c.itemDragMove=function(t,e,n){function i(){s.shift(r,e,n),r.positionDropPlaceholder(),s.layout()}var r=this.isEnabled&&this.getItem(t);if(r){e-=this.size.paddingLeft,n-=this.size.paddingTop;var s=this,o=new Date;this._itemDragTime&&o-this._itemDragTime<u?(clearTimeout(this.dragTimeout),this.dragTimeout=setTimeout(i,u)):(i(),this._itemDragTime=o)}},c.itemDragEnd=function(t){function e(){i++,2==i&&(n.element.classList.remove("is-positioning-post-drag"),n.hideDropPlaceholder(),r.dispatchEvent("dragItemPositioned",null,[n]))}var n=this.isEnabled&&this.getItem(t);if(n){clearTimeout(this.dragTimeout),n.element.classList.add("is-positioning-post-drag");var i=0,r=this;n.once("layout",e),this.once("layoutComplete",e),n.moveTo(n.rect.x,n.rect.y),this.layout(),this.dragItemCount=Math.max(0,this.dragItemCount-1),this.sortItemsByPosition(),n.disablePlacing(),this.unstamp(n.element)}},c.bindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"on")},c.unbindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"off")},c._bindDraggabillyEvents=function(t,e){var n=this.handleDraggabilly;t[e]("dragStart",n.dragStart),t[e]("dragMove",n.dragMove),t[e]("dragEnd",n.dragEnd)},c.bindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"on")},c.unbindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"off")},c._bindUIDraggableEvents=function(t,e){var n=this.handleUIDraggable;t[e]("dragstart",n.start)[e]("drag",n.drag)[e]("dragstop",n.stop)};var p=c.destroy;return c.destroy=function(){p.apply(this,arguments),this.isEnabled=!1},l.Rect=n,l.Packer=i,l}),function(){window.Juicer={Models:{},Collections:{},Views:{},Routers:{},Active:[],initialize:function(){return _u.each(jQuery(".juicer-feed"),function(){return function(t){var e;return e=new Juicer.Views.Feed({el:t}).render(),Juicer.Active.push(e)}}(this))},remove:function(){return _u.each(Juicer.Active,function(){return function(t){return t.close()}}(this)),window.Juicer.Active=[]}}}.call(this),function(){jQuery(document).ready(function(){var t;return t=jQuery.fn.jquery.split("."),jQuery.map(t,function(t){return("0"+t).slice(-2)}).join(".")>="01.07.00"?jQuery(".juicer-feed").length>0?Juicer.initialize():void 0:jQuery(".juicer-feed").before("<h1>You need to have at least jQuery 1.7 installed for the Juicer plugin to work. Please <a href='http//www.juicer.io/contact'>Contact Us</a> with any questions.</h1>")})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.SubView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.className="opened",n.prototype.initialize=function(t){return this.feed=t.feed,this.parent=t.parent,this.target=t.target,this.feedView=t.feedView,this.events=_u.extend({},this.inheretedEvents,this.events),this.delegateEvents()},n.prototype.render=function(){return this.$el.css({display:"none"}),this.renderTemplate(),$(this.target).addClass("selected").after(this.$el),this.$el.slideDown()},n.prototype.renderTemplate=function(){return this.$el.html(this.template({feed:this.feed}))},n.prototype.close=function(){return this.$el.slideUp(function(t){return function(){return t.remove()}}(this))},n}(JuicerBackbone.View)}.call(this),function(){Juicer.Helpers={renderPartial:function(t,e){var n;null==e&&(e={}),t=t.split("/"),t[t.length-1]="_"+t[t.length-1],t=t.join("/");try{return JST["partials/"+t](e)}catch(i){return n=i,console.log("Sorry, there is no partial named '"+t+"'"),""}},numberWithCommas:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},truncate:function(t,e,n){return null==n&&(n="..."),t.length>e?(t=t.replace(/<a\b[^>]*>(.*?)<\/a>/i,""),t.substring(0,e)+n):t},simpleDate:function(t){return null!=t?(t=new Date(t),strftime("%-m/%-d/%y",t)):void 0},fullDate:function(t){return null!=t?(t=new Date(t),strftime("%-m/%-d/%y at %-l:%M%p",t)):void 0},prettify:function(t){return t=t.replace("-"," "),this.capitalizeEachWord(t)},capitalizeEachWord:function(t){return t.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()})},timeAgo:function(t){var e,n;return t=new Date(t),n=Math.floor((new Date-t)/1e3),e=Math.floor(n/31536e3),e>1?e+"y":(e=Math.floor(n/2592e3),e>1?e+"mo":(e=Math.floor(n/86400),e>1?e+"d":(e=Math.floor(n/3600),e>1?e+"h":(e=Math.floor(n/60),e>1?e+"m":Math.floor(n)+"s"))))},sample:function(t){return t[Math.floor(Math.random()*t.length)]},confirm:function(t){return null!=window.confirmed?!0:confirm(t)?(window.confirmed=!0,!0):!1},format:function(t){return null==t?null:(t=t.replace(/\r\n?/,"\n"),t=$.trim(t),t.length>0&&(t=t.replace(/\n\n+/g,"</p><p>"),t=t.replace(/\n/g,"<br />"),t="<p>"+t+"</p>",t=t.autoLink()),t)}}}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};Juicer.Views.FormView=function(e){function i(){this.invalid=t(this.invalid,this),this.valid=t(this.valid,this),this.prepareModel(),i.__super__.constructor.apply(this,arguments)}return n(i,e),i.prototype.delegateEvents=function(t){return this.events=_u.extend(this._baseEvents(),_u.result(this,"events")),i.__super__.delegateEvents.call(this,t)},i.prototype._baseEvents=function(){return{"change [data-validation]":this.validateField,"blur [data-validation]":this.validateField,"keyup [data-validation].invalid":this.validateField,submit:this.processForm,"click input[type=submit]":this.processForm}},i.prototype.prepareModel=function(){return this.model=this.createModel(),this.setupValidation()},i.prototype.createModel=function(){throw new Error("implement #createModel in your FormView subclass to return a JuicerBackbone model")},i.prototype.namespace=null,i.prototype.loadingMessage="Loading...",i.prototype.setupValidation=function(){return JuicerBackbone.Validation.unbind(this),JuicerBackbone.Validation.bind(this,{model:this.model,valid:this.valid,invalid:this.invalid})},i.prototype.valid=function(t,e){return this.removeErrorMessage(e),this.$("[data-validation="+e+"]").removeClass("invalid").addClass("valid")},i.prototype.invalid=function(t,e,n){return this.removeErrorMessage(e),this.$("[data-validation="+e+"]").removeClass("valid").addClass("invalid").parents(".form-field").append("<small class='error "+e+"'>"+n+"</small>")},i.prototype.showActivityIndicator=function(t){return this.submit=t,this.submit.attr("disabled","disabled"),this.submitMessage=this.submit.val(),this.submit.val(this.loadingMessage)},i.prototype.hideActivityIndicator=function(){return this.submitMessage&&this.submit.val(this.submitMessage),this.submit.removeAttr("disabled")},i.prototype.removeErrorMessage=function(t){return this.$(".error."+t).remove()},i.prototype.validateField=function(t){var e,n,i;return n=$(t.target).attr("data-validation"),i=$(t.target).val(),(e=this.model.preValidate(n,i))?this.invalid(this,n,e):this.valid(this,n)},i.prototype.processForm=function(t){return t.preventDefault(),this.showActivityIndicator($(t.target)),this.updateModel(),this.submitForm()},i.prototype.updateModel=function(){var t;return t=JuicerBackbone.Syphon.serialize(this),this.model.set(t[this.namespace])},i.prototype.submitForm=function(){return this.model.validate()?this.hideActivityIndicator():this.$el[0].submit()},i}(JuicerBackbone.View)}.call(this),function(){this.JST||(this.JST={}),this.JST["enterprise/account"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<h1 class="title">Enterprise Account for ',t+=this.escape(this.model.get("name")),t+='</h1><nav class="enterprise"><ul><li><a class="button" href="/feeds/new">New Feed</a></li><li><a class="button new-admin" href="#">New Admin</a></li><li><a class="button" href="/enterprise/edit">Edit Account</a></li><li><a class="button" href="/api">API Docs</a></li><li class="price"><h3><span>$</span>',t+=this.escape(this.model.get("cost")),t+=' </h3><h4>Total</h4></li><li class="price"><h3><span>$</span>',t+=this.escape(this.model.get("monthly_cost")),t+=' </h3><h4>This Month</h4></li></ul></nav><ul class="feeds"></ul><h1>Admins</h1><ul class="admins"></ul>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["enterprise/account_feed"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t,e,n;return n="",t=this.model.get("slug"),n+='<h3><a href="/feeds/',n+=this.escape(t),n+='">',n+=this.escape(this.model.get("name")),n+="</a></h3>",e=this.model.get("sources").length,n+='<div class="pricing">',n+=this.escape(this.model.get("update_frequency_in_words")),n+=" \xd7 ",n+=this.escape(e),n+=" ",n+=this.escape(_u("source").pluralize(e)),n+=" = <strong>$",n+=this.escape(this.model.get("cost")),n+='</strong> per month </div><ul class="sources">',_u.each(this.sources,function(t){return function(e){var i,r,s,o;switch(i=e.get("term"),n+="<li",r=i){case!0:n+=' alt="alt"';break;case!1:case null:break;default:n+=' alt="',n+=t.escape(r),n+='"'}switch(o="",o+=t.escape(e.get("source").toLowerCase()),o.length>0&&(n+=' class="',n+=o,n+='"'),s=i){case!0:n+=' title="title"';break;case!1:case null:break;default:n+=' title="',n+=t.escape(s),n+='"'}return n+="><span>",n+=t.escape(i),n+="</span></li>"}}(this)),n+='</ul><ul class="users">',_u.each(this.assignments,function(t){return function(e){return n+='<li class="assignment"><span>',n+=t.escape(e.get("email")),n+='</span><a class="delete" data-id="',n+=t.escape(e.get("id")),n+='">Delete</a></li>'}}(this)),n+='<li class="assignment new">+ Add User</li></ul><ul class="actions">',this.account.get("auto_fetch_all")&&(n+='<li><a class="fetch_all" href="#">Fetch All Posts</a></li>'),n+='<li><a href="/feeds/',n+=this.escape(t),n+='/edit">Edit</a></li><li><a data-confirm="Are you sure you want to delete ',n+=this.escape(t),n+=' feed? This will remove all sources and posts and is non-reversible." data-method="delete" href="/feeds/',n+=this.escape(t),n+='" rel="nofollow">Delete</a></li></ul>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["enterprise/account_user"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+="<h3>",t+=this.escape(this.model.get("email")),t+='</h3><a data-confirm="Are you sure you want to remove this user from your enterprise account and all associated feeds?" data-method="post" href="/enterprise/',t+=this.escape(this.model.get("id")),t+='/remove" rel="nofollow">Remove</a>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["enterprise/calculator"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="range"><h3 class="sources">',t+=this.escape(this.model.sources()),t+='</h3><h4>Social Media Sources</h4><input data-attribute="sources" max="21" min="1" type="range" value="',t+=this.escape(this.model.get("sources")),t+='" /></div><div class="range"><h3 class="frequency">',t+=this.escape(this.model.frequencyInWords()),t+='</h3><h4>Update Frequency</h4><input data-attribute="frequency" max="7" min="1" type="range" value="',t+=this.escape(this.model.get("frequency")),t+='" /></div><div class="price"><h3>',t+=this.escape(this.model.priceString()),t+="</h3><h4>",t+=this.escape(this.model.priceLabel()),t+="</h4></div>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["enterprise/create_assignment_form"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="enterprise-overlay"><h2>Add User to ',t+=this.escape(this.model.get("name")),t+='</h2><form accept-charset="UTF-8" action="/assignments" method="post"><div style="display:none"><input name="utf8" type="hidden" value="\u2713" /><input name="assignment[feed_id]" type="hidden" value="',t+=this.escape(this.model.get("id")),t+='" /><input name="authenticity_token" type="hidden" value="',t+=this.escape(this.csrf),t+='" /></div><div class="form-field"><input name="assignment[email]" placeholder="Their Email Address" type="email" /></div><input name="commit" type="submit" value="Add User to ',t+=this.escape(this.model.get("name")),t+='" /></form></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["enterprise/invite_admin"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="enterprise-overlay"><h2>Invite an Admin to your account</h2><h3>This will add them to all feeds, allow them to create new feeds and edit existing feeds.</h3><form accept-charset="UTF-8" action="/enterprise/admin" method="post"><div style="display:none"><input name="utf8" type="hidden" value="\u2713" /><input name="authenticity_token" type="hidden" value="',t+=this.escape(this.csrf),t+='" /></div><div class="form-field"><input name="email" placeholder="Their Email Address" type="email" /></div><input name="commit" type="submit" value="Make User Admin" /></form></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.errors=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<ul class="errors"><h3>Errors</h3>',$.each(this.errors,function(e){return function(n){return _u.each(e.errors[n],function(e){return t+="<li>",t+=e,t+="</li>"})}}(this)),t+="</ul>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.feed=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t,e;return e="",t=this.feed.get("posts").models,"Social Type"!==this.feed.get("display_filter")||this.feed.hasInterval()?"Social Account"!==this.feed.get("display_filter")||this.feed.hasInterval()?"Grouped Terms"!==this.feed.get("display_filter")||this.feed.hasInterval()||(e+='<ul class="j-filters filters">',_u.each(this.feed.uniqSources(),function(t){return function(n){return e+='<li class="grouped" data-filter="',e+=t.escape(n.replace(/@|#/,"")),e+='">',e+=t.escape(n),e+="</li>"}}(this)),e+='<li class="grouped selected" data-filter="">All</li></ul>'):(e+='<ul class="j-filters filters">',_u.each(this.feed.get("sources").models,function(t){return function(n){var i;return e+="<li",i="",i+=t.escape(n.get("source").toLowerCase()),i.length>0&&(e+=' class="',e+=i,e+='"'),e+=' data-filter="',e+=t.escape(n.get("id")),e+='">',e+=t.escape(n.typeSymbol()),e+=t.escape(n.displayTerm()),e+="</li>"}}(this)),e+='<li class="all selected" data-filter="">All</li></ul>'):(e+='<ul class="j-filters filters">',_u.each(this.feed.accountTypes(),function(t){return function(n){var i;return e+="<li",i="",i+=t.escape(n.toLowerCase()),i.length>0&&(e+=' class="',e+=i,e+='"'),e+=' data-filter="',e+=t.escape(n),e+='">',e+=t.escape(n),e+="</li>"}}(this)),e+='<li class="all selected" data-filter="">All</li></ul>'),t.length>0?_u.each(t,function(t){return function(n){var i;return e+="<li",i="",i+=t.escape(n.classes()),i.length>0&&(e+=' class="',e+=i,e+='"'),e+=' data-id="',e+=t.escape(n.get("id")),e+='">',e+=Juicer.Helpers.renderPartial("actions",{post:n,admin:t.admin}),e+=Juicer.Helpers.renderPartial("feeds/"+t.feed.partial(),{post:n,truncate:t.truncate,feed:t.feed}),e+="</li>"}}(this)):e+=this.admin?'<div class="empty"><h2>Add some feed sources or check your moderation queue!</h2></div>':'<div class="empty"><h2>No Posts!</h2></div>',e})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/analytics"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="sidebar-container"><div class="analytics"><h3>Analytics</h3><h4>Track your posts, page views, clickthroughs and user engagement over time to see how your feed is being used.</h4></div><a class="button launch">Launch ',t+=this.escape(this.feed.get("name")),t+=" Analytics</a></div>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/analytics_overlay"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;
  9. return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+="<h2>Analytics for ",t+=this.escape(this.feed.get("name")),t+=' Feed</h2><h3 style="margin-bottom:1.5rem">Only large plans can access analytics. Please upgrade your account!</h3>',t+=Juicer.Helpers.renderPartial("upgrade_plan",{feed:this.feed})})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/embed"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="sidebar-container">',this.feed.shopify()&&(t+='<a class="blog-link shopify" href="/blog/setting-up-a-juicer-social-media-feed-on-shopify">Add Juicer to my Shopify Site.</a>'),t+='<h3>Copy and paste this code in your site:</h3><textarea class="embed">',t+=this.embed,t+='</textarea><a class="blog-link" href="/blog/customizing-your-juicer-embedded-social-media-feed">Customize my embed.</a><a class="blog-link wordpress" href="#">I have a Wordpress site.</a>',this.feed.shopify()||(t+='<a class="blog-link shopify" href="/blog/setting-up-a-juicer-social-media-feed-on-shopify">I have a Shopify site.</a>'),t+='<a class="blog-link iframe" href="#">Use an iframe instead.</a></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/embed_code"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<script src="',t+=this.escape(this.javascript),t+='" type="text/javascript"></script><br /><link href="',t+=this.escape(this.stylesheet),t+='" media="all" rel="stylesheet" type="text/css" /><br /><ul class="juicer-feed" data-feed-id="',t+=this.escape(this.feed.get("slug")),t+='">',this.feed.paid()||(t+=Juicer.Helpers.renderPartial("referral")),t+="</ul>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/features"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="sidebar-container"><div class="upgrade"><h4>Upgrade your account to Medium or Large and get:</h4><ul><li>More frequent feed updates</li><li>More Social Media Sources</li><li>More Feeds</li><li>Moderation and Filtering</li><li>Feed Analytics</li><li>Instant Support and Integration Assistance</li></ul></div><a class="button" href="/plans">Upgrade your plan now!</a></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/feed_name_edit"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<form id="feed-name-edit"><input autofocus="yes" name="name" type="text" value="',t+=this.escape(this.feed.get("name")),t+='" /></form>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/hub"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="sidebar-container hub"><h3>Share this link:</h3><input type="text" value="',t+=this.escape(window.location.protocol),t+="//",t+=this.escape(window.location.host),t+="/",t+=this.escape(this.feed.get("slug")),t+='" /><a class="button" href="/',t+=this.escape(this.feed.get("slug")),t+='">View your public feed</a></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/iframe"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="sidebar-container"><h3>Copy and paste this onto your site</h3><textarea class="embed iframe" type="text">',t+=this.iframe,t+='</textarea><p class="explanation">You may have to adjust width and height to get it to work. You should only use this if the standard embed isn\'t working for you.</p></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/manual_post_form"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<form accept-charset="UTF-8" id="manual_post" method="post">',this.feed.notSmall()?(t+="<h2>Add a Post Manually to ",t+=this.escape(this.name),t+='</h2><input id="source_source" name="source_id" type="hidden" value="',t+=this.escape(this.source_id),t+='"><input autocomplete="off" id="link" name="link" placeholder="ex: https://twitter.com/juicerio/status/615555384300961792" type="text" /><input name="commit" type="submit" value="Add Post" /></input>'):(t+="<h2>Add a Post Manually to ",t+=this.escape(this.name),t+='</h2><h3 style="margin-bottom:1.5rem">Unfortunately, the ',t+=this.escape(this.feed.get("plan")),t+=" plan doesn't allow you to manually enter posts. Please upgrade!</h3>",t+=Juicer.Helpers.renderPartial("upgrade_plan",{feed:this.feed})),t+="</form>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/moderate"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="sidebar-container"><div class="moderate"><h3>Moderate Posts</h3><h4>Hover over posts on the right to delete individual posts. <a class="trashed" href="#">View moderated posts.</a></h4></div>',this.feed.get("moderation_allowed?")?(t+='<form accept-charset="UTF-8" class="filters" method="post"><h3>Disallow posts with these words:</h3><textarea class="filter" name="feed[disallowed]" placeholder="separate filter words with a space or commas">',t+=this.feed.disallowed(),t+='</textarea><h3>Only allow posts with these words:</h3><textarea class="filter" name="feed[allowed]" placeholder="separate filter words with a space or commas">',t+=this.feed.allowed(),t+='</textarea><div id="geofence"><h3>Restrict to posts within <input class="distance" name="feed[distance]" placeholder="ex: 25" type="text" value="',t+=this.escape(this.feed.get("distance")),t+='" />miles of: </h3><input id="location" name="feed[location]" placeholder="Type a Location" type="text" value="',t+=this.escape(this.feed.get("location")),t+='" /><input id="lat" name="feed[lat]" type="hidden" value="',t+=this.escape(this.feed.get("lat")),t+='" /><input id="lng" name="feed[lng]" type="hidden" value="',t+=this.escape(this.feed.get("lng")),t+='" /></div>',t+=Juicer.Helpers.renderPartial("profanity",{feed:this.feed}),t+=Juicer.Helpers.renderPartial("prevent_duplicates",{feed:this.feed}),t+=Juicer.Helpers.renderPartial("queue",{feed:this.feed}),t+='<input type="submit" value="Save your Filters" /></form>'):(t+='<h3 style="margin-bottom:1.5rem">Only medium and large plans can setup filters. Upgrade now!</h3>',t+=Juicer.Helpers.renderPartial("upgrade_plan",{feed:this.feed})),t+="</div>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/settings"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="sidebar-container">',t+=Juicer.Helpers.renderPartial("css",{feed:this.feed,label:!0}),t+=Juicer.Helpers.renderPartial("interval",{feed:this.feed}),t+=Juicer.Helpers.renderPartial("width",{feed:this.feed}),t+=Juicer.Helpers.renderPartial("height",{feed:this.feed}),(null!=this.feed.get("height")||null!=this.feed.get("width"))&&(t+='<label class="dimensions-helper">If you want the feed to fill all available space remove the height and width.</label>'),t+=Juicer.Helpers.renderPartial("columns",{feed:this.feed}),t+=Juicer.Helpers.renderPartial("order",{feed:this.feed}),t+=Juicer.Helpers.renderPartial("filter_setting",{feed:this.feed,label:!0}),_u.each(this.checkboxes,function(e){return function(n){var i;return i=n.attr,t+='<div class="checkbox"><input name="feed[',t+=e.escape(i),t+=']" type="hidden" value="0" />',e.feed.get(i)?(t+='<input checked="true" data-attribute="',t+=e.escape(i),t+='" id="',t+=e.escape(i),t+='" name="feed[',t+=e.escape(i),t+=']" type="checkbox" />'):(t+='<input data-attribute="',t+=e.escape(i),t+='" id="',t+=e.escape(i),t+='" name="feed[',t+=e.escape(i),t+=']" type="checkbox" />'),t+='<label for="',t+=e.escape(i),t+='">',t+=e.escape(n.label),t+="</label></div>"}}(this)),t+="</div>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/shopify"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div id="shopify-form"><h2>Add Juicer to Your Shopify Site</h2><h3>',t+=this.escape(this.uid),t+='</h3><p>Enter the name of the page you want Juicer to add to your site</p><form accept-charset="UTF-8" id="add_page" method="post"><input name="uid" type="hidden" value="',t+=this.escape(this.uid),t+='" /><input name="slug" type="hidden" value="',t+=this.escape(this.feed.get("slug")),t+='" /><input autocomplete="off" name="title" type="text" value="Social Media" /><input name="commit" type="submit" value="Add Juicer to ',t+=this.escape(this.uid),t+='" /></form></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/shopify_form"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div id="shopify-form"><h2>Connect your Shopify Account</h2><p>Enter the name of your Shopify store:</p><form accept-charset="UTF-8" id="connect" method="post"><label>https:// </label><input autocomplete="off" name="uid" type="text" /><label>.myshopify.com</label><input name="commit" type="submit" value="Connect" /></form></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/sources"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<ul id="new-source">',t+=Juicer.Helpers.renderPartial("sources"),t+='</ul><ul id="sources">',_u.each(this.feed.get("sources").models,function(e){return function(n){var i,r;return i=n.get("id"),r=n.manual(),t+='<li class="',t+=e.escape(n.lowerSource()),t+=" ",t+=e.escape(r?"manual":void 0),t+='">',t+=e.escape(n.typeSymbol()),t+=e.escape(n.displayTerm()),t+=" ",r&&(t+='<a class="add" data-id="',t+=e.escape(i),t+='" data-name="',t+=e.escape(n.typeSymbol()),t+=e.escape(n.get("term")),t+='" rel="nofollow"><span>Add</span></a>'),t+='<a class="delete" data-id="',t+=e.escape(i),t+='" href="/feeds/',t+=e.escape(e.feed.get("slug")),t+="/sources/",t+=e.escape(i),t+='" rel="nofollow"><span>Delete</span></a></li>'}}(this)),t+="</ul>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/synced"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t,e;return t="",t+='<div class="sidebar-container"><div class="synced"><h4',e="",e+="",e.length>0&&(t+=' class="',t+=e,t+='"'),t+=">Your feed will sync next at <br />",t+=this.escape(Juicer.Helpers.fullDate(this.feed.nextSync())),t+=' </h4><h4 class="white-label-hide">Want more frequent updates to your Juicer Feed?</h4></div><a class="button white-label-hide" href="/plans">Upgrade your plan!</a></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["feeds/wordpress"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t,e,n;return n="",n+='<div class="sidebar-container"><h3>First, download, unzip, and install the wordpress plugin.</h3><a class="blog-link" href="http://www.juicer.io/blog/setting-up-a-juicer-social-media-aggregator-on-a-wordpress-site">Learn how to install</a><a class="blog-link" href="http://assets.juicer.io/wordpress-plugin/juicer.zip">Download the Juicer Wordpess Plugin</a><h3>Shortcode</h3>',t="[juicer name='"+this.feed.get("slug")+"']",n+='<textarea class="embed wordpress" type="text">',n+=t,n+="</textarea><h3>PHP Function</h3>",e="<?php juicer_feed('name="+this.feed.get("slug")+"'); ?>",n+='<textarea class="embed snippet" type="text">',n+=e,n+="</textarea></div>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.infinite_scroll=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t,e;return e="",t=this.feed.get("posts").models,t.length>0&&_u.each(t,function(t){return function(n){var i;return e+="<li",i="",i+=t.escape(n.classes()),i.length>0&&(e+=' class="',e+=i,e+='"'),e+=' data-id="',e+=t.escape(n.get("id")),e+='">',e+=Juicer.Helpers.renderPartial("actions",{post:n,admin:t.admin}),e+=Juicer.Helpers.renderPartial("feeds/"+t.feed.partial(),{post:n,feed:t.feed}),e+="</li>"}}(this)),e})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.location_picker=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<input id="source_source" name="source" type="hidden" value="',t+=this.escape(this.source.source()),t+='" /><input id="source_source" name="feed_id" type="hidden" value="',t+=this.escape(this.feed.get("id")),t+='" /><input id="source_source" name="term_type" type="hidden" value="location" /><input id="term" name="term" type="hidden" /><input id="name" name="name" type="hidden" /><ul id="locations">',_u.each(this.locations,function(e){return function(n){return t+='<li data-id="',t+=e.escape(n.id),t+='" data-name="',t+=e.escape(n.name),t+='">',t+=e.escape(n.name),t+="</li>"}}(this)),t+="</ul>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.moderated=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<ul class="j-filters moderation-filters"><li class="selected" data-filter="">All</li>',_u.each(["Filter","Profanity","Similarity","User","Queue","Rejected"],function(e){return function(n){return t+='<li data-filter="',t+=e.escape(n),t+='">',t+=e.escape(n),t+="</li>"}}(this)),t+="</ul>",t+=Juicer.Helpers.renderPartial("moderated_posts",{feed:this.feed})})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.overlay=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="j-overlay-content" tabindex="0"><a class="j-close" href="#"><span>Close</span></a>',t+=this.content,t+="</div>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_actions"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",this.admin&&(t+='<ul class="actions tooltips" data-id="',t+=this.escape(this.post.get("id")),t+='">',null!=this.post.get("deleted_at")?t+='<li class="approve"><span>Approve</span><div class="tooltip">Move post to your live feed.</div></li><li class="reject"><span>Reject</span><div class="tooltip">Don\'t publish post and hide it.</div></li>':(t+=this.post.stickied()?'<li class="unstick"><span>unstick</span><div class="tooltip">Make post be not-sticky anymore.</div></li>':'<li class="sticky"><span>Sticky</span><div class="tooltip">Stick post. Keep post at top of feed, even when new posts come in.</div></li>',t+='<li class="edit"><span>Edit</span><div class="tooltip">Add content to this post.</div></li><li class="delete"><span>Delete</span><div class="tooltip">Move post to moderation queue. Remove from live feed.</div></li>'),t+="</ul>"),t})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_columns"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;
  10. for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="columns"><label for="columns">Columns</label><input class="columns" max="9" min="1" name="feed[columns]" type="number" value="',t+=this.escape(this.feed.get("columns")),t+='" /></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_content"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",this.lazyLoad=this.lazyLoad||null!=this.feed&&this.feed.get("lazy_load")||!1,null!=this.post.get("image")&&(t+='<a class="j-image" data-external-id="',t+=this.escape(this.post.get("external_id")),t+='" data-image="',t+=this.escape(this.post.get("image")),t+='" data-video-url="',t+=this.escape(this.post.get("video")),t+='" href="',t+=this.escape(this.post.link()),t+='" target="_blank">',this.lazyLoad?(t+='<img alt="',t+=this.escape(this.post.alt()),t+='" data-lazy="',t+=this.escape(this.post.get("image")),t+='" />'):(t+='<img alt="',t+=this.escape(this.post.alt()),t+='" src="',t+=this.escape(this.post.get("image")),t+='" />'),t+="</a>"),t})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_css"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="css">',this.label&&(t+='<label for="css">Choose a Feed Style</label>'),t+='<div class="select"><select id="css" name="feed[css]">',_u.each(Juicer.Constants.FEED_CLASSES,function(e){return function(n){return e.feed.get("css")===n?(t+='<option selected="true" value="',t+=e.escape(n),t+='">',t+=e.escape(Juicer.Helpers.prettify(n)),t+="</option>"):(t+='<option value="',t+=e.escape(n),t+='">',t+=e.escape(Juicer.Helpers.prettify(n)),t+="</option>")}}(this)),t+="</select></div></div>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_edit"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",this.post.edited()&&(t+='<div class="j-edit"><span>(edited) </span>',t+=Juicer.Helpers.format(this.post.get("edit")),t+="</div>"),t})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_facebook_embed"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="video-wrapper"><video autoplay="autoplay" controls="true" loop="true"><source src="',t+=this.escape(this.video),t+='" type="video/mp4" /></video></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_filter_setting"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="filter_setting">',this.label&&(t+='<label for="filter">Display Filters at top of Feed</label>'),t+='<div class="select"><select id="filter_setting" name="feed[display_filter]">',_u.each(["None","Social Type","Social Account","Grouped Terms"],function(e){return function(n){return e.feed.get("display_filter")===n?(t+='<option selected="true" value="',t+=e.escape(n),t+='">',t+=e.escape(n),t+="</option>"):(t+='<option value="',t+=e.escape(n),t+='">',t+=e.escape(n),t+="</option>")}}(this)),t+="</select></div></div>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_height"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="height"><label for="height">Height</label><input class="height" max="5000" min="100" name="feed[height]" type="number" value="',t+=this.escape(this.feed.get("height")),t+='" /> px </div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_instagram_embed"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="instagram-wrapper"><video autoplay="autoplay" controls="controls" id="video" loop="true"><source src="',t+=this.escape(this.video),t+='" /></video></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_interval"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="interval"><label for="width">Interval</label><input class="interval" max="30000" min="100" name="feed[interval]" type="number" value="',t+=this.escape(this.feed.get("interval")),t+='" /> ms </div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_link"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t,e;return t="",t+="<a",e="",e+=this.escape(this["class"]),e.length>0&&(t+=' class="',t+=e,t+='"'),t+=' href="',t+=this.escape(this.url),t+='" target="_blank">',t+=this.escape(Juicer.Helpers.numberWithCommas(this.label)),t+="</a>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_loading"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+=this.container?'<div class="j-loading-container"><div class="j-loading">Loading...</div></div>':'<div class="j-loading">Loading...</div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_message"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",null!=this.post.get("message")&&(t+='<div class="j-message">',this.post.blogPost()&&(this.truncate||(this.truncate=400)),t+=this.truncate?Juicer.Helpers.truncate(this.post.message(),this.truncate,"<a href='"+this.post.link()+"'>...Read More</a>"):this.post.message(),t+="</div>"),t+=Juicer.Helpers.renderPartial("edit",{post:this.post})})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_meta"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="","Juicer"!==this.post.sourceType()&&(t+='<div class="j-meta"><ul>',this.post.noMeta()||(t+="<li>",t+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:this.post.get("comment_count"),"class":this.post.commentClass()}),t+="</li><li>",t+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:this.post.get("like_count"),"class":this.post.likeClass()}),t+="</li>"),t+="</ul><nav>",t+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:"","class":""+this.post.lowerType()+" j-social"}),t+="</nav></div>"),t})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_moderated_posts"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t,e;return e="",t=this.feed.get("posts").models,t.length>0?_u.each(t,function(t){return function(n){var i;return e+="<li",i="",i+=t.escape(n.classes()),i.length>0&&(e+=' class="',e+=i,e+='"'),e+=">",e+=Juicer.Helpers.renderPartial("actions",{post:n,admin:!0}),e+=Juicer.Helpers.renderPartial("feeds/user",{post:n,feed:t.feed}),e+="</li>"}}(this)):e+='<div class="empty"><h2>No Moderated Posts!</h2></div>',e})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_order"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="order"><label for="order">Post Order</label><div class="select"><select id="css" name="feed[order]">',_u.each([["random","Random"],["popular","Most Popular"],["created_at","Most Recent First"]],function(e){return function(n){return e.feed.get("order")===n[0]?(t+='<option selected="true" value="',t+=e.escape(n[0]),t+='">',t+=e.escape(n[1]),t+="</option>"):(t+='<option value="',t+=e.escape(n[0]),t+='">',t+=e.escape(n[1]),t+="</option>")}}(this)),t+="</select></div></div>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_poster"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",this.lazyLoad=this.lazyLoad||null!=this.feed&&this.feed.get("lazy_load")||!1,this.post.poster()&&(t+='<div class="j-poster"><a href="',t+=this.escape(this.post.get("poster_url")),t+='" target="_blank">',this.post.get("poster_image")&&(this.lazyLoad?(t+='<img alt="Profile image for ',t+=this.escape(this.post.get("poster_name")),t+='" data-lazy="',t+=this.escape(this.post.get("poster_image")),t+='" />'):(t+='<img alt="Profile image for ',t+=this.escape(this.post.get("poster_name")),t+='" src="',t+=this.escape(this.post.get("poster_image")),t+='" />')),t+="<h3>",t+=this.escape(this.post.get("poster_name")),t+='</h3><div class="j-date">',t+=this.escape(Juicer.Helpers.timeAgo(this.post.get("external_created_at"))),t+="</div></a></div>"),t})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_prevent_duplicates"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="prevent-duplicates"><input name="feed[prevent_duplicates]" type="hidden" value="0" />',t+=this.feed.get("prevent_duplicates")?'<input checked="true" id="prevent_duplicates" name="feed[prevent_duplicates]" type="checkbox" />':'<input id="prevent_duplicates" name="feed[prevent_duplicates]" type="checkbox" />',t+='<label for="prevent_duplicates">Prevent Duplicate Posts</label></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_profanity"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="profanity"><input name="feed[profanity]" type="hidden" value="0" />',t+=this.feed.get("profanity")?'<input checked="true" id="profanity" name="feed[profanity]" type="checkbox" />':'<input id="profanity" name="feed[profanity]" type="checkbox" />',t+='<label for="profanity">Don\'t allow posts with profanity</label></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_queue"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="queue"><input name="feed[queue]" type="hidden" value="0" />',t+=this.feed.get("queue")?'<input checked="true" id="queue" name="feed[queue]" type="checkbox" />':'<input id="queue" name="feed[queue]" type="checkbox" />',t+='<label for="queue">Send all posts to moderation queue</label></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_referral"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<h1 class="referral"><a href="https://www.juicer.io">Powered by Juicer</a></h1>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_soundcloud_embed"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="video-wrapper"><iframe frameborder="no" scrolling="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/',t+=this.escape(this.id),t+='&amp;amp;auto_play=true&amp;amp;hide_related=false&amp;amp;show_comments=true&amp;amp;show_user=true&amp;amp;show_reposts=false&amp;amp;visual=true"></iframe></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_source_form_hashtag"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t,e;return e="","Pinterest"===this.source.source()?e+="<h2>Add Pinterest Board</h2>":(e+="<h2>Add ",e+=this.escape(this.source.source()),e+=" Hashtag</h2>"),"Facebook"===this.source.source()&&(e+='<h3 class="facebook-warning">There is <strong>NO</strong> guarantee that we can pull in every post with a facebook hashtag. <br />Please read <a href="https://www.juicer.io/blog/faqs#facebook-hashtag" target="_blank">our notice</a> about Facebook Hashtags first. </h3>'),e+='<form accept-charset="UTF-8" action="/feeds/',e+=this.escape(this.feed.get("slug")),e+='/sources" id="new_source" method="post"><div style="display:none"><input name="utf8" type="hidden" value="\u2713" /></div><input id="source_source" name="source" type="hidden" value="',e+=this.escape(this.source.source()),e+='" /><input id="source_source" name="feed_id" type="hidden" value="',e+=this.escape(this.feed.get("id")),e+='" /><input id="source_source" name="term_type" type="hidden" value="',e+=this.escape(this.type),e+='" />',"Pinterest"===this.source.source()?(e+='<label for="source_term">',e+=this.escape(this.source.label()),e+="</label>"):e+='<label for="source_term">#</label>',t="Pinterest"===this.source.source()?"pinterest-username/board-name":"",e+='<input autocomplete="off" id="source_term" name="term" placeholder="',e+=this.escape(t),e+='" type="text" />',"Twitter"===this.source.source()&&(e+='<div id="feed_term_type"><input id="retweets" name="retweets" type="checkbox" value="retweets" /><label for="retweets">Include retweets</label><input id="replies" name="replies" type="checkbox" value="replies" /><label for="replies">Include @replies</label></div>'),e+='<input name="commit" type="submit" value="Create Source" /></form>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_source_form_help"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",this.source.helpLink()&&(t+='<div class="help"><h3>Need some help?</h3><a href="',t+=this.escape(this.source.helpLink()),t+='" target="_blank">Watch our quick screencast</a> about how to set up a ',t+=this.escape(this.source.get("source")),t+=" feed on Juicer. </div>"),t
  11. })}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_source_form_location"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+="<h2>Add ",t+=this.escape(this.source.source()),t+=' Location</h2><form accept-charset="UTF-8" action="/feeds/',t+=this.escape(this.feed.get("slug")),t+='/sources" id="new_source" method="post"><div style="display:none"><input name="utf8" type="hidden" value="\u2713" /></div><input id="source_source" name="source" type="hidden" value="',t+=this.escape(this.source.source()),t+='" /><input id="source_source" name="feed_id" type="hidden" value="',t+=this.escape(this.feed.get("id")),t+='" /><input id="source_source" name="term_type" type="hidden" value="',t+=this.escape(this.type),t+='" /><label for="source_term">https://www.instagram.com/explore/locations/</label><input autocomplete="off" id="source_term" name="term" placeholder="location_id" type="text" /><p id="location_search">or, <a>search</a> for a location. </p><input name="commit" type="submit" value="Add Location" /></form>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_source_form_location_search"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+="<h2>Add ",t+=this.escape(this.source.source()),t+=' Location</h2><form accept-charset="UTF-8" action="/feeds/',t+=this.escape(this.feed.get("slug")),t+='/sources" id="location" method="post"><div style="display:none"><input name="utf8" type="hidden" value="\u2713" /></div><input id="source_source" name="source" type="hidden" value="',t+=this.escape(this.source.source()),t+='" /><input id="lat" name="lat" type="hidden" /><input id="lng" name="lng" type="hidden" /><input id="location" name="name" type="text" /><input disabled="disabled" name="commit" type="submit" value="Search for Location" /></form>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_source_form_personal"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t,e;return e="",e+="<h2>Add Personal Facebook Account</h2>",t=this.feed.socialAccount("facebook"),t?(e+='<form accept-charset="UTF-8" action="/feeds/',e+=this.escape(this.feed.get("slug")),e+='/sources" id="new_source" method="post"><input id="source_source" name="source" type="hidden" value="Facebook" /><input id="source_source" name="feed_id" type="hidden" value="',e+=this.escape(this.feed.get("id")),e+='" /><input id="source_source" name="term" type="hidden" value="',e+=this.escape(t.get("name")),e+='" /><input id="source_source" name="term_type" type="hidden" value="personal" /><input class="facebook" name="commit" type="submit" value="Pull in ',e+=this.escape(t.get("name")),e+='&#39; Facebook posts" /></form>'):e+='<a class="button facebook social-account" href="/auth/facebook">Connect your Facebook Account</a>',e})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_source_form_username"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+="<h2>",t+=this.escape(this.source.title()),t+='</h2><form accept-charset="UTF-8" action="/feeds/',t+=this.escape(this.feed.get("slug")),t+='/sources" id="new_source" method="post"><div style="display:none"><input name="utf8" type="hidden" value="\u2713" /></div><input id="source_source" name="source" type="hidden" value="',t+=this.escape(this.source.source()),t+='" /><input id="source_source" name="feed_id" type="hidden" value="',t+=this.escape(this.feed.get("id")),t+='" /><input id="source_source" name="term_type" type="hidden" value="',t+=this.escape(this.type),t+='" />',"Tumblr"===this.source.source()?(t+='<label for="source_term">http://</label><input autocomplete="off" id="source_term" name="term" placeholder="',t+=this.escape(this.source.placeholder()),t+='" type="text" /><label for="source_term">.tumblr.com</label>'):"DeviantArt"===this.source.source()?(t+='<label for="source_term">http://</label><input autocomplete="off" id="source_term" name="term" placeholder="',t+=this.escape(this.source.placeholder()),t+='" type="text" /><label for="source_term">.deviantart.com</label>'):"Hashtag"===this.source.source()?(t+='<ul id="add-a-hashtag">',_u.each(this.source.hashtagSupporters,function(e){return function(n){return t+='<li class="',t+=e.escape(n.toLowerCase()),t+=' hashtag-source" data-type="',t+=e.escape(n),t+='"><span>',t+=e.escape(n),t+="</span></li>"}}(this)),t+="</ul>"):(t+='<label for="source_term">',t+=this.escape(this.source.label()),t+='</label><input autocomplete="off" id="source_term" name="term" placeholder="',t+=this.escape(this.source.placeholder()),t+='" type="text" />',"Facebook"===this.source.source()&&(t+='<div id="feed_term_type"><input id="term_type" name="term_type" type="checkbox" value="feed" /><label for="term_type">Include posts that mention my page.</label></div>'),"Twitter"===this.source.source()&&(t+='<div id="feed_term_type"><input id="retweets" name="retweets" type="checkbox" value="retweets" /><label for="retweets">Include retweets</label><input id="replies" name="replies" type="checkbox" value="replies" /><label for="replies">Include @replies</label></div>')),"Hashtag"!==this.source.source()&&(t+='<input name="commit" type="submit" value="Create Source" />'),t+="</form>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_sources"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",_u.each(["Facebook","Twitter","Instagram","YouTube","GooglePlus","Tumblr","Pinterest","Blog","Vine","Soundcloud","LinkedIn","Flickr","Vimeo","Yelp","DeviantArt","Hashtag"],function(e){return function(n){return t+='<li class="',t+=e.escape(n.toLowerCase()),t+=' source" data-type="',t+=e.escape(n),t+='"><span>',t+=e.escape(n),t+="</span></li>"}}(this)),t})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_tumblr_embed"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="video-wrapper">',t+=this.video,t+="</div>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_twitter_embed"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="twitter-wrapper"><video autoplay="autoplay" controls="true" loop="true"><source src="',t+=this.escape(this.video),t+='" type="video/mp4" /></video></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_upgrade_plan"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<a class="button" href="/plans">Learn more about our other plans</a>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_vimeo_embed"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="video-wrapper"><iframe allowfullscreen="true" frameborder="0" mozallowfullscreen="true" src="//player.vimeo.com/video/',t+=this.escape(this.id),t+='?autoplay=1&amp;title=0&amp;byline=0&amp;portrait=0" webkitallowfullscreen="true"></iframe></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_vine_embed"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="vine-wrapper"><iframe frameborder="0" src="',t+=this.escape(this.id),t+='/card?audio=1"></iframe><script src="https://platform.vine.co/static/scripts/embed.js"></script></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_widget_card"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t,e;return t="",t+="<li",e="",e+=this.escape(this.post.classes()),e.length>0&&(t+=' class="',t+=e,t+='"'),t+=' data-id="',t+=this.escape(this.post.get("id")),t+='">',t+=Juicer.Helpers.renderPartial("actions",{post:this.post,admin:this.admin}),t+=Juicer.Helpers.renderPartial("feeds/user",{post:this.post,truncate:this.truncate}),t+="</li>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_width"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="width"><label for="width">Width</label><input class="width" max="5000" min="100" name="feed[width]" type="number" value="',t+=this.escape(this.feed.get("width")),t+='" /> px </div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/_youtube_embed"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="video-wrapper"><iframe allowfullscreen="true" frameborder="0" src="https://www.youtube.com/embed/',t+=this.escape(this.id),t+='?autoplay=1"></iframe></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/feeds/_classic"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t,e;return e="",e+='<div class="j-meta ',e+=this.escape(this.post.lowerType()),e+='"><nav>',e+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:"","class":""+this.post.lowerType()+" j-social"}),e+="</nav><ul>",this.post.noMeta()||(e+="<li>",e+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:this.post.get("comment_count"),"class":this.post.commentClass()}),e+="</li><li>",e+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:this.post.get("like_count"),"class":this.post.likeClass()}),e+="</li>"),e+='</ul></div><div class="j-text"><div class="j-message">',e+=this.truncate?Juicer.Helpers.truncate(this.post.message(),this.truncate,"<a href='"+this.post.link()+"'>...Read More</a>"):this.post.message(),"Juicer"!==this.post.sourceType()&&("hashtag"===this.post.termType()?(e+='<div class="info">Posted by <a href="',e+=this.escape(this.post.userLink()),e+='" target="_blank">',e+=this.escape(this.post.userId()),e+='</a> in <a href="',e+=this.escape(this.post.termLink()),e+='" target="_blank">',e+=this.escape(this.post.term()),e+="</a> on ",e+=this.escape(this.post.sourceType()),e+=" on ",e+=this.escape(Juicer.Helpers.fullDate(this.post.get("external_created_at"))),e+=" </div>"):"Blog"===this.post.sourceType()?(e+='<div class="info">Posted at <a href="http://',e+=this.escape(this.post.userLink()),e+='" target="_blank">',e+=this.escape(this.post.userLink()),e+="</a> on ",e+=this.escape(Juicer.Helpers.fullDate(this.post.get("external_created_at"))),e+=" </div>"):(e+='<div class="info">Posted by <a href="',e+=this.escape(this.post.userLink()),e+='" target="_blank">',e+=this.escape(this.post.userId()),e+="</a> on ",e+=this.escape(this.post.sourceType()),e+=" on ",e+=this.escape(Juicer.Helpers.fullDate(this.post.get("external_created_at"))),e+=" </div>")),e+="</div></div>",(t=this.post.get("image"))&&(e+='<a href="',e+=this.escape(this.post.link()),e+='" target="_blank"><img alt="',e+=this.escape(this.post.alt()),e+='" src="',e+=this.escape(t),e+='" /></a>'),e})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/feeds/_image"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+=Juicer.Helpers.renderPartial("content",{post:this.post,feed:this.feed}),t+='<div class="j-text">',t+=Juicer.Helpers.renderPartial("poster",{post:this.post,feed:this.feed}),t+=Juicer.Helpers.renderPartial("message",{post:this.post,truncate:this.truncate}),t+=Juicer.Helpers.renderPartial("meta",{post:this.post}),t+="</div>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/feeds/_standard"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+=Juicer.Helpers.renderPartial("content",{post:this.post,feed:this.feed}),t+='<div class="j-text">',t+=Juicer.Helpers.renderPartial("message",{post:this.post,truncate:this.truncate}),t+=Juicer.Helpers.renderPartial("meta",{post:this.post}),t+="</div>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/feeds/_user"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+=Juicer.Helpers.renderPartial("poster",{post:this.post,feed:this.feed}),t+=Juicer.Helpers.renderPartial("content",{post:this.post,feed:this.feed}),t+='<div class="j-text">',t+=Juicer.Helpers.renderPartial("message",{post:this.post,truncate:this.truncate}),t+=Juicer.Helpers.renderPartial("meta",{post:this.post}),t+="</div>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST["partials/feeds/_wall"]=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t,e;return t="",t+="<li",e="",e+=this.escape(this.post.classes()),e.length>0&&(t+=' class="',t+=e,t+='"'),t+=' data-id="',t+=this.escape(this.post.get("id")),t+='">',t+=Juicer.Helpers.renderPartial("actions",{post:this.post,admin:this.admin}),null!=this.post.get("image")?(t+='<img alt="',t+=this.escape(this.post.alt()),t+='" src="',t+=this.escape(this.post.get("image")),t+='" />'):(t+='<div class="j-icon ',t+=this.escape(this.post.lowerType()),t+='"></div>'),t+='<div class="j-text"></div></li>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.please_wait=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="continue-waiting"><h3>Please be patient.</h3><p>It can take up to 30 seconds to pull in all the posts.</p><p>Taking forever? <a href="/contact">Contact Us</a></p></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.post_edit=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="post-edit"><h2>Edit Post</h2>',t+=Juicer.Helpers.renderPartial("poster",{post:this.post}),t+='<div class="message-container">',t+=Juicer.Helpers.renderPartial("message",{post:this.post,truncate:500}),t+="</div>",this.feed.get("moderation_allowed?")?(t+='<form><textarea placeholder="Add text or links to the post">',t+=this.escape(this.post.get("edit")),t+='</textarea><input class="button" type="submit" value="Add content" /></form>'):t+='<h3>Only Paid accounts can edit posts. <a href="/plans">Upgrade your account.</a></h3>',t+="</div>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.post_overlay=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")
  12. }),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="post-overlay juicer-feed loaded">',this.post.isVideo()?t+=Juicer.Helpers.renderPartial(""+this.post.lowerType()+"_embed",{id:this.post.get("external_id"),video:this.post.get("video")}):(t+='<div class="image">',t+=Juicer.Helpers.renderPartial("content",{post:this.post,lazyLoad:!1}),t+="</div>"),t+='<div class="j-overlay-text ',t+=this.escape(this.post.postType()),t+='">',t+=Juicer.Helpers.renderPartial("poster",{post:this.post,lazyLoad:!1}),this.post.get("unformatted_message")&&(t+='<div class="j-message">',t+=this.post.message(),t+="</div>"),t+=Juicer.Helpers.renderPartial("edit",{post:this.post}),t+=Juicer.Helpers.renderPartial("meta",{post:this.post}),t+='<div class="j-bottom">',t+=Juicer.Helpers.renderPartial("link",{url:this.post.link(),label:"View on "+this.post.sourceType(),"class":"juicer-button "+this.post.lowerType()}),t+='<ul class="j-share"><li><a class="facebook share" href="',t+=this.escape(this.post.facebookShare()),t+='" target="_blank">Facebook</a></li><li><a class="twitter share" href="',t+=this.escape(this.post.twitterShare()),t+='" target="_blank">Twitter</a></li><li><a class="googleplus share" href="',t+=this.escape(this.post.googlePlusShare()),t+='" target="_blank">Google+</a></li><li><a class="pinterest share" href="',t+=this.escape(this.post.pinterestShare()),t+='" target="_blank">Pinterest</a></li><li><a class="linkedin share" href="',t+=this.escape(this.post.linkedInShare()),t+='" target="_blank">LinkedIn</a></li><li><a class="j-email share" href="',t+=this.escape(this.post.emailShare()),t+='">Email</a></li></ul></div><div class="j-navigate"><a class="j-previous" data-post-id="',t+=this.escape(this.previous.get("id")),t+='"><span>Previous</span></a><a class="j-next" data-post-id="',t+=this.escape(this.next.get("id")),t+='"><span>Next</span></a></div></div></div>'})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.sidebar=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+="<h1>",t+=this.escape(this.feed.get("name")),t+='</h1><ul class="menu"><li class="menu-item" id="sources">Social Media Sources</li><li class="menu-item" id="settings">Feed Settings</li><li class="menu-item" id="embed">Embed In Your Site</li><li class="menu-item ',t+=this.escape(this.feed.moderationClass()),t+='" id="moderate">Moderate and Filter</li><li class="menu-item" id="analytics">Analytics</li><li class="menu-item" id="hub">Share your Feed</li><li class="menu-item" id="synced">',t+=this.escape(Juicer.Helpers.fullDate(this.feed.get("last_synced"))),t+="</li>","small"===this.feed.get("plan")&&(t+='<li class="menu-item" id="features">Additional Features</li>'),t+="</ul>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.source_form=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t,e,n,i;return i="",i+='<div class="source-form">',this.feed.get("more_sources_allowed?")?(n=this.source.get("source"),e=n.toLowerCase(),this.source.needsLogin()&&!this.feed.socialAccount(e)?(i+="<h2>Please connect your ",i+=this.escape(n),i+=" account.</h2><p>We ask that you connect your ",i+=this.escape(n),i+=" account so that we don't run into API rate limits.</p><p>After you connect your account you will be able to add the posts of ANY public user or hashtags.</p><a class=\"button ",i+=this.escape(e),i+=' social-account" href="/auth/',i+=this.escape(e),i+='">Connect your ',i+=this.escape(n),i+=" account</a>"):(this.source.hashtags()&&(i+='<nav class="types"><ul>',_u.each(["Username","Hashtag"],function(t){return function(e){var n;return n=e.toLowerCase()===t.type?"active":"","Pinterest"===t.source.source()&&"Hashtag"===e?(i+='<li class="type ',i+=t.escape(n),i+='" data-type="',i+=t.escape(e.toLowerCase()),i+='">Board</li>'):(i+='<li class="type ',i+=t.escape(n),i+='" data-type="',i+=t.escape(e.toLowerCase()),i+='">',i+=t.escape(e),i+="</li>")}}(this)),this.source.location()&&(t="location"===this.type?"active":"",i+='<li class="type ',i+=this.escape(t),i+='" data-type="location">Location</li>'),"Facebook"===this.source.source()&&(t="personal"===this.type?"active":"",i+='<li class="type ',i+=this.escape(t),i+='" data-type="personal">Personal Account</li>'),i+="</ul></nav>"),i+=Juicer.Helpers.renderPartial("source_form_"+this.type,{source:this.source,csrf:this.csrf,feed:this.feed,type:this.type}),i+=Juicer.Helpers.renderPartial("source_form_help",{source:this.source}))):(i+='<h2>You need to upgrade to add more sources</h2><h3 style="margin-bottom:1.5rem">Unfortunately, the ',i+=this.escape(this.feed.get("plan")),i+=" plan only allows ",i+=this.escape(this.feed.get("max_sources")),i+=" sources.</h3>",i+=Juicer.Helpers.renderPartial("upgrade_plan",{feed:this.feed})),i+="</div>"})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.sources_index=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+=Juicer.Helpers.renderPartial("sources")})}}.call(this)}.call(this),function(){this.JST||(this.JST={}),this.JST.widget=function(){return this.Skim={access:function(t){var e;return e=this[t],"function"==typeof e&&(e=e.call(this)),e===!0?[this]:e===!1||null==e?!1:"[object Array]"!==Object.prototype.toString.call(e)?[e]:0===e.length?!1:e},withContext:function(t,e){var n,i;return n=function(t){var e;return e=function(){},e.prototype=t,new e},t=n(t),t.safe||(t.safe=this.safe||function(t){var e;return(null!=t?t.skimSafe:void 0)?t:(e=new String(null!=t?t:""),e.skimSafe=!0,e)}),t.isArray=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},t.flatten=i=function(t){var e,n,r,s;for(n=[],r=0,s=t.length;s>r;r++)e=t[r],e instanceof Array?n=n.concat(i(e)):n.push(e);return n},t.escape||(t.escape=this.escape||function(t){return null==t?"":t.skimSafe||!/[&<>\"]/.test(t)?t:this.safe(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),e.call(t)}},function(t){return null==t&&(t={}),Skim.withContext.call({},t,function(){var t;return t="",t+='<div class="flip-container"><div class="flipper"><div class="front">',t+=Juicer.Helpers.renderPartial("widget_card",{post:this.first,admin:this.admin,truncate:this.truncate}),t+='</div><div class="back">',t+=Juicer.Helpers.renderPartial("widget_card",{post:this.second,admin:this.admin,truncate:this.truncate}),t+="</div></div></div>"})}}.call(this)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Models.Account=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.urlRoot="/api/account",n.prototype.relations=[{type:JuicerBackbone.Many,key:"feeds",relatedModel:"Juicer.Models.Feed"},{type:JuicerBackbone.Many,key:"users",relatedModel:"Juicer.Models.User"}],n}(JuicerBackbone.AssociatedModel)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Models.Assignment=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.urlRoot="/api/assignments",n}(JuicerBackbone.Model)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Models.Click=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.urlRoot=function(){return""+Juicer.Constants.API_ROOT+"/api/clicks"},n}(JuicerBackbone.Model)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Models.Estimate=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.defaults={sources:5,frequency:3},n.prototype.frequencyInWords=function(){return this.frequencyMap[this.get("frequency")]},n.prototype.frequencyMap={1:"Day",2:"4 Hours",3:"1 Hour",4:"30 Minutes",5:"10 Minutes",6:"5 Minutes",7:"1 Minute"},n.prototype.frequencyMuliplier={1:2,2:3,3:4,4:7,5:10,6:20,7:100},n.prototype.price=function(){return this.get("sources")*this.frequencyCalculated()},n.prototype.frequencyCalculated=function(){return this.frequencyMuliplier[this.get("frequency")]},n.prototype.priceString=function(){return this.maxSources()?"$"+this.frequencyCalculated():"$"+this.price()},n.prototype.priceLabel=function(){return this.maxSources()?"Per Source per Month":"Cost per Month"},n.prototype.sources=function(){return this.maxSources()?"20+":this.get("sources")},n.prototype.maxSources=function(){return this.get("sources")>20},n}(JuicerBackbone.Model)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};Juicer.Models.Feed=function(e){function i(){return this.shouldIncludeStartingAt=t(this.shouldIncludeStartingAt,this),this.fetchNewPosts=t(this.fetchNewPosts,this),this.poll=t(this.poll,this),this.startPolling=t(this.startPolling,this),i.__super__.constructor.apply(this,arguments)}return n(i,e),i.prototype.idAttribute="slug",i.prototype.urlRoot=function(){return""+Juicer.Constants.API_ROOT+"/api/feeds"},i.prototype.parse=function(t,e){return null!=this.get("css")&&delete t.css,i.__super__.parse.call(this,t,e)},i.prototype.sync=function(t,e,n){return"read"!==t&&(n.url="/api/feeds/"+this.get("id")),i.__super__.sync.call(this,t,e,n)},i.prototype.defaults={slug:"error"},i.prototype.allowed=function(){return null!=this.get("allowed")?this.get("allowed"):""},i.prototype.disallowed=function(){return null!=this.get("disallowed")?this.get("disallowed"):""},i.prototype.moderation=function(){return!!this.get("allowed")||!!this.get("disallowed")||this.get("profanity")||this.get("queue")||this.get("prevent_duplicates")||this.geofence()},i.prototype.geofence=function(){return!!(this.get("distance")&&this.get("location")&&this.get("lat")&&this.get("lng"))},i.prototype.shopify=function(){return this.get("social_accounts").findWhere({provider:"shopify"})},i.prototype.moderationClass=function(){return this.moderation()?"moderating":void 0},i.prototype.widget=function(){return"widget"===this.get("css")},i.prototype.slider=function(){return"slider"===this.get("css")},i.prototype.livingWall=function(){return"living-wall"===this.get("css")},i.prototype.defaultHeight=function(){return this.widget()?400:null},i.prototype.defaultWidth=function(){return this.widget()?400:null},i.prototype.initialize=function(t){return this.per=t.per||100,this.page=t.page||1,this.filter=t.filter||null,this.starting_at=t.starting_at||null,this.ending_at=t.ending_at||null,this.search=t.search||null,this.once("sync",this.startPolling)},i.prototype.startPolling=function(){return this.shouldPoll()?(this.setFrom(),this.poll()):void 0},i.prototype.shouldPoll=function(){return this.notSmall()&&!!this.get("poll")&&this.isGrid()},i.prototype.poll=function(){return this.timeout=setTimeout(this.fetchNewPosts,this.pollInterval())},i.prototype.fetchNewPosts=function(){return this.polling=!0,this.fetch({remove:!1,success:function(t){return function(e,n){return n.posts.items.length>0&&(t.setFrom(),t.trigger("new-posts",n)),t.polling=!1,t.poll()}}(this)})},i.prototype.pollInterval=function(){return"medium"===this.get("plan")?6e5:6e4},i.prototype.setFrom=function(){return this.starting_at=this.get("requested_at")},i.prototype.fetch=function(t){return t=null!=t?_u.clone(t):{},t.data=null!=t.data?_u.extend(t.data,this.data()):this.data(),i.__super__.fetch.call(this,t)},i.prototype.data=function(){var t;return t={per:this.per},this.filter&&(t=_u.extend(t,{filter:this.filter})),this.shouldIncludeStartingAt()&&(t=_u.extend(t,{starting_at:this.starting_at})),this.ending_at&&(t=_u.extend(t,{ending_at:this.ending_at})),this.search&&(t=_u.extend(t,{search:this.search})),this.polling||(t=_u.extend(t,{page:this.page})),t},i.prototype.shouldIncludeStartingAt=function(){return this.shouldPoll()?!!this.starting_at&&!!this.polling:!!this.starting_at},i.prototype.nextPage=function(){return this.page+=1,this},i.prototype.previousPage=function(){return this.page-=1,this},i.prototype.resetPage=function(){return this.page=1,this},i.prototype.nextSync=function(){var t;switch(t=new Date(this.get("last_synced")),this.get("plan")){case"medium":t.setHours(t.getHours()+1);break;case"large":t.setMinutes(t.getMinutes()+10);break;case"custom":t.setMinutes(t.getMinutes()+this.get("update_frequency"));break;case"enterprise":t.setMinutes(t.getMinutes()+this.get("update_frequency"));break;default:t.setDate(t.getDate()+1)}return t},i.prototype.paid=function(){return _u.contains(Juicer.Constants.PAID_PLANS,this.get("plan"))},i.prototype.notSmall=function(){return"small"!==this.get("plan")},i.prototype.cssClass=function(){var t;return t=this.get("css")||"image-grid","widget"===t&&(t="juicer-widget"),t},i.prototype.isGrid=function(){return!_u.contains(["classic","dark","slider","widget","living-wall"],this.get("css"))},i.prototype.hasInterval=function(){return _u.contains(["widget","slider","living-wall"],this.get("css"))},i.prototype.hasHeight=function(){return this.get("height")},i.prototype.socialAccount=function(t){return this.get("social_accounts").findWhere({provider:t})},i.prototype.accountTypes=function(){var t;return t=_u.map(this.get("sources").models,function(t){return t.get("source")}),_u.uniq(t)},i.prototype.termsByType=function(t){var e;return e=this.get("sources").where({source:t}),_u.map(e,function(t){return t.get("term")})},i.prototype.fetchAll=function(){var t,e;return e=this.url()+"/fetch_all",t={url:e,type:"POST"},(this.sync||JuicerBackbone.sync).call(this,null,this,t)},i.prototype.partial=function(){var t;switch(t=this.get("css")||this.get("style")){case"user":return"user";case"slider":return"image";case"image-grid":return"image";case"hip":return"image";case"classic":return"classic";case"living-wall":return"wall";default:return"standard"}},i.prototype.uniqSources=function(){var t;return t=_u.map(this.get("sources").models,function(t){return""+t.typeSymbol()+t.displayTerm()}),_u.uniq(t)},i.prototype.relations=[{type:JuicerBackbone.Many,key:"posts",collectionType:"Juicer.Collections.Posts"},{type:JuicerBackbone.Many,key:"sources",relatedModel:"Juicer.Models.Source"},{type:JuicerBackbone.Many,key:"assignments",relatedModel:"Juicer.Models.Assignment"},{type:JuicerBackbone.Many,key:"social_accounts",relatedModel:"JuicerBackbone.Model"}],i}(JuicerBackbone.AssociatedModel)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Models.JuicerAd=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.defaults=function(){return{image:Juicer.Helpers.sample(this.images()),message:Juicer.Helpers.sample(this.messages()),poster_name:"Juicer",poster_image:"https://assets.juicer.io/small-square.png",poster_url:"https://www.juicer.io",external_created_at:new Date}},n.prototype.poster=function(){return!0},n.prototype.sourceType=function(){return"Juicer"},n.prototype.postType=function(){return"image-post"},n.prototype.edited=function(){return!1},n.prototype.editClass=function(){return""},n.prototype.userId=function(){return 1},n.prototype.lowerType=function(){return"juicer"},n.prototype.term=function(){return"juicer"},n.prototype.link=function(){return"http://www.juicer.io"},n.prototype.blogPost=function(){return!1},n.prototype.commentClass=function(){return""},n.prototype.likeClass=function(){return""},n.prototype.classes=function(){return"feed-item juicer image-post"},n.prototype.alt=function(){return"Embed Social Media Feeds on your website with Juicer!"},n.prototype.message=function(){return this.get("message")},n.prototype.messages=function(){return["Like this feed? Want one of your own? Visit <a href='https://www.juicer.io'>Juicer</a> to get your own free social media feed!","<a href='https://www.juicer.io'>Juicer</a> lets you easily create and embed social media feeds like this one on to your site for free!","Engage your users on social media with a <a href='https://www.juicer.io'>Juicer</a> feed on your website or blog for free.","This feed is Powered by <a href='https://www.juicer.io'>Juicer</a>"]},n.prototype.images=function(){return["https://31.media.tumblr.com/cb6e9eaf2d57a73a00670639d2e05014/tumblr_nb4zwme2591qzy7w4o1_500.gif","https://33.media.tumblr.com/e8fb7526cf83bb87b9a4601cb94f3df2/tumblr_nfjn6oxN701relaado1_400.gif","https://38.media.tumblr.com/6e31a8c6e0ce48eadd0c7bbd1c9382f3/tumblr_nevi801nPb1relaado1_400.gif","https://38.media.tumblr.com/c670653990d17e48c8ae80956d7431c1/tumblr_neaxhoZs5C1relaado1_r3_400.gif","https://38.media.tumblr.com/b5b2bb3e026068877c1efeba9c659339/tumblr_n8m4vabhxL1relaado1_r1_400.gif","https://38.media.tumblr.com/286f17801c42e4156774074d3beb1a0c/tumblr_nflp9bNq3j1shpedgo2_r1_500.gif","https://33.media.tumblr.com/a7638a455f9cf0f71b9b74b0ca6a1dc7/tumblr_nflimkJ44Y1shpedgo1_500.gif","https://38.media.tumblr.com/27840b884d65fa44ec174f14792abb42/tumblr_nf4uvv4GSI1shpedgo1_500.gif"]},n.prototype.noMeta=function(){return!0},n}(JuicerBackbone.Model)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Models.Location=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.urlRoot="/api/locations",n}(JuicerBackbone.Model)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Models.Moderated=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.url=function(){return"/api/feeds/"+this.slug+"/moderated"},n.prototype.initialize=function(t){return this.slug=t.slug,this.starting_at=t.starting_at},n}(Juicer.Models.Feed)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Models.PageView=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.urlRoot=function(){return""+Juicer.Constants.API_ROOT+"/api/page_views"},n}(JuicerBackbone.Model)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Models.Post=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.urlRoot="/api/posts",n.prototype.relations=[{type:JuicerBackbone.One,key:"source",relatedModel:"Juicer.Models.Source"}],n.prototype.restore=function(t){var e,n,i;return e=this,i=e.url()+"/restore",n={url:i,type:"POST"},_u.extend(n,t),(this.sync||JuicerBackbone.sync).call(this,null,this,n)},n.prototype.reject=function(t){var e,n,i;return e=this,i=e.url()+"/reject",n={url:i,type:"POST"},_u.extend(n,t),(this.sync||JuicerBackbone.sync).call(this,null,this,n)},n.prototype.stick=function(t){var e,n,i;return e=this,i=e.url()+"/stick",n={url:i,type:"POST"},_u.extend(n,t),(this.sync||JuicerBackbone.sync).call(this,null,this,n)},n.prototype.unstick=function(t){var e,n,i;return e=this,i=e.url()+"/unstick",n={url:i,type:"POST"},_u.extend(n,t),(this.sync||JuicerBackbone.sync).call(this,null,this,n)},n.prototype.stickied=function(){return!!this.get("position")},n.prototype.edited=function(){return!!this.get("edit")},n.prototype.editClass=function(){return this.edited()?"j-edited":""},n.prototype.stickyClass=function(){return this.stickied()?"j-sticky":""},n.prototype.classes=function(){return"feed-item "+this.lowerType()+" "+this.postType()+" "+this.term()+" "+this.editClass()+" "+this.stickyClass()},n.prototype.sourceType=function(){return this.get("source").source()},n.prototype.blogPost=function(){return"Blog"===this.sourceType()},n.prototype.postType=function(){return this.isVideo()?"j-video":this.get("image")?"image-post":"words"},n.prototype.isVideo=function(){return _u.contains(["youtube","vine","vimeo","soundcloud"],this.lowerType())||!!this.get("video")},n.prototype.termType=function(){return this.get("source").termType()},n.prototype.term=function(){return this.get("source").get("term")},n.prototype.userId=function(){return this.term()},n.prototype.lowerType=function(){return this.get("source").lowerSource()},n.prototype.likes=function(){return this.pluralize(this.get("like_count"),"like")},n.prototype.comments=function(){return this.pluralize(this.get("comment_count"),"comment")},n.prototype.poster=function(){return this.get("poster_name")||this.get("poster_image")},n.prototype.pluralize=function(t,e){return 1===t?""+t+" "+e:""+t+" "+_u.pluralize(e)},n.prototype.link=function(){switch(this.lowerType()){case"facebook":return"https://www.facebook.com/"+this.get("poster_id")+"/posts/"+this.get("external_id");case"twitter":return"https://twitter.com/"+this.get("poster_name")+"/status/"+this.get("external_id");case"instagram":return"http://instagram.com/p/"+this.get("external_id");case"youtube":return"https://www.youtube.com/watch?v="+this.get("external_id");case"googleplus":return""+this.get("poster_url")+"/posts/"+this.get("external_id");case"tumblr":return"http://"+this.get("poster_name")+".tumblr.com/post/"+this.get("external_id");case"pinterest":return"http://www.pinterest.com/pin/"+this.get("external_id");case"vimeo":return"https://vimeo.com/"+this.get("external_id");case"linkedin":return"https://www.linkedin.com/company/"+this.term();case"soundcloud":return this.get("description");default:return this.get("external_id")}},n.prototype.userLink=function(){switch(this.lowerType()){case"facebook":return"https://www.facebook.com/"+this.userId();case"twitter":return"https://twitter.com/"+this.userId();case"instagram":return"http://instagram.com/"+this.userId();case"youtube":return"https://www.youtube.com/user/"+this.userId();case"googleplus":return"https://plus.google.com/"+this.userId();case"tumblr":return"http://"+this.userId()+".tumblr.com";case"soundcloud":return"https://soundcloud.com/"+this.userId();case"pinterest":return"https://www.pinterest.com/"+this.userId();case"blog":return this.parseBlogUrl();default:return this.get("external_id")}},n.prototype.parseBlogUrl=function(){var t;return t=this.term().match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i),t&&t[1]?t[1]:void 0},n.prototype.termLink=function(){switch(this.lowerType()){case"twitter":return"https://twitter.com/hashtag/"+this.term();case"instagram":return this.link();case"tumblr":return"https://tumblr.com/tagged/"+this.term();case"vine":return"https://vine.co/tags/"+this.term();case"facebook":return"https://www.facebook.com/hashtag/"+this.term();case"youtube":return"https://www.youtube.com/results?search_query=%23"+this.term();case"tumblr":return"https://www.tumblr.com/search/"+this.term();case"googleplus":return"https://plus.google.com/s/%23"+this.term();default:return this.get("external_id")}},n.prototype.commentClass=function(){switch(this.lowerType()){case"twitter":return"retweets";case"pinterest":return"repins";default:return"comments"}},n.prototype.likeClass=function(){switch(this.lowerType()){case"twitter":return"heart";case"instagram":return"heart";case"tumblr":return"heart";case"youtube":return"views";default:return"likes"}},n.prototype.likeVerb=function(){switch(this.lowerType()){case"twitter":return"favorites";default:return"likes"}},n.prototype.alt=function(){return this.get("message")?this.get("message").replace(/<(?:.|\n)*?>/gm,""):"Photo from "+this.sourceType()},n.prototype.noMeta=function(){return _u.contains(["Blog","DeviantArt"],this.sourceType())},n.prototype.facebookShare=function(){var t;return t="https://www.facebook.com/dialog/feed?app_id="+Juicer.Constants.FACEBOOK_APP_ID+"&display=popup&link="+this.currentUrl()+"&redirect_uri="+Juicer.Constants.BASE_URL+"/close.html",this.status()&&(t+="&description="+this.status()),this.shouldHaveFacebookImage()&&(t+="&picture="+this.get("image")),t},n.prototype.twitterShare=function(){var t;return t="https://twitter.com/intent/tweet?text="+this.twitterStatus(),this.shouldIncludeLink()&&(t+="&url="+this.currentUrl()),t},n.prototype.googlePlusShare=function(){return"https://plus.google.com/share?url="+this.currentUrl()},n.prototype.pinterestShare=function(){return"https://pinterest.com/pin/create/button/?url="+this.currentUrl()+"&media="+this.encodedImage()+"&description="+this.status()},n.prototype.linkedInShare=function(){return"https://www.linkedin.com/shareArticle?url="+this.currentUrl()+"&title="+this.status()},n.prototype.emailShare=function(){var t,e;return e="Check out my "+this.sourceType()+" post!",t=this.status().length>3?[this.status(),this.currentUrl()].join(" - "):this.currentUrl(),"mailto:?subject="+e+"&body="+t},n.prototype.shouldHaveFacebookImage=function(){return"facebook"!==this.lowerType()&&!!this.get("image")},n.prototype.encodedImage=function(){return encodeURIComponent(this.get("image"))},n.prototype.message=function(){return this.blogPost()?"<strong class='j-title'>"+this.get("message")+"</strong>"+this.get("description"):this.get("message")},n.prototype.stripped=function(){return null!=this.get("unformatted_message")?this.get("unformatted_message").replace(/<(?:.|\n)*?>/gm," "):""},n.prototype.status=function(){return encodeURIComponent(this.stripped())},n.prototype.twitterStatus=function(){return this.stripped().length<=140?this.status():encodeURIComponent(this.stripped().substring(0,137)+"...")},n.prototype.shouldIncludeLink=function(){return(this.twitterStatus()+this.currentUrl).length<=140},n.prototype.currentUrl=function(){return window.location.href},n}(JuicerBackbone.AssociatedModel)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Models.Shopify=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.urlRoot="/api/shopify",n}(JuicerBackbone.Model)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Models.Source=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.urlRoot="/api/sources",n.prototype.toJSON=function(){return{source:_u.clone(this.attributes)}},n.prototype.source=function(){return this.get("source")},n.prototype.termType=function(){return this.get("term_type")},n.prototype.lowerSource=function(){return this.source().toLowerCase()},n.prototype.title=function(){switch(this.source()){case"Facebook":return"Add a Facebook Page";case"Twitter":return"Add a Twitter Account";case"Instagram":return"Add an Instagram Account";case"YouTube":return"Add a YouTube Channel";case"Tumblr":return"Add a Tumblr Blog";case"GooglePlus":return"Add a Google+ Page";case"Blog":return"Add an RSS feed";case"Vine":return"Add a Vine Account";case"Soundcloud":return"Add a Soundcloud Account";case"LinkedIn":return"Add a LinkedIn Company";case"Flickr":return"Add Flickr Users' Photos";case"Pinterest":return"Add a Pinterest Users' Pins";case"Vimeo":return"Add a Vimeo Users' Videos";case"Yelp":return"Add a Yelp Businesses' Reviews";case"DeviantArt":return"Add a DeviantArt Users' Gallery";case"Hashtag":return"Choose a type of Hashtag"}},n.prototype.label=function(){switch(this.source()){case"Facebook":return"https://www.facebook.com/";case"Twitter":return"https://www.twitter.com/";case"Instagram":return"https://www.instagram.com/";case"YouTube":return"https://www.youtube.com/user/";case"GooglePlus":return"https://plus.google.com/";case"Blog":return"RSS Feed URL: ";case"Vine":return"https://vine.co/u/";case"Soundcloud":return"https://soundcloud.com/";case"LinkedIn":return"https://www.linkedin.com/company/";case"Flickr":return"https://www.flickr.com/photos/";case"Pinterest":return"https://www.pinterest.com/";case"Vimeo":return"http://vimeo.com/";case"Yelp":return"http://www.yelp.com/biz/"}},n.prototype.placeholder=function(){switch(this.source()){case"Facebook":return"Facebook Page Vanity URL";case"Twitter":return"Twitter Username";case"Instagram":return"Instagram Username";case"YouTube":return"YouTube Username or Channel ID";case"Tumblr":return"Tumblr Username";case"GooglePlus":return"Google+ Username or User ID Number";case"Blog":return"RSS or Atom or FeedBurner URL";case"Vine":return"Vine Username or User ID Number";case"Soundcloud":return"Soundcloud Username";case"LinkedIn":return"LinkedIn Company ID Number";case"Flickr":return"Flickr Username";case"Pinterest":return"Pinterest Username";case"Vimeo":return"Vimeo Username";case"Yelp":return"Business Name URL";case"DeviantArt":return"DeviantArt User URL"}},n.prototype.typeSymbol=function(){return"hashtag"===this.get("term_type")?"#":"location"===this.get("term_type")?"\u25c9":"@"},n.prototype.displayTerm=function(){var t;return"location"===this.get("term_type")&&(t=this.get("options")),t||(t=this.get("term")),Juicer.Helpers.truncate(t,30)
  13. },n.prototype.hashtags=function(){return _u.contains(this.hashtagSupporters,this.source())},n.prototype.needsLogin=function(){return _u.contains(this.requiresLogin,this.source())},n.prototype.manual=function(){return _u.contains(this.canAddManual,this.source())},n.prototype.location=function(){return _u.contains(this.hasLocation,this.source())},n.prototype.hashtagSupporters=["Facebook","Twitter","Instagram","YouTube","Tumblr","Vine","Pinterest","GooglePlus"],n.prototype.requiresLogin=["Twitter","Instagram","LinkedIn"],n.prototype.canAddManual=["Facebook","Instagram","Twitter","YouTube","Tumblr","Vimeo","Soundcloud"],n.prototype.hasLocation=["Instagram","Twitter"],n.prototype.helpLink=function(){switch(this.source()){case"Facebook":return"http://www.screencast.com/t/J0ZsGxzVrz";case"Twitter":return"http://www.screencast.com/t/zAqaAVSa8fU";case"Instagram":return"http://www.screencast.com/t/sHWRDyHSq"}},n}(JuicerBackbone.AssociatedModel)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Models.User=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.relations=[{type:JuicerBackbone.Many,key:"feeds",relatedModel:"Juicer.Models.Feed"}],n}(JuicerBackbone.AssociatedModel)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Models.FeedValidation=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.validation={name:{required:!0}},n}(JuicerBackbone.Model)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Models.UserValidation=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.validation={email:{required:!0,pattern:"email"},password:{required:!0,minLength:8}},n}(JuicerBackbone.Model)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Collections.Posts=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.paginatingAttributes=["current_page","limit_value"],n.prototype.model=Juicer.Models.Post,n.prototype.parse=function(t){return _u.each(this.paginatingAttributes,function(e){return function(n){return e[n]=t[n]}}(this)),n.__super__.parse.call(this,t.items)},n}(JuicerBackbone.Collection)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Collections.Users=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=Juicer.Models.User,n.prototype.url="/api/users",n}(JuicerBackbone.Collection)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.BlogShow=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.el=window,n.prototype.initialize=function(){return this.loaded=!1,this.triggerPoint=$("#disqus_thread").offset().top},n.prototype.events=function(){return{scroll:"lazyLoadDisqus"}},n.prototype.lazyLoadDisqus=_u.debounce(function(){return this.checkScroll()},300),n.prototype.checkScroll=function(){return this.scrollPoint()>this.triggerPoint&&!this.loaded?this.loadDisqus():void 0},n.prototype.loadDisqus=function(){var t,e;return this.loaded=!0,t="juicerio",e=document.createElement("script"),e.type="text/javascript",e.async=!0,e.src="//"+t+".disqus.com/embed.js",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(e)},n.prototype.scrollPoint=function(){return this.$el.scrollTop()+this.$el.height()},n}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};Juicer.Views.CreditCard=function(e){function i(){return this.addTokenToForm=t(this.addTokenToForm,this),i.__super__.constructor.apply(this,arguments)}return n(i,e),i.prototype.initialize=function(){return Stripe.setPublishableKey(this.$el.data("stripe-key")),this.$("input").placeholder(),this.$el.card({container:".card-container",expiryInput:"input#expiration",cvcInput:"input#ccv"})},i.prototype.events=function(){return{submit:"getCardToken"}},i.prototype.getCardToken=function(t){return t.preventDefault(),Stripe.createToken(this.card(),this.addTokenToForm)},i.prototype.addTokenToForm=function(t,e){var n;return this.$(".errors").remove(),200===t?(this.$("#stripe_token").val(e.id),_u.each(this.$("input[type=text]"),function(t){return function(e){return t.obfuscate(e)}}(this)),this.$el[0].submit()):(n="<ul class='errors'><li>"+e.error.message+"</li></ul>",this.$el.prepend(n))},i.prototype.obfuscate=function(t){var e;return e=Array($(t).val().length).join("*"),$(t).val(e)},i.prototype.card=function(){return{number:this.$("#number").val(),name:this.$("#name").val(),cvc:this.$("#ccv").val(),expMonth:this.splitExpiration(0),expYear:this.splitExpiration(1)}},i.prototype.splitExpiration=function(t){return this.$("#expiration").val().split("/")[t].replace(/\s+/g,"")},i}(JuicerBackbone.View)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.Account=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.template=JST["enterprise/account"],n.prototype.inviteAdminForm=JST["enterprise/invite_admin"],n.prototype.initialize=function(){return this.model=new Juicer.Models.Account,this.model.fetch({success:function(t){return function(){return t.render()}}(this),error:function(){return alert("uh oh something went wrong")}})},n.prototype.render=function(){return this.$el.html(this.template({model:this.model})),new Juicer.Views.AccountFeeds({el:"ul.feeds",model:this.model}).render(),new Juicer.Views.AccountUsers({el:"ul.admins",model:this.model}).render()},n.prototype.events={"click a.new-admin":"openNewAdminOverlay"},n.prototype.openNewAdminOverlay=function(t){var e;return t.preventDefault(),this.csrf=$('meta[name="csrf-token"]').attr("content"),e=new Juicer.Views.Overlay({content:this.inviteAdminForm({model:this.model,csrf:this.csrf}),width:"50%"}),e.render()},n}(JuicerBackbone.View),Juicer.Views.AccountFeeds=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.render=function(){var t;return t=[],_u.each(this.model.get("feeds").models,function(e){return function(n){return t.push(new Juicer.Views.AccountFeed({model:n,account:e.model}).render())}}(this)),this.$el.html(t)},n}(JuicerBackbone.View),Juicer.Views.AccountFeed=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.template=JST["enterprise/account_feed"],n.prototype.createAssignmentForm=JST["enterprise/create_assignment_form"],n.prototype.tagName="li",n.prototype.initialize=function(t){return this.account=t.account},n.prototype.render=function(){return this.$el.html(this.template({model:this.model,assignments:this.model.get("assignments").models,sources:this.model.get("sources").models,account:this.account})),this.el},n.prototype.events={"click a.delete":"deleteAssignment","click .new":"createAssignment","click .fetch_all":"fetchAllPosts"},n.prototype.deleteAssignment=function(t){var e,n;return t.preventDefault(),n=$(t.target).parents("li.assignment"),Juicer.Helpers.confirm("Are you sure you want to remote this user from this feed?")?(e=new Juicer.Models.Assignment({id:$(t.target).data("id")}),e.destroy({success:function(){return function(){return n.remove()}}(this),error:function(){return alert("Something went wrong!")}})):void 0},n.prototype.createAssignment=function(){var t;return this.csrf=$('meta[name="csrf-token"]').attr("content"),t=new Juicer.Views.Overlay({content:this.createAssignmentForm({model:this.model,csrf:this.csrf}),width:"50%"}),t.render()},n.prototype.fetchAllPosts=function(t){return Juicer.Helpers.confirm("Fetching all posts for this feed can take 10+ minutes. Please be patient and check back later.")?(t.preventDefault(),this.model.fetchAll(),$(t.target).replaceWith("Fetching all posts.")):!1},n}(JuicerBackbone.View),Juicer.Views.AccountUsers=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.render=function(){var t;return t=[],_u.each(this.model.get("users").models,function(){return function(e){return t.push(new Juicer.Views.AccountUser({model:e}).render())}}(this)),this.$el.html(t)},n}(JuicerBackbone.View),Juicer.Views.AccountUser=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.template=JST["enterprise/account_user"],n.prototype.tagName="li",n.prototype.render=function(){return this.$el.html(this.template({model:this.model}))},n}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};Juicer.Views.Calculator=function(e){function i(){return this.render=t(this.render,this),i.__super__.constructor.apply(this,arguments)}return n(i,e),i.prototype.template=JST["enterprise/calculator"],i.prototype.initialize=function(){return this.model=new Juicer.Models.Estimate,this.model.on("change",this.render),this.render()},i.prototype.render=function(){return this.$el.html(this.template({model:this.model}))},i.prototype.events={"change input":"updateModel"},i.prototype.updateModel=function(t){var e;return e=$(t.target),this.model.set(e.data("attribute"),e.val())},i}(JuicerBackbone.View)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.Errors=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.template=JST.errors,n.prototype.initialize=function(t){return this.errors=$.parseJSON(t.errors.responseText).errors,this.$(".errors, .j-loading").remove(),this.$("input[type=submit]").show(),this.$el.prepend(this.template({errors:this.errors}))},n}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};Juicer.Views.Feed=function(e){function i(){return this.prependNewPosts=t(this.prependNewPosts,this),i.__super__.constructor.apply(this,arguments)}return n(i,e),i.prototype.template=JST.feed,i.prototype.referral=JST["partials/_referral"],i.prototype.loading=JST["partials/_loading"],i.prototype.youTubeEmbed=JST["partials/_youtube_embed"],i.prototype.vineEmbed=JST["partials/_vine_embed"],i.prototype.vimeoEmbed=JST["partials/_vimeo_embed"],i.prototype.instagramEmbed=JST["partials/_instagram_embed"],i.prototype.twitterEmbed=JST["partials/_twitter_embed"],i.prototype.facebookEmbed=JST["partials/_facebook_embed"],i.prototype.tumblrEmbed=JST["partials/_tumblr_embed"],i.prototype.soundcloudEmbed=JST["partials/_soundcloud_embed"],i.prototype.initialize=function(t){return this.router=t.router,this.overlayId=t.overlayId,this.showLoader(),this.gutter=this.$el.data("gutter"),this.feedId=this.$el.data("feed-id"),this.per=this.$el.data("per")||100,this.page=this.$el.data("page")||1,this.pages=this.$el.data("pages"),this.columns=this.$el.data("columns"),this.interval=this.$el.data("interval"),this.filter=this.$el.data("filter"),this.starting_at=this.$el.data("starting-at"),this.ending_at=this.$el.data("ending-at"),this.search=this.$el.data("search"),this.truncate=this.$el.data("truncate"),this.equal=this.$el.data("equal"),this.model=t.model||new Juicer.Models.Feed({slug:this.feedId,per:this.per,filter:this.filter,starting_at:this.starting_at,ending_at:this.ending_at,search:this.search,page:this.page,css:this.$el.data("style")}),this.admin=t.admin||!1,this.after=this.$el.data("after"),this.model.on("new-posts",this.prependNewPosts),this.model.on("showLoader",function(t){return function(){return t.showLoader(!0)}}(this))},i.prototype.events=function(){return{"click li.feed-item":"triggerEvent","click ul.j-filters li":"filterFeed","click .j-paginate":"appendNextPage"}},i.prototype.render=function(){return null!=this.model.get("posts")?this.renderFeed():this.model.fetch({success:function(t){return function(){return t.renderFeed()}}(this),error:function(){return function(){return console.log("Juicer Problem")}}(this)}),this},i.prototype.renderFeed=function(){return this.hideLoader(),this.admin||this.model.paid()||this.addJuicerPosts(),this.setDimensions(),this.interval||(this.interval=this.model.get("interval")),null==this.columns&&(this.columns=this.model.get("columns")),this.model.widget()?this.renderWidget():this.model.slider()?this.renderSlider():this.model.livingWall()?this.renderLivingWall():this.renderFeedList(),this.setClass(),this.determineBrowser(),this.$el.addClass("loaded"),this.onJuicerDomain()||this.trackPageView(),this.overlayId&&this.openOverlay({id:this.overlayId}),this.runAfter("load"),this},i.prototype.determineBrowser=function(){var t;return t=navigator.userAgent.match(/MSIE|Trident/)?"j-ie":"j-modern",this.$el.addClass(t)},i.prototype.runAfter=function(t){return null==t&&(t="load"),this.afterFunction=new Function("event",this.after),this.afterFunction(t)},i.prototype.showLoader=function(t){return null==t&&(t=!1),this.$el.append(this.loading({container:t}))},i.prototype.hideLoader=function(){return this.$(".j-loading-container, .j-loading").remove()},i.prototype.renderWidget=function(){return this.widget=new Juicer.Views.Widget(this.feedOptions())},i.prototype.renderSlider=function(){return this.handleReferral(),this.slider=new Juicer.Views.Slider(this.feedOptions()).render()},i.prototype.renderLivingWall=function(){return this.livingWall=new Juicer.Views.LivingWall(this.feedOptions()).render()},i.prototype.feedOptions=function(){return{el:this.el,model:this.model,admin:this.admin,interval:this.interval,truncate:this.truncate,columns:this.columns,gutter:this.gutter,equal:this.equal}},i.prototype.renderFeedList=function(){return this.$el.append(this.template({feed:this.model,admin:this.admin,truncate:this.truncate})),this.handleReferral(),this.infiniteScroll=new Juicer.Views.InfiniteScroll({container:this.$el,model:this.model,admin:this.admin,pages:this.pages,template:JST.infinite_scroll}),this.model.isGrid()&&this.setupGrid(),this.infiniteScroll.on("paginate",function(t){return function(){return t.runAfter("paginate")}}(this))},i.prototype.prependNewPosts=function(t){var e,n,i,r;return n=t.posts.items.length,n>0?(i=new Juicer.Models.Feed(t,{parse:!0}),e=JuicerBackbone.$.parseHTML(this.template({feed:i,admin:this.admin})),this.$el.gridalicious("prepend",e),r=n/this.$(".galcolumn").length,r=Math.floor(r),_u.each(this.$(".galcolumn"),function(){return function(t){return 0!==r?jQuery(t).find(".feed-item").slice(-r).remove():void 0}}(this))):void 0},i.prototype.setDimensions=function(){return this.$el.removeAttr("style"),this.dimensions["max-width"]=this.$el.data("width")||this.model.get("width")||this.model.defaultHeight(),this.dimensions["max-height"]=this.$el.data("height")||this.model.get("height")||this.model.defaultWidth(),this.model.slider()?void 0:this.$el.css(this.dimensions)},i.prototype.dimensions={"max-width":null,"max-height":null},i.prototype.addJuicerPosts=function(){var t;return t=Math.floor(this.model.get("posts").length/10),_u(t).times(function(t){return function(e){var n,i;return n=10*(e+1),i=new Juicer.Models.JuicerAd,t.model.get("posts").add(i,{at:n})}}(this))},i.prototype.setupGrid=function(){var t,e;return t=this.noGutter()?0:20,null==this.gutter&&(this.gutter=t),e=Math.floor(this.$el.outerWidth()/this.columns),200>e&&(e=200),this.$el.gridalicious({animate:!0,selector:".feed-item",width:e,gutter:this.gutter,columns:this.columns,animationOptions:{queue:!0,speed:100,duration:300,complete:function(t){return function(){return null==t.infiniteScroll?!0:t.infiniteScroll.shouldShowLoadMore()?void 0:t.infiniteScroll.removeLoadMore()}}(this)}}),this.model.get("lazy_load")?new Juicer.Views.LazyLoad({model:this.model,view:this}):void 0},i.prototype.noGutter=function(){return _u.contains(["image-grid","hip"],this.model.cssClass())},i.prototype.appendNextPage=function(){return this.$(".j-paginate").replaceWith(this.loading()),this.infiniteScroll.nextPage()},i.prototype.setClass=function(){return this.$el.removeClass(Juicer.Constants.FEED_CLASSES.join(" ")),this.$el.removeClass("photos-only"),this.$el.removeClass("juicer-widget"),this.$el.removeClass("gridalicious"),this.$el.removeClass("slick-initialized slick-slider"),this.$el.removeClass("modern ie"),this.$el.addClass(this.model.cssClass()),this.model.get("photos")?this.$el.addClass("photos-only"):void 0},i.prototype.handleReferral=function(){return this.model.paid()||this.admin||this.$el.find("h1.referral").length>0||this.$el.prepend(this.referral()),this.model.paid()&&this.$el.find("h1.referral").remove(),this.$el.find("a[href*='www.juicer.io']").attr("href","https://www.juicer.io?referrer="+this.model.get("slug"))},i.prototype.trackPageView=function(){var t;return t=new Juicer.Models.PageView({feed_id:this.model.get("id"),url:this.currentUrl()}),t.save()},i.prototype.onJuicerDomain=function(){return _u.contains(["www.juicer.io"],window.location.host)},i.prototype.currentUrl=function(){return document.URL},i.prototype.triggerEvent=function(t){var e;return e=jQuery(t.target),this.onJuicerDomain()||this.trackClick(e),e.hasClass("delete")?(t.preventDefault(),this.deletePost(e)):e.hasClass("sticky")?(t.preventDefault(),this.makeSticky(e)):e.hasClass("unstick")?(t.preventDefault(),this.unStick(e)):e.hasClass("edit")?new Juicer.Views.PostEdit({id:e.parents("ul.actions").data("id"),model:this.model}).render():e.hasClass("j-image")&&e.parents("li.j-video").length>0&&jQuery(window).innerWidth()>1e3?(t.preventDefault(),this.playVideo(e,e.parents("li.j-video"))):this.model.get("overlay")&&!e.hasClass(".feed-item.juicer")&&!e.parents(".feed-item.juicer").length>0?(t.preventDefault(),this.openOverlay({target:e})):void 0},i.prototype.trackClick=function(t){var e;return t=t.is("li.feed-item")?t:t.parents("li.feed-item"),e=new Juicer.Models.Click({feed_id:this.model.get("id"),post_id:t.data("id")}),e.save()},i.prototype.openOverlay=function(t){return new Juicer.Views.PostOverlay({target:t.target,id:t.id,router:this.router,model:this.model}).render(),this.runAfter("overlay")},i.prototype.deletePost=function(t){var e;return Juicer.Helpers.confirm("Are you sure you want to delete this post?")?(t=t.parents("ul.actions"),e=new Juicer.Models.Post({id:t.data("id")}),t.parents(".feed-item").remove(),e.destroy({error:function(){return alert("Something went wrong.")}})):!1},i.prototype.makeSticky=function(t){var e;return Juicer.Helpers.confirm("Are you sure you want to make this post sticky?")?(t=t.parents("ul.actions"),e=new Juicer.Models.Post({id:t.data("id")}),e.stick({success:function(t){return function(e){return t.model.set(e,{parse:!0}),t.model.trigger("action")}}(this),error:function(){return alert("Something went wrong.")}})):!1},i.prototype.unStick=function(t){var e;return Juicer.Helpers.confirm("Are you sure you want to un-stick this post?")?(t=t.parents("ul.actions"),e=new Juicer.Models.Post({id:t.data("id")}),e.unstick({success:function(t){return function(e){return t.model.set(e,{parse:!0}),t.model.trigger("action")}}(this),error:function(){return alert("Something went wrong.")}})):!1},i.prototype.playVideo=function(t,e){if(t=t.is("a.j-image")?t:t.parents("a.j-image"),t.hasClass("playing")){if(t.removeClass("playing"),t.html("<img src='"+t.data("image")+"' style='width:100%;display:block;' />"),null!=this.slider)return this.$el.slick("slickPlay")}else if(t.addClass("playing"),t.html(this.embedVideo(t.data("external-id"),e,t.data("video-url"))),null!=this.slider)return this.$el.slick("slickPause")},i.prototype.embedVideo=function(t,e,n){var i,r;return null==n&&(n=null),e.hasClass("youtube")?this.youTubeEmbed({id:t}):e.hasClass("vine")?this.vineEmbed({id:t}):e.hasClass("vimeo")?this.vimeoEmbed({id:t}):e.hasClass("instagram")?this.instagramEmbed({video:n}):e.hasClass("twitter")?this.twitterEmbed({video:n}):e.hasClass("facebook")?this.facebookEmbed({video:n}):e.hasClass("soundcloud")?this.soundcloudEmbed({id:t}):e.hasClass("tumblr")?(i=jQuery(jQuery.parseHTML(n)),i.attr("src")&&(r=i.attr("src")+"&autoplay=1",i.attr("src",r)),i.attr("autoplay","autoplay"),this.tumblrEmbed({video:i[0].outerHTML})):void 0},i.prototype.filterFeed=function(t){var e,n,i;return t.preventDefault(),n=jQuery(t.target),e=n.attr("data-filter"),i=n.attr("class"),this.model.filter=n.data("filter"),this.model.resetPage(),this.model.fetch({success:function(t){return function(){return t.$el.empty(),t.infiniteScroll&&t.infiniteScroll.close(),t.render(),t.delegateEvents(),jQuery("ul.j-filters li.selected").removeClass("selected"),jQuery("ul.j-filters li."+i+"[data-filter='"+e+"']").addClass("selected")}}(this)})},i.prototype.close=function(){return null!=this.widget&&this.widget.close(),null!=this.livingWall&&this.livingWall.close(),null!=this.infiniteScroll&&this.infiniteScroll.close(),this.$el.empty().off(),this.stopListening(),this.model.off("new-posts"),this},i}(JuicerBackbone.View)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.Analytics=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.template=JST["feeds/analytics"],n.prototype.overlay=JST["feeds/analytics_overlay"],n.prototype.events={"click .launch":"openAnalyticsOverlay"},n.prototype.openAnalyticsOverlay=function(t){return t.preventDefault(),this.feed.get("analytics_allowed?")?window.location="/feeds/"+this.feed.get("slug")+"/analytics":new Juicer.Views.Overlay({content:this.overlay({feed:this.feed}),element:this.el}).render()},n}(Juicer.Views.SubView)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.Embed=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.embed=JST["feeds/embed_code"],n.prototype.template=JST["feeds/embed"],n.prototype.wordpress=JST["feeds/wordpress"],n.prototype.iframe=JST["feeds/iframe"],n.prototype.events={"click .wordpress":"showWordPress","click .shopify":"showShopify","click .iframe":"showIframe"},n.prototype.render=function(){var t;return t=this.embed({feed:this.feed,javascript:this.javascriptPath(),stylesheet:this.stylesheetPath()}),t=t.replace(/<br \/>/g,"\n"),this.$el.css({display:"none"}),this.$el.html(this.template({embed:t,feed:this.feed})),$(this.target).after(this.$el),$(this.target).addClass("selected").after(this.$el),this.$el.slideDown()},n.prototype.javascriptPath=function(){return this.assetPath("embed.js")},n.prototype.stylesheetPath=function(){return this.assetPath("embed.css")},n.prototype.assetPath=function(t){return""+Juicer.Constants.ASSET_PATH+"/"+t},n.prototype.showWordPress=function(t){return t.preventDefault(),this.$el.html(this.wordpress({feed:this.feed}))},n.prototype.showIframe=function(t){var e,n,i;return t.preventDefault(),e=this.feed.get("height")||1e3,i=this.feed.get("width")||1e3,n="<iframe src='https://www.juicer.io/api/feeds/"+this.feed.get("slug")+"/iframe' frameborder='0' width='"+i+"' height='"+e+"'></iframe>",this.$el.html(this.iframe({iframe:n}))},n.prototype.showShopify=function(t){var e;return t.preventDefault(),e=new Juicer.Views.Shopify({el:this.el,feed:this.feed}),null!=this.feed.shopify()?e.render():e.renderForm()},n}(Juicer.Views.SubView)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.Features=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.template=JST["feeds/features"],n}(Juicer.Views.SubView)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.Hub=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.template=JST["feeds/hub"],n}(Juicer.Views.SubView)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.Moderate=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.template=JST["feeds/moderate"],n.prototype.render=function(){return n.__super__.render.apply(this,arguments),new Juicer.Views.GooglePlaces({el:this.el})},n.prototype.events={"submit form.filters":"updateFilters","click a.trashed":"viewModeratedPosts","click a.normal":"close","click a.apply":"applyFilters"},n.prototype.viewModeratedPosts=function(t){return t.preventDefault(),this.moderated=new Juicer.Models.Moderated({slug:this.feed.get("slug")}),$(window).unbind("scroll"),$(t.target).replaceWith("<a class='normal' href='#'>View Public Posts</a>"),this.moderated.fetch({success:function(t){return function(){return t.feedView.close(),new Juicer.Views.Moderated({el:"ul.juicer-feed",model:t.moderated}).render()}}(this),error:function(){return alert("Something went wrong pulling in your moderated posts.")}})},n.prototype.updateFilters=function(t){var e;return t.preventDefault(),e=$(t.target),this.feed.set(e.serializeHash().feed),this.feed.save(null,{success:function(){return function(){return e.after("<div class='confirmation' style='padding: 1rem 0 0;'>Filter settings saved! <a class='apply' href='#'>Apply settings to existing posts.</a></div>")}}(this),error:function(){return alert("Something went wrong!")}})},n.prototype.applyFilters=function(t){var e;return t.preventDefault(),Juicer.Helpers.confirm("Are you sure you want to apply these filters? It will reset all the posts in your moderation queue. Not recommended if your feed is already live on your site.")?(e=$(t.target).parents("div.confirmation"),e.html("Please wait."),this.feed.set("apply",!0),this.feed.save(null,{success:function(t){return function(){return e.html("Applying filters. Please wait a few moments then refresh."),t.feed.trigger("action")}}(this),error:function(){return alert("Something went wrong applying your filters! Please refresh.")}})):!1},n.prototype.close=function(t){return null==t&&(t=null),null!=t&&t.preventDefault(),$("li.selected").removeClass("selected"),n.__super__.close.apply(this,arguments),null!=this.moderated?this.feed.fetch({success:function(t){return function(){return t.feed.trigger("action")}}(this)}):void 0},n}(Juicer.Views.SubView)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};Juicer.Views.Settings=function(e){function i(){return this.reRender=t(this.reRender,this),i.__super__.constructor.apply(this,arguments)}return n(i,e),i.prototype.template=JST["feeds/settings"],i.prototype.events={"input input.columns":"updateColumns","input input.interval":"updateInterval","input input.width":"updateDimensions","input input.height":"updateDimensions","change input[type=checkbox]":"updateCheckbox","change .css":"updateStyle","change .order":"updateOrder","change .filter_setting":"updateFilter","click .cache":"clearCache"},i.prototype.render=function(){return i.__super__.render.apply(this,arguments),this.feed.hasInterval()&&this.showInterval(),this.feed.hasInterval()||this.showFilter(),this.feed.on("change:css",this.reRender)},i.prototype.renderTemplate=function(){return this.$el.html(this.template({feed:this.feed,checkboxes:this.checkboxes}))},i.prototype.reRender=function(){return this.$el.html(this.template({feed:this.feed,checkboxes:this.checkboxes})),this.feed.hasInterval()&&this.showInterval(),this.feed.hasInterval()?void 0:this.showFilter()},i.prototype.showInterval=function(){return this.$(".interval").show()},i.prototype.showFilter=function(){return this.$(".filter_setting").show()},i.prototype.checkboxes=[{attr:"photos",label:"Only show posts with images"},{attr:"lazy_load",label:"Lazy-load images"},{attr:"overlay",label:"Open overlay on post click"},{attr:"infinite_scroll",label:"Infinite Scroll"},{attr:"poll",label:"Auto-Refresh for Live Events"}],i.prototype.updateColumns=function(t){var e,n;return e=$(t.target).val(),0<(n=e.length)&&2>n?(this.feed.set("columns",e),this.saveAndRender()):void 0},i.prototype.updateInterval=function(t){var e,n;return e=$(t.target).val(),3<(n=e.length)&&10>n?(this.feed.set("interval",e),this.saveAndRender()):void 0},i.prototype.updateDimensions=function(t){var e,n,i,r;return n=$(t.target),i=n.val(),e=n.attr("class"),2<(r=i.length)&&5>r&&i>99&&5001>i||""===i?(this.feed.set(e,i),this.saveAndRender()):void 0},i.prototype.updateCheckbox=function(t){var e;return e=$(t.target),this.feed.set(e.data("attribute"),e.is(":checked")),this.saveAndRender()},i.prototype.updateStyle=function(t){return this.feed.set("css",$(t.target).val()),this.saveAndRender()},i.prototype.updateOrder=function(t){return this.feed.set("order",$(t.target).val()),this.saveAndRender()},i.prototype.updateFilter=function(t){return this.feed.set("display_filter",$(t.target).val()),this.saveAndRender()},i.prototype.clearCache=function(t){return t.preventDefault(),this.feed.set("updated_at",new Date),this.saveAndRender(),alert("The cache for "+this.feed.get("name")+" has been cleared!")},i.prototype.saveAndRender=function(){return this.feed.trigger("showLoader"),this.feed.save(null,{success:function(t){return function(){return t.feed.trigger("action")}}(this)})},i}(Juicer.Views.SubView)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.Shopify=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.template=JST["feeds/shopify"],n.prototype.form=JST["feeds/shopify_form"],n.prototype.initialize=function(t){return this.feed=t.feed},n.prototype.render=function(){return this.initOverlay(this.template({uid:this.feed.shopify().get("uid"),feed:this.feed})),this.overlay.render()},n.prototype.renderForm=function(){return this.initOverlay(this.form()),this.overlay.render()},n.prototype.events={"submit form#add_page":"createShopify","submit form#connect":"connectShopify"},n.prototype.initOverlay=function(t){return this.overlay=new Juicer.Views.Overlay({content:t,element:this.el,width:"50%"})},n.prototype.createShopify=function(t){var e;return t.preventDefault(),e=$(t.target),this.model=new Juicer.Models.Shopify(e.serializeHash()),this.model.save(null,{success:function(t){return function(e,n){var i,r;return r="http://"+t.model.get("uid")+"/pages/"+n.url,i="<p>A new page called "+t.model.get("title")+" has been added to your Shopify site at <br /> <a href='"+r+"' target='_blank'>"+r+"</a>",t.$("form").html(i)
  14. }}(this)})},n.prototype.connectShopify=function(t){var e;return t.preventDefault(),e=$(t.target).find("input[type=text]").val(),window.location.replace("/auth/shopify?shop="+e+".myshopify.com")},n}(Juicer.Views.SubView)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};Juicer.Views.Sources=function(e){function i(){return this.reRender=t(this.reRender,this),i.__super__.constructor.apply(this,arguments)}return n(i,e),i.prototype.template=JST["feeds/sources"],i.prototype.manualPostForm=JST["feeds/manual_post_form"],i.prototype.render=function(){return i.__super__.render.apply(this,arguments),this.sourceForm=new Juicer.Views.SourceForm({el:"ul#new-source",feed:this.feed}),this.sourceForm.on("create",this.reRender)},i.prototype.events={"click .delete":"removeSource","click .add":"openManualPostOverlay","submit #manual_post":"addPostManually"},i.prototype.removeSource=function(t){var e,n,i;return t.preventDefault(),i=$(t.target),Juicer.Helpers.confirm("Are you sure you want to delete this source? This will PERMANENTLY delete your posts. If you plan to re-add this source there is NO GUARANTEE we will be able to pull all your posts back in, so do at your own risk.")?(e=i.parents("li"),n=new Juicer.Models.Source({id:i.data("id")}),n.destroy({success:function(t){return function(n,i){return t.feed.set(i,{parse:!0}),e.remove(),t.feed.trigger("action")}}(this),error:function(){return alert("uh oh, something went wrong.")}})):void 0},i.prototype.openManualPostOverlay=function(t){var e;return t.preventDefault(),e=$(t.target),this.overlay=new Juicer.Views.Overlay({content:this.manualPostForm({source_id:e.data("id"),name:e.data("name"),feed:this.feed}),element:this.el,width:"50%"}),this.overlay.render()},i.prototype.addPostManually=function(t){var e,n;return t.preventDefault(),n=$(t.target),n.find("ul.errors").remove(),e=n.serializeHash(),this.post=new Juicer.Models.Post(e),this.post.save(null,{success:function(t){return function(e,n){return t.feed.set(n,{parse:!0}),t.reRender(),t.feed.trigger("action")}}(this),error:function(){return function(t,e){return new Juicer.Views.Errors({el:n,errors:e})}}(this)})},i.prototype.reRender=function(){return this.parent.renderSidebar()},i}(Juicer.Views.SubView)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.Synced=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.template=JST["feeds/synced"],n}(Juicer.Views.SubView)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.FeedForm=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.namespace="feed",n.prototype.createModel=function(){return new Juicer.Models.FeedValidation},n}(Juicer.Views.FormView)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.UserForm=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.namespace="user",n.prototype.createModel=function(){return new Juicer.Models.UserValidation},n}(Juicer.Views.FormView)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};Juicer.Views.GooglePlaces=function(e){function i(){return this.setGeometry=t(this.setGeometry,this),i.__super__.constructor.apply(this,arguments)}return n(i,e),i.prototype.initialize=function(){return $.getScript("https://maps.googleapis.com/maps/api/js?key="+Juicer.Constants.GOOGLE_MAPS_KEY+"&libraries=places",function(t){return function(){var e;return e=t.$("input#location")[0],t.searchBox=new google.maps.places.SearchBox(e),t.searchBox.addListener("places_changed",t.setGeometry)}}(this))},i.prototype.setGeometry=function(){var t,e;return e=this.searchBox.getPlaces(),t=e[0],window.place=t,this.$("input#lat").val(t.geometry.location.lat()),this.$("input#lng").val(t.geometry.location.lng()),this.$("input[type=submit]").removeAttr("disabled")},i}(JuicerBackbone.View)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.Graph=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(){var t,e,n,i,r;return r=960,n=500,t=d3.scale.category20(),e=d3.layout.force().linkDistance(10).linkStrength(2).size([r,n]),i=d3.select(this.el).append("svg").attr("width",r).attr("height",n),d3.json("/graph.json",function(t,n){var r,s,o,a,l;l=n.nodes.slice(),o=[],r=[],n.links.forEach(function(t){var e,n,i;n=l[t.source],i=l[t.target],e={},l.push(e),o.push({source:n,target:e},{source:e,target:i}),r.push([n,e,i])}),e.nodes(l).links(o).start(),s=i.selectAll(".link").data(r).enter().append("path").attr("class","link"),a=i.selectAll(".node").data(n.nodes).enter().append("circle").attr("class","node").attr("r",5).style("fill",function(){return"#ffffff"}).call(e.drag),a.append("title").text(function(t){return t.name}),e.on("tick",function(){s.attr("d",function(t){return"M"+t[0].x+","+t[0].y+"S"+t[1].x+","+t[1].y+" "+t[2].x+","+t[2].y}),a.attr("transform",function(t){return"translate("+t.x+","+t.y+")"})})})},n}(JuicerBackbone.View)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.Home=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(){return this.$("input").placeholder(),new Juicer.Views.Graph({el:"#top"}),"static-home"===this.$el.attr("id")?$("header.main").addClass("home"):void 0},n.prototype.events={"click #arrow":"scrollDown","click .show":"renderExample","change select":"reRenderFeed"},n.prototype.scrollDown=function(t){var e;return t.preventDefault(),e=this.$("#what-is-juicer").offset().top,$("html,body").animate({scrollTop:e},{easing:"swing",duration:500})},n.prototype.renderExample=function(t){var e;return t.preventDefault(),e=$(t.target),e.html("Loading..."),this.model=new Juicer.Models.Feed({slug:"juicer",per:16,order:"random"}),this.model.fetch({success:function(t){return function(){return t.renderFeed(),$(".style-picker").show(),e.hide()}}(this),error:function(){return console.log("Example did not load!")}})},n.prototype.reRenderFeed=function(t){var e,n;return this.$(".juicer-feed").remove(),this.$("#example").append("<ul class='juicer-feed' data-pages='1'></ul>"),n=$(t.target).val(),e=this.map(n),this.model.set(e),this.renderFeed()},n.prototype.renderFeed=function(){return new Juicer.Views.Feed({el:".juicer-feed",model:this.model}).render()},n.prototype.map=function(t){switch(t){case"classic":return{css:"classic",photos:!1};case"white":return{css:"white",photos:!1};case"widget":return{css:"widget",photos:!1};case"colored-icons":return{css:"colored-icons",photos:!1};case"gray":return{css:"gray",photos:!1};case"slider":return{css:"slider",photos:!0};case"user":return{css:"user",photos:!1};default:return{css:"image-grid",photos:!0}}},n}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};Juicer.Views.InfiniteScroll=function(e){function i(){return this.checkForPagination=t(this.checkForPagination,this),i.__super__.constructor.apply(this,arguments)}return n(i,e),i.prototype.el=function(){return this.model.hasHeight()?"ul.juicer-feed":window},i.prototype.initialize=function(t){return this.template=t.template||JST["partials/_moderated_posts"],this.container=t.container,this.admin=t.admin||!1,this.posts=this.model.get("posts"),this.pages=_u.min([t.pages,1e3]),this.stopped=this.pages<2||this.limitReached(),this.shouldInfinitelyScroll()?this.$el.on("scroll",_u.debounce(this.checkForPagination,300)):void 0},i.prototype.limitReached=function(){return this.posts.length<this.posts.limit_value},i.prototype.removeLoadMore=function(){return jQuery(".j-paginate").remove()},i.prototype.checkForPagination=function(){return this.scrollPoint()>this.triggerPoint()&&!this.stopped?this.nextPage():void 0},i.prototype.shouldInfinitelyScroll=function(){return this.model.get("infinite_scroll")&&!this.stopped},i.prototype.shouldShowLoadMore=function(){return!this.model.get("infinite_scroll")&&!this.stopped},i.prototype.nextPage=function(){return this.stop(),this.starting_at=this.model.starting_at,this.model.starting_at=null,this.model.nextPage(),this.model.fetch({remove:!1,success:function(t){return function(e,n){return t.model.starting_at=t.starting_at,t.appendPosts(n),t.trigger("paginate")}}(this),error:function(){return console.log("Juicer Infinite Scroll Problem.")}})},i.prototype.appendPosts=function(t){var e,n;return jQuery(".j-loading").remove(),n=new Juicer.Models.Feed(t,{parse:!0}),this.posts=n.get("posts"),this.posts.length>0&&(e=JuicerBackbone.$.parseHTML(this.template({feed:n,admin:this.admin}))),this.model.isGrid()?this.container.gridalicious("append",e):this.container.append(e),this.limitReached()||this.start(),this.shouldShowLoadMore()?void 0:this.removeLoadMore()},i.prototype.scrollPoint=function(){return this.$el.scrollTop()+2*this.$el.outerHeight()},i.prototype.triggerPoint=function(){return this.model.hasHeight()?this.container.prop("scrollHeight"):this.container.offset().top+this.container.outerHeight()},i.prototype.start=function(){return this.stopped=!1},i.prototype.stop=function(){return this.stopped=!0},i.prototype.close=function(){return this.$el.empty().off(),this.model.resetPage(),this.stopListening(),this},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};Juicer.Views.LazyLoad=function(e){function i(){return this.checkImages=t(this.checkImages,this),i.__super__.constructor.apply(this,arguments)}return n(i,e),i.prototype.el=window,i.prototype.initialize=function(t){return this.view=t.view,this.checkImages()},i.prototype.events=function(){return{scroll:"lazyLoadImages"}},i.prototype.lazyLoadImages=_u.debounce(function(){return this.checkImages()},300),i.prototype.checkImages=function(){return _u.each(this.view.$el.find("img[data-lazy]:not([src])"),function(t){return function(e){return e=jQuery(e),e.offset().top<t.scrollPoint()?e.attr("src",e.data("lazy")):void 0}}(this))},i.prototype.scrollPoint=function(){return this.$el.scrollTop()+this.$el.height()+200},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};Juicer.Views.LivingWall=function(e){function i(){return this.rotatePost=t(this.rotatePost,this),i.__super__.constructor.apply(this,arguments)}return n(i,e),i.prototype.template=JST["partials/feeds/_wall"],i.prototype.initialize=function(t){var e;return this.interval=t.interval,this.admin=t.admin,this.truncate=t.truncate,this.columns=t.columns,this.gutter=t.gutter,this.equal=t.equal,this.gutter||(this.gutter=0),e=this.gutter*(2*this.columns-1),this.width=this.$el.outerWidth()-e,this.small=this.width/(2*this.columns),this.large=2*this.small+this.gutter,this.retryTimes=0},i.prototype.render=function(){var t,e,n,i;return t=8*this.columns,i=Math.floor(this.columns/2),this.largeCount=this.equal?0:_u.random(this.columns-i,this.columns+i),this.smallCount=t-4*this.largeCount-1,this.total=this.largeCount+this.smallCount,n=_u.map(this.initialPosts(),function(t){return function(e){return t.renderPost(e)}}(this)),e=_u.sample(n,this.largeCount),_u.each(e,function(t){return function(e){return e.addClass("j-large"),t.setDimensions(e)}}(this)),_u.each(n,function(t){return function(e){return e.hasClass("j-large")?!1:(e.addClass("j-small"),t.setDimensions(e))}}(this)),this.$el.append(n),this.$el.packery({gutter:this.gutter}),this.handleInterval(),this.ensureProperSize(),this},i.prototype.handleInterval=function(){return document.hidden||this.startInterval(),jQuery(document).on("show",function(t){return function(){return t.startInterval()}}(this)),jQuery(document).on("hide",function(t){return function(){return t.stopInterval()}}(this))},i.prototype.startInterval=function(){return null==this.id?this.id=setInterval(this.rotatePost,this.interval):void 0},i.prototype.stopInterval=function(){return null!=this.id&&window.clearInterval(this.id),this.id=null},i.prototype.ensureProperSize=function(){var t,e,n;return this.retryTimes>4?!1:(e=3*this.gutter,t=4*this.small,t-e>=(n=this.$el.height())&&n>=t+e?void 0:(this.retryTimes++,this.close(),this.render()))},i.prototype.renderPost=function(t){return t=jQuery(this.template({post:t,admin:this.admin})),t.imagesLoaded(function(){var e;return e=t.find("img"),e.width()>e.height()?e.addClass("landscape"):void 0}),t},i.prototype.initialPosts=function(){return this.posts().slice(0,+this.total+1||9e9)},i.prototype.nextPost=function(){return this.total++,this.total>=this.posts().length&&(this.total=0),this.posts()[this.total]},i.prototype.posts=function(){return this.model.get("posts").models},i.prototype.randomPost=function(){return $(_u.sample(this.$(".feed-item").not(".j-sticky")))},i.prototype.setDimensions=function(t){var e;return e=t.hasClass("j-small")?this.small:this.large,t.css({width:this.size(t),height:this.size(t)})},i.prototype.rotatePost=function(){var t,e;return e=this.randomPost(),t=this.renderPost(this.nextPost()),this.cloneStyle(e,t)},i.prototype.cloneStyle=function(t,e){var n,i,r,s,o,a,l;return e.addClass(t.hasClass("j-small")?"j-small":"j-large"),this.setDimensions(e),l=this.size(t),i={top:l,left:l},n=this.merge(this.vectorMap(),i,"*"),r=a=t.position(),s=this.merge(a,n,"-"),o=this.merge(a,n,"+"),e.css(_u.extend(s,this.underCss)),t.css(this.underCss),t.before(e),window.setTimeout(function(){return t.css(o),e.css(r),window.setTimeout(function(){return t.remove(),e.css({zIndex:2})},500)},100)},i.prototype.size=function(t){return t.hasClass("j-small")?this.small:this.large},i.prototype.merge=function(t,e,n){var i;return null==n&&(n="+"),i={},_u.each(_u.keys(t),function(){return function(r){return"+"===n?i[r]=t[r]+e[r]:"*"===n?i[r]=t[r]*e[r]:"-"===n?i[r]=t[r]-e[r]:void 0}}(this)),i},i.prototype.vectorMap=function(){var t,e;return e=_u.sample([-1,1]),t=_u.shuffle([e,0]),{top:t[0],left:t[1]}},i.prototype.underCss={zIndex:1},i.prototype.close=function(){return this.stopInterval(),this.$el.empty(),this.$el.packery("destroy"),jQuery(document).off("show hide"),this.stopListening(),this},i}(JuicerBackbone.View)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.LocationPicker=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.template=JST.location_picker,n.prototype.initialize=function(t){return this.$el.html(this.template(t)),this.$el.attr("id","new_source")},n.prototype.events={"click li":"submitForm"},n.prototype.submitForm=function(t){var e;return e=$(t.target),this.$("input#term").val(e.data("id")),this.$("input#name").val(e.data("name")),this.trigger("submit",this.$el.serializeHash())},n}(JuicerBackbone.View)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.Moderated=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.template=JST.moderated,n.prototype.loading=JST["partials/_loading"],n.prototype.events={"click ul.j-filters li":"filterFeed","click .approve":"restorePost","click .reject":"rejectPost","click .j-paginate":"appendNextPage"},n.prototype.render=function(){var t;return this.model.set({lazy_load:!1,css:"user"}),this.startInfiniteScroll(),this.$el.html(this.template({feed:this.model})),t=Math.floor(this.$el.outerWidth()/3),200>t&&(t=200),this.model.get("posts").models.length<1?!1:(this.$el.removeClass(Juicer.Constants.FEED_CLASSES.join(" ")),this.$el.addClass("user"),this.$el.gridalicious({selector:".feed-item",width:t,gutter:this.gutter}),null==this.infiniteScroll?!0:this.infiniteScroll.shouldShowLoadMore()?void 0:this.infiniteScroll.removeLoadMore())},n.prototype.startInfiniteScroll=function(){return this.model.resetPage(),this.infiniteScroll=new Juicer.Views.InfiniteScroll({container:this.$el,model:this.model})},n.prototype.appendNextPage=function(){return this.$(".j-paginate").replaceWith(this.loading()),this.infiniteScroll.nextPage()},n.prototype.restorePost=function(t){var e,n;return t.preventDefault(),$(t.target).html("Approving..."),n=$(t.target).parents("ul.actions"),e=new Juicer.Models.Post({id:n.data("id")}),n.parents(".feed-item").hide().remove(),e.restore()},n.prototype.rejectPost=function(t){var e,n;return t.preventDefault(),$(t.target).html("Rejecting..."),n=$(t.target).parents("ul.actions"),e=new Juicer.Models.Post({id:n.data("id")}),n.parents(".feed-item").hide().remove(),e.reject()},n.prototype.filterFeed=function(t){var e,n;return t.preventDefault(),n=jQuery(t.target),e=n.attr("data-filter"),this.model.filter=n.data("filter"),this.model.resetPage(),this.model.fetch({success:function(t){return function(){return t.$el.empty(),t.infiniteScroll&&t.infiniteScroll.close(),t.render(),t.delegateEvents(),jQuery("ul.j-filters li.selected").removeClass("selected"),jQuery("ul.j-filters li[data-filter='"+e+"']").addClass("selected")}}(this)})},n}(JuicerBackbone.View)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.Nav=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.events={"click li#menu":"toggleMenuOpen","click #sidebar-toggle":"toggleSidebarOpen"},n.prototype.toggleMenuOpen=function(){return $(".container").toggleClass("open-left")},n.prototype.toggleSidebarOpen=function(t){return t.preventDefault(),$(".container").toggleClass("open-right")},n}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};Juicer.Views.Overlay=function(e){function i(){return this.handleKeypress=t(this.handleKeypress,this),i.__super__.constructor.apply(this,arguments)}return n(i,e),i.prototype.className="j-overlay",i.prototype.template=JST.overlay,i.prototype.initialize=function(t){return this.element=t.element||"body",this.content=t.content,this.width=t.width,jQuery(document).bind("keydown",this.handleKeypress)},i.prototype.render=function(){return this.$el.html(this.template({content:this.content})),jQuery(this.element).children(".j-overlay")&&jQuery(this.element).children(".j-overlay").remove(),jQuery(this.element).append(this.el),jQuery(".j-overlay-content").css({width:this.width}),this},i.prototype.events=function(){return{"click .j-close":"closeOverlay",click:"removeOverlay","click .j-navigate a":"triggerNavigate","click a.share":"openPopup"}},i.prototype.removeOverlay=function(t){var e;return e=jQuery(t.target),e.hasClass("j-overlay-content")||e.parents(".j-overlay-content").length>0?void 0:this.removeView()},i.prototype.closeOverlay=function(t){return t.preventDefault(),this.removeView()},i.prototype.removeView=function(){return this.trigger("close"),this.unbind(),this.remove(),this.$(".j-overlay").remove(),jQuery(document).unbind("keydown",this.handleKeypress)},i.prototype.triggerNavigate=function(t){return t.preventDefault(),this.trigger("trigger:navigate",jQuery(t.target).data("post-id"))},i.prototype.openPopup=function(t){var e;return t.preventDefault(),e=jQuery(t.target),window.open(e.attr("href"),"pop","width=600, height=400, scrollbars=no")},i.prototype.handleKeypress=function(t){switch(t.keyCode){case 37:return this.$(".j-previous").click();case 39:return this.$(".j-next").click();case 27:return this.closeOverlay(t)}},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};Juicer.Views.OverlayReopener=function(e){function i(){return this.reRender=t(this.reRender,this),i.__super__.constructor.apply(this,arguments)}return n(i,e),i.prototype.el=window,i.prototype.storageKey="juicer_overlay_open",i.prototype.initialize=function(t){return null==t&&(t={}),this.sourceForm=t.sourceForm,this.parent=t.parent},i.prototype.render=function(t){return this.overlayShouldReopen()&&(null==this.sourceForm&&(this.sourceForm=new Juicer.Views.SourceForm({el:t,feed:this.model})),this.sourceForm.openOverlay(this.get()),null!=this.parent&&this.sourceForm.on("create",this.reRender),this.clear()),this},i.prototype.reRender=function(){return this.parent.renderSidebar()},i.prototype.overlayShouldReopen=function(){return!!this.get()},i.prototype.get=function(){var t;return t=this.el.localStorage.getItem(this.storageKey),JSON.parse(t)},i.prototype.set=function(t){var e;return e=JSON.stringify(t),this.el.localStorage.setItem(this.storageKey,e)},i.prototype.clear=function(){return this.el.localStorage.setItem(this.storageKey,null)},i}(JuicerBackbone.View)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.PostEdit=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.template=JST.post_edit,n.prototype.message=JST["partials/_message"],n.prototype.className="j-overlay",n.prototype.initialize=function(t){return this.setPost(t)},n.prototype.setPost=function(t){var e;return e=this.model.get("posts"),this.post=e.get(t.id)},n.prototype.render=function(){return this.overlay=new Juicer.Views.Overlay({content:this.template({post:this.post,feed:this.model}),width:"50%",el:this.el}),this.overlay.render()},n.prototype.events=function(){return{"input textarea":"updatePreview","submit form":"savePost"}},n.prototype.updatePreview=function(t){return this.post.set("edit",$(t.target).val()),this.$(".message-container").html(this.message({post:this.post}))},n.prototype.savePost=function(t){return t.preventDefault(),this.post.save(null,{success:function(t){return function(e,n){return t.overlay.removeView(),t.model.set(n,{parse:!0}),t.model.trigger("action")}}(this),error:function(){return alert("Something went wrong. Please try again.")}})},n}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};Juicer.Views.PostOverlay=function(e){function i(){return this.navigateOverlay=t(this.navigateOverlay,this),i.__super__.constructor.apply(this,arguments)}return n(i,e),i.prototype.template=JST.post_overlay,i.prototype.initialize=function(t){return this.model=t.model,this.router=t.router,this.setPost(t)},i.prototype.triggers=function(){return{"click a.next":"navigateOverlay","click a.previous":"navigateOverlay"}},i.prototype.setPost=function(t){var e,n;return t.id?e=t.id:(n=t.target.is("li.feed-item")?t.target:t.target.parents("li.feed-item"),e=n.data("id")),this.assignPosts(e)},i.prototype.assignPosts=function(t){var e,n,i,r;return i=this.model.get("posts"),this.post=i.get(t),e=i.indexOf(this.post),n=e+1<i.length?e+1:0,r=e-1>=0?e-1:i.length-1,this.next=i.at(n),this.previous=i.at(r)},i.prototype.render=function(){return this.router&&this.router.navigate("juicer-post/"+this.post.get("id")),this.overlay=new Juicer.Views.Overlay({element:"body",content:this.template({post:this.post,next:this.next,previous:this.previous}),width:"75%"}),this.overlay.on("trigger:navigate",this.navigateOverlay),this.overlay.render()},i.prototype.navigateOverlay=function(t){return this.overlay.removeView(),this.assignPosts(t),this.render()},i}(JuicerBackbone.View)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.SideNav=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.events={"click li#collapseable":"toggleOtherFeeds"},n.prototype.toggleOtherFeeds=function(t){var e,n;return t.preventDefault(),n=$(t.target),e=n.next(),e.is(":visible")?(e.slideUp(),n.removeClass("selected")):(e.slideDown(),n.addClass("selected"))},n}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};Juicer.Views.Sidebar=function(e){function i(){return this.openSubView=t(this.openSubView,this),this.render=t(this.render,this),i.__super__.constructor.apply(this,arguments)}return n(i,e),i.prototype.template=JST.sidebar,i.prototype.nameEdit=JST["feeds/feed_name_edit"],i.prototype.initialize=function(t){return this.model=new Juicer.Models.Feed({slug:t.slug,starting_at:t.starting_at}),this.model.fetch({success:function(t){return function(){return t.renderSidebar()}}(this)}),this.model.on("action",this.reRender,this),this.model.once("sync",this.render,this)},i.prototype.render=function(){var t;return t=this.model.get("posts"),1===t.current_page?this.feed=new Juicer.Views.Feed({el:".juicer-feed",model:this.model,admin:!0}).render():void 0},i.prototype.reRender=function(){return null!=this.feed&&this.feed.close(),this.render()},i.prototype.renderSidebar=function(){return this.$el.html(this.template({feed:this.model})),new Juicer.Views.OverlayReopener({model:this.model,parent:this}).render(this.el)},i.prototype.events=function(){return{"click li.menu-item":"openSubView","click h1":"renderFeedNameEdit","submit #feed-name-edit":"updateFeedName"}},i.prototype.openSubView=function(t){var e,n;return t.preventDefault(),e=$(t.target),this.closeOpenSubViews(),n=this.viewMap[e.attr("id")],null!=this.subView&&this.subView instanceof n?this.subView=null:(this.subView=new n({feed:this.model,target:e,parent:this,feedView:this.feed}),this.subView.render())},i.prototype.closeOpenSubViews=function(){return $(".selected").removeClass("selected"),null!=this.subView?this.subView.close():void 0},i.prototype.viewMap={sources:Juicer.Views.Sources,settings:Juicer.Views.Settings,embed:Juicer.Views.Embed,hub:Juicer.Views.Hub,moderate:Juicer.Views.Moderate,filter:Juicer.Views.Filter,analytics:Juicer.Views.Analytics,synced:Juicer.Views.Synced,features:Juicer.Views.Features},i.prototype.renderFeedNameEdit=function(t){return t.preventDefault(),$(t.target).replaceWith(this.nameEdit({feed:this.model}))},i.prototype.updateFeedName=function(t){var e;return t.preventDefault(),e=$(t.target).find("input").val(),this.model.set("name",e),this.model.save(null,{success:function(){return function(t,e){return window.location="/feeds/"+e.slug}}(this)})},i}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};Juicer.Views.Slider=function(e){function i(){return this.setFeedItemHeight=t(this.setFeedItemHeight,this),i.__super__.constructor.apply(this,arguments)}return n(i,e),i.prototype.template=JST.feed,i.prototype.initialize=function(t){return this.interval=t.interval,this.admin=t.admin,this.truncate=t.truncate,this.columns=t.columns,this.slidesToShow=this.columns},i.prototype.render=function(){return this.$el.append(this.template({feed:this.model,admin:this.admin,truncate:this.truncate})),this.$el.slick(this.sliderSettings()),imagesLoaded(this.$el,this.setFeedItemHeight),jQuery(window).on("resize",_u.debounce(function(t){return function(){return t.setFeedItemHeight()}}(this),300))},i.prototype.sliderSettings=function(){return jQuery.extend(this.sliderDefaults(),{responsive:[{breakpoint:800,settings:{slidesToShow:_u.min([3,this.slidesToShow]),slidesToScroll:_u.min([3,this.slidesToShow])}},{breakpoint:600,settings:{slidesToShow:_u.min([2,this.slidesToShow]),slidesToScroll:_u.min([2,this.slidesToShow])}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]})},i.prototype.sliderDefaults=function(){return{slidesToShow:this.slidesToShow,autoplay:!0,autoplaySpeed:this.interval,slidesToScroll:this.slidesToShow,slide:"li",adaptiveHeight:0===!this.$("a.j-images").length,cssEase:"ease",pauseOnHover:!0}},i.prototype.setFeedItemHeight=function(){var t;return _u.each(this.$("a.j-image img"),function(){return function(t){return t.width>t.height?jQuery(t).addClass("j-landscape"):void 0}}(this)),t=this.model.get("height")||300,this.$("a.j-image img, li.words, .slick-track").css({height:t})},i}(JuicerBackbone.View)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.SourceForm=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.template=JST.source_form,n.prototype.pleaseWait=JST.please_wait,n.prototype.initialize=function(t){return this.feed=t.feed},n.prototype.events=function(){return{"click #add-a-hashtag li":"openHashtag","click .source":"handleOverlay","click #location_search a":"renderLocationSearch","submit form#new_source":"createSource","submit form#location":"findLocation","click .type":"redrawOverlay","click a.social-account":"setOverlayStorage"}},n.prototype.handleOverlay=function(t,e){return null==e&&(e="username"),this.openOverlay({type:e,source:$(t.target).data("type")})},n.prototype.renderLocationSearch=function(){return this.openOverlay({type:"location_search",source:this.source})},n.prototype.openOverlay=function(t){return this.type=t.type,this.source=t.source,this.model=new Juicer.Models.Source({source:this.source}),this.renderOverlay()},n.prototype.openHashtag=function(t){return this.handleOverlay(t,"hashtag")},n.prototype.drawTemplate=function(){return this.template({source:this.model,feed:this.feed,type:this.type})},n.prototype.renderOverlay=function(){return this.overlay=new Juicer.Views.Overlay({content:this.drawTemplate(),element:this.el,width:"50%"}),this.overlay.render(),"location_search"===this.type?this.initializeGooglePlaces():void 0},n.prototype.initializeGooglePlaces=function(){return new Juicer.Views.GooglePlaces({el:this.el})},n.prototype.createSource=function(t){var e;return t.preventDefault(),e=$(t.target),e.find("input[type=submit]").hide(),e.append("<div class='j-loading'>Loading...</div>"),this.timeout=setTimeout(function(t){return function(){return e.append(t.pleaseWait())
  15. }}(this),5e3),e.find("ul.errors").remove(),this.submitSource(e.serializeHash())},n.prototype.submitSource=function(t){return this.model.set(t),this.model.save(null,{success:function(t){return function(e,n){return t.feed.set(n,{parse:!0}),t.feed.trigger("action"),t.timeout&&window.clearInterval(t.timeout),t.trigger("create")}}(this),error:function(t){return function(e,n){return t.timeout&&window.clearInterval(t.timeout),new Juicer.Views.Errors({el:t.$("form"),errors:n})}}(this)})},n.prototype.findLocation=function(t){var e,n;return t.preventDefault(),n=$(t.target),e=new Juicer.Models.Location(n.serializeHash()),e.save(null,{success:function(t){return function(e,i){return t.picker=new Juicer.Views.LocationPicker({el:t.$("form"),locations:i,feed:t.feed,source:t.model}),t.picker.on("submit",function(e){return n.append("<div class='j-loading'>Loading...</div>"),t.submitSource(e)})}}(this),error:function(t,e){return new Juicer.Views.Errors({el:this.$("form"),errors:e})}})},n.prototype.redrawOverlay=function(t){return t.preventDefault(),this.type=$(t.target).data("type"),this.overlay.removeView(),this.renderOverlay()},n.prototype.setOverlayStorage=function(t){var e;return t.preventDefault(),e=new Juicer.Views.OverlayReopener,e.set({type:this.type,source:this.source}),window.location=jQuery(t.target).attr("href")},n}(JuicerBackbone.View)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.SourcesIndex=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.template=JST.sources_index,n.prototype.initialize=function(t){return this.feed=new Juicer.Models.Feed({slug:t.slug}),this.feed.fetch({success:function(t){return function(){return t.sourceForm=new Juicer.Views.SourceForm({el:t.el,feed:t.feed}),t.sourceForm.on("create",t.nextPage,t),t.render(),new Juicer.Views.OverlayReopener({model:t.feed,sourceForm:t.sourceForm}).render(t.el)}}(this),error:function(){return alert("Uh oh, something went wrong")}})},n.prototype.render=function(){return this.$el.html(this.template())},n.prototype.nextPage=function(){return window.location="/feeds/"+this.feed.get("slug")},n}(JuicerBackbone.View)}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Views.UserAccount=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(){return this.toggleDigest()},n.prototype.events={"change input[type=checkbox]":"toggleDigest"},n.prototype.toggleDigest=function(){var t,e;return e=this.$("#user_digest"),t=this.$(".digest-label"),this.$("input[type=checkbox]").is(":checked")?(e.removeAttr("disabled"),t.removeClass("disabled")):(e.attr("disabled","disabled"),t.addClass("disabled"),e.val("Never"))},n}(JuicerBackbone.View)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};Juicer.Views.Widget=function(e){function i(){return this.addPost=t(this.addPost,this),this.showNextPost=t(this.showNextPost,this),i.__super__.constructor.apply(this,arguments)}return n(i,e),i.prototype.template=JST.widget,i.prototype.card=JST["partials/_widget_card"],i.prototype.referral=JST["partials/_referral"],i.prototype.initialize=function(t){return this.interval=t.interval,this.admin=t.admin,this.truncate=t.truncate,this.index=0,this.posts=this.model.get("posts").models,this.render(),5e3!==this.model.get("interval")&&5e3===this.interval&&(this.interval=this.model.get("interval")),this.id=setInterval(this.showNextPost,this.interval)},i.prototype.render=function(){return this.$el.append(this.template({first:this.posts[this.index],second:this.posts[this.index+1],admin:this.admin,truncate:this.truncate})),this.container=this.$(".flip-container"),this.handleReferral()},i.prototype.showNextPost=function(){return this.container.toggleClass("flip"),setTimeout(this.addPost,600),this.index++,this.index>=this.posts.length-1?this.index=-1:void 0},i.prototype.addPost=function(){return this.element().html(this.card({post:this.posts[this.index+1],admin:this.admin,truncate:this.truncate}))},i.prototype.element=function(){return this.$(this.container.hasClass("flip")?".front":".back")},i.prototype.other=function(){return this.element().siblings()},i.prototype.handleReferral=function(){return this.model.paid()||this.admin||this.$el.find("h1.referral").length>0||this.$el.append(this.referral()),this.model.paid()?this.$el.find("h1.referral").remove():void 0},i.prototype.close=function(){return null!=this.id&&window.clearInterval(this.id),this.$el.empty().off(),this.stopListening(),this},i}(JuicerBackbone.View)}.call(this),Juicer.Constants={},Juicer.Constants.API_ROOT="http://www.juicer.io",Juicer.Constants.ASSET_PATH="//assets.juicer.io",Juicer.Constants.FEED_CLASSES=["image-grid","white","classic","widget","slider","colored-icons","gray","user","hip","living-wall"],Juicer.Constants.BASE_URL="https://www.juicer.io",Juicer.Constants.PAID_PLANS=["medium","large","custom","enterprise"],Juicer.Constants.FACEBOOK_APP_ID="731223346944897",Juicer.Constants.GOOGLE_MAPS_KEY="",Juicer.Constants.CACHE_BUSTER="poop buster",(navigator.userAgent.match(/MSIE 9/)||navigator.userAgent.match(/MSIE 8/))&&(Juicer.Constants.API_ROOT="https:"+Juicer.Constants.API_ROOT),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};Juicer.Routers.Posts=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.routes=function(){return{"juicer-post/:id":"postOverlay","*else":"renderFeed"}},n.prototype.renderFeed=function(){return new Juicer.Views.Feed({el:".juicer-feed",router:this}).render()},n.prototype.postOverlay=function(t){return new Juicer.Views.Feed({el:".juicer-feed",overlayId:t,router:this}).render()},n}(JuicerBackbone.Router)}.call(this);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement