1(function(){var c=this,f=c._,l={},m=Array.prototype,d=Object.prototype,y=Function.prototype,i=m.push,r=m.slice,o=m.concat,a=d.toString,E=d.hasOwnProperty,T=m.forEach,p=m.map,_=m.reduce,g=m.reduceRight,v=m.filter,x=m.every,S=m.some,b=m.indexOf,C=m.lastIndexOf,P=Array.isArray,L=Object.keys,M=y.bind,u=function(n){return n instanceof u?n:this instanceof u?void(this._wrapped=n):new u(n)};typeof exports!="undefined"?(typeof module!="undefined"&&module.exports&&(exports=module.exports=u),exports._=u):c._=u,u.VERSION="1.6.0";var D=u.each=u.forEach=function(n,t,e){if(n==null)return n;if(T&&n.forEach===T)n.forEach(t,e);else if(n.length===+n.length){for(var s=0,h=n.length;h>s;s++)if(t.call(e,n[s],s,n)===l)return}else for(var w=u.keys(n),s=0,h=w.length;h>s;s++)if(t.call(e,n[w[s]],w[s],n)===l)return;return n};u.map=u.collect=function(n,t,e){var s=[];return n==null?s:p&&n.map===p?n.map(t,e):(D(n,function(h,w,k){s.push(t.call(e,h,w,k))}),s)};var O="Reduce of empty array with no initial value";u.reduce=u.foldl=u.inject=function(n,t,e,s){var h=arguments.length>2;if(n==null&&(n=[]),_&&n.reduce===_)return s&&(t=u.bind(t,s)),h?n.reduce(t,e):n.reduce(t);if(D(n,function(w,k,A){h?e=t.call(s,e,w,k,A):(e=w,h=!0)}),!h)throw new TypeError(O);return e},u.reduceRight=u.foldr=function(n,t,e,s){var h=arguments.length>2;if(n==null&&(n=[]),g&&n.reduceRight===g)return s&&(t=u.bind(t,s)),h?n.reduceRight(t,e):n.reduceRight(t);var w=n.length;if(w!==+w){var k=u.keys(n);w=k.length}if(D(n,function(A,j,I){j=k?k[--w]:--w,h?e=t.call(s,e,n[j],j,I):(e=n[j],h=!0)}),!h)throw new TypeError(O);return e},u.find=u.detect=function(n,t,e){var s;return B(n,function(h,w,k){return t.call(e,h,w,k)?(s=h,!0):void 0}),s},u.filter=u.select=function(n,t,e){var s=[];return n==null?s:v&&n.filter===v?n.filter(t,e):(D(n,function(h,w,k){t.call(e,h,w,k)&&s.push(h)}),s)},u.reject=function(n,t,e){return u.filter(n,function(s,h,w){return!t.call(e,s,h,w)},e)},u.every=u.all=function(n,t,e){t||(t=u.identity);var s=!0;return n==null?s:x&&n.every===x?n.every(t,e):(D(n,function(h,w,k){return(s=s&&t.call(e,h,w,k))?void 0:l}),!!s)};var B=u.some=u.any=function(n,t,e){t||(t=u.identity);var s=!1;return n==null?s:S&&n.some===S?n.some(t,e):(D(n,function(h,w,k){return s||(s=t.call(e,h,w,k))?l:void 0}),!!s)};u.contains=u.include=function(n,t){return n==null?!1:b&&n.indexOf===b?n.indexOf(t)!=-1:B(n,function(e){return e===t})},u.invoke=function(n,t){var e=r.call(arguments,2),s=u.isFunction(t);return u.map(n,function(h){return(s?t:h[t]).apply(h,e)})},u.pluck=function(n,t){return u.map(n,u.property(t))},u.where=function(n,t){return u.filter(n,u.matches(t))},u.findWhere=function(n,t){return u.find(n,u.matches(t))},u.max=function(n,t,e){if(!t&&u.isArray(n)&&n[0]===+n[0]&&n.length<65535)return Math.max.apply(Math,n);var s=-1/0,h=-1/0;return D(n,function(w,k,A){var j=t?t.call(e,w,k,A):w;j>h&&(s=w,h=j)}),s},u.min=function(n,t,e){if(!t&&u.isArray(n)&&n[0]===+n[0]&&n.length<65535)return Math.min.apply(Math,n);var s=1/0,h=1/0;return D(n,function(w,k,A){var j=t?t.call(e,w,k,A):w;h>j&&(s=w,h=j)}),s},u.shuffle=function(n){var t,e=0,s=[];return D(n,function(h){t=u.random(e++),s[e-1]=s[t],s[t]=h}),s},u.sample=function(n,t,e){return t==null||e?(n.length!==+n.length&&(n=u.values(n)),n[u.random(n.length-1)]):u.shuffle(n).slice(0,Math.max(0,t))};var q=function(n){return n==null?u.identity:u.isFunction(n)?n:u.property(n)};u.sortBy=function(n,t,e){return t=q(t),u.pluck(u.map(n,function(s,h,w){return{value:s,index:h,criteria:t.call(e,s,h,w)}}).sort(function(s,h){var w=s.criteria,k=h.criteria;if(w!==k){if(w>k||w===void 0)return 1;if(k>w||k===void 0)return-1}return s.index-h.index}),"value")};var H=function(n){return function(t,e,s){var h={};return e=q(e),D(t,function(w,k){var A=e.call(s,w,k,t);n(h,A,w)}),h}};u.groupBy=H(function(n,t,e){u.has(n,t)?n[t].push(e):n[t]=[e]}),u.indexBy=H(function(n,t,e){n[t]=e}),u.countBy=H(function(n,t){u.has(n,t)?n[t]++:n[t]=1}),u.sortedIndex=function(n,t,e,s){e=q(e);for(var h=e.call(s,t),w=0,k=n.length;k>w;){var A=w+k>>>1;e.call(s,n[A])<h?w=A+1:k=A}return w},u.toArray=function(n){return n?u.isArray(n)?r.call(n):n.length===+n.length?u.map(n,u.
1identity):u.values(n):[]},u.size=function(n){return n==null?0:n.length===+n.length?n.length:u.keys(n).length},u.first=u.head=u.take=function(n,t,e){return n==null?void 0:t==null||e?n[0]:0>t?[]:r.call(n,0,t)},u.initial=function(n,t,e){return r.call(n,0,n.length-(t==null||e?1:t))},u.last=function(n,t,e){return n==null?void 0:t==null||e?n[n.length-1]:r.call(n,Math.max(n.length-t,0))},u.rest=u.tail=u.drop=function(n,t,e){return r.call(n,t==null||e?1:t)},u.compact=function(n){return u.filter(n,u.identity)};var G=function(n,t,e){return t&&u.every(n,u.isArray)?o.apply(e,n):(D(n,function(s){u.isArray(s)||u.isArguments(s)?t?i.apply(e,s):G(s,t,e):e.push(s)}),e)};u.flatten=function(n,t){return G(n,t,[])},u.without=function(n){return u.difference(n,r.call(arguments,1))},u.partition=function(n,t){var e=[],s=[];return D(n,function(h){(t(h)?e:s).push(h)}),[e,s]},u.uniq=u.unique=function(n,t,e,s){u.isFunction(t)&&(s=e,e=t,t=!1);var h=e?u.map(n,e,s):n,w=[],k=[];return D(h,function(A,j){(t?j&&k[k.length-1]===A:u.contains(k,A))||(k.push(A),w.push(n[j]))}),w},u.union=function(){return u.uniq(u.flatten(arguments,!0))},u.intersection=function(n){var t=r.call(arguments,1);return u.filter(u.uniq(n),function(e){return u.every(t,function(s){return u.contains(s,e)})})},u.difference=function(n){var t=o.apply(m,r.call(arguments,1));return u.filter(n,function(e){return!u.contains(t,e)})},u.zip=function(){for(var n=u.max(u.pluck(arguments,"length").concat(0)),t=new Array(n),e=0;n>e;e++)t[e]=u.pluck(arguments,""+e);return t},u.object=function(n,t){if(n==null)return{};for(var e={},s=0,h=n.length;h>s;s++)t?e[n[s]]=t[s]:e[n[s][0]]=n[s][1];return e},u.indexOf=function(n,t,e){if(n==null)return-1;var s=0,h=n.length;if(e){if(typeof e!="number")return s=u.sortedIndex(n,t),n[s]===t?s:-1;s=0>e?Math.max(0,h+e):e}if(b&&n.indexOf===b)return n.indexOf(t,e);for(;h>s;s++)if(n[s]===t)return s;return-1},u.lastIndexOf=function(n,t,e){if(n==null)return-1;var s=e!=null;if(C&&n.lastIndexOf===C)return s?n.lastIndexOf(t,e):n.lastIndexOf(t);for(var h=s?e:n.length;h--;)if(n[h]===t)return h;return-1},u.range=function(n,t,e){arguments.length<=1&&(t=n||0,n=0),e=arguments[2]||1;for(var s=Math.max(Math.ceil((t-n)/e),0),h=0,w=new Array(s);s>h;)w[h++]=n,n+=e;return w};var W=function(){};u.bind=function(n,t){var e,s;if(M&&n.bind===M)return M.apply(n,r.call(arguments,1));if(!u.isFunction(n))throw new TypeError;return e=r.call(arguments,2),s=function(){if(!(this instanceof s))return n.apply(t,e.concat(r.call(arguments)));W.prototype=n.prototype;var h=new W;W.prototype=null;var w=n.apply(h,e.concat(r.call(arguments)));return Object(w)===w?w:h}},u.partial=function(n){var t=r.call(arguments,1);return function(){for(var e=0,s=t.slice(),h=0,w=s.length;w>h;h++)s[h]===u&&(s[h]=arguments[e++]);for(;e<arguments.length;)s.push(arguments[e++]);return n.apply(this,s)}},u.bindAll=function(n){var t=r.call(arguments,1);if(t.length===0)throw new Error("bindAll must be passed function names");return D(t,function(e){n[e]=u.bind(n[e],n)}),n},u.memoize=function(n,t){var e={};return t||(t=u.identity),function(){var s=t.apply(this,arguments);return u.has(e,s)?e[s]:e[s]=n.apply(this,arguments)}},u.delay=function(n,t){var e=r.call(arguments,2);return setTimeout(function(){return n.apply(null,e)},t)},u.defer=function(n){return u.delay.apply(u,[n,1].concat(r.call(arguments,1)))},u.throttle=function(n,t,e){var s,h,w,k=null,A=0;e||(e={});var j=function(){A=e.leading===!1?0:u.now(),k=null,w=n.apply(s,h),s=h=null};return function(){var I=u.now();A||e.leading!==!1||(A=I);var N=t-(I-A);return s=this,h=arguments,0>=N?(clearTimeout(k),k=null,A=I,w=n.apply(s,h),s=h=null):k||e.trailing===!1||(k=setTimeout(j,N)),w}},u.debounce=function(n,t,e){var s,h,w,k,A,j=function(){var I=u.now()-k;t>I?s=setTimeout(j,t-I):(s=null,e||(A=n.apply(w,h),w=h=null))};return function(){w=this,h=arguments,k=u.now();var I=e&&!s;return s||(s=setTimeout(j,t)),I&&(A=n.apply(w,h),w=h=null),A}},u.once=function(n){var t,e=!1;return function(){return e||(e=!0,t=n.apply(this,arguments),n=null),t}},u.wrap=function(n,t){return u.partial(t,n)},u.compose=function(){var n=arguments;return function(){for(var t=arguments,e=n.length-1;e>=0;e--)t=[n[e].apply(this,t)];return t[0]}},u.after=function(n,t){return function(){return--n<1?t.apply(this,arguments):void 0}},u.keys=function(n){if(!u.isObject(n))return[];if(L)return L(n);var t=[];for(var e in n)u.has(n,e)&&t.push(e);return t},u.values=function(n){for(var t=u.keys(n),e=t.length,s=new Array(e),h=0;e>h;h++)s[h]=n[t[h]];return s},u.pairs=function(n){for(var t=u.keys(n),e=t.length,s=new Array(e),h=0;e>h;h++)s[h]=[t[h],n[t[h]]];return s},u.invert=function(n){for(var t={},e=u.keys(n),s=0,h=e.length;h>s;s++)t[n[e[s]]]=e[s];return t},u.functions=u.methods=function(n){var t=[];for(var e in n)u.isFunction(n[e])&&t.push(e);return t.sort()}
1,u.extend=function(n){return D(r.call(arguments,1),function(t){if(t)for(var e in t)n[e]=t[e]}),n},u.pick=function(n){var t={},e=o.apply(m,r.call(arguments,1));return D(e,function(s){s in n&&(t[s]=n[s])}),t},u.omit=function(n){var t={},e=o.apply(m,r.call(arguments,1));for(var s in n)u.contains(e,s)||(t[s]=n[s]);return t},u.defaults=function(n){return D(r.call(arguments,1),function(t){if(t)for(var e in t)n[e]===void 0&&(n[e]=t[e])}),n},u.clone=function(n){return u.isObject(n)?u.isArray(n)?n.slice():u.extend({},n):n},u.tap=function(n,t){return t(n),n};var F=function(n,t,e,s){if(n===t)return n!==0||1/n==1/t;if(n==null||t==null)return n===t;n instanceof u&&(n=n._wrapped),t instanceof u&&(t=t._wrapped);var h=a.call(n);if(h!=a.call(t))return!1;switch(h){case"[object String]":return n==String(t);case"[object Number]":return n!=+n?t!=+t:n==0?1/n==1/t:n==+t;case"[object Date]":case"[object Boolean]":return+n==+t;case"[object RegExp]":return n.source==t.source&&n.global==t.global&&n.multiline==t.multiline&&n.ignoreCase==t.ignoreCase}if(typeof n!="object"||typeof t!="object")return!1;for(var w=e.length;w--;)if(e[w]==n)return s[w]==t;var k=n.constructor,A=t.constructor;if(k!==A&&!(u.isFunction(k)&&k instanceof k&&u.isFunction(A)&&A instanceof A)&&"constructor"in n&&"constructor"in t)return!1;e.push(n),s.push(t);var j=0,I=!0;if(h=="[object Array]"){if(j=n.length,I=j==t.length)for(;j--&&(I=F(n[j],t[j],e,s)););}else{for(var N in n)if(u.has(n,N)&&(j++,!(I=u.has(t,N)&&F(n[N],t[N],e,s))))break;if(I){for(N in t)if(u.has(t,N)&&!j--)break;I=!j}}return e.pop(),s.pop(),I};u.isEqual=function(n,t){return F(n,t,[],[])},u.isEmpty=function(n){if(n==null)return!0;if(u.isArray(n)||u.isString(n))return n.length===0;for(var t in n)if(u.has(n,t))return!1;return!0},u.isElement=function(n){return!(!n||n.nodeType!==1)},u.isArray=P||function(n){return a.call(n)=="[object Array]"},u.isObject=function(n){return n===Object(n)},D(["Arguments","Function","String","Number","Date","RegExp"],function(n){u["is"+n]=function(t){return a.call(t)=="[object "+n+"]"}}),u.isArguments(arguments)||(u.isArguments=function(n){return!(!n||!u.has(n,"callee"))}),typeof/./!="function"&&(u.isFunction=function(n){return typeof n=="function"}),u.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},u.isNaN=function(n){return u.isNumber(n)&&n!=+n},u.isBoolean=function(n){return n===!0||n===!1||a.call(n)=="[object Boolean]"},u.isNull=function(n){return n===null},u.isUndefined=function(n){return n===void 0},u.has=function(n,t){return E.call(n,t)},u.noConflict=function(){return c._=f,this},u.identity=function(n){return n},u.constant=function(n){return function(){return n}},u.property=function(n){return function(t){return t[n]}},u.matches=function(n){return function(t){if(t===n)return!0;for(var e in n)if(n[e]!==t[e])return!1;return!0}},u.times=function(n,t,e){for(var s=Array(Math.max(0,n)),h=0;n>h;h++)s[h]=t.call(e,h);return s},u.random=function(n,t){return t==null&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},u.now=Date.now||function(){return new Date().getTime()};var R={escape:{"&":"&","<":"<",">":">",'"':""","'":"'"}};R.unescape=u.invert(R.escape);var K={escape:new RegExp("["+u.keys(R.escape).join("")+"]","g"),unescape:new RegExp("("+u.keys(R.unescape).join("|")+")","g")};u.each(["escape","unescape"],function(n){u[n]=function(t){return t==null?"":(""+t).replace(K[n],function(e){return R[n][e]})}}),u.result=function(n,t){if(n!=null){var e=n[t];return u.isFunction(e)?e.call(n):e}},u.mixin=function(n){D(u.functions(n),function(t){var e=u[t]=n[t];u.prototype[t]=function(){var s=[this._wrapped];return i.apply(s,arguments),Y.call(this,e.apply(u,s))}})};var tt=0;u.uniqueId=function(n){var t=++tt+"";return n?n+t:t},u.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var J=/(.)^/,et={"'":"'","\\":"\\","\r":"r","\n":"n"," ":"t","\u2028":"u2028","\u2029":"u2029"},it=/\\|'|\r|\n|\t|\u2028|\u2029/g;u.template=function(n,t,e){var s;e=u.defaults({},e,u.templateSettings);var h=new RegExp([(e.escape||J).source,(e.interpolate||J).source,(e.evaluate||J).source].join("|")+"|$","g"),w=0,k="__p+='";n.replace(h,function(j,I,N,z,U){return k+=n.slice(w,U).replace(it,function(X){return"\\"+et[X]}),I&&(k+="'+\n((__t=("+I+"))==null?'':_.escape(__t))+\n'"),N&&(k+="'+\n((__t=("+N+"))==null?'':__t)+\n'"),z&&(k+="';\n"+z+"\n__p+='"),w=U+j.length,j}),k+="';\n",e.variable||(k="with(obj||{}){\n"+k+"}\n"),k="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+k+"return __p;\n";try{s=new Function(e.variable||"obj","_",k)}catch(j){throw j.source=k,j}if(t)return s(t,u);var A=function(j){return s.call(this,j,u)};
1return A.source="function("+(e.variable||"obj")+"){\n"+k+"}",A},u.chain=function(n){return u(n).chain()};var Y=function(n){return this._chain?u(n).chain():n};u.mixin(u),D(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=m[n];u.prototype[n]=function(){var e=this._wrapped;return t.apply(e,arguments),n!="shift"&&n!="splice"||e.length!==0||delete e[0],Y.call(this,e)}}),D(["concat","join","slice"],function(n){var t=m[n];u.prototype[n]=function(){return Y.call(this,t.apply(this._wrapped,arguments))}}),u.extend(u.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}}),typeof define=="function"&&define.amd&&define("underscore",[],function(){return u})}).call(this),function(c,f){if(typeof define=="function"&&define.amd)define(["underscore","jquery","exports"],function(m,d,y){c.Backbone=f(c,y,m,d)});else if(typeof exports!="undefined"){var l=require("underscore");f(c,exports,l)}else c.Backbone=f(c,{},c._,c.jQuery||c.Zepto||c.ender||c.$)}(this,function(c,f,l,m){var d=c.Backbone,y=[],i=y.push,r=y.slice,o=y.splice;f.VERSION="1.1.2",f.$=m,f.noConflict=function(){return c.Backbone=d,this},f.emulateHTTP=!1,f.emulateJSON=!1;var a=f.Events={on:function(t,e,s){if(!T(this,"on",t,[e,s])||!e)return this;this._events||(this._events={});var h=this._events[t]||(this._events[t]=[]);return h.push({callback:e,context:s,ctx:s||this}),this},once:function(t,e,s){if(!T(this,"once",t,[e,s])||!e)return this;var h=this,w=l.once(function(){h.off(t,w),e.apply(this,arguments)});return w._callback=e,this.on(t,w,s)},off:function(t,e,s){var h,w,k,A,j,I,N,z;if(!this._events||!T(this,"off",t,[e,s]))return this;if(!t&&!e&&!s)return this._events=void 0,this;for(A=t?[t]:l.keys(this._events),j=0,I=A.length;j<I;j++)if(t=A[j],k=this._events[t]){if(this._events[t]=h=[],e||s)for(N=0,z=k.length;N<z;N++)w=k[N],(e&&e!==w.callback&&e!==w.callback._callback||s&&s!==w.context)&&h.push(w);h.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=r.call(arguments,1);if(!T(this,"trigger",t,e))return this;var s=this._events[t],h=this._events.all;return s&&p(s,e),h&&p(h,arguments),this},stopListening:function(t,e,s){var h=this._listeningTo;if(!h)return this;var w=!e&&!s;!s&&typeof e=="object"&&(s=this),t&&((h={})[t._listenId]=t);for(var k in h)t=h[k],t.off(e,s,this),(w||l.isEmpty(t._events))&&delete this._listeningTo[k];return this}},E=/\s+/,T=function(t,e,s,h){if(!s)return!0;if(typeof s=="object"){for(var w in s)t[e].apply(t,[w,s[w]].concat(h));return!1}if(E.test(s)){for(var k=s.split(E),A=0,j=k.length;A<j;A++)t[e].apply(t,[k[A]].concat(h));return!1}return!0},p=function(t,e){var s,h=-1,w=t.length,k=e[0],A=e[1],j=e[2];switch(e.length){case 0:for(;++h<w;)(s=t[h]).callback.call(s.ctx);return;case 1:for(;++h<w;)(s=t[h]).callback.call(s.ctx,k);return;case 2:for(;++h<w;)(s=t[h]).callback.call(s.ctx,k,A);return;case 3:for(;++h<w;)(s=t[h]).callback.call(s.ctx,k,A,j);return;default:for(;++h<w;)(s=t[h]).callback.apply(s.ctx,e);return}},_={listenTo:"on",listenToOnce:"once"};l.each(_,function(t,e){a[e]=function(s,h,w){var k=this._listeningTo||(this._listeningTo={}),A=s._listenId||(s._listenId=l.uniqueId("l"));return k[A]=s,!w&&typeof h=="object"&&(w=this),s[t](h,w,this),this}}),a.bind=a.on,a.unbind=a.off,l.extend(f,a);var g=f.Model=function(t,e){var s=t||{};e||(e={}),this.cid=l.uniqueId("c"),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(s=this.parse(s,e)||{}),s=l.defaults({},s,l.result(this,"defaults")),this.set(s,e),this.changed={},this.initialize.apply(this,arguments)};l.extend(g.prototype,a,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(t){return l.clone(this.attributes)},sync:function(){return f.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return l.escape(this.get(t))},has:function(t){return this.get(t)!=null},set:function(t,e,s){var h,w,k,A,j,I,N,z;if(t==null)return this;if(typeof t=="object"?(w=t,s=e):(w={})[t]=e,s||(s={}),!this._validate(w,s))return!1;k=s.unset,j=s.silent,A=[],I=this._changing,this._changing=!0,I||(this._previousAttributes=l.clone(this.attributes),this.changed={}),z=this.attributes,N=this._previousAttributes,this.idAttribute in w&&(this.id=w[this.idAttribute]);for(h in w)e=w[h],l.isEqual(z[h],e)||A.push(h),l.isEqual(N[h],e)?delete this.changed[h]:this.changed[h]=e,k?delete z[h]:z[h]=e;
1if(!j){A.length&&(this._pending=s);for(var U=0,X=A.length;U<X;U++)this.trigger("change:"+A[U],this,z[A[U]],s)}if(I)return this;if(!j)for(;this._pending;)s=this._pending,this._pending=!1,this.trigger("change",this,s);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,l.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var s in this.attributes)e[s]=void 0;return this.set(e,l.extend({},t,{unset:!0}))},hasChanged:function(t){return t==null?!l.isEmpty(this.changed):l.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?l.clone(this.changed):!1;var e,s=!1,h=this._changing?this._previousAttributes:this.attributes;for(var w in t)l.isEqual(h[w],e=t[w])||((s||(s={}))[w]=e);return s},previous:function(t){return t==null||!this._previousAttributes?null:this._previousAttributes[t]},previousAttributes:function(){return l.clone(this._previousAttributes)},fetch:function(t){t=t?l.clone(t):{},t.parse===void 0&&(t.parse=!0);var e=this,s=t.success;return t.success=function(h){if(!e.set(e.parse(h,t),t))return!1;s&&s(e,h,t),e.trigger("sync",e,h,t)},n(this,t),this.sync("read",this,t)},save:function(t,e,s){var h,w,k,A=this.attributes;if(t==null||typeof t=="object"?(h=t,s=e):(h={})[t]=e,s=l.extend({validate:!0},s),h&&!s.wait){if(!this.set(h,s))return!1}else if(!this._validate(h,s))return!1;h&&s.wait&&(this.attributes=l.extend({},A,h)),s.parse===void 0&&(s.parse=!0);var j=this,I=s.success;return s.success=function(N){j.attributes=A;var z=j.parse(N,s);if(s.wait&&(z=l.extend(h||{},z)),l.isObject(z)&&!j.set(z,s))return!1;I&&I(j,N,s),j.trigger("sync",j,N,s)},n(this,s),w=this.isNew()?"create":s.patch?"patch":"update",w==="patch"&&(s.attrs=h),k=this.sync(w,this,s),h&&s.wait&&(this.attributes=A),k},destroy:function(t){t=t?l.clone(t):{};var e=this,s=t.success,h=function(){e.trigger("destroy",e,e.collection,t)};if(t.success=function(k){(t.wait||e.isNew())&&h(),s&&s(e,k,t),e.isNew()||e.trigger("sync",e,k,t)},this.isNew())return t.success(),!1;n(this,t);var w=this.sync("delete",this,t);return t.wait||h(),w},url:function(){var t=l.result(this,"urlRoot")||l.result(this.collection,"url")||Y();return this.isNew()?t:t.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},l.extend(t||{},{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=l.extend({},this.attributes,t);var s=this.validationError=this.validate(t,e)||null;return s?(this.trigger("invalid",this,s,l.extend(e,{validationError:s})),!1):!0}});var v=["keys","values","pairs","invert","pick","omit"];l.each(v,function(t){g.prototype[t]=function(){var e=r.call(arguments);return e.unshift(this.attributes),l[t].apply(l,e)}});var x=f.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),e.comparator!==void 0&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,l.extend({silent:!0},e))},S={add:!0,remove:!0,merge:!0},b={add:!0,remove:!1};l.extend(x.prototype,a,{model:g,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return f.sync.apply(this,arguments)},add:function(t,e){return this.set(t,l.extend({merge:!1},e,b))},remove:function(t,e){var s=!l.isArray(t);t=s?[t]:l.clone(t),e||(e={});var h,w,k,A;for(h=0,w=t.length;h<w;h++)A=t[h]=this.get(t[h]),!!A&&(delete this._byId[A.id],delete this._byId[A.cid],k=this.indexOf(A),this.models.splice(k,1),this.length--,e.silent||(e.index=k,A.trigger("remove",A,this,e)),this._removeReference(A,e));return s?t[0]:t},set:function(t,e){e=l.defaults({},e,S),e.parse&&(t=this.parse(t,e));var s=!l.isArray(t);t=s?t?[t]:[]:l.clone(t);var h,w,k,A,j,I,N,z=e.at,U=this.model,X=this.comparator&&z==null&&e.sort!==!1,at=l.isString(this.comparator)?this.comparator:null,V=[],nt=[],Z={},ot=e.add,lt=e.merge,rt=e.remove,Q=!X&&ot&&rt?[]:!1;for(h=0,w=t.length;h<w;h++){if(j=t[h]||{},j instanceof g?k=A=j:k=j[U.prototype.idAttribute||"id"],I=this.get(k))rt&&(Z[I.cid]=!0),lt&&(j=j===A?A.attributes:j,e.parse&&(j=I.parse(j,e)),I.set(j,e),X&&!N&&I.hasChanged(at)&&(N=!0)),t[h]=I;else if(ot){if(A=t[h]=this._prepareModel(j,e),!A)continue;V.push(A),this._addReference(A,e)}A=I||A,Q&&(A.isNew()||!Z[A.id])&&Q.push(A),Z[A.id]=!0}if(rt){for(h=0,w=this.length;h<w;++h)Z[(A=this.models[h]).cid]||nt.push(A);nt.length&&this.remove(nt,e)}if(V.length||Q&&Q.length)if(X&&(N=!0),this.length+=V.length,z!=null)for(h=0,w=V.length;h<w;h++)this.models.splice(z+h,0,V[h]);else{Q&&(this.models.length=0);var st=Q||V;for(h=0,w=st.length;h<w;h++)this.models.push(st[h])}if(N&&this.sort({silent:!0}),!e.silent){for(h=0,w=V.length;h<w;h++)(A=V[h]).trigger("add",A,this,e);(N||Q&&Q.length)&&this.trigger("sort",this,e)}return s?t[0]:t},reset:function(t,e){e||(e={});for(var s=0,h=this.models.length;s<h;s++)this._removeReference(this.models[s],e);return e.previousModels=this.models,this._reset(),t=this.add(t,l.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,l.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t),e},unshift:function(t,e){return this.add(t,l.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t),e},slice:function(){return r.apply(this.models,arguments)},get:function(t){if(t!=null)return this._byId[t]||this._byId[t.id]||this._byId[t.cid]},at:function(t){return this.models[t]},where:function(t,e){return l.isEmpty(t)?e?void 0:[]:this[e?"find":"filter"](function(s){for(var h in t)if(t[h]!==s.get(h))return!1;return!0})},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={}),l.isString(this.comparator)||this.comparator.length===1?this.models=this.sortBy(this.comparator,this):this.models.sort(l.bind(this.comparator,this)),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return l.invoke(this.models,"get",t)},fetch:function(t){t=t?l.clone(t):{},t.parse===void 0&&(t.parse=!0);var e=t.success,s=this;return t.success=function(h){var w=t.reset?"reset":"set";s[w](h,t),e&&e(s,h,t),s.trigger("sync",s,h,t)},n(this,t),this.sync("read",this,t)},create:function(t,e){if(e=e?l.clone(e):{},!(t=this._prepareModel(t,e)))return!1;e.wait||this.add(t,e);var s=this,h=e.success;return e.success=function(w,k){e.wait&&s.add(w,e),h&&h(w,k,e)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(t instanceof g)return t;e=e?l.clone(e):{},e.collection=this;var s=new this.model(t,e);return s.validationError?(this.trigger("invalid",this,s.validationError,e),!1):s},_addReference:function(t,e){this._byId[t.cid]=t,t.id!=null&&(this._byId[t.id]=t),t.collection||(t.collection=this),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,s,h){(t==="add"||t==="remove")&&s!==this||(t==="destroy"&&this.remove(e,h),e&&t==="change:"+e.idAttribute&&(delete this._byId[e.previous(e.idAttribute)],e.id!=null&&(this._byId[e.id]=e)),this.trigger.apply(this,arguments))}});var C=["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"];l.each(C,function(t){x.prototype[t]=function(){var e=r.call(arguments);return e.unshift(this.models),l[t].apply(l,e)}});var P=["groupBy","countBy","sortBy","indexBy"];l.each(P,function(t){x.prototype[t]=function(e,s){var h=l.isFunction(e)?e:function(w){return w.get(e)};return l[t](this.models,h,s)}});var L=f.View=function(t){this.cid=l.uniqueId("view"),t||(t={}),l.extend(this,l.pick(t,u)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},M=/^(\S+)\s*(.*)$/,u=["model","collection","el","id","attributes","className","tagName","events"];l.extend(L.prototype,a,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,e){return this.$el&&this.undelegateEvents(),this.$el=t instanceof f.$?t:f.$(t),this.el=this.$el[0],e!==!1&&this.delegateEvents(),this},delegateEvents:function(t){if(!(t||(t=l.result(this,"events"))))return this;this.undelegateEvents();for(var e in t){var s=t[e];if(l.isFunction(s)||(s=this[t[e]]),!!s){var h=e.match(M),w=h[1],k=h[2];s=l.bind(s,this),w+=".delegateEvents"+this.cid,k===""?this.$el.on(w,s):this.$el.on(w,k,s)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(l.result(this,"el"),!1);else{var t=l.extend({},l.result(this,"attributes"));this.id&&(t.id=l.result(this,"id")),this.className&&(t.class=l.result(this,"className"));var e=f.$("<"+l.result(this,"tagName")+">").attr(t);this.setElement(e,!1)}}}),f.sync=function(t,e,s){var h=O[t];l.defaults(s||(s={}),{emulateHTTP:f.emulateHTTP,emulateJSON:f.emulateJSON});var w={type:h,dataType:"json"};if(s.url||(w.url=l.result(e,"url")||Y()),s.data==null&&e&&(t==="create"||t==="update"||t==="patch")&&(w.contentType="application/json",w.data=JSON.stringify(s.attrs||e.toJSON(s))),s.emulateJSON&&(w.contentType="application/x-www-form-urlencoded",w.data=w.data?{model:w.data}:{}),s.emulateHTTP&&(h==="PUT"||h==="DELETE"||h==="PATCH")){w.type="POST",s.emulateJSON&&(w.data._method=h);var k=s.beforeSend;s.beforeSend=function(j){if(j.setRequestHeader("X-HTTP-Method-Override",h),k)return k.apply(this,arguments)}}w.type!=="GET"&&!s.emulateJSON&&(w.processData=!1),w.type==="PATCH"&&D&&(w.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var A=s.xhr=f.ajax(l.extend(w,s));return e.trigger("request",e,A,s),A};var D=typeof window!="undefined"&&!!window.ActiveXObject&&!(window.XMLHttpRequest&&new XMLHttpRequest().dispatchEvent),O={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};f.ajax=function(){return f.$.ajax.apply(f.$,arguments)};var B=f.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},q=/\((.*?)\)/g,H=/(\(\?)?:\w+/g,G=/\*\w+/g,W=/[\-{}\[\]+?.,\\\^$|#\s]/g;l.extend(B.prototype,a,{initialize:function(){},route:function(t,e,s){l.isRegExp(t)||(t=this._routeToRegExp(t)),l.isFunction(e)&&(s=e,e=""),s||(s=this[e]);var h=this;return f.history.route(t,function(w){var k=h._extractParameters(t,w);h.execute(s,k),h.trigger.apply(h,["route:"+e].concat(k)),h.trigger("route",e,k),f.history.trigger("route",h,e,k)}),this},execute:function(t,e){t&&t.apply(this,e)},navigate:function(t,e){return f.history.navigate(t,e),this},_bindRoutes:function(){if(!!this.routes){this.routes=l.result(this,"routes");for(var t,e=l.keys(this.routes);(t=e.pop())!=null;)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(W,"\\$&").replace(q,"(?:$1)?").replace(H,function(e,s){return s?e:"([^/?]+)"}).replace(G,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var s=t.exec(e).slice(1);return l.map(s,function(h,w){return w===s.length-1?h||null:h?decodeURIComponent(h):null})}});var F=f.History=function(){this.handlers=[],l.bindAll(this,"checkUrl"),typeof window!="undefined"&&(this.location=window.location,this.history=window.history)},R=/^[#\/]|\s+$/g,K=/^\/+|\/+$/g,tt=/msie [\w.]+/,J=/\/$/,et=/#.*$/;F.started=!1,l.extend(F.prototype,a,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(t==null)if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var s=this.root.replace(J,"");t.indexOf(s)||(t=t.slice(s.length))}else t=this.getHash();return t.replace(R,"")},start:function(t){if(F.started)throw new Error("Backbone.history has already been started");F.started=!0,this.options=l.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var e=this.getFragment(),s=document.documentMode,h=tt.exec(navigator.userAgent.toLowerCase())&&(!s||s<=7);if(this.root=("/"+this.root+"/").replace(K,"/"),h&&this._wantsHashChange){var w=f.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=w.hide().appendTo("body")[0].contentWindow,this.navigate(e)}this._hasPushState?f.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!h?f.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=e;var k=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&&this.atRoot()&&k.hash&&(this.fragment=this.getHash().replace(R,""),this.history.propertyIsEnumerable({},document.title,this.root+this.fragment))}if(!this.options.silent)return this.loadUrl()},stop:function(){f.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),F.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe&&(e=this.getFragment(this.getHash(this.iframe))),e===this.fragment)return!1;this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(t){return t=this.fragment=this.getFragment(t),l.any(this.handlers,function(e){if(e.route.test(t))return e.callback(t),!0})},navigate:function(t,e){if(!F.started)return!1;(!e||e===!0)&&(e={trigger:!!e});var s=this.root+(t=this.getFragment(t||""));if(t=t.replace(et,""),this.fragment!==t){if(this.fragment=t,t===""&&s!=="/"&&(s=s.slice(0,-1)),this._hasPushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,s);else if(this._wantsHashChange)this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getFragment(this.getHash(this.iframe))&&(e.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,t,e.replace));else return this.location.assign(s);if(e.trigger)return this.loadUrl(t)}},_updateHash:function(t,e,s){if(s){var h=t.href.replace(/(javascript:|#).*$/,"");t.replace(h+"#"+e)}else t.hash="#"+e}}),f.history=new F;var it=function(t,e){var s=this,h;t&&l.has(t,"constructor")?h=t.constructor:h=function(){return s.apply(this,arguments)},l.extend(h,s,e);var w=function(){this.constructor=h};return w.prototype=s.prototype,h.prototype=new w,t&&l.extend(h.prototype,t),h.__super__=s.prototype,h};g.extend=x.extend=B.extend=L.extend=F.extend=it;var Y=function(){throw new Error('A "url" property or function must be specified')},n=function(t,e){var s=e.error;e.error=function(h){s&&s(t,h,e),t.trigger("error",t,h,e)}};return f});/*! 2 * imagesLoaded PACKAGED v3.1.8 3 * JavaScript is all like "You images are done yet or what?" 4 * MIT License 5 */(function(){function c(){}function f(i,r){for(var o=i.length;o--;)if(i[o].listener===r)return o;return-1}function l(i){return function(){return this[i].apply(this,arguments)}}var m=c.prototype,d=this,y=d.EventEmitter;m.getListeners=function(i){var r,o,a=this._getEvents();if(typeof i=="object"){r={};for(o in a)a.hasOwnProperty(o)&&i.test(o)&&(r[o]=a[o])}else r=a[i]||(a[i]=[]);return r},m.flattenListeners=function(i){var r,o=[];for(r=0;i.length>r;r+=1)o.push(i[r].listener);return o},m.getListenersAsObject=function(i){var r,o=this.getListeners(i);return o instanceof Array&&(r={},r[i]=o),r||o},m.addListener=function(i,r){var o,a=this.getListenersAsObject(i),E=typeof r=="object";for(o in a)a.hasO
5wnProperty(o)&&f(a[o],r)===-1&&a[o].push(E?r:{listener:r,once:!1});return this},m.on=l("addListener"),m.addOnceListener=function(i,r){return this.addListener(i,{listener:r,once:!0})},m.once=l("addOnceListener"),m.defineEvent=function(i){return this.getListeners(i),this},m.defineEvents=function(i){for(var r=0;i.length>r;r+=1)this.defineEvent(i[r]);return this},m.removeListener=function(i,r){var o,a,E=this.getListenersAsObject(i);for(a in E)E.hasOwnProperty(a)&&(o=f(E[a],r),o!==-1&&E[a].splice(o,1));return this},m.off=l("removeListener"),m.addListeners=function(i,r){return this.manipulateListeners(!1,i,r)},m.removeListeners=function(i,r){return this.manipulateListeners(!0,i,r)},m.manipulateListeners=function(i,r,o){var a,E,T=i?this.removeListener:this.addListener,p=i?this.removeListeners:this.addListeners;if(typeof r!="object"||r instanceof RegExp)for(a=o.length;a--;)T.call(this,r,o[a]);else for(a in r)r.hasOwnProperty(a)&&(E=r[a])&&(typeof E=="function"?T.call(this,a,E):p.call(this,a,E));return this},m.removeEvent=function(i){var r,o=typeof i,a=this._getEvents();if(o==="string")delete a[i];else if(o==="object")for(r in a)a.hasOwnProperty(r)&&i.test(r)&&delete a[r];else delete this._events;return this},m.removeAllListeners=l("removeEvent"),m.emitEvent=function(i,r){var o,a,E,T,p=this.getListenersAsObject(i);for(E in p)if(p.hasOwnProperty(E))for(a=p[E].length;a--;)o=p[E][a],o.once===!0&&this.removeListener(i,o.listener),T=o.listener.apply(this,r||[]),T===this._getOnceReturnValue()&&this.removeListener(i,o.listener);return this},m.trigger=l("emitEvent"),m.emit=function(i){var r=Array.prototype.slice.call(arguments,1);return this.emitEvent(i,r)},m.setOnceReturnValue=function(i){return this._onceReturnValue=i,this},m._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},m._getEvents=function(){return this._events||(this._events={})},c.noConflict=function(){return d.EventEmitter=y,c},typeof define=="function"&&define.amd?define("eventEmitter/EventEmitter",[],function(){return c}):typeof module=="object"&&module.exports?module.exports=c:this.EventEmitter=c}).call(this),function(c){function f(i){var r=c.event;return r.target=r.target||r.srcElement||i,r}var l=document.documentElement,m=function(){};l.addEventListener?m=function(i,r,o){i.addEventListener(r,o,!1)}:l.attachEvent&&(m=function(i,r,o){i[r+o]=o.handleEvent?function(){var a=f(i);o.handleEvent.call(o,a)}:function(){var a=f(i);o.call(i,a)},i.attachEvent("on"+r,i[r+o])});var d=function(){};l.removeEventListener?d=function(i,r,o){i.removeEventListener(r,o,!1)}:l.detachEvent&&(d=function(i,r,o){i.detachEvent("on"+r,i[r+o]);try{delete i[r+o]}catch(a){i[r+o]=void 0}});var y={bind:m,unbind:d};typeof define=="function"&&define.amd?define("eventie/eventie",y):c.eventie=y}(this),function(c,f){typeof define=="function"&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(l,m){return f(c,l,m)}):typeof exports=="object"?module.exports=f(c,require("wolfy87-eventemitter"),require("eventie")):c.imagesLoaded=f(c,c.EventEmitter,c.eventie)}(window,function(c,f,l){function m(g,v){for(var x in v)g[x]=v[x];return g}function d(g){return p.call(g)==="[object Array]"}function y(g){var v=[];if(d(g))v=g;else if(typeof g.length=="number")for(var x=0,S=g.length;S>x;x++)v.push(g[x]);else v.push(g);return v}function i(g,v,x){if(!(this instanceof i))return new i(g,v);typeof g=="string"&&(g=document.querySelectorAll(g)),this.elements=y(g),this.options=m({},this.options),typeof v=="function"?x=v:m(this.options,v),x&&this.on("always",x),this.getImages(),a&&(this.jqDeferred=new a.Deferred);var S=this;setTimeout(function(){S.check()})}function r(g){this.img=g}function o(g){this.src=g,_[g]=this}var a=c.jQuery,E=c.console,T=E!==void 0,p=Object.prototype.toString;i.prototype=new f,i.prototype.options={},i.prototype.getImages=function(){this.images=[];for(var g=0,v=this.elements.length;v>g;g++){var x=this.elements[g];x.nodeName==="IMG"&&this.addImage(x);var S=x.nodeType;if(S&&(S===1||S===9||S===11))for(var b=x.querySelectorAll("img"),C=0,P=b.length;P>C;C++){var L=b[C];this.addImage(L)}}},i.prototype.addImage=function(g){var v=new r(g);this.images.push(v)},i.prototype.check=function(){function g(P,L){return v.options.debug&&T&&E.log("confirm",P,L),v.progress(P),x++,x===S&&v.complete(),!0}var v=this,x=0,S=this.images.length;if(this.hasAnyBroken=!1,!S)return this.complete(),void 0;for(var b=0;S>b;b++){var C=this.images[b];C.on("confirm",g),C.check()}},i.prototype.progress=function(g){this.hasAnyBroken=this.hasAnyBroken||!g.isLoaded;var v=this;setTimeout(function(){v.emit("progress",v,g),v.jqDeferred&&v.jqDeferred.notify&&v.jqDeferred.notify(v,g)})},i.prototype.complete=function(){var g=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var v=this;setTimeout(function(){if(v.emit(g,v),v.emit("always",v),v.jqDeferred){var x=v.hasAnyBroken?"reject":"resolve";v.jqDeferred[x](v)}})},a&&(a.fn.imagesLoaded=function(g,v){var x=new i(this,g,v);return x.jqDeferred.promise(a(this))}),r.prototype=new f,r.prototype.check=function(){var g=_[this.img.src]||new o(this.img.src);if(g.isConfirmed)return this.confirm(g.isLoaded,"cached was confirmed"),void 0;
5if(this.img.complete&&this.img.naturalWidth!==void 0)return this.confirm(this.img.naturalWidth!==0,"naturalWidth"),void 0;var v=this;g.on("confirm",function(x,S){return v.confirm(x.isLoaded,S),!0}),g.check()},r.prototype.confirm=function(g,v){this.isLoaded=g,this.emit("confirm",this,v)};var _={};return o.prototype=new f,o.prototype.check=function(){if(!this.isChecked){var g=new Image;l.bind(g,"load",this),l.bind(g,"error",this),g.src=this.src,this.isChecked=!0}},o.prototype.handleEvent=function(g){var v="on"+g.type;this[v]&&this[v](g)},o.prototype.onload=function(g){this.confirm(!0,"onload"),this.unbindProxyEvents(g)},o.prototype.onerror=function(g){this.confirm(!1,"onerror"),this.unbindProxyEvents(g)},o.prototype.confirm=function(g,v){this.isConfirmed=!0,this.isLoaded=g,this.emit("confirm",this,v)},o.prototype.unbindProxyEvents=function(g){l.unbind(g.target,"load",this),l.unbind(g.target,"error",this)},i});/*! 6* FitVids 1.1 7* 8* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com 9* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ 10* Released under the WTFPL license - http://sam.zoy.org/wtfpl/ 11* 12*/(function(c){"use strict";c.fn.fitVids=function(f){var l={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var m=document.head||document.getElementsByTagName("head")[0],d=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}",y=document.createElement("div");y.innerHTML='<p>x</p><style id="fit-vids-style">'+d+"</style>",m.appendChild(y.childNodes[1])}return f&&c.extend(l,f),this.each(function(){var i=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];l.customSelector&&i.push(l.customSelector);var r=".fitvidsignore";l.ignore&&(r=r+", "+l.ignore);var o=c(this).find(i.join(","));o=o.not("object object"),o=o.not(r),o.each(function(){var a=c(this);if(!(a.parents(r).length>0)&&!(this.tagName.toLowerCase()==="embed"&&a.parent("object").length||a.parent(".fluid-width-video-wrapper").length)){!a.css("height")&&!a.css("width")&&(isNaN(a.attr("height"))||isNaN(a.attr("width")))&&(a.attr("height",9),a.attr("width",16));var E=this.tagName.toLowerCase()==="object"||a.attr("height")&&!isNaN(parseInt(a.attr("height"),10))?parseInt(a.attr("height"),10):a.height(),T=isNaN(parseInt(a.attr("width"),10))?a.width():parseInt(a.attr("width"),10),p=E/T;if(!a.attr("id")){var _="fitvid"+Math.floor(Math.random()*999999);a.attr("id",_)}a.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",p*100+"%"),a.removeAttr("height").removeAttr("width")}})})}})(window.jQuery||window.Zepto);var twitterFetcher=function(){function c(v){return v.replace(/<b[^>]*>(.*?)<\/b>/gi,function(x,S){return S}).replace(/class=".*?"|data-query-source=".*?"|dir=".*?"|rel=".*?"/gi,"")}function f(v,x){for(var S=[],b=new RegExp("(^| )"+x+"( |$)"),C=v.getElementsByTagName("*"),P=0,L=C.length;P<L;P++)b.test(C[P].className)&&S.push(C[P]);return S}var l="",m=20,d=!0,y=[],i=!1,r=!0,o=!0,a=null,E=!0,T=!0,p=null,_=!0,g=!1;return{fetch:function(v){if(v.maxTweets===void 0&&(v.maxTweets=20),v.enableLinks===void 0&&(v.enableLinks=!0),v.showUser===void 0&&(v.showUser=!0),v.showTime===void 0&&(v.showTime=!0),v.dateFunction===void 0&&(v.dateFunction="default"),v.showRetweet===void 0&&(v.showRetweet=!0),v.customCallback===void 0&&(v.customCallback=null),v.showInteraction===void 0&&(v.showInteraction=!0),v.showImages===void 0&&(v.showImages=!1),i)y.push(v);else{i=!0,l=v.domId,m=v.maxTweets,d=v.enableLinks,o=v.showUser,r=v.showTime,T=v.showRetweet,a=v.dateFunction,p=v.customCallback,_=v.showInteraction,g=v.showImages;var x=document.createElement("script");x.type="text/javascript",x.src="https://cdn.syndication.twimg.com/widgets/timelines/"+v.id+"?&lang="+(v.lang||"en")+"&callback=twitterFetcher.callback&suppress_response_codes=true&rnd="+Math.random(),document.getElementsByTagName("head")[0].appendChild(x)}},callback:function(v){var x=document.createElement("div");x.innerHTML=v.body,typeof x.getElementsByClassName=="undefined"&&(E=!1),v=[];var S=[],b=[],C=[],P=[],L=[],M=0;if(E)for(x=x.getElementsByClassName("tweet");M<x.length;)0<x[M].getElementsByClassName("retweet-credit").length?P.push(!0):P.push(!1),(!P[M]||P[M]&&T)&&(v.push(x[M].getElementsByClassName("e-entry-title")[0]),L.push(x[M].getAttribute("data-tweet-id")),S.push(x[M].getElementsByClassName("p-author")[0]),b.push(x[M].getElementsByClassName("dt-updated")[0]),x[M].getElementsByClassName("inline-media")[0]!==void 0?C.push(x[M].getElementsByClassName("inline-media")[0]):C.push(void 0)),M++;else for(x=f(x,"tweet");M<x.length;)v.push(f(x[M],"e-entry-title")[0]),L.push(x[M].getAttribute("data-tweet-id")),S.push(f(x[M],"p-author")[0]),b.push(f(x[M],"dt-updated")[0]),f(x[M],"inline-media")[0]!==void 0?C.push(f(x[M],"inline-media")[0]):C.push(void 0),0<f(x[M],"retweet-credit").length?P.push(!0):P.push(!1),M++;for(v.length>m&&(v.splice(m,v.length-m),S.splice(m,S.length-m),b.splice(m,b.length-m),P.splice(m,P.length-m),C.splice(m,C.length-m)),x=[],M=v.length,P=0;P<M;){if(typeof a!="string"){var u=new Date(b[P].getAttribute("datetime").replace(/-/g,"/").replace("T"," ").split("+")[0]),u=a(u);if(b[P].setAttribute("aria-label",u),v[P].innerText)if(E)b[P].innerText=u;else{var D=document.createElement("p"),O=document.createTextNode(u);D.appendChild(O),D.setAttribute("aria-label",u),b[P]=D}else b[P].textContent=u}u="",d?(o&&(u+='<div class="user">'+c(S[P].innerHTML)+"</div>"),u+='<p class="tweet">'+c(v[P].innerHTML)+"</p>",r&&(u+='<p class="timePosted">'+b[P].getAttribute("aria-label")+"</p>")):v[P].innerText?(o&&(u+='<p class="user">'+S[P].innerText+"</p>"),u+='<p class="tweet">'+v[P].innerText+"</p>",r&&(u+='<p class="timePosted">'+b[P].innerText+"</p>")):(o&&(u+='<p class="user">'+S[P].textContent+"</p>"),u+='<p class="tweet">'+v[P].textContent+"</p>",r&&(u+='<p class="timePosted">'+b[P].textContent+"</p>")),_&&(u+='<p class="interact"><a href="https://twitter.com/intent/tweet?in_reply_to='+L[P]+'" class="twitter_reply_icon">Reply</a><a href="https://twitter.com/intent/retweet?tweet_id='+L[P]+'" class="twitter_retweet_icon">Retweet</a><a href="https://twitter.com/intent/favorite?tweet_id='+L[P]+'" class="twitter_fav_icon">Favorite</a></p>'),g&&C[P]!==void 0&&(D=C[P],D!==void 0?(D=D.innerHTML.match(/data-srcset="([A-z0-9%_\.-]+)/i)[0],D=decodeURIComponent(D).split('"')[1]):D=void 0,u+='<div class="media"><img src="'+D+'" alt="Image from tweet" /></div>'),x.push(u),P++}if(p===null){for(v=x.length,S=0,b=document.getElementById(l),C="<ul>";S<v;)C+="<li>"+x[S]+"</li>",S++;b.innerHTML=C+"</ul>"}else p(x);i=!1,0<y.length&&(twitterFetcher.fetch(y[0]),y.splice(0,1))}}}();/*! 13 * Flickity PACKAGED v1.0.0 14 * Touch, responsive, flickable galleries 15 * 16 * Licensed GPLv3 for open source use 17 * or Flickity Commercial License for commercial use 18 * 19 * http://flickity.metafizzy.co 20 * Copyright 2015 Metafizzy 21 */(function(c){function f(){}function l(d){function y(o){o.prototype.option||(o.prototype.option=function(a){d.isPlainObject(a)&&(this.options=d.extend(!0,this.options,a))})}function i(o,a){d.fn[o]=function(E){if(typeof E=="string"){for(var T=m.call(arguments,1
21),p=0,_=this.length;_>p;p++){var g=this[p],v=d.data(g,o);if(v)if(d.isFunction(v[E])&&E.charAt(0)!=="_"){var x=v[E].apply(v,T);if(x!==void 0)return x}else r("no such method '"+E+"' for "+o+" instance");else r("cannot call methods on "+o+" prior to initialization; attempted to call '"+E+"'")}return this}return this.each(function(){var S=d.data(this,o);S?(S.option(E),S._init()):(S=new a(this,E),d.data(this,o,S))})}}if(d){var r=typeof console=="undefined"?f:function(o){console.error(o)};return d.bridget=function(o,a){y(a),i(o,a)},d.bridget}}var m=Array.prototype.slice;typeof define=="function"&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],l):l(typeof exports=="object"?require("jquery"):c.jQuery)})(window),function(c){function f(r){return new RegExp("(^|\\s+)"+r+"(\\s+|$)")}function l(r,o){var a=m(r,o)?y:d;a(r,o)}var m,d,y;"classList"in document.documentElement?(m=function(r,o){return r.classList.contains(o)},d=function(r,o){r.classList.add(o)},y=function(r,o){r.classList.remove(o)}):(m=function(r,o){return f(o).test(r.className)},d=function(r,o){m(r,o)||(r.className=r.className+" "+o)},y=function(r,o){r.className=r.className.replace(f(o)," ")});var i={hasClass:m,addClass:d,removeClass:y,toggleClass:l,has:m,add:d,remove:y,toggle:l};typeof define=="function"&&define.amd?define("classie/classie",i):typeof exports=="object"?module.exports=i:c.classie=i}(window),function(){function c(){}function f(i,r){for(var o=i.length;o--;)if(i[o].listener===r)return o;return-1}function l(i){return function(){return this[i].apply(this,arguments)}}var m=c.prototype,d=this,y=d.EventEmitter;m.getListeners=function(i){var r,o,a=this._getEvents();if(i instanceof RegExp){r={};for(o in a)a.hasOwnProperty(o)&&i.test(o)&&(r[o]=a[o])}else r=a[i]||(a[i]=[]);return r},m.flattenListeners=function(i){var r,o=[];for(r=0;r<i.length;r+=1)o.push(i[r].listener);return o},m.getListenersAsObject=function(i){var r,o=this.getListeners(i);return o instanceof Array&&(r={},r[i]=o),r||o},m.addListener=function(i,r){var o,a=this.getListenersAsObject(i),E=typeof r=="object";for(o in a)a.hasOwnProperty(o)&&f(a[o],r)===-1&&a[o].push(E?r:{listener:r,once:!1});return this},m.on=l("addListener"),m.addOnceListener=function(i,r){return this.addListener(i,{listener:r,once:!0})},m.once=l("addOnceListener"),m.defineEvent=function(i){return this.getListeners(i),this},m.defineEvents=function(i){for(var r=0;r<i.length;r+=1)this.defineEvent(i[r]);return this},m.removeListener=function(i,r){var o,a,E=this.getListenersAsObject(i);for(a in E)E.hasOwnProperty(a)&&(o=f(E[a],r),o!==-1&&E[a].splice(o,1));return this},m.off=l("removeListener"),m.addListeners=function(i,r){return this.manipulateListeners(!1,i,r)},m.removeListeners=function(i,r){return this.manipulateListeners(!0,i,r)},m.manipulateListeners=function(i,r,o){var a,E,T=i?this.removeListener:this.addListener,p=i?this.removeListeners:this.addListeners;if(typeof r!="object"||r instanceof RegExp)for(a=o.length;a--;)T.call(this,r,o[a]);else for(a in r)r.hasOwnProperty(a)&&(E=r[a])&&(typeof E=="function"?T.call(this,a,E):p.call(this,a,E));return this},m.removeEvent=function(i){var r,o=typeof i,a=this._getEvents();if(o==="string")delete a[i];else if(i instanceof RegExp)for(r in a)a.hasOwnProperty(r)&&i.test(r)&&delete a[r];else delete this._events;return this},m.removeAllListeners=l("removeEvent"),m.emitEvent=function(i,r){var o,a,E,T,p=this.getListenersAsObject(i);for(E in p)if(p.hasOwnProperty(E))for(a=p[E].length;a--;)o=p[E][a],o.once===!0&&this.removeListener(i,o.listener),T=o.listener.apply(this,r||[]),T===this._getOnceReturnValue()&&this.removeListener(i,o.listener);return this},m.trigger=l("emitEvent"),m.emit=function(i){var r=Array.prototype.slice.call(arguments,1);return this.emitEvent(i,r)},m.setOnceReturnValue=function(i){return this._onceReturnValue=i,this},m._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},m._getEvents=function(){return this._events||(this._events={})},c.noConflict=function(){return d.EventEmitter=y,c},typeof define=="function"&&define.amd?define("eventEmitter/EventEmitter",[],function(){return c}):typeof module=="object"&&module.exports?module.exports=c:d.EventEmitter=c}.call(this),function(c){function f(i){var r=c.event;return r.target=r.target||r.srcElement||i,r}var l=document.documentElement,m=function(){};l.addEventListener?m=function(i,r,o){i.addEventListener(r,o,!1)}:l.attachEvent&&(m=function(i,r,o){i[r+o]=o.handleEvent?function(){var a=f(i);o.handleEvent.call(o,a)}:function(){var a=f(i);o.call(i,a)},i.attachEvent("on"+r,i[r+o])});var d=function(){};l.removeEventListener?d=function(i,r,o){i.removeEventListener(r,o,!1)}:l.detachEvent&&(d=function(i,r,o){i.detachEvent("on"+r,i[r+o]);try{delete i[r+o]}catch(a){i[r+o]=void 0}});var y={bind:m,unbind:d};typeof define=="function"&&define.amd?define("eventie/eventie",y):typeof exports=="object"?module.exports=y:c.eventie=y}(window),function(c){function f(d){if(d){if(typeof m[d]=="string")return d;d=d.charAt(0).toUpperCase()+d.slice(1);for(var y,i=0,r=l.length;r>i;i++)if(y=l[i]+d,typeof m[y]=="string")return y}}var l="Webkit Moz ms Ms O".split(" "),m=document.documentElement.style;typeof define=="function"&&define.amd?define("get-style-property/get-style-property",[],function(){return f}):typeof exports=="object"?module.exports=f:c.getStyleProperty=f}(window),function(c){function f(r){var o=parseFloat(r),a=r.indexOf("%")===-1&&!isNaN(o);return a&&o}function l(){}function m(){for(var r={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},o=0,a=i.length;a>o;o++){var E=i[o];r[E]=0}return r}function d(r){function o(){if(!g){g=!0;var v=c.getComputedStyle;if(T=function(){var C=v?function(P){return v(P,null)}:function(P){return P.currentStyle};return function(P){var L=C(P);return L||y("Style returned "+L+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),L}}(),p=r("boxSizing")){var x=document.createElement("div");x.style.width="200px",x.style.padding="1px 2px 3px 4px",x.style.borderStyle="solid",x.style.borderWidth="1px 2px 3px 4px",x.style[p]="border-box";var S=document.body||document.documentElement;S.appendChild(x);var b=T(x);_=f(b.width)===200,S.removeChild(x)}}}function a(v){if(o(),typeof v=="string"&&(v=document.querySelector(v)),v&&typeof v=="object"&&v.nodeType){var x=T(v);if(x.display==="none")return m();var S={};S.width=v.offsetWidth,S.height=v.offsetHeight;for(var b=S.isBorderBox=!(!p||!x[p]||x[p]!=="border-box"),C=0,P=i.length;P>C;C++){var L=i[C],M=x[L];M=E(v,M);
21var u=parseFloat(M);S[L]=isNaN(u)?0:u}var D=S.paddingLeft+S.paddingRight,O=S.paddingTop+S.paddingBottom,B=S.marginLeft+S.marginRight,q=S.marginTop+S.marginBottom,H=S.borderLeftWidth+S.borderRightWidth,G=S.borderTopWidth+S.borderBottomWidth,W=b&&_,F=f(x.width);F!==!1&&(S.width=F+(W?0:D+H));var R=f(x.height);return R!==!1&&(S.height=R+(W?0:O+G)),S.innerWidth=S.width-(D+H),S.innerHeight=S.height-(O+G),S.outerWidth=S.width+B,S.outerHeight=S.height+q,S}}function E(v,x){if(c.getComputedStyle||x.indexOf("%")===-1)return x;var S=v.style,b=S.left,C=v.runtimeStyle,P=C&&C.left;return P&&(C.left=v.currentStyle.left),S.left=x,x=S.pixelLeft,S.left=b,P&&(C.left=P),x}var T,p,_,g=!1;return a}var y=typeof console=="undefined"?l:function(r){console.error(r)},i=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];typeof define=="function"&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],d):typeof exports=="object"?module.exports=d(require("desandro-get-style-property")):c.getSize=d(c.getStyleProperty)}(window),function(c){function f(r){typeof r=="function"&&(f.isReady?r():i.push(r))}function l(r){var o=r.type==="readystatechange"&&y.readyState!=="complete";f.isReady||o||m()}function m(){f.isReady=!0;for(var r=0,o=i.length;o>r;r++){var a=i[r];a()}}function d(r){return y.readyState==="complete"?m():(r.bind(y,"DOMContentLoaded",l),r.bind(y,"readystatechange",l),r.bind(c,"load",l)),f}var y=c.document,i=[];f.isReady=!1,typeof define=="function"&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],d):typeof exports=="object"?module.exports=d(require("eventie")):c.docReady=d(c.eventie)}(window),function(c){function f(a,E){return a[i](E)}function l(a){if(!a.parentNode){var E=document.createDocumentFragment();E.appendChild(a)}}function m(a,E){l(a);for(var T=a.parentNode.querySelectorAll(E),p=0,_=T.length;_>p;p++)if(T[p]===a)return!0;return!1}function d(a,E){return l(a),f(a,E)}var y,i=function(){if(c.matchesSelector)return"matchesSelector";for(var a=["webkit","moz","ms","o"],E=0,T=a.length;T>E;E++){var p=a[E],_=p+"MatchesSelector";if(c[_])return _}}();if(i){var r=document.createElement("div"),o=f(r,"div");y=o?f:d}else y=m;typeof define=="function"&&define.amd?define("matches-selector/matches-selector",[],function(){return y}):typeof exports=="object"?module.exports=y:window.matchesSelector=y}(Element.prototype),function(c,f){typeof define=="function"&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(l,m){return f(c,l,m)}):typeof exports=="object"?module.exports=f(c,require("doc-ready"),require("desandro-matches-selector")):c.fizzyUIUtils=f(c,c.docReady,c.matchesSelector)}(window,function(c,f,l){function m(o){return o.replace(/(.)([A-Z])/g,function(a,E,T){return E+"-"+T}).toLowerCase()}var d={};d.extend=function(o,a){for(var E in a)o[E]=a[E];return o},d.modulo=function(o,a){return(o%a+a)%a};var y=Object.prototype.toString;d.isArray=function(o){return y.call(o)=="[object Array]"},d.makeArray=function(o){var a=[];if(d.isArray(o))a=o;else if(o&&typeof o.length=="number")for(var E=0,T=o.length;T>E;E++)a.push(o[E]);else a.push(o);return a},d.indexOf=Array.prototype.indexOf?function(o,a){return o.indexOf(a)}:function(o,a){for(var E=0,T=o.length;T>E;E++)if(o[E]===a)return E;return-1},d.removeFrom=function(o,a){var E=d.indexOf(o,a);E!=-1&&o.splice(E,1)},d.isElement=typeof HTMLElement=="function"||typeof HTMLElement=="object"?function(o){return o instanceof HTMLElement}:function(o){return o&&typeof o=="object"&&o.nodeType==1&&typeof o.nodeName=="string"},d.setText=function(){function o(E,T){a=a||(document.documentElement.textContent!==void 0?"textContent":"innerText"),E[a]=T}var a;return o}(),d.getParent=function(o,a){for(;o!=document.body;)if(o=o.parentNode,l(o,a))return o},d.getQueryElement=function(o){return typeof o=="string"?document.querySelector(o):o},d.handleEvent=function(o){var a="on"+o.type;this[a]&&this[a](o)},d.filterFindElements=function(o,a){o=d.makeArray(o);for(var E=[],T=0,p=o.length;p>T;
21T++){var _=o[T];if(d.isElement(_))if(a){l(_,a)&&E.push(_);for(var g=_.querySelectorAll(a),v=0,x=g.length;x>v;v++)E.push(g[v])}else E.push(_)}return E},d.debounceMethod=function(o,a,E){var T=o.prototype[a],p=a+"Timeout";o.prototype[a]=function(){var _=this[p];_&&clearTimeout(_);var g=arguments,v=this;this[p]=setTimeout(function(){T.apply(v,g),delete v[p]},E||100)}};var i=c.jQuery,r=c.console;return d.htmlInit=function(o,a){f(function(){for(var E=m(a),T=document.querySelectorAll(".js-"+E),p="data-"+E+"-options",_=0,g=T.length;g>_;_++){var v,x=T[_],S=x.getAttribute(p);try{v=S&&JSON.parse(S)}catch(C){r&&r.error("Error parsing "+p+" on "+x.nodeName.toLowerCase()+(x.id?"#"+x.id:"")+": "+C);continue}var b=new o(x,v);i&&i.data(x,a,b)}})},d}),function(c,f){typeof define=="function"&&define.amd?define("flickity/js/cell",["get-size/get-size"],function(l){return f(c,l)}):typeof exports=="object"?module.exports=f(c,require("get-size")):(c.Flickity=c.Flickity||{},c.Flickity.Cell=f(c,c.getSize))}(window,function(c,f){function l(d,y){this.element=d,this.parent=y,this.create()}var m="attachEvent"in c;return l.prototype.create=function(){this.element.style.position="absolute",m&&this.element.setAttribute("unselectable","on"),this.x=0,this.shift=0},l.prototype.destroy=function(){this.element.style.position="";var d=this.parent.originSide;this.element.style[d]=""},l.prototype.getSize=function(){this.size=f(this.element)},l.prototype.setPosition=function(d){this.x=d,this.setDefaultTarget(),this.renderPosition(d)},l.prototype.setDefaultTarget=function(){var d=this.parent.originSide=="left"?"marginLeft":"marginRight";this.target=this.x+this.size[d]+this.size.width*this.parent.cellAlign},l.prototype.renderPosition=function(d){var y=this.parent.originSide;this.element.style[y]=this.parent.getPositionValue(d)},l.prototype.wrapShift=function(d){this.shift=d,this.renderPosition(this.x+this.parent.slideableWidth*d)},l.prototype.remove=function(){this.element.parentNode.removeChild(this.element)},l}),function(c,f){typeof define=="function"&&define.amd?define("flickity/js/animate",["get-style-property/get-style-property","fizzy-ui-utils/utils"],function(l,m){return f(c,l,m)}):typeof exports=="object"?module.exports=f(c,require("desandro-get-style-property"),require("fizzy-ui-utils")):(c.Flickity=c.Flickity||{},c.Flickity.animatePrototype=f(c,c.getStyleProperty,c.fizzyUIUtils))}(window,function(c,f,l){for(var m,d=0,y="webkit moz ms o".split(" "),i=c.requestAnimationFrame,r=c.cancelAnimationFrame,o=0;o<y.length&&(!i||!r);o++)m=y[o],i=i||c[m+"RequestAnimationFrame"],r=r||c[m+"CancelAnimationFrame"]||c[m+"CancelRequestAnimationFrame"];i&&r||(i=function(p){var _=new Date().getTime(),g=Math.max(0,16-(_-d)),v=c.setTimeout(function(){p(_+g)},g);return d=_+g,v},r=function(p){c.clearTimeout(p)});var a={};a.startAnimation=function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},a.animate=function(){this.applySelectedAttraction();var p=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(p),this.isAnimating){var _=this;i(function(){_.animate()})}};var E=f("transform"),T=!!f("perspective");return a.positionSlider=function(){var p=this.x;this.options.wrapAround&&this.cells.length>1&&(p=l.modulo(p,this.slideableWidth),p-=this.slideableWidth,this.shiftWrapCells(p)),p+=this.cursorPosition,p=this.options.rightToLeft&&E?-p:p;var _=this.getPositionValue(p);E?this.slider.style[E]=T&&this.isAnimating?"translate3d("+_+",0,0)":"translateX("+_+")":this.slider.style[this.originSide]=_},a.positionSliderAtSelected=function(){if(this.cells.length){var p=this.cells[this.selectedIndex];this.x=-p.target,this.positionSlider()}},a.getPositionValue=function(p){return this.options.percentPosition?.01*Math.round(p/this.size.innerWidth*1e4)+"%":Math.round(p)+"px"},a.settle=function(p){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*p)||this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,T&&this.positionSlider(),this.dispatchEvent("settle"))},a.shiftWrapCells=function(p){var _=this.cursorPosition+p;this._shiftCells(this.beforeShiftCells,_,-1);var g=this.size.innerWidth-(p+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,g,1)},a._shiftCells=function(p,_,g){for(var v=0,x=p.length;x>v;v++){var S=p[v],b=_>0?g:0;S.wrapShift(b),_-=S.size.outerWidth}},a._unshiftCells=function(p){if(p&&p.length)for(var _=0,g=p.length;g>_;_++)p[_].wrapShift(0)},a.integratePhysics=function(){this.velocity+=this.accel,this.x+=this.velocity,this.velocity
21*=this.getFrictionFactor(),this.accel=0},a.applyForce=function(p){this.accel+=p},a.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},a.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())},a.applySelectedAttraction=function(){var p=this.cells.length;if(!this.isPointerDown&&!this.isFreeScrolling&&p){var _=this.cells[this.selectedIndex],g=this.options.wrapAround&&p>1?this.slideableWidth*Math.floor(this.selectedIndex/p):0,v=-1*(_.target+g)-this.x,x=v*this.options.selectedAttraction;this.applyForce(x)}},a}),function(c,f){if(typeof define=="function"&&define.amd)define("flickity/js/flickity",["classie/classie","eventEmitter/EventEmitter","eventie/eventie","get-size/get-size","fizzy-ui-utils/utils","./cell","./animate"],function(m,d,y,i,r,o,a){return f(c,m,d,y,i,r,o,a)});else if(typeof exports=="object")module.exports=f(c,require("desandro-classie"),require("wolfy87-eventemitter"),require("eventie"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./animate"));else{var l=c.Flickity;c.Flickity=f(c,c.classie,c.EventEmitter,c.eventie,c.getSize,c.fizzyUIUtils,l.Cell,l.animatePrototype)}}(window,function(c,f,l,m,d,y,i,r){function o(b,C){for(b=y.makeArray(b);b.length;)C.appendChild(b.shift())}function a(b,C){var P=y.getQueryElement(b);return P?(this.element=P,E&&(this.$element=E(this.element)),this.options=y.extend({},this.constructor.defaults),this.option(C),void this._create()):void(p&&p.error("Bad element for Flickity: "+(P||b)))}var E=c.jQuery,T=c.getComputedStyle,p=c.console,_=0,g={};a.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},a.createMethods=[],y.extend(a.prototype,l.prototype),a.prototype._create=function(){var b=this.guid=++_;this.element.flickityGUID=b,g[b]=this,this.selectedIndex=this.options.initialIndex||0,this.restingFrames=0,this.x=0,this.velocity=0,this.accel=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",a.setUnselectable(this.viewport),this._createSlider(),(this.options.resize||this.options.watchCSS)&&(m.bind(c,"resize",this),this.isResizeBound=!0);for(var C=0,P=a.createMethods.length;P>C;C++){var L=a.createMethods[C];this[L]()}this.options.watchCSS?this.watchCSS():this.activate()},a.prototype.option=function(b){y.extend(this.options,b)},a.prototype.activate=function(){if(!this.isActive){this.isActive=!0,f.add(this.element,"flickity-enabled"),this.options.rightToLeft&&f.add(this.element,"flickity-rtl");var b=this._filterFindCellElements(this.element.children);o(b,this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.getSize(),this.reloadCells(),this.setGallerySize(),this.options.accessibility&&(this.element.tabIndex=0,m.bind(this.element,"keydown",this)),this.emit("activate"),this.positionSliderAtSelected(),this.select(this.selectedIndex)}},a.prototype._createSlider=function(){var b=document.createElement("div");b.className="flickity-slider",b.style[this.originSide]=0,this.slider=b},a.prototype._filterFindCellElements=function(b){return y.filterFindElements(b,this.options.cellSelector)},a.prototype.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},a.prototype._makeCells=function(b){for(var C=this._filterFindCellElements(b),P=[],L=0,M=C.length;M>L;L++){var u=C[L],D=new i(u,this);P.push(D)}return P},a.prototype.getLastCell=function(){return this.cells[this.cells.length-1]},a.prototype.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},a.prototype._positionCells=function(b){this.maxCellHeight=b&&this.maxCellHeight||0;var C=0;if(b>0){var P=this.cells[b-1];C=P.x+P.size.outerWidth}for(var L,M=this.cells.length,u=b;M>u;u++)L=this.cells[u],L.setPosition(C),C+=L.size.outerWidth,this.maxCellHeight=Math.max(L.size.outerHeight,this.maxCellHeight);this.slideableWidth=C,this._containCells()},a.prototype._sizeCells=function(b){for(var C=0,P=b.length;P>C;C++){var L=b[C];L.getSize()}},a.prototype._init=a.prototype.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},a.prototype.getSize=function(){this.size=d(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var v={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};a.prototype.setCellAlign=function(){var b=v[this.options.cellAlign];this.cellAlign=b?b[this.originSide]:this.options.cellAlign},a.prototype.setGallerySize=function(){this.options.setGallerySize&&(this.viewport.style.height=this.maxCellHeight+"px")},a.prototype._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var b=this.cursorPosition,C=this.cells.length-1;this.beforeShiftCells=this._getGapCells(b,C,-1),b=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(b,0,1)}},a.prototype._getGapCells=function(b,C,P){for(var L=[];b>0;){var M=this.cells[C];if(!M)break;L.push(M),C+=P,b-=M.size.outerWidth}return L},a.prototype._containCells=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length)for(var b=this.options.rightToLeft?"marginRight":"marginLeft",C=this.options.rightToLeft?"marginLeft":"marginRight",P=this.cells[0].size[b],L=this.getLastCell(),M=this.slideableWidth-L.size[C],u=M-this.size.innerWidth*(1-this.cellAlign),D=M<this.size.innerWidth,O=0,B=this.cells.length;B>O;O++){var q=this.cells[O];q.setDefaultTarget(),D?q.target=M*this.cellAlign:(q.target=Math.max(q.target,this.cursorPosition+P),q.target=Math.min(q.target,u))}},a.prototype.dispatchEvent=function(b,C,P){var L=[C].concat(P);if(this.emitEvent(b,L),E&&this.$element)if(C){var M=E.Event(C);M.type=b,this.$element.trigger(M,P)}else this.$element.trigger(b,P)}
21,a.prototype.select=function(b,C){if(this.isActive){var P=this.cells.length;this.options.wrapAround&&P>1&&(0>b?this.x-=this.slideableWidth:b>=P&&(this.x+=this.slideableWidth)),(this.options.wrapAround||C)&&(b=y.modulo(b,P)),this.cells[b]&&(this.selectedIndex=b,this.setSelectedCell(),this.startAnimation(),this.dispatchEvent("cellSelect"))}},a.prototype.previous=function(b){this.select(this.selectedIndex-1,b)},a.prototype.next=function(b){this.select(this.selectedIndex+1,b)},a.prototype.setSelectedCell=function(){this._removeSelectedCellClass(),this.selectedCell=this.cells[this.selectedIndex],this.selectedElement=this.selectedCell.element,f.add(this.selectedElement,"is-selected")},a.prototype._removeSelectedCellClass=function(){this.selectedCell&&f.remove(this.selectedCell.element,"is-selected")},a.prototype.getCell=function(b){for(var C=0,P=this.cells.length;P>C;C++){var L=this.cells[C];if(L.element==b)return L}},a.prototype.getCells=function(b){b=y.makeArray(b);for(var C=[],P=0,L=b.length;L>P;P++){var M=b[P],u=this.getCell(M);u&&C.push(u)}return C},a.prototype.getCellElements=function(){for(var b=[],C=0,P=this.cells.length;P>C;C++)b.push(this.cells[C].element);return b},a.prototype.getParentCell=function(b){var C=this.getCell(b);return C||(b=y.getParent(b,".flickity-slider > *"),this.getCell(b))},a.prototype.uiChange=function(){this.emit("uiChange")},a.prototype.childUIPointerDown=function(b){this.emitEvent("childUIPointerDown",[b])},a.prototype.onresize=function(){this.watchCSS(),this.resize()},y.debounceMethod(a,"onresize",150),a.prototype.resize=function(){this.isActive&&(this.getSize(),this.options.wrapAround&&(this.x=y.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.positionSliderAtSelected())};var x=a.supportsConditionalCSS=function(){var b;return function(){if(b!==void 0)return b;if(!T)return void(b=!1);var C=document.createElement("style"),P=document.createTextNode('body:after { content: "foo"; display: none; }');C.appendChild(P),document.head.appendChild(C);var L=T(document.body,":after").content;return b=L.indexOf("foo")!=-1,document.head.removeChild(C),b}}();a.prototype.watchCSS=function(){var b=this.options.watchCSS;if(b){var C=x();if(!C){var P=b=="fallbackOn"?"activate":"deactivate";return void this[P]()}var L=T(this.element,":after").content;L.indexOf("flickity")!=-1?this.activate():this.deactivate()}},a.prototype.onkeydown=function(b){if(this.options.accessibility&&(!document.activeElement||document.activeElement==this.element)){if(b.keyCode==37){var C=this.options.rightToLeft?"next":"previous";this.uiChange(),this[C]()}else if(b.keyCode==39){var P=this.options.rightToLeft?"previous":"next";this.uiChange(),this[P]()}}},a.prototype.deactivate=function(){if(this.isActive){f.remove(this.element,"flickity-enabled"),f.remove(this.element,"flickity-rtl");for(var b=0,C=this.cells.length;C>b;b++){var P=this.cells[b];P.destroy()}this._removeSelectedCellClass(),this.element.removeChild(this.viewport),o(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),m.unbind(this.element,"keydown",this)),this.isActive=!1,this.emit("deactivate")}},a.prototype.destroy=function(){this.deactivate(),this.isResizeBound&&m.unbind(c,"resize",this),this.emit("destroy"),E&&this.$element&&E.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete g[this.guid]},y.extend(a.prototype,r);var S="attachEvent"in c;return a.setUnselectable=function(b){S&&b.setAttribute("unselectable","on")},a.data=function(b){b=y.getQueryElement(b);var C=b&&b.flickityGUID;return C&&g[C]},y.htmlInit(a,"flickity"),E&&E.bridget&&E.bridget("flickity",a),a.Cell=i,a}),function(c,f){typeof define=="function"&&define.amd?define("unipointer/unipointer",["eventEmitter/EventEmitter","eventie/eventie"],function(l,m){return f(c,l,m)}):typeof exports=="object"?module.exports=f(c,require("wolfy87-eventemitter"),require("eventie")):c.Unipointer=f(c,c.EventEmitter,c.eventie)}(window,function(c,f,l){function m(){}function d(){}d.prototype=new f,d.prototype.bindStartEvent=function(i){this._bindStartEvent(i,!0)},d.prototype.unbindStartEvent=function(i){this._bindStartEvent(i,!1)},d.prototype._bindStartEvent=function(i,r){r=r===void 0?!0:!!r;var o=r?"bind":"unbind";c.navigator.pointerEnabled?l[o](i,"pointerdown",this):c.navigator.msPointerEnabled?l[o](i,"MSPointerDown",this):(l[o](i,"mousedown",this),l[o](i,"touchstart",this))},d.prototype.handleEvent=function(i){var r="on"+i.type;this[r]&&this[r](i)},d.prototype.getTouch=function(i){for(var r=0,o=i.length;o>r;r++){var a=i[r];if(a.identifier==this.pointerIdentifier)return a}},d.prototype.onmousedown=function(i){var r=i.button;r&&r!==0&&r!==1||this._pointerDown(i,i)},d.prototype.ontouchstart=function(i){this._pointerDown(i,i.changedTouches[0])},d.prototype.onMSPointerDown=d.prototype.onpointerdown=function(i){this._pointerDown(i,i)},d.prototype._pointerDown=function(i,r){this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=r.pointerId!==void 0?r.pointerId:r.identifier,this.pointerDown(i,r))},d.prototype.pointerDown=function(i,r){this._bindPostStartEvents(i),this.emitEvent("pointerDown",[this,i,r])};var y={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"],MSPointerDown:["MSPointerMove","MSPointerUp","MSPointerCancel"]};return d.prototype._bindPostStartEvents=function(i){if(i){for(var r=y[i.type],o=i.preventDefault?c:document,a=0,E=r.length;E>a;a++){var T=r[a];l.bind(o,T,this)}this._boundPointerEvents={events:r,node:o}}},d.prototype._unbindPostStartEvents=function(){var i=this._boundPointerEvents;if(i&&i.events){for(var r=0,o=i.events.length;o>r;r++){var a=i.events[r];l.unbind(i.node,a,this)}delete this._boundPointerEvents}},d.prototype.onmousemove=function(i){this._pointerMove(i,i)},d.prototype.onMSPointerMove=d.prototype.onpointermove=function(i){i.pointerId==this.pointerIdentifier&&this._pointerMove(i,i)},d.prototype.ontouchmove=function(i){var r=this.getTouch(i.changedTouches);r&&this._pointerMove(i,r)},d.prototype._pointerMove=function(i,r){this.pointerMove(i,r)},d.prototype.pointerMove=function(i,r){this.emitEvent("pointerMove",[this,i,r])},d.prototype.onmouseup=function(i){this._pointerUp(i,i)},d.prototype.onMSPointerUp=d.prototype.onpointerup=function(i){i.pointerId==this.pointerIdentifier&&this._pointerUp(i,i)},d.prototype.ontouchend=function(i){var r=this.getTouch(i.changedTouches);r&&this._pointerUp(i,r)},d.prototype._pointerUp=function(i,r){this._pointerDone(),this.pointerUp(i,r)},d.prototype.pointerUp=function(i,r){this.emitEvent("pointerUp",[this,i,r])},d.prototype._pointerDone=function(){this.isPointerDown=!1,delete this.pointerIdentifier,this._unbindPostStartEvents(),this.pointerDone()},d.prototype.pointerDone=m,d.prototype.onMSPointerCancel=d.prototype.onpointercancel=function(i){i.pointerId==this.pointerIdentifier&&this._pointerCancel(i,i)},d.prototype.ontouchcancel=function(i){var r=this.getTouch(i.changedTouches);r&&this._pointerCancel(i,r)},d.prototype._pointerCancel=function(i,r){this._pointerDone(),this.pointerCancel(i,r)},d.prototype.pointerCancel=function(i,r){this.emitEvent("pointerCancel",[this,i,r])},d.getPointerPoint=function(i){return{x:i.pageX!==void 0?i.pageX:i.clientX,y:i.pageY!==void 0?i.pageY:i.clientY}},d}),function(c,f){typeof define=="function"&&define.amd?define("unidragger/unidragger",["eventie/eventie","unipointer/unipointer"],function(l,m){return f(c,l,m)}):typeof exports=="object"?module.exports=f(c,require("eventie"),require("unipointer")):c.Unidragger=f(c,c.eventie,c.Unipointer)}(window,function(c,f,l){function m(){}function d(p){p.preventDefault?p.preventDefault():p.returnValue=!1}function y(p){for(;p!=document.body;)if(p=p.parentNode,p.nodeName=="A")return p}function i(){}function r(){return!1}i.prototype=new l,i.prototype.bindHandles=function(){this._bindHandles(!0)},i.prototype.unbindHandles=function(){this._bindHandles(!1)};var o=c.navigator;i.prototype._bindHandles=function(p){p=p===void 0?!0:!!p;var _;_=o.pointerEnabled?function(b){b.style.touchAction=p?"none":""}:o.msPointerEnabled?function(b){b.style.msTouchAction=p?"none":""}:function(){p&&E(S)};for(var g=p?"bind":"unbind",v=0,x=this.handles.length;x>v;v++){var S=this.handles[v];this._bindStartEvent(S,p),_(S),f[g](S,"click",this)}};var a="attachEvent"in document.documentElement,E=a?function(p){p.nodeName=="IMG"&&(p.ondragstart=r);for(var _=p.querySelectorAll("img"),g=0,v=_.length;v>g;g++){var x=_[g];x.ondragstart=r}}:m,T=i.allowTouchstartNodes={INPUT:!0,A:!0,BUTTON:!0,SELECT:!0};return i.prototype.pointerDown=function(p,_){this._dragPointerDown(p,_);var g=document.activeElement;g&&g.blur&&g.blur(),this._bindPostStartEvents(p),this.emitEvent("pointerDown",[this,p,_])},i.prototype._dragPointerDown=function(p,_){this.pointerDownPoint=l.getPointerPoint(_);var g=p.target.nodeName,v=p.type=="touchstart"&&(T[g]||y(p.target));
21v||g=="SELECT"||d(p)},i.prototype.pointerMove=function(p,_){var g=this._dragPointerMove(p,_);this.emitEvent("pointerMove",[this,p,_,g]),this._dragMove(p,_,g)},i.prototype._dragPointerMove=function(p,_){var g=l.getPointerPoint(_),v={x:g.x-this.pointerDownPoint.x,y:g.y-this.pointerDownPoint.y};return!this.isDragging&&this.hasDragStarted(v)&&this._dragStart(p,_),v},i.prototype.hasDragStarted=function(p){return Math.abs(p.x)>3||Math.abs(p.y)>3},i.prototype.pointerUp=function(p,_){this.emitEvent("pointerUp",[this,p,_]),this._dragPointerUp(p,_)},i.prototype._dragPointerUp=function(p,_){this.isDragging?this._dragEnd(p,_):this._staticClick(p,_)},i.prototype._dragStart=function(p,_){this.isDragging=!0,this.dragStartPoint=i.getPointerPoint(_),this.isPreventingClicks=!0,this.dragStart(p,_)},i.prototype.dragStart=function(p,_){this.emitEvent("dragStart",[this,p,_])},i.prototype._dragMove=function(p,_,g){this.isDragging&&this.dragMove(p,_,g)},i.prototype.dragMove=function(p,_,g){this.emitEvent("dragMove",[this,p,_,g])},i.prototype._dragEnd=function(p,_){this.isDragging=!1;var g=this;
21setTimeout(function(){delete g.isPreventingClicks}),this.dragEnd(p,_)},i.prototype.dragEnd=function(p,_){this.emitEvent("dragEnd",[this,p,_])},i.prototype.onclick=function(p){this.isPreventingClicks&&d(p)},i.prototype._staticClick=function(p,_){p.target.nodeName=="INPUT"&&p.target.type=="text"&&p.target.focus(),this.staticClick(p,_)},i.prototype.staticClick=function(p,_){this.emitEvent("staticClick",[this,p,_])},i.getPointerPoint=function(p){return{x:p.pageX!==void 0?p.pageX:p.clientX,y:p.pageY!==void 0?p.pageY:p.clientY}},i.getPointerPoint=l.getPointerPoint,i}),function(c,f){typeof define=="function"&&define.amd?define("flickity/js/drag",["classie/classie","eventie/eventie","./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(l,m,d,y,i){return f(c,l,m,d,y,i)}):typeof exports=="object"?module.exports=f(c,require("desandro-classie"),require("eventie"),require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):(c.Flickity=c.Flickity||{},c.Flickity.dragPrototype=f(c,c.classie,c.eventie,c.Flickity,c.Unidragger,c.fizzyUIUtils))}(window,function(c,f,l,m,d,y){function i(p){p.preventDefault?p.preventDefault():p.returnValue=!1}function r(p){var _=d.getPointerPoint(p);return _.y-c.pageYOffset}y.extend(m.defaults,{draggable:!0,touchVerticalScroll:!0}),m.createMethods.push("_createDrag");var o={};y.extend(o,d.prototype),o._createDrag=function(){this.on("activate",this.bindDrag),this.on("uiChange",this._uiChangeDrag),this.on("childUIPointerDown",this._childUIPointerDownDrag),this.on("deactivate",this.unbindDrag)},o.bindDrag=function(){this.options.draggable&&!this.isDragBound&&(f.add(this.element,"is-draggable"),this.handles=[this.viewport],this.bindHandles(),this.isDragBound=!0)},o.unbindDrag=function(){this.isDragBound&&(f.remove(this.element,"is-draggable"),this.unbindHandles(),delete this.isDragBound)},o.hasDragStarted=function(p){return Math.abs(p.x)>3},o._uiChangeDrag=function(){delete this.isFreeScrolling},o._childUIPointerDownDrag=function(p){i(p),this.pointerDownFocus(p)},o.pointerDown=function(p,_){this._dragPointerDown(p,_);var g=document.activeElement;g&&g.blur&&g!=this.element&&g.blur(),this.pointerDownFocus(p),this.velocity=0,f.add(this.viewport,"is-pointer-down"),this._bindPostStartEvents(p),this.dispatchEvent("pointerDown",p,[_])};var a={touchstart:!0,MSPointerDown:!0},E={INPUT:!0,SELECT:!0};o.pointerDownFocus=function(p){!this.options.accessibility||a[p.type]||E[p.target.nodeName]||this.element.focus()},o.pointerMove=function(p,_){var g=this._dragPointerMove(p,_);this.touchVerticalScrollMove(p,_,g),this._dragMove(p,_,g),this.dispatchEvent("pointerMove",p,[_,g])},o.pointerUp=function(p,_){delete this.isTouchScrolling,f.remove(this.viewport,"is-pointer-down"),this.dispatchEvent("pointerUp",p,[_]),this._dragPointerUp(p,_)};var T={touchmove:!0,MSPointerMove:!0};return o.touchVerticalScrollMove=function(p,_,g){if(this.options.touchVerticalScroll&&T[p.type]&&(!this.isTouchScrolling&&Math.abs(g.y)>16&&(this.startScrollY=c.pageYOffset,this.pointerWindowStartY=r(_),this.isTouchScrolling=!0),this.isTouchScrolling)){var v=this.pointerWindowStartY-r(_),x=this.startScrollY+v;c.scroll(c.pageXOffset,x)}},o.dragStart=function(p,_){this.dragStartPosition=this.x,this.startAnimation(),this.dispatchEvent("dragStart",p,[_])},o.dragMove=function(p,_,g){this.previousDragX=this.x;var v=g.x,x=this.options.rightToLeft?-1:1;if(this.x=this.dragStartPosition+v*x,!this.options.wrapAround&&this.cells.length){var S=Math.max(-this.cells[0].target,this.dragStartPosition);this.x=this.x>S?.5*(this.x-S)+S:this.x;var b=Math.min(-this.getLastCell().target,this.dragStartPosition);this.x=this.x<b?.5*(this.x-b)+b:this.x}this.previousDragMoveTime=this.dragMoveTime,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",p,[_,g])},o.dragEnd=function(p,_){this.dragEndFlick(),this.options.freeScroll&&(this.isFreeScrolling=!0);var g=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var v=this.getRestingPosition();this.isFreeScrolling=-v>this.cells[0].target&&-v<this.getLastCell().target}else this.options.freeScroll||g!=this.selectedIndex||(g+=this.dragEndBoostSelect());this.select(g),this.dispatchEvent("dragEnd",p,[_])},o.dragEndFlick=function(){if(isFinite(this.previousDragX)){var p=this.dragMoveTime-this.previousDragMoveTime;if(p){p/=1e3/60;var _=this.x-this.previousDragX;this.velocity=_/p}delete this.previousDragX}},o.dragEndRestingSelect=function(){var p=this.getRestingPosition(),_=Math.abs(this.getCellDistance(-p,this.selectedIndex)),g=this._getClosestResting(p,_,1),v=this._getClosestResting(p,_,-1),x=g.distance<v.distance?g.index:v.index;return this.options.contain&&!this.options.wrapAround&&(x=Math.abs(x-this.selectedIndex)<=1?this.selectedIndex:x),x},o._getClosestResting=function(p,_,g){for(var v=this.selectedIndex,x=1/0,S=this.options.contain&&!this.options.wrapAround?function(b,C){return C>=b}:function(b,C){return C>b};S(_,x)&&(v+=g,x=_,_=this.getCellDistance(-p,v),_!==null);)_=Math.abs(_);return{distance:x,index:v-g}},o.getCellDistance=function(p,_){var g=this.cells.length,v=this.options.wrapAround&&g>1,x=v?y.modulo(_,g):_,S=this.cells[x];if(!S)return null;var b=v?this.slideableWidth*Math.floor(_/g):0;return p-(S.target+b)},o.dragEndBoostSelect=function(){var p=this.getCellDistance(-this.x,this.selectedIndex);return p>0&&this.velocity<-1?1:0>p&&this.velocity>1?-1:0},o.staticClick=function(p,_){var g=this.getParentCell(p.target),v=g&&g.element,x=g&&y.indexOf(this.cells,g);
21this.dispatchEvent("staticClick",p,[_,v,x])},y.extend(m.prototype,o),m}),function(c,f){typeof define=="function"&&define.amd?define("tap-listener/tap-listener",["unipointer/unipointer"],function(l){return f(c,l)}):typeof exports=="object"?module.exports=f(c,require("unipointer")):c.TapListener=f(c,c.Unipointer)}(window,function(c,f){function l(d){this.bindTap(d)}l.prototype=new f,l.prototype.bindTap=function(d){d&&(this.unbindTap(),this.tapElement=d,this._bindStartEvent(d,!0))},l.prototype.unbindTap=function(){this.tapElement&&(this._bindStartEvent(this.tapElement,!0),delete this.tapElement)};var m=c.pageYOffset!==void 0;return l.prototype.pointerUp=function(d,y){var i=f.getPointerPoint(y),r=this.tapElement.getBoundingClientRect(),o=m?c.pageXOffset:document.body.scrollLeft,a=m?c.pageYOffset:document.body.scrollTop,E=i.x>=r.left+o&&i.x<=r.right+o&&i.y>=r.top+a&&i.y<=r.bottom+a;E&&this.emitEvent("tap",[this,d,y])},l.prototype.destroy=function(){this.pointerDone(),this.unbindTap()},l}),function(c,f){typeof define=="function"&&define.amd?define("flickity/js/prev-next-button",["eventie/eventie","./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(l,m,d,y){return f(c,l,m,d,y)}):typeof exports=="object"?module.exports=f(c,require("eventie"),require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):(c.Flickity=c.Flickity||{},c.Flickity.PrevNextButton=f(c,c.eventie,c.Flickity,c.TapListener,c.fizzyUIUtils))}(window,function(c,f,l,m,d){function y(o,a){this.direction=o,this.parent=a,this._create()}var i="http://www.w3.org/2000/svg",r=function(){function o(){if(a!==void 0)return a;var E=document.createElement("div");return E.innerHTML="<svg/>",a=(E.firstChild&&E.firstChild.namespaceURI)==i}var a;return o}();return y.prototype=new m,y.prototype._create=function(){this.isEnabled=!0,this.isPrevious=this.direction==-1;var o=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==o;var a=this.element=document.createElement("button");if(a.className="flickity-prev-next-button",a.className+=this.isPrevious?" previous":" next",a.setAttribute("type","button"),l.setUnselectable(a),r()){var E=this.createSVG();a.appendChild(E)}else this.setArrowText(),a.className+=" no-svg";var T=this;this.onCellSelect=function(){T.update()},this.parent.on("cellSelect",this.onCellSelect),this.on("tap",this.onTap),this.on("pointerDown",function(p,_){T.parent.childUIPointerDown(_)})},y.prototype.activate=function(){this.update(),this.bindTap(this.element),f.bind(this.element,"click",this),this.parent.element.appendChild(this.element)},y.prototype.deactivate=function(){this.parent.element.removeChild(this.element),m.prototype.destroy.call(this),f.unbind(this.element,"click",this)},y.prototype.createSVG=function(){var o=document.createElementNS(i,"svg");o.setAttribute("viewBox","0 0 100 100");var a=document.createElementNS(i,"path");a.setAttribute("d","M 50,0 L 60,10 L 20,50 L 60,90 L 50,100 L 0,50 Z"),a.setAttribute("class","arrow");var E=this.isLeft?"translate(15,0)":"translate(85,100) rotate(180)";return a.setAttribute("transform",E),o.appendChild(a),o},y.prototype.setArrowText=function(){var o=this.parent.options,a=this.isLeft?o.leftArrowText:o.rightArrowText;d.setText(this.element,a)},y.prototype.onTap=function(){if(this.isEnabled){this.parent.uiChange();var o=this.isPrevious?"previous":"next";this.parent[o]()}},y.prototype.handleEvent=d.handleEvent,y.prototype.onclick=function(){var o=document.activeElement;o&&o==this.element&&this.onTap()},y.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},y.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},y.prototype.update=function(){var o=this.parent.cells;if(this.parent.options.wrapAround&&o.length>1)return void this.enable();var a=o.length?o.length-1:0,E=this.isPrevious?0:a,T=this.parent.selectedIndex==E?"disable":"enable";this[T]()},y.prototype.destroy=function(){this.deactivate()},d.extend(l.defaults,{prevNextButtons:!0,leftArrowText:"\xE2\u20AC\xB9",rightArrowText:"\xE2\u20AC\xBA"}),l.createMethods.push("_createPrevNextButtons"),l.prototype._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new y(-1,this),this.nextButton=new y(1,this),this.on("activate",this.activatePrevNextButtons))},l.prototype.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},l.prototype.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},l.PrevNextButton=y,y}),function(c,f){typeof define=="function"&&define.amd?define("flickity/js/page-dots",["eventie/eventie","./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(l,m,d,y){return f(c,l,m,d,y)}):typeof exports=="object"?module.exports=f(c,require("eventie"),require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):(c.Flickity=c.Flickity||{},c.Flickity.PageDots=f(c,c.eventie,c.Flickity,c.TapListener,c.fizzyUIUtils))}(window,function(c,f,l,m,d){function y(i){this.parent=i,this._create()}return y.prototype=new m,y.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",l.
21setUnselectable(this.holder),this.dots=[];var i=this;this.onCellSelect=function(){i.updateSelected()},this.parent.on("cellSelect",this.onCellSelect),this.on("tap",this.onTap),this.on("pointerDown",function(r,o){i.parent.childUIPointerDown(o)})},y.prototype.activate=function(){this.setDots(),this.updateSelected(),this.bindTap(this.holder),this.parent.element.appendChild(this.holder)},y.prototype.deactivate=function(){this.parent.element.removeChild(this.holder),m.prototype.destroy.call(this)},y.prototype.setDots=function(){var i=this.parent.cells.length-this.dots.length;i>0?this.addDots(i):0>i&&this.removeDots(-i)},y.prototype.addDots=function(i){for(var r=document.createDocumentFragment(),o=[];i;){var a=document.createElement("li");a.className="dot",r.appendChild(a),o.push(a),i--}this.holder.appendChild(r),this.dots=this.dots.concat(o)},y.prototype.removeDots=function(i){for(var r=this.dots.splice(this.dots.length-i,i),o=0,a=r.length;a>o;o++){var E=r[o];this.holder.removeChild(E)}},y.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot"),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected")},y.prototype.onTap=function(i,r){var o=r.target;if(o.nodeName=="LI"){this.parent.uiChange();var a=d.indexOf(this.dots,o);this.parent.select(a)}},y.prototype.destroy=function(){this.deactivate()},l.PageDots=y,d.extend(l.defaults,{pageDots:!0}),l.createMethods.push("_createPageDots"),l.prototype._createPageDots=function(){this.options.pageDots&&(this.pageDots=new y(this),this.on("activate",this.activatePageDots),this.on("cellAddedRemoved",this.onCellAddedRemovedPageDots),this.on("deactivate",this.deactivatePageDots))},l.prototype.activatePageDots=function(){this.pageDots.activate()},l.prototype.onCellAddedRemovedPageDots=function(){this.pageDots.setDots()},l.prototype.deactivatePageDots=function(){this.pageDots.deactivate()},l.PageDots=y,y}),function(c,f){typeof define=="function"&&define.amd?define("flickity/js/player",["eventEmitter/EventEmitter","eventie/eventie","./flickity"],function(l,m,d){return f(l,m,d)}):typeof exports=="object"?module.exports=f(require("wolfy87-eventemitter"),require("eventie"),require("./flickity")):(c.Flickity=c.Flickity||{},c.Flickity.Player=f(c.EventEmitter,c.eventie,c.Flickity))}(window,function(c,f,l){function m(i){if(this.isPlaying=!1,this.parent=i,y){var r=this;this.onVisibilityChange=function(){r.visibilityChange()}}}var d,y;return"hidden"in document?(d="hidden",y="visibilitychange"):"webkitHidden"in document&&(d="webkitHidden",y="webkitvisibilitychange"),m.prototype=new c,m.prototype.play=function(){this.isPlaying=!0,delete this.isPaused,y&&document.addEventListener(y,this.onVisibilityChange,!1),this.tick()},m.prototype.tick=function(){if(this.isPlaying&&!this.isPaused){this.tickTime=new Date;var i=this.parent.options.autoPlay;i=typeof i=="number"?i:3e3;var r=this;this.timeout=setTimeout(function(){r.parent.next(!0),r.tick()},i)}},m.prototype.stop=function(){this.isPlaying=!1,delete this.isPaused,this.clear(),y&&document.removeEventListener(y,this.onVisibilityChange,!1)},m.prototype.clear=function(){clearTimeout(this.timeout)},m.prototype.pause=function(){this.isPlaying&&(this.isPaused=!0,this.clear())},m.prototype.unpause=function(){this.isPaused&&this.play()},m.prototype.visibilityChange=function(){var i=document[d];this[i?"pause":"unpause"]()},l.createMethods.push("_createPlayer"),l.prototype._createPlayer=function(){this.player=new m(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},l.prototype.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),f.bind(this.element,"mouseenter",this),this.isMouseenterBound=!0)},l.prototype.stopPlayer=function(){this.player.stop()},l.prototype.deactivatePlayer=function(){this.player.stop(),this.isMouseenterBound&&(f.unbind(this.element,"mouseenter",this),delete this.isMouseenterBound)},l.prototype.onmouseenter=function(){this.player.pause(),f.bind(this.element,"mouseleave",this)},l.prototype.onmouseleave=function(){this.player.unpause(),f.unbind(this.element,"mouseleave",this)},l.Player=m,m}),function(c,f){typeof define=="function"&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(l,m){return f(c,l,m)}):typeof exports=="object"?module.exports=f(c,require("./flickity"),require("fizzy-ui-utils")):(c.Flickity=c.Flickity||{},c.Flickity=f(c,c.Flickity,c.fizzyUIUtils))}(window,function(c,f,l){function m(d){for(var y=document.createDocumentFragment(),i=0,r=d.length;r>i;i++){var o=d[i];y.appendChild(o.element)}return y}return f.prototype.insert=function(d,y){var i=this._makeCells(d);if(i&&i.length){var r=this.cells.length;y=y===void 0?r:y;var o=m(i),a=y==r;if(a)this.slider.appendChild(o);else{var E=this.cells[y].element;this.slider.insertBefore(o,E)}if(y===0)this.cells=i.concat(this.cells);else if(a)this.cells=this.cells.concat(i);else{var T=this.cells.splice(y,r-y);
21this.cells=this.cells.concat(i).concat(T)}this._sizeCells(i);var p=y>this.selectedIndex?0:i.length;this._cellAddedRemoved(y,p)}},f.prototype.append=function(d){this.insert(d,this.cells.length)},f.prototype.prepend=function(d){this.insert(d,0)},f.prototype.remove=function(d){var y,i,r,o=this.getCells(d),a=0;for(y=0,i=o.length;i>y;y++){r=o[y];var E=l.indexOf(this.cells,r)<this.selectedIndex;a-=E?1:0}for(y=0,i=o.length;i>y;y++)r=o[y],r.remove(),l.removeFrom(this.cells,r);o.length&&this._cellAddedRemoved(0,a)},f.prototype._cellAddedRemoved=function(d,y){y=y||0,this.selectedIndex+=y,this.selectedIndex=Math.max(0,Math.min(this.cells.length-1,this.selectedIndex)),this.emitEvent("cellAddedRemoved",[d,y]),this.cellChange(d)},f.prototype.cellSizeChange=function(d){var y=this.getCell(d);if(y){y.getSize();var i=l.indexOf(this.cells,y);this.cellChange(i)}},f.prototype.cellChange=function(d){d=d||0,this._positionCells(d),this._getWrapShiftCells(),this.setGallerySize(),this.options.freeScroll?this.positionSlider():(this.positionSliderAtSelected(),this.select(this.selectedIndex))},f}),function(c,f){typeof define=="function"&&define.amd?define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell"],f):typeof exports=="object"&&(module.exports=f(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell")))}(window,function(c){return c}),function(c,f){typeof define=="function"&&define.amd?define("flickity-as-nav-for/as-nav-for",["classie/classie","flickity/js/index","fizzy-ui-utils/utils"],function(l,m,d){return f(c,l,m,d)}):typeof exports=="object"?module.exports=f(c,require("dessandro-classie"),require("flickity"),require("fizzy-ui-utils")):c.Flickity=f(c,c.classie,c.Flickity,c.fizzyUIUtils)}(window,function(c,f,l,m){return l.createMethods.push("_createAsNavFor"),l.prototype._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var d=this.options.asNavFor;if(d){var y=this;setTimeout(function(){y.setNavCompanion(d)})}},l.prototype.setNavCompanion=function(d){d=m.getQueryElement(d);var y=l.data(d);if(y&&y!=this){this.navCompanion=y;var i=this;this.onNavCompanionSelect=function(){i.navCompanionSelect()},y.on("cellSelect",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect()}},l.prototype.navCompanionSelect=function(){if(this.navCompanion){var d=this.navCompanion.selectedIndex;this.select(d),this.removeNavSelectedElement(),this.selectedIndex==d&&(this.navSelectedElement=this.cells[d].element,f.add(this.navSelectedElement,"is-nav-selected"))}},l.prototype.activateAsNavFor=function(){this.navCompanionSelect()},l.prototype.removeNavSelectedElement=function(){this.navSelectedElement&&(f.remove(this.navSelectedElement,"is-nav-selected"),delete this.navSelectedElement)},l.prototype.onNavStaticClick=function(d,y,i,r){typeof r=="number"&&this.navCompanion.select(r)},l.prototype.deactivateAsNavFor=function(){this.removeNavSelectedElement()},l.prototype.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("cellSelect",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},l}),function(c,f){typeof define=="function"&&define.amd?define("imagesloaded/imagesloaded",["eventEmitter/EventEmitter","eventie/eventie"],function(l,m){return f(c,l,m)}):typeof exports=="object"?module.exports=f(c,require("wolfy87-eventemitter"),require("eventie")):c.imagesLoaded=f(c,c.EventEmitter,c.eventie)}(window,function(c,f,l){function m(g,v){for(var x in v)g[x]=v[x];return g}function d(g){return p.call(g)==="[object Array]"}function y(g){var v=[];if(d(g))v=g;else if(typeof g.length=="number")for(var x=0,S=g.length;S>x;x++)v.push(g[x]);else v.push(g);return v}function i(g,v,x){if(!(this instanceof i))return new i(g,v);typeof g=="string"&&(g=document.querySelectorAll(g)),this.elements=y(g),this.options=m({},this.options),typeof v=="function"?x=v:m(this.options,v),x&&this.on("always",x),this.getImages(),a&&(this.jqDeferred=new a.Deferred);var S=this;setTimeout(function(){S.check()})}function r(g){this.img=g}function o(g){this.src=g,_[g]=this}var a=c.jQuery,E=c.console,T=typeof E!="undefined",p=Object.prototype.toString;i.prototype=new f,i.prototype.options={},i.prototype.getImages=function(){this.images=[];for(var g=0,v=this.elements.length;v>g;g++){var x=this.elements[g];x.nodeName==="IMG"&&this.addImage(x);var S=x.nodeType;if(S&&(S===1||S===9||S===11))for(var b=x.querySelectorAll("img"),C=0,P=b.length;P>C;C++){var L=b[C];this.addImage(L)}}},i.prototype.addImage=function(g){var v=new r(g);this.images.push(v)},i.prototype.check=function(){function g(P,L){return v.options.debug&&T&&E.log("confirm",P,L),v.progress(P),x++,x===S&&v.complete(),!0}var v=this,x=0,S=this.images.length;if(this.hasAnyBroken=!1,!S)return void this.complete();for(var b=0;S>b;b++){var C=this.images[b];C.on("confirm",g),C.check()}},i.prototype.progress=function(g){this.hasAnyBroken=this.hasAnyBroken||!g.isLoaded;var v=this;setTimeout(function(){v.emit("progress",v,g),v.jqDeferred&&v.jqDeferred.notify&&v.jqDeferred.notify(v,g)})},i.prototype.complete=function(){var g=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var v=this;setTimeout(function(){if(v.emit(g,v),v.emit("always",v),v.jqDeferred){var x=v.hasAnyBroken?"reject":"resolve";v.jqDeferred[x](v)}})},a&&(a.fn.imagesLoaded=function(g,v){var x=new i(this,g,v);return x.jqDeferred.promise(a(this))}),r.prototype=new f,r.prototype.check=function(){var g=_[this.img.src]||new o(this.img.src);if(g.isConfirmed)return void this.confirm(g.isLoaded,"cached was confirmed");
21if(this.img.complete&&this.img.naturalWidth!==void 0)return void this.confirm(this.img.naturalWidth!==0,"naturalWidth");var v=this;g.on("confirm",function(x,S){return v.confirm(x.isLoaded,S),!0}),g.check()},r.prototype.confirm=function(g,v){this.isLoaded=g,this.emit("confirm",this,v)};var _={};return o.prototype=new f,o.prototype.check=function(){if(!this.isChecked){var g=new Image;l.bind(g,"load",this),l.bind(g,"error",this),g.src=this.src,this.isChecked=!0}},o.prototype.handleEvent=function(g){var v="on"+g.type;this[v]&&this[v](g)},o.prototype.onload=function(g){this.confirm(!0,"onload"),this.unbindProxyEvents(g)},o.prototype.onerror=function(g){this.confirm(!1,"onerror"),this.unbindProxyEvents(g)},o.prototype.confirm=function(g,v){this.isConfirmed=!0,this.isLoaded=g,this.emit("confirm",this,v)},o.prototype.unbindProxyEvents=function(g){l.unbind(g.target,"load",this),l.unbind(g.target,"error",this)},i}),function(c,f){typeof define=="function"&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],function(l,m){return f(c,l,m)}):typeof exports=="object"?module.exports=f(c,require("flickity"),require("imagesloaded")):c.Flickity=f(c,c.Flickity,c.imagesLoaded)}(window,function(c,f,l){return f.createMethods.push("_createImagesLoaded"),f.prototype._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},f.prototype.imagesLoaded=function(){function m(y,i){var r=d.getParentCell(i.img);d.cellSizeChange(r&&r.element)}if(this.options.imagesLoaded){var d=this;l(this.slider).on("progress",m)}},f});/*! 22 * Trend 0.1.0 23 * 24 * Fail-safe TransitionEnd event for jQuery. 25 * 26 * Adds a new "trend" event that can be used in browsers that don't 27 * support "transitionend". 28 * 29 * NOTE: Only supports being bound with "jQuery.one". 30 * 31 * Copyright 2014, Pixel Union - http://pixelunion.net 32 * Released under the MIT license 33 */(function(c){var f="webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",l=["transition-duration","-moz-transition-duration","-webkit-transition-duration","-ms-transition-duration","-o-transition-duration","-khtml-transition-duration"],m=function(y){y=y.replace(/\s/,"");var i=window.parseFloat(y);return y.match(/[^m]s$/i)?i*1e3:i},d=function(y){for(var i=0,r=0;r<l.length;r++){var o=y.css(l[r]);if(!!o){if(o.indexOf(",")!==-1){var a=o.split(","),E=function(){for(var T=[],p=0;p<a.length;p++){var _=m(a[p]);T.push(_)}return T}();i=Math.max.apply(Math,E)}else i=m(o);break}}return i};c.event.special.trend={add:function(y){var i=c(this),r=!1;i.data("trend",!0);var o=d(i)+20,a=function(E){r||E&&E.srcElement!==i[0]||(i.data("trend",!1),r=!0,y.handler&&y.handler())};i.one(f,a),i.data("trend-timeout",window.setTimeout(a,o))},remove:function(y){var i=c(this);i.off(f),window.clearTimeout(i.data("trend-timeout"))}}})(jQuery);var Shopify=Shopify||{};Shopify.optionsMap={},Shopify.updateOptionsInSelector=function(c,f,l){switch(c){case 0:var m="root",d=jQuery("[data-product-id='"+f+"'] .single-option-selector:eq(0)");break;case 1:var m=jQuery("[data-product-id='"+f+"'] .single-option-selector:eq(0)").val(),d=jQuery("[data-product-id='"+f+"'] .single-option-selector:eq(1)");break;case 2:var m=jQuery("[data-product-id='"+f+"'] .single-option-selector:eq(0)").val();m+=" / "+jQuery("[data-product-id='"+f+"'] .single-option-selector:eq(1)").val();var d=jQuery("[data-product-id='"+f+"'] .single-option-selector:eq(2)")}var y=d.val(),i=l[m],r=d.find("option"),o=r.length;if(r.prop("disabled",!1),i)for(var a=0;a<i.length;a++){var E=i[a];d.find("option[value='"+E+"']").addClass("available")}for(var a=0;a<o;a++){var E=r.eq(a);E.hasClass("available")||(E.prop("disabled",!0),E.is(":selected")&&E.prop("selected",!1).next().prop("selected",!0))}r.removeClass("available"),jQuery('.swatch[data-option-index="'+c+'"] .swatch-element').each(function(){jQuery.inArray($(this).attr("data-value"),i)!==-1?$(this).removeClass("soldout").show().find(":radio").removeAttr("disabled","disabled").removeAttr("checked"):$(this).addClass("soldout").hide().find(":radio").removeAttr("checked").attr("disabled","disabled")}),jQuery.inArray(y,i)!==-1&&d.val(y),d.trigger("change")},Shopify.linkOptionSelectors=function(c,f){Shopify.optionsMap[f]={};for(var l=0;l<c.variants.length;l++){tempVariant=null;var m=c.variants[l];if(m.available){if(Shopify.optionsMap[f].root=Shopify.optionsMap[f].root||[],Shopify.optionsMap[f].root.push(m.option1),Shopify.optionsMap[f].root=Shopify.uniq(Shopify.optionsMap[f].root),c.options.length>1){var d=m.option1;Shopify.optionsMap[f][d]=Shopify.optionsMap[f][d]||[],Shopify.optionsMap[f][d].push(m.option2),Shopify.optionsMap[f][d]=Shopify.uniq(Shopify.optionsMap[f][d])}if(c.options.length===3){var d=m.option1+" / "+m.option2;Shopify.optionsMap[f][d]=Shopify.optionsMap[f][d]||[],Shopify.optionsMap[f][d].push(m.option3),Shopify.optionsMap[f][d]=Shopify.uniq(Shopify.optionsMap[f][d])}}}Shopify.updateOptionsInSelector(0,f,Shopify.optionsMap[f]),c.options.length>1&&Shopify.updateOptionsInSelector(1,f,Shopify.optionsMap[f]),c.options.length===3&&Shopify.updateOptionsInSelector(2,f,Shopify.optionsMap[f]),jQuery("[data-product-id='"+f+"'] .single-option-selector:eq(0)").change(function(){return c.options.length>1&&Shopify.updateOptionsInSelector(1,f,Shopify.optionsMap[f]),c.options.length===3&&Shopify.updateOptionsInSelector(2,f,Shopify.optionsMap[f]),!0}),jQuery("[data-product-id='"+f+"'] .single-option-selector:eq(1)").change(function(){return c.options.length===3&&Shopify.updateOptionsInSelector(2,f,Shopify.optionsMap[f]),!0})}; 34//# sourceMappingURL=/s/files/1/0230/4245/t/19/assets/plugins.js.map?enable_js_minification=1&v=4646465171002780256
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.